/*! For license information please see main.e38758301c9ae8a4.js.LICENSE.txt */
(self.webpackChunkin_corp_ng=self.webpackChunkin_corp_ng||[]).push([[792],{1943:(te,ne,ie)=>{var re;te=ie.nmd(te),function(te){const ne=te["pt-br"]=te["pt-br"]||{};ne.dictionary=Object.assign(ne.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Aceitar","Align cell text to the bottom":"Alinhar texto da célula para baixo","Align cell text to the center":"Alinhar texto da célula centralizado","Align cell text to the left":"Alinhar texto da célula para a esquerda","Align cell text to the middle":"Alinhar texto da célula para o meio","Align cell text to the right":"Alinhar texto da célula para a direita","Align cell text to the top":"Alinhar texto da célula para o topo","Align center":"Centralizar","Align left":"Alinhar à esquerda","Align right":"Alinhar à direita","Align table to the left":"Alinhar tabela para esquerda","Align table to the right":"Alinhar tabela para direita",Alignment:"Alinhamento",Aquamarine:"Água-marinha",Background:"Cor de fundo",Big:"Grande",Black:"Preto","Block quote":"Bloco de citação",Blue:"Azul","Blue marker":"Marcador azul",Bold:"Negrito",Border:"Borda","Break text":"Quebrar texto","Bulleted List":"Lista com marcadores","Bulleted list styles toolbar":"Barra de ferramentas de estilos de lista com marcador",Cancel:"Cancelar","Caption for image: %0":"Legenda da imagem: %0","Caption for the image":"Legenda para a imagem","Cell properties":"Propriedades da célula","Center table":"Centralizar tabela","Centered image":"Imagem centralizada","Change image text alternative":"Alterar texto alternativo da imagem","Choose heading":"Escolha o título",Circle:"Círculo",Clear:"Limpar","Click to edit block":"Clicar para editar o bloco",Close:"Fechar",Code:"Código",Color:"Cor","Color picker":"Seletor de cor",Column:"Coluna",Dashed:"Tracejada",Decimal:"Decimal","Decimal with leading zero":"Decimal com zero à esquerda","Decrease indent":"Diminuir recuo",Default:"Padrão","Delete column":"Excluir coluna","Delete row":"Excluir linha","Dim grey":"Cinza escuro",Dimensions:"Dimensões",Disc:"Disco","Document colors":"Cores do documento",Dotted:"Pontilhada",Double:"Dupla",Downloadable:"Pode ser baixado","Drag to move":"Arrastar para mover","Dropdown toolbar":"Barra de Ferramentas da Lista Suspensa","Edit block":"Editor de bloco","Edit link":"Editar link","Editor block content toolbar":"Barra de ferramentas de bloco do Editor","Editor contextual toolbar":"Barra de ferramentas contextual do Editor","Editor dialog":"Diálogo do editor","Editor editing area: %0":"Área de edição do editor: %0","Editor toolbar":"Ferramentas do Editor","Enter image caption":"Inserir legenda da imagem","Enter table caption":"Inserir legenda da tabela","Font Background Color":"Cor de Fundo","Font Color":"Cor da Fonte","Font Family":"Fonte","Font Size":"Tamanho da fonte","Full size image":"Imagem completa",Green:"Verde","Green marker":"Marcador verde","Green pen":"Caneta verde",Grey:"Cinza",Groove:"Ranhura","Header column":"Coluna de cabeçalho","Header row":"Linha de cabeçalho",Heading:"Titulo","Heading 1":"Título 1","Heading 2":"Título 2","Heading 3":"Título 3","Heading 4":"Título 4","Heading 5":"Título 5","Heading 6":"Título 6",Height:"Altura",HEX:"Hexadecimal",Highlight:"Marcador","Horizontal text alignment toolbar":"Ferramentas de alinhamento horizontal do texto","HTML object":"Objeto HTML",Huge:"Gigante","Image resize list":"Lista de redimensionamento de imagem","Image toolbar":"Ferramentas de Imagem","image widget":"Ferramenta de imagem","In line":"Na linha","Increase indent":"Aumentar recuo",Insert:"Inserir","Insert column left":"Inserir coluna à esquerda","Insert column right":"Inserir coluna à direita","Insert image":"Inserir imagem","Insert image via URL":"Inserir imagem via URL","Insert media":"Inserir mídia","Insert paragraph after block":"Inserir parágrafo após o bloco","Insert paragraph before block":"Inserir parágrafo antes do bloco","Insert row above":"Inserir linha acima","Insert row below":"Inserir linha abaixo","Insert table":"Inserir tabela",Inset:"Baixo relevo",Italic:"Itálico",Justify:"Justificar","Justify cell text":"Justificar texto da célula","Left aligned image":"Imagem alinhada à esquerda","Light blue":"Azul claro","Light green":"Verde claro","Light grey":"Cinza claro",Link:"Link","Link image":"Link com imagem","Link URL":"URL do link","List properties":"Propriedades da lista","Lower-latin":"Latim minúsculo","Lower–roman":"Romano minúsculo","Media toolbar":"Ferramentas de Mídia","Media URL":"URL da mídia","media widget":"Ferramenta de mídia","Merge cell down":"Mesclar abaixo","Merge cell left":"Mesclar à esquerda","Merge cell right":"Mesclar à direita","Merge cell up":"Mesclar acima","Merge cells":"Mesclar células",Next:"Próximo","No results found":"Nenhum resultado encontrado","No searchable items":"Sem itens pesquisáveis",None:"Sem borda","Numbered List":"Lista numerada","Numbered list styles toolbar":"Barra de ferramentas de estilos de lista numerada","Open in a new tab":"Abrir em nova aba","Open link in new tab":"Abrir link em nova aba","Open media in new tab":"Abrir mídia em nova aba",Orange:"Laranja",Original:"Original",Outset:"Alto relevo",Padding:"Margem interna",Paragraph:"Parágrafo","Paste the media URL in the input.":"Cole o endereço da mídia no campo.","Pink marker":"Marcador rosa","Press Enter to type after or press Shift + Enter to type before the widget":"Pressione Enter para digitar depois ou pressione Shift + Enter para digitar antes do widget",Previous:"Anterior",Purple:"Púrpura",Red:"Vermelho","Red pen":"Caneta vermelha",Redo:"Refazer","Remove color":"Remover cor","Remove highlight":"Remover marcação","Replace from computer":"Substituir do computador","Replace image":"Substituir imagem","Replace image from computer":"Substituir a imagem do computador","Resize image":"Redimensionar imagem","Resize image to %0":"Redimensionar a imagem para %0","Resize image to the original size":"Redimensionar a imagem para o tamanho original","Restore default":"Restaurar padrão","Reversed order":"Ordem inversa","Rich Text Editor":"Editor de Formatação",Ridge:"Crista","Right aligned image":"Imagem alinhada à direita",Row:"Linha",Save:"Salvar","Select all":"Selecionar tudo","Select column":"Selecionar coluna","Select row":"Selecionar linha","Show more items":"Exibir mais itens","Side image":"Imagem lateral",Small:"Pequeno",Solid:"Sólida",Source:"Código-Fonte","Split cell horizontally":"Dividir horizontalmente","Split cell vertically":"Dividir verticalmente",Square:"Quadrado","Start at":"Iniciar em","Start index must be greater than 0.":"O índice inicial deve ser maior que 0.",Strikethrough:"Tachado",Style:"Estilo",Subscript:"Subscrito",Superscript:"Sobrescrito","Table alignment toolbar":"Ferramentas de alinhamento da tabela","Table cell text alignment":"Alinhamento do texto na célula","Table properties":"Propriedades da tabela","Table toolbar":"Ferramentas de Tabela","Text alignment":"Alinhamento do texto","Text alignment toolbar":"Ferramentas de alinhamento de texto","Text alternative":"Texto alternativo","Text highlight toolbar":"Ferramentas de marcação",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'Cor inválida. Tente "#FF0000" ou "rgb(255,0,0)" ou "red"',"The URL must not be empty.":"A URL não pode ficar em branco.",'The value is invalid. Try "10px" or "2em" or simply "2".':'Valor inválido. Tente "10px" ou "2em" ou apenas "2"',"This link has no URL":"Este link não possui uma URL","This media URL is not supported.":"Esta URL de mídia não é suportada.",Tiny:"Minúsculo","Tip: Paste the URL into the content to embed faster.":"Cole o endereço dentro do conteúdo para embutir mais rapidamente.","To-do List":"Lista de Tarefas","Toggle caption off":"Desabilitar legenda","Toggle caption on":"Habilitar legenda","Toggle the circle list style":"Alternar o estilo da lista de círculo","Toggle the decimal list style":"Alternar o estilo de lista decimal","Toggle the decimal with leading zero list style":"Alternar o estilo de lista decimal com zero à esquerda","Toggle the disc list style":"Alternar o estilo da lista de disco","Toggle the lower–latin list style":"Alternar o estilo de lista latina minúscula","Toggle the lower–roman list style":"Alternar o estilo de lista romana minúscula","Toggle the square list style":"Alternar o estilo de lista quadrada","Toggle the upper–latin list style":"Alternar o estilo de lista latino maiúscula","Toggle the upper–roman list style":"Alternar o estilo de lista romana maiúscula",Turquoise:"Turquesa","Type or paste your content here.":"Digite ou cole o conteúdo aqui.","Type your title":"Digite o título",Underline:"Sublinhado",Undo:"Desfazer",Unlink:"Remover link",Update:"Atualizar","Update image URL":"Atualizar URL da imagem","Upload failed":"Falha ao enviar arquivo","Upload from computer":"Carregar do computador","Upload image from computer":"Carregar imagem do computador","Upload in progress":"Enviando dados","Upper-latin":"Latim maiúsculo","Upper-roman":"Romano maiúsculo","Vertical text alignment toolbar":"Ferramentas de alinhamento vertical do texto",White:"Branco","Widget toolbar":"Ferramentas de Widgets",Width:"Largura","Wrap text":"Texto ao redor",Yellow:"Amarelo","Yellow marker":"Marcador amarelo"}),ne.getPluralForm=function(te){return 0==te||1==te?0:0!=te&&te%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),self,re=()=>(()=>{var ie,re,le={8168:(te,ne,ie)=>{const re=ie(8874),le={};for(const te of Object.keys(re))le[re[te]]=te;const ce={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};te.exports=ce;for(const te of Object.keys(ce)){if(!("channels"in ce[te]))throw new Error("missing channels property: "+te);if(!("labels"in ce[te]))throw new Error("missing channel labels property: "+te);if(ce[te].labels.length!==ce[te].channels)throw new Error("channel and label counts mismatch: "+te);const{channels:ne,labels:ie}=ce[te];delete ce[te].channels,delete ce[te].labels,Object.defineProperty(ce[te],"channels",{value:ne}),Object.defineProperty(ce[te],"labels",{value:ie})}ce.rgb.hsl=function(te){const ne=te[0]/255,ie=te[1]/255,re=te[2]/255,le=Math.min(ne,ie,re),ce=Math.max(ne,ie,re),de=ce-le;let ue,me;ce===le?ue=0:ne===ce?ue=(ie-re)/de:ie===ce?ue=2+(re-ne)/de:re===ce&&(ue=4+(ne-ie)/de),ue=Math.min(60*ue,360),ue<0&&(ue+=360);const ge=(le+ce)/2;return me=ce===le?0:ge<=.5?de/(ce+le):de/(2-ce-le),[ue,100*me,100*ge]},ce.rgb.hsv=function(te){let ne,ie,re,le,ce;const de=te[0]/255,ue=te[1]/255,me=te[2]/255,ge=Math.max(de,ue,me),fe=ge-Math.min(de,ue,me),h=function(te){return(ge-te)/6/fe+.5};return 0===fe?(le=0,ce=0):(ce=fe/ge,ne=h(de),ie=h(ue),re=h(me),de===ge?le=re-ie:ue===ge?le=1/3+ne-re:me===ge&&(le=2/3+ie-ne),le<0?le+=1:le>1&&(le-=1)),[360*le,100*ce,100*ge]},ce.rgb.hwb=function(te){const ne=te[0],ie=te[1];let re=te[2];const le=ce.rgb.hsl(te)[0],de=1/255*Math.min(ne,Math.min(ie,re));return re=1-1/255*Math.max(ne,Math.max(ie,re)),[le,100*de,100*re]},ce.rgb.cmyk=function(te){const ne=te[0]/255,ie=te[1]/255,re=te[2]/255,le=Math.min(1-ne,1-ie,1-re);return[100*((1-ne-le)/(1-le)||0),100*((1-ie-le)/(1-le)||0),100*((1-re-le)/(1-le)||0),100*le]},ce.rgb.keyword=function(te){const ne=le[te];if(ne)return ne;let ie,ce=1/0;for(const ne of Object.keys(re)){const le=(ue=re[ne],((de=te)[0]-ue[0])**2+(de[1]-ue[1])**2+(de[2]-ue[2])**2);le<ce&&(ce=le,ie=ne)}var de,ue;return ie},ce.keyword.rgb=function(te){return re[te]},ce.rgb.xyz=function(te){let ne=te[0]/255,ie=te[1]/255,re=te[2]/255;return ne=ne>.04045?((ne+.055)/1.055)**2.4:ne/12.92,ie=ie>.04045?((ie+.055)/1.055)**2.4:ie/12.92,re=re>.04045?((re+.055)/1.055)**2.4:re/12.92,[100*(.4124*ne+.3576*ie+.1805*re),100*(.2126*ne+.7152*ie+.0722*re),100*(.0193*ne+.1192*ie+.9505*re)]},ce.rgb.lab=function(te){const ne=ce.rgb.xyz(te);let ie=ne[0],re=ne[1],le=ne[2];return ie/=95.047,re/=100,le/=108.883,ie=ie>.008856?ie**(1/3):7.787*ie+16/116,re=re>.008856?re**(1/3):7.787*re+16/116,le=le>.008856?le**(1/3):7.787*le+16/116,[116*re-16,500*(ie-re),200*(re-le)]},ce.hsl.rgb=function(te){const ne=te[0]/360,ie=te[1]/100,re=te[2]/100;let le,ce,de;if(0===ie)return de=255*re,[de,de,de];le=re<.5?re*(1+ie):re+ie-re*ie;const ue=2*re-le,me=[0,0,0];for(let te=0;te<3;te++)ce=ne+1/3*-(te-1),ce<0&&ce++,ce>1&&ce--,de=6*ce<1?ue+6*(le-ue)*ce:2*ce<1?le:3*ce<2?ue+(le-ue)*(2/3-ce)*6:ue,me[te]=255*de;return me},ce.hsl.hsv=function(te){const ne=te[0];let ie=te[1]/100,re=te[2]/100,le=ie;const ce=Math.max(re,.01);return re*=2,ie*=re<=1?re:2-re,le*=ce<=1?ce:2-ce,[ne,100*(0===re?2*le/(ce+le):2*ie/(re+ie)),(re+ie)/2*100]},ce.hsv.rgb=function(te){const ne=te[0]/60,ie=te[1]/100;let re=te[2]/100;const le=Math.floor(ne)%6,ce=ne-Math.floor(ne),de=255*re*(1-ie),ue=255*re*(1-ie*ce),me=255*re*(1-ie*(1-ce));switch(re*=255,le){case 0:return[re,me,de];case 1:return[ue,re,de];case 2:return[de,re,me];case 3:return[de,ue,re];case 4:return[me,de,re];case 5:return[re,de,ue]}},ce.hsv.hsl=function(te){const ne=te[0],ie=te[1]/100,re=te[2]/100,le=Math.max(re,.01);let ce,de;de=(2-ie)*re;const ue=(2-ie)*le;return ce=ie*le,ce/=ue<=1?ue:2-ue,ce=ce||0,de/=2,[ne,100*ce,100*de]},ce.hwb.rgb=function(te){const ne=te[0]/360;let ie=te[1]/100,re=te[2]/100;const le=ie+re;let ce;le>1&&(ie/=le,re/=le);const de=Math.floor(6*ne),ue=1-re;ce=6*ne-de,0!=(1&de)&&(ce=1-ce);const me=ie+ce*(ue-ie);let ge,fe,_e;switch(de){default:case 6:case 0:ge=ue,fe=me,_e=ie;break;case 1:ge=me,fe=ue,_e=ie;break;case 2:ge=ie,fe=ue,_e=me;break;case 3:ge=ie,fe=me,_e=ue;break;case 4:ge=me,fe=ie,_e=ue;break;case 5:ge=ue,fe=ie,_e=me}return[255*ge,255*fe,255*_e]},ce.cmyk.rgb=function(te){const ne=te[0]/100,ie=te[1]/100,re=te[2]/100,le=te[3]/100;return[255*(1-Math.min(1,ne*(1-le)+le)),255*(1-Math.min(1,ie*(1-le)+le)),255*(1-Math.min(1,re*(1-le)+le))]},ce.xyz.rgb=function(te){const ne=te[0]/100,ie=te[1]/100,re=te[2]/100;let le,ce,de;return le=3.2406*ne+-1.5372*ie+-.4986*re,ce=-.9689*ne+1.8758*ie+.0415*re,de=.0557*ne+-.204*ie+1.057*re,le=le>.0031308?1.055*le**(1/2.4)-.055:12.92*le,ce=ce>.0031308?1.055*ce**(1/2.4)-.055:12.92*ce,de=de>.0031308?1.055*de**(1/2.4)-.055:12.92*de,le=Math.min(Math.max(0,le),1),ce=Math.min(Math.max(0,ce),1),de=Math.min(Math.max(0,de),1),[255*le,255*ce,255*de]},ce.xyz.lab=function(te){let ne=te[0],ie=te[1],re=te[2];return ne/=95.047,ie/=100,re/=108.883,ne=ne>.008856?ne**(1/3):7.787*ne+16/116,ie=ie>.008856?ie**(1/3):7.787*ie+16/116,re=re>.008856?re**(1/3):7.787*re+16/116,[116*ie-16,500*(ne-ie),200*(ie-re)]},ce.lab.xyz=function(te){let ne,ie,re;ie=(te[0]+16)/116,ne=te[1]/500+ie,re=ie-te[2]/200;const le=ie**3,ce=ne**3,de=re**3;return ie=le>.008856?le:(ie-16/116)/7.787,ne=ce>.008856?ce:(ne-16/116)/7.787,re=de>.008856?de:(re-16/116)/7.787,ne*=95.047,ie*=100,re*=108.883,[ne,ie,re]},ce.lab.lch=function(te){const ne=te[0],ie=te[1],re=te[2];let le;return le=360*Math.atan2(re,ie)/2/Math.PI,le<0&&(le+=360),[ne,Math.sqrt(ie*ie+re*re),le]},ce.lch.lab=function(te){const ne=te[0],ie=te[1],re=te[2]/360*2*Math.PI;return[ne,ie*Math.cos(re),ie*Math.sin(re)]},ce.rgb.ansi16=function(te,ne=null){const[ie,re,le]=te;let de=null===ne?ce.rgb.hsv(te)[2]:ne;if(de=Math.round(de/50),0===de)return 30;let ue=30+(Math.round(le/255)<<2|Math.round(re/255)<<1|Math.round(ie/255));return 2===de&&(ue+=60),ue},ce.hsv.ansi16=function(te){return ce.rgb.ansi16(ce.hsv.rgb(te),te[2])},ce.rgb.ansi256=function(te){const ne=te[0],ie=te[1],re=te[2];return ne===ie&&ie===re?ne<8?16:ne>248?231:Math.round((ne-8)/247*24)+232:16+36*Math.round(ne/255*5)+6*Math.round(ie/255*5)+Math.round(re/255*5)},ce.ansi16.rgb=function(te){let ne=te%10;if(0===ne||7===ne)return te>50&&(ne+=3.5),ne=ne/10.5*255,[ne,ne,ne];const ie=.5*(1+~~(te>50));return[(1&ne)*ie*255,(ne>>1&1)*ie*255,(ne>>2&1)*ie*255]},ce.ansi256.rgb=function(te){if(te>=232){const ne=10*(te-232)+8;return[ne,ne,ne]}let ne;return te-=16,[Math.floor(te/36)/5*255,Math.floor((ne=te%36)/6)/5*255,ne%6/5*255]},ce.rgb.hex=function(te){const ne=(((255&Math.round(te[0]))<<16)+((255&Math.round(te[1]))<<8)+(255&Math.round(te[2]))).toString(16).toUpperCase();return"000000".substring(ne.length)+ne},ce.hex.rgb=function(te){const ne=te.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!ne)return[0,0,0];let ie=ne[0];3===ne[0].length&&(ie=ie.split("").map((te=>te+te)).join(""));const re=parseInt(ie,16);return[re>>16&255,re>>8&255,255&re]},ce.rgb.hcg=function(te){const ne=te[0]/255,ie=te[1]/255,re=te[2]/255,le=Math.max(Math.max(ne,ie),re),ce=Math.min(Math.min(ne,ie),re),de=le-ce;let ue,me;return ue=de<1?ce/(1-de):0,me=de<=0?0:le===ne?(ie-re)/de%6:le===ie?2+(re-ne)/de:4+(ne-ie)/de,me/=6,me%=1,[360*me,100*de,100*ue]},ce.hsl.hcg=function(te){const ne=te[1]/100,ie=te[2]/100,re=ie<.5?2*ne*ie:2*ne*(1-ie);let le=0;return re<1&&(le=(ie-.5*re)/(1-re)),[te[0],100*re,100*le]},ce.hsv.hcg=function(te){const ne=te[1]/100,ie=te[2]/100,re=ne*ie;let le=0;return re<1&&(le=(ie-re)/(1-re)),[te[0],100*re,100*le]},ce.hcg.rgb=function(te){const ne=te[0]/360,ie=te[1]/100,re=te[2]/100;if(0===ie)return[255*re,255*re,255*re];const le=[0,0,0],ce=ne%1*6,de=ce%1,ue=1-de;let me=0;switch(Math.floor(ce)){case 0:le[0]=1,le[1]=de,le[2]=0;break;case 1:le[0]=ue,le[1]=1,le[2]=0;break;case 2:le[0]=0,le[1]=1,le[2]=de;break;case 3:le[0]=0,le[1]=ue,le[2]=1;break;case 4:le[0]=de,le[1]=0,le[2]=1;break;default:le[0]=1,le[1]=0,le[2]=ue}return me=(1-ie)*re,[255*(ie*le[0]+me),255*(ie*le[1]+me),255*(ie*le[2]+me)]},ce.hcg.hsv=function(te){const ne=te[1]/100,ie=ne+te[2]/100*(1-ne);let re=0;return ie>0&&(re=ne/ie),[te[0],100*re,100*ie]},ce.hcg.hsl=function(te){const ne=te[1]/100,ie=te[2]/100*(1-ne)+.5*ne;let re=0;return ie>0&&ie<.5?re=ne/(2*ie):ie>=.5&&ie<1&&(re=ne/(2*(1-ie))),[te[0],100*re,100*ie]},ce.hcg.hwb=function(te){const ne=te[1]/100,ie=ne+te[2]/100*(1-ne);return[te[0],100*(ie-ne),100*(1-ie)]},ce.hwb.hcg=function(te){const ne=te[1]/100,ie=1-te[2]/100,re=ie-ne;let le=0;return re<1&&(le=(ie-re)/(1-re)),[te[0],100*re,100*le]},ce.apple.rgb=function(te){return[te[0]/65535*255,te[1]/65535*255,te[2]/65535*255]},ce.rgb.apple=function(te){return[te[0]/255*65535,te[1]/255*65535,te[2]/255*65535]},ce.gray.rgb=function(te){return[te[0]/100*255,te[0]/100*255,te[0]/100*255]},ce.gray.hsl=function(te){return[0,0,te[0]]},ce.gray.hsv=ce.gray.hsl,ce.gray.hwb=function(te){return[0,100,te[0]]},ce.gray.cmyk=function(te){return[0,0,0,te[0]]},ce.gray.lab=function(te){return[te[0],0,0]},ce.gray.hex=function(te){const ne=255&Math.round(te[0]/100*255),ie=((ne<<16)+(ne<<8)+ne).toString(16).toUpperCase();return"000000".substring(ie.length)+ie},ce.rgb.gray=function(te){return[(te[0]+te[1]+te[2])/3/255*100]}},2085:(te,ne,ie)=>{const re=ie(8168),le=ie(4111),ce={};Object.keys(re).forEach((te=>{ce[te]={},Object.defineProperty(ce[te],"channels",{value:re[te].channels}),Object.defineProperty(ce[te],"labels",{value:re[te].labels});const ne=le(te);Object.keys(ne).forEach((ie=>{const re=ne[ie];ce[te][ie]=function(te){const e=function(...ne){const ie=ne[0];if(null==ie)return ie;ie.length>1&&(ne=ie);const re=te(ne);if("object"==typeof re)for(let te=re.length,ne=0;ne<te;ne++)re[ne]=Math.round(re[ne]);return re};return"conversion"in te&&(e.conversion=te.conversion),e}(re),ce[te][ie].raw=function(te){const e=function(...ne){const ie=ne[0];return null==ie?ie:(ie.length>1&&(ne=ie),te(ne))};return"conversion"in te&&(e.conversion=te.conversion),e}(re)}))})),te.exports=ce},4111:(te,ne,ie)=>{const re=ie(8168);function i(te){const ne=function(){const te={},ne=Object.keys(re);for(let ie=ne.length,re=0;re<ie;re++)te[ne[re]]={distance:-1,parent:null};return te}(),ie=[te];for(ne[te].distance=0;ie.length;){const te=ie.pop(),le=Object.keys(re[te]);for(let re=le.length,ce=0;ce<re;ce++){const re=le[ce],de=ne[re];-1===de.distance&&(de.distance=ne[te].distance+1,de.parent=te,ie.unshift(re))}}return ne}function r(te,ne){return function(ie){return ne(te(ie))}}function s(te,ne){const ie=[ne[te].parent,te];let le=re[ne[te].parent][te],ce=ne[te].parent;for(;ne[ce].parent;)ie.unshift(ne[ce].parent),le=r(re[ne[ce].parent][ce],le),ce=ne[ce].parent;return le.conversion=ie,le}te.exports=function(te){const ne=i(te),ie={},re=Object.keys(ne);for(let te=re.length,le=0;le<te;le++){const te=re[le];null!==ne[te].parent&&(ie[te]=s(te,ne))}return ie}},8874:te=>{"use strict";te.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},5363:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected  {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const ue=de},3789:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const ue=de},799:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-clipboard/theme/clipboard.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-style: solid;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tleft: -1px;\n\n\t\t\tborder-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tright: -1px;\n\n\t\t\tborder-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},3624:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-panel)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the <body>, etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-panel);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},7372:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const ue=de},5037:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const ue=de},5991:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: .7em;\n\t}\n\n\t& .text-small {\n\t\tfont-size: .85em;\n\t}\n\n\t& .text-big {\n\t\tfont-size: 1.4em;\n\t}\n\n\t& .text-huge {\n\t\tfont-size: 1.8em;\n\t}\n}\n'],sourceRoot:""}]);const ue=de},4249:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-heading/theme/heading.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},7263:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-highlight-marker-yellow:#fdfd77;--ck-highlight-marker-green:#62f962;--ck-highlight-marker-pink:#fc7899;--ck-highlight-marker-blue:#72ccfd;--ck-highlight-pen-red:#e71313;--ck-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{background-color:transparent;color:var(--ck-highlight-pen-red)}.ck-content .pen-green{background-color:transparent;color:var(--ck-highlight-pen-green)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-highlight/theme/highlight.css"],names:[],mappings:"AAKA,MACC,oCAA+C,CAC/C,mCAA+C,CAC/C,kCAA8C,CAC9C,kCAA8C,CAC9C,8BAAwC,CACxC,gCACD,CAGC,2BACC,kDACD,CAFA,0BACC,iDACD,CAFA,yBACC,gDACD,CAFA,yBACC,gDACD,CAIA,qBAIC,4BAA6B,CAH7B,iCAID,CALA,uBAIC,4BAA6B,CAH7B,mCAID",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n@define-mixin highlight-marker-color $color {\n\t.ck-content .marker-$color {\n\t\tbackground-color: var(--ck-highlight-marker-$color);\n\t}\n}\n\n@define-mixin highlight-pen-color $color {\n\t.ck-content .pen-$color {\n\t\tcolor: var(--ck-highlight-pen-$color);\n\n\t\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n}\n\n@mixin highlight-marker-color yellow;\n@mixin highlight-marker-color green;\n@mixin highlight-marker-color pink;\n@mixin highlight-marker-color blue;\n\n@mixin highlight-pen-color red;\n@mixin highlight-pen-color green;\n"],sourceRoot:""}]);const ue=de},1710:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-html-object-embed-unfocused-outline-width:1px}.ck-widget.html-object-embed{background-color:var(--ck-color-base-foreground);font-size:var(--ck-font-size-base);min-width:calc(76px + var(--ck-spacing-standard));padding:var(--ck-spacing-small);padding-top:calc(var(--ck-font-size-tiny) + var(--ck-spacing-large))}.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.html-object-embed:before{background:#999;border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);content:attr(data-html-object-embed-label);font-family:var(--ck-font-face);font-size:var(--ck-font-size-tiny);font-style:normal;font-weight:400;left:var(--ck-spacing-standard);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);position:absolute;top:0;transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck-widget.html-object-embed .html-object-embed__content{pointer-events:none}div.ck-widget.html-object-embed{margin:1em auto}span.ck-widget.html-object-embed{display:inline-block}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-html-support/theme/datafilter.css"],names:[],mappings:"AAKA,MACC,kDACD,CAEA,6BAEC,gDAAiD,CADjD,kCAAmC,CAKnC,iDAAkD,CAHlD,+BAAgC,CAEhC,oEAgCD,CA7BC,kEACC,wGACD,CAEA,oCAOC,eAA4B,CAG5B,iEAAkE,CAClE,qCAAsC,CAPtC,0CAA2C,CAS3C,+BAAgC,CADhC,kCAAmC,CAVnC,iBAAkB,CADlB,eAAmB,CAKnB,+BAAgC,CAGhC,yIAA0I,CAN1I,iBAAkB,CAElB,KAAM,CAGN,0GAMD,CAGA,2HACC,gBACD,CAEA,yDAEC,mBACD,CAGD,gCACC,eACD,CAEA,iCACC,oBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-html-object-embed-unfocused-outline-width: 1px;\n}\n\n.ck-widget.html-object-embed {\n\tfont-size: var(--ck-font-size-base);\n\tbackground-color: var(--ck-color-base-foreground);\n\tpadding: var(--ck-spacing-small);\n\t/* Leave space for label */\n\tpadding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\n\tmin-width: calc(76px + var(--ck-spacing-standard));\n\n\t&:not(.ck-widget_selected):not(:hover) {\n\t\toutline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n\t}\n\n\t&::before {\n\t\tfont-weight: normal;\n\t\tfont-style: normal;\n\t\tposition: absolute;\n\t\tcontent: attr(data-html-object-embed-label);\n\t\ttop: 0;\n\t\tleft: var(--ck-spacing-standard);\n\t\tbackground: hsl(0deg 0% 60%);\n\t\ttransition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\t\tpadding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\tcolor: var(--ck-color-base-background);\n\t\tfont-size: var(--ck-font-size-tiny);\n\t\tfont-family: var(--ck-font-face);\n\t}\n\n\t/* Make space for label. */\n\t& .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n\t\tmargin-left: 50px;\n\t}\n\n\t& .html-object-embed__content {\n\t\t/* Disable user interaction with embed content */\n\t\tpointer-events: none;\n\t}\n}\n\ndiv.ck-widget.html-object-embed {\n\tmargin: 1em auto;\n}\n\nspan.ck-widget.html-object-embed {\n\tdisplay: inline-block;\n}\n\n"],sourceRoot:""}]);const ue=de},2430:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%;\n\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t\t\theight: auto;\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the <figcaption> in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of <figcaption>.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\t\t}\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image-inline {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected inline image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\n\t\t\t/*\n\t\t\t * Make sure the native browser selection style is not displayed.\n\t\t\t * Inline image widgets have their own styles for the selected state and\n\t\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t\t */\n\t\t\t& ::selection {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t& .image-inline img {\n\t\theight: auto;\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const ue=de},2423:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const ue=de},8879:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;padding:var(--ck-list-button-padding);width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible,.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageinsert.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css"],names:[],mappings:"AAMC,yDACC,YAAa,CACb,mCACD,CCFD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CAEd,qCAAsC,CADtC,UAUD,CAZA,iDAME,eAMF,CAZA,iDAUE,gBAEF,CAGC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,6FAJC,oDAOD,CAHA,iDAEC,+BACD,CAEA,+BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-url {\n\t& .ck-image-insert-url__action-row {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(2, 1fr);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-image-insert-insert-by-url-width: 250px;\n}\n\n.ck.ck-image-insert-url {\n\t--ck-input-width: 100%;\n\n\t& .ck-image-insert-url__action-row {\n\t\tgrid-column-gap: var(--ck-spacing-large);\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n\n.ck.ck-image-insert-form {\n\t& > .ck.ck-button {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\tpadding: var(--ck-list-button-padding);\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& > .ck.ck-collapsible {\n\t\t&:not(:first-child) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t&:not(:last-child) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\n\t}\n\n\t/* This is the case when there are no other integrations configured than insert by URL */\n\t& > .ck.ck-image-insert-url {\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\n\t\tpadding: var(--ck-spacing-large);\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n'],sourceRoot:""}]);const ue=de},31:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageplaceholder.css"],names:[],mappings:"AAMC,8CACC,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& img.image_placeholder {\n\t\tbackground-size: 100% 100%;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},2400:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\n.ck-content img.image_resized {\n\theight: auto;\n}\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `<figure>` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const ue=de},3534:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},1547:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const ue=de},6618:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const ue=de},2926:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto   { opacity: 1; }\n}\n"],sourceRoot:""}]);const ue=de},5269:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},3925:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const ue=de},7536:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const ue=de},4874:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const ue=de},4330:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkimage.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const ue=de},3190:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const ue=de},4784:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},9938:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},2591:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/liststyles.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const ue=de},9292:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n\t-webkit-appearance: none;\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: var(--ck-todo-list-checkmark-size);\n\theight: var(--ck-todo-list-checkmark-size);\n\tvertical-align: middle;\n\n\t/* Needed on iOS */\n\tborder: 0;\n\n\t/* LTR styles */\n\tleft: -25px;\n\tmargin-right: -15px;\n\tright: 0;\n\tmargin-left: 0;\n\n\t/* RTL styles */\n\t@nest [dir=rtl]& {\n\t\tleft: 0;\n\t\tmargin-right: 0;\n\t\tright: -25px;\n\t\tmargin-left: -15px;\n\t}\n\n\t&::before {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: border-box;\n\t\tcontent: '';\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\tborder-radius: 2px;\n\t\ttransition: 250ms ease-in-out box-shadow;\n\t}\n\n\t&::after {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: content-box;\n\t\tpointer-events: none;\n\t\tcontent: '';\n\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\tborder-style: solid;\n\t\tborder-color: transparent;\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\ttransform: rotate(45deg);\n\t}\n\n\t&[checked] {\n\t\t&::before {\n\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t}\n\t}\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tposition: relative;\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t@mixin todo-list-checkbox;\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&.todo-list__label_without-description input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n\t/*\n\t * To-do list should be interactive only during the editing\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\n\t */\n\t& > input,\n\t& > span[contenteditable=false] > input {\n\t\tcursor: pointer;\n\n\t\t&:hover::before {\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t\t}\n\t}\n\n\t/*\n\t * Document Lists - editing view has an additional span around checkbox.\n\t */\n\t& > span[contenteditable=false] > input {\n\t\t@mixin todo-list-checkbox;\n\t}\n\n\t&.todo-list__label_without-description {\n\t\t& input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},8705:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const ue=de},1922:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read–only.\n   https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n   https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const ue=de},7138:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},4420:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,'.ck-source-editing-area{overflow:hidden;position:relative}.ck-source-editing-area textarea,.ck-source-editing-area:after{border:1px solid transparent;font-family:monospace;font-size:var(--ck-font-size-normal);line-height:var(--ck-line-height-base);margin:0;padding:var(--ck-spacing-large);white-space:pre-wrap}.ck-source-editing-area:after{content:attr(data-value) " ";display:block;visibility:hidden}.ck-source-editing-area textarea{border-color:var(--ck-color-base-border);border-radius:0;box-sizing:border-box;height:100%;outline:none;overflow:hidden;position:absolute;resize:none;width:100%}.ck-rounded-corners .ck-source-editing-area textarea,.ck-source-editing-area textarea.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck-source-editing-area textarea:not([readonly]):focus{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-source-editing/theme/sourceediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,wBAEC,eAAgB,CADhB,iBAED,CAEA,+DAIC,4BAA6B,CAG7B,qBAAsB,CADtB,oCAAqC,CADrC,sCAAuC,CAFvC,QAAS,CADT,+BAAgC,CAMhC,oBACD,CAEA,8BACC,4BAA6B,CAE7B,aAAc,CADd,iBAED,CAEA,iCASC,wCAAyC,CC7BzC,eAAgB,CD2BhB,qBAAsB,CAJtB,WAAY,CAEZ,YAAa,CACb,eAAgB,CALhB,iBAAkB,CAGlB,WAAY,CAFZ,UAkBD,CApBA,yGChBE,qCAAsC,CD4BtC,wBAAyB,CACzB,yBAOF,CAJC,uDEpCA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFwCA",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck-source-editing-area {\n\tposition: relative;\n\toverflow: hidden;\n}\n\n.ck-source-editing-area::after,\n.ck-source-editing-area textarea {\n\tpadding: var(--ck-spacing-large);\n\tmargin: 0;\n\tborder: 1px solid transparent;\n\tline-height: var(--ck-line-height-base);\n\tfont-size: var(--ck-font-size-normal);\n\tfont-family: monospace;\n\twhite-space: pre-wrap;\n}\n\n.ck-source-editing-area::after {\n\tcontent: attr(data-value) " ";\n\tvisibility: hidden;\n\tdisplay: block;\n}\n\n.ck-source-editing-area textarea {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tresize: none;\n\toutline: none;\n\toverflow: hidden;\n\tbox-sizing: border-box;\n\n\tborder-color: var(--ck-color-base-border);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not([readonly]):focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const ue=de},9953:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t   outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},7502:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},6908:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/formrow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const ue=de},468:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const ue=de},2510:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent <figure>. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const ue=de},1111:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const ue=de},3964:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecellproperties.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},7176:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t   The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n   all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t   it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t   it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t   unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const ue=de},8361:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},9429:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},6596:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableproperties.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},1546:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},3290:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"],names:[],mappings:"AAKA,2BAEC,aAAc,CADd,iBAAkB,CAElB,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-aria-live-announcer {\n\tposition: absolute;\n\tleft: -10000px;\n\ttop: -10000px;\n}\n"],sourceRoot:""}]);const ue=de},4029:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-panel)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-autocomplete {\n\tposition: relative;\n\n\t& > .ck-search__results {\n\t\tposition: absolute;\n\t\tz-index: var(--ck-z-panel);\n\n\t\t&.ck-search__results_n {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck.ck-autocomplete {\n\t& > .ck-search__results {\n\t\t@mixin ck-rounded-corners;\n\t\t@mixin ck-drop-shadow;\n\n\t\tmax-height: 200px;\n\t\toverflow-y: auto;\n\t\tbackground: var(--ck-color-base-background);\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\t\tmin-width: auto;\n\n\t\t&.ck-search__results_n {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-bottom: -1px;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-top-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-top: -1px;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const ue=de},4971:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CA9BA,iDASE,oBAqBF,CA9BA,iDAaE,qBAiBF,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEzBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n@import "../../mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\n\t@mixin ck-dir ltr {\n\t\tjustify-content: left;\n\t}\n\n\t@mixin ck-dir rtl {\n\t\tjustify-content: right;\n\t}\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text)  {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const ue=de},7258:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const ue=de},4095:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-list-button-padding);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,qCAAsC,CAFtC,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-list-button-padding);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},4923:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-selector__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const ue=de},4257:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const ue=de},6306:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const ue=de},2105:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-dialog-overlay{bottom:0;left:0;overscroll-behavior:none;position:fixed;right:0;top:0;user-select:none}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent{animation:none;background:none;pointer-events:none}.ck.ck-dialog{overscroll-behavior:none;position:absolute;width:fit-content}.ck.ck-dialog .ck.ck-form__header{flex-shrink:0}.ck.ck-dialog .ck.ck-form__header .ck-form__header__label{cursor:grab}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent .ck.ck-dialog{pointer-events:all}:root{--ck-dialog-overlay-background-color:rgba(0,0,0,.5);--ck-dialog-drop-shadow:0px 0px 6px 2px rgba(0,0,0,.15);--ck-dialog-max-width:100vw;--ck-dialog-max-height:90vh}.ck.ck-dialog-overlay{animation:ck-dialog-fade-in .3s;background:var(--ck-dialog-overlay-background-color);z-index:var(--ck-z-dialog)}.ck.ck-dialog{border-radius:0}.ck-rounded-corners .ck.ck-dialog,.ck.ck-dialog.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dialog{--ck-drop-shadow:var(--ck-dialog-drop-shadow);background:var(--ck-color-base-background);border:1px solid var(--ck-color-base-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:var(--ck-dialog-max-height);max-width:var(--ck-dialog-max-width)}@keyframes ck-dialog-fade-in{0%{background:transparent}to{background:var(--ck-dialog-overlay-background-color)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dialog/dialog.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialog.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,sBAKC,QAAS,CACT,MAAO,CAJP,wBAAyB,CAEzB,cAAe,CAGf,OAAQ,CACR,KAAM,CAPN,gBAcD,CALC,qDAEC,cAAe,CACf,eAAgB,CAFhB,mBAGD,CAGD,cACC,wBAAyB,CAEzB,iBAAkB,CADlB,iBAcD,CAXC,kCACC,aAKD,CAHC,0DACC,WACD,CAVF,mEAcE,kBAEF,CC7BA,MACC,mDAA2D,CAC3D,uDAA8D,CAC9D,2BAA4B,CAC5B,2BACD,CAEA,sBACC,+BAAgC,CAChC,oDAAqD,CACrD,0BACD,CAEA,cCXC,eDqBD,CAVA,mECPE,qCDiBF,CAVA,cAIC,6CAA8C,CAE9C,0CAA2C,CAG3C,4CAA6C,CEtB7C,oCAA8B,CFoB9B,sCAAuC,CACvC,oCAED,CAEA,6BACC,GACC,sBACD,CAEA,GACC,oDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-dialog-overlay {\n\tuser-select: none;\n\toverscroll-behavior: none;\n\n\tposition: fixed;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\ttop: 0;\n\n\t&.ck-dialog-overlay__transparent {\n\t\tpointer-events: none;\n\t\tanimation: none;\n\t\tbackground: none;\n\t}\n}\n\n.ck.ck-dialog {\n\toverscroll-behavior: none;\n\twidth: fit-content;\n\tposition: absolute;\n\n\t& .ck.ck-form__header  {\n\t\tflex-shrink: 0;\n\n\t\t& .ck-form__header__label {\n\t\t\tcursor: grab;\n\t\t}\n\t}\n\n\t@nest .ck.ck-dialog-overlay.ck-dialog-overlay__transparent & {\n\t\tpointer-events: all;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n:root {\n\t--ck-dialog-overlay-background-color: hsla( 0, 0%, 0%, .5 );\n\t--ck-dialog-drop-shadow: 0px 0px 6px 2px hsl(0deg 0% 0% / 15%);\n\t--ck-dialog-max-width: 100vw;\n\t--ck-dialog-max-height: 90vh;\n}\n\n.ck.ck-dialog-overlay {\n\tanimation: ck-dialog-fade-in .3s;\n\tbackground: var(--ck-dialog-overlay-background-color);\n\tz-index: var(--ck-z-dialog);\n}\n\n.ck.ck-dialog {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\t--ck-drop-shadow: var(--ck-dialog-drop-shadow);\n\n\tbackground: var(--ck-color-base-background);\n\tmax-height: var(--ck-dialog-max-height);\n\tmax-width: var(--ck-dialog-max-width);\n\tborder: 1px solid var(--ck-color-base-border);\n}\n\n@keyframes ck-dialog-fade-in {\n\t0% {\n\t\tbackground: hsla( 0, 0%, 0%, 0 );\n\t}\n\n\t100% {\n\t\tbackground: var(--ck-dialog-overlay-background-color);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const ue=de},1043:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-dialog .ck.ck-dialog__actions{display:flex;justify-content:flex-end;padding:var(--ck-spacing-large)}.ck.ck-dialog .ck.ck-dialog__actions>*+*{margin-left:var(--ck-spacing-large)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dialog/dialogactions.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialogactions.css"],names:[],mappings:"AAMC,qCACC,YAAa,CACb,wBAAyB,CCDzB,+BDED,CCAC,yCACC,mCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-dialog {\n\t& .ck.ck-dialog__actions {\n\t\tdisplay: flex;\n\t\tjustify-content: flex-end;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-dialog {\n\t& .ck.ck-dialog__actions {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * + * {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const ue=de},5062:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-panel);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-panel) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},1883:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},4791:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},2704:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const ue=de},9847:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const ue=de},1874:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:44px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header>.ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header>.ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{--ck-font-size-base:15px;font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAmBD,CAdC,uCAEE,qCAMF,CARA,uCAME,oCAEF,CAEA,4CACC,wBAAyB,CACzB,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t& h2.ck-form__header__label {\n\t\tflex-grow: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-form-header-height: 44px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& > .ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-medium);\n\t\t}\n\t}\n\n\t& .ck-form__header__label {\n\t\t--ck-font-size-base: 15px;\n\t\tfont-weight: bold;\n\t}\n}\n'],sourceRoot:""}]);const ue=de},4746:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-highlighted-text mark {\n\tbackground: var(--ck-color-highlight-background);\n\tvertical-align: initial;\n\tfont-weight: inherit;\n\tline-height: inherit;\n\tfont-size: inherit;\n}\n"],sourceRoot:""}]);const ue=de},1977:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const ue=de},2470:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const ue=de},3525:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const ue=de},2933:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0;transform:translate(calc(var(--ck-spacing-medium)*-1),-6px) scale(.75);transform-origin:100% 0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD+GD,CA1GA,2FCDE,qCD2GF,CAvGC,mEACC,UAoCD,CAlCC,gFACC,KAgCD,CAjCA,0FAIE,MAAS,CAGT,6DAA+D,CAF/D,oBA4BF,CAjCA,0FAWE,OAAU,CAEV,sEAA0E,CAD1E,uBAqBF,CAjCA,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAKvB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,4WAGE,+HAYF,CAfA,4WAOE,wIAQF,CAfA,wVAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t\ttransform-origin: 100% 0;\n\t\t\t\ttransform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},179:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}:root{--ck-list-button-padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list__item .ck-button{text-align:left}[dir=rtl] .ck.ck-list__item .ck-button{text-align:right}.ck.ck-list__item .ck-button{padding:var(--ck-list-button-padding)}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,MACC,oJAGD,CAEA,YCLC,eDUD,CALA,+DCDE,qCDMF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cAgED,CA9DC,6BAGC,eAAgB,CAFhB,gBAAiB,CACjB,UA6CD,CA/CA,uCAME,eAyCF,CA/CA,uCAUE,gBAqCF,CA/CA,6BAgBC,qCA+BD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,mCACC,cAAe,CACf,eAAiB,CACjB,oFACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-list-button-padding:\n\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n}\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\tborder-radius: 0;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t   because e.g. different heading styles may have different height\n\t\t   https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding: var(--ck-list-button-padding);\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-list .ck-list__group {\n\tpadding-top: var(--ck-spacing-medium);\n\n\t/* The group should have a border when it\'s not the first item. */\n\t*:not(.ck-hidden) ~ & {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& > .ck-label {\n\t\tfont-size: 11px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium);\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},4460:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-panel)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-panel);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const ue=de},7592:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},6356:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-panel) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-panel) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const ue=de},3707:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-panel)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-panel); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const ue=de},6603:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const ue=de},9332:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/search/search.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-search__reset {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\t& > .ck-search__info {\n\t\t\t& > span:first-child {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t/* Hide the filtered view when nothing was found */\n\t\t\t&:not(.ck-hidden) ~ * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&.ck-search__query_with-icon {\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\t\topacity: .5;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-search__query_with-reset {\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t&.ck-labeled-field-view_empty {\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& .ck-search__reset {\n\t\t\t\tmin-width: auto;\n\t\t\t\tmin-height: auto;\n\n\t\t\t\tbackground: none;\n\t\t\t\topacity: .5;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t&:hover {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tmin-width: 100%;\n\n\t\t& > .ck-search__info {\n\t\t\twidth: 100%;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& * {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\n\t\t\t& > span:first-child {\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\n\t\t\t& > span:last-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const ue=de},6446:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\tdisplay: block;\n\tposition: relative;\n}\n\n.ck.ck-spinner {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 auto;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tanimation: 1.5s infinite rotate linear;\n}\n\n.ck.ck-spinner {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-color-text);\n\tborder-top-color: transparent;\n}\n\n@keyframes rotate {\n\tto {\n\t\ttransform: rotate(360deg)\n\t}\n}\n\n"],sourceRoot:""}]);const ue=de},5224:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\n * This bug is especially visible when rows=1.\n */\n.ck-textarea {\n\toverflow-x: hidden\n}\n"],sourceRoot:""}]);const ue=de},4176:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const ue=de},4768:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const ue=de},3888:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-dialog) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,sCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-dialog) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-tooltip-text-padding: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\n\t\twhite-space: break-spaces;\n\t\tdisplay: inline-block;\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const ue=de},5167:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-panel:calc(var(--ck-z-default) + 999);--ck-z-dialog:9999}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-panel) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-color-light-red:#fcc;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_poweredby.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CAA+C,CAC/C,kBACD,CCDA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAyD,CAIzD,yBAAgD,CC3GhD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJ2GD,CIrGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-panel: calc( var(--ck-z-default) + 999 );\n\t--ck-z-dialog: 9999;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-panel) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------- */\n\n\t--ck-color-light-red:\t\t\t\t\t\t\t\t\t\thsl(0, 100%, 90%);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const ue=de},7153:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t   * background-color for the .ck-widget_selected state change,\n\t\t   * visibility for hiding the handler,\n\t\t   * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const ue=de},4875:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const ue=de},2347:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue});var re=ie(4015),le=ie.n(re),ce=ie(3645),de=ie.n(ce)()(le());de.push([te.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const ue=de},3645:te=>{"use strict";te.exports=function(te){var ne=[];return ne.toString=function(){return this.map((function(ne){var ie=te(ne);return ne[2]?"@media ".concat(ne[2]," {").concat(ie,"}"):ie})).join("")},ne.i=function(te,ie,re){"string"==typeof te&&(te=[[null,te,""]]);var le={};if(re)for(var ce=0;ce<this.length;ce++){var de=this[ce][0];null!=de&&(le[de]=!0)}for(var ue=0;ue<te.length;ue++){var me=[].concat(te[ue]);re&&le[me[0]]||(ie&&(me[2]?me[2]="".concat(ie," and ").concat(me[2]):me[2]=ie),ne.push(me))}},ne}},4015:te=>{"use strict";function e(te,ne){return function(te){if(Array.isArray(te))return te}(te)||function(te,ne){var ie=te&&("undefined"!=typeof Symbol&&te[Symbol.iterator]||te["@@iterator"]);if(null!=ie){var re,le,ce=[],de=!0,ue=!1;try{for(ie=ie.call(te);!(de=(re=ie.next()).done)&&(ce.push(re.value),!ne||ce.length!==ne);de=!0);}catch(te){ue=!0,le=te}finally{try{de||null==ie.return||ie.return()}finally{if(ue)throw le}}return ce}}(te,ne)||function(te,ne){if(te){if("string"==typeof te)return n(te,ne);var ie=Object.prototype.toString.call(te).slice(8,-1);return"Object"===ie&&te.constructor&&(ie=te.constructor.name),"Map"===ie||"Set"===ie?Array.from(te):"Arguments"===ie||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie)?n(te,ne):void 0}}(te,ne)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(te,ne){(null==ne||ne>te.length)&&(ne=te.length);for(var ie=0,re=new Array(ne);ie<ne;ie++)re[ie]=te[ie];return re}te.exports=function(te){var ne=e(te,4),ie=ne[1],re=ne[3];if(!re)return ie;if("function"==typeof btoa){var le=btoa(unescape(encodeURIComponent(JSON.stringify(re)))),ce="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(le),de="/*# ".concat(ce," */"),ue=re.sources.map((function(te){return"/*# sourceURL=".concat(re.sourceRoot||"").concat(te," */")}));return[ie].concat(ue).concat([de]).join("\n")}return[ie].join("\n")}},3379:(te,ne,ie)=>{"use strict";var re,le=function(){var te={};return function(ne){if(void 0===te[ne]){var ie=document.querySelector(ne);if(window.HTMLIFrameElement&&ie instanceof window.HTMLIFrameElement)try{ie=ie.contentDocument.head}catch(te){ie=null}te[ne]=ie}return te[ne]}}(),ce=[];function a(te){for(var ne=-1,ie=0;ie<ce.length;ie++)if(ce[ie].identifier===te){ne=ie;break}return ne}function l(te,ne){for(var ie={},re=[],le=0;le<te.length;le++){var de=te[le],ue=ne.base?de[0]+ne.base:de[0],me=ie[ue]||0,ge="".concat(ue," ").concat(me);ie[ue]=me+1;var fe=a(ge),_e={css:de[1],media:de[2],sourceMap:de[3]};-1!==fe?(ce[fe].references++,ce[fe].updater(_e)):ce.push({identifier:ge,updater:f(_e,ne),references:1}),re.push(ge)}return re}function c(te){var ne=document.createElement("style"),re=te.attributes||{};if(void 0===re.nonce){var ce=ie.nc;ce&&(re.nonce=ce)}if(Object.keys(re).forEach((function(te){ne.setAttribute(te,re[te])})),"function"==typeof te.insert)te.insert(ne);else{var de=le(te.insert||"head");if(!de)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");de.appendChild(ne)}return ne}var de,ue=(de=[],function(te,ne){return de[te]=ne,de.filter(Boolean).join("\n")});function u(te,ne,ie,re){var le=ie?"":re.media?"@media ".concat(re.media," {").concat(re.css,"}"):re.css;if(te.styleSheet)te.styleSheet.cssText=ue(ne,le);else{var ce=document.createTextNode(le),de=te.childNodes;de[ne]&&te.removeChild(de[ne]),de.length?te.insertBefore(ce,de[ne]):te.appendChild(ce)}}function m(te,ne,ie){var re=ie.css,le=ie.media,ce=ie.sourceMap;if(le?te.setAttribute("media",le):te.removeAttribute("media"),ce&&"undefined"!=typeof btoa&&(re+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(ce))))," */")),te.styleSheet)te.styleSheet.cssText=re;else{for(;te.firstChild;)te.removeChild(te.firstChild);te.appendChild(document.createTextNode(re))}}var me=null,ge=0;function f(te,ne){var ie,re,le;if(ne.singleton){var ce=ge++;ie=me||(me=c(ne)),re=u.bind(null,ie,ce,!1),le=u.bind(null,ie,ce,!0)}else ie=c(ne),re=m.bind(null,ie,ne),le=function(){!function(te){if(null===te.parentNode)return!1;te.parentNode.removeChild(te)}(ie)};return re(te),function(ne){if(ne){if(ne.css===te.css&&ne.media===te.media&&ne.sourceMap===te.sourceMap)return;re(te=ne)}else le()}}te.exports=function(te,ne){(ne=ne||{}).singleton||"boolean"==typeof ne.singleton||(ne.singleton=(void 0===re&&(re=Boolean(window&&document&&document.all&&!window.atob)),re));var ie=l(te=te||[],ne);return function(te){if(te=te||[],"[object Array]"===Object.prototype.toString.call(te)){for(var re=0;re<ie.length;re++){var le=a(ie[re]);ce[le].references--}for(var de=l(te,ne),ue=0;ue<ie.length;ue++){var me=a(ie[ue]);0===ce[me].references&&(ce[me].updater(),ce.splice(me,1))}ie=de}}}}},ce={};function i(te){var ne=ce[te];if(void 0!==ne)return ne.exports;var ie=ce[te]={id:te,exports:{}};return le[te](ie,ie.exports,i),ie.exports}i.n=te=>{var ne=te&&te.__esModule?()=>te.default:()=>te;return i.d(ne,{a:ne}),ne},re=Object.getPrototypeOf?te=>Object.getPrototypeOf(te):te=>te.__proto__,i.t=function(te,ne){if(1&ne&&(te=this(te)),8&ne)return te;if("object"==typeof te&&te){if(4&ne&&te.__esModule)return te;if(16&ne&&"function"==typeof te.then)return te}var le=Object.create(null);i.r(le);var ce={};ie=ie||[null,re({}),re([]),re(re)];for(var de=2&ne&&te;"object"==typeof de&&!~ie.indexOf(de);de=re(de))Object.getOwnPropertyNames(de).forEach((ne=>ce[ne]=()=>te[ne]));return ce.default=()=>te,i.d(le,ce),le},i.d=(te,ne)=>{for(var ie in ne)i.o(ne,ie)&&!i.o(te,ie)&&Object.defineProperty(te,ie,{enumerable:!0,get:ne[ie]})},i.o=(te,ne)=>Object.prototype.hasOwnProperty.call(te,ne),i.r=te=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(te,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(te,"__esModule",{value:!0})},i.nc=void 0;var de={};return(()=>{"use strict";function t({emitter:te,activator:ne,callback:ie,contextElements:re}){te.listenTo(document,"mousedown",((te,le)=>{if(!ne())return;const ce="function"==typeof le.composedPath?le.composedPath():[],de="function"==typeof re?re():re;for(const te of de)if(te.contains(le.target)||ce.includes(te))return;ie()}))}function e(te){return class extends te{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...te){super(...te),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function n({view:te}){te.listenTo(te.element,"submit",((ne,ie)=>{ie.preventDefault(),te.fire("submit")}),{useCapture:!0})}function o({keystrokeHandler:te,focusTracker:ne,gridItems:ie,numberOfColumns:re,uiLanguageDirection:le}){const ce="number"==typeof re?()=>re:re;function s(te){return re=>{const le=ie.find((te=>te.element===ne.focusedElement)),ce=ie.getIndex(le),de=te(ce,ie);ie.get(de).focus(),re.stopPropagation(),re.preventDefault()}}function a(te,ne){return te===ne-1?0:te+1}function l(te,ne){return 0===te?ne-1:te-1}te.set("arrowright",s(((te,ne)=>"rtl"===le?l(te,ne.length):a(te,ne.length)))),te.set("arrowleft",s(((te,ne)=>"rtl"===le?a(te,ne.length):l(te,ne.length)))),te.set("arrowup",s(((te,ne)=>{let ie=te-ce();return ie<0&&(ie=te+ce()*Math.floor(ne.length/ce()),ie>ne.length-1&&(ie-=ce())),ie}))),te.set("arrowdown",s(((te,ne)=>{let ie=te+ce();return ie>ne.length-1&&(ie=te%ce()),ie})))}i.d(de,{default:()=>qy});const ie=function(){try{return navigator.userAgent.toLowerCase()}catch(te){return""}}(),re={isMac:c(ie),isWindows:function(te){return te.indexOf("windows")>-1}(ie),isGecko:function(te){return!!te.match(/gecko\/\d+/)}(ie),isSafari:function(te){return te.indexOf(" applewebkit/")>-1&&-1===te.indexOf("chrome")}(ie),isiOS:function(te){return!!te.match(/iphone|ipad/i)||c(te)&&navigator.maxTouchPoints>0}(ie),isAndroid:function(te){return te.indexOf("android")>-1}(ie),isBlink:function(te){return te.indexOf("chrome/")>-1&&te.indexOf("edge/")<0}(ie),features:{isRegExpUnicodePropertySupported:function(){let te=!1;try{te=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(te){}return te}()}},le=re;function c(te){return te.indexOf("macintosh")>-1}function d(te,ne,ie,re){ie=ie||function(te,ne){return te===ne};const le=Array.isArray(te)?te:Array.prototype.slice.call(te),ce=Array.isArray(ne)?ne:Array.prototype.slice.call(ne),de=function(te,ne,ie){const re=h(te,ne,ie);if(-1===re)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const le=h(u(te,re),u(ne,re),ie);return{firstIndex:re,lastIndexOld:te.length-le,lastIndexNew:ne.length-le}}(le,ce,ie),ue=re?function(te,ne){const{firstIndex:ie,lastIndexOld:re,lastIndexNew:le}=te;if(-1===ie)return Array(ne).fill("equal");let ce=[];return ie>0&&(ce=ce.concat(Array(ie).fill("equal"))),le-ie>0&&(ce=ce.concat(Array(le-ie).fill("insert"))),re-ie>0&&(ce=ce.concat(Array(re-ie).fill("delete"))),le<ne&&(ce=ce.concat(Array(ne-le).fill("equal"))),ce}(de,ce.length):function(te,ne){const ie=[],{firstIndex:re,lastIndexOld:le,lastIndexNew:ce}=ne;return ce-re>0&&ie.push({index:re,type:"insert",values:te.slice(re,ce)}),le-re>0&&ie.push({index:re+(ce-re),type:"delete",howMany:le-re}),ie}(ce,de);return ue}function h(te,ne,ie){for(let re=0;re<Math.max(te.length,ne.length);re++)if(void 0===te[re]||void 0===ne[re]||!ie(te[re],ne[re]))return re;return-1}function u(te,ne){return te.slice(ne).reverse()}function m(te,ne,ie){ie=ie||function(te,ne){return te===ne};const re=te.length,le=ne.length;if(re>200||le>200||re+le>300)return m.fastDiff(te,ne,ie,!0);let ce,de;if(le<re){const ie=te;te=ne,ne=ie,ce="delete",de="insert"}else ce="insert",de="delete";const ue=te.length,me=ne.length,ge=me-ue,fe={},_e={};function u(re){const le=(void 0!==_e[re-1]?_e[re-1]:-1)+1,ge=void 0!==_e[re+1]?_e[re+1]:-1,be=le>ge?-1:1;fe[re+be]&&(fe[re]=fe[re+be].slice(0)),fe[re]||(fe[re]=[]),fe[re].push(le>ge?ce:de);let Ce=Math.max(le,ge),ye=Ce-re;for(;ye<ue&&Ce<me&&ie(te[ye],ne[Ce]);)ye++,Ce++,fe[re].push("equal");return Ce}let be,Ce=0;do{for(be=-Ce;be<ge;be++)_e[be]=u(be);for(be=ge+Ce;be>ge;be--)_e[be]=u(be);_e[ge]=u(ge),Ce++}while(_e[ge]!==me);return fe[ge].slice(1)}m.fastDiff=d;class p{constructor(te,ne){this.source=te,this.name=ne,this.path=[],this.stop=function t(){t.called=!0},this.off=function t(){t.called=!0}}}const ce=new Array(256).fill("").map(((te,ne)=>("0"+ne.toString(16)).slice(-2)));function k(){const te=4294967296*Math.random()>>>0,ne=4294967296*Math.random()>>>0,ie=4294967296*Math.random()>>>0,re=4294967296*Math.random()>>>0;return"e"+ce[te>>0&255]+ce[te>>8&255]+ce[te>>16&255]+ce[te>>24&255]+ce[ne>>0&255]+ce[ne>>8&255]+ce[ne>>16&255]+ce[ne>>24&255]+ce[ie>>0&255]+ce[ie>>8&255]+ce[ie>>16&255]+ce[ie>>24&255]+ce[re>>0&255]+ce[re>>8&255]+ce[re>>16&255]+ce[re>>24&255]}const ue={get(te="normal"){return"number"!=typeof te?this[te]||this.normal:te},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function w(te,ne){const ie=ue.get(ne.priority);for(let re=0;re<te.length;re++)if(ue.get(te[re].priority)<ie)return void te.splice(re,0,ne);te.push(ne)}const me="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class C extends Error{constructor(te,ne,ie){super(function(te,ne){const ie=new WeakSet,re=ne?` ${JSON.stringify(ne,((te,ne)=>{if("object"==typeof ne&&null!==ne){if(ie.has(ne))return`[object ${ne.constructor.name}]`;ie.add(ne)}return ne}))}`:"";return te+re+v(te)}(te,ie)),this.name="CKEditorError",this.context=ne,this.data=ie}is(te){return"CKEditorError"===te}static rethrowUnexpectedError(te,ne){if(te.is&&te.is("CKEditorError"))throw te;const ie=new C(te.message,ne);throw ie.stack=te.stack,ie}}function _(te,ne){console.warn(...function y(te,ne){const ie=v(te);return ne?[te,ne,ie]:[te,ie]}(te,ne))}function v(te){return`\nRead more: ${me}#error-${te}`}const ge=new Date(2024,0,17);if(globalThis.CKEDITOR_VERSION)throw new C("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="41.0.0";const fe=Symbol("listeningTo"),_e=Symbol("emitterId"),be=Symbol("delegations"),Ce=M(Object);function M(te){return te?class extends te{on(te,ne,ie){this.listenTo(this,te,ne,ie)}once(te,ne,ie){let re=!1;this.listenTo(this,te,((te,...ie)=>{re||(re=!0,te.off(),ne.call(this,te,...ie))}),ie)}off(te,ne){this.stopListening(this,te,ne)}listenTo(te,ne,ie,re={}){let le,ce;this[fe]||(this[fe]={});const de=this[fe];N(te)||B(te);const ue=N(te);(le=de[ue])||(le=de[ue]={emitter:te,callbacks:{}}),(ce=le.callbacks[ne])||(ce=le.callbacks[ne]=[]),ce.push(ie),function(te,ne,ie,re,le){ne._addEventListener?ne._addEventListener(ie,re,le):te._addEventListener.call(ne,ie,re,le)}(this,te,ne,ie,re)}stopListening(te,ne,ie){const re=this[fe];let le=te&&N(te);const ce=re&&le?re[le]:void 0,de=ce&&ne?ce.callbacks[ne]:void 0;if(!(!re||te&&!ce||ne&&!de))if(ie)R(this,te,ne,ie),-1!==de.indexOf(ie)&&(1===de.length?delete ce.callbacks[ne]:R(this,te,ne,ie));else if(de){for(;ie=de.pop();)R(this,te,ne,ie);delete ce.callbacks[ne]}else if(ce){for(ne in ce.callbacks)this.stopListening(te,ne);delete re[le]}else{for(le in re)this.stopListening(re[le].emitter);delete this[fe]}}fire(te,...ne){try{const ie=te instanceof p?te:new p(this,te),re=ie.name;let le=L(this,re);if(ie.path.push(this),le){const te=[ie,...ne];le=Array.from(le);for(let ne=0;ne<le.length&&(le[ne].callback.apply(this,te),ie.off.called&&(delete ie.off.called,this._removeEventListener(re,le[ne].callback)),!ie.stop.called);ne++);}const ce=this[be];if(ce){const te=ce.get(re),le=ce.get("*");te&&O(te,ie,ne),le&&O(le,ie,ne)}return ie.return}catch(te){C.rethrowUnexpectedError(te,this)}}delegate(...te){return{to:(ne,ie)=>{this[be]||(this[be]=new Map),te.forEach((te=>{const re=this[be].get(te);re?re.set(ne,ie):this[be].set(te,new Map([[ne,ie]]))}))}}}stopDelegating(te,ne){if(this[be])if(te)if(ne){const ie=this[be].get(te);ie&&ie.delete(ne)}else this[be].delete(te);else this[be].clear()}_addEventListener(te,ne,ie){!function(te,ne){const ie=z(te);if(ie[ne])return;let re=ne,le=null;const ce=[];for(;""!==re&&!ie[re];)ie[re]={callbacks:[],childEvents:[]},ce.push(ie[re]),le&&ie[re].childEvents.push(le),le=re,re=re.substr(0,re.lastIndexOf(":"));if(""!==re){for(const te of ce)te.callbacks=ie[re].callbacks.slice();ie[re].childEvents.push(le)}}(this,te);const re=P(this,te),le={callback:ne,priority:ue.get(ie.priority)};for(const te of re)w(te,le)}_removeEventListener(te,ne){const ie=P(this,te);for(const te of ie)for(let ie=0;ie<te.length;ie++)te[ie].callback==ne&&(te.splice(ie,1),ie--)}}:Ce}function B(te,ne){te[_e]||(te[_e]=ne||k())}function N(te){return te[_e]}function z(te){return te._events||Object.defineProperty(te,"_events",{value:{}}),te._events}function P(te,ne){const ie=z(te)[ne];if(!ie)return[];let re=[ie.callbacks];for(let ne=0;ne<ie.childEvents.length;ne++){const le=P(te,ie.childEvents[ne]);re=re.concat(le)}return re}function L(te,ne){let ie;return te._events&&(ie=te._events[ne])&&ie.callbacks.length?ie.callbacks:ne.indexOf(":")>-1?L(te,ne.substr(0,ne.lastIndexOf(":"))):null}function O(te,ne,ie){for(let[re,le]of te){le?"function"==typeof le&&(le=le(ne.name)):le=ne.name;const te=new p(ne.source,le);te.path=[...ne.path],re.fire(te,...ie)}}function R(te,ne,ie,re){ne._removeEventListener?ne._removeEventListener(ie,re):te._removeEventListener.call(ne,ie,re)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((te=>{M[te]=Ce.prototype[te]}));const V=function(te){var ne=typeof te;return null!=te&&("object"==ne||"function"==ne)},ye=Symbol("observableProperties"),we=Symbol("boundObservables"),ke=Symbol("boundProperties"),Se=Symbol("decoratedMethods"),xe=Symbol("decoratedOriginal"),Ee=q(M());function q(te){return te?class extends te{set(te,ne){if(V(te))return void Object.keys(te).forEach((ne=>{this.set(ne,te[ne])}),this);Z(this);const ie=this[ye];if(te in this&&!ie.has(te))throw new C("observable-set-cannot-override",this);Object.defineProperty(this,te,{enumerable:!0,configurable:!0,get:()=>ie.get(te),set(ne){const re=ie.get(te);let le=this.fire(`set:${te}`,te,ne,re);void 0===le&&(le=ne),re===le&&ie.has(te)||(ie.set(te,le),this.fire(`change:${te}`,te,le,re))}}),this[te]=ne}bind(...te){if(!te.length||!Y(te))throw new C("observable-bind-wrong-properties",this);if(new Set(te).size!==te.length)throw new C("observable-bind-duplicate-properties",this);Z(this);const ne=this[ke];te.forEach((te=>{if(ne.has(te))throw new C("observable-bind-rebind",this)}));const ie=new Map;return te.forEach((te=>{const re={property:te,to:[]};ne.set(te,re),ie.set(te,re)})),{to:$,toMany:K,_observable:this,_bindProperties:te,_to:[],_bindings:ie}}unbind(...te){if(!this[ye])return;const ne=this[ke],ie=this[we];if(te.length){if(!Y(te))throw new C("observable-unbind-wrong-properties",this);te.forEach((te=>{const re=ne.get(te);re&&(re.to.forEach((([te,ne])=>{const le=ie.get(te),ce=le[ne];ce.delete(re),ce.size||delete le[ne],Object.keys(le).length||(ie.delete(te),this.stopListening(te,"change"))})),ne.delete(te))}))}else ie.forEach(((te,ne)=>{this.stopListening(ne,"change")})),ie.clear(),ne.clear()}decorate(te){Z(this);const ne=this[te];if(!ne)throw new C("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:te});this.on(te,((te,ie)=>{te.return=ne.apply(this,ie)})),this[te]=function(...ne){return this.fire(te,ne)},this[te][xe]=ne,this[Se]||(this[Se]=[]),this[Se].push(te)}stopListening(te,ne,ie){if(!te&&this[Se]){for(const te of this[Se])this[te]=this[te][xe];delete this[Se]}super.stopListening(te,ne,ie)}}:Ee}function Z(te){te[ye]||(Object.defineProperty(te,ye,{value:new Map}),Object.defineProperty(te,we,{value:new Map}),Object.defineProperty(te,ke,{value:new Map}))}function $(...te){const ne=function(...te){if(!te.length)throw new C("observable-bind-to-parse-error",null);const ne={to:[]};let ie;return"function"==typeof te[te.length-1]&&(ne.callback=te.pop()),te.forEach((te=>{if("string"==typeof te)ie.properties.push(te);else{if("object"!=typeof te)throw new C("observable-bind-to-parse-error",null);ie={observable:te,properties:[]},ne.to.push(ie)}})),ne}(...te),ie=Array.from(this._bindings.keys()),re=ie.length;if(!ne.callback&&ne.to.length>1)throw new C("observable-bind-to-no-callback",this);if(re>1&&ne.callback)throw new C("observable-bind-to-extra-callback",this);var le;ne.to.forEach((te=>{if(te.properties.length&&te.properties.length!==re)throw new C("observable-bind-to-properties-length",this);te.properties.length||(te.properties=this._bindProperties)})),this._to=ne.to,ne.callback&&(this._bindings.get(ie[0]).callback=ne.callback),le=this._observable,this._to.forEach((te=>{const ne=le[we];let ie;ne.get(te.observable)||le.listenTo(te.observable,"change",((re,ce)=>{ie=ne.get(te.observable)[ce],ie&&ie.forEach((te=>{Q(le,te.property)}))}))})),function(te){let ne;te._bindings.forEach(((ie,re)=>{te._to.forEach((le=>{ne=le.properties[ie.callback?0:te._bindProperties.indexOf(re)],ie.to.push([le.observable,ne]),function(te,ne,ie,re){const le=te[we],ce=le.get(ie),de=ce||{};de[re]||(de[re]=new Set),de[re].add(ne),ce||le.set(ie,de)}(te._observable,ie,le.observable,ne)}))}))}(this),this._bindProperties.forEach((te=>{Q(this._observable,te)}))}function K(te,ne,ie){if(this._bindings.size>1)throw new C("observable-bind-to-many-not-one-binding",this);this.to(...function(te,ne){const ie=te.map((te=>[te,ne]));return Array.prototype.concat.apply([],ie)}(te,ne),ie)}function Y(te){return te.every((te=>"string"==typeof te))}function Q(te,ne){const ie=te[ke].get(ne);let re;ie.callback?re=ie.callback.apply(te,ie.to.map((te=>te[0][te[1]]))):(re=ie.to[0],re=re[0][re[1]]),Object.prototype.hasOwnProperty.call(te,ne)?te[ne]=re:te.set(ne,re)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((te=>{q[te]=Ee.prototype[te]}));class J{constructor(){this._replacedElements=[]}replace(te,ne){this._replacedElements.push({element:te,newElement:ne}),te.style.display="none",ne&&te.parentNode.insertBefore(ne,te.nextSibling)}restore(){this._replacedElements.forEach((({element:te,newElement:ne})=>{te.style.display="",ne&&ne.remove()})),this._replacedElements=[]}}function X(te){let ne=0;for(const ie of te)ne++;return ne}function tt(te,ne){const ie=Math.min(te.length,ne.length);for(let re=0;re<ie;re++)if(te[re]!=ne[re])return re;return te.length==ne.length?"same":te.length<ne.length?"prefix":"extension"}function et(te){return!(!te||!te[Symbol.iterator])}const Me="object"==typeof global&&global&&global.Object===Object&&global;var Ne="object"==typeof self&&self&&self.Object===Object&&self;const Re=Me||Ne||Function("return this")(),Le=Re.Symbol;var Oe=Object.prototype,Pe=Oe.hasOwnProperty,Fe=Oe.toString,je=Le?Le.toStringTag:void 0,Ve=Object.prototype.toString,Ge=Le?Le.toStringTag:void 0;const gt=function(te){return null==te?void 0===te?"[object Undefined]":"[object Null]":Ge&&Ge in Object(te)?function(te){var ne=Pe.call(te,je),ie=te[je];try{te[je]=void 0;var re=!0}catch(te){}var le=Fe.call(te);return re&&(ne?te[je]=ie:delete te[je]),le}(te):function(te){return Ve.call(te)}(te)},ze=Array.isArray,ft=function(te){return null!=te&&"object"==typeof te},kt=function(te){return"string"==typeof te||!ze(te)&&ft(te)&&"[object String]"==gt(te)};function bt(te,ne,ie={},re=[]){const le=ie&&ie.xmlns,ce=le?te.createElementNS(le,ne):te.createElement(ne);for(const te in ie)ce.setAttribute(te,ie[te]);!kt(re)&&et(re)||(re=[re]);for(let ne of re)kt(ne)&&(ne=te.createTextNode(ne)),ce.appendChild(ne);return ce}const wt=function(te,ne){return function(ie){return te(ne(ie))}},He=wt(Object.getPrototypeOf,Object);var $e=Function.prototype,qe=Object.prototype,Ye=$e.toString,Xe=qe.hasOwnProperty,Ke=Ye.call(Object);const Et=function(te){if(!ft(te)||"[object Object]"!=gt(te))return!1;var ne=He(te);if(null===ne)return!0;var ie=Xe.call(ne,"constructor")&&ne.constructor;return"function"==typeof ie&&ie instanceof ie&&Ye.call(ie)==Ke},St=function(te,ne){return te===ne||te!=te&&ne!=ne},Tt=function(te,ne){for(var ie=te.length;ie--;)if(St(te[ie][0],ne))return ie;return-1};var Qe=Array.prototype.splice;function Pt(te){var ne=-1,ie=null==te?0:te.length;for(this.clear();++ne<ie;){var re=te[ne];this.set(re[0],re[1])}}Pt.prototype.clear=function(){this.__data__=[],this.size=0},Pt.prototype.delete=function(te){var ne=this.__data__,ie=Tt(ne,te);return!(ie<0||(ie==ne.length-1?ne.pop():Qe.call(ne,ie,1),--this.size,0))},Pt.prototype.get=function(te){var ne=this.__data__,ie=Tt(ne,te);return ie<0?void 0:ne[ie][1]},Pt.prototype.has=function(te){return Tt(this.__data__,te)>-1},Pt.prototype.set=function(te,ne){var ie=this.__data__,re=Tt(ie,te);return re<0?(++this.size,ie.push([te,ne])):ie[re][1]=ne,this};const Je=Pt,jt=function(te){if(!V(te))return!1;var ne=gt(te);return"[object Function]"==ne||"[object GeneratorFunction]"==ne||"[object AsyncFunction]"==ne||"[object Proxy]"==ne},dt=Re["__core-js_shared__"];var pt=function(){var te=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||"");return te?"Symbol(src)_1."+te:""}(),Ct=Function.prototype.toString;const qt=function(te){if(null!=te){try{return Ct.call(te)}catch(te){}try{return te+""}catch(te){}}return""};var vt=/^\[object .+?Constructor\]$/,It=Function.prototype,Dt=Object.prototype,Mt=It.toString,Nt=Dt.hasOwnProperty,Rt=RegExp("^"+Mt.call(Nt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Xt=function(te){return!(!V(te)||function(te){return!!pt&&pt in te}(te))&&(jt(te)?Rt:vt).test(qt(te))},ee=function(te,ne){var ie=function(te,ne){return null==te?void 0:te[ne]}(te,ne);return Xt(ie)?ie:void 0},Ot=ee(Re,"Map"),Vt=ee(Object,"create");var Gt=Object.prototype.hasOwnProperty,zt=Object.prototype.hasOwnProperty;function he(te){var ne=-1,ie=null==te?0:te.length;for(this.clear();++ne<ie;){var re=te[ne];this.set(re[0],re[1])}}he.prototype.clear=function(){this.__data__=Vt?Vt(null):{},this.size=0},he.prototype.delete=function(te){var ne=this.has(te)&&delete this.__data__[te];return this.size-=ne?1:0,ne},he.prototype.get=function(te){var ne=this.__data__;if(Vt){var ie=ne[te];return"__lodash_hash_undefined__"===ie?void 0:ie}return Gt.call(ne,te)?ne[te]:void 0},he.prototype.has=function(te){var ne=this.__data__;return Vt?void 0!==ne[te]:zt.call(ne,te)},he.prototype.set=function(te,ne){var ie=this.__data__;return this.size+=this.has(te)?0:1,ie[te]=Vt&&void 0===ne?"__lodash_hash_undefined__":ne,this};const Ht=he,pe=function(te,ne){var ie=te.__data__;return function(te){var ne=typeof te;return"string"==ne||"number"==ne||"symbol"==ne||"boolean"==ne?"__proto__"!==te:null===te}(ne)?ie["string"==typeof ne?"string":"hash"]:ie.map};function Ae(te){var ne=-1,ie=null==te?0:te.length;for(this.clear();++ne<ie;){var re=te[ne];this.set(re[0],re[1])}}Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Ht,map:new(Ot||Je),string:new Ht}},Ae.prototype.delete=function(te){var ne=pe(this,te).delete(te);return this.size-=ne?1:0,ne},Ae.prototype.get=function(te){return pe(this,te).get(te)},Ae.prototype.has=function(te){return pe(this,te).has(te)},Ae.prototype.set=function(te,ne){var ie=pe(this,te),re=ie.size;return ie.set(te,ne),this.size+=ie.size==re?0:1,this};const Ut=Ae;function ve(te){var ne=this.__data__=new Je(te);this.size=ne.size}ve.prototype.clear=function(){this.__data__=new Je,this.size=0},ve.prototype.delete=function(te){var ne=this.__data__,ie=ne.delete(te);return this.size=ne.size,ie},ve.prototype.get=function(te){return this.__data__.get(te)},ve.prototype.has=function(te){return this.__data__.has(te)},ve.prototype.set=function(te,ne){var ie=this.__data__;if(ie instanceof Je){var re=ie.__data__;if(!Ot||re.length<199)return re.push([te,ne]),this.size=++ie.size,this;ie=this.__data__=new Ut(re)}return ie.set(te,ne),this.size=ie.size,this};const $t=ve,Yt=function(){try{var te=ee(Object,"defineProperty");return te({},"",{}),te}catch(te){}}(),De=function(te,ne,ie){"__proto__"==ne&&Yt?Yt(te,ne,{configurable:!0,enumerable:!0,value:ie,writable:!0}):te[ne]=ie};var Wt=Object.prototype.hasOwnProperty;const Te=function(te,ne,ie){var re=te[ne];Wt.call(te,ne)&&St(re,ie)&&(void 0!==ie||ne in te)||De(te,ne,ie)},Ie=function(te,ne,ie,re){var le=!ie;ie||(ie={});for(var ce=-1,de=ne.length;++ce<de;){var ue=ne[ce],me=re?re(ie[ue],te[ue],ue,ie,te):void 0;void 0===me&&(me=te[ue]),le?De(ie,ue,me):Te(ie,ue,me)}return ie},Be=function(te){return ft(te)&&"[object Arguments]"==gt(te)};var Kt=Object.prototype,Qt=Kt.hasOwnProperty,Jt=Kt.propertyIsEnumerable;const Zt=Be(function(){return arguments}())?Be:function(te){return ft(te)&&Qt.call(te,"callee")&&!Jt.call(te,"callee")};var tn=ne&&!ne.nodeType&&ne,nn=tn&&te&&!te.nodeType&&te,rn=nn&&nn.exports===tn?Re.Buffer:void 0;const an=(rn?rn.isBuffer:void 0)||function(){return!1};var sn=/^(?:0|[1-9]\d*)$/;const Ue=function(te,ne){var ie=typeof te;return!!(ne=null==ne?9007199254740991:ne)&&("number"==ie||"symbol"!=ie&&sn.test(te))&&te>-1&&te%1==0&&te<ne},We=function(te){return"number"==typeof te&&te>-1&&te%1==0&&te<=9007199254740991};var dn={};dn["[object Float32Array]"]=dn["[object Float64Array]"]=dn["[object Int8Array]"]=dn["[object Int16Array]"]=dn["[object Int32Array]"]=dn["[object Uint8Array]"]=dn["[object Uint8ClampedArray]"]=dn["[object Uint16Array]"]=dn["[object Uint32Array]"]=!0,dn["[object Arguments]"]=dn["[object Array]"]=dn["[object ArrayBuffer]"]=dn["[object Boolean]"]=dn["[object DataView]"]=dn["[object Date]"]=dn["[object Error]"]=dn["[object Function]"]=dn["[object Map]"]=dn["[object Number]"]=dn["[object Object]"]=dn["[object RegExp]"]=dn["[object Set]"]=dn["[object String]"]=dn["[object WeakMap]"]=!1;const Ze=function(te){return function(ne){return te(ne)}};var un=ne&&!ne.nodeType&&ne,pn=un&&te&&!te.nodeType&&te,hn=pn&&pn.exports===un&&Me.process;const fn=function(){try{return pn&&pn.require&&pn.require("util").types||hn&&hn.binding&&hn.binding("util")}catch(te){}}();var _n=fn&&fn.isTypedArray;const bn=_n?Ze(_n):function(te){return ft(te)&&We(te.length)&&!!dn[gt(te)]};var yn=Object.prototype.hasOwnProperty;const en=function(te,ne){var ie=ze(te),re=!ie&&Zt(te),le=!ie&&!re&&an(te),ce=!ie&&!re&&!le&&bn(te),de=ie||re||le||ce,ue=de?function(te,ne){for(var ie=-1,re=Array(te);++ie<te;)re[ie]=ne(ie);return re}(te.length,String):[],me=ue.length;for(var ge in te)!ne&&!yn.call(te,ge)||de&&("length"==ge||le&&("offset"==ge||"parent"==ge)||ce&&("buffer"==ge||"byteLength"==ge||"byteOffset"==ge)||Ue(ge,me))||ue.push(ge);return ue};var wn=Object.prototype;const on=function(te){var ne=te&&te.constructor;return te===("function"==typeof ne&&ne.prototype||wn)},kn=wt(Object.keys,Object);var In=Object.prototype.hasOwnProperty;const ln=function(te){return null!=te&&We(te.length)&&!jt(te)},cn=function(te){return ln(te)?en(te):function(te){if(!on(te))return kn(te);var ne=[];for(var ie in Object(te))In.call(te,ie)&&"constructor"!=ie&&ne.push(ie);return ne}(te)};var Tn=Object.prototype.hasOwnProperty;const mn=function(te){if(!V(te))return function(te){var ne=[];if(null!=te)for(var ie in Object(te))ne.push(ie);return ne}(te);var ne=on(te),ie=[];for(var re in te)("constructor"!=re||!ne&&Tn.call(te,re))&&ie.push(re);return ie},gn=function(te){return ln(te)?en(te,!0):mn(te)};var Dn=ne&&!ne.nodeType&&ne,xn=Dn&&te&&!te.nodeType&&te,En=xn&&xn.exports===Dn?Re.Buffer:void 0,Rn=En?En.allocUnsafe:void 0;const An=function(te,ne){if(ne)return te.slice();var ie=te.length,re=Rn?Rn(ie):new te.constructor(ie);return te.copy(re),re},Cn=function(te,ne){var ie=-1,re=te.length;for(ne||(ne=Array(re));++ie<re;)ne[ie]=te[ie];return ne},vn=function(){return[]};var Ln=Object.prototype.propertyIsEnumerable,On=Object.getOwnPropertySymbols;const Pn=On?function(te){return null==te?[]:(te=Object(te),function(te,ne){for(var ie=-1,re=null==te?0:te.length,le=0,ce=[];++ie<re;){var de=te[ie];ne(de,ie,te)&&(ce[le++]=de)}return ce}(On(te),(function(ne){return Ln.call(te,ne)})))}:vn,Sn=function(te,ne){for(var ie=-1,re=ne.length,le=te.length;++ie<re;)te[le+ie]=ne[ie];return te},Fn=Object.getOwnPropertySymbols?function(te){for(var ne=[];te;)Sn(ne,Pn(te)),te=He(te);return ne}:vn,Mn=function(te,ne,ie){var re=ne(te);return ze(te)?re:Sn(re,ie(te))},Bn=function(te){return Mn(te,cn,Pn)},Nn=function(te){return Mn(te,gn,Fn)},jn=ee(Re,"DataView"),Vn=ee(Re,"Promise"),Gn=ee(Re,"Set"),zn=ee(Re,"WeakMap");var Hn="[object Map]",Un="[object Promise]",$n="[object Set]",qn="[object WeakMap]",Yn="[object DataView]",Wn=qt(jn),Kn=qt(Ot),Qn=qt(Vn),Jn=qt(Gn),Zn=qt(zn),pi=gt;(jn&&pi(new jn(new ArrayBuffer(1)))!=Yn||Ot&&pi(new Ot)!=Hn||Vn&&pi(Vn.resolve())!=Un||Gn&&pi(new Gn)!=$n||zn&&pi(new zn)!=qn)&&(pi=function(te){var ne=gt(te),ie="[object Object]"==ne?te.constructor:void 0,re=ie?qt(ie):"";if(re)switch(re){case Wn:return Yn;case Kn:return Hn;case Qn:return Un;case Jn:return $n;case Zn:return qn}return ne});const gi=pi;var fi=Object.prototype.hasOwnProperty;const yi=Re.Uint8Array,Xn=function(te){var ne=new te.constructor(te.byteLength);return new yi(ne).set(new yi(te)),ne};var ki=/\w*$/,Ri=Le?Le.prototype:void 0,Pi=Ri?Ri.valueOf:void 0;const so=function(te,ne){var ie=ne?Xn(te.buffer):te.buffer;return new te.constructor(ie,te.byteOffset,te.length)},ao=function(te,ne,ie){var re=te.constructor;switch(ne){case"[object ArrayBuffer]":return Xn(te);case"[object Boolean]":case"[object Date]":return new re(+te);case"[object DataView]":return function(te,ne){var ie=ne?Xn(te.buffer):te.buffer;return new te.constructor(ie,te.byteOffset,te.byteLength)}(te,ie);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return so(te,ie);case"[object Map]":case"[object Set]":return new re;case"[object Number]":case"[object String]":return new re(te);case"[object RegExp]":return function(te){var ne=new te.constructor(te.source,ki.exec(te));return ne.lastIndex=te.lastIndex,ne}(te);case"[object Symbol]":return function(te){return Pi?Object(Pi.call(te)):{}}(te)}};var Fi=Object.create;const ji=function(){function t(){}return function(te){if(!V(te))return{};if(Fi)return Fi(te);t.prototype=te;var ne=new t;return t.prototype=void 0,ne}}(),ho=function(te){return"function"!=typeof te.constructor||on(te)?{}:ji(He(te))};var Vi=fn&&fn.isMap;const eo=Vi?Ze(Vi):function(te){return ft(te)&&"[object Map]"==gi(te)};var to=fn&&fn.isSet;const no=to?Ze(to):function(te){return ft(te)&&"[object Set]"==gi(te)};var io="[object Arguments]",oo="[object Function]",ro="[object Object]",lo={};lo[io]=lo["[object Array]"]=lo["[object ArrayBuffer]"]=lo["[object DataView]"]=lo["[object Boolean]"]=lo["[object Date]"]=lo["[object Float32Array]"]=lo["[object Float64Array]"]=lo["[object Int8Array]"]=lo["[object Int16Array]"]=lo["[object Int32Array]"]=lo["[object Map]"]=lo["[object Number]"]=lo[ro]=lo["[object RegExp]"]=lo["[object Set]"]=lo["[object String]"]=lo["[object Symbol]"]=lo["[object Uint8Array]"]=lo["[object Uint8ClampedArray]"]=lo["[object Uint16Array]"]=lo["[object Uint32Array]"]=!0,lo["[object Error]"]=lo[oo]=lo["[object WeakMap]"]=!1;const co=function t(te,ne,ie,re,le,ce){var de,ue=1&ne,me=2&ne,ge=4&ne;if(ie&&(de=le?ie(te,re,le,ce):ie(te)),void 0!==de)return de;if(!V(te))return te;var fe=ze(te);if(fe){if(de=function(te){var ne=te.length,ie=new te.constructor(ne);return ne&&"string"==typeof te[0]&&fi.call(te,"index")&&(ie.index=te.index,ie.input=te.input),ie}(te),!ue)return Cn(te,de)}else{var _e=gi(te),be=_e==oo||"[object GeneratorFunction]"==_e;if(an(te))return An(te,ue);if(_e==ro||_e==io||be&&!le){if(de=me||be?{}:ho(te),!ue)return me?function(te,ne){return Ie(te,Fn(te),ne)}(te,function(te,ne){return te&&Ie(ne,gn(ne),te)}(de,te)):function(te,ne){return Ie(te,Pn(te),ne)}(te,function(te,ne){return te&&Ie(ne,cn(ne),te)}(de,te))}else{if(!lo[_e])return le?te:{};de=ao(te,_e,ue)}}ce||(ce=new $t);var Ce=ce.get(te);if(Ce)return Ce;ce.set(te,de),no(te)?te.forEach((function(re){de.add(t(re,ne,ie,re,te,ce))})):eo(te)&&te.forEach((function(re,le){de.set(le,t(re,ne,ie,le,te,ce))}));var ye=fe?void 0:(ge?me?Nn:Bn:me?gn:cn)(te);return function(te,ne){for(var ie=-1,re=null==te?0:te.length;++ie<re&&!1!==ne(te[ie],ie,te););}(ye||te,(function(re,le){ye&&(re=te[le=re]),Te(de,le,t(re,ne,ie,le,te,ce))})),de},vo=function(te,ne){return co(te,5,ne="function"==typeof ne?ne:void 0)},yo=function(te){return ft(te)&&1===te.nodeType&&!Et(te)};class xo{constructor(te,ne){this._config={},ne&&this.define(Eo(ne)),te&&this._setObjectToTarget(this._config,te)}set(te,ne){this._setToTarget(this._config,te,ne)}define(te,ne){this._setToTarget(this._config,te,ne,!0)}get(te){return this._getFromSource(this._config,te)}*names(){for(const te of Object.keys(this._config))yield te}_setToTarget(te,ne,ie,re=!1){if(Et(ne))return void this._setObjectToTarget(te,ne,re);const le=ne.split(".");ne=le.pop();for(const ne of le)Et(te[ne])||(te[ne]={}),te=te[ne];if(Et(ie))return Et(te[ne])||(te[ne]={}),te=te[ne],void this._setObjectToTarget(te,ie,re);re&&void 0!==te[ne]||(te[ne]=ie)}_getFromSource(te,ne){const ie=ne.split(".");ne=ie.pop();for(const ne of ie){if(!Et(te[ne])){te=null;break}te=te[ne]}return te?Eo(te[ne]):void 0}_setObjectToTarget(te,ne,ie){Object.keys(ne).forEach((re=>{this._setToTarget(te,re,ne[re],ie)}))}}function Eo(te){return vo(te,Do)}function Do(te){return yo(te)||"function"==typeof te?te:void 0}function So(te){if(te){if(te.defaultView)return te instanceof te.defaultView.Document;if(te.ownerDocument&&te.ownerDocument.defaultView)return te instanceof te.ownerDocument.defaultView.Node}return!1}function To(te){const ne=Object.prototype.toString.apply(te);return"[object Window]"==ne||"[object global]"==ne}const uo=Mo(M());function Mo(te){return te?class extends te{listenTo(te,ne,ie,re={}){if(So(te)||To(te)){const le={capture:!!re.useCapture,passive:!!re.usePassive},ce=this._getProxyEmitter(te,le)||new Bo(te,le);this.listenTo(ce,ne,ie,re)}else super.listenTo(te,ne,ie,re)}stopListening(te,ne,ie){if(So(te)||To(te)){const re=this._getAllProxyEmitters(te);for(const te of re)this.stopListening(te,ne,ie)}else super.stopListening(te,ne,ie)}_getProxyEmitter(te,ne){return function(te,ne){const ie=te[fe];return ie&&ie[ne]?ie[ne].emitter:null}(this,No(te,ne))}_getAllProxyEmitters(te){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((ne=>this._getProxyEmitter(te,ne))).filter((te=>!!te))}}:uo}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((te=>{Mo[te]=uo.prototype[te]}));class Bo extends(M()){constructor(te,ne){super(),B(this,No(te,ne)),this._domNode=te,this._options=ne}attach(te){if(this._domListeners&&this._domListeners[te])return;const ne=this._createDomListener(te);this._domNode.addEventListener(te,ne,this._options),this._domListeners||(this._domListeners={}),this._domListeners[te]=ne}detach(te){let ne;!this._domListeners[te]||(ne=this._events[te])&&ne.callbacks.length||this._domListeners[te].removeListener()}_addEventListener(te,ne,ie){this.attach(te),M().prototype._addEventListener.call(this,te,ne,ie)}_removeEventListener(te,ne){M().prototype._removeEventListener.call(this,te,ne),this.detach(te)}_createDomListener(te){const e=ne=>{this.fire(te,ne)};return e.removeListener=()=>{this._domNode.removeEventListener(te,e,this._options),delete this._domListeners[te]},e}}function No(te,ne){let ie=function(te){return te["data-ck-expando"]||(te["data-ck-expando"]=k())}(te);for(const te of Object.keys(ne).sort())ne[te]&&(ie+="-"+te);return ie}let mo;try{mo={window,document}}catch(t){mo={window:{},document:{}}}const go=mo;function Lo(te){const ne=te.ownerDocument.defaultView.getComputedStyle(te);return{top:parseInt(ne.borderTopWidth,10),right:parseInt(ne.borderRightWidth,10),bottom:parseInt(ne.borderBottomWidth,10),left:parseInt(ne.borderLeftWidth,10)}}function Oo(te){return"[object Text]"==Object.prototype.toString.call(te)}function Ro(te){return"[object Range]"==Object.prototype.toString.apply(te)}function Vo(te){return te&&te.parentNode?te.offsetParent===go.document.body?null:te.offsetParent:null}const fo=["top","right","bottom","left","width","height"];class jo{constructor(te){const ne=Ro(te);if(Object.defineProperty(this,"_source",{value:te._source||te,writable:!0,enumerable:!1}),Wo(te)||ne)if(ne){const ne=jo.getDomRangeRects(te);Ho(this,jo.getBoundingRect(ne))}else Ho(this,te.getBoundingClientRect());else if(To(te)){const{innerWidth:ne,innerHeight:ie}=te;Ho(this,{top:0,right:ne,bottom:ie,left:0,width:ne,height:ie})}else Ho(this,te)}clone(){return new jo(this)}moveTo(te,ne){return this.top=ne,this.right=te+this.width,this.bottom=ne+this.height,this.left=te,this}moveBy(te,ne){return this.top+=ne,this.right+=te,this.left+=te,this.bottom+=ne,this}getIntersection(te){const ne={top:Math.max(this.top,te.top),right:Math.min(this.right,te.right),bottom:Math.min(this.bottom,te.bottom),left:Math.max(this.left,te.left),width:0,height:0};if(ne.width=ne.right-ne.left,ne.height=ne.bottom-ne.top,ne.width<0||ne.height<0)return null;{const te=new jo(ne);return te._source=this._source,te}}getIntersectionArea(te){const ne=this.getIntersection(te);return ne?ne.getArea():0}getArea(){return this.width*this.height}getVisible(){const te=this._source;let ne=this.clone();if(Uo(te))return ne;let ie,re=te,le=te.parentNode||te.commonAncestorContainer;for(;le&&!Uo(le);){const te="visible"===((ce=le)instanceof HTMLElement?ce.ownerDocument.defaultView.getComputedStyle(ce).overflow:"visible");re instanceof HTMLElement&&"absolute"===Go(re)&&(ie=re);const de=Go(le);if(te||ie&&("relative"===de&&te||"relative"!==de)){re=le,le=le.parentNode;continue}const ue=new jo(le),me=ne.getIntersection(ue);if(!me)return null;me.getArea()<ne.getArea()&&(ne=me),re=le,le=le.parentNode}var ce;return ne}isEqual(te){for(const ne of fo)if(this[ne]!==te[ne])return!1;return!0}contains(te){const ne=this.getIntersection(te);return!(!ne||!ne.isEqual(te))}toAbsoluteRect(){const{scrollX:te,scrollY:ne}=go.window,ie=this.clone().moveBy(te,ne);if(Wo(ie._source)){const te=Vo(ie._source);te&&function(te,ne){const ie=new jo(ne),re=Lo(ne);let le=0,ce=0;le-=ie.left,ce-=ie.top,le+=ne.scrollLeft,ce+=ne.scrollTop,le-=re.left,ce-=re.top,te.moveBy(le,ce)}(ie,te)}return ie}excludeScrollbarsAndBorders(){const te=this._source;let ne,ie,re;if(To(te))ne=te.innerWidth-te.document.documentElement.clientWidth,ie=te.innerHeight-te.document.documentElement.clientHeight,re=te.getComputedStyle(te.document.documentElement).direction;else{const le=Lo(te);ne=te.offsetWidth-te.clientWidth-le.left-le.right,ie=te.offsetHeight-te.clientHeight-le.top-le.bottom,re=te.ownerDocument.defaultView.getComputedStyle(te).direction,this.left+=le.left,this.top+=le.top,this.right-=le.right,this.bottom-=le.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=ne,"ltr"===re?this.right-=ne:this.left+=ne,this.height-=ie,this.bottom-=ie,this}static getDomRangeRects(te){const ne=[],ie=Array.from(te.getClientRects());if(ie.length)for(const te of ie)ne.push(new jo(te));else{let ie=te.startContainer;Oo(ie)&&(ie=ie.parentNode);const re=new jo(ie.getBoundingClientRect());re.right=re.left,re.width=0,ne.push(re)}return ne}static getBoundingRect(te){const ne={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let ie=0;for(const re of te)ie++,ne.left=Math.min(ne.left,re.left),ne.top=Math.min(ne.top,re.top),ne.right=Math.max(ne.right,re.right),ne.bottom=Math.max(ne.bottom,re.bottom);return 0==ie?null:(ne.width=ne.right-ne.left,ne.height=ne.bottom-ne.top,new jo(ne))}}function Ho(te,ne){for(const ie of fo)te[ie]=ne[ie]}function Uo(te){return!!Wo(te)&&te===te.ownerDocument.body}function Wo(te){return null!==te&&"object"==typeof te&&1===te.nodeType&&"function"==typeof te.getBoundingClientRect}function Go(te){return te instanceof HTMLElement?te.ownerDocument.defaultView.getComputedStyle(te).position:"static"}class qo{constructor(te,ne){qo._observerInstance||qo._createObserver(),this._element=te,this._callback=ne,qo._addElementCallback(te,ne),qo._observerInstance.observe(te)}get element(){return this._element}destroy(){qo._deleteElementCallback(this._element,this._callback)}static _addElementCallback(te,ne){qo._elementCallbacks||(qo._elementCallbacks=new Map);let ie=qo._elementCallbacks.get(te);ie||(ie=new Set,qo._elementCallbacks.set(te,ie)),ie.add(ne)}static _deleteElementCallback(te,ne){const ie=qo._getElementCallbacks(te);ie&&(ie.delete(ne),ie.size||(qo._elementCallbacks.delete(te),qo._observerInstance.unobserve(te))),qo._elementCallbacks&&!qo._elementCallbacks.size&&(qo._observerInstance=null,qo._elementCallbacks=null)}static _getElementCallbacks(te){return qo._elementCallbacks?qo._elementCallbacks.get(te):null}static _createObserver(){qo._observerInstance=new go.window.ResizeObserver((te=>{for(const ne of te){const te=qo._getElementCallbacks(ne.target);if(te)for(const ie of te)ie(ne)}}))}}qo._observerInstance=null,qo._elementCallbacks=null;const _o=qo;function $o(te,ne){te instanceof HTMLTextAreaElement&&(te.value=ne),te.innerHTML=ne}function Ko(te){return ne=>ne+te}function Yo(te){let ne=0;for(;te.previousSibling;)te=te.previousSibling,ne++;return ne}function Qo(te,ne,ie){te.insertBefore(ie,te.childNodes[ne]||null)}function Jo(te){return te&&te.nodeType===Node.COMMENT_NODE}function Xo(te){try{go.document.createAttribute(te)}catch(te){return!1}return!0}function ti(te){return!!(te&&te.getClientRects&&te.getClientRects().length)}function ei({element:te,target:ne,positions:ie,limiter:re,fitInViewport:le,viewportOffsetConfig:ce}){jt(ne)&&(ne=ne()),jt(re)&&(re=re());const de=Vo(te),ue=function(te){te=Object.assign({top:0,bottom:0,left:0,right:0},te);const ne=new jo(go.window);return ne.top+=te.top,ne.height-=te.top,ne.bottom-=te.bottom,ne.height-=te.bottom,ne}(ce),me=new jo(te),ge=ni(ne,ue);let fe;if(!ge||!ue.getIntersection(ge))return null;const _e={targetRect:ge,elementRect:me,positionedElementAncestor:de,viewportRect:ue};if(re||le){if(re){const te=ni(re,ue);te&&(_e.limiterRect=te)}fe=function(te,ne){const{elementRect:ie}=ne,re=ie.getArea(),le=te.map((te=>new oi(te,ne))).filter((te=>!!te.name));let ce=0,de=null;for(const te of le){const{limiterIntersectionArea:ne,viewportIntersectionArea:ie}=te;if(ne===re)return te;const le=ie**2+ne**2;le>ce&&(ce=le,de=te)}return de}(ie,_e)}else fe=new oi(ie[0],_e);return fe}function ni(te,ne){const ie=new jo(te).getVisible();return ie?ie.getIntersection(ne):null}class oi{constructor(te,ne){const ie=te(ne.targetRect,ne.elementRect,ne.viewportRect,ne.limiterRect);if(!ie)return;const{left:re,top:le,name:ce,config:de}=ie;this.name=ce,this.config=de,this._positioningFunctionCoordinates={left:re,top:le},this._options=ne}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const te=this._options.limiterRect;return te?te.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function ii(te){const ne=te.parentNode;ne&&ne.removeChild(te)}function ri({window:te,rect:ne,alignToTop:ie,forceScroll:re,viewportOffset:le}){const ce=ne.clone().moveBy(0,le.bottom),de=ne.clone().moveBy(0,-le.top),ue=new jo(te).excludeScrollbarsAndBorders(),me=ie&&re,ge=[de,ce].every((te=>ue.contains(te)));let{scrollX:fe,scrollY:_e}=te;const be=fe,Ce=_e;me?_e-=ue.top-ne.top+le.top:ge||(li(de,ue)?_e-=ue.top-ne.top+le.top:ai(ce,ue)&&(_e+=ie?ne.top-ue.top-le.top:ne.bottom-ue.bottom+le.bottom)),ge||(ci(ne,ue)?fe-=ue.left-ne.left+le.left:di(ne,ue)&&(fe+=ne.right-ue.right+le.right)),fe==be&&_e===Ce||te.scrollTo(fe,_e)}function si({parent:te,getRect:ne,alignToTop:ie,forceScroll:re,ancestorOffset:le=0,limiterElement:ce}){const de=hi(te),ue=ie&&re;let me,ge,fe;const _e=ce||de.document.body;for(;te!=_e;)ge=ne(),me=new jo(te).excludeScrollbarsAndBorders(),fe=me.contains(ge),ue?te.scrollTop-=me.top-ge.top+le:fe||(li(ge,me)?te.scrollTop-=me.top-ge.top+le:ai(ge,me)&&(te.scrollTop+=ie?ge.top-me.top-le:ge.bottom-me.bottom+le)),fe||(ci(ge,me)?te.scrollLeft-=me.left-ge.left+le:di(ge,me)&&(te.scrollLeft+=ge.right-me.right+le)),te=te.parentNode}function ai(te,ne){return te.bottom>ne.bottom}function li(te,ne){return te.top<ne.top}function ci(te,ne){return te.left<ne.left}function di(te,ne){return te.right>ne.right}function hi(te){return Ro(te)?te.startContainer.ownerDocument.defaultView:te.ownerDocument.defaultView}function ui(te){if(Ro(te)){let ne=te.commonAncestorContainer;return Oo(ne)&&(ne=ne.parentNode),ne}return te.parentNode}function mi(te,ne){const ie=hi(te),re=new jo(te);if(ie===ne)return re;{let te=ie;for(;te!=ne;){const ne=te.frameElement,ie=new jo(ne).excludeScrollbarsAndBorders();re.moveBy(ie.left,ie.top),te=te.parent}}return re}const bo={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Co={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},wo=function(){const te={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let ne=65;ne<=90;ne++)te[String.fromCharCode(ne).toLowerCase()]=ne;for(let ne=48;ne<=57;ne++)te[ne-48]=ne;for(let ne=112;ne<=123;ne++)te["f"+(ne-111)]=ne;for(const ne of"`-=[];',./\\")te[ne]=ne.charCodeAt(0);return te}(),Ao=Object.fromEntries(Object.entries(wo).map((([te,ne])=>[ne,te.charAt(0).toUpperCase()+te.slice(1)])));function bi(te){let ne;if("string"==typeof te){if(ne=wo[te.toLowerCase()],!ne)throw new C("keyboard-unknown-key",null,{key:te})}else ne=te.keyCode+(te.altKey?wo.alt:0)+(te.ctrlKey?wo.ctrl:0)+(te.shiftKey?wo.shift:0)+(te.metaKey?wo.cmd:0);return ne}function wi(te){return"string"==typeof te&&(te=function(te){return te.split("+").map((te=>te.trim()))}(te)),te.map((te=>"string"==typeof te?function(te){if(te.endsWith("!"))return bi(te.slice(0,-1));const ne=bi(te);return(le.isMac||le.isiOS)&&ne==wo.ctrl?wo.cmd:ne}(te):te)).reduce(((te,ne)=>ne+te),0)}function Ai(te){let ne=wi(te);return Object.entries(le.isMac||le.isiOS?bo:Co).reduce(((te,[ie,re])=>(0!=(ne&wo[ie])&&(ne&=~wo[ie],te+=re),te)),"")+(ne?Ao[ne]:"")}function Ci(te,ne){const ie="ltr"===ne;switch(te){case wo.arrowleft:return ie?"left":"right";case wo.arrowright:return ie?"right":"left";case wo.arrowup:return"up";case wo.arrowdown:return"down"}}function _i(te){return Array.isArray(te)?te:[te]}go.window.CKEDITOR_TRANSLATIONS||(go.window.CKEDITOR_TRANSLATIONS={});const ko=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function xi(te){return ko.includes(te)?"rtl":"ltr"}class Ei{constructor({uiLanguage:te="en",contentLanguage:ne}={}){this.uiLanguage=te,this.contentLanguage=ne||this.uiLanguage,this.uiLanguageDirection=xi(this.uiLanguage),this.contentLanguageDirection=xi(this.contentLanguage),this.t=(te,ne)=>this._t(te,ne)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(te,ne=[]){ne=_i(ne),"string"==typeof te&&(te={string:te});const ie=te.plural?ne[0]:1;return function(te,ne){return te.replace(/%(\d+)/g,((te,ie)=>ie<ne.length?ne[ie]:te))}(function vi(te,ne,ie=1){if("number"!=typeof ie)throw new C("translation-service-quantity-not-a-number",null,{quantity:ie});const re=Object.keys(go.window.CKEDITOR_TRANSLATIONS).length;1===re&&(te=Object.keys(go.window.CKEDITOR_TRANSLATIONS)[0]);const le=ne.id||ne.string;if(0===re||!function(te,ne){return!!go.window.CKEDITOR_TRANSLATIONS[te]&&!!go.window.CKEDITOR_TRANSLATIONS[te].dictionary[ne]}(te,le))return 1!==ie?ne.plural:ne.string;const ce=go.window.CKEDITOR_TRANSLATIONS[te].dictionary,de=go.window.CKEDITOR_TRANSLATIONS[te].getPluralForm||(te=>1===te?0:1),ue=ce[le];return"string"==typeof ue?ue:ue[Number(de(ie))]}(this.uiLanguage,te,ie),ne)}}class Di extends(M()){constructor(te={},ne={}){super();const ie=et(te);if(ie||(ne=te),this._items=[],this._itemMap=new Map,this._idProperty=ne.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],ie)for(const ne of te)this._items.push(ne),this._itemMap.set(this._getItemIdBeforeAdding(ne),ne)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(te,ne){return this.addMany([te],ne)}addMany(te,ne){if(void 0===ne)ne=this._items.length;else if(ne>this._items.length||ne<0)throw new C("collection-add-item-invalid-index",this);let ie=0;for(const re of te){const te=this._getItemIdBeforeAdding(re),le=ne+ie;this._items.splice(le,0,re),this._itemMap.set(te,re),this.fire("add",re,le),ie++}return this.fire("change",{added:te,removed:[],index:ne}),this}get(te){let ne;if("string"==typeof te)ne=this._itemMap.get(te);else{if("number"!=typeof te)throw new C("collection-get-invalid-arg",this);ne=this._items[te]}return ne||null}has(te){if("string"==typeof te)return this._itemMap.has(te);{const ne=te[this._idProperty];return ne&&this._itemMap.has(ne)}}getIndex(te){let ne;return ne="string"==typeof te?this._itemMap.get(te):te,ne?this._items.indexOf(ne):-1}remove(te){const[ne,ie]=this._remove(te);return this.fire("change",{added:[],removed:[ne],index:ie}),ne}map(te,ne){return this._items.map(te,ne)}forEach(te,ne){this._items.forEach(te,ne)}find(te,ne){return this._items.find(te,ne)}filter(te,ne){return this._items.filter(te,ne)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const te=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:te,index:0})}bindTo(te){if(this._bindToCollection)throw new C("collection-bind-to-rebind",this);return this._bindToCollection=te,{as:te=>{this._setUpBindToBinding((ne=>new te(ne)))},using:te=>{"function"==typeof te?this._setUpBindToBinding(te):this._setUpBindToBinding((ne=>ne[te]))}}}_setUpBindToBinding(te){const ne=this._bindToCollection,n=(ie,re,le)=>{const ce=ne._bindToCollection==this,de=ne._bindToInternalToExternalMap.get(re);if(ce&&de)this._bindToExternalToInternalMap.set(re,de),this._bindToInternalToExternalMap.set(de,re);else{const ie=te(re);if(!ie)return void this._skippedIndexesFromExternal.push(le);let ce=le;for(const te of this._skippedIndexesFromExternal)le>te&&ce--;for(const te of ne._skippedIndexesFromExternal)ce>=te&&ce++;this._bindToExternalToInternalMap.set(re,ie),this._bindToInternalToExternalMap.set(ie,re),this.add(ie,ce);for(let te=0;te<ne._skippedIndexesFromExternal.length;te++)ce<=ne._skippedIndexesFromExternal[te]&&ne._skippedIndexesFromExternal[te]++}};for(const te of ne)n(0,te,ne.getIndex(te));this.listenTo(ne,"add",n),this.listenTo(ne,"remove",((te,ne,ie)=>{const re=this._bindToExternalToInternalMap.get(ne);re&&this.remove(re),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((te,ne)=>(ie<ne&&te.push(ne-1),ie>ne&&te.push(ne),te)),[])}))}_getItemIdBeforeAdding(te){const ne=this._idProperty;let ie;if(ne in te){if(ie=te[ne],"string"!=typeof ie)throw new C("collection-add-invalid-id",this);if(this.get(ie))throw new C("collection-add-item-already-exists",this)}else te[ne]=ie=k();return ie}_remove(te){let ne,ie,re,le=!1;const ce=this._idProperty;if("string"==typeof te?(ie=te,re=this._itemMap.get(ie),le=!re,re&&(ne=this._items.indexOf(re))):"number"==typeof te?(ne=te,re=this._items[ne],le=!re,re&&(ie=re[ce])):(re=te,ie=re[ce],ne=this._items.indexOf(re),le=-1==ne||!this._itemMap.get(ie)),le)throw new C("collection-remove-404",this);this._items.splice(ne,1),this._itemMap.delete(ie);const de=this._bindToInternalToExternalMap.get(re);return this._bindToInternalToExternalMap.delete(re),this._bindToExternalToInternalMap.delete(de),this.fire("remove",re,ne),[re,ne]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function Si(te){const ne=te.next();return ne.done?null:ne.value}class Ti extends(Mo(q())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(te){if(this._elements.has(te))throw new C("focustracker-add-element-already-exist",this);this.listenTo(te,"focus",(()=>this._focus(te)),{useCapture:!0}),this.listenTo(te,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(te)}remove(te){te===this.focusedElement&&this._blur(),this._elements.has(te)&&(this.stopListening(te),this._elements.delete(te))}destroy(){this.stopListening()}_focus(te){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=te,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}class Ii{constructor(){this._listener=new(Mo())}listenTo(te){this._listener.listenTo(te,"keydown",((te,ne)=>{this._listener.fire("_keydown:"+bi(ne),ne)}))}set(te,ne,ie={}){const re=wi(te),le=ie.priority;this._listener.listenTo(this._listener,"_keydown:"+re,((te,ie)=>{ne(ie,(()=>{ie.preventDefault(),ie.stopPropagation(),te.stop()})),te.return=!0}),{priority:le})}press(te){return!!this._listener.fire("_keydown:"+bi(te),te)}stopListening(te){this._listener.stopListening(te)}destroy(){this.stopListening()}}function Mi(te){return et(te)?new Map(te):function(te){const ne=new Map;for(const ie in te)ne.set(ie,te[ie]);return ne}(te)}function Bi(te,ne){let ie;function o(...re){o.cancel(),ie=setTimeout((()=>te(...re)),ne)}return o.cancel=()=>{clearTimeout(ie)},o}function Ni(te,ne){return!!(ie=te.charAt(ne-1))&&1==ie.length&&/[\ud800-\udbff]/.test(ie)&&function(te){return!!te&&1==te.length&&/[\udc00-\udfff]/.test(te)}(te.charAt(ne));var ie}function zi(te,ne){return!!(ie=te.charAt(ne))&&1==ie.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(ie);var ie}const Io=function(){const te=/\p{Regional_Indicator}{2}/u.source,ne="(?:"+[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u].map((te=>te.source)).join("|")+")";return new RegExp(`${te}|${ne}(?:‍${ne})*`,"ug")}();function Li(te,ne){const ie=String(te).matchAll(Io);return Array.from(ie).some((te=>te.index<ne&&ne<te.index+te[0].length))}class Oi extends Di{constructor(te=[]){super(te,{idProperty:"viewUid"}),this.on("add",((te,ne,ie)=>{this._renderViewIntoCollectionParent(ne,ie)})),this.on("remove",((te,ne)=>{ne.element&&this._parentElement&&ne.element.remove()})),this._parentElement=null}destroy(){this.map((te=>te.destroy()))}setParent(te){this._parentElement=te;for(const te of this)this._renderViewIntoCollectionParent(te)}delegate(...te){if(!te.length||!te.every((te=>"string"==typeof te)))throw new C("ui-viewcollection-delegate-wrong-events",this);return{to:ne=>{for(const ie of this)for(const re of te)ie.delegate(re).to(ne);this.on("add",((ie,re)=>{for(const ie of te)re.delegate(ie).to(ne)})),this.on("remove",((ie,re)=>{for(const ie of te)re.stopDelegating(ie,ne)}))}}}_renderViewIntoCollectionParent(te,ne){te.isRendered||te.render(),te.element&&this._parentElement&&this._parentElement.insertBefore(te.element,this._parentElement.children[ne])}remove(te){return super.remove(te)}}var Po=i(3379),Fo=i.n(Po),zo=i(5167);Fo()(zo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),zo.Z.locals;class Hi extends(Mo(q())){constructor(te){super(),this.element=null,this.isRendered=!1,this.locale=te,this.t=te&&te.t,this._viewCollections=new Di,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((ne,ie)=>{ie.locale=te,ie.t=te&&te.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Ui.bind(this,this)}createCollection(te){const ne=new Oi(te);return this._viewCollections.add(ne),ne}registerChild(te){et(te)||(te=[te]);for(const ne of te)this._unboundChildren.add(ne)}deregisterChild(te){et(te)||(te=[te]);for(const ne of te)this._unboundChildren.remove(ne)}setTemplate(te){this.template=new Ui(te)}extendTemplate(te){Ui.extend(this.template,te)}render(){if(this.isRendered)throw new C("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((te=>te.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}class Ui extends(M()){constructor(te){super(),Object.assign(this,Xi(Ji(te))),this._isRendered=!1,this._revertData=null}render(){const te=this._renderNode({intoFragment:!0});return this._isRendered=!0,te}apply(te){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:te,intoFragment:!1,isApplying:!0,revertData:this._revertData}),te}revert(te){if(!this._revertData)throw new C("ui-template-revert-not-applied",[this,te]);this._revertTemplateFromNode(te,this._revertData)}*getViews(){yield*function*t(te){if(te.children)for(const ne of te.children)rr(ne)?yield ne:sr(ne)&&(yield*t(ne))}(this)}static bind(te,ne){return{to:(ie,re)=>new Gi({eventNameOrFunction:ie,attribute:ie,observable:te,emitter:ne,callback:re}),if:(ie,re,le)=>new qi({observable:te,emitter:ne,attribute:ie,valueIfTrue:re,callback:le})}}static extend(te,ne){if(te._isRendered)throw new C("template-extend-render",[this,te]);or(te,Xi(Ji(ne)))}_renderNode(te){let ne;if(ne=te.node?this.tag&&this.text:this.tag?this.text:!this.text,ne)throw new C("ui-template-wrong-syntax",this);return this.text?this._renderText(te):this._renderElement(te)}_renderElement(te){let ne=te.node;return ne||(ne=te.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(te),this._renderElementChildren(te),this._setUpListeners(te),ne}_renderText(te){let ne=te.node;return ne?te.revertData.text=ne.textContent:ne=te.node=document.createTextNode(""),Zi(this.text)?this._bindToObservable({schema:this.text,updater:Ki(ne),data:te}):ne.textContent=this.text.join(""),ne}_renderAttributes(te){if(!this.attributes)return;const ne=te.node,ie=te.revertData;for(const re in this.attributes){const le=ne.getAttribute(re),ce=this.attributes[re];ie&&(ie.attributes[re]=le);const de=lr(ce)?ce[0].ns:null;if(Zi(ce)){const ue=lr(ce)?ce[0].value:ce;ie&&cr(re)&&ue.unshift(le),this._bindToObservable({schema:ue,updater:Yi(ne,re,de),data:te})}else if("style"==re&&"string"!=typeof ce[0])this._renderStyleAttribute(ce[0],te);else{ie&&le&&cr(re)&&ce.unshift(le);const te=ce.map((te=>te&&te.value||te)).reduce(((te,ne)=>te.concat(ne)),[]).reduce(er,"");ir(te)||ne.setAttributeNS(de,re,te)}}}_renderStyleAttribute(te,ne){const ie=ne.node;for(const re in te){const le=te[re];Zi(le)?this._bindToObservable({schema:[le],updater:Qi(ie,re),data:ne}):ie.style[re]=le}}_renderElementChildren(te){const ne=te.node,ie=te.intoFragment?document.createDocumentFragment():ne,re=te.isApplying;let le=0;for(const ce of this.children)if(ar(ce)){if(!re){ce.setParent(ne);for(const te of ce)ie.appendChild(te.element)}}else if(rr(ce))re||(ce.isRendered||ce.render(),ie.appendChild(ce.element));else if(So(ce))ie.appendChild(ce);else if(re){const ne={children:[],bindings:[],attributes:{}};te.revertData.children.push(ne),ce._renderNode({intoFragment:!1,node:ie.childNodes[le++],isApplying:!0,revertData:ne})}else ie.appendChild(ce.render());te.intoFragment&&ne.appendChild(ie)}_setUpListeners(te){if(this.eventListeners)for(const ne in this.eventListeners){const ie=this.eventListeners[ne].map((ie=>{const[re,le]=ne.split("@");return ie.activateDomEventListener(re,le,te)}));te.revertData&&te.revertData.bindings.push(ie)}}_bindToObservable({schema:te,updater:ne,data:ie}){const re=ie.revertData;$i(te,ne,ie);const le=te.filter((te=>!ir(te))).filter((te=>te.observable)).map((re=>re.activateAttributeListener(te,ne,ie)));re&&re.bindings.push(le)}_revertTemplateFromNode(te,ne){for(const te of ne.bindings)for(const ne of te)ne();if(ne.text)return void(te.textContent=ne.text);const ie=te;for(const te in ne.attributes){const re=ne.attributes[te];null===re?ie.removeAttribute(te):ie.setAttribute(te,re)}for(let te=0;te<ne.children.length;++te)this._revertTemplateFromNode(ie.childNodes[te],ne.children[te])}}class Wi{constructor(te){this.attribute=te.attribute,this.observable=te.observable,this.emitter=te.emitter,this.callback=te.callback}getValue(te){const ne=this.observable[this.attribute];return this.callback?this.callback(ne,te):ne}activateAttributeListener(te,ne,ie){const o=()=>$i(te,ne,ie);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,o),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,o)}}}class Gi extends Wi{constructor(te){super(te),this.eventNameOrFunction=te.eventNameOrFunction}activateDomEventListener(te,ne,ie){const o=(te,ie)=>{ne&&!ie.target.matches(ne)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(ie):this.observable.fire(this.eventNameOrFunction,ie))};return this.emitter.listenTo(ie.node,te,o),()=>{this.emitter.stopListening(ie.node,te,o)}}}class qi extends Wi{constructor(te){super(te),this.valueIfTrue=te.valueIfTrue}getValue(te){return!ir(super.getValue(te))&&(this.valueIfTrue||!0)}}function Zi(te){return!!te&&(te.value&&(te=te.value),Array.isArray(te)?te.some(Zi):te instanceof Wi)}function $i(te,ne,{node:ie}){const re=function(te,ne){return te.map((te=>te instanceof Wi?te.getValue(ne):te))}(te,ie);let le;le=1==te.length&&te[0]instanceof qi?re[0]:re.reduce(er,""),ir(le)?ne.remove():ne.set(le)}function Ki(te){return{set(ne){te.textContent=ne},remove(){te.textContent=""}}}function Yi(te,ne,ie){return{set(re){te.setAttributeNS(ie,ne,re)},remove(){te.removeAttributeNS(ie,ne)}}}function Qi(te,ne){return{set(ie){te.style[ne]=ie},remove(){te.style[ne]=null}}}function Ji(te){return vo(te,(te=>{if(te&&(te instanceof Wi||sr(te)||rr(te)||ar(te)))return te}))}function Xi(te){if("string"==typeof te?te=function(te){return{text:[te]}}(te):te.text&&function(te){te.text=_i(te.text)}(te),te.on&&(te.eventListeners=function(te){for(const ne in te)tr(te,ne);return te}(te.on),delete te.on),!te.text){te.attributes&&function(te){for(const ne in te)te[ne].value&&(te[ne].value=_i(te[ne].value)),tr(te,ne)}(te.attributes);const ne=[];if(te.children)if(ar(te.children))ne.push(te.children);else for(const ie of te.children)sr(ie)||rr(ie)||So(ie)?ne.push(ie):ne.push(new Ui(ie));te.children=ne}return te}function tr(te,ne){te[ne]=_i(te[ne])}function er(te,ne){return ir(ne)?te:ir(te)?ne:`${te} ${ne}`}function nr(te,ne){for(const ie in ne)te[ie]?te[ie].push(...ne[ie]):te[ie]=ne[ie]}function or(te,ne){if(ne.attributes&&(te.attributes||(te.attributes={}),nr(te.attributes,ne.attributes)),ne.eventListeners&&(te.eventListeners||(te.eventListeners={}),nr(te.eventListeners,ne.eventListeners)),ne.text&&te.text.push(...ne.text),ne.children&&ne.children.length){if(te.children.length!=ne.children.length)throw new C("ui-template-extend-children-mismatch",te);let ie=0;for(const re of ne.children)or(te.children[ie++],re)}}function ir(te){return!te&&0!==te}function rr(te){return te instanceof Hi}function sr(te){return te instanceof Ui}function ar(te){return te instanceof Oi}function lr(te){return V(te[0])&&te[0].ns}function cr(te){return"class"==te||"style"==te}class dr extends Oi{constructor(te,ne=[]){super(ne),this.locale=te}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Ui({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let te=document.querySelector(".ck-body-wrapper");te||(te=bt(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(te)),te.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const te=document.querySelector(".ck-body-wrapper");te&&0==te.childElementCount&&te.remove()}}var Zo=i(1977);Fo()(Zo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Zo.Z.locals;let ur=(()=>{class mr extends Hi{constructor(){super();const te=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",te.if("isVisible","ck-hidden",(te=>!te)),"ck-reset_all-excluded",te.if("isColorInherited","ck-icon_inherit-color")],viewBox:te.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const te=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),ne=te.getAttribute("viewBox");ne&&(this.viewBox=ne);for(const{name:ne,value:ie}of Array.from(te.attributes))mr.presentationalAttributeNames.includes(ne)&&this.element.setAttribute(ne,ie);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;te.childNodes.length>0;)this.element.appendChild(te.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((te=>{te.style.fill=this.fillColor}))}}return mr.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"],mr})();const hr=ur;class pr extends Hi{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const te=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:te.to("style"),id:te.to("id")},children:[{text:te.to("text")}]})}}var gr=i(4971);Fo()(gr.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),gr.Z.locals;class br extends Hi{constructor(te,ne=new pr){super(te),this._focusDelayed=null;const ie=this.bindTemplate,re=k();this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${re}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(ne),this.iconView=new hr,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const ce={tag:"button",attributes:{class:["ck","ck-button",ie.to("class"),ie.if("isEnabled","ck-disabled",(te=>!te)),ie.if("isVisible","ck-hidden",(te=>!te)),ie.to("isOn",(te=>te?"ck-on":"ck-off")),ie.if("withText","ck-button_with-text"),ie.if("withKeystroke","ck-button_with-keystroke")],role:ie.to("role"),type:ie.to("type",(te=>te||"button")),tabindex:ie.to("tabindex"),"aria-label":ie.to("ariaLabel"),"aria-labelledby":ie.to("ariaLabelledBy"),"aria-disabled":ie.if("isEnabled",!0,(te=>!te)),"aria-pressed":ie.to("isOn",(te=>!!this.isToggleable&&String(!!te))),"data-cke-tooltip-text":ie.to("_tooltipString"),"data-cke-tooltip-position":ie.to("tooltipPosition")},children:this.children,on:{click:ie.to((te=>{this.isEnabled?this.fire("execute"):te.preventDefault()}))}};le.isSafari&&(this._focusDelayed||(this._focusDelayed=Bi((()=>this.focus()),0)),ce.on.mousedown=ie.to((()=>{this._focusDelayed()})),ce.on.mouseup=ie.to((()=>{this._focusDelayed.cancel()}))),this.setTemplate(ce)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(te){return te.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),te}_createKeystrokeView(){const te=new Hi;return te.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(te=>Ai(te)))}]}),te}_getTooltipString(te,ne,ie){return te?"string"==typeof te?te:(ie&&(ie=Ai(ie)),te instanceof Function?te(ne,ie):`${ne}${ie?` (${ie})`:""}`):""}}var fr=i(7258);Fo()(fr.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),fr.Z.locals;class Cr extends br{constructor(te){super(te),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const te=new Hi;return te.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),te}}const _r='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';var vr=i(4095);Fo()(vr.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),vr.Z.locals;class xr extends Hi{constructor(te,ne){super(te);const ie=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),ne&&this.children.addMany(ne),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",ie.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:ie.if("isCollapsed","hidden"),"aria-labelledby":ie.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}focus(){this.buttonView.focus()}_createButtonView(){const te=new br(this.locale),ne=te.bindTemplate;return te.set({withText:!0,icon:_r}),te.extendTemplate({attributes:{"aria-expanded":ne.to("isOn",(te=>String(te)))}}),te.bind("label").to(this),te.bind("isOn").to(this,"isCollapsed",(te=>!te)),te.on("execute",(()=>{this.isCollapsed=!this.isCollapsed})),te}}function Er(te,ne){const ie=te.t,re={Black:ie("Black"),"Dim grey":ie("Dim grey"),Grey:ie("Grey"),"Light grey":ie("Light grey"),White:ie("White"),Red:ie("Red"),Orange:ie("Orange"),Yellow:ie("Yellow"),"Light green":ie("Light green"),Green:ie("Green"),Aquamarine:ie("Aquamarine"),Turquoise:ie("Turquoise"),"Light blue":ie("Light blue"),Blue:ie("Blue"),Purple:ie("Purple")};return ne.map((te=>{const ne=re[te.label];return ne&&ne!=te.label&&(te.label=ne),te}))}function Dr(te){return te.map(Sr).filter((te=>!!te))}function Sr(te){return"string"==typeof te?{model:te,label:te,hasBorder:!1,view:{name:"span",styles:{color:te}}}:{model:te.color,label:te.label||te.color,hasBorder:void 0!==te.hasBorder&&te.hasBorder,view:{name:"span",styles:{color:`${te.color}`}}}}class Tr extends br{constructor(te){super(te);const ne=this.bindTemplate;this.set("color",void 0),this.set("hasBorder",!1),this.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',this.extendTemplate({attributes:{style:{backgroundColor:ne.to("color")},class:["ck","ck-color-grid__tile",ne.if("hasBorder","ck-color-selector__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}var yr=i(4923);Fo()(yr.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),yr.Z.locals;class Br extends Hi{constructor(te,ne){super(te);const ie=ne&&ne.colorDefinitions?ne.colorDefinitions:[];this.columns=ne&&ne.columns?ne.columns:5;const re={gridTemplateColumns:`repeat( ${this.columns}, 1fr)`};this.set("selectedColor",void 0),this.items=this.createCollection(),this.focusTracker=new Ti,this.keystrokes=new Ii,this.items.on("add",((te,ne)=>{ne.isOn=ne.color===this.selectedColor})),ie.forEach((te=>{const ne=new Tr;ne.set({color:te.color,label:te.label,tooltip:!0,hasBorder:te.options.hasBorder}),ne.on("execute",(()=>{this.fire("execute",{value:te.color,hasBorder:te.options.hasBorder,label:te.label})})),this.items.add(ne)})),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:re}}),this.on("change:selectedColor",((te,ne,ie)=>{for(const te of this.items)te.isOn=te.color===ie}))}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const te of this.items)this.focusTracker.add(te.element);this.items.on("add",((te,ne)=>{this.focusTracker.add(ne.element)})),this.items.on("remove",((te,ne)=>{this.focusTracker.remove(ne.element)})),this.keystrokes.listenTo(this.element),o({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:this.columns,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var wr=i(8874);const zr=function(te){var ne,ie,re=[],le=1;if("string"==typeof te)if(wr[te])re=wr[te].slice(),ie="rgb";else if("transparent"===te)le=0,ie="rgb",re=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(te)){var ce=te.slice(1);le=1,(me=ce.length)<=4?(re=[parseInt(ce[0]+ce[0],16),parseInt(ce[1]+ce[1],16),parseInt(ce[2]+ce[2],16)],4===me&&(le=parseInt(ce[3]+ce[3],16)/255)):(re=[parseInt(ce[0]+ce[1],16),parseInt(ce[2]+ce[3],16),parseInt(ce[4]+ce[5],16)],8===me&&(le=parseInt(ce[6]+ce[7],16)/255)),re[0]||(re[0]=0),re[1]||(re[1]=0),re[2]||(re[2]=0),ie="rgb"}else if(ne=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(te)){var de=ne[1],ue="rgb"===de;ie=ce=de.replace(/a$/,"");var me="cmyk"===ce?4:"gray"===ce?1:3;re=ne[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(te,ne){if(/%$/.test(te))return ne===me?parseFloat(te)/100:"rgb"===ce?255*parseFloat(te)/100:parseFloat(te);if("h"===ce[ne]){if(/deg$/.test(te))return parseFloat(te);if(void 0!==Ar[te])return Ar[te]}return parseFloat(te)})),de===ce&&re.push(1),le=ue||void 0===re[me]?1:re[me],re=re.slice(0,me)}else te.length>10&&/[0-9](?:\s|\/)/.test(te)&&(re=te.match(/([0-9]+)/g).map((function(te){return parseFloat(te)})),ie=te.match(/([a-z])/gi).join("").toLowerCase());else isNaN(te)?Array.isArray(te)||te.length?(re=[te[0],te[1],te[2]],ie="rgb",le=4===te.length?te[3]:1):te instanceof Object&&(null!=te.r||null!=te.red||null!=te.R?(ie="rgb",re=[te.r||te.red||te.R||0,te.g||te.green||te.G||0,te.b||te.blue||te.B||0]):(ie="hsl",re=[te.h||te.hue||te.H||0,te.s||te.saturation||te.S||0,te.l||te.lightness||te.L||te.b||te.brightness]),le=te.a||te.alpha||te.opacity||1,null!=te.opacity&&(le/=100)):(ie="rgb",re=[te>>>16,(65280&te)>>>8,255&te]);return{space:ie,values:re,alpha:le}};var Ar={red:0,orange:60,yellow:120,green:180,blue:240,purple:300},kr=i(2085),Ir=i.t(kr,2);function Rr(te,ne){if(!te)return"";const ie=Vr(te);if(!ie)return"";if(ie.space===ne)return te;if(re=ie,!Object.keys(Ir).includes(re.space))return"";var re;const le=Ir[ie.space][ne];return le?function(te,ne){switch(ne){case"hex":return`#${te}`;case"rgb":return`rgb( ${te[0]}, ${te[1]}, ${te[2]} )`;case"hsl":return`hsl( ${te[0]}, ${te[1]}%, ${te[2]}% )`;case"hwb":return`hwb( ${te[0]}, ${te[1]}, ${te[2]} )`;case"lab":return`lab( ${te[0]}% ${te[1]} ${te[2]} )`;case"lch":return`lch( ${te[0]}% ${te[1]} ${te[2]} )`;default:return""}}(le("hex"===ie.space?ie.hexValue:ie.values),ne):""}function Vr(te){if(te.startsWith("#")){const ne=zr(te);return{space:"hex",values:ne.values,hexValue:te,alpha:ne.alpha}}const ne=zr(te);return ne.space?ne:null}const Fr=function(){return Re.Date.now()};var Mr=/\s/,Nr=/^\s+/;const Wr=function(te){return te?te.slice(0,function(te){for(var ne=te.length;ne--&&Mr.test(te.charAt(ne)););return ne}(te)+1).replace(Nr,""):te},Gr=function(te){return"symbol"==typeof te||ft(te)&&"[object Symbol]"==gt(te)};var Lr=/^[-+]0x[0-9a-f]+$/i,Or=/^0b[01]+$/i,Pr=/^0o[0-7]+$/i,jr=parseInt;const Yr=function(te){if("number"==typeof te)return te;if(Gr(te))return NaN;if(V(te)){var ne="function"==typeof te.valueOf?te.valueOf():te;te=V(ne)?ne+"":ne}if("string"!=typeof te)return 0===te?te:+te;te=Wr(te);var ie=Or.test(te);return ie||Pr.test(te)?jr(te.slice(2),ie?2:8):Lr.test(te)?NaN:+te};var Hr=Math.max,Ur=Math.min;const Xr=function(te,ne,ie){var re,le,ce,de,ue,me,ge=0,fe=!1,_e=!1,be=!0;if("function"!=typeof te)throw new TypeError("Expected a function");function m(ne){var ie=re,ce=le;return re=le=void 0,ge=ne,de=te.apply(ce,ie)}function g(te){var ie=te-me;return void 0===me||ie>=ne||ie<0||_e&&te-ge>=ce}function p(){var te=Fr();if(g(te))return f(te);ue=setTimeout(p,function(te){var ie=ne-(te-me);return _e?Ur(ie,ce-(te-ge)):ie}(te))}function f(te){return ue=void 0,be&&re?m(te):(re=le=void 0,de)}function k(){var te=Fr(),ie=g(te);if(re=arguments,le=this,me=te,ie){if(void 0===ue)return function(te){return ge=te,ue=setTimeout(p,ne),fe?m(te):de}(me);if(_e)return clearTimeout(ue),ue=setTimeout(p,ne),m(me)}return void 0===ue&&(ue=setTimeout(p,ne)),de}return ne=Yr(ne)||0,V(ie)&&(fe=!!ie.leading,ce=(_e="maxWait"in ie)?Hr(Yr(ie.maxWait)||0,ne):ce,be="trailing"in ie?!!ie.trailing:be),k.cancel=function(){void 0!==ue&&clearTimeout(ue),ge=0,re=me=le=ue=void 0},k.flush=function(){return void 0===ue?de:f(Fr())},k};var $r=i(3525);Fo()($r.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$r.Z.locals;class ns extends Hi{constructor(te){super(te),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${k()}`;const ne=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:ne.to("for")},children:[{text:ne.to("text")}]})}}var qr=i(2933);Fo()(qr.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),qr.Z.locals;class rs extends Hi{constructor(te,ne){super(te);const ie=`ck-labeled-field-view-${k()}`,re=`ck-labeled-field-view-status-${k()}`;this.fieldView=ne(this,ie,re),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(ie),this.statusView=this._createStatusView(re),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",((te,ne)=>te||ne));const le=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",le.to("class"),le.if("isEnabled","ck-disabled",(te=>!te)),le.if("isEmpty","ck-labeled-field-view_empty"),le.if("isFocused","ck-labeled-field-view_focused"),le.if("placeholder","ck-labeled-field-view_placeholder"),le.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(te){const ne=new ns(this.locale);return ne.for=te,ne.bind("text").to(this,"label"),ne}_createStatusView(te){const ne=new Hi(this.locale),ie=this.bindTemplate;return ne.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",ie.if("errorText","ck-labeled-field-view__status_error"),ie.if("_statusText","ck-hidden",(te=>!te))],id:te,role:ie.if("errorText","alert")},children:[{text:ie.to("_statusText")}]}),ne}focus(te){this.fieldView.focus(te)}}class ss extends Hi{constructor(te){super(te),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new Ti,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const ne=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",ne.if("isFocused","ck-input_focused"),ne.if("isEmpty","ck-input-text_empty"),ne.if("hasError","ck-error")],id:ne.to("id"),placeholder:ne.to("placeholder"),readonly:ne.to("isReadOnly"),"aria-invalid":ne.if("hasError",!0),"aria-describedby":ne.to("ariaDescribedById")},on:{input:ne.to(((...te)=>{this.fire("input",...te),this._updateIsEmpty()})),change:ne.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",((te,ne,ie)=>{this._setDomElementValue(ie),this._updateIsEmpty()}))}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(te){this.element.value=te||0===te?te:""}}var Kr=i(2470);Fo()(Kr.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Kr.Z.locals;class cs extends ss{constructor(te){super(te),this.set("inputMode","text");const ne=this.bindTemplate;this.extendTemplate({attributes:{inputmode:ne.to("inputMode")}})}}class ds extends cs{constructor(te){super(te),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}class hs extends cs{constructor(te,{min:ne,max:ie,step:re}={}){super(te);const le=this.bindTemplate;this.set("min",ne),this.set("max",ie),this.set("step",re),this.extendTemplate({attributes:{type:"number",class:["ck-input-number"],min:le.to("min"),max:le.to("max"),step:le.to("step")}})}}var Qr=i(5224);Fo()(Qr.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Qr.Z.locals;class gs extends Hi{constructor(te){super(te);const ne=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",ne.to("position",(te=>`ck-dropdown__panel_${te}`)),ne.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:ne.to((te=>{"input"!==te.target.tagName.toLocaleLowerCase()&&te.preventDefault()}))}})}focus(){if(this.children.length){const te=this.children.first;"function"==typeof te.focus?te.focus():_("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const te=this.children.last;"function"==typeof te.focusLast?te.focusLast():te.focus()}}}var Jr=i(5062);Fo()(Jr.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Jr.Z.locals;class ks extends Hi{constructor(te,ne,ie){super(te);const re=this.bindTemplate;this.buttonView=ne,this.panelView=ie,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new Ii,this.focusTracker=new Ti,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",re.to("class"),re.if("isEnabled","ck-disabled",(te=>!te))],id:re.to("id"),"aria-describedby":re.to("ariaDescribedById")},children:[ne,ie]}),ne.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":re.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.on("change:isOpen",((te,ne,ie)=>{if(ie)if("auto"===this.panelPosition){const te=ks._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=te?te.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition})),this.keystrokes.listenTo(this.element);const t=(te,ne)=>{this.isOpen&&(this.isOpen=!1,ne())};this.keystrokes.set("arrowdown",((te,ne)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,ne())})),this.keystrokes.set("arrowright",((te,ne)=>{this.isOpen&&ne()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:te,north:ne,southEast:ie,southWest:re,northEast:le,northWest:ce,southMiddleEast:de,southMiddleWest:ue,northMiddleEast:me,northMiddleWest:ge}=ks.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[ie,re,de,ue,te,le,ce,me,ge,ne]:[re,ie,ue,de,te,ce,le,ge,me,ne]}}ks.defaultPanelPositions={south:(te,ne)=>({top:te.bottom,left:te.left-(ne.width-te.width)/2,name:"s"}),southEast:te=>({top:te.bottom,left:te.left,name:"se"}),southWest:(te,ne)=>({top:te.bottom,left:te.left-ne.width+te.width,name:"sw"}),southMiddleEast:(te,ne)=>({top:te.bottom,left:te.left-(ne.width-te.width)/4,name:"sme"}),southMiddleWest:(te,ne)=>({top:te.bottom,left:te.left-3*(ne.width-te.width)/4,name:"smw"}),north:(te,ne)=>({top:te.top-ne.height,left:te.left-(ne.width-te.width)/2,name:"n"}),northEast:(te,ne)=>({top:te.top-ne.height,left:te.left,name:"ne"}),northWest:(te,ne)=>({top:te.top-ne.height,left:te.left-ne.width+te.width,name:"nw"}),northMiddleEast:(te,ne)=>({top:te.top-ne.height,left:te.left-(ne.width-te.width)/4,name:"nme"}),northMiddleWest:(te,ne)=>({top:te.top-ne.height,left:te.left-3*(ne.width-te.width)/4,name:"nmw"})},ks._getOptimalPosition=ei;const Zr=ks;class ws extends br{constructor(te){super(te),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",(te=>String(te)))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const te=new hr;return te.content=_r,te.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),te}}class As extends(M()){constructor(te){if(super(),this.focusables=te.focusables,this.focusTracker=te.focusTracker,this.keystrokeHandler=te.keystrokeHandler,this.actions=te.actions,te.actions&&te.keystrokeHandler)for(const ne in te.actions){let ie=te.actions[ne];"string"==typeof ie&&(ie=[ie]);for(const re of ie)te.keystrokeHandler.set(re,((te,ie)=>{this[ne](),ie()}))}this.on("forwardCycle",(()=>this.focusFirst()),{priority:"low"}),this.on("backwardCycle",(()=>this.focusLast()),{priority:"low"})}get first(){return this.focusables.find(Cs)||null}get last(){return this.focusables.filter(Cs).slice(-1)[0]||null}get next(){return this._getDomFocusableItem(1)}get previous(){return this._getDomFocusableItem(-1)}get current(){let te=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((ne,ie)=>{const re=ne.element===this.focusTracker.focusedElement;return re&&(te=ie),re})),te)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const te=this.next;te&&this.focusables.getIndex(te)===this.current||te===this.first?this.fire("forwardCycle"):this._focus(te,1)}focusPrevious(){const te=this.previous;te&&this.focusables.getIndex(te)===this.current||te===this.last?this.fire("backwardCycle"):this._focus(te,-1)}_focus(te,ne){te&&this.focusTracker.focusedElement!==te.element&&te.focus(ne)}_getDomFocusableItem(te){const ne=this.focusables.length;if(!ne)return null;const ie=this.current;if(null===ie)return this[1===te?"first":"last"];let re=this.focusables.get(ie),le=(ie+ne+te)%ne;do{const ie=this.focusables.get(le);if(Cs(ie)){re=ie;break}le=(le+ne+te)%ne}while(le!==ie);return re}}function Cs(te){return _s(te)&&ti(te.element)}function _s(te){return!(!("focus"in te)||"function"!=typeof te.focus)}class vs extends Hi{constructor(te){super(te),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class ys extends Hi{constructor(te){super(te),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function xs(te){if(Array.isArray(te))return{items:te,removeItems:[]};const ne={items:[],removeItems:[]};return te?{...ne,...te}:ne}class Es extends(q()){constructor(te){super(),this._disableStack=new Set,this.editor=te,this.set("isEnabled",!0)}forceDisabled(te){this._disableStack.add(te),1==this._disableStack.size&&(this.on("set:isEnabled",Ds,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(te){this._disableStack.delete(te),0==this._disableStack.size&&(this.off("set:isEnabled",Ds),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function Ds(te){te.return=!1,te.stop()}class Ss extends(q()){constructor(te){super(),this.editor=te,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.listenTo(te,"change:isReadOnly",(()=>{this.refresh()})),this.on("set:isEnabled",(ne=>{if(!this.affectsData)return;const ie=te.model.document.selection,re=!("$graveyard"==ie.getFirstPosition().root.rootName)&&te.model.canEditAt(ie);(te.isReadOnly||this._isEnabledBasedOnSelection&&!re)&&(ne.return=!1,ne.stop())}),{priority:"highest"}),this.on("execute",(te=>{this.isEnabled||te.stop()}),{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(te){this._affectsData=te}refresh(){this.isEnabled=!0}forceDisabled(te){this._disableStack.add(te),1==this._disableStack.size&&(this.on("set:isEnabled",Ts,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(te){this._disableStack.delete(te),0==this._disableStack.size&&(this.off("set:isEnabled",Ts),this.refresh())}execute(...te){}destroy(){this.stopListening()}}function Ts(te){te.return=!1,te.stop()}class Is extends Ss{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...te){const ne=this._getFirstEnabledCommand();return!!ne&&ne.execute(te)}registerChildCommand(te,ne={}){w(this._childCommandsDefinitions,{command:te,priority:ne.priority||"normal"}),te.on("change:isEnabled",(()=>this._checkEnabled())),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const te=this._childCommandsDefinitions.find((({command:te})=>te.isEnabled));return te&&te.command}}class Ms extends(M()){constructor(te,ne=[],ie=[]){super(),this._plugins=new Map,this._context=te,this._availablePlugins=new Map;for(const te of ne)te.pluginName&&this._availablePlugins.set(te.pluginName,te);this._contextPlugins=new Map;for(const[te,ne]of ie)this._contextPlugins.set(te,ne),this._contextPlugins.set(ne,te),te.pluginName&&this._availablePlugins.set(te.pluginName,te)}*[Symbol.iterator](){for(const te of this._plugins)"function"==typeof te[0]&&(yield te)}get(te){const ne=this._plugins.get(te);if(!ne){let ne=te;throw"function"==typeof te&&(ne=te.pluginName||te.name),new C("plugincollection-plugin-not-loaded",this._context,{plugin:ne})}return ne}has(te){return this._plugins.has(te)}init(te,ne=[],ie=[]){const re=this,le=this._context;!function t(te,ne=new Set){te.forEach((te=>{a(te)&&(ne.has(te)||(ne.add(te),te.pluginName&&!re._availablePlugins.has(te.pluginName)&&re._availablePlugins.set(te.pluginName,te),te.requires&&t(te.requires,ne)))}))}(te),h(te);const ce=[...function t(te,ne=new Set){return te.map((te=>a(te)?te:re._availablePlugins.get(te))).reduce(((te,ie)=>ne.has(ie)?te:(ne.add(ie),ie.requires&&(h(ie.requires,ie),t(ie.requires,ne).forEach((ne=>te.add(ne)))),te.add(ie))),new Set)}(te.filter((te=>!c(te,ne))))];!function(te,ne){for(const ie of ne){if("function"!=typeof ie)throw new C("plugincollection-replace-plugin-invalid-type",null,{pluginItem:ie});const ne=ie.pluginName;if(!ne)throw new C("plugincollection-replace-plugin-missing-name",null,{pluginItem:ie});if(ie.requires&&ie.requires.length)throw new C("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:ne});const le=re._availablePlugins.get(ne);if(!le)throw new C("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:ne});const ce=te.indexOf(le);if(-1===ce){if(re._contextPlugins.has(le))return;throw new C("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:ne})}if(le.requires&&le.requires.length)throw new C("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:ne});te.splice(ce,1,ie),re._availablePlugins.set(ne,ie)}}(ce,ie);const de=function(te){return te.map((te=>{let ne=re._contextPlugins.get(te);return ne=ne||new te(le),re._add(te,ne),ne}))}(ce);return u(de,"init").then((()=>u(de,"afterInit"))).then((()=>de));function a(te){return"function"==typeof te}function l(te){return a(te)&&!!te.isContextPlugin}function c(te,ne){return ne.some((ne=>ne===te||d(te)===ne||d(ne)===te))}function d(te){return a(te)?te.pluginName||te.name:te}function h(te,ie=null){te.map((te=>a(te)?te:re._availablePlugins.get(te)||te)).forEach((te=>{!function(te,ne){if(!a(te)){if(ne)throw new C("plugincollection-soft-required",le,{missingPlugin:te,requiredBy:d(ne)});throw new C("plugincollection-plugin-not-found",le,{plugin:te})}}(te,ie),function(te,ne){if(l(ne)&&!l(te))throw new C("plugincollection-context-required",le,{plugin:d(te),requiredBy:d(ne)})}(te,ie),function(te,ie){if(ie&&c(te,ne))throw new C("plugincollection-required",le,{plugin:d(te),requiredBy:d(ie)})}(te,ie)}))}function u(te,ne){return te.reduce(((te,ie)=>ie[ne]?re._contextPlugins.has(ie)?te:te.then(ie[ne].bind(ie)):te),Promise.resolve())}}destroy(){const te=[];for(const[,ne]of this)"function"!=typeof ne.destroy||this._contextPlugins.has(ne)||te.push(ne.destroy());return Promise.all(te)}_add(te,ne){this._plugins.set(te,ne);const ie=te.pluginName;if(ie){if(this._plugins.has(ie))throw new C("plugincollection-plugin-name-conflict",null,{pluginName:ie,plugin1:this._plugins.get(ie).constructor,plugin2:te});this._plugins.set(ie,ne)}}}class Bs{constructor(te){this._contextOwner=null,this.config=new xo(te,this.constructor.defaultConfig);const ne=this.constructor.builtinPlugins;this.config.define("plugins",ne),this.plugins=new Ms(this,ne);const ie=this.config.get("language")||{};this.locale=new Ei({uiLanguage:"string"==typeof ie?ie:ie.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Di}initPlugins(){const te=this.config.get("plugins")||[],ne=this.config.get("substitutePlugins")||[];for(const ie of te.concat(ne)){if("function"!=typeof ie)throw new C("context-initplugins-constructor-only",null,{Plugin:ie});if(!0!==ie.isContextPlugin)throw new C("context-initplugins-invalid-plugin",null,{Plugin:ie})}return this.plugins.init(te,[],ne)}destroy(){return Promise.all(Array.from(this.editors,(te=>te.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(te,ne){if(this._contextOwner)throw new C("context-addeditor-private-context");this.editors.add(te),ne&&(this._contextOwner=te)}_removeEditor(te){return this.editors.has(te)&&this.editors.remove(te),this._contextOwner===te?this.destroy():Promise.resolve()}_getEditorConfig(){const te={};for(const ne of this.config.names())["plugins","removePlugins","extraPlugins"].includes(ne)||(te[ne]=this.config.get(ne));return te}static create(te){return new Promise((ne=>{const ie=new this(te);ne(ie.initPlugins().then((()=>ie)))}))}}class Ns extends(q()){constructor(te){super(),this.context=te}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}var ea=i(7372);Fo()(ea.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ea.Z.locals;const ta=new WeakMap;let ia=!1;function Hs(te,ne){const ie=ta.get(te),re=[];let le=!1;for(const[te,ce]of ie)ce.isDirectHost&&(re.push(te),Us(ne,te,ce)&&(le=!0));for(const[te,ce]of ie){if(ce.isDirectHost)continue;const ie=Ws(te);ie&&(re.includes(ie)||(ce.hostElement=ie,Us(ne,te,ce)&&(le=!0)))}return le}function Us(te,ne,ie){const{text:re,isDirectHost:le,hostElement:ce}=ie;let de=!1;return ce.getAttribute("data-placeholder")!==re&&(te.setAttribute("data-placeholder",re,ce),de=!0),(le||1==ne.childCount)&&function js(te,ne){if(!te.isAttached())return!1;const ie=Array.from(te.getChildren()).some((te=>!te.is("uiElement")));if(ie)return!1;const re=te.document,le=re.selection.anchor;return!(re.isComposing&&le&&le.parent===te||!ne&&re.isFocused&&(!le||le.parent===te))}(ce,ie.keepOnFocus)?function Vs(te,ne){return!ne.hasClass("ck-placeholder")&&(te.addClass("ck-placeholder",ne),!0)}(te,ce)&&(de=!0):function Fs(te,ne){return!!ne.hasClass("ck-placeholder")&&(te.removeClass("ck-placeholder",ne),!0)}(te,ce)&&(de=!0),de}function Ws(te){if(te.childCount){const ne=te.getChild(0);if(ne.is("element")&&!ne.is("uiElement")&&!ne.is("attributeElement"))return ne}return null}class Gs{is(){throw new Error("is() method is abstract")}}const qs=function(te){return co(te,4)};class Zs extends(M(Gs)){constructor(te){super(),this.document=te,this.parent=null}get index(){let te;if(!this.parent)return null;if(-1==(te=this.parent.getChildIndex(this)))throw new C("view-node-not-found-in-parent",this);return te}get nextSibling(){const te=this.index;return null!==te&&this.parent.getChild(te+1)||null}get previousSibling(){const te=this.index;return null!==te&&this.parent.getChild(te-1)||null}get root(){let te=this;for(;te.parent;)te=te.parent;return te}isAttached(){return this.root.is("rootElement")}getPath(){const te=[];let ne=this;for(;ne.parent;)te.unshift(ne.index),ne=ne.parent;return te}getAncestors(te={}){const ne=[];let ie=te.includeSelf?this:this.parent;for(;ie;)ne[te.parentFirst?"push":"unshift"](ie),ie=ie.parent;return ne}getCommonAncestor(te,ne={}){const ie=this.getAncestors(ne),re=te.getAncestors(ne);let le=0;for(;ie[le]==re[le]&&ie[le];)le++;return 0===le?null:ie[le-1]}isBefore(te){if(this==te)return!1;if(this.root!==te.root)return!1;const ne=this.getPath(),ie=te.getPath(),re=tt(ne,ie);switch(re){case"prefix":return!0;case"extension":return!1;default:return ne[re]<ie[re]}}isAfter(te){return this!=te&&this.root===te.root&&!this.isBefore(te)}_remove(){this.parent._removeChildren(this.index)}_fireChange(te,ne){this.fire(`change:${te}`,ne),this.parent&&this.parent._fireChange(te,ne)}toJSON(){const te=qs(this);return delete te.parent,te}}Zs.prototype.is=function(te){return"node"===te||"view:node"===te};class $s extends Zs{constructor(te,ne){super(te),this._textData=ne}get data(){return this._textData}get _data(){return this.data}set _data(te){this._fireChange("text",this),this._textData=te}isSimilar(te){return te instanceof $s&&(this===te||this.data===te.data)}_clone(){return new $s(this.document,this.data)}}$s.prototype.is=function(te){return"$text"===te||"view:$text"===te||"text"===te||"view:text"===te||"node"===te||"view:node"===te};class Ks extends Gs{constructor(te,ne,ie){if(super(),this.textNode=te,ne<0||ne>te.data.length)throw new C("view-textproxy-wrong-offsetintext",this);if(ie<0||ne+ie>te.data.length)throw new C("view-textproxy-wrong-length",this);this.data=te.data.substring(ne,ne+ie),this.offsetInText=ne}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(te={}){const ne=[];let ie=te.includeSelf?this.textNode:this.parent;for(;null!==ie;)ne[te.parentFirst?"push":"unshift"](ie),ie=ie.parent;return ne}}Ks.prototype.is=function(te){return"$textProxy"===te||"view:$textProxy"===te||"textProxy"===te||"view:textProxy"===te};class Ys{constructor(...te){this._patterns=[],this.add(...te)}add(...te){for(let ne of te)("string"==typeof ne||ne instanceof RegExp)&&(ne={name:ne}),this._patterns.push(ne)}match(...te){for(const ne of te)for(const te of this._patterns){const ie=Qs(ne,te);if(ie)return{element:ne,pattern:te,match:ie}}return null}matchAll(...te){const ne=[];for(const ie of te)for(const te of this._patterns){const re=Qs(ie,te);re&&ne.push({element:ie,pattern:te,match:re})}return ne.length>0?ne:null}getElementName(){if(1!==this._patterns.length)return null;const te=this._patterns[0],ne=te.name;return"function"==typeof te||!ne||ne instanceof RegExp?null:ne}}function Qs(te,ne){if("function"==typeof ne)return ne(te);const ie={};return ne.name&&(ie.name=function(te,ne){return te instanceof RegExp?!!ne.match(te):te===ne}(ne.name,te.name),!ie.name)||ne.attributes&&(ie.attributes=function(te,ne){const ie=new Set(ne.getAttributeKeys());return Et(te)?(void 0!==te.style&&_("matcher-pattern-deprecated-attributes-style-key",te),void 0!==te.class&&_("matcher-pattern-deprecated-attributes-class-key",te)):(ie.delete("style"),ie.delete("class")),Js(te,ie,(te=>ne.getAttribute(te)))}(ne.attributes,te),!ie.attributes)||ne.classes&&(ie.classes=function(te,ne){return Js(te,ne.getClassNames(),(()=>{}))}(ne.classes,te),!ie.classes)||ne.styles&&(ie.styles=function(te,ne){return Js(te,ne.getStyleNames(!0),(te=>ne.getStyle(te)))}(ne.styles,te),!ie.styles)?null:ie}function Js(te,ne,ie){const re=function(te){return Array.isArray(te)?te.map((te=>Et(te)?(void 0!==te.key&&void 0!==te.value||_("matcher-pattern-missing-key-or-value",te),[te.key,te.value]):[te,!0])):Et(te)?Object.entries(te):[[te,!0]]}(te),le=Array.from(ne),ce=[];if(re.forEach((([te,ne])=>{le.forEach((re=>{(function(te,ne){return!0===te||te===ne||te instanceof RegExp&&ne.match(te)})(te,re)&&function(te,ne,ie){if(!0===te)return!0;const re=ie(ne);return te===re||te instanceof RegExp&&!!String(re).match(te)}(ne,re,ie)&&ce.push(re)}))})),re.length&&!(ce.length<re.length))return ce}var oa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ra=/^\w*$/;function na(te,ne){if("function"!=typeof te||null!=ne&&"function"!=typeof ne)throw new TypeError("Expected a function");var n=function(){var ie=arguments,re=ne?ne.apply(this,ie):ie[0],le=n.cache;if(le.has(re))return le.get(re);var ce=te.apply(this,ie);return n.cache=le.set(re,ce)||le,ce};return n.cache=new(na.Cache||Ut),n}na.Cache=Ut;const aa=na;var sa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,la=/\\(\\)?/g,da=function(te){var ne=aa(te,(function(te){return 500===ie.size&&ie.clear(),te})),ie=ne.cache;return ne}((function(te){var ne=[];return 46===te.charCodeAt(0)&&ne.push(""),te.replace(sa,(function(te,ie,re,le){ne.push(re?le.replace(la,"$1"):ie||te)})),ne}));const ua=da,ca=function(te,ne){for(var ie=-1,re=null==te?0:te.length,le=Array(re);++ie<re;)le[ie]=ne(te[ie],ie,te);return le};var pa=Le?Le.prototype:void 0,ha=pa?pa.toString:void 0;const Ca=function t(te){if("string"==typeof te)return te;if(ze(te))return ca(te,t)+"";if(Gr(te))return ha?ha.call(te):"";var ne=te+"";return"0"==ne&&1/te==-1/0?"-0":ne},ma=function(te){return null==te?"":Ca(te)},ga=function(te,ne){return ze(te)?te:function(te,ne){if(ze(te))return!1;var ie=typeof te;return!("number"!=ie&&"symbol"!=ie&&"boolean"!=ie&&null!=te&&!Gr(te))||ra.test(te)||!oa.test(te)||null!=ne&&te in Object(ne)}(te,ne)?[te]:ua(ma(te))},fa=function(te){if("string"==typeof te||Gr(te))return te;var ne=te+"";return"0"==ne&&1/te==-1/0?"-0":ne},ka=function(te,ne){for(var ie=0,re=(ne=ga(ne,te)).length;null!=te&&ie<re;)te=te[fa(ne[ie++])];return ie&&ie==re?te:void 0},ba=function(te,ne,ie){var re=-1,le=te.length;ne<0&&(ne=-ne>le?0:le+ne),(ie=ie>le?le:ie)<0&&(ie+=le),le=ne>ie?0:ie-ne>>>0,ne>>>=0;for(var ce=Array(le);++re<le;)ce[re]=te[re+ne];return ce},Aa=function(te,ne){return null==(te=function(te,ne){return ne.length<2?te:ka(te,ba(ne,0,-1))}(te,ne=ga(ne,te)))||delete te[fa(function(te){var ne=null==te?0:te.length;return ne?te[ne-1]:void 0}(ne))]},_a=function(te,ne,ie){var re=null==te?void 0:ka(te,ne);return void 0===re?ie:re},va=function(te,ne,ie){(void 0!==ie&&!St(te[ne],ie)||void 0===ie&&!(ne in te))&&De(te,ne,ie)},ya=function(te,ne,ie){for(var re=-1,le=Object(te),ce=ie(te),de=ce.length;de--;){var ue=ce[++re];if(!1===ne(le[ue],ue,le))break}return te},Ea=function(te,ne){if(("constructor"!==ne||"function"!=typeof te[ne])&&"__proto__"!=ne)return te[ne]},Sa=function(te,ne,ie,re,le,ce,de){var ue=Ea(te,ie),me=Ea(ne,ie),ge=de.get(me);if(ge)va(te,ie,ge);else{var fe=ce?ce(ue,me,ie+"",te,ne,de):void 0,_e=void 0===fe;if(_e){var be=ze(me),Ce=!be&&an(me),ye=!be&&!Ce&&bn(me);fe=me,be||Ce||ye?ze(ue)?fe=ue:function(te){return ft(te)&&ln(te)}(ue)?fe=Cn(ue):Ce?(_e=!1,fe=An(me,!0)):ye?(_e=!1,fe=so(me,!0)):fe=[]:Et(me)||Zt(me)?(fe=ue,Zt(ue)?fe=function(te){return Ie(te,gn(te))}(ue):V(ue)&&!jt(ue)||(fe=ho(me))):_e=!1}_e&&(de.set(me,fe),le(fe,me,re,ce,de),de.delete(me)),va(te,ie,fe)}},wa=function t(te,ne,ie,re,le){te!==ne&&ya(ne,(function(ce,de){if(le||(le=new $t),V(ce))Sa(te,ne,de,ie,t,re,le);else{var ue=re?re(Ea(te,de),ce,de+"",te,ne,le):void 0;void 0===ue&&(ue=ce),va(te,de,ue)}}),gn)},Ia=function(te){return te};var Ta=Math.max;const za=function(te){return function(){return te}},Da=Yt?function(te,ne){return Yt(te,"toString",{configurable:!0,enumerable:!1,value:za(ne),writable:!0})}:Ia;var xa=Date.now;const Ma=function(te){var ne=0,ie=0;return function(){var re=xa(),le=16-(re-ie);if(ie=re,le>0){if(++ne>=800)return arguments[0]}else ne=0;return te.apply(void 0,arguments)}}(Da),Va=function(te,ne){return Ma(function(te,ne,ie){return ne=Ta(void 0===ne?te.length-1:ne,0),function(){for(var re=arguments,le=-1,ce=Ta(re.length-ne,0),de=Array(ce);++le<ce;)de[le]=re[ne+le];le=-1;for(var ue=Array(ne+1);++le<ne;)ue[le]=re[le];return ue[ne]=ie(de),function(te,ne,ie){switch(ie.length){case 0:return te.call(ne);case 1:return te.call(ne,ie[0]);case 2:return te.call(ne,ie[0],ie[1]);case 3:return te.call(ne,ie[0],ie[1],ie[2])}return te.apply(ne,ie)}(te,this,ue)}}(te,ne,Ia),te+"")},ja=function(te){return Va((function(ne,ie){var re=-1,le=ie.length,ce=le>1?ie[le-1]:void 0,de=le>2?ie[2]:void 0;for(ce=te.length>3&&"function"==typeof ce?(le--,ce):void 0,de&&function(te,ne,ie){if(!V(ie))return!1;var re=typeof ne;return!!("number"==re?ln(ie)&&Ue(ne,ie.length):"string"==re&&ne in ie)&&St(ie[ne],te)}(ie[0],ie[1],de)&&(ce=le<3?void 0:ce,le=1),ne=Object(ne);++re<le;){var ue=ie[re];ue&&te(ne,ue,re,ce)}return ne}))},Na=ja((function(te,ne,ie){wa(te,ne,ie)})),Wa=function(te,ne,ie){return null==te?te:function(te,ne,ie,re){if(!V(te))return te;for(var le=-1,ce=(ne=ga(ne,te)).length,de=ce-1,ue=te;null!=ue&&++le<ce;){var me=fa(ne[le]),ge=ie;if("__proto__"===me||"constructor"===me||"prototype"===me)return te;if(le!=de){var fe=ue[me];void 0===(ge=re?re(fe,me,ue):void 0)&&(ge=V(fe)?fe:Ue(ne[le+1])?[]:{})}Te(ue,me,ge),ue=ue[me]}return te}(te,ne,ie)};class Ga{constructor(te){this._styles={},this._styleProcessor=te}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(te){this.clear();const ne=function(te){let ne=null,ie=0,re=0,le=null;const ce=new Map;if(""===te)return ce;";"!=te.charAt(te.length-1)&&(te+=";");for(let de=0;de<te.length;de++){const ue=te.charAt(de);if(null===ne)switch(ue){case":":le||(le=te.substr(ie,de-ie),re=de+1);break;case'"':case"'":ne=ue;break;case";":{const ne=te.substr(re,de-re);le&&ce.set(le.trim(),ne.trim()),le=null,ie=de+1;break}}else ue===ne&&(ne=null)}return ce}(te);for(const[te,ie]of ne)this._styleProcessor.toNormalizedForm(te,ie,this._styles)}has(te){if(this.isEmpty)return!1;const ne=this._styleProcessor.getReducedForm(te,this._styles).find((([ne])=>ne===te));return Array.isArray(ne)}set(te,ne){if(V(te))for(const[ne,ie]of Object.entries(te))this._styleProcessor.toNormalizedForm(ne,ie,this._styles);else this._styleProcessor.toNormalizedForm(te,ne,this._styles)}remove(te){const ne=Za(te);(function(te,ne){null==te||Aa(te,ne)})(this._styles,ne),delete this._styles[te],this._cleanEmptyObjectsOnPath(ne)}getNormalized(te){return this._styleProcessor.getNormalized(te,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((te=>te.join(":"))).sort().join(";")+";"}getAsString(te){if(this.isEmpty)return;if(this._styles[te]&&!V(this._styles[te]))return this._styles[te];const ne=this._styleProcessor.getReducedForm(te,this._styles).find((([ne])=>ne===te));return Array.isArray(ne)?ne[1]:void 0}getStyleNames(te=!1){return this.isEmpty?[]:te?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map((([te])=>te))}clear(){this._styles={}}_getStylesEntries(){const te=[],ne=Object.keys(this._styles);for(const ie of ne)te.push(...this._styleProcessor.getReducedForm(ie,this._styles));return te}_cleanEmptyObjectsOnPath(te){const ne=te.split(".");if(!(ne.length>1))return;const ie=ne.splice(0,ne.length-1).join("."),re=_a(this._styles,ie);re&&!Object.keys(re).length&&this.remove(ie)}}class qa{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(te,ne,ie){if(V(ne))$a(ie,Za(te),ne);else if(this._normalizers.has(te)){const re=this._normalizers.get(te),{path:le,value:ce}=re(ne);$a(ie,le,ce)}else $a(ie,te,ne)}getNormalized(te,ne){if(!te)return Na({},ne);if(void 0!==ne[te])return ne[te];if(this._extractors.has(te)){const ie=this._extractors.get(te);if("string"==typeof ie)return _a(ne,ie);const re=ie(te,ne);if(re)return re}return _a(ne,Za(te))}getReducedForm(te,ne){const ie=this.getNormalized(te,ne);return void 0===ie?[]:this._reducers.has(te)?this._reducers.get(te)(ie):[[te,ie]]}getStyleNames(te){const ne=Array.from(this._consumables.keys()).filter((ne=>{const ie=this.getNormalized(ne,te);return ie&&"object"==typeof ie?Object.keys(ie).length:ie})),ie=new Set([...ne,...Object.keys(te)]);return Array.from(ie)}getRelatedStyles(te){return this._consumables.get(te)||[]}setNormalizer(te,ne){this._normalizers.set(te,ne)}setExtractor(te,ne){this._extractors.set(te,ne)}setReducer(te,ne){this._reducers.set(te,ne)}setStyleRelation(te,ne){this._mapStyleNames(te,ne);for(const ie of ne)this._mapStyleNames(ie,[te])}_mapStyleNames(te,ne){this._consumables.has(te)||this._consumables.set(te,[]),this._consumables.get(te).push(...ne)}}function Za(te){return te.replace("-",".")}function $a(te,ne,ie){let re=ie;V(ie)&&(re=Na({},_a(te,ne),ie)),Wa(te,ne,re)}class Ka extends Zs{constructor(te,ne,ie,re){if(super(te),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=ne,this._attrs=function(te){const ne=Mi(te);for(const[te,ie]of ne)null===ie?ne.delete(te):"string"!=typeof ie&&ne.set(te,String(ie));return ne}(ie),this._children=[],re&&this._insertChild(0,re),this._classes=new Set,this._attrs.has("class")){const te=this._attrs.get("class");Ya(this._classes,te),this._attrs.delete("class")}this._styles=new Ga(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style"))}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}getChild(te){return this._children[te]}getChildIndex(te){return this._children.indexOf(te)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(te){if("class"==te)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==te){const te=this._styles.toString();return""==te?void 0:te}return this._attrs.get(te)}hasAttribute(te){return"class"==te?this._classes.size>0:"style"==te?!this._styles.isEmpty:this._attrs.has(te)}isSimilar(te){if(!(te instanceof Ka))return!1;if(this===te)return!0;if(this.name!=te.name)return!1;if(this._attrs.size!==te._attrs.size||this._classes.size!==te._classes.size||this._styles.size!==te._styles.size)return!1;for(const[ne,ie]of this._attrs)if(!te._attrs.has(ne)||te._attrs.get(ne)!==ie)return!1;for(const ne of this._classes)if(!te._classes.has(ne))return!1;for(const ne of this._styles.getStyleNames())if(!te._styles.has(ne)||te._styles.getAsString(ne)!==this._styles.getAsString(ne))return!1;return!0}hasClass(...te){for(const ne of te)if(!this._classes.has(ne))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(te){return this._styles.getAsString(te)}getNormalizedStyle(te){return this._styles.getNormalized(te)}getStyleNames(te){return this._styles.getStyleNames(te)}hasStyle(...te){for(const ne of te)if(!this._styles.has(ne))return!1;return!0}findAncestor(...te){const ne=new Ys(...te);let ie=this.parent;for(;ie&&!ie.is("documentFragment");){if(ne.match(ie))return ie;ie=ie.parent}return null}getCustomProperty(te){return this._customProperties.get(te)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const te=Array.from(this._classes).sort().join(","),ne=this._styles.toString(),ie=Array.from(this._attrs).map((te=>`${te[0]}="${te[1]}"`)).sort().join(" ");return this.name+(""==te?"":` class="${te}"`)+(ne?` style="${ne}"`:"")+(""==ie?"":` ${ie}`)}shouldRenderUnsafeAttribute(te){return this._unsafeAttributesToRender.includes(te)}_clone(te=!1){const ne=[];if(te)for(const ie of this.getChildren())ne.push(ie._clone(te));const ie=new this.constructor(this.document,this.name,this._attrs,ne);return ie._classes=new Set(this._classes),ie._styles.set(this._styles.getNormalized()),ie._customProperties=new Map(this._customProperties),ie.getFillerOffset=this.getFillerOffset,ie._unsafeAttributesToRender=this._unsafeAttributesToRender,ie}_appendChild(te){return this._insertChild(this.childCount,te)}_insertChild(te,ne){this._fireChange("children",this);let ie=0;const re=function(te,ne){return"string"==typeof ne?[new $s(te,ne)]:(et(ne)||(ne=[ne]),Array.from(ne).map((ne=>"string"==typeof ne?new $s(te,ne):ne instanceof Ks?new $s(te,ne.data):ne)))}(this.document,ne);for(const ne of re)null!==ne.parent&&ne._remove(),ne.parent=this,ne.document=this.document,this._children.splice(te,0,ne),te++,ie++;return ie}_removeChildren(te,ne=1){this._fireChange("children",this);for(let ie=te;ie<te+ne;ie++)this._children[ie].parent=null;return this._children.splice(te,ne)}_setAttribute(te,ne){const ie=String(ne);this._fireChange("attributes",this),"class"==te?Ya(this._classes,ie):"style"==te?this._styles.setTo(ie):this._attrs.set(te,ie)}_removeAttribute(te){return this._fireChange("attributes",this),"class"==te?this._classes.size>0&&(this._classes.clear(),!0):"style"==te?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(te)}_addClass(te){this._fireChange("attributes",this);for(const ne of _i(te))this._classes.add(ne)}_removeClass(te){this._fireChange("attributes",this);for(const ne of _i(te))this._classes.delete(ne)}_setStyle(te,ne){this._fireChange("attributes",this),"string"!=typeof te?this._styles.set(te):this._styles.set(te,ne)}_removeStyle(te){this._fireChange("attributes",this);for(const ne of _i(te))this._styles.remove(ne)}_setCustomProperty(te,ne){this._customProperties.set(te,ne)}_removeCustomProperty(te){return this._customProperties.delete(te)}}function Ya(te,ne){const ie=ne.split(/\s+/);te.clear(),ie.forEach((ne=>te.add(ne)))}Ka.prototype.is=function(te,ne){return ne?ne===this.name&&("element"===te||"view:element"===te):"element"===te||"view:element"===te||"node"===te||"view:node"===te};class Qa extends Ka{constructor(te,ne,ie,re){super(te,ne,ie,re),this.getFillerOffset=Ja}}function Ja(){const te=[...this.getChildren()],ne=te[this.childCount-1];if(ne&&ne.is("element","br"))return this.childCount;for(const ne of te)if(!ne.is("uiElement"))return null;return this.childCount}Qa.prototype.is=function(te,ne){return ne?ne===this.name&&("containerElement"===te||"view:containerElement"===te||"element"===te||"view:element"===te):"containerElement"===te||"view:containerElement"===te||"element"===te||"view:element"===te||"node"===te||"view:node"===te};class Xa extends(q(Qa)){constructor(te,ne,ie,re){super(te,ne,ie,re),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(te),this.bind("isFocused").to(te,"isFocused",(ne=>ne&&te.selection.editableElement==this)),this.listenTo(te.selection,"change",(()=>{this.isFocused=te.isFocused&&te.selection.editableElement==this}))}destroy(){this.stopListening()}}Xa.prototype.is=function(te,ne){return ne?ne===this.name&&("editableElement"===te||"view:editableElement"===te||"containerElement"===te||"view:containerElement"===te||"element"===te||"view:element"===te):"editableElement"===te||"view:editableElement"===te||"containerElement"===te||"view:containerElement"===te||"element"===te||"view:element"===te||"node"===te||"view:node"===te};const Ra=Symbol("rootName");class el extends Xa{constructor(te,ne){super(te,ne),this.rootName="main"}get rootName(){return this.getCustomProperty(Ra)}set rootName(te){this._setCustomProperty(Ra,te)}set _name(te){this.name=te}}el.prototype.is=function(te,ne){return ne?ne===this.name&&("rootElement"===te||"view:rootElement"===te||"editableElement"===te||"view:editableElement"===te||"containerElement"===te||"view:containerElement"===te||"element"===te||"view:element"===te):"rootElement"===te||"view:rootElement"===te||"editableElement"===te||"view:editableElement"===te||"containerElement"===te||"view:containerElement"===te||"element"===te||"view:element"===te||"node"===te||"view:node"===te};class nl{constructor(te={}){if(!te.boundaries&&!te.startPosition)throw new C("view-tree-walker-no-start-position",null);if(te.direction&&"forward"!=te.direction&&"backward"!=te.direction)throw new C("view-tree-walker-unknown-direction",te.startPosition,{direction:te.direction});this.boundaries=te.boundaries||null,te.startPosition?this._position=ol._createAt(te.startPosition):this._position=ol._createAt(te.boundaries["backward"==te.direction?"end":"start"]),this.direction=te.direction||"forward",this.singleCharacters=!!te.singleCharacters,this.shallow=!!te.shallow,this.ignoreElementEnd=!!te.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(te){let ne,ie;do{ie=this.position,ne=this.next()}while(!ne.done&&te(ne.value));ne.done||(this._position=ie)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let te=this.position.clone();const ne=this.position,ie=te.parent;if(null===ie.parent&&te.offset===ie.childCount)return{done:!0,value:void 0};if(ie===this._boundaryEndParent&&te.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let re;if(ie instanceof $s){if(te.isAtEnd)return this._position=ol._createAfter(ie),this._next();re=ie.data[te.offset]}else re=ie.getChild(te.offset);if(re instanceof Ka){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(te))return{done:!0,value:void 0};te.offset++}else te=new ol(re,0);return this._position=te,this._formatReturnValue("elementStart",re,ne,te,1)}if(re instanceof $s){if(this.singleCharacters)return te=new ol(re,0),this._position=te,this._next();let ie,le=re.data.length;return re==this._boundaryEndParent?(le=this.boundaries.end.offset,ie=new Ks(re,0,le),te=ol._createAfter(ie)):(ie=new Ks(re,0,re.data.length),te.offset++),this._position=te,this._formatReturnValue("text",ie,ne,te,le)}if("string"==typeof re){let re;re=this.singleCharacters?1:(ie===this._boundaryEndParent?this.boundaries.end.offset:ie.data.length)-te.offset;const le=new Ks(ie,te.offset,re);return te.offset+=re,this._position=te,this._formatReturnValue("text",le,ne,te,re)}return te=ol._createAfter(ie),this._position=te,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",ie,ne,te)}_previous(){let te=this.position.clone();const ne=this.position,ie=te.parent;if(null===ie.parent&&0===te.offset)return{done:!0,value:void 0};if(ie==this._boundaryStartParent&&te.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let re;if(ie instanceof $s){if(te.isAtStart)return this._position=ol._createBefore(ie),this._previous();re=ie.data[te.offset-1]}else re=ie.getChild(te.offset-1);if(re instanceof Ka)return this.shallow?(te.offset--,this._position=te,this._formatReturnValue("elementStart",re,ne,te,1)):(te=new ol(re,re.childCount),this._position=te,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",re,ne,te));if(re instanceof $s){if(this.singleCharacters)return te=new ol(re,re.data.length),this._position=te,this._previous();let ie,le=re.data.length;if(re==this._boundaryStartParent){const ne=this.boundaries.start.offset;ie=new Ks(re,ne,re.data.length-ne),le=ie.data.length,te=ol._createBefore(ie)}else ie=new Ks(re,0,re.data.length),te.offset--;return this._position=te,this._formatReturnValue("text",ie,ne,te,le)}if("string"==typeof re){let re;if(this.singleCharacters)re=1;else{const ne=ie===this._boundaryStartParent?this.boundaries.start.offset:0;re=te.offset-ne}te.offset-=re;const le=new Ks(ie,te.offset,re);return this._position=te,this._formatReturnValue("text",le,ne,te,re)}return te=ol._createBefore(ie),this._position=te,this._formatReturnValue("elementStart",ie,ne,te,1)}_formatReturnValue(te,ne,ie,re,le){return ne instanceof Ks&&(ne.offsetInText+ne.data.length==ne.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?ie=ol._createAfter(ne.textNode):(re=ol._createAfter(ne.textNode),this._position=re)),0===ne.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?ie=ol._createBefore(ne.textNode):(re=ol._createBefore(ne.textNode),this._position=re))),{done:!1,value:{type:te,item:ne,previousPosition:ie,nextPosition:re,length:le}}}}class ol extends Gs{constructor(te,ne){super(),this.parent=te,this.offset=ne}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const te=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===te}get root(){return this.parent.root}get editableElement(){let te=this.parent;for(;!(te instanceof Xa);){if(!te.parent)return null;te=te.parent}return te}getShiftedBy(te){const ne=ol._createAt(this),ie=ne.offset+te;return ne.offset=ie<0?0:ie,ne}getLastMatchingPosition(te,ne={}){ne.startPosition=this;const ie=new nl(ne);return ie.skip(te),ie.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(te){const ne=this.getAncestors(),ie=te.getAncestors();let re=0;for(;ne[re]==ie[re]&&ne[re];)re++;return 0===re?null:ne[re-1]}isEqual(te){return this.parent==te.parent&&this.offset==te.offset}isBefore(te){return"before"==this.compareWith(te)}isAfter(te){return"after"==this.compareWith(te)}compareWith(te){if(this.root!==te.root)return"different";if(this.isEqual(te))return"same";const ne=this.parent.is("node")?this.parent.getPath():[],ie=te.parent.is("node")?te.parent.getPath():[];ne.push(this.offset),ie.push(te.offset);const re=tt(ne,ie);switch(re){case"prefix":return"before";case"extension":return"after";default:return ne[re]<ie[re]?"before":"after"}}getWalker(te={}){return te.startPosition=this,new nl(te)}clone(){return new ol(this.parent,this.offset)}static _createAt(te,ne){if(te instanceof ol)return new this(te.parent,te.offset);{const ie=te;if("end"==ne)ne=ie.is("$text")?ie.data.length:ie.childCount;else{if("before"==ne)return this._createBefore(ie);if("after"==ne)return this._createAfter(ie);if(0!==ne&&!ne)throw new C("view-createpositionat-offset-required",ie)}return new ol(ie,ne)}}static _createAfter(te){if(te.is("$textProxy"))return new ol(te.textNode,te.offsetInText+te.data.length);if(!te.parent)throw new C("view-position-after-root",te,{root:te});return new ol(te.parent,te.index+1)}static _createBefore(te){if(te.is("$textProxy"))return new ol(te.textNode,te.offsetInText);if(!te.parent)throw new C("view-position-before-root",te,{root:te});return new ol(te.parent,te.index)}}ol.prototype.is=function(te){return"position"===te||"view:position"===te};class il extends Gs{constructor(te,ne=null){super(),this.start=te.clone(),this.end=ne?ne.clone():te.clone()}*[Symbol.iterator](){yield*new nl({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let te=this.start.getLastMatchingPosition(rl,{direction:"backward"}),ne=this.end.getLastMatchingPosition(rl);return te.parent.is("$text")&&te.isAtStart&&(te=ol._createBefore(te.parent)),ne.parent.is("$text")&&ne.isAtEnd&&(ne=ol._createAfter(ne.parent)),new il(te,ne)}getTrimmed(){let te=this.start.getLastMatchingPosition(rl);if(te.isAfter(this.end)||te.isEqual(this.end))return new il(te,te);let ne=this.end.getLastMatchingPosition(rl,{direction:"backward"});const ie=te.nodeAfter,re=ne.nodeBefore;return ie&&ie.is("$text")&&(te=new ol(ie,0)),re&&re.is("$text")&&(ne=new ol(re,re.data.length)),new il(te,ne)}isEqual(te){return this==te||this.start.isEqual(te.start)&&this.end.isEqual(te.end)}containsPosition(te){return te.isAfter(this.start)&&te.isBefore(this.end)}containsRange(te,ne=!1){te.isCollapsed&&(ne=!1);const ie=this.containsPosition(te.start)||ne&&this.start.isEqual(te.start),re=this.containsPosition(te.end)||ne&&this.end.isEqual(te.end);return ie&&re}getDifference(te){const ne=[];return this.isIntersecting(te)?(this.containsPosition(te.start)&&ne.push(new il(this.start,te.start)),this.containsPosition(te.end)&&ne.push(new il(te.end,this.end))):ne.push(this.clone()),ne}getIntersection(te){if(this.isIntersecting(te)){let ne=this.start,ie=this.end;return this.containsPosition(te.start)&&(ne=te.start),this.containsPosition(te.end)&&(ie=te.end),new il(ne,ie)}return null}getWalker(te={}){return te.boundaries=this,new nl(te)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let te=this.start.nodeAfter,ne=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(te=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(ne=this.end.parent.previousSibling),te&&te.is("element")&&te===ne?te:null}clone(){return new il(this.start,this.end)}*getItems(te={}){te.boundaries=this,te.ignoreElementEnd=!0;const ne=new nl(te);for(const te of ne)yield te.item}*getPositions(te={}){te.boundaries=this;const ne=new nl(te);yield ne.position;for(const te of ne)yield te.nextPosition}isIntersecting(te){return this.start.isBefore(te.end)&&this.end.isAfter(te.start)}static _createFromParentsAndOffsets(te,ne,ie,re){return new this(new ol(te,ne),new ol(ie,re))}static _createFromPositionAndShift(te,ne){const ie=te,re=te.getShiftedBy(ne);return ne>0?new this(ie,re):new this(re,ie)}static _createIn(te){return this._createFromParentsAndOffsets(te,0,te,te.childCount)}static _createOn(te){const ne=te.is("$textProxy")?te.offsetSize:1;return this._createFromPositionAndShift(ol._createBefore(te),ne)}}function rl(te){return!(!te.item.is("attributeElement")&&!te.item.is("uiElement"))}il.prototype.is=function(te){return"range"===te||"view:range"===te};class sl extends(M(Gs)){constructor(...te){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",te.length&&this.setTo(...te)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const te=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?te.end:te.start).clone()}get focus(){if(!this._ranges.length)return null;const te=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?te.start:te.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const te of this._ranges)yield te.clone()}getFirstRange(){let te=null;for(const ne of this._ranges)te&&!ne.start.isBefore(te.start)||(te=ne);return te?te.clone():null}getLastRange(){let te=null;for(const ne of this._ranges)te&&!ne.end.isAfter(te.end)||(te=ne);return te?te.clone():null}getFirstPosition(){const te=this.getFirstRange();return te?te.start.clone():null}getLastPosition(){const te=this.getLastRange();return te?te.end.clone():null}isEqual(te){if(this.isFake!=te.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=te.fakeSelectionLabel)return!1;if(this.rangeCount!=te.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(te.anchor)||!this.focus.isEqual(te.focus))return!1;for(const ne of this._ranges){let ie=!1;for(const re of te._ranges)if(ne.isEqual(re)){ie=!0;break}if(!ie)return!1}return!0}isSimilar(te){if(this.isBackward!=te.isBackward)return!1;const ne=X(this.getRanges());if(ne!=X(te.getRanges()))return!1;if(0==ne)return!0;for(let ne of this.getRanges()){ne=ne.getTrimmed();let ie=!1;for(let re of te.getRanges())if(re=re.getTrimmed(),ne.start.isEqual(re.start)&&ne.end.isEqual(re.end)){ie=!0;break}if(!ie)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...te){let[ne,ie,re]=te;if("object"==typeof ie&&(re=ie,ie=void 0),null===ne)this._setRanges([]),this._setFakeOptions(re);else if(ne instanceof sl||ne instanceof al)this._setRanges(ne.getRanges(),ne.isBackward),this._setFakeOptions({fake:ne.isFake,label:ne.fakeSelectionLabel});else if(ne instanceof il)this._setRanges([ne],re&&re.backward),this._setFakeOptions(re);else if(ne instanceof ol)this._setRanges([new il(ne)]),this._setFakeOptions(re);else if(ne instanceof Zs){const te=!!re&&!!re.backward;let le;if(void 0===ie)throw new C("view-selection-setto-required-second-parameter",this);le="in"==ie?il._createIn(ne):"on"==ie?il._createOn(ne):new il(ol._createAt(ne,ie)),this._setRanges([le],te),this._setFakeOptions(re)}else{if(!et(ne))throw new C("view-selection-setto-not-selectable",this);this._setRanges(ne,re&&re.backward),this._setFakeOptions(re)}this.fire("change")}setFocus(te,ne){if(null===this.anchor)throw new C("view-selection-setfocus-no-ranges",this);const ie=ol._createAt(te,ne);if("same"==ie.compareWith(this.focus))return;const re=this.anchor;this._ranges.pop(),"before"==ie.compareWith(re)?this._addRange(new il(ie,re),!0):this._addRange(new il(re,ie)),this.fire("change")}_setRanges(te,ne=!1){te=Array.from(te),this._ranges=[];for(const ne of te)this._addRange(ne);this._lastRangeBackward=!!ne}_setFakeOptions(te={}){this._isFake=!!te.fake,this._fakeSelectionLabel=te.fake&&te.label||""}_addRange(te,ne=!1){if(!(te instanceof il))throw new C("view-selection-add-range-not-range",this);this._pushRange(te),this._lastRangeBackward=!!ne}_pushRange(te){for(const ne of this._ranges)if(te.isIntersecting(ne))throw new C("view-selection-range-intersects",this,{addedRange:te,intersectingRange:ne});this._ranges.push(new il(te.start,te.end))}}sl.prototype.is=function(te){return"selection"===te||"view:selection"===te};class al extends(M(Gs)){constructor(...te){super(),this._selection=new sl,this._selection.delegate("change").to(this),te.length&&this._selection.setTo(...te)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(te){return this._selection.isEqual(te)}isSimilar(te){return this._selection.isSimilar(te)}_setTo(...te){this._selection.setTo(...te)}_setFocus(te,ne){this._selection.setFocus(te,ne)}}al.prototype.is=function(te){return"selection"===te||"documentSelection"==te||"view:selection"==te||"view:documentSelection"==te};class ll extends p{constructor(te,ne,ie){super(te,ne),this.startRange=ie,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const La=Symbol("bubbling contexts");function dl(te){return class extends te{fire(te,...ne){try{const ie=te instanceof p?te:new p(this,te),re=gl(this);if(!re.size)return;if(hl(ie,"capturing",this),ul(re,"$capture",ie,...ne))return ie.return;const le=ie.startRange||this.selection.getFirstRange(),ce=le?le.getContainedElement():null,de=!!ce&&Boolean(ml(re,ce));let ue=ce||function(te){if(!te)return null;const ne=te.start.parent,ie=te.end.parent,re=ne.getPath(),le=ie.getPath();return re.length>le.length?ne:ie}(le);if(hl(ie,"atTarget",ue),!de){if(ul(re,"$text",ie,...ne))return ie.return;hl(ie,"bubbling",ue)}for(;ue;){if(ue.is("rootElement")){if(ul(re,"$root",ie,...ne))return ie.return}else if(ue.is("element")&&ul(re,ue.name,ie,...ne))return ie.return;if(ul(re,ue,ie,...ne))return ie.return;ue=ue.parent,hl(ie,"bubbling",ue)}return hl(ie,"bubbling",this),ul(re,"$document",ie,...ne),ie.return}catch(te){C.rethrowUnexpectedError(te,this)}}_addEventListener(te,ne,ie){const re=_i(ie.context||"$document"),le=gl(this);for(const ce of re){let re=le.get(ce);re||(re=new(M()),le.set(ce,re)),this.listenTo(re,te,ne,ie)}}_removeEventListener(te,ne){const ie=gl(this);for(const re of ie.values())this.stopListening(re,te,ne)}}}{const te=dl(Object);["fire","_addEventListener","_removeEventListener"].forEach((ne=>{dl[ne]=te.prototype[ne]}))}function hl(te,ne,ie){te instanceof ll&&(te._eventPhase=ne,te._currentTarget=ie)}function ul(te,ne,ie,...re){const le="string"==typeof ne?te.get(ne):ml(te,ne);return!!le&&(le.fire(ie,...re),ie.stop.called)}function ml(te,ne){for(const[ie,re]of te)if("function"==typeof ie&&ie(ne))return re;return null}function gl(te){return te[La]||(te[La]=new Map),te[La]}class pl extends(dl(q())){constructor(te){super(),this._postFixers=new Set,this.selection=new al,this.roots=new Di({idProperty:"rootName"}),this.stylesProcessor=te,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(te="main"){return this.roots.get(te)}registerPostFixer(te){this._postFixers.add(te)}destroy(){this.roots.forEach((te=>te.destroy())),this.stopListening()}_callPostFixers(te){let ne=!1;do{for(const ie of this._postFixers)if(ne=ie(te),ne)break}while(ne)}}let Oa=(()=>{class fl extends Ka{constructor(te,ne,ie,re){super(te,ne,ie,re),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=bl}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new C("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(te){return null!==this.id||null!==te.id?this.id===te.id:super.isSimilar(te)&&this.priority==te.priority}_clone(te=!1){const ne=super._clone(te);return ne._priority=this._priority,ne._id=this._id,ne}}return fl.DEFAULT_PRIORITY=10,fl})();const Pa=Oa;function bl(){if(wl(this))return null;let te=this.parent;for(;te&&te.is("attributeElement");){if(wl(te)>1)return null;te=te.parent}return!te||wl(te)>1?null:this.childCount}function wl(te){return Array.from(te.getChildren()).filter((te=>!te.is("uiElement"))).length}Oa.prototype.is=function(te,ne){return ne?ne===this.name&&("attributeElement"===te||"view:attributeElement"===te||"element"===te||"view:element"===te):"attributeElement"===te||"view:attributeElement"===te||"element"===te||"view:element"===te||"node"===te||"view:node"===te};class Al extends Ka{constructor(te,ne,ie,re){super(te,ne,ie,re),this.getFillerOffset=Cl}_insertChild(te,ne){if(ne&&(ne instanceof Zs||Array.from(ne).length>0))throw new C("view-emptyelement-cannot-add",[this,ne]);return 0}}function Cl(){return null}Al.prototype.is=function(te,ne){return ne?ne===this.name&&("emptyElement"===te||"view:emptyElement"===te||"element"===te||"view:element"===te):"emptyElement"===te||"view:emptyElement"===te||"element"===te||"view:element"===te||"node"===te||"view:node"===te};class _l extends Ka{constructor(te,ne,ie,re){super(te,ne,ie,re),this.getFillerOffset=yl}_insertChild(te,ne){if(ne&&(ne instanceof Zs||Array.from(ne).length>0))throw new C("view-uielement-cannot-add",[this,ne]);return 0}render(te,ne){return this.toDomElement(te)}toDomElement(te){const ne=te.createElement(this.name);for(const te of this.getAttributeKeys())ne.setAttribute(te,this.getAttribute(te));return ne}}function yl(){return null}_l.prototype.is=function(te,ne){return ne?ne===this.name&&("uiElement"===te||"view:uiElement"===te||"element"===te||"view:element"===te):"uiElement"===te||"view:uiElement"===te||"element"===te||"view:element"===te||"node"===te||"view:node"===te};class xl extends Ka{constructor(te,ne,ie,re){super(te,ne,ie,re),this.getFillerOffset=El}_insertChild(te,ne){if(ne&&(ne instanceof Zs||Array.from(ne).length>0))throw new C("view-rawelement-cannot-add",[this,ne]);return 0}render(te,ne){}}function El(){return null}xl.prototype.is=function(te,ne){return ne?ne===this.name&&("rawElement"===te||"view:rawElement"===te||"element"===te||"view:element"===te):"rawElement"===te||"view:rawElement"===te||te===this.name||te==="view:"+this.name||"element"===te||"view:element"===te||"node"===te||"view:node"===te};class Dl extends(M(Gs)){constructor(te,ne){super(),this._children=[],this._customProperties=new Map,this.document=te,ne&&this._insertChild(0,ne)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(te){return this._customProperties.get(te)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(te){return this._insertChild(this.childCount,te)}getChild(te){return this._children[te]}getChildIndex(te){return this._children.indexOf(te)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(te,ne){this._fireChange("children",this);let ie=0;const re=function(te,ne){return"string"==typeof ne?[new $s(te,ne)]:(et(ne)||(ne=[ne]),Array.from(ne).map((ne=>"string"==typeof ne?new $s(te,ne):ne instanceof Ks?new $s(te,ne.data):ne)))}(this.document,ne);for(const ne of re)null!==ne.parent&&ne._remove(),ne.parent=this,this._children.splice(te,0,ne),te++,ie++;return ie}_removeChildren(te,ne=1){this._fireChange("children",this);for(let ie=te;ie<te+ne;ie++)this._children[ie].parent=null;return this._children.splice(te,ne)}_fireChange(te,ne){this.fire("change:"+te,ne)}_setCustomProperty(te,ne){this._customProperties.set(te,ne)}_removeCustomProperty(te){return this._customProperties.delete(te)}}Dl.prototype.is=function(te){return"documentFragment"===te||"view:documentFragment"===te};class Sl{constructor(te){this._cloneGroups=new Map,this._slotFactory=null,this.document=te}setSelection(...te){this.document.selection._setTo(...te)}setSelectionFocus(te,ne){this.document.selection._setFocus(te,ne)}createDocumentFragment(te){return new Dl(this.document,te)}createText(te){return new $s(this.document,te)}createAttributeElement(te,ne,ie={}){const re=new Pa(this.document,te,ne);return"number"==typeof ie.priority&&(re._priority=ie.priority),ie.id&&(re._id=ie.id),ie.renderUnsafeAttributes&&re._unsafeAttributesToRender.push(...ie.renderUnsafeAttributes),re}createContainerElement(te,ne,ie={},re={}){let le=null;Et(ie)?re=ie:le=ie;const ce=new Qa(this.document,te,ne,le);return re.renderUnsafeAttributes&&ce._unsafeAttributesToRender.push(...re.renderUnsafeAttributes),ce}createEditableElement(te,ne,ie={}){const re=new Xa(this.document,te,ne);return ie.renderUnsafeAttributes&&re._unsafeAttributesToRender.push(...ie.renderUnsafeAttributes),re}createEmptyElement(te,ne,ie={}){const re=new Al(this.document,te,ne);return ie.renderUnsafeAttributes&&re._unsafeAttributesToRender.push(...ie.renderUnsafeAttributes),re}createUIElement(te,ne,ie){const re=new _l(this.document,te,ne);return ie&&(re.render=ie),re}createRawElement(te,ne,ie,re={}){const le=new xl(this.document,te,ne);return ie&&(le.render=ie),re.renderUnsafeAttributes&&le._unsafeAttributesToRender.push(...re.renderUnsafeAttributes),le}setAttribute(te,ne,ie){ie._setAttribute(te,ne)}removeAttribute(te,ne){ne._removeAttribute(te)}addClass(te,ne){ne._addClass(te)}removeClass(te,ne){ne._removeClass(te)}setStyle(te,ne,ie){Et(te)&&void 0===ie?ne._setStyle(te):ie._setStyle(te,ne)}removeStyle(te,ne){ne._removeStyle(te)}setCustomProperty(te,ne,ie){ie._setCustomProperty(te,ne)}removeCustomProperty(te,ne){return ne._removeCustomProperty(te)}breakAttributes(te){return te instanceof ol?this._breakAttributes(te):this._breakAttributesRange(te)}breakContainer(te){const ne=te.parent;if(!ne.is("containerElement"))throw new C("view-writer-break-non-container-element",this.document);if(!ne.parent)throw new C("view-writer-break-root",this.document);if(te.isAtStart)return ol._createBefore(ne);if(!te.isAtEnd){const ie=ne._clone(!1);this.insert(ol._createAfter(ne),ie);const re=new il(te,ol._createAt(ne,"end")),le=new ol(ie,0);this.move(re,le)}return ol._createAfter(ne)}mergeAttributes(te){const ne=te.offset,ie=te.parent;if(ie.is("$text"))return te;if(ie.is("attributeElement")&&0===ie.childCount){const te=ie.parent,ne=ie.index;return ie._remove(),this._removeFromClonedElementsGroup(ie),this.mergeAttributes(new ol(te,ne))}const re=ie.getChild(ne-1),le=ie.getChild(ne);if(!re||!le)return te;if(re.is("$text")&&le.is("$text"))return Nl(re,le);if(re.is("attributeElement")&&le.is("attributeElement")&&re.isSimilar(le)){const te=re.childCount;return re._appendChild(le.getChildren()),le._remove(),this._removeFromClonedElementsGroup(le),this.mergeAttributes(new ol(re,te))}return te}mergeContainers(te){const ne=te.nodeBefore,ie=te.nodeAfter;if(!(ne&&ie&&ne.is("containerElement")&&ie.is("containerElement")))throw new C("view-writer-merge-containers-invalid-position",this.document);const re=ne.getChild(ne.childCount-1),le=re instanceof $s?ol._createAt(re,"end"):ol._createAt(ne,"end");return this.move(il._createIn(ie),ol._createAt(ne,"end")),this.remove(il._createOn(ie)),le}insert(te,ne){Pl(ne=et(ne)?[...ne]:[ne],this.document);const ie=ne.reduce(((te,ne)=>{const ie=te[te.length-1],re=!ne.is("uiElement");return ie&&ie.breakAttributes==re?ie.nodes.push(ne):te.push({breakAttributes:re,nodes:[ne]}),te}),[]);let re=null,le=te;for(const{nodes:te,breakAttributes:ne}of ie){const ie=this._insertNodes(le,te,ne);re||(re=ie.start),le=ie.end}return re?new il(re,le):new il(te)}remove(te){const ne=te instanceof il?te:il._createOn(te);if(Ol(ne,this.document),ne.isCollapsed)return new Dl(this.document);const{start:ie,end:re}=this._breakAttributesRange(ne,!0),le=ie.parent,ce=re.offset-ie.offset,de=le._removeChildren(ie.offset,ce);for(const te of de)this._removeFromClonedElementsGroup(te);const ue=this.mergeAttributes(ie);return ne.start=ue,ne.end=ue.clone(),new Dl(this.document,de)}clear(te,ne){Ol(te,this.document);const ie=te.getWalker({direction:"backward",ignoreElementEnd:!0});for(const re of ie){const ie=re.item;let le;if(ie.is("element")&&ne.isSimilar(ie))le=il._createOn(ie);else if(!re.nextPosition.isAfter(te.start)&&ie.is("$textProxy")){const te=ie.getAncestors().find((te=>te.is("element")&&ne.isSimilar(te)));te&&(le=il._createIn(te))}le&&(le.end.isAfter(te.end)&&(le.end=te.end),le.start.isBefore(te.start)&&(le.start=te.start),this.remove(le))}}move(te,ne){let ie;if(ne.isAfter(te.end)){const re=(ne=this._breakAttributes(ne,!0)).parent,le=re.childCount;te=this._breakAttributesRange(te,!0),ie=this.remove(te),ne.offset+=re.childCount-le}else ie=this.remove(te);return this.insert(ne,ie)}wrap(te,ne){if(!(ne instanceof Pa))throw new C("view-writer-wrap-invalid-attribute",this.document);if(Ol(te,this.document),te.isCollapsed){let re=te.start;re.parent.is("element")&&(ie=re.parent,!Array.from(ie.getChildren()).some((te=>!te.is("uiElement"))))&&(re=re.getLastMatchingPosition((te=>te.item.is("uiElement")))),re=this._wrapPosition(re,ne);const le=this.document.selection;return le.isCollapsed&&le.getFirstPosition().isEqual(te.start)&&this.setSelection(re),new il(re)}return this._wrapRange(te,ne);var ie}unwrap(te,ne){if(!(ne instanceof Pa))throw new C("view-writer-unwrap-invalid-attribute",this.document);if(Ol(te,this.document),te.isCollapsed)return te;const{start:ie,end:re}=this._breakAttributesRange(te,!0),le=ie.parent,ce=this._unwrapChildren(le,ie.offset,re.offset,ne),de=this.mergeAttributes(ce.start);de.isEqual(ce.start)||ce.end.offset--;const ue=this.mergeAttributes(ce.end);return new il(de,ue)}rename(te,ne){const ie=new Qa(this.document,te,ne.getAttributes());return this.insert(ol._createAfter(ne),ie),this.move(il._createIn(ne),ol._createAt(ie,0)),this.remove(il._createOn(ne)),ie}clearClonedElementsGroup(te){this._cloneGroups.delete(te)}createPositionAt(te,ne){return ol._createAt(te,ne)}createPositionAfter(te){return ol._createAfter(te)}createPositionBefore(te){return ol._createBefore(te)}createRange(te,ne){return new il(te,ne)}createRangeOn(te){return il._createOn(te)}createRangeIn(te){return il._createIn(te)}createSelection(...te){return new sl(...te)}createSlot(te="children"){if(!this._slotFactory)throw new C("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,te)}_registerSlotFactory(te){this._slotFactory=te}_clearSlotFactory(){this._slotFactory=null}_insertNodes(te,ne,ie){let re,le;if(re=ie?Tl(te):te.parent.is("$text")?te.parent.parent:te.parent,!re)throw new C("view-writer-invalid-position-container",this.document);le=ie?this._breakAttributes(te,!0):te.parent.is("$text")?Bl(te):te;const ce=re._insertChild(le.offset,ne);for(const te of ne)this._addToClonedElementsGroup(te);const de=le.getShiftedBy(ce),ue=this.mergeAttributes(le);ue.isEqual(le)||de.offset--;const me=this.mergeAttributes(de);return new il(ue,me)}_wrapChildren(te,ne,ie,re){let le=ne;const ce=[];for(;le<ie;){const ne=te.getChild(le),ie=ne.is("$text"),de=ne.is("attributeElement");if(de&&this._wrapAttributeElement(re,ne))ce.push(new ol(te,le));else if(ie||!de||Il(re,ne)){const ie=re._clone();ne._remove(),ie._appendChild(ne),te._insertChild(le,ie),this._addToClonedElementsGroup(ie),ce.push(new ol(te,le))}else this._wrapChildren(ne,0,ne.childCount,re);le++}let de=0;for(const te of ce)te.offset-=de,te.offset!=ne&&(this.mergeAttributes(te).isEqual(te)||(de++,ie--));return il._createFromParentsAndOffsets(te,ne,te,ie)}_unwrapChildren(te,ne,ie,re){let le=ne;const ce=[];for(;le<ie;){const ne=te.getChild(le);if(ne.is("attributeElement"))if(ne.isSimilar(re)){const re=ne.getChildren(),de=ne.childCount;ne._remove(),te._insertChild(le,re),this._removeFromClonedElementsGroup(ne),ce.push(new ol(te,le),new ol(te,le+de)),le+=de,ie+=de-1}else this._unwrapAttributeElement(re,ne)?(ce.push(new ol(te,le),new ol(te,le+1)),le++):(this._unwrapChildren(ne,0,ne.childCount,re),le++);else le++}let de=0;for(const te of ce)te.offset-=de,te.offset!=ne&&te.offset!=ie&&(this.mergeAttributes(te).isEqual(te)||(de++,ie--));return il._createFromParentsAndOffsets(te,ne,te,ie)}_wrapRange(te,ne){const{start:ie,end:re}=this._breakAttributesRange(te,!0),le=ie.parent,ce=this._wrapChildren(le,ie.offset,re.offset,ne),de=this.mergeAttributes(ce.start);de.isEqual(ce.start)||ce.end.offset--;const ue=this.mergeAttributes(ce.end);return new il(de,ue)}_wrapPosition(te,ne){if(ne.isSimilar(te.parent))return Ml(te.clone());te.parent.is("$text")&&(te=Bl(te));const ie=this.createAttributeElement("_wrapPosition-fake-element");ie._priority=Number.POSITIVE_INFINITY,ie.isSimilar=()=>!1,te.parent._insertChild(te.offset,ie);const re=new il(te,te.getShiftedBy(1));this.wrap(re,ne);const le=new ol(ie.parent,ie.index);ie._remove();const ce=le.nodeBefore,de=le.nodeAfter;return ce instanceof $s&&de instanceof $s?Nl(ce,de):Ml(le)}_wrapAttributeElement(te,ne){if(!Rl(te,ne))return!1;if(te.name!==ne.name||te.priority!==ne.priority)return!1;for(const ie of te.getAttributeKeys())if("class"!==ie&&"style"!==ie&&ne.hasAttribute(ie)&&ne.getAttribute(ie)!==te.getAttribute(ie))return!1;for(const ie of te.getStyleNames())if(ne.hasStyle(ie)&&ne.getStyle(ie)!==te.getStyle(ie))return!1;for(const ie of te.getAttributeKeys())"class"!==ie&&"style"!==ie&&(ne.hasAttribute(ie)||this.setAttribute(ie,te.getAttribute(ie),ne));for(const ie of te.getStyleNames())ne.hasStyle(ie)||this.setStyle(ie,te.getStyle(ie),ne);for(const ie of te.getClassNames())ne.hasClass(ie)||this.addClass(ie,ne);return!0}_unwrapAttributeElement(te,ne){if(!Rl(te,ne))return!1;if(te.name!==ne.name||te.priority!==ne.priority)return!1;for(const ie of te.getAttributeKeys())if("class"!==ie&&"style"!==ie&&(!ne.hasAttribute(ie)||ne.getAttribute(ie)!==te.getAttribute(ie)))return!1;if(!ne.hasClass(...te.getClassNames()))return!1;for(const ie of te.getStyleNames())if(!ne.hasStyle(ie)||ne.getStyle(ie)!==te.getStyle(ie))return!1;for(const ie of te.getAttributeKeys())"class"!==ie&&"style"!==ie&&this.removeAttribute(ie,ne);return this.removeClass(Array.from(te.getClassNames()),ne),this.removeStyle(Array.from(te.getStyleNames()),ne),!0}_breakAttributesRange(te,ne=!1){const ie=te.start,re=te.end;if(Ol(te,this.document),te.isCollapsed){const ie=this._breakAttributes(te.start,ne);return new il(ie,ie)}const le=this._breakAttributes(re,ne),ce=le.parent.childCount,de=this._breakAttributes(ie,ne);return le.offset+=le.parent.childCount-ce,new il(de,le)}_breakAttributes(te,ne=!1){const ie=te.offset,re=te.parent;if(te.parent.is("emptyElement"))throw new C("view-writer-cannot-break-empty-element",this.document);if(te.parent.is("uiElement"))throw new C("view-writer-cannot-break-ui-element",this.document);if(te.parent.is("rawElement"))throw new C("view-writer-cannot-break-raw-element",this.document);if(!ne&&re.is("$text")&&Ll(re.parent))return te.clone();if(Ll(re))return te.clone();if(re.is("$text"))return this._breakAttributes(Bl(te),ne);if(ie==re.childCount){const te=new ol(re.parent,re.index+1);return this._breakAttributes(te,ne)}if(0===ie){const te=new ol(re.parent,re.index);return this._breakAttributes(te,ne)}{const te=re.index+1,le=re._clone();re.parent._insertChild(te,le),this._addToClonedElementsGroup(le);const ce=re.childCount-ie,de=re._removeChildren(ie,ce);le._appendChild(de);const ue=new ol(re.parent,te);return this._breakAttributes(ue,ne)}}_addToClonedElementsGroup(te){if(!te.root.is("rootElement"))return;if(te.is("element"))for(const ne of te.getChildren())this._addToClonedElementsGroup(ne);const ne=te.id;if(!ne)return;let ie=this._cloneGroups.get(ne);ie||(ie=new Set,this._cloneGroups.set(ne,ie)),ie.add(te),te._clonesGroup=ie}_removeFromClonedElementsGroup(te){if(te.is("element"))for(const ne of te.getChildren())this._removeFromClonedElementsGroup(ne);const ne=te.id;if(!ne)return;const ie=this._cloneGroups.get(ne);ie&&ie.delete(te)}}function Tl(te){let ne=te.parent;for(;!Ll(ne);){if(!ne)return;ne=ne.parent}return ne}function Il(te,ne){return te.priority<ne.priority||!(te.priority>ne.priority)&&te.getIdentity()<ne.getIdentity()}function Ml(te){const ne=te.nodeBefore;if(ne&&ne.is("$text"))return new ol(ne,ne.data.length);const ie=te.nodeAfter;return ie&&ie.is("$text")?new ol(ie,0):te}function Bl(te){if(te.offset==te.parent.data.length)return new ol(te.parent.parent,te.parent.index+1);if(0===te.offset)return new ol(te.parent.parent,te.parent.index);const ne=te.parent.data.slice(te.offset);return te.parent._data=te.parent.data.slice(0,te.offset),te.parent.parent._insertChild(te.parent.index+1,new $s(te.root.document,ne)),new ol(te.parent.parent,te.parent.index+1)}function Nl(te,ne){const ie=te.data.length;return te._data+=ne.data,ne._remove(),new ol(te,ie)}const Fa=[$s,Pa,Qa,Al,xl,_l];function Pl(te,ne){for(const ie of te){if(!Fa.some((te=>ie instanceof te)))throw new C("view-writer-insert-invalid-node-type",ne);ie.is("$text")||Pl(ie.getChildren(),ne)}}function Ll(te){return te&&(te.is("containerElement")||te.is("documentFragment"))}function Ol(te,ne){const ie=Tl(te.start),re=Tl(te.end);if(!ie||!re||ie!==re)throw new C("view-writer-invalid-range-container",ne)}function Rl(te,ne){return null===te.id&&null===ne.id}const Vl=te=>te.createTextNode(" "),Fl=te=>{const ne=te.createElement("span");return ne.dataset.ckeFiller="true",ne.innerText=" ",ne},jl=te=>{const ne=te.createElement("br");return ne.dataset.ckeFiller="true",ne},Ba=7,Ha="⁠".repeat(Ba);function Wl(te){return"string"==typeof te?te.substr(0,Ba)===Ha:Oo(te)&&te.data.substr(0,Ba)===Ha}function Gl(te){return te.data.length==Ba&&Wl(te)}function ql(te){const ne="string"==typeof te?te:te.data;return Wl(te)?ne.slice(Ba):ne}function Zl(te,ne){if(ne.keyCode==wo.arrowleft){const te=ne.domTarget.ownerDocument.defaultView.getSelection();if(1==te.rangeCount&&te.getRangeAt(0).collapsed){const ne=te.getRangeAt(0).startContainer,ie=te.getRangeAt(0).startOffset;Wl(ne)&&ie<=Ba&&te.collapse(ne,0)}}}var Ua=i(5037);Fo()(Ua.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ua.Z.locals;class Yl extends(q()){constructor(te,ne){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=te,this.selection=ne,this.set("isFocused",!1),this.set("isSelecting",!1),le.isBlink&&!le.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()})),this.set("isComposing",!1),this.on("change:isComposing",(()=>{this.isComposing||this.render()}))}markToSync(te,ne){if("text"===te)this.domConverter.mapViewToDom(ne.parent)&&this.markedTexts.add(ne);else{if(!this.domConverter.mapViewToDom(ne))return;if("attributes"===te)this.markedAttributes.add(ne);else{if("children"!==te)throw new C("view-renderer-unknown-type",this);this.markedChildren.add(ne)}}}render(){if(this.isComposing&&!le.isAndroid)return;let te=null;const ne=!(le.isBlink&&!le.isAndroid&&this.isSelecting);for(const te of this.markedChildren)this._updateChildrenMappings(te);ne?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?te=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(te=this.selection.getFirstPosition(),this.markedChildren.add(te.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(te=this.domConverter.domPositionToView(this._inlineFiller),te&&te.parent.is("$text")&&(te=ol._createBefore(te.parent)));for(const te of this.markedAttributes)this._updateAttrs(te);for(const ne of this.markedChildren)this._updateChildren(ne,{inlineFillerPosition:te});for(const ne of this.markedTexts)!this.markedChildren.has(ne.parent)&&this.domConverter.mapViewToDom(ne.parent)&&this._updateText(ne,{inlineFillerPosition:te});if(ne)if(te){const ne=this.domConverter.viewPositionToDom(te),ie=ne.parent.ownerDocument;Wl(ne.parent)?this._inlineFiller=ne.parent:this._inlineFiller=Ql(ie,ne.parent,ne.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(te){const ne=this.domConverter.mapViewToDom(te);if(!ne)return;const ie=Array.from(ne.childNodes),re=Array.from(this.domConverter.viewChildrenToDom(te,{withChildren:!1})),le=this._diffNodeLists(ie,re),ce=this._findUpdateActions(le,ie,re,Jl);if(-1!==ce.indexOf("update")){const ne={equal:0,insert:0,delete:0};for(const le of ce)if("update"===le){const le=ne.equal+ne.insert,ce=ne.equal+ne.delete,de=te.getChild(le);!de||de.is("uiElement")||de.is("rawElement")||this._updateElementMappings(de,ie[ce]),ii(re[le]),ne.equal++}else ne[le]++}}_updateElementMappings(te,ne){this.domConverter.unbindDomElement(ne),this.domConverter.bindElements(ne,te),this.markedChildren.add(te),this.markedAttributes.add(te)}_getInlineFillerPosition(){const te=this.selection.getFirstPosition();return te.parent.is("$text")?ol._createBefore(te.parent):te}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const te=this.selection.getFirstPosition(),ne=this.domConverter.viewPositionToDom(te);return!!(ne&&Oo(ne.parent)&&Wl(ne.parent))}_removeInlineFiller(){const te=this._inlineFiller;if(!Wl(te))throw new C("view-renderer-filler-was-lost",this);Gl(te)?te.remove():te.data=te.data.substr(Ba),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const te=this.selection.getFirstPosition(),ne=te.parent,ie=te.offset;if(!this.domConverter.mapViewToDom(ne.root))return!1;if(!ne.is("element"))return!1;if(!function(te){if("false"==te.getAttribute("contenteditable"))return!1;const ne=te.findAncestor((te=>te.hasAttribute("contenteditable")));return!ne||"true"==ne.getAttribute("contenteditable")}(ne))return!1;if(ie===ne.getFillerOffset())return!1;const re=te.nodeBefore,ce=te.nodeAfter;return!(re instanceof $s||ce instanceof $s||le.isAndroid&&(re||ce))}_updateText(te,ne){const ie=this.domConverter.findCorrespondingDomText(te);let re=this.domConverter.viewToDom(te).data;const le=ne.inlineFillerPosition;le&&le.parent==te.parent&&le.offset==te.index&&(re=Ha+re),ec(ie,re)}_updateAttrs(te){const ne=this.domConverter.mapViewToDom(te);if(!ne)return;const ie=Array.from(ne.attributes).map((te=>te.name)),re=te.getAttributeKeys();for(const ie of re)this.domConverter.setDomElementAttribute(ne,ie,te.getAttribute(ie),te);for(const re of ie)te.hasAttribute(re)||this.domConverter.removeDomElementAttribute(ne,re)}_updateChildren(te,ne){const ie=this.domConverter.mapViewToDom(te);if(!ie)return;if(le.isAndroid){let te=null;for(const ne of Array.from(ie.childNodes)){if(te&&Oo(te)&&Oo(ne)){ie.normalize();break}te=ne}}const re=ne.inlineFillerPosition,ce=ie.childNodes,de=Array.from(this.domConverter.viewChildrenToDom(te,{bind:!0}));re&&re.parent===te&&Ql(ie.ownerDocument,de,re.offset);const ue=this._diffNodeLists(ce,de),me=this._findUpdateActions(ue,ce,de,Xl);let ge=0;const fe=new Set;for(const te of me)"delete"===te?(fe.add(ce[ge]),ii(ce[ge])):"equal"!==te&&"update"!==te||ge++;ge=0;for(const te of me)"insert"===te?(Qo(ie,ge,de[ge]),ge++):"update"===te?(ec(ce[ge],de[ge].data),ge++):"equal"===te&&(this._markDescendantTextToSync(this.domConverter.domToView(de[ge])),ge++);for(const te of fe)te.parentNode||this.domConverter.unbindDomElement(te)}_diffNodeLists(te,ne){return te=function(te,ne){const ie=Array.from(te);return 0!=ie.length&&ne?(ie[ie.length-1]==ne&&ie.pop(),ie):ie}(te,this._fakeSelectionContainer),m(te,ne,tc.bind(null,this.domConverter))}_findUpdateActions(te,ne,ie,re){if(-1===te.indexOf("insert")||-1===te.indexOf("delete"))return te;let le=[],ce=[],de=[];const ue={equal:0,insert:0,delete:0};for(const me of te)"insert"===me?de.push(ie[ue.equal+ue.insert]):"delete"===me?ce.push(ne[ue.equal+ue.delete]):(le=le.concat(m(ce,de,re).map((te=>"equal"===te?"update":te))),le.push("equal"),ce=[],de=[]),ue[me]++;return le.concat(m(ce,de,re).map((te=>"equal"===te?"update":te)))}_markDescendantTextToSync(te){if(te)if(te.is("$text"))this.markedTexts.add(te);else if(te.is("element"))for(const ne of te.getChildren())this._markDescendantTextToSync(ne)}_updateSelection(){if(le.isBlink&&!le.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const te=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&te&&(this.selection.isFake?this._updateFakeSelection(te):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(te)):this.isComposing&&le.isAndroid||this._updateDomSelection(te))}_updateFakeSelection(te){const ne=te.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(te){const ne=te.createElement("div");return ne.className="ck-fake-selection-container",Object.assign(ne.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),ne.textContent=" ",ne}(ne));const ie=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(ie,this.selection),!this._fakeSelectionNeedsUpdate(te))return;ie.parentElement&&ie.parentElement==te||te.appendChild(ie),ie.textContent=this.selection.fakeSelectionLabel||" ";const re=ne.getSelection(),le=ne.createRange();re.removeAllRanges(),le.selectNodeContents(ie),re.addRange(le)}_updateDomSelection(te){const ne=te.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(ne))return;const ie=this.domConverter.viewPositionToDom(this.selection.anchor),re=this.domConverter.viewPositionToDom(this.selection.focus);ne.setBaseAndExtent(ie.parent,ie.offset,re.parent,re.offset),le.isGecko&&function(te,ne){const ie=te.parent;if(ie.nodeType!=Node.ELEMENT_NODE||te.offset!=ie.childNodes.length-1)return;const re=ie.childNodes[te.offset];re&&"BR"==re.tagName&&ne.addRange(ne.getRangeAt(0))}(re,ne)}_domSelectionNeedsUpdate(te){if(!this.domConverter.isDomSelectionCorrect(te))return!0;const ne=te&&this.domConverter.domSelectionToView(te);return!(ne&&this.selection.isEqual(ne)||!this.selection.isCollapsed&&this.selection.isSimilar(ne))}_fakeSelectionNeedsUpdate(te){const ne=this._fakeSelectionContainer,ie=te.ownerDocument.getSelection();return!ne||ne.parentElement!==te||ie.anchorNode!==ne&&!ne.contains(ie.anchorNode)||ne.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const te of this.domDocuments){const ne=te.getSelection();if(ne.rangeCount){const ie=te.activeElement,re=this.domConverter.mapDomToView(ie);ie&&re&&ne.removeAllRanges()}}}_removeFakeSelection(){const te=this._fakeSelectionContainer;te&&te.remove()}_updateFocus(){if(this.isFocused){const te=this.selection.editableElement;te&&this.domConverter.focus(te)}}}function Ql(te,ne,ie){const re=ne instanceof Array?ne:ne.childNodes,le=re[ie];if(Oo(le))return le.data=Ha+le.data,le;{const le=te.createTextNode(Ha);return Array.isArray(ne)?re.splice(ie,0,le):Qo(ne,ie,le),le}}function Jl(te,ne){return So(te)&&So(ne)&&!Oo(te)&&!Oo(ne)&&!Jo(te)&&!Jo(ne)&&te.tagName.toLowerCase()===ne.tagName.toLowerCase()}function Xl(te,ne){return So(te)&&So(ne)&&Oo(te)&&Oo(ne)}function tc(te,ne,ie){return ne===ie||(Oo(ne)&&Oo(ie)?ne.data===ie.data:!(!te.isBlockFiller(ne)||!te.isBlockFiller(ie)))}function ec(te,ne){const ie=te.data;if(ie==ne)return;const re=d(ie,ne);for(const ne of re)"insert"===ne.type?te.insertData(ne.index,ne.values.join("")):te.deleteData(ne.index,ne.howMany)}const es=jl(go.document),ts=Vl(go.document),is=Fl(go.document),os="data-ck-unsafe-attribute-",as="data-ck-unsafe-element";class ac{constructor(te,{blockFillerMode:ne,renderingMode:ie="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new Ys,this._inlineObjectElementMatcher=new Ys,this._elementsWithTemporaryCustomProperties=new Set,this.document=te,this.renderingMode=ie,this.blockFillerMode=ne||("editing"===ie?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?go.document:go.document.implementation.createHTMLDocument("")}bindFakeSelection(te,ne){this._fakeSelectionMapping.set(te,new sl(ne))}fakeSelectionToView(te){return this._fakeSelectionMapping.get(te)}bindElements(te,ne){this._domToViewMapping.set(te,ne),this._viewToDomMapping.set(ne,te)}unbindDomElement(te){const ne=this._domToViewMapping.get(te);if(ne){this._domToViewMapping.delete(te),this._viewToDomMapping.delete(ne);for(const ne of Array.from(te.children))this.unbindDomElement(ne)}}bindDocumentFragments(te,ne){this._domToViewMapping.set(te,ne),this._viewToDomMapping.set(ne,te)}shouldRenderAttribute(te,ne,ie){return"data"===this.renderingMode||!(te=te.toLowerCase()).startsWith("on")&&("srcdoc"!==te||!ne.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===ie&&("src"===te||"srcset"===te)||"source"===ie&&"srcset"===te||!ne.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(te,ne){if("data"===this.renderingMode)return void(te.innerHTML=ne);const ie=(new DOMParser).parseFromString(ne,"text/html"),re=ie.createDocumentFragment(),le=ie.body.childNodes;for(;le.length>0;)re.appendChild(le[0]);const ce=ie.createTreeWalker(re,NodeFilter.SHOW_ELEMENT),de=[];let ue;for(;ue=ce.nextNode();)de.push(ue);for(const te of de){for(const ne of te.getAttributeNames())this.setDomElementAttribute(te,ne,te.getAttribute(ne));const ne=te.tagName.toLowerCase();this._shouldRenameElement(ne)&&(hc(ne),te.replaceWith(this._createReplacementDomElement(ne,te)))}for(;te.firstChild;)te.firstChild.remove();te.append(re)}viewToDom(te,ne={}){if(te.is("$text")){const ne=this._processDataFromViewText(te);return this._domDocument.createTextNode(ne)}{const ie=te;if(this.mapViewToDom(ie)){if(!ie.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(ie);this._elementsWithTemporaryCustomProperties.add(ie)}let re;if(ie.is("documentFragment"))re=this._domDocument.createDocumentFragment(),ne.bind&&this.bindDocumentFragments(re,ie);else{if(ie.is("uiElement"))return re="$comment"===ie.name?this._domDocument.createComment(ie.getCustomProperty("$rawContent")):ie.render(this._domDocument,this),ne.bind&&this.bindElements(re,ie),re;this._shouldRenameElement(ie.name)?(hc(ie.name),re=this._createReplacementDomElement(ie.name)):re=ie.hasAttribute("xmlns")?this._domDocument.createElementNS(ie.getAttribute("xmlns"),ie.name):this._domDocument.createElement(ie.name),ie.is("rawElement")&&ie.render(re,this),ne.bind&&this.bindElements(re,ie);for(const te of ie.getAttributeKeys())this.setDomElementAttribute(re,te,ie.getAttribute(te),ie)}if(!1!==ne.withChildren)for(const te of this.viewChildrenToDom(ie,ne))re.appendChild(te);return re}}setDomElementAttribute(te,ne,ie,re){const le=this.shouldRenderAttribute(ne,ie,te.tagName.toLowerCase())||re&&re.shouldRenderUnsafeAttribute(ne);le||_("domconverter-unsafe-attribute-detected",{domElement:te,key:ne,value:ie}),Xo(ne)?(te.hasAttribute(ne)&&!le?te.removeAttribute(ne):te.hasAttribute(os+ne)&&le&&te.removeAttribute(os+ne),te.setAttribute(le?ne:os+ne,ie)):_("domconverter-invalid-attribute-detected",{domElement:te,key:ne,value:ie})}removeDomElementAttribute(te,ne){ne!=as&&(te.removeAttribute(ne),te.removeAttribute(os+ne))}*viewChildrenToDom(te,ne={}){const ie=te.getFillerOffset&&te.getFillerOffset();let re=0;for(const le of te.getChildren()){ie===re&&(yield this._getBlockFiller());const te=le.is("element")&&!!le.getCustomProperty("dataPipeline:transparentRendering")&&!Si(le.getAttributes());te&&"data"==this.renderingMode?yield*this.viewChildrenToDom(le,ne):(te&&_("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:le}),yield this.viewToDom(le,ne)),re++}ie===re&&(yield this._getBlockFiller())}viewRangeToDom(te){const ne=this.viewPositionToDom(te.start),ie=this.viewPositionToDom(te.end),re=this._domDocument.createRange();return re.setStart(ne.parent,ne.offset),re.setEnd(ie.parent,ie.offset),re}viewPositionToDom(te){const ne=te.parent;if(ne.is("$text")){const ie=this.findCorrespondingDomText(ne);if(!ie)return null;let re=te.offset;return Wl(ie)&&(re+=Ba),{parent:ie,offset:re}}{let ie,re,le;if(0===te.offset){if(ie=this.mapViewToDom(ne),!ie)return null;le=ie.childNodes[0]}else{const ne=te.nodeBefore;if(re=ne.is("$text")?this.findCorrespondingDomText(ne):this.mapViewToDom(ne),!re)return null;ie=re.parentNode,le=re.nextSibling}return Oo(le)&&Wl(le)?{parent:le,offset:Ba}:{parent:ie,offset:re?Yo(re)+1:0}}}domToView(te,ne={}){const ie=[],re=this._domToView(te,ne,ie),le=re.next().value;return le?(re.next(),this._processDomInlineNodes(null,ie,ne),le.is("$text")&&0==le.data.length?null:le):null}*domChildrenToView(te,ne={},ie=[]){for(let re=0;re<te.childNodes.length;re++){const le=te.childNodes[re],ce=this._domToView(le,ne,ie),de=ce.next().value;null!==de&&(this._isBlockViewElement(de)&&this._processDomInlineNodes(te,ie,ne),yield de,ce.next())}this._processDomInlineNodes(te,ie,ne)}domSelectionToView(te){if(function(te){if(!le.isGecko)return!1;if(!te.rangeCount)return!1;const ne=te.getRangeAt(0).startContainer;try{Object.prototype.toString.call(ne)}catch(te){return!0}return!1}(te))return new sl([]);if(1===te.rangeCount){let ne=te.getRangeAt(0).startContainer;Oo(ne)&&(ne=ne.parentNode);const ie=this.fakeSelectionToView(ne);if(ie)return ie}const ne=this.isDomSelectionBackward(te),ie=[];for(let ne=0;ne<te.rangeCount;ne++){const re=te.getRangeAt(ne),le=this.domRangeToView(re);le&&ie.push(le)}return new sl(ie,{backward:ne})}domRangeToView(te){const ne=this.domPositionToView(te.startContainer,te.startOffset),ie=this.domPositionToView(te.endContainer,te.endOffset);return ne&&ie?new il(ne,ie):null}domPositionToView(te,ne=0){if(this.isBlockFiller(te))return this.domPositionToView(te.parentNode,Yo(te));const ie=this.mapDomToView(te);if(ie&&(ie.is("uiElement")||ie.is("rawElement")))return ol._createBefore(ie);if(Oo(te)){if(Gl(te))return this.domPositionToView(te.parentNode,Yo(te));const ie=this.findCorrespondingViewText(te);let re=ne;return ie?(Wl(te)&&(re-=Ba,re=re<0?0:re),new ol(ie,re)):null}if(0===ne){const ne=this.mapDomToView(te);if(ne)return new ol(ne,0)}else{const ie=te.childNodes[ne-1];if(Oo(ie)&&Gl(ie)||ie&&this.isBlockFiller(ie))return this.domPositionToView(ie.parentNode,Yo(ie));const re=Oo(ie)?this.findCorrespondingViewText(ie):this.mapDomToView(ie);if(re&&re.parent)return new ol(re.parent,re.index+1)}return null}mapDomToView(te){return this.getHostViewElement(te)||this._domToViewMapping.get(te)}findCorrespondingViewText(te){if(Gl(te))return null;const ne=this.getHostViewElement(te);if(ne)return ne;const ie=te.previousSibling;if(ie){if(!this.isElement(ie))return null;const te=this.mapDomToView(ie);if(te){const ne=te.nextSibling;return ne instanceof $s?ne:null}}else{const ne=this.mapDomToView(te.parentNode);if(ne){const te=ne.getChild(0);return te instanceof $s?te:null}}return null}mapViewToDom(te){return this._viewToDomMapping.get(te)}findCorrespondingDomText(te){const ne=te.previousSibling;return ne&&this.mapViewToDom(ne)?this.mapViewToDom(ne).nextSibling:!ne&&te.parent&&this.mapViewToDom(te.parent)?this.mapViewToDom(te.parent).childNodes[0]:null}focus(te){const ne=this.mapViewToDom(te);if(ne&&ne.ownerDocument.activeElement!==ne){const{scrollX:te,scrollY:ie}=go.window,re=[];cc(ne,(te=>{const{scrollLeft:ne,scrollTop:ie}=te;re.push([ne,ie])})),ne.focus(),cc(ne,(te=>{const[ne,ie]=re.shift();te.scrollLeft=ne,te.scrollTop=ie})),go.window.scrollTo(te,ie)}}_clearDomSelection(){const te=this.mapViewToDom(this.document.selection.editableElement);if(!te)return;const ne=te.ownerDocument.defaultView.getSelection(),ie=this.domSelectionToView(ne);ie&&ie.rangeCount>0&&ne.removeAllRanges()}isElement(te){return te&&te.nodeType==Node.ELEMENT_NODE}isDocumentFragment(te){return te&&te.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(te){return"br"==this.blockFillerMode?te.isEqualNode(es):!("BR"!==te.tagName||!dc(te,this.blockElements)||1!==te.parentNode.childNodes.length)||te.isEqualNode(is)||function(te,ne){return te.isEqualNode(ts)&&dc(te,ne)&&1===te.parentNode.childNodes.length}(te,this.blockElements)}isDomSelectionBackward(te){if(te.isCollapsed)return!1;const ne=this._domDocument.createRange();try{ne.setStart(te.anchorNode,te.anchorOffset),ne.setEnd(te.focusNode,te.focusOffset)}catch(te){return!1}const ie=ne.collapsed;return ne.detach(),ie}getHostViewElement(te){const ne=function(te){const ne=[];let ie=te;for(;ie&&ie.nodeType!=Node.DOCUMENT_NODE;)ne.unshift(ie),ie=ie.parentNode;return ne}(te);for(ne.pop();ne.length;){const te=ne.pop(),ie=this._domToViewMapping.get(te);if(ie&&(ie.is("uiElement")||ie.is("rawElement")))return ie}return null}isDomSelectionCorrect(te){return this._isDomSelectionPositionCorrect(te.anchorNode,te.anchorOffset)&&this._isDomSelectionPositionCorrect(te.focusNode,te.focusOffset)}registerRawContentMatcher(te){this._rawContentElementMatcher.add(te)}registerInlineObjectMatcher(te){this._inlineObjectElementMatcher.add(te)}_clearTemporaryCustomProperties(){for(const te of this._elementsWithTemporaryCustomProperties)te._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Vl(this._domDocument);case"markedNbsp":return Fl(this._domDocument);case"br":return jl(this._domDocument)}}_isDomSelectionPositionCorrect(te,ne){if(Oo(te)&&Wl(te)&&ne<Ba)return!1;if(this.isElement(te)&&Wl(te.childNodes[ne]))return!1;const ie=this.mapDomToView(te);return!ie||!ie.is("uiElement")&&!ie.is("rawElement")}*_domToView(te,ne,ie){if(this.isBlockFiller(te))return null;const re=this.getHostViewElement(te);if(re)return re;if(Jo(te)&&ne.skipComments)return null;if(Oo(te)){if(Gl(te))return null;{const ne=te.data;if(""===ne)return null;const re=new $s(this.document,ne);return ie.push(re),re}}{let re=this.mapDomToView(te);if(re)return this._isInlineObjectElement(re)&&ie.push(re),re;if(this.isDocumentFragment(te))re=new Dl(this.document),ne.bind&&this.bindDocumentFragments(te,re);else{re=this._createViewElement(te,ne),ne.bind&&this.bindElements(te,re);const le=te.attributes;if(le)for(let te=le.length,ne=0;ne<te;ne++)re._setAttribute(le[ne].name,le[ne].value);if(this._isViewElementWithRawContent(re,ne))return re._setCustomProperty("$rawContent",te.innerHTML),this._isBlockViewElement(re)||ie.push(re),re;if(Jo(te))return re._setCustomProperty("$rawContent",te.data),re}yield re;const le=[];if(!1!==ne.withChildren)for(const ie of this.domChildrenToView(te,ne,le))re._appendChild(ie);if(this._isInlineObjectElement(re))ie.push(re);else for(const te of le)ie.push(te)}}_processDomInlineNodes(te,ne,ie){if(!ne.length)return;if(te&&!this.isDocumentFragment(te)&&!this._isBlockDomElement(te))return;let re=!1;for(let te=0;te<ne.length;te++){const le=ne[te];if(!le.is("$text")){re=!1;continue}let ce,de=!1;if(lc(le,this.preElements))ce=ql(le.data);else{ce=le.data.replace(/[ \n\t\r]{1,}/g," "),de=/[^\S\u00A0]/.test(ce.charAt(ce.length-1));const ue=te>0?ne[te-1]:null,me=te+1<ne.length?ne[te+1]:null,ge=!ue||ue.is("element")&&"br"==ue.name||re,fe=!me&&!Wl(le.data);!1!==ie.withChildren&&(ge&&(ce=ce.replace(/^ /,"")),fe&&(ce=ce.replace(/ $/,""))),ce=ql(ce),ce=ce.replace(/ \u00A0/g,"  ");const _e=me&&me.is("element")&&"br"!=me.name,be=me&&me.is("$text")&&" "==me.data.charAt(0);(/[ \u00A0]\u00A0$/.test(ce)||!me||_e||be)&&(ce=ce.replace(/\u00A0$/," ")),(ge||ue&&ue.is("element")&&"br"!=ue.name)&&(ce=ce.replace(/^\u00A0/," "))}0==ce.length&&le.parent?(le._remove(),ne.splice(te,1),te--):(le._data=ce,re=de)}ne.length=0}_processDataFromViewText(te){let ne=te.data;if(te.getAncestors().some((te=>this.preElements.includes(te.name))))return ne;if(" "==ne.charAt(0)){const ie=this._getTouchingInlineViewNode(te,!1);!(ie&&ie.is("$textProxy")&&this._nodeEndsWithSpace(ie))&&ie||(ne=" "+ne.substr(1))}if(" "==ne.charAt(ne.length-1)){const ie=this._getTouchingInlineViewNode(te,!0),re=ie&&ie.is("$textProxy")&&" "==ie.data.charAt(0);" "!=ne.charAt(ne.length-2)&&ie&&!re||(ne=ne.substr(0,ne.length-1)+" ")}return ne.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(te){if(te.getAncestors().some((te=>this.preElements.includes(te.name))))return!1;const ne=this._processDataFromViewText(te);return" "==ne.charAt(ne.length-1)}_getTouchingInlineViewNode(te,ne){const ie=new nl({startPosition:ne?ol._createAfter(te):ol._createBefore(te),direction:ne?"forward":"backward"});for(const te of ie){if(te.item.is("element","br"))return null;if(this._isInlineObjectElement(te.item))return te.item;if(te.item.is("containerElement"))return null;if(te.item.is("$textProxy"))return te.item}return null}_isBlockDomElement(te){return this.isElement(te)&&this.blockElements.includes(te.tagName.toLowerCase())}_isBlockViewElement(te){return te.is("element")&&this.blockElements.includes(te.name)}_isInlineObjectElement(te){return!!te.is("element")&&("br"==te.name||this.inlineObjectElements.includes(te.name)||!!this._inlineObjectElementMatcher.match(te))}_createViewElement(te,ne){if(Jo(te))return new _l(this.document,"$comment");const ie=ne.keepOriginalCase?te.tagName:te.tagName.toLowerCase();return new Ka(this.document,ie)}_isViewElementWithRawContent(te,ne){return!1!==ne.withChildren&&te.is("element")&&!!this._rawContentElementMatcher.match(te)}_shouldRenameElement(te){const ne=te.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(ne)}_createReplacementDomElement(te,ne){const ie=this._domDocument.createElement("span");if(ie.setAttribute(as,te),ne){for(;ne.firstChild;)ie.appendChild(ne.firstChild);for(const te of ne.getAttributeNames())ie.setAttribute(te,ne.getAttribute(te))}return ie}}function lc(te,ne){return te.getAncestors().some((te=>te.is("element")&&ne.includes(te.name)))}function cc(te,ne){let ie=te;for(;ie;)ne(ie),ie=ie.parentElement}function dc(te,ne){const ie=te.parentNode;return!!ie&&!!ie.tagName&&ne.includes(ie.tagName.toLowerCase())}function hc(te){"script"===te&&_("domconverter-unsafe-script-element-detected"),"style"===te&&_("domconverter-unsafe-style-element-detected")}class uc extends(Mo()){constructor(te){super(),this._isEnabled=!1,this.view=te,this.document=te.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(te){return te&&3===te.nodeType&&(te=te.parentNode),!(!te||1!==te.nodeType)&&te.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const ls=ja((function(te,ne){Ie(ne,gn(ne),te)}));class gc{constructor(te,ne,ie){this.view=te,this.document=te.document,this.domEvent=ne,this.domTarget=ne.target,ls(this,ie)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class pc extends uc{constructor(){super(...arguments),this.useCapture=!1}observe(te){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((ne=>{this.listenTo(te,ne,((te,ne)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(ne.target)&&this.onDomEvent(ne)}),{useCapture:this.useCapture})}))}stopObserving(te){this.stopListening(te)}fire(te,ne,ie){this.isEnabled&&this.document.fire(te,new gc(this.view,ne,ie))}}class fc extends pc{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(te){const ne={keyCode:te.keyCode,altKey:te.altKey,ctrlKey:te.ctrlKey,shiftKey:te.shiftKey,metaKey:te.metaKey,get keystroke(){return bi(this)}};this.fire(te.type,te,ne)}}class kc extends uc{constructor(te){super(te),this._fireSelectionChangeDoneDebounced=Xr((te=>{this.document.fire("selectionChangeDone",te)}),200)}observe(){const te=this.document;te.on("arrowKey",((ne,ie)=>{te.selection.isFake&&this.isEnabled&&ie.preventDefault()}),{context:"$capture"}),te.on("arrowKey",((ne,ie)=>{te.selection.isFake&&this.isEnabled&&this._handleSelectionMove(ie.keyCode)}),{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(te){const ne=this.document.selection,ie=new sl(ne.getRanges(),{backward:ne.isBackward,fake:!1});te!=wo.arrowleft&&te!=wo.arrowup||ie.setTo(ie.getFirstPosition()),te!=wo.arrowright&&te!=wo.arrowdown||ie.setTo(ie.getLastPosition());const re={oldSelection:ne,newSelection:ie,domSelection:null};this.document.fire("selectionChange",re),this._fireSelectionChangeDoneDebounced(re)}}function Ac(te){var ne=-1,ie=null==te?0:te.length;for(this.__data__=new Ut;++ne<ie;)this.add(te[ne])}Ac.prototype.add=Ac.prototype.push=function(te){return this.__data__.set(te,"__lodash_hash_undefined__"),this},Ac.prototype.has=function(te){return this.__data__.has(te)};const us=Ac,_c=function(te,ne){for(var ie=-1,re=null==te?0:te.length;++ie<re;)if(ne(te[ie],ie,te))return!0;return!1},vc=function(te,ne){return te.has(ne)},yc=function(te,ne,ie,re,le,ce){var de=1&ie,ue=te.length,me=ne.length;if(ue!=me&&!(de&&me>ue))return!1;var ge=ce.get(te),fe=ce.get(ne);if(ge&&fe)return ge==ne&&fe==te;var _e=-1,be=!0,Ce=2&ie?new us:void 0;for(ce.set(te,ne),ce.set(ne,te);++_e<ue;){var ye=te[_e],we=ne[_e];if(re)var ke=de?re(we,ye,_e,ne,te,ce):re(ye,we,_e,te,ne,ce);if(void 0!==ke){if(ke)continue;be=!1;break}if(Ce){if(!_c(ne,(function(te,ne){if(!vc(Ce,ne)&&(ye===te||le(ye,te,ie,re,ce)))return Ce.push(ne)}))){be=!1;break}}else if(ye!==we&&!le(ye,we,ie,re,ce)){be=!1;break}}return ce.delete(te),ce.delete(ne),be},xc=function(te){var ne=-1,ie=Array(te.size);return te.forEach((function(te,re){ie[++ne]=[re,te]})),ie},Ec=function(te){var ne=-1,ie=Array(te.size);return te.forEach((function(te){ie[++ne]=te})),ie};var ps=Le?Le.prototype:void 0,ms=ps?ps.valueOf:void 0,fs=Object.prototype.hasOwnProperty,bs="[object Arguments]",Ls="[object Array]",Os="[object Object]",Ps=Object.prototype.hasOwnProperty;const Lc=function(te,ne,ie,re,le,ce){var de=ze(te),ue=ze(ne),me=de?Ls:gi(te),ge=ue?Ls:gi(ne),fe=(me=me==bs?Os:me)==Os,_e=(ge=ge==bs?Os:ge)==Os,be=me==ge;if(be&&an(te)){if(!an(ne))return!1;de=!0,fe=!1}if(be&&!fe)return ce||(ce=new $t),de||bn(te)?yc(te,ne,ie,re,le,ce):function(te,ne,ie,re,le,ce,de){switch(ie){case"[object DataView]":if(te.byteLength!=ne.byteLength||te.byteOffset!=ne.byteOffset)return!1;te=te.buffer,ne=ne.buffer;case"[object ArrayBuffer]":return!(te.byteLength!=ne.byteLength||!ce(new yi(te),new yi(ne)));case"[object Boolean]":case"[object Date]":case"[object Number]":return St(+te,+ne);case"[object Error]":return te.name==ne.name&&te.message==ne.message;case"[object RegExp]":case"[object String]":return te==ne+"";case"[object Map]":var ue=xc;case"[object Set]":var me=1&re;if(ue||(ue=Ec),te.size!=ne.size&&!me)return!1;var ge=de.get(te);if(ge)return ge==ne;re|=2,de.set(te,ne);var fe=yc(ue(te),ue(ne),re,le,ce,de);return de.delete(te),fe;case"[object Symbol]":if(ms)return ms.call(te)==ms.call(ne)}return!1}(te,ne,me,ie,re,le,ce);if(!(1&ie)){var Ce=fe&&Ps.call(te,"__wrapped__"),ye=_e&&Ps.call(ne,"__wrapped__");if(Ce||ye){var we=Ce?te.value():te,ke=ye?ne.value():ne;return ce||(ce=new $t),le(we,ke,ie,re,ce)}}return!!be&&(ce||(ce=new $t),function(te,ne,ie,re,le,ce){var de=1&ie,ue=Bn(te),me=ue.length;if(me!=Bn(ne).length&&!de)return!1;for(var ge=me;ge--;){var fe=ue[ge];if(!(de?fe in ne:fs.call(ne,fe)))return!1}var _e=ce.get(te),be=ce.get(ne);if(_e&&be)return _e==ne&&be==te;var Ce=!0;ce.set(te,ne),ce.set(ne,te);for(var ye=de;++ge<me;){var we=te[fe=ue[ge]],ke=ne[fe];if(re)var Se=de?re(ke,we,fe,ne,te,ce):re(we,ke,fe,te,ne,ce);if(!(void 0===Se?we===ke||le(we,ke,ie,re,ce):Se)){Ce=!1;break}ye||(ye="constructor"==fe)}if(Ce&&!ye){var xe=te.constructor,Ee=ne.constructor;xe==Ee||!("constructor"in te)||!("constructor"in ne)||"function"==typeof xe&&xe instanceof xe&&"function"==typeof Ee&&Ee instanceof Ee||(Ce=!1)}return ce.delete(te),ce.delete(ne),Ce}(te,ne,ie,re,le,ce))},zs=function t(te,ne,ie,re,le){return te===ne||(null==te||null==ne||!ft(te)&&!ft(ne)?te!=te&&ne!=ne:Lc(te,ne,ie,re,t,le))},Rc=function(te,ne,ie){var re=(ie="function"==typeof ie?ie:void 0)?ie(te,ne):void 0;return void 0===re?zs(te,ne,void 0,ie):!!re};class Vc extends uc{constructor(te){super(te),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=te.domConverter,this.renderer=te._renderer,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(te){this._domElements.add(te),this.isEnabled&&this._mutationObserver.observe(te,this._config)}stopObserving(te){if(this._domElements.delete(te),this.isEnabled){this._mutationObserver.disconnect();for(const te of this._domElements)this._mutationObserver.observe(te,this._config)}}enable(){super.enable();for(const te of this._domElements)this._mutationObserver.observe(te,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(te){if(0===te.length)return;const ne=this.domConverter,ie=new Set,re=new Set;for(const ie of te){const te=ne.mapDomToView(ie.target);te&&(te.is("uiElement")||te.is("rawElement")||"childList"!==ie.type||this._isBogusBrMutation(ie)||re.add(te))}for(const le of te){const te=ne.mapDomToView(le.target);if((!te||!te.is("uiElement")&&!te.is("rawElement"))&&"characterData"===le.type){const te=ne.findCorrespondingViewText(le.target);te&&!re.has(te.parent)?ie.add(te):!te&&Wl(le.target)&&re.add(ne.mapDomToView(le.target.parentNode))}}let le=!1;for(const te of ie)le=!0,this.renderer.markToSync("text",te);for(const te of re){const ie=ne.mapViewToDom(te),re=Array.from(te.getChildren()),ce=Array.from(ne.domChildrenToView(ie,{withChildren:!1}));Rc(re,ce,Fc)||(le=!0,this.renderer.markToSync("children",te))}le&&this.view.forceRender()}_isBogusBrMutation(te){let ne=null;return null===te.nextSibling&&0===te.removedNodes.length&&1==te.addedNodes.length&&(ne=this.domConverter.domToView(te.addedNodes[0],{withChildren:!1})),ne&&ne.is("element","br")}}function Fc(te,ne){if(!Array.isArray(te))return te===ne||!(!te.is("$text")||!ne.is("$text"))&&te.data===ne.data}class jc extends pc{constructor(te){super(te),this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const ne=this.document;ne.on("focus",(()=>{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout((()=>{this.flush(),te.change((()=>{}))}),50)})),ne.on("blur",((ie,re)=>{const le=ne.selection.editableElement;null!==le&&le!==re.target||(ne.isFocused=!1,this._isFocusChanging=!1,te.change((()=>{})))}))}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(te){this.fire(te.type,te)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Hc extends uc{constructor(te){super(te),this.mutationObserver=te.getObserver(Vc),this.focusObserver=te.getObserver(jc),this.selection=this.document.selection,this.domConverter=te.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Xr((te=>{this.document.fire("selectionChangeDone",te)}),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Xr((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(te){const ne=te.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,ne),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(te,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(te,"keydown",n,{priority:"highest",useCapture:!0}),this.listenTo(te,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(ne)||(this.listenTo(ne,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(ne,"selectionchange",((te,ie)=>{this.document.isComposing&&!le.isAndroid||(this._handleSelectionChange(ie,ne),this._documentIsSelectingInactivityTimeoutDebounced())})),this._documents.add(ne))}stopObserving(te){this.stopListening(te)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(te,ne){if(!this.isEnabled)return;const ie=ne.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(ie.anchorNode))return;this.mutationObserver.flush();const re=this.domConverter.domSelectionToView(ie);if(0!=re.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(re)||!this.domConverter.isDomSelectionCorrect(ie))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(re))this.view.forceRender();else{const te={oldSelection:this.selection,newSelection:re,domSelection:ie};this.document.fire("selectionChange",te),this._fireSelectionChangeDoneDebounced(te)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Uc extends pc{constructor(te){super(te),this.domEventType=["compositionstart","compositionupdate","compositionend"];const ne=this.document;ne.on("compositionstart",(()=>{ne.isComposing=!0}),{priority:"low"}),ne.on("compositionend",(()=>{ne.isComposing=!1}),{priority:"low"})}onDomEvent(te){this.fire(te.type,te,{data:te.data})}}class Wc{constructor(te,ne={}){this._files=ne.cacheFiles?Gc(te):null,this._native=te}get files(){return this._files||(this._files=Gc(this._native)),this._files}get types(){return this._native.types}getData(te){return this._native.getData(te)}setData(te,ne){this._native.setData(te,ne)}set effectAllowed(te){this._native.effectAllowed=te}get effectAllowed(){return this._native.effectAllowed}set dropEffect(te){this._native.dropEffect=te}get dropEffect(){return this._native.dropEffect}setDragImage(te,ne,ie){this._native.setDragImage(te,ne,ie)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Gc(te){const ne=Array.from(te.files||[]),ie=Array.from(te.items||[]);return ne.length?ne:ie.filter((te=>"file"===te.kind)).map((te=>te.getAsFile()))}class qc extends pc{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(te){const ne=te.getTargetRanges(),ie=this.view,re=ie.document;let ce=null,de=null,ue=[];if(te.dataTransfer&&(ce=new Wc(te.dataTransfer)),null!==te.data?de=te.data:ce&&(de=ce.getData("text/plain")),re.selection.isFake)ue=Array.from(re.selection.getRanges());else if(ne.length)ue=ne.map((te=>{const ne=ie.domConverter.domPositionToView(te.startContainer,te.startOffset),re=ie.domConverter.domPositionToView(te.endContainer,te.endOffset);return ne?ie.createRange(ne,re):re?ie.createRange(re):void 0})).filter((te=>!!te));else if(le.isAndroid){const ne=te.target.ownerDocument.defaultView.getSelection();ue=Array.from(ie.domConverter.domSelectionToView(ne).getRanges())}if(le.isAndroid&&"insertCompositionText"==te.inputType&&de&&de.endsWith("\n"))this.fire(te.type,te,{inputType:"insertParagraph",targetRanges:[ie.createRange(ue[0].end)]});else if("insertText"==te.inputType&&de&&de.includes("\n")){const ne=de.split(/\n{1,2}/g);let ie=ue;for(let le=0;le<ne.length;le++){const de=ne[le];""!=de&&(this.fire(te.type,te,{data:de,dataTransfer:ce,targetRanges:ie,inputType:te.inputType,isComposing:te.isComposing}),ie=[re.selection.getFirstRange()]),le+1<ne.length&&(this.fire(te.type,te,{inputType:"insertParagraph",targetRanges:ie}),ie=[re.selection.getFirstRange()])}}else this.fire(te.type,te,{data:de,dataTransfer:ce,targetRanges:ue,inputType:te.inputType,isComposing:te.isComposing})}}class Zc extends uc{constructor(te){super(te),this.document.on("keydown",((te,ne)=>{if(this.isEnabled&&((ie=ne.keyCode)==wo.arrowright||ie==wo.arrowleft||ie==wo.arrowup||ie==wo.arrowdown)){const ie=new ll(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(ie,ne),ie.stop.called&&te.stop()}var ie}))}observe(){}stopObserving(){}}class $c extends uc{constructor(te){super(te);const ne=this.document;ne.on("keydown",((te,ie)=>{if(!this.isEnabled||ie.keyCode!=wo.tab||ie.ctrlKey)return;const re=new ll(ne,"tab",ne.selection.getFirstRange());ne.fire(re,ie),re.stop.called&&te.stop()}))}observe(){}stopObserving(){}}const Kc=function(te){return co(te,5)};class Yc extends(q()){constructor(te){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new pl(te),this.domConverter=new ac(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Yl(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Sl(this.document),this.addObserver(Vc),this.addObserver(jc),this.addObserver(Hc),this.addObserver(fc),this.addObserver(kc),this.addObserver(Uc),this.addObserver(Zc),this.addObserver(qc),this.addObserver($c),this.document.on("arrowKey",Zl,{priority:"low"}),function vl(te){te.document.on("arrowKey",((ne,ie)=>function(te,ne,ie){if(ne.keyCode==wo.arrowright){const te=ne.domTarget.ownerDocument.defaultView.getSelection(),re=1==te.rangeCount&&te.getRangeAt(0).collapsed;if(re||ne.shiftKey){const ne=te.focusNode,le=te.focusOffset,ce=ie.domPositionToView(ne,le);if(null===ce)return;let de=!1;const ue=ce.getLastMatchingPosition((te=>(te.item.is("uiElement")&&(de=!0),!(!te.item.is("uiElement")&&!te.item.is("attributeElement")))));if(de){const ne=ie.viewPositionToDom(ue);re?te.collapse(ne.parent,ne.offset):te.extend(ne.parent,ne.offset)}}}}(0,ie,te.domConverter)),{priority:"low"})}(this),this.on("render",(()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(()=>{this._hasChangedSinceTheLastRendering=!0})),this.listenTo(this.document,"change:isFocused",(()=>{this._hasChangedSinceTheLastRendering=!0})),le.isiOS&&this.listenTo(this.document,"blur",((te,ne)=>{this.domConverter.mapDomToView(ne.domEvent.relatedTarget)||this.domConverter._clearDomSelection()}))}attachDomRoot(te,ne="main"){const ie=this.document.getRoot(ne);ie._name=te.tagName.toLowerCase();const re={};for(const{name:ne,value:le}of Array.from(te.attributes))re[ne]=le,"class"===ne?this._writer.addClass(le.split(" "),ie):this._writer.setAttribute(ne,le,ie);this._initialDomRootAttributes.set(te,re);const i=()=>{this._writer.setAttribute("contenteditable",(!ie.isReadOnly).toString(),ie),ie.isReadOnly?this._writer.addClass("ck-read-only",ie):this._writer.removeClass("ck-read-only",ie)};i(),this.domRoots.set(ne,te),this.domConverter.bindElements(te,ie),this._renderer.markToSync("children",ie),this._renderer.markToSync("attributes",ie),this._renderer.domDocuments.add(te.ownerDocument),ie.on("change:children",((te,ne)=>this._renderer.markToSync("children",ne))),ie.on("change:attributes",((te,ne)=>this._renderer.markToSync("attributes",ne))),ie.on("change:text",((te,ne)=>this._renderer.markToSync("text",ne))),ie.on("change:isReadOnly",(()=>this.change(i))),ie.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const ie of this._observers.values())ie.observe(te,ne)}detachDomRoot(te){const ne=this.domRoots.get(te);Array.from(ne.attributes).forEach((({name:te})=>ne.removeAttribute(te)));const ie=this._initialDomRootAttributes.get(ne);for(const te in ie)ne.setAttribute(te,ie[te]);this.domRoots.delete(te),this.domConverter.unbindDomElement(ne);for(const te of this._observers.values())te.stopObserving(ne)}getDomRoot(te="main"){return this.domRoots.get(te)}addObserver(te){let ne=this._observers.get(te);if(ne)return ne;ne=new te(this),this._observers.set(te,ne);for(const[te,ie]of this.domRoots)ne.observe(ie,te);return ne.enable(),ne}getObserver(te){return this._observers.get(te)}disableObservers(){for(const te of this._observers.values())te.disable()}enableObservers(){for(const te of this._observers.values())te.enable()}scrollToTheSelection({alignToTop:te,forceScroll:ne,viewportOffset:ie=20,ancestorOffset:re=20}={}){const le=this.document.selection.getFirstRange();if(!le)return;const ce=Kc({alignToTop:te,forceScroll:ne,viewportOffset:ie,ancestorOffset:re});"number"==typeof ie&&(ie={top:ie,bottom:ie,left:ie,right:ie});const de={target:this.domConverter.viewRangeToDom(le),viewportOffset:ie,ancestorOffset:re,alignToTop:te,forceScroll:ne};this.fire("scrollToTheSelection",de,ce),function({target:te,viewportOffset:ne=0,ancestorOffset:ie=0,alignToTop:re,forceScroll:le}){const ce=hi(te);let de=ce,ue=null;for(ne=function(te){return"number"==typeof te?{top:te,bottom:te,left:te,right:te}:te}(ne);de;){let me;me=ui(de==ce?te:ue),si({parent:me,getRect:()=>mi(te,de),alignToTop:re,ancestorOffset:ie,forceScroll:le});const ge=mi(te,de);if(ri({window:de,rect:ge,viewportOffset:ne,alignToTop:re,forceScroll:le}),de.parent!=de){if(ue=de.frameElement,de=de.parent,!ue)return}else de=null}}(de)}focus(){if(!this.document.isFocused){const te=this.document.selection.editableElement;te&&(this.domConverter.focus(te),this.forceRender())}}change(te){if(this.isRenderingInProgress||this._postFixersInProgress)throw new C("cannot-change-view-tree",this);try{if(this._ongoingChange)return te(this._writer);this._ongoingChange=!0;const ne=te(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),ne}catch(te){C.rethrowUnexpectedError(te,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(jc).flush(),this.change((()=>{}))}destroy(){for(const te of this._observers.values())te.destroy();this.document.destroy(),this.stopListening()}createPositionAt(te,ne){return ol._createAt(te,ne)}createPositionAfter(te){return ol._createAfter(te)}createPositionBefore(te){return ol._createBefore(te)}createRange(te,ne){return new il(te,ne)}createRangeOn(te){return il._createOn(te)}createRangeIn(te){return il._createIn(te)}createSelection(...te){return new sl(...te)}_disableRendering(te){this._renderingDisabled=te,0==te&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Qc{is(){throw new Error("is() method is abstract")}}class Jc extends Qc{constructor(te){super(),this.parent=null,this._attrs=Mi(te)}get document(){return null}get index(){let te;if(!this.parent)return null;if(null===(te=this.parent.getChildIndex(this)))throw new C("model-node-not-found-in-parent",this);return te}get startOffset(){let te;if(!this.parent)return null;if(null===(te=this.parent.getChildStartOffset(this)))throw new C("model-node-not-found-in-parent",this);return te}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const te=this.index;return null!==te&&this.parent.getChild(te+1)||null}get previousSibling(){const te=this.index;return null!==te&&this.parent.getChild(te-1)||null}get root(){let te=this;for(;te.parent;)te=te.parent;return te}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const te=[];let ne=this;for(;ne.parent;)te.unshift(ne.startOffset),ne=ne.parent;return te}getAncestors(te={}){const ne=[];let ie=te.includeSelf?this:this.parent;for(;ie;)ne[te.parentFirst?"push":"unshift"](ie),ie=ie.parent;return ne}getCommonAncestor(te,ne={}){const ie=this.getAncestors(ne),re=te.getAncestors(ne);let le=0;for(;ie[le]==re[le]&&ie[le];)le++;return 0===le?null:ie[le-1]}isBefore(te){if(this==te)return!1;if(this.root!==te.root)return!1;const ne=this.getPath(),ie=te.getPath(),re=tt(ne,ie);switch(re){case"prefix":return!0;case"extension":return!1;default:return ne[re]<ie[re]}}isAfter(te){return this!=te&&this.root===te.root&&!this.isBefore(te)}hasAttribute(te){return this._attrs.has(te)}getAttribute(te){return this._attrs.get(te)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const te={};return this._attrs.size&&(te.attributes=Array.from(this._attrs).reduce(((te,ne)=>(te[ne[0]]=ne[1],te)),{})),te}_clone(te){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(te,ne){this._attrs.set(te,ne)}_setAttributesTo(te){this._attrs=Mi(te)}_removeAttribute(te){return this._attrs.delete(te)}_clearAttributes(){this._attrs.clear()}}Jc.prototype.is=function(te){return"node"===te||"model:node"===te};class Xc{constructor(te){this._nodes=[],te&&this._insertNodes(0,te)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((te,ne)=>te+ne.offsetSize),0)}getNode(te){return this._nodes[te]||null}getNodeIndex(te){const ne=this._nodes.indexOf(te);return-1==ne?null:ne}getNodeStartOffset(te){const ne=this.getNodeIndex(te);return null===ne?null:this._nodes.slice(0,ne).reduce(((te,ne)=>te+ne.offsetSize),0)}indexToOffset(te){if(te==this._nodes.length)return this.maxOffset;const ne=this._nodes[te];if(!ne)throw new C("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(ne)}offsetToIndex(te){let ne=0;for(const ie of this._nodes){if(te>=ne&&te<ne+ie.offsetSize)return this.getNodeIndex(ie);ne+=ie.offsetSize}if(ne!=te)throw new C("model-nodelist-offset-out-of-bounds",this,{offset:te,nodeList:this});return this.length}_insertNodes(te,ne){for(const te of ne)if(!(te instanceof Jc))throw new C("model-nodelist-insertnodes-not-node",this);this._nodes=function(te,ne,ie,re){if(Math.max(ne.length,te.length)>1e4)return te.slice(0,ie).concat(ne).concat(te.slice(ie+0,te.length));{const re=Array.from(te);return re.splice(ie,0,...ne),re}}(this._nodes,Array.from(ne),te)}_removeNodes(te,ne=1){return this._nodes.splice(te,ne)}toJSON(){return this._nodes.map((te=>te.toJSON()))}}class td extends Jc{constructor(te,ne){super(ne),this._data=te||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const te=super.toJSON();return te.data=this.data,te}_clone(){return new td(this.data,this.getAttributes())}static fromJSON(te){return new td(te.data,te.attributes)}}td.prototype.is=function(te){return"$text"===te||"model:$text"===te||"text"===te||"model:text"===te||"node"===te||"model:node"===te};class ed extends Qc{constructor(te,ne,ie){if(super(),this.textNode=te,ne<0||ne>te.offsetSize)throw new C("model-textproxy-wrong-offsetintext",this);if(ie<0||ne+ie>te.offsetSize)throw new C("model-textproxy-wrong-length",this);this.data=te.data.substring(ne,ne+ie),this.offsetInText=ne}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const te=this.textNode.getPath();return te.length>0&&(te[te.length-1]+=this.offsetInText),te}getAncestors(te={}){const ne=[];let ie=te.includeSelf?this:this.parent;for(;ie;)ne[te.parentFirst?"push":"unshift"](ie),ie=ie.parent;return ne}hasAttribute(te){return this.textNode.hasAttribute(te)}getAttribute(te){return this.textNode.getAttribute(te)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}ed.prototype.is=function(te){return"$textProxy"===te||"model:$textProxy"===te||"textProxy"===te||"model:textProxy"===te};class nd extends Jc{constructor(te,ne,ie){super(ne),this._children=new Xc,this.name=te,ie&&this._insertChild(0,ie)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(te){return this._children.getNode(te)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(te){return this._children.getNodeIndex(te)}getChildStartOffset(te){return this._children.getNodeStartOffset(te)}offsetToIndex(te){return this._children.offsetToIndex(te)}getNodeByPath(te){let ne=this;for(const ie of te)ne=ne.getChild(ne.offsetToIndex(ie));return ne}findAncestor(te,ne={}){let ie=ne.includeSelf?this:this.parent;for(;ie;){if(ie.name===te)return ie;ie=ie.parent}return null}toJSON(){const te=super.toJSON();if(te.name=this.name,this._children.length>0){te.children=[];for(const ne of this._children)te.children.push(ne.toJSON())}return te}_clone(te=!1){const ne=te?Array.from(this._children).map((te=>te._clone(!0))):void 0;return new nd(this.name,this.getAttributes(),ne)}_appendChild(te){this._insertChild(this.childCount,te)}_insertChild(te,ne){const ie=function(te){return"string"==typeof te?[new td(te)]:(et(te)||(te=[te]),Array.from(te).map((te=>"string"==typeof te?new td(te):te instanceof ed?new td(te.data,te.getAttributes()):te)))}(ne);for(const te of ie)null!==te.parent&&te._remove(),te.parent=this;this._children._insertNodes(te,ie)}_removeChildren(te,ne=1){const ie=this._children._removeNodes(te,ne);for(const te of ie)te.parent=null;return ie}static fromJSON(te){let ne;if(te.children){ne=[];for(const ie of te.children)ie.name?ne.push(nd.fromJSON(ie)):ne.push(td.fromJSON(ie))}return new nd(te.name,te.attributes,ne)}}nd.prototype.is=function(te,ne){return ne?ne===this.name&&("element"===te||"model:element"===te):"element"===te||"model:element"===te||"node"===te||"model:node"===te};class od{constructor(te){if(!te||!te.boundaries&&!te.startPosition)throw new C("model-tree-walker-no-start-position",null);const ne=te.direction||"forward";if("forward"!=ne&&"backward"!=ne)throw new C("model-tree-walker-unknown-direction",te,{direction:ne});this.direction=ne,this.boundaries=te.boundaries||null,te.startPosition?this._position=te.startPosition.clone():this._position=rd._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!te.singleCharacters,this.shallow=!!te.shallow,this.ignoreElementEnd=!!te.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(te){let ne,ie,re,le;do{re=this.position,le=this._visitedParent,({done:ne,value:ie}=this.next())}while(!ne&&te(ie));ne||(this._position=re,this._visitedParent=le)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const te=this.position,ne=this.position.clone(),ie=this._visitedParent;if(null===ie.parent&&ne.offset===ie.maxOffset)return{done:!0,value:void 0};if(ie===this._boundaryEndParent&&ne.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const re=sd(ne,ie),le=re||ad(ne,ie,re);if(le instanceof nd){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(ne))return{done:!0,value:void 0};ne.offset++}else ne.path.push(0),this._visitedParent=le;return this._position=ne,id("elementStart",le,te,ne,1)}if(le instanceof td){let re;if(this.singleCharacters)re=1;else{let te=le.endOffset;this._boundaryEndParent==ie&&this.boundaries.end.offset<te&&(te=this.boundaries.end.offset),re=te-ne.offset}const ce=ne.offset-le.startOffset,de=new ed(le,ce,re);return ne.offset+=re,this._position=ne,id("text",de,te,ne,re)}return ne.path.pop(),ne.offset++,this._position=ne,this._visitedParent=ie.parent,this.ignoreElementEnd?this._next():id("elementEnd",ie,te,ne)}_previous(){const te=this.position,ne=this.position.clone(),ie=this._visitedParent;if(null===ie.parent&&0===ne.offset)return{done:!0,value:void 0};if(ie==this._boundaryStartParent&&ne.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const re=ne.parent,le=sd(ne,re),ce=le||ld(ne,re,le);if(ce instanceof nd)return ne.offset--,this.shallow?(this._position=ne,id("elementStart",ce,te,ne,1)):(ne.path.push(ce.maxOffset),this._position=ne,this._visitedParent=ce,this.ignoreElementEnd?this._previous():id("elementEnd",ce,te,ne));if(ce instanceof td){let re;if(this.singleCharacters)re=1;else{let te=ce.startOffset;this._boundaryStartParent==ie&&this.boundaries.start.offset>te&&(te=this.boundaries.start.offset),re=ne.offset-te}const le=ne.offset-ce.startOffset,de=new ed(ce,le-re,re);return ne.offset-=re,this._position=ne,id("text",de,te,ne,re)}return ne.path.pop(),this._position=ne,this._visitedParent=ie.parent,id("elementStart",ie,te,ne,1)}}function id(te,ne,ie,re,le){return{done:!1,value:{type:te,item:ne,previousPosition:ie,nextPosition:re,length:le}}}class rd extends Qc{constructor(te,ne,ie="toNone"){if(super(),!te.is("element")&&!te.is("documentFragment"))throw new C("model-position-root-invalid",te);if(!(ne instanceof Array)||0===ne.length)throw new C("model-position-path-incorrect-format",te,{path:ne});te.is("rootElement")?ne=ne.slice():(ne=[...te.getPath(),...ne],te=te.root),this.root=te,this.path=ne,this.stickiness=ie}get offset(){return this.path[this.path.length-1]}set offset(te){this.path[this.path.length-1]=te}get parent(){let te=this.root;for(let ne=0;ne<this.path.length-1;ne++)if(te=te.getChild(te.offsetToIndex(this.path[ne])),!te)throw new C("model-position-path-incorrect",this,{position:this});if(te.is("$text"))throw new C("model-position-path-incorrect",this,{position:this});return te}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return sd(this,this.parent)}get nodeAfter(){const te=this.parent;return ad(this,te,sd(this,te))}get nodeBefore(){const te=this.parent;return ld(this,te,sd(this,te))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(te){if(this.root!=te.root)return"different";const ne=tt(this.path,te.path);switch(ne){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[ne]<te.path[ne]?"before":"after"}}getLastMatchingPosition(te,ne={}){ne.startPosition=this;const ie=new od(ne);return ie.skip(te),ie.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const te=this.parent;return te.is("documentFragment")?[te]:te.getAncestors({includeSelf:!0})}findAncestor(te){const ne=this.parent;return ne.is("element")?ne.findAncestor(te,{includeSelf:!0}):null}getCommonPath(te){if(this.root!=te.root)return[];const ne=tt(this.path,te.path),ie="string"==typeof ne?Math.min(this.path.length,te.path.length):ne;return this.path.slice(0,ie)}getCommonAncestor(te){const ne=this.getAncestors(),ie=te.getAncestors();let re=0;for(;ne[re]==ie[re]&&ne[re];)re++;return 0===re?null:ne[re-1]}getShiftedBy(te){const ne=this.clone(),ie=ne.offset+te;return ne.offset=ie<0?0:ie,ne}isAfter(te){return"after"==this.compareWith(te)}isBefore(te){return"before"==this.compareWith(te)}isEqual(te){return"same"==this.compareWith(te)}isTouching(te){if(this.root!==te.root)return!1;const ne=Math.min(this.path.length,te.path.length);for(let ie=0;ie<ne;ie++){const ne=this.path[ie]-te.path[ie];if(ne<-1||ne>1)return!1;if(1===ne)return cd(te,this,ie);if(-1===ne)return cd(this,te,ie)}return this.path.length===te.path.length||(this.path.length>te.path.length?dd(this.path,ne):dd(te.path,ne))}hasSameParentAs(te){return this.root===te.root&&"same"==tt(this.getParentPath(),te.getParentPath())}getTransformedByOperation(te){let ne;switch(te.type){case"insert":ne=this._getTransformedByInsertOperation(te);break;case"move":case"remove":case"reinsert":ne=this._getTransformedByMoveOperation(te);break;case"split":ne=this._getTransformedBySplitOperation(te);break;case"merge":ne=this._getTransformedByMergeOperation(te);break;default:ne=rd._createAt(this)}return ne}_getTransformedByInsertOperation(te){return this._getTransformedByInsertion(te.position,te.howMany)}_getTransformedByMoveOperation(te){return this._getTransformedByMove(te.sourcePosition,te.targetPosition,te.howMany)}_getTransformedBySplitOperation(te){const ne=te.movedRange;return ne.containsPosition(this)||ne.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(te.splitPosition,te.moveTargetPosition):te.graveyardPosition?this._getTransformedByMove(te.graveyardPosition,te.insertionPosition,1):this._getTransformedByInsertion(te.insertionPosition,1)}_getTransformedByMergeOperation(te){const ne=te.movedRange;let ie;return ne.containsPosition(this)||ne.start.isEqual(this)?(ie=this._getCombined(te.sourcePosition,te.targetPosition),te.sourcePosition.isBefore(te.targetPosition)&&(ie=ie._getTransformedByDeletion(te.deletionPosition,1))):ie=this.isEqual(te.deletionPosition)?rd._createAt(te.deletionPosition):this._getTransformedByMove(te.deletionPosition,te.graveyardPosition,1),ie}_getTransformedByDeletion(te,ne){const ie=rd._createAt(this);if(this.root!=te.root)return ie;if("same"==tt(te.getParentPath(),this.getParentPath())){if(te.offset<this.offset){if(te.offset+ne>this.offset)return null;ie.offset-=ne}}else if("prefix"==tt(te.getParentPath(),this.getParentPath())){const re=te.path.length-1;if(te.offset<=this.path[re]){if(te.offset+ne>this.path[re])return null;ie.path[re]-=ne}}return ie}_getTransformedByInsertion(te,ne){const ie=rd._createAt(this);if(this.root!=te.root)return ie;if("same"==tt(te.getParentPath(),this.getParentPath()))(te.offset<this.offset||te.offset==this.offset&&"toPrevious"!=this.stickiness)&&(ie.offset+=ne);else if("prefix"==tt(te.getParentPath(),this.getParentPath())){const re=te.path.length-1;te.offset<=this.path[re]&&(ie.path[re]+=ne)}return ie}_getTransformedByMove(te,ne,ie){if(ne=ne._getTransformedByDeletion(te,ie),te.isEqual(ne))return rd._createAt(this);const re=this._getTransformedByDeletion(te,ie);return null===re||te.isEqual(this)&&"toNext"==this.stickiness||te.getShiftedBy(ie).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(te,ne):re._getTransformedByInsertion(ne,ie)}_getCombined(te,ne){const ie=te.path.length-1,re=rd._createAt(ne);return re.stickiness=this.stickiness,re.offset=re.offset+this.path[ie]-te.offset,re.path=[...re.path,...this.path.slice(ie+1)],re}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(te,ne,ie="toNone"){if(te instanceof rd)return new rd(te.root,te.path,te.stickiness);{const re=te;if("end"==ne)ne=re.maxOffset;else{if("before"==ne)return this._createBefore(re,ie);if("after"==ne)return this._createAfter(re,ie);if(0!==ne&&!ne)throw new C("model-createpositionat-offset-required",[this,te])}if(!re.is("element")&&!re.is("documentFragment"))throw new C("model-position-parent-incorrect",[this,te]);const le=re.getPath();return le.push(ne),new this(re.root,le,ie)}}static _createAfter(te,ne){if(!te.parent)throw new C("model-position-after-root",[this,te],{root:te});return this._createAt(te.parent,te.endOffset,ne)}static _createBefore(te,ne){if(!te.parent)throw new C("model-position-before-root",te,{root:te});return this._createAt(te.parent,te.startOffset,ne)}static fromJSON(te,ne){if("$graveyard"===te.root){const ie=new rd(ne.graveyard,te.path);return ie.stickiness=te.stickiness,ie}if(!ne.getRoot(te.root))throw new C("model-position-fromjson-no-root",ne,{rootName:te.root});return new rd(ne.getRoot(te.root),te.path,te.stickiness)}}function sd(te,ne){const ie=ne.getChild(ne.offsetToIndex(te.offset));return ie&&ie.is("$text")&&ie.startOffset<te.offset?ie:null}function ad(te,ne,ie){return null!==ie?null:ne.getChild(ne.offsetToIndex(te.offset))}function ld(te,ne,ie){return null!==ie?null:ne.getChild(ne.offsetToIndex(te.offset)-1)}function cd(te,ne,ie){return ie+1!==te.path.length&&!!dd(ne.path,ie+1)&&!!function(te,ne){let ie=te.parent,re=te.path.length-1,le=0;for(;re>=ne;){if(te.path[re]+le!==ie.maxOffset)return!1;le=1,re--,ie=ie.parent}return!0}(te,ie+1)}function dd(te,ne){for(;ne<te.length;){if(0!==te[ne])return!1;ne++}return!0}rd.prototype.is=function(te){return"position"===te||"model:position"===te};class hd extends Qc{constructor(te,ne){super(),this.start=rd._createAt(te),this.end=ne?rd._createAt(ne):rd._createAt(te),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new od({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==tt(this.start.getParentPath(),this.end.getParentPath())}get root(){return this.start.root}containsPosition(te){return te.isAfter(this.start)&&te.isBefore(this.end)}containsRange(te,ne=!1){te.isCollapsed&&(ne=!1);const ie=this.containsPosition(te.start)||ne&&this.start.isEqual(te.start),re=this.containsPosition(te.end)||ne&&this.end.isEqual(te.end);return ie&&re}containsItem(te){const ne=rd._createBefore(te);return this.containsPosition(ne)||this.start.isEqual(ne)}isEqual(te){return this.start.isEqual(te.start)&&this.end.isEqual(te.end)}isIntersecting(te){return this.start.isBefore(te.end)&&this.end.isAfter(te.start)}getDifference(te){const ne=[];return this.isIntersecting(te)?(this.containsPosition(te.start)&&ne.push(new hd(this.start,te.start)),this.containsPosition(te.end)&&ne.push(new hd(te.end,this.end))):ne.push(new hd(this.start,this.end)),ne}getIntersection(te){if(this.isIntersecting(te)){let ne=this.start,ie=this.end;return this.containsPosition(te.start)&&(ne=te.start),this.containsPosition(te.end)&&(ie=te.end),new hd(ne,ie)}return null}getJoined(te,ne=!1){let ie=this.isIntersecting(te);if(ie||(ie=this.start.isBefore(te.start)?ne?this.end.isTouching(te.start):this.end.isEqual(te.start):ne?te.end.isTouching(this.start):te.end.isEqual(this.start)),!ie)return null;let re=this.start,le=this.end;return te.start.isBefore(re)&&(re=te.start),te.end.isAfter(le)&&(le=te.end),new hd(re,le)}getMinimalFlatRanges(){const te=[],ne=this.start.getCommonPath(this.end).length,ie=rd._createAt(this.start);let re=ie.parent;for(;ie.path.length>ne+1;){const ne=re.maxOffset-ie.offset;0!==ne&&te.push(new hd(ie,ie.getShiftedBy(ne))),ie.path=ie.path.slice(0,-1),ie.offset++,re=re.parent}for(;ie.path.length<=this.end.path.length;){const ne=this.end.path[ie.path.length-1],re=ne-ie.offset;0!==re&&te.push(new hd(ie,ie.getShiftedBy(re))),ie.offset=ne,ie.path.push(0)}return te}getWalker(te={}){return te.boundaries=this,new od(te)}*getItems(te={}){te.boundaries=this,te.ignoreElementEnd=!0;const ne=new od(te);for(const te of ne)yield te.item}*getPositions(te={}){te.boundaries=this;const ne=new od(te);yield ne.position;for(const te of ne)yield te.nextPosition}getTransformedByOperation(te){switch(te.type){case"insert":return this._getTransformedByInsertOperation(te);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(te);case"split":return[this._getTransformedBySplitOperation(te)];case"merge":return[this._getTransformedByMergeOperation(te)]}return[new hd(this.start,this.end)]}getTransformedByOperations(te){const ne=[new hd(this.start,this.end)];for(const ie of te)for(let te=0;te<ne.length;te++){const re=ne[te].getTransformedByOperation(ie);ne.splice(te,1,...re),te+=re.length-1}for(let te=0;te<ne.length;te++){const ie=ne[te];for(let re=te+1;re<ne.length;re++){const te=ne[re];(ie.containsRange(te)||te.containsRange(ie)||ie.isEqual(te))&&ne.splice(re,1)}}return ne}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const te=this.start.nodeAfter,ne=this.end.nodeBefore;return te&&te.is("element")&&te===ne?te:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(te,ne=!1){return this._getTransformedByInsertion(te.position,te.howMany,ne)}_getTransformedByMoveOperation(te,ne=!1){const ie=te.sourcePosition,re=te.howMany,le=te.targetPosition;return this._getTransformedByMove(ie,le,re,ne)}_getTransformedBySplitOperation(te){const ne=this.start._getTransformedBySplitOperation(te);let ie=this.end._getTransformedBySplitOperation(te);return this.end.isEqual(te.insertionPosition)&&(ie=this.end.getShiftedBy(1)),ne.root!=ie.root&&(ie=this.end.getShiftedBy(-1)),new hd(ne,ie)}_getTransformedByMergeOperation(te){if(this.start.isEqual(te.targetPosition)&&this.end.isEqual(te.deletionPosition))return new hd(this.start);let ne=this.start._getTransformedByMergeOperation(te),ie=this.end._getTransformedByMergeOperation(te);return ne.root!=ie.root&&(ie=this.end.getShiftedBy(-1)),ne.isAfter(ie)?(te.sourcePosition.isBefore(te.targetPosition)?(ne=rd._createAt(ie),ne.offset=0):(te.deletionPosition.isEqual(ne)||(ie=te.deletionPosition),ne=te.targetPosition),new hd(ne,ie)):new hd(ne,ie)}_getTransformedByInsertion(te,ne,ie=!1){if(ie&&this.containsPosition(te))return[new hd(this.start,te),new hd(te.getShiftedBy(ne),this.end._getTransformedByInsertion(te,ne))];{const ie=new hd(this.start,this.end);return ie.start=ie.start._getTransformedByInsertion(te,ne),ie.end=ie.end._getTransformedByInsertion(te,ne),[ie]}}_getTransformedByMove(te,ne,ie,re=!1){if(this.isCollapsed){const re=this.start._getTransformedByMove(te,ne,ie);return[new hd(re)]}const le=hd._createFromPositionAndShift(te,ie),ce=ne._getTransformedByDeletion(te,ie);if(this.containsPosition(ne)&&!re&&(le.containsPosition(this.start)||le.containsPosition(this.end))){const re=this.start._getTransformedByMove(te,ne,ie),le=this.end._getTransformedByMove(te,ne,ie);return[new hd(re,le)]}let de;const ue=this.getDifference(le);let me=null;const ge=this.getIntersection(le);if(1==ue.length?me=new hd(ue[0].start._getTransformedByDeletion(te,ie),ue[0].end._getTransformedByDeletion(te,ie)):2==ue.length&&(me=new hd(this.start,this.end._getTransformedByDeletion(te,ie))),de=me?me._getTransformedByInsertion(ce,ie,null!==ge||re):[],ge){const te=new hd(ge.start._getCombined(le.start,ce),ge.end._getCombined(le.start,ce));2==de.length?de.splice(1,0,te):de.push(te)}return de}_getTransformedByDeletion(te,ne){let ie=this.start._getTransformedByDeletion(te,ne),re=this.end._getTransformedByDeletion(te,ne);return null==ie&&null==re?null:(null==ie&&(ie=te),null==re&&(re=te),new hd(ie,re))}static _createFromPositionAndShift(te,ne){const ie=te,re=te.getShiftedBy(ne);return ne>0?new this(ie,re):new this(re,ie)}static _createIn(te){return new this(rd._createAt(te,0),rd._createAt(te,te.maxOffset))}static _createOn(te){return this._createFromPositionAndShift(rd._createBefore(te),te.offsetSize)}static _createFromRanges(te){if(0===te.length)throw new C("range-create-from-ranges-empty-array",null);if(1==te.length)return te[0].clone();const ne=te[0];te.sort(((te,ne)=>te.start.isAfter(ne.start)?1:-1));const ie=te.indexOf(ne),re=new this(ne.start,ne.end);if(ie>0)for(let ne=ie-1;te[ne].end.isEqual(re.start);ne++)re.start=rd._createAt(te[ne].start);for(let ne=ie+1;ne<te.length&&te[ne].start.isEqual(re.end);ne++)re.end=rd._createAt(te[ne].end);return re}static fromJSON(te,ne){return new this(rd.fromJSON(te.start,ne),rd.fromJSON(te.end,ne))}}hd.prototype.is=function(te){return"range"===te||"model:range"===te};class ud extends(M()){constructor(){super(),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._deferredBindingRemovals=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",((te,ne)=>{if(ne.viewPosition)return;const ie=this._modelToViewMapping.get(ne.modelPosition.parent);if(!ie)throw new C("mapping-model-position-view-parent-not-found",this,{modelPosition:ne.modelPosition});ne.viewPosition=this.findPositionIn(ie,ne.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((te,ne)=>{if(ne.modelPosition)return;const ie=this.findMappedViewAncestor(ne.viewPosition),re=this._viewToModelMapping.get(ie),le=this._toModelOffset(ne.viewPosition.parent,ne.viewPosition.offset,ie);ne.modelPosition=rd._createAt(re,le)}),{priority:"low"})}bindElements(te,ne){this._modelToViewMapping.set(te,ne),this._viewToModelMapping.set(ne,te)}unbindViewElement(te,ne={}){const ie=this.toModelElement(te);if(this._elementToMarkerNames.has(te))for(const ne of this._elementToMarkerNames.get(te))this._unboundMarkerNames.add(ne);ne.defer?this._deferredBindingRemovals.set(te,te.root):(this._viewToModelMapping.delete(te),this._modelToViewMapping.get(ie)==te&&this._modelToViewMapping.delete(ie))}unbindModelElement(te){const ne=this.toViewElement(te);this._modelToViewMapping.delete(te),this._viewToModelMapping.get(ne)==te&&this._viewToModelMapping.delete(ne)}bindElementToMarker(te,ne){const ie=this._markerNameToElements.get(ne)||new Set;ie.add(te);const re=this._elementToMarkerNames.get(te)||new Set;re.add(ne),this._markerNameToElements.set(ne,ie),this._elementToMarkerNames.set(te,re)}unbindElementFromMarkerName(te,ne){const ie=this._markerNameToElements.get(ne);ie&&(ie.delete(te),0==ie.size&&this._markerNameToElements.delete(ne));const re=this._elementToMarkerNames.get(te);re&&(re.delete(ne),0==re.size&&this._elementToMarkerNames.delete(te))}flushUnboundMarkerNames(){const te=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),te}flushDeferredBindings(){for(const[te,ne]of this._deferredBindingRemovals)te.root==ne&&this.unbindViewElement(te);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(te){return this._viewToModelMapping.get(te)}toViewElement(te){return this._modelToViewMapping.get(te)}toModelRange(te){return new hd(this.toModelPosition(te.start),this.toModelPosition(te.end))}toViewRange(te){return new il(this.toViewPosition(te.start),this.toViewPosition(te.end))}toModelPosition(te){const ne={viewPosition:te,mapper:this};return this.fire("viewToModelPosition",ne),ne.modelPosition}toViewPosition(te,ne={}){const ie={modelPosition:te,mapper:this,isPhantom:ne.isPhantom};return this.fire("modelToViewPosition",ie),ie.viewPosition}markerNameToElements(te){const ne=this._markerNameToElements.get(te);if(!ne)return null;const ie=new Set;for(const te of ne)if(te.is("attributeElement"))for(const ne of te.getElementsWithSameId())ie.add(ne);else ie.add(te);return ie}registerViewToModelLength(te,ne){this._viewToModelLengthCallbacks.set(te,ne)}findMappedViewAncestor(te){let ne=te.parent;for(;!this._viewToModelMapping.has(ne);)ne=ne.parent;return ne}_toModelOffset(te,ne,ie){if(ie!=te)return this._toModelOffset(te.parent,te.index,ie)+this._toModelOffset(te,ne,te);if(te.is("$text"))return ne;let re=0;for(let ie=0;ie<ne;ie++)re+=this.getModelLength(te.getChild(ie));return re}getModelLength(te){if(this._viewToModelLengthCallbacks.get(te.name))return this._viewToModelLengthCallbacks.get(te.name)(te);if(this._viewToModelMapping.has(te))return 1;if(te.is("$text"))return te.data.length;if(te.is("uiElement"))return 0;{let ne=0;for(const ie of te.getChildren())ne+=this.getModelLength(ie);return ne}}findPositionIn(te,ne){let ie,re=0,le=0,ce=0;if(te.is("$text"))return new ol(te,ne);for(;le<ne;)ie=te.getChild(ce),re=this.getModelLength(ie),le+=re,ce++;return le==ne?this._moveViewPositionToTextNode(new ol(te,ce)):this.findPositionIn(ie,ne-(le-re))}_moveViewPositionToTextNode(te){const ne=te.nodeBefore,ie=te.nodeAfter;return ne instanceof $s?new ol(ne,ne.data.length):ie instanceof $s?new ol(ie,0):te}}class md{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(te,ne){ne=gd(ne),te instanceof ed&&(te=this._getSymbolForTextProxy(te)),this._consumable.has(te)||this._consumable.set(te,new Map),this._consumable.get(te).set(ne,!0)}consume(te,ne){return ne=gd(ne),te instanceof ed&&(te=this._getSymbolForTextProxy(te)),!!this.test(te,ne)&&(this._consumable.get(te).set(ne,!1),!0)}test(te,ne){ne=gd(ne),te instanceof ed&&(te=this._getSymbolForTextProxy(te));const ie=this._consumable.get(te);if(void 0===ie)return null;const re=ie.get(ne);return void 0===re?null:re}revert(te,ne){ne=gd(ne),te instanceof ed&&(te=this._getSymbolForTextProxy(te));const ie=this.test(te,ne);return!1===ie?(this._consumable.get(te).set(ne,!0),!0):!0!==ie&&null}verifyAllConsumed(te){const ne=[];for(const[ie,re]of this._consumable)for(const[le,ce]of re){const re=le.split(":")[0];ce&&te==re&&ne.push({event:le,item:ie.name||ie.description})}if(ne.length)throw new C("conversion-model-consumable-not-consumed",null,{items:ne})}_getSymbolForTextProxy(te){let ne=null;const ie=this._textProxyRegistry.get(te.startOffset);if(ie){const re=ie.get(te.endOffset);re&&(ne=re.get(te.parent))}return ne||(ne=this._addSymbolForTextProxy(te)),ne}_addSymbolForTextProxy(te){const ne=te.startOffset,ie=te.endOffset,re=te.parent,le=Symbol("$textProxy:"+te.data);let ce,de;return ce=this._textProxyRegistry.get(ne),ce||(ce=new Map,this._textProxyRegistry.set(ne,ce)),de=ce.get(ie),de||(de=new Map,ce.set(ie,de)),de.set(re,le),le}}function gd(te){const ne=te.split(":");return"insert"==ne[0]?ne[0]:"addMarker"==ne[0]||"removeMarker"==ne[0]?te:ne.length>1?ne[0]+":"+ne[1]:ne[0]}class pd extends(M()){constructor(te){super(),this._conversionApi={dispatcher:this,...te},this._firedEventsMap=new WeakMap}convertChanges(te,ne,ie){const re=this._createConversionApi(ie,te.getRefreshedItems());for(const ne of te.getMarkersToRemove())this._convertMarkerRemove(ne.name,ne.range,re);const le=this._reduceChanges(te.getChanges());for(const te of le)"insert"===te.type?this._convertInsert(hd._createFromPositionAndShift(te.position,te.length),re):"reinsert"===te.type?this._convertReinsert(hd._createFromPositionAndShift(te.position,te.length),re):"remove"===te.type?this._convertRemove(te.position,te.length,te.name,re):this._convertAttribute(te.range,te.attributeKey,te.attributeOldValue,te.attributeNewValue,re);re.mapper.flushDeferredBindings();for(const te of re.mapper.flushUnboundMarkerNames()){const ie=ne.get(te).getRange();this._convertMarkerRemove(te,ie,re),this._convertMarkerAdd(te,ie,re)}for(const ne of te.getMarkersToAdd())this._convertMarkerAdd(ne.name,ne.range,re);re.consumable.verifyAllConsumed("insert")}convert(te,ne,ie,re={}){const le=this._createConversionApi(ie,void 0,re);this._convertInsert(te,le);for(const[te,ie]of ne)this._convertMarkerAdd(te,ie,le);le.consumable.verifyAllConsumed("insert")}convertSelection(te,ne,ie){const re=this._createConversionApi(ie);this.fire("cleanSelection",{selection:te},re);const le=te.getFirstPosition().root;if(!re.mapper.toViewElement(le))return;const ce=Array.from(ne.getMarkersAtPosition(te.getFirstPosition()));if(this._addConsumablesForSelection(re.consumable,te,ce),this.fire("selection",{selection:te},re),te.isCollapsed){for(const ne of ce)if(re.consumable.test(te,"addMarker:"+ne.name)){const ie=ne.getRange();if(!fd(te.getFirstPosition(),ne,re.mapper))continue;const le={item:te,markerName:ne.name,markerRange:ie};this.fire(`addMarker:${ne.name}`,le,re)}for(const ne of te.getAttributeKeys())if(re.consumable.test(te,"attribute:"+ne)){const ie={item:te,range:te.getFirstRange(),attributeKey:ne,attributeOldValue:null,attributeNewValue:te.getAttribute(ne)};this.fire(`attribute:${ne}:$text`,ie,re)}}}_convertInsert(te,ne,ie={}){ie.doNotAddConsumables||this._addConsumablesForInsert(ne.consumable,te);for(const ie of Array.from(te.getWalker({shallow:!0})).map(kd))this._testAndFire("insert",ie,ne)}_convertRemove(te,ne,ie,re){this.fire(`remove:${ie}`,{position:te,length:ne},re)}_convertAttribute(te,ne,ie,re,le){this._addConsumablesForRange(le.consumable,te,`attribute:${ne}`);for(const ce of te){const te={item:ce.item,range:hd._createFromPositionAndShift(ce.previousPosition,ce.length),attributeKey:ne,attributeOldValue:ie,attributeNewValue:re};this._testAndFire(`attribute:${ne}`,te,le)}}_convertReinsert(te,ne){const ie=Array.from(te.getWalker({shallow:!0}));this._addConsumablesForInsert(ne.consumable,ie);for(const te of ie.map(kd))this._testAndFire("insert",{...te,reconversion:!0},ne)}_convertMarkerAdd(te,ne,ie){if("$graveyard"==ne.root.rootName)return;const re=`addMarker:${te}`;if(ie.consumable.add(ne,re),this.fire(re,{markerName:te,markerRange:ne},ie),ie.consumable.consume(ne,re)){this._addConsumablesForRange(ie.consumable,ne,re);for(const le of ne.getItems()){if(!ie.consumable.test(le,re))continue;const ce={item:le,range:hd._createOn(le),markerName:te,markerRange:ne};this.fire(re,ce,ie)}}}_convertMarkerRemove(te,ne,ie){"$graveyard"!=ne.root.rootName&&this.fire(`removeMarker:${te}`,{markerName:te,markerRange:ne},ie)}_reduceChanges(te){const ne={changes:te};return this.fire("reduceChanges",ne),ne.changes}_addConsumablesForInsert(te,ne){for(const ie of ne){const ne=ie.item;if(null===te.test(ne,"insert")){te.add(ne,"insert");for(const ie of ne.getAttributeKeys())te.add(ne,"attribute:"+ie)}}return te}_addConsumablesForRange(te,ne,ie){for(const re of ne.getItems())te.add(re,ie);return te}_addConsumablesForSelection(te,ne,ie){te.add(ne,"selection");for(const re of ie)te.add(ne,"addMarker:"+re.name);for(const ie of ne.getAttributeKeys())te.add(ne,"attribute:"+ie);return te}_testAndFire(te,ne,ie){const re=function(te,ne){return`${te}:${ne.item.is("element")?ne.item.name:"$text"}`}(te,ne),le=ne.item.is("$textProxy")?ie.consumable._getSymbolForTextProxy(ne.item):ne.item,ce=this._firedEventsMap.get(ie),de=ce.get(le);if(de){if(de.has(re))return;de.add(re)}else ce.set(le,new Set([re]));this.fire(re,ne,ie)}_testAndFireAddAttributes(te,ne){const ie={item:te,range:hd._createOn(te)};for(const te of ie.item.getAttributeKeys())ie.attributeKey=te,ie.attributeOldValue=null,ie.attributeNewValue=ie.item.getAttribute(te),this._testAndFire(`attribute:${te}`,ie,ne)}_createConversionApi(te,ne=new Set,ie={}){const re={...this._conversionApi,consumable:new md,writer:te,options:ie,convertItem:te=>this._convertInsert(hd._createOn(te),re),convertChildren:te=>this._convertInsert(hd._createIn(te),re,{doNotAddConsumables:!0}),convertAttributes:te=>this._testAndFireAddAttributes(te,re),canReuseView:te=>!ne.has(re.mapper.toModelElement(te))};return this._firedEventsMap.set(re,new Map),re}}function fd(te,ne,ie){const re=ne.getRange(),le=Array.from(te.getAncestors());return le.shift(),le.reverse(),!le.some((te=>{if(re.containsItem(te))return!!ie.toViewElement(te).getCustomProperty("addHighlight")}))}function kd(te){return{item:te.item,range:hd._createFromPositionAndShift(te.previousPosition,te.length)}}class bd extends(M(Qc)){constructor(...te){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],te.length&&this.setTo(...te)}get anchor(){if(this._ranges.length>0){const te=this._ranges[this._ranges.length-1];return this._lastRangeBackward?te.end:te.start}return null}get focus(){if(this._ranges.length>0){const te=this._ranges[this._ranges.length-1];return this._lastRangeBackward?te.start:te.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(te){if(this.rangeCount!=te.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(te.anchor)||!this.focus.isEqual(te.focus))return!1;for(const ne of this._ranges){let ie=!1;for(const re of te._ranges)if(ne.isEqual(re)){ie=!0;break}if(!ie)return!1}return!0}*getRanges(){for(const te of this._ranges)yield new hd(te.start,te.end)}getFirstRange(){let te=null;for(const ne of this._ranges)te&&!ne.start.isBefore(te.start)||(te=ne);return te?new hd(te.start,te.end):null}getLastRange(){let te=null;for(const ne of this._ranges)te&&!ne.end.isAfter(te.end)||(te=ne);return te?new hd(te.start,te.end):null}getFirstPosition(){const te=this.getFirstRange();return te?te.start.clone():null}getLastPosition(){const te=this.getLastRange();return te?te.end.clone():null}setTo(...te){let[ne,ie,re]=te;if("object"==typeof ie&&(re=ie,ie=void 0),null===ne)this._setRanges([]);else if(ne instanceof bd)this._setRanges(ne.getRanges(),ne.isBackward);else if(ne&&"function"==typeof ne.getRanges)this._setRanges(ne.getRanges(),ne.isBackward);else if(ne instanceof hd)this._setRanges([ne],!!re&&!!re.backward);else if(ne instanceof rd)this._setRanges([new hd(ne)]);else if(ne instanceof Jc){const te=!!re&&!!re.backward;let le;if("in"==ie)le=hd._createIn(ne);else if("on"==ie)le=hd._createOn(ne);else{if(void 0===ie)throw new C("model-selection-setto-required-second-parameter",[this,ne]);le=new hd(rd._createAt(ne,ie))}this._setRanges([le],te)}else{if(!et(ne))throw new C("model-selection-setto-not-selectable",[this,ne]);this._setRanges(ne,re&&!!re.backward)}}_setRanges(te,ne=!1){const ie=Array.from(te),re=ie.some((ne=>{if(!(ne instanceof hd))throw new C("model-selection-set-ranges-not-range",[this,te]);return this._ranges.every((te=>!te.isEqual(ne)))}));(ie.length!==this._ranges.length||re)&&(this._replaceAllRanges(ie),this._lastRangeBackward=!!ne,this.fire("change:range",{directChange:!0}))}setFocus(te,ne){if(null===this.anchor)throw new C("model-selection-setfocus-no-ranges",[this,te]);const ie=rd._createAt(te,ne);if("same"==ie.compareWith(this.focus))return;const re=this.anchor;this._ranges.length&&this._popRange(),"before"==ie.compareWith(re)?(this._pushRange(new hd(ie,re)),this._lastRangeBackward=!0):(this._pushRange(new hd(re,ie)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(te){return this._attrs.get(te)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(te){return this._attrs.has(te)}removeAttribute(te){this.hasAttribute(te)&&(this._attrs.delete(te),this.fire("change:attribute",{attributeKeys:[te],directChange:!0}))}setAttribute(te,ne){this.getAttribute(te)!==ne&&(this._attrs.set(te,ne),this.fire("change:attribute",{attributeKeys:[te],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const te=new WeakSet;for(const ne of this.getRanges()){const ie=Cd(ne.start,te);vd(ie,ne)&&(yield ie);for(const ie of ne.getWalker()){const re=ie.item;"elementEnd"==ie.type&&Ad(re,te,ne)&&(yield re)}const re=Cd(ne.end,te);yd(re,ne)&&(yield re)}}containsEntireContent(te=this.anchor.root){const ne=rd._createAt(te,0),ie=rd._createAt(te,"end");return ne.isTouching(this.getFirstPosition())&&ie.isTouching(this.getLastPosition())}_pushRange(te){this._checkRange(te),this._ranges.push(new hd(te.start,te.end))}_checkRange(te){for(let ne=0;ne<this._ranges.length;ne++)if(te.isIntersecting(this._ranges[ne]))throw new C("model-selection-range-intersects",[this,te],{addedRange:te,intersectingRange:this._ranges[ne]})}_replaceAllRanges(te){this._removeAllRanges();for(const ne of te)this._pushRange(ne)}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function wd(te,ne){return!ne.has(te)&&(ne.add(te),te.root.document.model.schema.isBlock(te)&&!!te.parent)}function Ad(te,ne,ie){return wd(te,ne)&&_d(te,ie)}function Cd(te,ne){const ie=te.parent.root.document.model.schema,re=te.parent.getAncestors({parentFirst:!0,includeSelf:!0});let le=!1;const ce=re.find((te=>!le&&(le=ie.isLimit(te),!le&&wd(te,ne))));return re.forEach((te=>ne.add(te))),ce}function _d(te,ne){const ie=function(te){const ne=te.root.document.model.schema;let ie=te.parent;for(;ie;){if(ne.isBlock(ie))return ie;ie=ie.parent}}(te);return!ie||!ne.containsRange(hd._createOn(ie),!0)}function vd(te,ne){return!!te&&(!(!ne.isCollapsed&&!te.isEmpty)||!ne.start.isTouching(rd._createAt(te,te.maxOffset))&&_d(te,ne))}function yd(te,ne){return!!te&&(!(!ne.isCollapsed&&!te.isEmpty)||!ne.end.isTouching(rd._createAt(te,0))&&_d(te,ne))}bd.prototype.is=function(te){return"selection"===te||"model:selection"===te};class xd extends(M(hd)){constructor(te,ne){super(te,ne),Ed.call(this)}detach(){this.stopListening()}toRange(){return new hd(this.start,this.end)}static fromRange(te){return new xd(te.start,te.end)}}function Ed(){this.listenTo(this.root.document.model,"applyOperation",((te,ne)=>{const ie=ne[0];ie.isDocumentOperation&&Dd.call(this,ie)}),{priority:"low"})}function Dd(te){const ne=this.getTransformedByOperation(te),ie=hd._createFromRanges(ne),re=!ie.isEqual(this),le=function(te,ne){switch(ne.type){case"insert":return te.containsPosition(ne.position);case"move":case"remove":case"reinsert":case"merge":return te.containsPosition(ne.sourcePosition)||te.start.isEqual(ne.sourcePosition)||te.containsPosition(ne.targetPosition);case"split":return te.containsPosition(ne.splitPosition)||te.containsPosition(ne.insertionPosition)}return!1}(this,te);let ce=null;if(re){"$graveyard"==ie.root.rootName&&(ce="remove"==te.type?te.sourcePosition:te.deletionPosition);const ne=this.toRange();this.start=ie.start,this.end=ie.end,this.fire("change:range",ne,{deletionPosition:ce})}else le&&this.fire("change:content",this.toRange(),{deletionPosition:ce})}xd.prototype.is=function(te){return"liveRange"===te||"model:liveRange"===te||"range"==te||"model:range"===te};const Xs="selection:";class Td extends(M(Qc)){constructor(te){super(),this._selection=new Id(te),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(te){return this._selection.containsEntireContent(te)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(te){return this._selection.getAttribute(te)}hasAttribute(te){return this._selection.hasAttribute(te)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(te){this._selection.observeMarkers(te)}_setFocus(te,ne){this._selection.setFocus(te,ne)}_setTo(...te){this._selection.setTo(...te)}_setAttribute(te,ne){this._selection.setAttribute(te,ne)}_removeAttribute(te){this._selection.removeAttribute(te)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(te){this._selection.restoreGravity(te)}static _getStoreAttributeKey(te){return Xs+te}static _isStoreAttributeKey(te){return te.startsWith(Xs)}}Td.prototype.is=function(te){return"selection"===te||"model:selection"==te||"documentSelection"==te||"model:documentSelection"==te};class Id extends bd{constructor(te){super(),this.markers=new Di({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=te.model,this._document=te,this.listenTo(this._model,"applyOperation",((te,ne)=>{const ie=ne[0];ie.isDocumentOperation&&"marker"!=ie.type&&"rename"!=ie.type&&"noop"!=ie.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{this._validateSelectionRanges(this.getRanges())})),this.listenTo(this._model.markers,"update",((te,ne,ie,re)=>{this._updateMarker(ne,re)})),this.listenTo(this._document,"change",((te,ne)=>{!function(te,ne){const ie=te.document.differ;for(const re of ie.getChanges()){if("insert"!=re.type)continue;const ie=re.position.parent;re.length===ie.maxOffset&&te.enqueueChange(ne,(te=>{const ne=Array.from(ie.getAttributeKeys()).filter((te=>te.startsWith(Xs)));for(const re of ne)te.removeAttribute(re,ie)}))}}(this._model,ne)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let te=0;te<this._ranges.length;te++)this._ranges[te].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(...te){super.setTo(...te),this._updateAttributes(!0),this.updateMarkers()}setFocus(te,ne){super.setFocus(te,ne),this._updateAttributes(!0),this.updateMarkers()}setAttribute(te,ne){if(this._setAttribute(te,ne)){const ne=[te];this.fire("change:attribute",{attributeKeys:ne,directChange:!0})}}removeAttribute(te){if(this._removeAttribute(te)){const ne=[te];this.fire("change:attribute",{attributeKeys:ne,directChange:!0})}}overrideGravity(){const te=k();return this._overriddenGravityRegister.add(te),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),te}restoreGravity(te){if(!this._overriddenGravityRegister.has(te))throw new C("document-selection-gravity-wrong-restore",this,{uid:te});this._overriddenGravityRegister.delete(te),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(te){this._observedMarkers.add(te),this.updateMarkers()}_replaceAllRanges(te){this._validateSelectionRanges(te),super._replaceAllRanges(te)}_popRange(){this._ranges.pop().detach()}_pushRange(te){const ne=this._prepareRange(te);ne&&this._ranges.push(ne)}_validateSelectionRanges(te){for(const ne of te)if(!this._document._validateSelectionRange(ne))throw new C("document-selection-wrong-position",this,{range:ne})}_prepareRange(te){if(this._checkRange(te),te.root==this._document.graveyard)return;const ne=xd.fromRange(te);return ne.on("change:range",((te,ie,re)=>{if(this._hasChangedRange=!0,ne.root==this._document.graveyard){this._selectionRestorePosition=re.deletionPosition;const te=this._ranges.indexOf(ne);this._ranges.splice(te,1),ne.detach()}})),ne}updateMarkers(){if(!this._observedMarkers.size)return;const te=[];let ne=!1;for(const ne of this._model.markers){const ie=ne.name.split(":",1)[0];if(!this._observedMarkers.has(ie))continue;const re=ne.getRange();for(const ie of this.getRanges())re.containsRange(ie,!ie.isCollapsed)&&te.push(ne)}const ie=Array.from(this.markers);for(const ie of te)this.markers.has(ie)||(this.markers.add(ie),ne=!0);for(const ie of Array.from(this.markers))te.includes(ie)||(this.markers.remove(ie),ne=!0);ne&&this.fire("change:marker",{oldMarkers:ie,directChange:!1})}_updateMarker(te,ne){const ie=te.name.split(":",1)[0];if(!this._observedMarkers.has(ie))return;let re=!1;const le=Array.from(this.markers),ce=this.markers.has(te);if(ne){let ie=!1;for(const te of this.getRanges())if(ne.containsRange(te,!te.isCollapsed)){ie=!0;break}ie&&!ce?(this.markers.add(te),re=!0):!ie&&ce&&(this.markers.remove(te),re=!0)}else ce&&(this.markers.remove(te),re=!0);re&&this.fire("change:marker",{oldMarkers:le,directChange:!1})}_updateAttributes(te){const ne=Mi(this._getSurroundingAttributes()),ie=Mi(this.getAttributes());if(te)this._attributePriority=new Map,this._attrs=new Map;else for(const[te,ne]of this._attributePriority)"low"==ne&&(this._attrs.delete(te),this._attributePriority.delete(te));this._setAttributesTo(ne);const re=[];for(const[te,ne]of this.getAttributes())ie.has(te)&&ie.get(te)===ne||re.push(te);for(const[te]of ie)this.hasAttribute(te)||re.push(te);re.length>0&&this.fire("change:attribute",{attributeKeys:re,directChange:!1})}_setAttribute(te,ne,ie=!0){const re=ie?"normal":"low";return("low"!=re||"normal"!=this._attributePriority.get(te))&&super.getAttribute(te)!==ne&&(this._attrs.set(te,ne),this._attributePriority.set(te,re),!0)}_removeAttribute(te,ne=!0){const ie=ne?"normal":"low";return!("low"==ie&&"normal"==this._attributePriority.get(te)||(this._attributePriority.set(te,ie),!super.hasAttribute(te)||(this._attrs.delete(te),0)))}_setAttributesTo(te){const ne=new Set;for(const[ne,ie]of this.getAttributes())te.get(ne)!==ie&&this._removeAttribute(ne,!1);for(const[ie,re]of te)this._setAttribute(ie,re,!1)&&ne.add(ie);return ne}*getStoredAttributes(){const te=this.getFirstPosition().parent;if(this.isCollapsed&&te.isEmpty)for(const ne of te.getAttributeKeys())if(ne.startsWith(Xs)){const ie=ne.substr(10);yield[ie,te.getAttribute(ne)]}}_getSurroundingAttributes(){const te=this.getFirstPosition(),ne=this._model.schema;if("$graveyard"==te.root.rootName)return null;let ie=null;if(this.isCollapsed){const re=te.textNode?te.textNode:te.nodeBefore,le=te.textNode?te.textNode:te.nodeAfter;if(this.isGravityOverridden||(ie=Md(re,ne)),ie||(ie=Md(le,ne)),!this.isGravityOverridden&&!ie){let te=re;for(;te&&!ie;)te=te.previousSibling,ie=Md(te,ne)}if(!ie){let te=le;for(;te&&!ie;)te=te.nextSibling,ie=Md(te,ne)}ie||(ie=this.getStoredAttributes())}else{const te=this.getFirstRange();for(const re of te){if(re.item.is("element")&&ne.isObject(re.item)){ie=Md(re.item,ne);break}if("text"==re.type){ie=re.item.getAttributes();break}}}return ie}_fixGraveyardSelection(te){const ne=this._model.schema.getNearestSelectionRange(te);ne&&this._pushRange(ne)}}function Md(te,ne){if(!te)return null;if(te instanceof ed||te instanceof td)return te.getAttributes();if(!ne.isInline(te))return null;if(!ne.isObject(te))return[];const ie=[];for(const[re,le]of te.getAttributes())ne.checkAttribute("$text",re)&&!1!==ne.getAttributeProperties(re).copyFromObject&&ie.push([re,le]);return ie}class Bd{constructor(te){this._dispatchers=te}add(te){for(const ne of this._dispatchers)te(ne);return this}}class Nd extends Bd{elementToElement(te){return this.add(function(te){const ne=Ld(te.model),ie=Od(te.view,"container");return ne.attributes.length&&(ne.children=!0),re=>{re.on(`insert:${ne.name}`,function(te,ne=Gd){return(ie,re,le)=>{if(!ne(re.item,le.consumable,{preflight:!0}))return;const ce=te(re.item,le,re);if(!ce)return;ne(re.item,le.consumable);const de=le.mapper.toViewPosition(re.range.start);le.mapper.bindElements(re.item,ce),le.writer.insert(de,ce),le.convertAttributes(re.item),Ud(ce,re.item.getChildren(),le,{reconversion:re.reconversion})}}(ie,Hd(ne)),{priority:te.converterPriority||"normal"}),(ne.children||ne.attributes.length)&&re.on("reduceChanges",jd(ne),{priority:"low"})}}(te))}elementToStructure(te){return this.add(function(te){const ne=Ld(te.model),ie=Od(te.view,"container");return ne.children=!0,re=>{if(re._conversionApi.schema.checkChild(ne.name,"$text"))throw new C("conversion-element-to-structure-disallowed-text",re,{elementName:ne.name});var le,ce;re.on(`insert:${ne.name}`,(le=ie,ce=Hd(ne),(te,ne,ie)=>{if(!ce(ne.item,ie.consumable,{preflight:!0}))return;const re=new Map;ie.writer._registerSlotFactory(function(te,ne,ie){return(re,le)=>{const ce=re.createContainerElement("$slot");let de=null;if("children"===le)de=Array.from(te.getChildren());else{if("function"!=typeof le)throw new C("conversion-slot-mode-unknown",ie.dispatcher,{modeOrFilter:le});de=Array.from(te.getChildren()).filter((te=>le(te)))}return ne.set(ce,de),ce}}(ne.item,re,ie));const de=le(ne.item,ie,ne);if(ie.writer._clearSlotFactory(),!de)return;!function(te,ne,ie){const re=Array.from(ne.values()).flat(),le=new Set(re);if(le.size!=re.length)throw new C("conversion-slot-filter-overlap",ie.dispatcher,{element:te});if(le.size!=te.childCount)throw new C("conversion-slot-filter-incomplete",ie.dispatcher,{element:te})}(ne.item,re,ie),ce(ne.item,ie.consumable);const ue=ie.mapper.toViewPosition(ne.range.start);ie.mapper.bindElements(ne.item,de),ie.writer.insert(ue,de),ie.convertAttributes(ne.item),function(te,ne,ie,re){ie.mapper.on("modelToViewPosition",s,{priority:"highest"});let le=null,ce=null;for([le,ce]of ne)Ud(te,ce,ie,re),ie.writer.move(ie.writer.createRangeIn(le),ie.writer.createPositionBefore(le)),ie.writer.remove(le);function s(te,ne){const ie=ne.modelPosition.nodeAfter,re=ce.indexOf(ie);re<0||(ne.viewPosition=ne.mapper.findPositionIn(le,re))}ie.mapper.off("modelToViewPosition",s)}(de,re,ie,{reconversion:ne.reconversion})}),{priority:te.converterPriority||"normal"}),re.on("reduceChanges",jd(ne),{priority:"low"})}}(te))}attributeToElement(te){return this.add(function(te){let ne=(te=Kc(te)).model;"string"==typeof ne&&(ne={key:ne});let ie=`attribute:${ne.key}`;if(ne.name&&(ie+=":"+ne.name),ne.values)for(const ie of ne.values)te.view[ie]=Od(te.view[ie],"attribute");else te.view=Od(te.view,"attribute");const re=Rd(te);return ne=>{ne.on(ie,function(te){return(ne,ie,re)=>{if(!re.consumable.test(ie.item,ne.name))return;const le=te(ie.attributeOldValue,re,ie),ce=te(ie.attributeNewValue,re,ie);if(!le&&!ce)return;re.consumable.consume(ie.item,ne.name);const de=re.writer,ue=de.document.selection;if(ie.item instanceof bd||ie.item instanceof Td)de.wrap(ue.getFirstRange(),ce);else{let te=re.mapper.toViewRange(ie.range);null!==ie.attributeOldValue&&le&&(te=de.unwrap(te,le)),null!==ie.attributeNewValue&&ce&&de.wrap(te,ce)}}}(re),{priority:te.converterPriority||"normal"})}}(te))}attributeToAttribute(te){return this.add(function(te){let ne=(te=Kc(te)).model;"string"==typeof ne&&(ne={key:ne});let ie=`attribute:${ne.key}`;if(ne.name&&(ie+=":"+ne.name),ne.values)for(const ie of ne.values)te.view[ie]=Vd(te.view[ie]);else te.view=Vd(te.view);const re=Rd(te);return ne=>{var le;ne.on(ie,(le=re,(te,ne,ie)=>{if(!ie.consumable.test(ne.item,te.name))return;const re=le(ne.attributeOldValue,ie,ne),ce=le(ne.attributeNewValue,ie,ne);if(!re&&!ce)return;ie.consumable.consume(ne.item,te.name);const de=ie.mapper.toViewElement(ne.item),ue=ie.writer;if(!de)throw new C("conversion-attribute-to-attribute-on-text",ie.dispatcher,ne);if(null!==ne.attributeOldValue&&re)if("class"==re.key){const te=_i(re.value);for(const ne of te)ue.removeClass(ne,de)}else if("style"==re.key){const te=Object.keys(re.value);for(const ne of te)ue.removeStyle(ne,de)}else ue.removeAttribute(re.key,de);if(null!==ne.attributeNewValue&&ce)if("class"==ce.key){const te=_i(ce.value);for(const ne of te)ue.addClass(ne,de)}else if("style"==ce.key){const te=Object.keys(ce.value);for(const ne of te)ue.setStyle(ne,ce.value[ne],de)}else ue.setAttribute(ce.key,ce.value,de)}),{priority:te.converterPriority||"normal"})}}(te))}markerToElement(te){return this.add(function(te){const ne=Od(te.view,"ui");return ie=>{var re;ie.on(`addMarker:${te.model}`,(re=ne,(te,ne,ie)=>{ne.isOpening=!0;const le=re(ne,ie);ne.isOpening=!1;const ce=re(ne,ie);if(!le||!ce)return;const de=ne.markerRange;if(de.isCollapsed&&!ie.consumable.consume(de,te.name))return;for(const ne of de)if(!ie.consumable.consume(ne.item,te.name))return;const ue=ie.mapper,me=ie.writer;me.insert(ue.toViewPosition(de.start),le),ie.mapper.bindElementToMarker(le,ne.markerName),de.isCollapsed||(me.insert(ue.toViewPosition(de.end),ce),ie.mapper.bindElementToMarker(ce,ne.markerName)),te.stop()}),{priority:te.converterPriority||"normal"}),ie.on(`removeMarker:${te.model}`,((te,ne,ie)=>{const re=ie.mapper.markerNameToElements(ne.markerName);if(re){for(const te of re)ie.mapper.unbindElementFromMarkerName(te,ne.markerName),ie.writer.clear(ie.writer.createRangeOn(te),te);ie.writer.clearClonedElementsGroup(ne.markerName),te.stop()}}),{priority:te.converterPriority||"normal"})}}(te))}markerToHighlight(te){return this.add(function(te){return ne=>{var ie;ne.on(`addMarker:${te.model}`,(ie=te.view,(te,ne,re)=>{if(!ne.item)return;if(!(ne.item instanceof bd||ne.item instanceof Td||ne.item.is("$textProxy")))return;const le=Fd(ie,ne,re);if(!le)return;if(!re.consumable.consume(ne.item,te.name))return;const ce=re.writer,de=zd(ce,le),ue=ce.document.selection;if(ne.item instanceof bd||ne.item instanceof Td)ce.wrap(ue.getFirstRange(),de);else{const te=re.mapper.toViewRange(ne.range),ie=ce.wrap(te,de);for(const te of ie.getItems())if(te.is("attributeElement")&&te.isSimilar(de)){re.mapper.bindElementToMarker(te,ne.markerName);break}}}),{priority:te.converterPriority||"normal"}),ne.on(`addMarker:${te.model}`,function(te){return(ne,ie,re)=>{if(!ie.item)return;if(!(ie.item instanceof nd))return;const le=Fd(te,ie,re);if(!le)return;if(!re.consumable.test(ie.item,ne.name))return;const ce=re.mapper.toViewElement(ie.item);if(ce&&ce.getCustomProperty("addHighlight")){re.consumable.consume(ie.item,ne.name);for(const te of hd._createIn(ie.item))re.consumable.consume(te.item,ne.name);ce.getCustomProperty("addHighlight")(ce,le,re.writer),re.mapper.bindElementToMarker(ce,ie.markerName)}}}(te.view),{priority:te.converterPriority||"normal"}),ne.on(`removeMarker:${te.model}`,function(te){return(ne,ie,re)=>{if(ie.markerRange.isCollapsed)return;const le=Fd(te,ie,re);if(!le)return;const ce=zd(re.writer,le),de=re.mapper.markerNameToElements(ie.markerName);if(de){for(const te of de)re.mapper.unbindElementFromMarkerName(te,ie.markerName),te.is("attributeElement")?re.writer.unwrap(re.writer.createRangeOn(te),ce):te.getCustomProperty("removeHighlight")(te,le.id,re.writer);re.writer.clearClonedElementsGroup(ie.markerName),ne.stop()}}}(te.view),{priority:te.converterPriority||"normal"})}}(te))}markerToData(te){return this.add(function(te){const ne=(te=Kc(te)).model;let ie=te.view;return ie||(ie=ie=>({group:ne,name:ie.substr(te.model.length+1)})),re=>{var le;re.on(`addMarker:${ne}`,(le=ie,(te,ne,ie)=>{const re=le(ne.markerName,ie);if(!re)return;const ce=ne.markerRange;ie.consumable.consume(ce,te.name)&&(Pd(ce,!1,ie,ne,re),Pd(ce,!0,ie,ne,re),te.stop())}),{priority:te.converterPriority||"normal"}),re.on(`removeMarker:${ne}`,function(te){return(ne,ie,re)=>{const le=te(ie.markerName,re);if(!le)return;const ce=re.mapper.markerNameToElements(ie.markerName);if(ce){for(const te of ce)re.mapper.unbindElementFromMarkerName(te,ie.markerName),te.is("containerElement")?(s(`data-${le.group}-start-before`,te),s(`data-${le.group}-start-after`,te),s(`data-${le.group}-end-before`,te),s(`data-${le.group}-end-after`,te)):re.writer.clear(re.writer.createRangeOn(te),te);re.writer.clearClonedElementsGroup(ie.markerName),ne.stop()}function s(te,ne){if(ne.hasAttribute(te)){const ie=new Set(ne.getAttribute(te).split(","));ie.delete(le.name),0==ie.size?re.writer.removeAttribute(te,ne):re.writer.setAttribute(te,Array.from(ie).join(","),ne)}}}}(ie),{priority:te.converterPriority||"normal"})}}(te))}}function zd(te,ne){const ie=te.createAttributeElement("span",ne.attributes);return ne.classes&&ie._addClass(ne.classes),"number"==typeof ne.priority&&(ie._priority=ne.priority),ie._id=ne.id,ie}function Pd(te,ne,ie,re,le){const ce=ne?te.start:te.end,de=ce.nodeAfter&&ce.nodeAfter.is("element")?ce.nodeAfter:null,ue=ce.nodeBefore&&ce.nodeBefore.is("element")?ce.nodeBefore:null;if(de||ue){let te,ce;ne&&de||!ne&&!ue?(te=de,ce=!0):(te=ue,ce=!1);const me=ie.mapper.toViewElement(te);if(me)return void function(te,ne,ie,re,le,ce){const de=`data-${ce.group}-${ne?"start":"end"}-${ie?"before":"after"}`,ue=te.hasAttribute(de)?te.getAttribute(de).split(","):[];ue.unshift(ce.name),re.writer.setAttribute(de,ue.join(","),te),re.mapper.bindElementToMarker(te,le.markerName)}(me,ne,ce,ie,re,le)}!function(te,ne,ie,re,le){const ce=`${le.group}-${ne?"start":"end"}`,de=le.name?{name:le.name}:null,ue=ie.writer.createUIElement(ce,de);ie.writer.insert(te,ue),ie.mapper.bindElementToMarker(ue,re.markerName)}(ie.mapper.toViewPosition(ce),ne,ie,re,le)}function Ld(te){return"string"==typeof te&&(te={name:te}),{name:te.name,attributes:te.attributes?_i(te.attributes):[],children:!!te.children}}function Od(te,ne){return"function"==typeof te?te:(ie,re)=>function(te,ne,ie){let re;"string"==typeof te&&(te={name:te});const le=ne.writer,ce=Object.assign({},te.attributes);if("container"==ie)re=le.createContainerElement(te.name,ce);else if("attribute"==ie){const ne={priority:te.priority||Pa.DEFAULT_PRIORITY};re=le.createAttributeElement(te.name,ce,ne)}else re=le.createUIElement(te.name,ce);if(te.styles){const ne=Object.keys(te.styles);for(const ie of ne)le.setStyle(ie,te.styles[ie],re)}if(te.classes){const ne=te.classes;if("string"==typeof ne)le.addClass(ne,re);else for(const te of ne)le.addClass(te,re)}return re}(te,re,ne)}function Rd(te){return te.model.values?(ne,ie,re)=>{const le=te.view[ne];return le?le(ne,ie,re):null}:te.view}function Vd(te){return"string"==typeof te?ne=>({key:te,value:ne}):"object"==typeof te?te.value?()=>te:ne=>({key:te.key,value:ne}):te}function Fd(te,ne,ie){const re="function"==typeof te?te(ne,ie):te;return re?(re.priority||(re.priority=10),re.id||(re.id=ne.markerName),re):null}function jd(te){const ne=function(te){return(ne,ie)=>{if(!ne.is("element",te.name))return!1;if("attribute"==ie.type){if(te.attributes.includes(ie.attributeKey))return!0}else if(te.children)return!0;return!1}}(te);return(te,ie)=>{const re=[];ie.reconvertedElements||(ie.reconvertedElements=new Set);for(const te of ie.changes){const le="attribute"==te.type?te.range.start.nodeAfter:te.position.parent;if(le&&ne(le,te)){if(!ie.reconvertedElements.has(le)){ie.reconvertedElements.add(le);const te=rd._createBefore(le);let ne=re.length;for(let ie=re.length-1;ie>=0;ie--){const le=re[ie],ce=("attribute"==le.type?le.range.start:le.position).compareWith(te);if("before"==ce||"remove"==le.type&&"same"==ce)break;ne=ie}re.splice(ne,0,{type:"remove",name:le.name,position:te,length:1},{type:"reinsert",name:le.name,position:te,length:1})}}else re.push(te)}ie.changes=re}}function Hd(te){return(ne,ie,re={})=>{const le=["insert"];for(const ie of te.attributes)ne.hasAttribute(ie)&&le.push(`attribute:${ie}`);return!!le.every((te=>ie.test(ne,te)))&&(re.preflight||le.forEach((te=>ie.consume(ne,te))),!0)}}function Ud(te,ne,ie,re){for(const le of ne)Wd(te.root,le,ie,re)||ie.convertItem(le)}function Wd(te,ne,ie,re){const{writer:le,mapper:ce}=ie;if(!re.reconversion)return!1;const de=ce.toViewElement(ne);return!(!de||de.root==te||!ie.canReuseView(de)||(le.move(le.createRangeOn(de),ce.toViewPosition(rd._createBefore(ne))),0))}function Gd(te,ne,{preflight:ie}={}){return ie?ne.test(te,"insert"):ne.consume(te,"insert")}function qd(te){const{schema:ne,document:ie}=te.model;for(const re of ie.getRoots())if(re.isEmpty&&!ne.checkChild(re,"$text")&&ne.checkChild(re,"paragraph"))return te.insertElement("paragraph",re),!0;return!1}function Zd(te,ne,ie){const re=ie.createContext(te);return!!ie.checkChild(re,"paragraph")&&!!ie.checkChild(re.push("paragraph"),ne)}function $d(te,ne){const ie=ne.createElement("paragraph");return ne.insert(ie,te),ne.createPositionAt(ie,0)}class Kd extends Bd{elementToElement(te){return this.add(Yd(te))}elementToAttribute(te){return this.add(function(te){Xd(te=Kc(te));const ne=th(te,!1),ie=Qd(te.view),re=ie?`element:${ie}`:"element";return ie=>{ie.on(re,ne,{priority:te.converterPriority||"low"})}}(te))}attributeToAttribute(te){return this.add(function(te){let ne=null;("string"==typeof(te=Kc(te)).view||te.view.key)&&(ne=function(te){"string"==typeof te.view&&(te.view={key:te.view});const ne=te.view.key;let ie;return ie="class"==ne||"style"==ne?{["class"==ne?"classes":"styles"]:te.view.value}:{attributes:{[ne]:void 0===te.view.value?/[\s\S]*/:te.view.value}},te.view.name&&(ie.name=te.view.name),te.view=ie,ne}(te)),Xd(te,ne);const ie=th(te,!0);return ne=>{ne.on("element",ie,{priority:te.converterPriority||"low"})}}(te))}elementToMarker(te){return this.add(function(te){const ne=function(te){return(ne,ie)=>{const re="string"==typeof te?te:te(ne,ie);return ie.writer.createElement("$marker",{"data-name":re})}}(te.model);return Yd({...te,model:ne})}(te))}dataToMarker(te){return this.add(function(te){(te=Kc(te)).model||(te.model=ne=>ne?te.view+":"+ne:te.view);const ne={view:te.view,model:te.model},ie=Jd(eh(ne,"start")),re=Jd(eh(ne,"end"));return le=>{le.on(`element:${te.view}-start`,ie,{priority:te.converterPriority||"normal"}),le.on(`element:${te.view}-end`,re,{priority:te.converterPriority||"normal"});const ce=ue.low,de=ue.highest,me=ue.get(te.converterPriority)/de;le.on("element",function(te){return(ne,ie,re)=>{const le=`data-${te.view}`;function r(ne,le){for(const ce of le){const le=te.model(ce,re),de=re.writer.createElement("$marker",{"data-name":le});re.writer.insert(de,ne),ie.modelCursor.isEqual(ne)?ie.modelCursor=ie.modelCursor.getShiftedBy(1):ie.modelCursor=ie.modelCursor._getTransformedByInsertion(ne,1),ie.modelRange=ie.modelRange._getTransformedByInsertion(ne,1)[0]}}(re.consumable.test(ie.viewItem,{attributes:le+"-end-after"})||re.consumable.test(ie.viewItem,{attributes:le+"-start-after"})||re.consumable.test(ie.viewItem,{attributes:le+"-end-before"})||re.consumable.test(ie.viewItem,{attributes:le+"-start-before"}))&&(ie.modelRange||Object.assign(ie,re.convertChildren(ie.viewItem,ie.modelCursor)),re.consumable.consume(ie.viewItem,{attributes:le+"-end-after"})&&r(ie.modelRange.end,ie.viewItem.getAttribute(le+"-end-after").split(",")),re.consumable.consume(ie.viewItem,{attributes:le+"-start-after"})&&r(ie.modelRange.end,ie.viewItem.getAttribute(le+"-start-after").split(",")),re.consumable.consume(ie.viewItem,{attributes:le+"-end-before"})&&r(ie.modelRange.start,ie.viewItem.getAttribute(le+"-end-before").split(",")),re.consumable.consume(ie.viewItem,{attributes:le+"-start-before"})&&r(ie.modelRange.start,ie.viewItem.getAttribute(le+"-start-before").split(",")))}}(ne),{priority:ce+me})}}(te))}}function Yd(te){const ne=Jd(te=Kc(te)),ie=Qd(te.view),re=ie?`element:${ie}`:"element";return ie=>{ie.on(re,ne,{priority:te.converterPriority||"normal"})}}function Qd(te){return"string"==typeof te?te:"object"==typeof te&&"string"==typeof te.name?te.name:null}function Jd(te){const ne=new Ys(te.view);return(ie,re,le)=>{const ce=ne.match(re.viewItem);if(!ce)return;const de=ce.match;if(de.name=!0,!le.consumable.test(re.viewItem,de))return;const ue=function(te,ne,ie){return te instanceof Function?te(ne,ie):ie.writer.createElement(te)}(te.model,re.viewItem,le);ue&&le.safeInsert(ue,re.modelCursor)&&(le.consumable.consume(re.viewItem,de),le.convertChildren(re.viewItem,ue),le.updateConversionResult(ue,re))}}function Xd(te,ne=null){const ie=null===ne||(te=>te.getAttribute(ne)),re="object"!=typeof te.model?te.model:te.model.key,le="object"!=typeof te.model||void 0===te.model.value?ie:te.model.value;te.model={key:re,value:le}}function th(te,ne){const ie=new Ys(te.view);return(re,le,ce)=>{if(!le.modelRange&&ne)return;const de=ie.match(le.viewItem);if(!de)return;if(function(te,ne){const ie="function"==typeof te?te(ne):te;return!("object"==typeof ie&&!Qd(ie)||ie.classes||ie.attributes||ie.styles)}(te.view,le.viewItem)?de.match.name=!0:delete de.match.name,!ce.consumable.test(le.viewItem,de.match))return;const ue=te.model.key,me="function"==typeof te.model.value?te.model.value(le.viewItem,ce):te.model.value;if(null===me)return;le.modelRange||Object.assign(le,ce.convertChildren(le.viewItem,le.modelCursor));const ge=function(te,ne,ie,re){let le=!1;for(const ce of Array.from(te.getItems({shallow:ie})))re.schema.checkAttribute(ce,ne.key)&&(le=!0,ce.hasAttribute(ne.key)||re.writer.setAttribute(ne.key,ne.value,ce));return le}(le.modelRange,{key:ue,value:me},ne,ce);ge&&(ce.consumable.test(le.viewItem,{name:!0})&&(de.match.name=!0),ce.consumable.consume(le.viewItem,de.match))}}function eh(te,ne){return{view:`${te.view}-${ne}`,model:(ne,ie)=>{const re=ne.getAttribute("name"),le=te.model(re,ie);return ie.writer.createElement("$marker",{"data-name":le})}}}function oh(te,ne){return te.isCollapsed?function(te,ne){const ie=te.start,re=ne.getNearestSelectionRange(ie);if(!re){const te=ie.getAncestors().reverse().find((te=>ne.isObject(te)));return te?hd._createOn(te):null}if(!re.isCollapsed)return re;const le=re.start;return ie.isEqual(le)?null:new hd(le)}(te,ne):function(te,ne){const{start:ie,end:re}=te,le=ne.checkChild(ie,"$text"),ce=ne.checkChild(re,"$text"),de=ne.getLimitElement(ie),ue=ne.getLimitElement(re);if(de===ue){if(le&&ce)return null;if(function(te,ne,ie){const re=te.nodeAfter&&!ie.isLimit(te.nodeAfter)||ie.checkChild(te,"$text"),le=ne.nodeBefore&&!ie.isLimit(ne.nodeBefore)||ie.checkChild(ne,"$text");return re||le}(ie,re,ne)){const te=ie.nodeAfter&&ne.isSelectable(ie.nodeAfter)?null:ne.getNearestSelectionRange(ie,"forward"),le=re.nodeBefore&&ne.isSelectable(re.nodeBefore)?null:ne.getNearestSelectionRange(re,"backward"),ce=te?te.start:ie,de=le?le.end:re;return new hd(ce,de)}}const me=de&&!de.is("rootElement"),ge=ue&&!ue.is("rootElement");if(me||ge){const te=ie.nodeAfter&&re.nodeBefore&&ie.nodeAfter.parent===re.nodeBefore.parent,le=me&&(!te||!rh(ie.nodeAfter,ne)),ce=ge&&(!te||!rh(re.nodeBefore,ne));let fe=ie,_e=re;return le&&(fe=rd._createBefore(ih(de,ne))),ce&&(_e=rd._createAfter(ih(ue,ne))),new hd(fe,_e)}return null}(te,ne)}function ih(te,ne){let ie=te,re=ie;for(;ne.isLimit(re)&&re.parent;)ie=re,re=re.parent;return ie}function rh(te,ne){return te&&ne.isSelectable(te)}class sh extends(q()){constructor(te,ne){super(),this.model=te,this.view=new Yc(ne),this.mapper=new ud,this.downcastDispatcher=new pd({mapper:this.mapper,schema:te.schema});const ie=this.model.document,re=ie.selection,ce=this.model.markers;var de,ue,me;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(ie,"change",(()=>{this.view.change((te=>{this.downcastDispatcher.convertChanges(ie.differ,ce,te),this.downcastDispatcher.convertSelection(re,ce,te)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(te,ne){return(ie,re)=>{const le=re.newSelection,ce=[];for(const te of le.getRanges())ce.push(ne.toModelRange(te));const de=te.createSelection(ce,{backward:le.isBackward});de.isEqual(te.document.selection)||te.change((te=>{te.setSelection(de)}))}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(de=this.mapper,ue=this.model.schema,me=this.view,(te,ne)=>{if(!me.document.isComposing||le.isAndroid)for(let te=0;te<ne.targetRanges.length;te++){const ie=ne.targetRanges[te],re=de.toModelRange(ie),le=oh(re,ue);le&&!le.isEqual(re)&&(ne.targetRanges[te]=de.toViewRange(le))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",((te,ne,ie)=>{if(!ie.consumable.consume(ne.item,te.name))return;const re=ie.writer,le=ie.mapper.toViewPosition(ne.range.start),ce=re.createText(ne.item.data);re.insert(le,ce)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((te,ne,ie)=>{ie.convertAttributes(ne.item),ne.reconversion||!ne.item.is("element")||ne.item.isEmpty||ie.convertChildren(ne.item)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((te,ne,ie)=>{const re=ie.mapper.toViewPosition(ne.position),le=ne.position.getShiftedBy(ne.length),ce=ie.mapper.toViewPosition(le,{isPhantom:!0}),de=ie.writer.createRange(re,ce),ue=ie.writer.remove(de.getTrimmed());for(const te of ie.writer.createRangeIn(ue).getItems())ie.mapper.unbindViewElement(te,{defer:!0})}),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",((te,ne,ie)=>{const re=ie.writer,le=re.document.selection;for(const te of le.getRanges())te.isCollapsed&&te.end.parent.isAttached()&&ie.writer.mergeAttributes(te.start);re.setSelection(null)})),this.downcastDispatcher.on("selection",((te,ne,ie)=>{const re=ne.selection;if(re.isCollapsed)return;if(!ie.consumable.consume(re,"selection"))return;const le=[];for(const te of re.getRanges())le.push(ie.mapper.toViewRange(te));ie.writer.setSelection(le,{backward:re.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((te,ne,ie)=>{const re=ne.selection;if(!re.isCollapsed)return;if(!ie.consumable.consume(re,"selection"))return;const le=ie.writer,ce=re.getFirstPosition(),de=ie.mapper.toViewPosition(ce),ue=le.breakAttributes(de);le.setSelection(ue)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((te=>{if("$graveyard"==te.rootName)return null;const ne=new el(this.view.document,te.name);return ne.rootName=te.rootName,this.mapper.bindElements(te,ne),ne}))}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(te){const ne="string"==typeof te?te:te.name,ie=this.model.markers.get(ne);if(!ie)throw new C("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:ne});this.model.change((()=>{this.model.markers._refresh(ie)}))}reconvertItem(te){this.model.change((()=>{this.model.document.differ._refreshItem(te)}))}}class ah{constructor(){this._consumables=new Map}add(te,ne){let ie;te.is("$text")||te.is("documentFragment")?this._consumables.set(te,!0):(this._consumables.has(te)?ie=this._consumables.get(te):(ie=new ch(te),this._consumables.set(te,ie)),ie.add(ne))}test(te,ne){const ie=this._consumables.get(te);return void 0===ie?null:te.is("$text")||te.is("documentFragment")?ie:ie.test(ne)}consume(te,ne){return!!this.test(te,ne)&&(te.is("$text")||te.is("documentFragment")?this._consumables.set(te,!1):this._consumables.get(te).consume(ne),!0)}revert(te,ne){const ie=this._consumables.get(te);void 0!==ie&&(te.is("$text")||te.is("documentFragment")?this._consumables.set(te,!0):ie.revert(ne))}static consumablesFromElement(te){const ne={element:te,name:!0,attributes:[],classes:[],styles:[]},ie=te.getAttributeKeys();for(const te of ie)"style"!=te&&"class"!=te&&ne.attributes.push(te);const re=te.getClassNames();for(const te of re)ne.classes.push(te);const le=te.getStyleNames();for(const te of le)ne.styles.push(te);return ne}static createFrom(te,ne){if(ne||(ne=new ah),te.is("$text"))return ne.add(te),ne;te.is("element")&&ne.add(te,ah.consumablesFromElement(te)),te.is("documentFragment")&&ne.add(te);for(const ie of te.getChildren())ne=ah.createFrom(ie,ne);return ne}}const tl=["attributes","classes","styles"];class ch{constructor(te){this.element=te,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(te){te.name&&(this._canConsumeName=!0);for(const ne of tl)ne in te&&this._add(ne,te[ne])}test(te){if(te.name&&!this._canConsumeName)return this._canConsumeName;for(const ne of tl)if(ne in te){const ie=this._test(ne,te[ne]);if(!0!==ie)return ie}return!0}consume(te){te.name&&(this._canConsumeName=!1);for(const ne of tl)ne in te&&this._consume(ne,te[ne])}revert(te){te.name&&(this._canConsumeName=!0);for(const ne of tl)ne in te&&this._revert(ne,te[ne])}_add(te,ne){const ie=ze(ne)?ne:[ne],re=this._consumables[te];for(const ne of ie){if("attributes"===te&&("class"===ne||"style"===ne))throw new C("viewconsumable-invalid-attribute",this);if(re.set(ne,!0),"styles"===te)for(const te of this.element.document.stylesProcessor.getRelatedStyles(ne))re.set(te,!0)}}_test(te,ne){const ie=ze(ne)?ne:[ne],re=this._consumables[te];for(const ne of ie)if("attributes"!==te||"class"!==ne&&"style"!==ne){const te=re.get(ne);if(void 0===te)return null;if(!te)return!1}else{const te="class"==ne?"classes":"styles",ie=this._test(te,[...this._consumables[te].keys()]);if(!0!==ie)return ie}return!0}_consume(te,ne){const ie=ze(ne)?ne:[ne],re=this._consumables[te];for(const ne of ie)if("attributes"!==te||"class"!==ne&&"style"!==ne){if(re.set(ne,!1),"styles"==te)for(const te of this.element.document.stylesProcessor.getRelatedStyles(ne))re.set(te,!1)}else{const te="class"==ne?"classes":"styles";this._consume(te,[...this._consumables[te].keys()])}}_revert(te,ne){const ie=ze(ne)?ne:[ne],re=this._consumables[te];for(const ne of ie)if("attributes"!==te||"class"!==ne&&"style"!==ne)!1===re.get(ne)&&re.set(ne,!0);else{const te="class"==ne?"classes":"styles";this._revert(te,[...this._consumables[te].keys()])}}}class dh extends(q()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((te,ne)=>{ne[0]=new hh(ne[0])}),{priority:"highest"}),this.on("checkChild",((te,ne)=>{ne[0]=new hh(ne[0]),ne[1]=this.getDefinition(ne[1])}),{priority:"highest"})}register(te,ne){if(this._sourceDefinitions[te])throw new C("schema-cannot-register-item-twice",this,{itemName:te});this._sourceDefinitions[te]=[Object.assign({},ne)],this._clearCache()}extend(te,ne){if(!this._sourceDefinitions[te])throw new C("schema-cannot-extend-missing-item",this,{itemName:te});this._sourceDefinitions[te].push(Object.assign({},ne)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(te){let ne;return ne="string"==typeof te?te:"is"in te&&(te.is("$text")||te.is("$textProxy"))?"$text":te.name,this.getDefinitions()[ne]}isRegistered(te){return!!this.getDefinition(te)}isBlock(te){const ne=this.getDefinition(te);return!(!ne||!ne.isBlock)}isLimit(te){const ne=this.getDefinition(te);return!(!ne||!ne.isLimit&&!ne.isObject)}isObject(te){const ne=this.getDefinition(te);return!!ne&&!!(ne.isObject||ne.isLimit&&ne.isSelectable&&ne.isContent)}isInline(te){const ne=this.getDefinition(te);return!(!ne||!ne.isInline)}isSelectable(te){const ne=this.getDefinition(te);return!(!ne||!ne.isSelectable&&!ne.isObject)}isContent(te){const ne=this.getDefinition(te);return!(!ne||!ne.isContent&&!ne.isObject)}checkChild(te,ne){return!!ne&&this._checkContextMatch(ne,te)}checkAttribute(te,ne){const ie=this.getDefinition(te.last);return!!ie&&ie.allowAttributes.includes(ne)}checkMerge(te,ne){if(te instanceof rd){const ne=te.nodeBefore,ie=te.nodeAfter;if(!(ne instanceof nd))throw new C("schema-check-merge-no-element-before",this);if(!(ie instanceof nd))throw new C("schema-check-merge-no-element-after",this);return this.checkMerge(ne,ie)}for(const ie of ne.getChildren())if(!this.checkChild(te,ie))return!1;return!0}addChildCheck(te){this.on("checkChild",((ne,[ie,re])=>{if(!re)return;const le=te(ie,re);"boolean"==typeof le&&(ne.stop(),ne.return=le)}),{priority:"high"})}addAttributeCheck(te){this.on("checkAttribute",((ne,[ie,re])=>{const le=te(ie,re);"boolean"==typeof le&&(ne.stop(),ne.return=le)}),{priority:"high"})}setAttributeProperties(te,ne){this._attributeProperties[te]=Object.assign(this.getAttributeProperties(te),ne)}getAttributeProperties(te){return this._attributeProperties[te]||{}}getLimitElement(te){let ne;for(ne=te instanceof rd?te.parent:(te instanceof hd?[te]:Array.from(te.getRanges())).reduce(((te,ne)=>{const ie=ne.getCommonAncestor();return te?te.getCommonAncestor(ie,{includeSelf:!0}):ie}),null);!this.isLimit(ne)&&ne.parent;)ne=ne.parent;return ne}checkAttributeInSelection(te,ne){if(te.isCollapsed){const ie=[...te.getFirstPosition().getAncestors(),new td("",te.getAttributes())];return this.checkAttribute(ie,ne)}{const ie=te.getRanges();for(const te of ie)for(const ie of te)if(this.checkAttribute(ie.item,ne))return!0}return!1}*getValidRanges(te,ne){te=function*(te){for(const ne of te)yield*ne.getMinimalFlatRanges()}(te);for(const ie of te)yield*this._getValidRangesForRange(ie,ne)}getNearestSelectionRange(te,ne="both"){if("$graveyard"==te.root.rootName)return null;if(this.checkChild(te,"$text"))return new hd(te);let ie,re;const le=te.getAncestors().reverse().find((te=>this.isLimit(te)))||te.root;"both"!=ne&&"backward"!=ne||(ie=new od({boundaries:hd._createIn(le),startPosition:te,direction:"backward"})),"both"!=ne&&"forward"!=ne||(re=new od({boundaries:hd._createIn(le),startPosition:te}));for(const te of function*(te,ne){let ie=!1;for(;!ie;){if(ie=!0,te){const ne=te.next();ne.done||(ie=!1,yield{walker:te,value:ne.value})}if(ne){const te=ne.next();te.done||(ie=!1,yield{walker:ne,value:te.value})}}}(ie,re)){const ne=te.walker==ie?"elementEnd":"elementStart",re=te.value;if(re.type==ne&&this.isObject(re.item))return hd._createOn(re.item);if(this.checkChild(re.nextPosition,"$text"))return new hd(re.nextPosition)}return null}findAllowedParent(te,ne){let ie=te.parent;for(;ie;){if(this.checkChild(ie,ne))return ie;if(this.isLimit(ie))return null;ie=ie.parent}return null}setAllowedAttributes(te,ne,ie){const re=ie.model;for(const[le,ce]of Object.entries(ne))re.schema.checkAttribute(te,le)&&ie.setAttribute(le,ce,te)}removeDisallowedAttributes(te,ne){for(const ie of te)if(ie.is("$text"))yh(this,ie,ne);else{const te=hd._createIn(ie).getPositions();for(const ie of te)yh(this,ie.nodeBefore||ie.parent,ne)}}getAttributesWithProperty(te,ne,ie){const re={};for(const[le,ce]of te.getAttributes()){const te=this.getAttributeProperties(le);void 0!==te[ne]&&(void 0!==ie&&ie!==te[ne]||(re[le]=ce))}return re}createContext(te){return new hh(te)}_clearCache(){this._compiledDefinitions=null}_compile(){const te={},ne=this._sourceDefinitions,ie=Object.keys(ne);for(const re of ie)te[re]=uh(ne[re],re);for(const ne of ie)mh(te,ne);for(const ne of ie)gh(te,ne);for(const ne of ie)ph(te,ne);for(const ne of ie)fh(te,ne),kh(te,ne);for(const ne of ie)bh(te,ne),wh(te,ne),Ah(te,ne);this._compiledDefinitions=te}_checkContextMatch(te,ne,ie=ne.length-1){const re=ne.getItem(ie);if(te.allowIn.includes(re.name)){if(0==ie)return!0;{const te=this.getDefinition(re);return this._checkContextMatch(te,ne,ie-1)}}return!1}*_getValidRangesForRange(te,ne){let ie=te.start,re=te.start;for(const le of te.getItems({shallow:!0}))le.is("element")&&(yield*this._getValidRangesForRange(hd._createIn(le),ne)),this.checkAttribute(le,ne)||(ie.isEqual(re)||(yield new hd(ie,re)),ie=rd._createAfter(le)),re=rd._createAfter(le);ie.isEqual(re)||(yield new hd(ie,re))}findOptimalInsertionRange(te,ne){const ie=te.getSelectedElement();if(ie&&this.isObject(ie)&&!this.isInline(ie))return"before"==ne||"after"==ne?new hd(rd._createAt(ie,ne)):hd._createOn(ie);const re=Si(te.getSelectedBlocks());if(!re)return new hd(te.focus);if(re.isEmpty)return new hd(rd._createAt(re,0));const le=rd._createAfter(re);return te.focus.isTouching(le)?new hd(le):new hd(rd._createBefore(re))}}class hh{constructor(te){if(te instanceof hh)return te;let ne;ne="string"==typeof te?[te]:Array.isArray(te)?te:te.getAncestors({includeSelf:!0}),this._items=ne.map(vh)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(te){const ne=new hh([te]);return ne._items=[...this._items,...ne._items],ne}getItem(te){return this._items[te]}*getNames(){yield*this._items.map((te=>te.name))}endsWith(te){return Array.from(this.getNames()).join(" ").endsWith(te)}startsWith(te){return Array.from(this.getNames()).join(" ").startsWith(te)}}function uh(te,ne){const ie={name:ne,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(te,ne){for(const ie of te){const te=Object.keys(ie).filter((te=>te.startsWith("is")));for(const re of te)ne[re]=!!ie[re]}}(te,ie),Ch(te,ie,"allowIn"),Ch(te,ie,"allowContentOf"),Ch(te,ie,"allowWhere"),Ch(te,ie,"allowAttributes"),Ch(te,ie,"allowAttributesOf"),Ch(te,ie,"allowChildren"),Ch(te,ie,"inheritTypesFrom"),function(te,ne){for(const ie of te){const te=ie.inheritAllFrom;te&&(ne.allowContentOf.push(te),ne.allowWhere.push(te),ne.allowAttributesOf.push(te),ne.inheritTypesFrom.push(te))}}(te,ie),ie}function mh(te,ne){const ie=te[ne];for(const re of ie.allowChildren){const ie=te[re];ie&&ie.allowIn.push(ne)}ie.allowChildren.length=0}function gh(te,ne){for(const ie of te[ne].allowContentOf)te[ie]&&_h(te,ie).forEach((te=>{te.allowIn.push(ne)}));delete te[ne].allowContentOf}function ph(te,ne){for(const ie of te[ne].allowWhere){const re=te[ie];if(re){const ie=re.allowIn;te[ne].allowIn.push(...ie)}}delete te[ne].allowWhere}function fh(te,ne){for(const ie of te[ne].allowAttributesOf){const re=te[ie];if(re){const ie=re.allowAttributes;te[ne].allowAttributes.push(...ie)}}delete te[ne].allowAttributesOf}function kh(te,ne){const ie=te[ne];for(const ne of ie.inheritTypesFrom){const re=te[ne];if(re){const te=Object.keys(re).filter((te=>te.startsWith("is")));for(const ne of te)ne in ie||(ie[ne]=re[ne])}}delete ie.inheritTypesFrom}function bh(te,ne){const ie=te[ne],re=ie.allowIn.filter((ne=>te[ne]));ie.allowIn=Array.from(new Set(re))}function wh(te,ne){const ie=te[ne];for(const re of ie.allowIn)te[re].allowChildren.push(ne)}function Ah(te,ne){const ie=te[ne];ie.allowAttributes=Array.from(new Set(ie.allowAttributes))}function Ch(te,ne,ie){for(const re of te){const te=re[ie];"string"==typeof te?ne[ie].push(te):Array.isArray(te)&&ne[ie].push(...te)}}function _h(te,ne){const ie=te[ne];return(re=te,Object.keys(re).map((te=>re[te]))).filter((te=>te.allowIn.includes(ie.name)));var re}function vh(te){return"string"==typeof te||te.is("documentFragment")?{name:"string"==typeof te?te:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:te.is("element")?te.name:"$text",*getAttributeKeys(){yield*te.getAttributeKeys()},getAttribute:ne=>te.getAttribute(ne)}}function yh(te,ne,ie){for(const re of ne.getAttributeKeys())te.checkAttribute(ne,re)||ie.removeAttribute(re,ne)}class xh extends(M()){constructor(te){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi={...te,consumable:null,writer:null,store:null,convertItem:(te,ne)=>this._convertItem(te,ne),convertChildren:(te,ne)=>this._convertChildren(te,ne),safeInsert:(te,ne)=>this._safeInsert(te,ne),updateConversionResult:(te,ne)=>this._updateConversionResult(te,ne),splitToAllowedParent:(te,ne)=>this._splitToAllowedParent(te,ne),getSplitParts:te=>this._getSplitParts(te),keepEmptyElement:te=>this._keepEmptyElement(te)}}convert(te,ne,ie=["$root"]){this.fire("viewCleanup",te),this._modelCursor=function(te,ne){let ie;for(const re of new hh(te)){const te={};for(const ne of re.getAttributeKeys())te[ne]=re.getAttribute(ne);const le=ne.createElement(re.name,te);ie&&ne.insert(le,ie),ie=rd._createAt(le,0)}return ie}(ie,ne),this.conversionApi.writer=ne,this.conversionApi.consumable=ah.createFrom(te),this.conversionApi.store={};const{modelRange:re}=this._convertItem(te,this._modelCursor),le=ne.createDocumentFragment();if(re){this._removeEmptyElements();for(const te of Array.from(this._modelCursor.parent.getChildren()))ne.append(te,le);le.markers=function(te,ne){const ie=new Set,re=new Map,le=hd._createIn(te).getItems();for(const te of le)te.is("element","$marker")&&ie.add(te);for(const te of ie){const ie=te.getAttribute("data-name"),le=ne.createPositionBefore(te);re.has(ie)?re.get(ie).end=le.clone():re.set(ie,new hd(le.clone())),ne.remove(te)}return re}(le,ne)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,le}_convertItem(te,ne){const ie={viewItem:te,modelCursor:ne,modelRange:null};if(te.is("element")?this.fire(`element:${te.name}`,ie,this.conversionApi):te.is("$text")?this.fire("text",ie,this.conversionApi):this.fire("documentFragment",ie,this.conversionApi),ie.modelRange&&!(ie.modelRange instanceof hd))throw new C("view-conversion-dispatcher-incorrect-result",this);return{modelRange:ie.modelRange,modelCursor:ie.modelCursor}}_convertChildren(te,ne){let ie=ne.is("position")?ne:rd._createAt(ne,0);const re=new hd(ie);for(const ne of Array.from(te.getChildren())){const te=this._convertItem(ne,ie);te.modelRange instanceof hd&&(re.end=te.modelRange.end,ie=te.modelCursor)}return{modelRange:re,modelCursor:ie}}_safeInsert(te,ne){const ie=this._splitToAllowedParent(te,ne);return!!ie&&(this.conversionApi.writer.insert(te,ie.position),!0)}_updateConversionResult(te,ne){const ie=this._getSplitParts(te),re=this.conversionApi.writer;ne.modelRange||(ne.modelRange=re.createRange(re.createPositionBefore(te),re.createPositionAfter(ie[ie.length-1])));const le=this._cursorParents.get(te);ne.modelCursor=le?re.createPositionAt(le,0):ne.modelRange.end}_splitToAllowedParent(te,ne){const{schema:ie,writer:re}=this.conversionApi;let le=ie.findAllowedParent(ne,te);if(le){if(le===ne.parent)return{position:ne};this._modelCursor.parent.getAncestors().includes(le)&&(le=null)}if(!le)return Zd(ne,te,ie)?{position:$d(ne,re)}:null;const ce=this.conversionApi.writer.split(ne,le),de=[];for(const te of ce.range.getWalker())if("elementEnd"==te.type)de.push(te.item);else{const ne=de.pop(),ie=te.item;this._registerSplitPair(ne,ie)}const ue=ce.range.end.parent;return this._cursorParents.set(te,ue),{position:ce.position,cursorParent:ue}}_registerSplitPair(te,ne){this._splitParts.has(te)||this._splitParts.set(te,[te]);const ie=this._splitParts.get(te);this._splitParts.set(ne,ie),ie.push(ne)}_getSplitParts(te){let ne;return ne=this._splitParts.has(te)?this._splitParts.get(te):[te],ne}_keepEmptyElement(te){this._emptyElementsToKeep.add(te)}_removeEmptyElements(){let te=!1;for(const ne of this._splitParts.keys())ne.isEmpty&&!this._emptyElementsToKeep.has(ne)&&(this.conversionApi.writer.remove(ne),this._splitParts.delete(ne),te=!0);te&&this._removeEmptyElements()}}class Eh{getHtml(te){const ne=go.document.implementation.createHTMLDocument("").createElement("div");return ne.appendChild(te),ne.innerHTML}}class Dh{constructor(te){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new ac(te,{renderingMode:"data"}),this.htmlWriter=new Eh}toData(te){const ne=this.domConverter.viewToDom(te);return this.htmlWriter.getHtml(ne)}toView(te){const ne=this._toDom(te);return this.domConverter.domToView(ne,{skipComments:this.skipComments})}registerRawContentMatcher(te){this.domConverter.registerRawContentMatcher(te)}useFillerType(te){this.domConverter.blockFillerMode="marked"==te?"markedNbsp":"nbsp"}_toDom(te){te.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(te=`<body>${te}</body>`);const ne=this.domParser.parseFromString(te,"text/html"),ie=ne.createDocumentFragment(),re=ne.body.childNodes;for(;re.length>0;)ie.appendChild(re[0]);return ie}}class Sh extends(M()){constructor(te,ne){super(),this.model=te,this.mapper=new ud,this.downcastDispatcher=new pd({mapper:this.mapper,schema:te.schema}),this.downcastDispatcher.on("insert:$text",((te,ne,ie)=>{if(!ie.consumable.consume(ne.item,te.name))return;const re=ie.writer,le=ie.mapper.toViewPosition(ne.range.start),ce=re.createText(ne.item.data);re.insert(le,ce)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((te,ne,ie)=>{ie.convertAttributes(ne.item),ne.reconversion||!ne.item.is("element")||ne.item.isEmpty||ie.convertChildren(ne.item)}),{priority:"lowest"}),this.upcastDispatcher=new xh({schema:te.schema}),this.viewDocument=new pl(ne),this.stylesProcessor=ne,this.htmlProcessor=new Dh(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Sl(this.viewDocument),this.upcastDispatcher.on("text",((te,ne,{schema:ie,consumable:re,writer:le})=>{let ce=ne.modelCursor;if(!re.test(ne.viewItem))return;if(!ie.checkChild(ce,"$text")){if(!Zd(ce,"$text",ie))return;if(0==ne.viewItem.data.trim().length)return;const te=ce.nodeBefore;ce=$d(ce,le),te&&te.is("element","$marker")&&(le.move(le.createRangeOn(te),ce),ce=le.createPositionAfter(te))}re.consume(ne.viewItem);const de=le.createText(ne.viewItem.data);le.insert(de,ce),ne.modelRange=le.createRange(ce,ce.getShiftedBy(de.offsetSize)),ne.modelCursor=ne.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((te,ne,ie)=>{if(!ne.modelRange&&ie.consumable.consume(ne.viewItem,{name:!0})){const{modelRange:te,modelCursor:re}=ie.convertChildren(ne.viewItem,ne.modelCursor);ne.modelRange=te,ne.modelCursor=re}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((te,ne,ie)=>{if(!ne.modelRange&&ie.consumable.consume(ne.viewItem,{name:!0})){const{modelRange:te,modelCursor:re}=ie.convertChildren(ne.viewItem,ne.modelCursor);ne.modelRange=te,ne.modelCursor=re}}),{priority:"lowest"}),q().prototype.decorate.call(this,"init"),q().prototype.decorate.call(this,"set"),q().prototype.decorate.call(this,"get"),q().prototype.decorate.call(this,"toView"),q().prototype.decorate.call(this,"toModel"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},qd)}),{priority:"lowest"})}get(te={}){const{rootName:ne="main",trim:ie="empty"}=te;if(!this._checkIfRootsExists([ne]))throw new C("datacontroller-get-non-existent-root",this);const re=this.model.document.getRoot(ne);return re.isAttached()||_("datacontroller-get-detached-root",this),"empty"!==ie||this.model.hasContent(re,{ignoreWhitespaces:!0})?this.stringify(re,te):""}stringify(te,ne={}){const ie=this.toView(te,ne);return this.processor.toData(ie)}toView(te,ne={}){const ie=this.viewDocument,re=this._viewWriter;this.mapper.clearBindings();const le=hd._createIn(te),ce=new Dl(ie);this.mapper.bindElements(te,ce);const de=te.is("documentFragment")?te.markers:function(te){const ne=[],ie=te.root.document;if(!ie)return new Map;const re=hd._createIn(te);for(const te of ie.model.markers){const ie=te.getRange(),le=ie.isCollapsed,ce=ie.start.isEqual(re.start)||ie.end.isEqual(re.end);if(le&&ce)ne.push([te.name,ie]);else{const le=re.getIntersection(ie);le&&ne.push([te.name,le])}}return ne.sort((([te,ne],[ie,re])=>{if("after"!==ne.end.compareWith(re.start))return 1;if("before"!==ne.start.compareWith(re.end))return-1;switch(ne.start.compareWith(re.start)){case"before":return 1;case"after":return-1;default:switch(ne.end.compareWith(re.end)){case"before":return 1;case"after":return-1;default:return ie.localeCompare(te)}}})),new Map(ne)}(te);return this.downcastDispatcher.convert(le,de,re,ne),ce}init(te){if(this.model.document.version)throw new C("datacontroller-init-document-not-empty",this);let ne={};if("string"==typeof te?ne.main=te:ne=te,!this._checkIfRootsExists(Object.keys(ne)))throw new C("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(te=>{for(const ie of Object.keys(ne)){const re=this.model.document.getRoot(ie);te.insert(this.parse(ne[ie],re),re,0)}})),Promise.resolve()}set(te,ne={}){let ie={};if("string"==typeof te?ie.main=te:ie=te,!this._checkIfRootsExists(Object.keys(ie)))throw new C("datacontroller-set-non-existent-root",this);this.model.enqueueChange(ne.batchType||{},(te=>{te.setSelection(null),te.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const ne of Object.keys(ie)){const re=this.model.document.getRoot(ne);te.remove(te.createRangeIn(re)),te.insert(this.parse(ie[ne],re),re,0)}}))}parse(te,ne="$root"){const ie=this.processor.toView(te);return this.toModel(ie,ne)}toModel(te,ne="$root"){return this.model.change((ie=>this.upcastDispatcher.convert(te,ie,ne)))}addStyleProcessorRules(te){te(this.stylesProcessor)}registerRawContentMatcher(te){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(te),this.htmlProcessor.registerRawContentMatcher(te)}destroy(){this.stopListening()}_checkIfRootsExists(te){for(const ne of te)if(!this.model.document.getRoot(ne))return!1;return!0}}class Th{constructor(te,ne){this._helpers=new Map,this._downcast=_i(te),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=_i(ne),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(te,ne){const ie=this._downcast.includes(ne);if(!this._upcast.includes(ne)&&!ie)throw new C("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:te,dispatchers:[ne],isDowncast:ie})}for(te){if(!this._helpers.has(te))throw new C("conversion-for-unknown-group",this);return this._helpers.get(te)}elementToElement(te){this.for("downcast").elementToElement(te);for(const{model:ne,view:ie}of Ih(te))this.for("upcast").elementToElement({model:ne,view:ie,converterPriority:te.converterPriority})}attributeToElement(te){this.for("downcast").attributeToElement(te);for(const{model:ne,view:ie}of Ih(te))this.for("upcast").elementToAttribute({view:ie,model:ne,converterPriority:te.converterPriority})}attributeToAttribute(te){this.for("downcast").attributeToAttribute(te);for(const{model:ne,view:ie}of Ih(te))this.for("upcast").attributeToAttribute({view:ie,model:ne})}_createConversionHelpers({name:te,dispatchers:ne,isDowncast:ie}){if(this._helpers.has(te))throw new C("conversion-group-exists",this);const re=ie?new Nd(ne):new Kd(ne);this._helpers.set(te,re)}}function*Ih(te){if(te.model.values)for(const ne of te.model.values){const ie={key:te.model.key,value:ne},re=te.view[ne],le=te.upcastAlso?te.upcastAlso[ne]:void 0;yield*Mh(ie,re,le)}else yield*Mh(te.model,te.view,te.upcastAlso)}function*Mh(te,ne,ie){if(yield{model:te,view:ne},ie)for(const ne of _i(ie))yield{model:te,view:ne}}class Bh{constructor(te){this.baseVersion=te,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const te=Object.assign({},this);return te.__className=this.constructor.className,delete te.batch,delete te.isDocumentOperation,te}static get className(){return"Operation"}static fromJSON(te,ne){return new this(te.baseVersion)}}function Nh(te,ne){const ie=Lh(ne),re=ie.reduce(((te,ne)=>te+ne.offsetSize),0),le=te.parent;Rh(te);const ce=te.index;return le._insertChild(ce,ie),Oh(le,ce+ie.length),Oh(le,ce),new hd(te,te.getShiftedBy(re))}function zh(te){if(!te.isFlat)throw new C("operation-utils-remove-range-not-flat",this);const ne=te.start.parent;Rh(te.start),Rh(te.end);const ie=ne._removeChildren(te.start.index,te.end.index-te.start.index);return Oh(ne,te.start.index),ie}function Ph(te,ne){if(!te.isFlat)throw new C("operation-utils-move-range-not-flat",this);const ie=zh(te);return Nh(ne=ne._getTransformedByDeletion(te.start,te.end.offset-te.start.offset),ie)}function Lh(te){const ne=[];!function t(te){if("string"==typeof te)ne.push(new td(te));else if(te instanceof ed)ne.push(new td(te.data,te.getAttributes()));else if(te instanceof Jc)ne.push(te);else if(et(te))for(const ne of te)t(ne)}(te);for(let te=1;te<ne.length;te++){const ie=ne[te],re=ne[te-1];ie instanceof td&&re instanceof td&&Vh(ie,re)&&(ne.splice(te-1,2,new td(re.data+ie.data,re.getAttributes())),te--)}return ne}function Oh(te,ne){const ie=te.getChild(ne-1),re=te.getChild(ne);if(ie&&re&&ie.is("$text")&&re.is("$text")&&Vh(ie,re)){const le=new td(ie.data+re.data,ie.getAttributes());te._removeChildren(ne-1,2),te._insertChild(ne-1,le)}}function Rh(te){const ne=te.textNode,ie=te.parent;if(ne){const re=te.offset-ne.startOffset,le=ne.index;ie._removeChildren(le,1);const ce=new td(ne.data.substr(0,re),ne.getAttributes()),de=new td(ne.data.substr(re),ne.getAttributes());ie._insertChild(le,[ce,de])}}function Vh(te,ne){const ie=te.getAttributes(),re=ne.getAttributes();for(const te of ie){if(te[1]!==ne.getAttribute(te[0]))return!1;re.next()}return re.next().done}class Fh extends Bh{constructor(te,ne,ie,re){super(re),this.sourcePosition=te.clone(),this.sourcePosition.stickiness="toNext",this.howMany=ne,this.targetPosition=ie.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}get affectedSelectable(){return[hd._createFromPositionAndShift(this.sourcePosition,this.howMany),hd._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new Fh(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const te=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new Fh(this.getMovedRangeStart(),this.howMany,te,this.baseVersion+1)}_validate(){const te=this.sourcePosition.parent,ne=this.targetPosition.parent,ie=this.sourcePosition.offset,re=this.targetPosition.offset;if(ie+this.howMany>te.maxOffset)throw new C("move-operation-nodes-do-not-exist",this);if(te===ne&&ie<re&&re<ie+this.howMany)throw new C("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==tt(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const te=this.sourcePosition.path.length-1;if(this.targetPosition.path[te]>=ie&&this.targetPosition.path[te]<ie+this.howMany)throw new C("move-operation-node-into-itself",this)}}_execute(){Ph(hd._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const te=super.toJSON();return te.sourcePosition=this.sourcePosition.toJSON(),te.targetPosition=this.targetPosition.toJSON(),te}static get className(){return"MoveOperation"}static fromJSON(te,ne){const ie=rd.fromJSON(te.sourcePosition,ne),re=rd.fromJSON(te.targetPosition,ne);return new this(ie,te.howMany,re,te.baseVersion)}}class jh extends Bh{constructor(te,ne,ie){super(ie),this.position=te.clone(),this.position.stickiness="toNone",this.nodes=new Xc(Lh(ne)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const te=new Xc([...this.nodes].map((te=>te._clone(!0)))),ne=new jh(this.position,te,this.baseVersion);return ne.shouldReceiveAttributes=this.shouldReceiveAttributes,ne}getReversed(){const te=this.position.root.document.graveyard,ne=new rd(te,[0]);return new Fh(this.position,this.nodes.maxOffset,ne,this.baseVersion+1)}_validate(){const te=this.position.parent;if(!te||te.maxOffset<this.position.offset)throw new C("insert-operation-position-invalid",this)}_execute(){const te=this.nodes;this.nodes=new Xc([...te].map((te=>te._clone(!0)))),Nh(this.position,te)}toJSON(){const te=super.toJSON();return te.position=this.position.toJSON(),te.nodes=this.nodes.toJSON(),te}static get className(){return"InsertOperation"}static fromJSON(te,ne){const ie=[];for(const ne of te.nodes)ne.name?ie.push(nd.fromJSON(ne)):ie.push(td.fromJSON(ne));const re=new jh(rd.fromJSON(te.position,ne),ie,te.baseVersion);return re.shouldReceiveAttributes=te.shouldReceiveAttributes,re}}class Hh extends Bh{constructor(te,ne,ie,re,le){super(le),this.splitPosition=te.clone(),this.splitPosition.stickiness="toNext",this.howMany=ne,this.insertionPosition=ie,this.graveyardPosition=re?re.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const te=this.insertionPosition.path.slice();return te.push(0),new rd(this.insertionPosition.root,te)}get movedRange(){const te=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new hd(this.splitPosition,te)}get affectedSelectable(){const te=[hd._createFromPositionAndShift(this.splitPosition,0),hd._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&te.push(hd._createFromPositionAndShift(this.graveyardPosition,0)),te}clone(){return new Hh(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const te=this.splitPosition.root.document.graveyard,ne=new rd(te,[0]);return new Uh(this.moveTargetPosition,this.howMany,this.splitPosition,ne,this.baseVersion+1)}_validate(){const te=this.splitPosition.parent,ne=this.splitPosition.offset;if(!te||te.maxOffset<ne)throw new C("split-operation-position-invalid",this);if(!te.parent)throw new C("split-operation-split-in-root",this);if(this.howMany!=te.maxOffset-this.splitPosition.offset)throw new C("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new C("split-operation-graveyard-position-invalid",this)}_execute(){const te=this.splitPosition.parent;if(this.graveyardPosition)Ph(hd._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const ne=te._clone();Nh(this.insertionPosition,ne)}Ph(new hd(rd._createAt(te,this.splitPosition.offset),rd._createAt(te,te.maxOffset)),this.moveTargetPosition)}toJSON(){const te=super.toJSON();return te.splitPosition=this.splitPosition.toJSON(),te.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(te.graveyardPosition=this.graveyardPosition.toJSON()),te}static get className(){return"SplitOperation"}static getInsertionPosition(te){const ne=te.path.slice(0,-1);return ne[ne.length-1]++,new rd(te.root,ne,"toPrevious")}static fromJSON(te,ne){const ie=rd.fromJSON(te.splitPosition,ne),re=rd.fromJSON(te.insertionPosition,ne),le=te.graveyardPosition?rd.fromJSON(te.graveyardPosition,ne):null;return new this(ie,te.howMany,re,le,te.baseVersion)}}class Uh extends Bh{constructor(te,ne,ie,re,le){super(le),this.sourcePosition=te.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=ne,this.targetPosition=ie.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=re.clone()}get type(){return"merge"}get deletionPosition(){return new rd(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const te=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new hd(this.sourcePosition,te)}get affectedSelectable(){const te=this.sourcePosition.parent;return[hd._createOn(te),hd._createFromPositionAndShift(this.targetPosition,0),hd._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new Uh(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const te=this.targetPosition._getTransformedByMergeOperation(this),ne=this.sourcePosition.path.slice(0,-1),ie=new rd(this.sourcePosition.root,ne)._getTransformedByMergeOperation(this);return new Hh(te,this.howMany,ie,this.graveyardPosition,this.baseVersion+1)}_validate(){const te=this.sourcePosition.parent,ne=this.targetPosition.parent;if(!te.parent)throw new C("merge-operation-source-position-invalid",this);if(!ne.parent)throw new C("merge-operation-target-position-invalid",this);if(this.howMany!=te.maxOffset)throw new C("merge-operation-how-many-invalid",this)}_execute(){const te=this.sourcePosition.parent;Ph(hd._createIn(te),this.targetPosition),Ph(hd._createOn(te),this.graveyardPosition)}toJSON(){const te=super.toJSON();return te.sourcePosition=te.sourcePosition.toJSON(),te.targetPosition=te.targetPosition.toJSON(),te.graveyardPosition=te.graveyardPosition.toJSON(),te}static get className(){return"MergeOperation"}static fromJSON(te,ne){const ie=rd.fromJSON(te.sourcePosition,ne),re=rd.fromJSON(te.targetPosition,ne),le=rd.fromJSON(te.graveyardPosition,ne);return new this(ie,te.howMany,re,le,te.baseVersion)}}class Wh extends Bh{constructor(te,ne,ie,re,le,ce){super(ce),this.name=te,this.oldRange=ne?ne.clone():null,this.newRange=ie?ie.clone():null,this.affectsData=le,this._markers=re}get type(){return"marker"}get affectedSelectable(){const te=[];return this.oldRange&&te.push(this.oldRange.clone()),this.newRange&&(this.oldRange?te.push(...this.newRange.getDifference(this.oldRange)):te.push(this.newRange.clone())),te}clone(){return new Wh(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Wh(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}toJSON(){const te=super.toJSON();return this.oldRange&&(te.oldRange=this.oldRange.toJSON()),this.newRange&&(te.newRange=this.newRange.toJSON()),delete te._markers,te}static get className(){return"MarkerOperation"}static fromJSON(te,ne){return new Wh(te.name,te.oldRange?hd.fromJSON(te.oldRange,ne):null,te.newRange?hd.fromJSON(te.newRange,ne):null,ne.model.markers,te.affectsData,te.baseVersion)}}const Gh=function(te,ne){return zs(te,ne)};class qh extends Bh{constructor(te,ne,ie,re,le){super(le),this.range=te.clone(),this.key=ne,this.oldValue=void 0===ie?null:ie,this.newValue=void 0===re?null:re}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new qh(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new qh(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const te=super.toJSON();return te.range=this.range.toJSON(),te}_validate(){if(!this.range.isFlat)throw new C("attribute-operation-range-not-flat",this);for(const te of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Gh(te.getAttribute(this.key),this.oldValue))throw new C("attribute-operation-wrong-old-value",this,{item:te,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&te.hasAttribute(this.key))throw new C("attribute-operation-attribute-exists",this,{node:te,key:this.key})}}_execute(){Gh(this.oldValue,this.newValue)||function(te,ne,ie){Rh(te.start),Rh(te.end);for(const re of te.getItems({shallow:!0})){const te=re.is("$textProxy")?re.textNode:re;null!==ie?te._setAttribute(ne,ie):te._removeAttribute(ne),Oh(te.parent,te.index)}Oh(te.end.parent,te.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(te,ne){return new qh(hd.fromJSON(te.range,ne),te.key,te.oldValue,te.newValue,te.baseVersion)}}class Zh extends Bh{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new Zh(this.baseVersion)}getReversed(){return new Zh(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class $h extends Bh{constructor(te,ne,ie,re){super(re),this.position=te,this.position.stickiness="toNext",this.oldName=ne,this.newName=ie}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new $h(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new $h(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const te=this.position.nodeAfter;if(!(te instanceof nd))throw new C("rename-operation-wrong-position",this);if(te.name!==this.oldName)throw new C("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const te=super.toJSON();return te.position=this.position.toJSON(),te}static get className(){return"RenameOperation"}static fromJSON(te,ne){return new $h(rd.fromJSON(te.position,ne),te.oldName,te.newName,te.baseVersion)}}class Kh extends Bh{constructor(te,ne,ie,re,le){super(le),this.root=te,this.key=ne,this.oldValue=void 0===ie?null:ie,this.newValue=void 0===re?null:re}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new Kh(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Kh(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new C("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new C("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new C("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const te=super.toJSON();return te.root=this.root.toJSON(),te}static get className(){return"RootAttributeOperation"}static fromJSON(te,ne){if(!ne.getRoot(te.root))throw new C("rootattribute-operation-fromjson-no-root",this,{rootName:te.root});return new Kh(ne.getRoot(te.root),te.key,te.oldValue,te.newValue,te.baseVersion)}}class Yh extends Bh{constructor(te,ne,ie,re,le){super(le),this.rootName=te,this.elementName=ne,this.isAdd=ie,this._document=re,this._document.getRoot(this.rootName)||(this._document.createRoot(this.elementName,this.rootName)._isAttached=!1)}get type(){return this.isAdd?"addRoot":"detachRoot"}get affectedSelectable(){return this._document.getRoot(this.rootName)}clone(){return new Yh(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new Yh(this.rootName,this.elementName,!this.isAdd,this._document,this.baseVersion+1)}_execute(){this._document.getRoot(this.rootName)._isAttached=this.isAdd}toJSON(){const te=super.toJSON();return delete te._document,te}static get className(){return"RootOperation"}static fromJSON(te,ne){return new Yh(te.rootName,te.elementName,te.isAdd,ne,te.baseVersion)}}const cl={};cl[qh.className]=qh,cl[jh.className]=jh,cl[Wh.className]=Wh,cl[Fh.className]=Fh,cl[Zh.className]=Zh,cl[Bh.className]=Bh,cl[$h.className]=$h,cl[Kh.className]=Kh,cl[Yh.className]=Yh,cl[Hh.className]=Hh,cl[Uh.className]=Uh;class Jh{static fromJSON(te,ne){return cl[te.__className].fromJSON(te,ne)}}const kl=new Map;function tu(te,ne,ie){let re=kl.get(te);re||(re=new Map,kl.set(te,re)),re.set(ne,ie)}function eu(te){return[te]}function nu(te,ne,ie={}){const re=function(te,ne){const ie=kl.get(te);return ie&&ie.has(ne)?ie.get(ne):eu}(te.constructor,ne.constructor);try{return re(te=te.clone(),ne,ie)}catch(te){throw te}}function ou(te,ne,ie){te=te.slice(),ne=ne.slice();const re=new iu(ie.document,ie.useRelations,ie.forceWeakRemove);re.setOriginalOperations(te),re.setOriginalOperations(ne);const le=re.originalOperations;if(0==te.length||0==ne.length)return{operationsA:te,operationsB:ne,originalOperations:le};const ce=new WeakMap;for(const ne of te)ce.set(ne,0);const de={nextBaseVersionA:te[te.length-1].baseVersion+1,nextBaseVersionB:ne[ne.length-1].baseVersion+1,originalOperationsACount:te.length,originalOperationsBCount:ne.length};let ue=0;for(;ue<te.length;){const ie=te[ue],le=ce.get(ie);if(le==ne.length){ue++;continue}const de=ne[le],me=nu(ie,de,re.getContext(ie,de,!0)),ge=nu(de,ie,re.getContext(de,ie,!1));re.updateRelation(ie,de),re.setOriginalOperations(me,ie),re.setOriginalOperations(ge,de);for(const te of me)ce.set(te,le+ge.length);te.splice(ue,1,...me),ne.splice(le,1,...ge)}if(ie.padWithNoOps){const ie=te.length-de.originalOperationsACount,re=ne.length-de.originalOperationsBCount;su(te,re-ie),su(ne,ie-re)}return ru(te,de.nextBaseVersionB),ru(ne,de.nextBaseVersionA),{operationsA:te,operationsB:ne,originalOperations:le}}class iu{constructor(te,ne,ie=!1){this.originalOperations=new Map,this._history=te.history,this._useRelations=ne,this._forceWeakRemove=!!ie,this._relations=new Map}setOriginalOperations(te,ne=null){const ie=ne?this.originalOperations.get(ne):null;for(const ne of te)this.originalOperations.set(ne,ie||ne)}updateRelation(te,ne){if(te instanceof Fh)ne instanceof Uh?te.targetPosition.isEqual(ne.sourcePosition)||ne.movedRange.containsPosition(te.targetPosition)?this._setRelation(te,ne,"insertAtSource"):te.targetPosition.isEqual(ne.deletionPosition)?this._setRelation(te,ne,"insertBetween"):te.targetPosition.isAfter(ne.sourcePosition)&&this._setRelation(te,ne,"moveTargetAfter"):ne instanceof Fh&&(te.targetPosition.isEqual(ne.sourcePosition)||te.targetPosition.isBefore(ne.sourcePosition)?this._setRelation(te,ne,"insertBefore"):this._setRelation(te,ne,"insertAfter"));else if(te instanceof Hh){if(ne instanceof Uh)te.splitPosition.isBefore(ne.sourcePosition)&&this._setRelation(te,ne,"splitBefore");else if(ne instanceof Fh)if(te.splitPosition.isEqual(ne.sourcePosition)||te.splitPosition.isBefore(ne.sourcePosition))this._setRelation(te,ne,"splitBefore");else{const ie=hd._createFromPositionAndShift(ne.sourcePosition,ne.howMany);if(te.splitPosition.hasSameParentAs(ne.sourcePosition)&&ie.containsPosition(te.splitPosition)){const re=ie.end.offset-te.splitPosition.offset,le=te.splitPosition.offset-ie.start.offset;this._setRelation(te,ne,{howMany:re,offset:le})}}}else if(te instanceof Uh)ne instanceof Uh?(te.targetPosition.isEqual(ne.sourcePosition)||this._setRelation(te,ne,"mergeTargetNotMoved"),te.sourcePosition.isEqual(ne.targetPosition)&&this._setRelation(te,ne,"mergeSourceNotMoved"),te.sourcePosition.isEqual(ne.sourcePosition)&&this._setRelation(te,ne,"mergeSameElement")):ne instanceof Hh&&te.sourcePosition.isEqual(ne.splitPosition)&&this._setRelation(te,ne,"splitAtSource");else if(te instanceof Wh){const ie=te.newRange;if(!ie)return;if(ne instanceof Fh){const re=hd._createFromPositionAndShift(ne.sourcePosition,ne.howMany),le=re.containsPosition(ie.start)||re.start.isEqual(ie.start),ce=re.containsPosition(ie.end)||re.end.isEqual(ie.end);!le&&!ce||re.containsRange(ie)||this._setRelation(te,ne,{side:le?"left":"right",path:le?ie.start.path.slice():ie.end.path.slice()})}else if(ne instanceof Uh){const re=ie.start.isEqual(ne.targetPosition),le=ie.start.isEqual(ne.deletionPosition),ce=ie.end.isEqual(ne.deletionPosition),de=ie.end.isEqual(ne.sourcePosition);(re||le||ce||de)&&this._setRelation(te,ne,{wasInLeftElement:re,wasStartBeforeMergedElement:le,wasEndBeforeMergedElement:ce,wasInRightElement:de})}}}getContext(te,ne,ie){return{aIsStrong:ie,aWasUndone:this._wasUndone(te),bWasUndone:this._wasUndone(ne),abRelation:this._useRelations?this._getRelation(te,ne):null,baRelation:this._useRelations?this._getRelation(ne,te):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(te){const ne=this.originalOperations.get(te);return ne.wasUndone||this._history.isUndoneOperation(ne)}_getRelation(te,ne){const ie=this.originalOperations.get(ne),re=this._history.getUndoneOperation(ie);if(!re)return null;const le=this.originalOperations.get(te),ce=this._relations.get(le);return ce&&ce.get(re)||null}_setRelation(te,ne,ie){const re=this.originalOperations.get(te),le=this.originalOperations.get(ne);let ce=this._relations.get(re);ce||(ce=new Map,this._relations.set(re,ce)),ce.set(le,ie)}}function ru(te,ne){for(const ie of te)ie.baseVersion=ne++}function su(te,ne){for(let ie=0;ie<ne;ie++)te.push(new Zh(0))}function au(te,ne,ie){const re=te.nodes.getNode(0).getAttribute(ne);if(re==ie)return null;const le=new hd(te.position,te.position.getShiftedBy(te.howMany));return new qh(le,ne,re,ie,0)}function lu(te,ne){return null===te.targetPosition._getTransformedByDeletion(ne.sourcePosition,ne.howMany)}function cu(te,ne){const ie=[];for(let re=0;re<te.length;re++){const le=te[re],ce=new Fh(le.start,le.end.offset-le.start.offset,ne,0);ie.push(ce);for(let ne=re+1;ne<te.length;ne++)te[ne]=te[ne]._getTransformedByMove(ce.sourcePosition,ce.targetPosition,ce.howMany)[0];ne=ne._getTransformedByMove(ce.sourcePosition,ce.targetPosition,ce.howMany)}return ie}tu(qh,qh,((te,ne,ie)=>{if(te.key===ne.key&&te.range.start.hasSameParentAs(ne.range.start)){const re=te.range.getDifference(ne.range).map((ne=>new qh(ne,te.key,te.oldValue,te.newValue,0))),le=te.range.getIntersection(ne.range);return le&&ie.aIsStrong&&re.push(new qh(le,ne.key,ne.newValue,te.newValue,0)),0==re.length?[new Zh(0)]:re}return[te]})),tu(qh,jh,((te,ne)=>{if(te.range.start.hasSameParentAs(ne.position)&&te.range.containsPosition(ne.position)){const ie=te.range._getTransformedByInsertion(ne.position,ne.howMany,!ne.shouldReceiveAttributes).map((ne=>new qh(ne,te.key,te.oldValue,te.newValue,te.baseVersion)));if(ne.shouldReceiveAttributes){const re=au(ne,te.key,te.oldValue);re&&ie.unshift(re)}return ie}return te.range=te.range._getTransformedByInsertion(ne.position,ne.howMany,!1)[0],[te]})),tu(qh,Uh,((te,ne)=>{const ie=[];te.range.start.hasSameParentAs(ne.deletionPosition)&&(te.range.containsPosition(ne.deletionPosition)||te.range.start.isEqual(ne.deletionPosition))&&ie.push(hd._createFromPositionAndShift(ne.graveyardPosition,1));const re=te.range._getTransformedByMergeOperation(ne);return re.isCollapsed||ie.push(re),ie.map((ne=>new qh(ne,te.key,te.oldValue,te.newValue,te.baseVersion)))})),tu(qh,Fh,((te,ne)=>{const ie=function(te,ne){const ie=hd._createFromPositionAndShift(ne.sourcePosition,ne.howMany);let re=null,le=[];ie.containsRange(te,!0)?re=te:te.start.hasSameParentAs(ie.start)?(le=te.getDifference(ie),re=te.getIntersection(ie)):le=[te];const ce=[];for(let te of le){te=te._getTransformedByDeletion(ne.sourcePosition,ne.howMany);const ie=ne.getMovedRangeStart(),re=te.start.hasSameParentAs(ie),le=te._getTransformedByInsertion(ie,ne.howMany,re);ce.push(...le)}return re&&ce.push(re._getTransformedByMove(ne.sourcePosition,ne.targetPosition,ne.howMany,!1)[0]),ce}(te.range,ne);return ie.map((ne=>new qh(ne,te.key,te.oldValue,te.newValue,te.baseVersion)))})),tu(qh,Hh,((te,ne)=>{if(te.range.end.isEqual(ne.insertionPosition))return ne.graveyardPosition||te.range.end.offset++,[te];if(te.range.start.hasSameParentAs(ne.splitPosition)&&te.range.containsPosition(ne.splitPosition)){const ie=te.clone();return ie.range=new hd(ne.moveTargetPosition.clone(),te.range.end._getCombined(ne.splitPosition,ne.moveTargetPosition)),te.range.end=ne.splitPosition.clone(),te.range.end.stickiness="toPrevious",[te,ie]}return te.range=te.range._getTransformedBySplitOperation(ne),[te]})),tu(jh,qh,((te,ne)=>{const ie=[te];if(te.shouldReceiveAttributes&&te.position.hasSameParentAs(ne.range.start)&&ne.range.containsPosition(te.position)){const re=au(te,ne.key,ne.newValue);re&&ie.push(re)}return ie})),tu(jh,jh,((te,ne,ie)=>(te.position.isEqual(ne.position)&&ie.aIsStrong||(te.position=te.position._getTransformedByInsertOperation(ne)),[te]))),tu(jh,Fh,((te,ne)=>(te.position=te.position._getTransformedByMoveOperation(ne),[te]))),tu(jh,Hh,((te,ne)=>(te.position=te.position._getTransformedBySplitOperation(ne),[te]))),tu(jh,Uh,((te,ne)=>(te.position=te.position._getTransformedByMergeOperation(ne),[te]))),tu(Wh,jh,((te,ne)=>(te.oldRange&&(te.oldRange=te.oldRange._getTransformedByInsertOperation(ne)[0]),te.newRange&&(te.newRange=te.newRange._getTransformedByInsertOperation(ne)[0]),[te]))),tu(Wh,Wh,((te,ne,ie)=>{if(te.name==ne.name){if(!ie.aIsStrong)return[new Zh(0)];te.oldRange=ne.newRange?ne.newRange.clone():null}return[te]})),tu(Wh,Uh,((te,ne)=>(te.oldRange&&(te.oldRange=te.oldRange._getTransformedByMergeOperation(ne)),te.newRange&&(te.newRange=te.newRange._getTransformedByMergeOperation(ne)),[te]))),tu(Wh,Fh,((te,ne,ie)=>{if(te.oldRange&&(te.oldRange=hd._createFromRanges(te.oldRange._getTransformedByMoveOperation(ne))),te.newRange){if(ie.abRelation){const re=hd._createFromRanges(te.newRange._getTransformedByMoveOperation(ne));if("left"==ie.abRelation.side&&ne.targetPosition.isEqual(te.newRange.start))return te.newRange.end=re.end,te.newRange.start.path=ie.abRelation.path,[te];if("right"==ie.abRelation.side&&ne.targetPosition.isEqual(te.newRange.end))return te.newRange.start=re.start,te.newRange.end.path=ie.abRelation.path,[te]}te.newRange=hd._createFromRanges(te.newRange._getTransformedByMoveOperation(ne))}return[te]})),tu(Wh,Hh,((te,ne,ie)=>{if(te.oldRange&&(te.oldRange=te.oldRange._getTransformedBySplitOperation(ne)),te.newRange){if(ie.abRelation){const re=te.newRange._getTransformedBySplitOperation(ne);return te.newRange.start.isEqual(ne.splitPosition)&&ie.abRelation.wasStartBeforeMergedElement?te.newRange.start=rd._createAt(ne.insertionPosition):te.newRange.start.isEqual(ne.splitPosition)&&!ie.abRelation.wasInLeftElement&&(te.newRange.start=rd._createAt(ne.moveTargetPosition)),te.newRange.end.isEqual(ne.splitPosition)&&ie.abRelation.wasInRightElement?te.newRange.end=rd._createAt(ne.moveTargetPosition):te.newRange.end.isEqual(ne.splitPosition)&&ie.abRelation.wasEndBeforeMergedElement?te.newRange.end=rd._createAt(ne.insertionPosition):te.newRange.end=re.end,[te]}te.newRange=te.newRange._getTransformedBySplitOperation(ne)}return[te]})),tu(Uh,jh,((te,ne)=>(te.sourcePosition.hasSameParentAs(ne.position)&&(te.howMany+=ne.howMany),te.sourcePosition=te.sourcePosition._getTransformedByInsertOperation(ne),te.targetPosition=te.targetPosition._getTransformedByInsertOperation(ne),[te]))),tu(Uh,Uh,((te,ne,ie)=>{if(te.sourcePosition.isEqual(ne.sourcePosition)&&te.targetPosition.isEqual(ne.targetPosition)){if(ie.bWasUndone){const ie=ne.graveyardPosition.path.slice();return ie.push(0),te.sourcePosition=new rd(ne.graveyardPosition.root,ie),te.howMany=0,[te]}return[new Zh(0)]}if(te.sourcePosition.isEqual(ne.sourcePosition)&&!te.targetPosition.isEqual(ne.targetPosition)&&!ie.bWasUndone&&"splitAtSource"!=ie.abRelation){const re="$graveyard"==te.targetPosition.root.rootName,le="$graveyard"==ne.targetPosition.root.rootName;if(le&&!re||(!re||le)&&ie.aIsStrong){const ie=ne.targetPosition._getTransformedByMergeOperation(ne),re=te.targetPosition._getTransformedByMergeOperation(ne);return[new Fh(ie,te.howMany,re,0)]}return[new Zh(0)]}return te.sourcePosition.hasSameParentAs(ne.targetPosition)&&(te.howMany+=ne.howMany),te.sourcePosition=te.sourcePosition._getTransformedByMergeOperation(ne),te.targetPosition=te.targetPosition._getTransformedByMergeOperation(ne),te.graveyardPosition.isEqual(ne.graveyardPosition)&&ie.aIsStrong||(te.graveyardPosition=te.graveyardPosition._getTransformedByMergeOperation(ne)),[te]})),tu(Uh,Fh,((te,ne,ie)=>{const re=hd._createFromPositionAndShift(ne.sourcePosition,ne.howMany);return"remove"==ne.type&&!ie.bWasUndone&&!ie.forceWeakRemove&&te.deletionPosition.hasSameParentAs(ne.sourcePosition)&&re.containsPosition(te.sourcePosition)?[new Zh(0)]:(te.sourcePosition.hasSameParentAs(ne.targetPosition)&&(te.howMany+=ne.howMany),te.sourcePosition.hasSameParentAs(ne.sourcePosition)&&(te.howMany-=ne.howMany),te.sourcePosition=te.sourcePosition._getTransformedByMoveOperation(ne),te.targetPosition=te.targetPosition._getTransformedByMoveOperation(ne),te.graveyardPosition.isEqual(ne.targetPosition)||(te.graveyardPosition=te.graveyardPosition._getTransformedByMoveOperation(ne)),[te])})),tu(Uh,Hh,((te,ne,ie)=>{if(ne.graveyardPosition&&(te.graveyardPosition=te.graveyardPosition._getTransformedByDeletion(ne.graveyardPosition,1),te.deletionPosition.isEqual(ne.graveyardPosition)&&(te.howMany=ne.howMany)),te.targetPosition.isEqual(ne.splitPosition)){const re=0!=ne.howMany,le=ne.graveyardPosition&&te.deletionPosition.isEqual(ne.graveyardPosition);if(re||le||"mergeTargetNotMoved"==ie.abRelation)return te.sourcePosition=te.sourcePosition._getTransformedBySplitOperation(ne),[te]}if(te.sourcePosition.isEqual(ne.splitPosition)){if("mergeSourceNotMoved"==ie.abRelation)return te.howMany=0,te.targetPosition=te.targetPosition._getTransformedBySplitOperation(ne),[te];if("mergeSameElement"==ie.abRelation||te.sourcePosition.offset>0)return te.sourcePosition=ne.moveTargetPosition.clone(),te.targetPosition=te.targetPosition._getTransformedBySplitOperation(ne),[te]}return te.sourcePosition.hasSameParentAs(ne.splitPosition)&&(te.howMany=ne.splitPosition.offset),te.sourcePosition=te.sourcePosition._getTransformedBySplitOperation(ne),te.targetPosition=te.targetPosition._getTransformedBySplitOperation(ne),[te]})),tu(Fh,jh,((te,ne)=>{const ie=hd._createFromPositionAndShift(te.sourcePosition,te.howMany)._getTransformedByInsertOperation(ne,!1)[0];return te.sourcePosition=ie.start,te.howMany=ie.end.offset-ie.start.offset,te.targetPosition.isEqual(ne.position)||(te.targetPosition=te.targetPosition._getTransformedByInsertOperation(ne)),[te]})),tu(Fh,Fh,((te,ne,ie)=>{const re=hd._createFromPositionAndShift(te.sourcePosition,te.howMany),le=hd._createFromPositionAndShift(ne.sourcePosition,ne.howMany);let ce,de=ie.aIsStrong,ue=!ie.aIsStrong;if("insertBefore"==ie.abRelation||"insertAfter"==ie.baRelation?ue=!0:"insertAfter"!=ie.abRelation&&"insertBefore"!=ie.baRelation||(ue=!1),ce=te.targetPosition.isEqual(ne.targetPosition)&&ue?te.targetPosition._getTransformedByDeletion(ne.sourcePosition,ne.howMany):te.targetPosition._getTransformedByMove(ne.sourcePosition,ne.targetPosition,ne.howMany),lu(te,ne)&&lu(ne,te))return[ne.getReversed()];if(re.containsPosition(ne.targetPosition)&&re.containsRange(le,!0))return re.start=re.start._getTransformedByMove(ne.sourcePosition,ne.targetPosition,ne.howMany),re.end=re.end._getTransformedByMove(ne.sourcePosition,ne.targetPosition,ne.howMany),cu([re],ce);if(le.containsPosition(te.targetPosition)&&le.containsRange(re,!0))return re.start=re.start._getCombined(ne.sourcePosition,ne.getMovedRangeStart()),re.end=re.end._getCombined(ne.sourcePosition,ne.getMovedRangeStart()),cu([re],ce);const me=tt(te.sourcePosition.getParentPath(),ne.sourcePosition.getParentPath());if("prefix"==me||"extension"==me)return re.start=re.start._getTransformedByMove(ne.sourcePosition,ne.targetPosition,ne.howMany),re.end=re.end._getTransformedByMove(ne.sourcePosition,ne.targetPosition,ne.howMany),cu([re],ce);"remove"!=te.type||"remove"==ne.type||ie.aWasUndone||ie.forceWeakRemove?"remove"==te.type||"remove"!=ne.type||ie.bWasUndone||ie.forceWeakRemove||(de=!1):de=!0;const ge=[],fe=re.getDifference(le);for(const te of fe){te.start=te.start._getTransformedByDeletion(ne.sourcePosition,ne.howMany),te.end=te.end._getTransformedByDeletion(ne.sourcePosition,ne.howMany);const ie="same"==tt(te.start.getParentPath(),ne.getMovedRangeStart().getParentPath()),re=te._getTransformedByInsertion(ne.getMovedRangeStart(),ne.howMany,ie);ge.push(...re)}const _e=re.getIntersection(le);return null!==_e&&de&&(_e.start=_e.start._getCombined(ne.sourcePosition,ne.getMovedRangeStart()),_e.end=_e.end._getCombined(ne.sourcePosition,ne.getMovedRangeStart()),0===ge.length?ge.push(_e):1==ge.length?le.start.isBefore(re.start)||le.start.isEqual(re.start)?ge.unshift(_e):ge.push(_e):ge.splice(1,0,_e)),0===ge.length?[new Zh(te.baseVersion)]:cu(ge,ce)})),tu(Fh,Hh,((te,ne,ie)=>{let re=te.targetPosition.clone();te.targetPosition.isEqual(ne.insertionPosition)&&ne.graveyardPosition&&"moveTargetAfter"!=ie.abRelation||(re=te.targetPosition._getTransformedBySplitOperation(ne));const le=hd._createFromPositionAndShift(te.sourcePosition,te.howMany);if(le.end.isEqual(ne.insertionPosition))return ne.graveyardPosition||te.howMany++,te.targetPosition=re,[te];if(le.start.hasSameParentAs(ne.splitPosition)&&le.containsPosition(ne.splitPosition)){let te=new hd(ne.splitPosition,le.end);return te=te._getTransformedBySplitOperation(ne),cu([new hd(le.start,ne.splitPosition),te],re)}te.targetPosition.isEqual(ne.splitPosition)&&"insertAtSource"==ie.abRelation&&(re=ne.moveTargetPosition),te.targetPosition.isEqual(ne.insertionPosition)&&"insertBetween"==ie.abRelation&&(re=te.targetPosition);const ce=[le._getTransformedBySplitOperation(ne)];if(ne.graveyardPosition){const re=le.start.isEqual(ne.graveyardPosition)||le.containsPosition(ne.graveyardPosition);te.howMany>1&&re&&!ie.aWasUndone&&ce.push(hd._createFromPositionAndShift(ne.insertionPosition,1))}return cu(ce,re)})),tu(Fh,Uh,((te,ne,ie)=>{const re=hd._createFromPositionAndShift(te.sourcePosition,te.howMany);if(ne.deletionPosition.hasSameParentAs(te.sourcePosition)&&re.containsPosition(ne.sourcePosition))if("remove"!=te.type||ie.forceWeakRemove){if(1==te.howMany)return ie.bWasUndone?(te.sourcePosition=ne.graveyardPosition.clone(),te.targetPosition=te.targetPosition._getTransformedByMergeOperation(ne),[te]):[new Zh(0)]}else if(!ie.aWasUndone){const ie=[];let re=ne.graveyardPosition.clone(),le=ne.targetPosition._getTransformedByMergeOperation(ne);te.howMany>1&&(ie.push(new Fh(te.sourcePosition,te.howMany-1,te.targetPosition,0)),re=re._getTransformedByMove(te.sourcePosition,te.targetPosition,te.howMany-1),le=le._getTransformedByMove(te.sourcePosition,te.targetPosition,te.howMany-1));const ce=ne.deletionPosition._getCombined(te.sourcePosition,te.targetPosition),de=new Fh(re,1,ce,0),ue=de.getMovedRangeStart().path.slice();ue.push(0);const me=new rd(de.targetPosition.root,ue);le=le._getTransformedByMove(re,ce,1);const ge=new Fh(le,ne.howMany,me,0);return ie.push(de),ie.push(ge),ie}const le=hd._createFromPositionAndShift(te.sourcePosition,te.howMany)._getTransformedByMergeOperation(ne);return te.sourcePosition=le.start,te.howMany=le.end.offset-le.start.offset,te.targetPosition=te.targetPosition._getTransformedByMergeOperation(ne),[te]})),tu($h,jh,((te,ne)=>(te.position=te.position._getTransformedByInsertOperation(ne),[te]))),tu($h,Uh,((te,ne)=>te.position.isEqual(ne.deletionPosition)?(te.position=ne.graveyardPosition.clone(),te.position.stickiness="toNext",[te]):(te.position=te.position._getTransformedByMergeOperation(ne),[te]))),tu($h,Fh,((te,ne)=>(te.position=te.position._getTransformedByMoveOperation(ne),[te]))),tu($h,$h,((te,ne,ie)=>{if(te.position.isEqual(ne.position)){if(!ie.aIsStrong)return[new Zh(0)];te.oldName=ne.newName}return[te]})),tu($h,Hh,((te,ne)=>{if("same"==tt(te.position.path,ne.splitPosition.getParentPath())&&!ne.graveyardPosition){const ne=new $h(te.position.getShiftedBy(1),te.oldName,te.newName,0);return[te,ne]}return te.position=te.position._getTransformedBySplitOperation(ne),[te]})),tu(Kh,Kh,((te,ne,ie)=>{if(te.root===ne.root&&te.key===ne.key){if(!ie.aIsStrong||te.newValue===ne.newValue)return[new Zh(0)];te.oldValue=ne.newValue}return[te]})),tu(Yh,Yh,((te,ne)=>te.rootName===ne.rootName&&te.isAdd===ne.isAdd?[new Zh(0)]:[te])),tu(Hh,jh,((te,ne)=>(te.splitPosition.hasSameParentAs(ne.position)&&te.splitPosition.offset<ne.position.offset&&(te.howMany+=ne.howMany),te.splitPosition=te.splitPosition._getTransformedByInsertOperation(ne),te.insertionPosition=te.insertionPosition._getTransformedByInsertOperation(ne),[te]))),tu(Hh,Uh,((te,ne,ie)=>{if(!te.graveyardPosition&&!ie.bWasUndone&&te.splitPosition.hasSameParentAs(ne.sourcePosition)){const ie=ne.graveyardPosition.path.slice();ie.push(0);const re=new rd(ne.graveyardPosition.root,ie),le=Hh.getInsertionPosition(new rd(ne.graveyardPosition.root,ie)),ce=new Hh(re,0,le,null,0);return te.splitPosition=te.splitPosition._getTransformedByMergeOperation(ne),te.insertionPosition=Hh.getInsertionPosition(te.splitPosition),te.graveyardPosition=ce.insertionPosition.clone(),te.graveyardPosition.stickiness="toNext",[ce,te]}return te.splitPosition.hasSameParentAs(ne.deletionPosition)&&!te.splitPosition.isAfter(ne.deletionPosition)&&te.howMany--,te.splitPosition.hasSameParentAs(ne.targetPosition)&&(te.howMany+=ne.howMany),te.splitPosition=te.splitPosition._getTransformedByMergeOperation(ne),te.insertionPosition=Hh.getInsertionPosition(te.splitPosition),te.graveyardPosition&&(te.graveyardPosition=te.graveyardPosition._getTransformedByMergeOperation(ne)),[te]})),tu(Hh,Fh,((te,ne,ie)=>{const re=hd._createFromPositionAndShift(ne.sourcePosition,ne.howMany);if(te.graveyardPosition){const le=re.start.isEqual(te.graveyardPosition)||re.containsPosition(te.graveyardPosition);if(!ie.bWasUndone&&le){const ie=te.splitPosition._getTransformedByMoveOperation(ne),re=te.graveyardPosition._getTransformedByMoveOperation(ne),le=re.path.slice();le.push(0);const ce=new rd(re.root,le);return[new Fh(ie,te.howMany,ce,0)]}te.graveyardPosition=te.graveyardPosition._getTransformedByMoveOperation(ne)}const le=te.splitPosition.isEqual(ne.targetPosition);if(le&&("insertAtSource"==ie.baRelation||"splitBefore"==ie.abRelation))return te.howMany+=ne.howMany,te.splitPosition=te.splitPosition._getTransformedByDeletion(ne.sourcePosition,ne.howMany),te.insertionPosition=Hh.getInsertionPosition(te.splitPosition),[te];if(le&&ie.abRelation&&ie.abRelation.howMany){const{howMany:ne,offset:re}=ie.abRelation;return te.howMany+=ne,te.splitPosition=te.splitPosition.getShiftedBy(re),[te]}if(te.splitPosition.hasSameParentAs(ne.sourcePosition)&&re.containsPosition(te.splitPosition)){const ie=ne.howMany-(te.splitPosition.offset-ne.sourcePosition.offset);return te.howMany-=ie,te.splitPosition.hasSameParentAs(ne.targetPosition)&&te.splitPosition.offset<ne.targetPosition.offset&&(te.howMany+=ne.howMany),te.splitPosition=ne.sourcePosition.clone(),te.insertionPosition=Hh.getInsertionPosition(te.splitPosition),[te]}return ne.sourcePosition.isEqual(ne.targetPosition)||(te.splitPosition.hasSameParentAs(ne.sourcePosition)&&te.splitPosition.offset<=ne.sourcePosition.offset&&(te.howMany-=ne.howMany),te.splitPosition.hasSameParentAs(ne.targetPosition)&&te.splitPosition.offset<ne.targetPosition.offset&&(te.howMany+=ne.howMany)),te.splitPosition.stickiness="toNone",te.splitPosition=te.splitPosition._getTransformedByMoveOperation(ne),te.splitPosition.stickiness="toNext",te.graveyardPosition?te.insertionPosition=te.insertionPosition._getTransformedByMoveOperation(ne):te.insertionPosition=Hh.getInsertionPosition(te.splitPosition),[te]})),tu(Hh,Hh,((te,ne,ie)=>{if(te.splitPosition.isEqual(ne.splitPosition)){if(!te.graveyardPosition&&!ne.graveyardPosition)return[new Zh(0)];if(te.graveyardPosition&&ne.graveyardPosition&&te.graveyardPosition.isEqual(ne.graveyardPosition))return[new Zh(0)];if("splitBefore"==ie.abRelation)return te.howMany=0,te.graveyardPosition=te.graveyardPosition._getTransformedBySplitOperation(ne),[te]}if(te.graveyardPosition&&ne.graveyardPosition&&te.graveyardPosition.isEqual(ne.graveyardPosition)){const re="$graveyard"==te.splitPosition.root.rootName,le="$graveyard"==ne.splitPosition.root.rootName;if(le&&!re||(!re||le)&&ie.aIsStrong){const ie=[];return ne.howMany&&ie.push(new Fh(ne.moveTargetPosition,ne.howMany,ne.splitPosition,0)),te.howMany&&ie.push(new Fh(te.splitPosition,te.howMany,te.moveTargetPosition,0)),ie}return[new Zh(0)]}if(te.graveyardPosition&&(te.graveyardPosition=te.graveyardPosition._getTransformedBySplitOperation(ne)),te.splitPosition.isEqual(ne.insertionPosition)&&"splitBefore"==ie.abRelation)return te.howMany++,[te];if(ne.splitPosition.isEqual(te.insertionPosition)&&"splitBefore"==ie.baRelation){const ie=ne.insertionPosition.path.slice();ie.push(0);const re=new rd(ne.insertionPosition.root,ie);return[te,new Fh(te.insertionPosition,1,re,0)]}return te.splitPosition.hasSameParentAs(ne.splitPosition)&&te.splitPosition.offset<ne.splitPosition.offset&&(te.howMany-=ne.howMany),te.splitPosition=te.splitPosition._getTransformedBySplitOperation(ne),te.insertionPosition=Hh.getInsertionPosition(te.splitPosition),[te]}));class du extends(M(rd)){constructor(te,ne,ie="toNone"){if(super(te,ne,ie),!this.root.is("rootElement"))throw new C("model-liveposition-root-not-rootelement",te);hu.call(this)}detach(){this.stopListening()}toPosition(){return new rd(this.root,this.path.slice(),this.stickiness)}static fromPosition(te,ne){return new this(te.root,te.path.slice(),ne||te.stickiness)}}function hu(){this.listenTo(this.root.document.model,"applyOperation",((te,ne)=>{const ie=ne[0];ie.isDocumentOperation&&uu.call(this,ie)}),{priority:"low"})}function uu(te){const ne=this.getTransformedByOperation(te);if(!this.isEqual(ne)){const te=this.toPosition();this.path=ne.path,this.root=ne.root,this.fire("change",te)}}du.prototype.is=function(te){return"livePosition"===te||"model:livePosition"===te||"position"==te||"model:position"===te};class mu{constructor(te={}){"string"==typeof te&&(te="transparent"===te?{isUndoable:!1}:{},_("batch-constructor-deprecated-string-type"));const{isUndoable:ne=!0,isLocal:ie=!0,isUndo:re=!1,isTyping:le=!1}=te;this.operations=[],this.isUndoable=ne,this.isLocal=ie,this.isUndo=re,this.isTyping=le}get type(){return _("batch-type-deprecated"),"default"}get baseVersion(){for(const te of this.operations)if(null!==te.baseVersion)return te.baseVersion;return null}addOperation(te){return te.batch=this,this.operations.push(te),te}}class gu{constructor(te){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=te}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(te){const ne=te;switch(ne.type){case"insert":if(this._isInInsertedElement(ne.position.parent))return;this._markInsert(ne.position.parent,ne.position.offset,ne.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const te of ne.range.getItems({shallow:!0}))this._isInInsertedElement(te.parent)||this._markAttribute(te);break;case"remove":case"move":case"reinsert":{if(ne.sourcePosition.isEqual(ne.targetPosition)||ne.sourcePosition.getShiftedBy(ne.howMany).isEqual(ne.targetPosition))return;const te=this._isInInsertedElement(ne.sourcePosition.parent),ie=this._isInInsertedElement(ne.targetPosition.parent);te||this._markRemove(ne.sourcePosition.parent,ne.sourcePosition.offset,ne.howMany),ie||this._markInsert(ne.targetPosition.parent,ne.getMovedRangeStart().offset,ne.howMany);break}case"rename":{if(this._isInInsertedElement(ne.position.parent))return;this._markRemove(ne.position.parent,ne.position.offset,1),this._markInsert(ne.position.parent,ne.position.offset,1);const te=hd._createFromPositionAndShift(ne.position,1);for(const ne of this._markerCollection.getMarkersIntersectingRange(te)){const te=ne.getData();this.bufferMarkerChange(ne.name,te,te)}break}case"split":{const te=ne.splitPosition.parent;this._isInInsertedElement(te)||this._markRemove(te,ne.splitPosition.offset,ne.howMany),this._isInInsertedElement(ne.insertionPosition.parent)||this._markInsert(ne.insertionPosition.parent,ne.insertionPosition.offset,1),ne.graveyardPosition&&this._markRemove(ne.graveyardPosition.parent,ne.graveyardPosition.offset,1);break}case"merge":{const te=ne.sourcePosition.parent;this._isInInsertedElement(te.parent)||this._markRemove(te.parent,te.startOffset,1);const ie=ne.graveyardPosition.parent;this._markInsert(ie,ne.graveyardPosition.offset,1);const re=ne.targetPosition.parent;this._isInInsertedElement(re)||this._markInsert(re,ne.targetPosition.offset,te.maxOffset);break}case"detachRoot":case"addRoot":{const te=ne.affectedSelectable;if(!te._isLoaded)return;if(te.isAttached()==ne.isAdd)return;this._bufferRootStateChange(ne.rootName,ne.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!ne.root._isLoaded)return;const te=ne.root.rootName;this._bufferRootAttributeChange(te,ne.key,ne.oldValue,ne.newValue);break}}this._cachedChanges=null}bufferMarkerChange(te,ne,ie){ne.range&&ne.range.root.is("rootElement")&&!ne.range.root._isLoaded&&(ne.range=null),ie.range&&ie.range.root.is("rootElement")&&!ie.range.root._isLoaded&&(ie.range=null);let re=this._changedMarkers.get(te);re?re.newMarkerData=ie:(re={newMarkerData:ie,oldMarkerData:ne},this._changedMarkers.set(te,re)),null==re.oldMarkerData.range&&null==ie.range&&this._changedMarkers.delete(te)}getMarkersToRemove(){const te=[];for(const[ne,ie]of this._changedMarkers)null!=ie.oldMarkerData.range&&te.push({name:ne,range:ie.oldMarkerData.range});return te}getMarkersToAdd(){const te=[];for(const[ne,ie]of this._changedMarkers)null!=ie.newMarkerData.range&&te.push({name:ne,range:ie.newMarkerData.range});return te}getChangedMarkers(){return Array.from(this._changedMarkers).map((([te,ne])=>({name:te,data:{oldRange:ne.oldMarkerData.range,newRange:ne.newMarkerData.range}})))}hasDataChanges(){if(this._changesInElement.size>0)return!0;if(this._changedRoots.size>0)return!0;for(const{newMarkerData:te,oldMarkerData:ne}of this._changedMarkers.values()){if(te.affectsData!==ne.affectsData)return!0;if(te.affectsData){const ie=te.range&&!ne.range,re=!te.range&&ne.range,le=te.range&&ne.range&&!te.range.isEqual(ne.range);if(ie||re||le)return!0}}return!1}getChanges(te={}){if(this._cachedChanges)return te.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let ne=[];for(const te of this._changesInElement.keys()){const ie=this._changesInElement.get(te).sort(((te,ne)=>te.offset===ne.offset?te.type!=ne.type?"remove"==te.type?-1:1:0:te.offset<ne.offset?-1:1)),re=this._elementSnapshots.get(te),le=pu(te.getChildren()),ce=fu(re.length,ie);let de=0,ue=0;for(const ie of ce)if("i"===ie)ne.push(this._getInsertDiff(te,de,le[de])),de++;else if("r"===ie)ne.push(this._getRemoveDiff(te,de,re[ue])),ue++;else if("a"===ie){const ie=le[de].attributes,ce=re[ue].attributes;let me;if("$text"==le[de].name)me=new hd(rd._createAt(te,de),rd._createAt(te,de+1));else{const ne=te.offsetToIndex(de);me=new hd(rd._createAt(te,de),rd._createAt(te.getChild(ne),0))}ne.push(...this._getAttributesDiff(me,ce,ie)),de++,ue++}else de++,ue++}ne.sort(((te,ne)=>te.position.root!=ne.position.root?te.position.root.rootName<ne.position.root.rootName?-1:1:te.position.isEqual(ne.position)?te.changeCount-ne.changeCount:te.position.isBefore(ne.position)?-1:1));for(let te=1,ie=0;te<ne.length;te++){const re=ne[ie],le=ne[te],ce="remove"==re.type&&"remove"==le.type&&"$text"==re.name&&"$text"==le.name&&re.position.isEqual(le.position),de="insert"==re.type&&"insert"==le.type&&"$text"==re.name&&"$text"==le.name&&re.position.parent==le.position.parent&&re.position.offset+re.length==le.position.offset,ue="attribute"==re.type&&"attribute"==le.type&&re.position.parent==le.position.parent&&re.range.isFlat&&le.range.isFlat&&re.position.offset+re.length==le.position.offset&&re.attributeKey==le.attributeKey&&re.attributeOldValue==le.attributeOldValue&&re.attributeNewValue==le.attributeNewValue;ce||de||ue?(re.length++,ue&&(re.range.end=re.range.end.getShiftedBy(1)),ne[te]=null):ie=te}ne=ne.filter((te=>te));for(const te of ne)delete te.changeCount,"attribute"==te.type&&(delete te.position,delete te.length);return this._changeCount=0,this._cachedChangesWithGraveyard=ne,this._cachedChanges=ne.filter(ku),te.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map((te=>{const ne={...te};return void 0!==ne.state&&delete ne.attributes,ne}))}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(te,ne){if(!this._changedRoots.has(te))return void this._changedRoots.set(te,{name:te,state:ne?"attached":"detached"});const ie=this._changedRoots.get(te);void 0!==ie.state?(delete ie.state,void 0===ie.attributes&&this._changedRoots.delete(te)):ie.state=ne?"attached":"detached"}_bufferRootAttributeChange(te,ne,ie,re){const le=this._changedRoots.get(te)||{name:te},ce=le.attributes||{};if(ce[ne]){const te=ce[ne];re===te.oldValue?delete ce[ne]:te.newValue=re}else ce[ne]={oldValue:ie,newValue:re};0===Object.entries(ce).length?(delete le.attributes,void 0===le.state&&this._changedRoots.delete(te)):(le.attributes=ce,this._changedRoots.set(te,le))}_refreshItem(te){if(this._isInInsertedElement(te.parent))return;this._markRemove(te.parent,te.startOffset,te.offsetSize),this._markInsert(te.parent,te.startOffset,te.offsetSize),this._refreshedItems.add(te);const ne=hd._createOn(te);for(const te of this._markerCollection.getMarkersIntersectingRange(ne)){const ne=te.getData();this.bufferMarkerChange(te.name,ne,ne)}this._cachedChanges=null}_bufferRootLoad(te){if(te.isAttached()){this._bufferRootStateChange(te.rootName,!0),this._markInsert(te,0,te.maxOffset);for(const ne of te.getAttributeKeys())this._bufferRootAttributeChange(te.rootName,ne,null,te.getAttribute(ne));for(const ne of this._markerCollection)if(ne.getRange().root==te){const te=ne.getData();this.bufferMarkerChange(ne.name,{...te,range:null},te)}}}_markInsert(te,ne,ie){if(te.root.is("rootElement")&&!te.root._isLoaded)return;const re={type:"insert",offset:ne,howMany:ie,count:this._changeCount++};this._markChange(te,re)}_markRemove(te,ne,ie){if(te.root.is("rootElement")&&!te.root._isLoaded)return;const re={type:"remove",offset:ne,howMany:ie,count:this._changeCount++};this._markChange(te,re),this._removeAllNestedChanges(te,ne,ie)}_markAttribute(te){if(te.root.is("rootElement")&&!te.root._isLoaded)return;const ne={type:"attribute",offset:te.startOffset,howMany:te.offsetSize,count:this._changeCount++};this._markChange(te.parent,ne)}_markChange(te,ne){this._makeSnapshot(te);const ie=this._getChangesForElement(te);this._handleChange(ne,ie),ie.push(ne);for(let te=0;te<ie.length;te++)ie[te].howMany<1&&(ie.splice(te,1),te--)}_getChangesForElement(te){let ne;return this._changesInElement.has(te)?ne=this._changesInElement.get(te):(ne=[],this._changesInElement.set(te,ne)),ne}_makeSnapshot(te){this._elementSnapshots.has(te)||this._elementSnapshots.set(te,pu(te.getChildren()))}_handleChange(te,ne){te.nodesToHandle=te.howMany;for(const ie of ne){const re=te.offset+te.howMany,le=ie.offset+ie.howMany;if("insert"==te.type&&("insert"==ie.type&&(te.offset<=ie.offset?ie.offset+=te.howMany:te.offset<le&&(ie.howMany+=te.nodesToHandle,te.nodesToHandle=0)),"remove"==ie.type&&te.offset<ie.offset&&(ie.offset+=te.howMany),"attribute"==ie.type))if(te.offset<=ie.offset)ie.offset+=te.howMany;else if(te.offset<le){const le=ie.howMany;ie.howMany=te.offset-ie.offset,ne.unshift({type:"attribute",offset:re,howMany:le-ie.howMany,count:this._changeCount++})}if("remove"==te.type){if("insert"==ie.type)if(re<=ie.offset)ie.offset-=te.howMany;else if(re<=le)if(te.offset<ie.offset){const ne=re-ie.offset;ie.offset=te.offset,ie.howMany-=ne,te.nodesToHandle-=ne}else ie.howMany-=te.nodesToHandle,te.nodesToHandle=0;else if(te.offset<=ie.offset)te.nodesToHandle-=ie.howMany,ie.howMany=0;else if(te.offset<le){const ne=le-te.offset;ie.howMany-=ne,te.nodesToHandle-=ne}if("remove"==ie.type&&(re<=ie.offset?ie.offset-=te.howMany:te.offset<ie.offset&&(te.nodesToHandle+=ie.howMany,ie.howMany=0)),"attribute"==ie.type)if(re<=ie.offset)ie.offset-=te.howMany;else if(te.offset<ie.offset){const ne=re-ie.offset;ie.offset=te.offset,ie.howMany-=ne}else if(te.offset<le)if(re<=le){const re=ie.howMany;ie.howMany=te.offset-ie.offset;const le=re-ie.howMany-te.nodesToHandle;ne.unshift({type:"attribute",offset:te.offset,howMany:le,count:this._changeCount++})}else ie.howMany-=le-te.offset}if("attribute"==te.type){if("insert"==ie.type)if(te.offset<ie.offset&&re>ie.offset){if(re>le){const te={type:"attribute",offset:le,howMany:re-le,count:this._changeCount++};this._handleChange(te,ne),ne.push(te)}te.nodesToHandle=ie.offset-te.offset,te.howMany=te.nodesToHandle}else te.offset>=ie.offset&&te.offset<le&&(re>le?(te.nodesToHandle=re-le,te.offset=le):te.nodesToHandle=0);if("remove"==ie.type&&te.offset<ie.offset&&re>ie.offset){const le={type:"attribute",offset:ie.offset,howMany:re-ie.offset,count:this._changeCount++};this._handleChange(le,ne),ne.push(le),te.nodesToHandle=ie.offset-te.offset,te.howMany=te.nodesToHandle}"attribute"==ie.type&&(te.offset>=ie.offset&&re<=le?(te.nodesToHandle=0,te.howMany=0,te.offset=0):te.offset<=ie.offset&&re>=le&&(ie.howMany=0))}}te.howMany=te.nodesToHandle,delete te.nodesToHandle}_getInsertDiff(te,ne,ie){return{type:"insert",position:rd._createAt(te,ne),name:ie.name,attributes:new Map(ie.attributes),length:1,changeCount:this._changeCount++,_element:ie.element}}_getRemoveDiff(te,ne,ie){return{type:"remove",position:rd._createAt(te,ne),name:ie.name,attributes:new Map(ie.attributes),length:1,changeCount:this._changeCount++,_element:ie.element}}_getAttributesDiff(te,ne,ie){const re=[];ie=new Map(ie);for(const[le,ce]of ne){const ne=ie.has(le)?ie.get(le):null;ne!==ce&&re.push({type:"attribute",position:te.start,range:te.clone(),length:1,attributeKey:le,attributeOldValue:ce,attributeNewValue:ne,changeCount:this._changeCount++}),ie.delete(le)}for(const[ne,le]of ie)re.push({type:"attribute",position:te.start,range:te.clone(),length:1,attributeKey:ne,attributeOldValue:null,attributeNewValue:le,changeCount:this._changeCount++});return re}_isInInsertedElement(te){const ne=te.parent;if(!ne)return!1;const ie=this._changesInElement.get(ne),re=te.startOffset;if(ie)for(const te of ie)if("insert"==te.type&&re>=te.offset&&re<te.offset+te.howMany)return!0;return this._isInInsertedElement(ne)}_removeAllNestedChanges(te,ne,ie){const re=new hd(rd._createAt(te,ne),rd._createAt(te,ne+ie));for(const te of re.getItems({shallow:!0}))te.is("element")&&(this._elementSnapshots.delete(te),this._changesInElement.delete(te),this._removeAllNestedChanges(te,0,te.maxOffset))}}function pu(te){const ne=[];for(const ie of te)if(ie.is("$text"))for(let te=0;te<ie.data.length;te++)ne.push({name:"$text",attributes:new Map(ie.getAttributes())});else ne.push({name:ie.name,attributes:new Map(ie.getAttributes()),element:ie});return ne}function fu(te,ne){const ie=[];let re=0,le=0;for(const te of ne){if(te.offset>re){for(let ne=0;ne<te.offset-re;ne++)ie.push("e");le+=te.offset-re}if("insert"==te.type){for(let ne=0;ne<te.howMany;ne++)ie.push("i");re=te.offset+te.howMany}else if("remove"==te.type){for(let ne=0;ne<te.howMany;ne++)ie.push("r");re=te.offset,le+=te.howMany}else ie.push(..."a".repeat(te.howMany).split("")),re=te.offset+te.howMany,le+=te.howMany}if(le<te)for(let ne=0;ne<te-le-re;ne++)ie.push("e");return ie}function ku(te){const ne="position"in te&&"$graveyard"==te.position.root.rootName,ie="range"in te&&"$graveyard"==te.range.root.rootName;return!ne&&!ie}class bu{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set,this._baseVersionToOperationIndex=new Map,this._version=0,this._gaps=new Map}get version(){return this._version}set version(te){this._operations.length&&te>this._version+1&&this._gaps.set(this._version,te),this._version=te}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(te){if(te.baseVersion!==this.version)throw new C("model-document-history-addoperation-incorrect-version",this,{operation:te,historyVersion:this.version});this._operations.push(te),this._version++,this._baseVersionToOperationIndex.set(te.baseVersion,this._operations.length-1)}getOperations(te,ne=this.version){if(!this._operations.length)return[];const ie=this._operations[0];void 0===te&&(te=ie.baseVersion);let re=ne-1;for(const[ne,ie]of this._gaps)te>ne&&te<ie&&(te=ie),re>ne&&re<ie&&(re=ne-1);if(re<ie.baseVersion||te>this.lastOperation.baseVersion)return[];let le=this._baseVersionToOperationIndex.get(te);void 0===le&&(le=0);let ce=this._baseVersionToOperationIndex.get(re);return void 0===ce&&(ce=this._operations.length-1),this._operations.slice(le,ce+1)}getOperation(te){const ne=this._baseVersionToOperationIndex.get(te);if(void 0!==ne)return this._operations[ne]}setOperationAsUndone(te,ne){this._undoPairs.set(ne,te),this._undoneOperations.add(te)}isUndoingOperation(te){return this._undoPairs.has(te)}isUndoneOperation(te){return this._undoneOperations.has(te)}getUndoneOperation(te){return this._undoPairs.get(te)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class wu extends nd{constructor(te,ne,ie="main"){super(ne),this._isAttached=!0,this._isLoaded=!0,this._document=te,this.rootName=ie}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}wu.prototype.is=function(te,ne){return ne?ne===this.name&&("rootElement"===te||"model:rootElement"===te||"element"===te||"model:element"===te):"rootElement"===te||"model:rootElement"===te||"element"===te||"model:element"===te||"node"===te||"model:node"===te};const zl="$graveyard";class Cu extends(M()){constructor(te){super(),this.model=te,this.history=new bu,this.selection=new Td(this),this.roots=new Di({idProperty:"rootName"}),this.differ=new gu(te.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",zl),this.listenTo(te,"applyOperation",((te,ne)=>{const ie=ne[0];ie.isDocumentOperation&&this.differ.bufferOperation(ie)}),{priority:"high"}),this.listenTo(te,"applyOperation",((te,ne)=>{const ie=ne[0];ie.isDocumentOperation&&this.history.addOperation(ie)}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(te.markers,"update",((te,ne,ie,re,le)=>{const ce={...ne.getData(),range:re};this.differ.bufferMarkerChange(ne.name,le,ce),null===ie&&ne.on("change",((te,ie)=>{const re=ne.getData();this.differ.bufferMarkerChange(ne.name,{...re,range:ie},re)}))})),this.registerPostFixer((te=>{let ne=!1;for(const ie of this.roots)ie.isAttached()||ie.isEmpty||(te.remove(te.createRangeIn(ie)),ne=!0);for(const ie of this.model.markers)ie.getRange().root.isAttached()||(te.removeMarker(ie),ne=!0);return ne}))}get version(){return this.history.version}set version(te){this.history.version=te}get graveyard(){return this.getRoot(zl)}createRoot(te="$root",ne="main"){if(this.roots.get(ne))throw new C("model-document-createroot-name-exists",this,{name:ne});const ie=new wu(this,te,ne);return this.roots.add(ie),ie}destroy(){this.selection.destroy(),this.stopListening()}getRoot(te="main"){return this.roots.get(te)}getRootNames(te=!1){return this.getRoots(te).map((te=>te.rootName))}getRoots(te=!1){return this.roots.filter((ne=>ne!=this.graveyard&&(te||ne.isAttached())&&ne._isLoaded))}registerPostFixer(te){this._postFixers.add(te)}toJSON(){const te=qs(this);return te.selection="[engine.model.DocumentSelection]",te.model="[engine.model.Model]",te}_handleChangeBlock(te){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(te),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",te.batch):this.fire("change",te.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const te=this.getRoots();return te.length?te[0]:this.graveyard}_getDefaultRange(){const te=this._getDefaultRoot(),ne=this.model,ie=ne.schema,re=ne.createPositionFromPath(te,[0]);return ie.getNearestSelectionRange(re)||ne.createRange(re)}_validateSelectionRange(te){return _u(te.start)&&_u(te.end)}_callPostFixers(te){let ne=!1;do{for(const ie of this._postFixers)if(this.selection.refresh(),ne=ie(te),ne)break}while(ne)}}function _u(te){const ne=te.textNode;if(ne){const ie=ne.data,re=te.offset-ne.startOffset;return!Ni(ie,re)&&!zi(ie,re)}return!0}class vu extends(M()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(te){const ne=te instanceof yu?te.name:te;return this._markers.has(ne)}get(te){return this._markers.get(te)||null}_set(te,ne,ie=!1,re=!1){const le=te instanceof yu?te.name:te;if(le.includes(","))throw new C("markercollection-incorrect-marker-name",this);const ce=this._markers.get(le);if(ce){const te=ce.getData(),de=ce.getRange();let ue=!1;return de.isEqual(ne)||(ce._attachLiveRange(xd.fromRange(ne)),ue=!0),ie!=ce.managedUsingOperations&&(ce._managedUsingOperations=ie,ue=!0),"boolean"==typeof re&&re!=ce.affectsData&&(ce._affectsData=re,ue=!0),ue&&this.fire(`update:${le}`,ce,de,ne,te),ce}const de=xd.fromRange(ne),ue=new yu(le,de,ie,re);return this._markers.set(le,ue),this.fire(`update:${le}`,ue,null,ne,{...ue.getData(),range:null}),ue}_remove(te){const ne=te instanceof yu?te.name:te,ie=this._markers.get(ne);return!!ie&&(this._markers.delete(ne),this.fire(`update:${ne}`,ie,ie.getRange(),null,ie.getData()),this._destroyMarker(ie),!0)}_refresh(te){const ne=te instanceof yu?te.name:te,ie=this._markers.get(ne);if(!ie)throw new C("markercollection-refresh-marker-not-exists",this);const re=ie.getRange();this.fire(`update:${ne}`,ie,re,re,ie.getData())}*getMarkersAtPosition(te){for(const ne of this)ne.getRange().containsPosition(te)&&(yield ne)}*getMarkersIntersectingRange(te){for(const ne of this)null!==ne.getRange().getIntersection(te)&&(yield ne)}destroy(){for(const te of this._markers.values())this._destroyMarker(te);this._markers=null,this.stopListening()}*getMarkersGroup(te){for(const ne of this._markers.values())ne.name.startsWith(te+":")&&(yield ne)}_destroyMarker(te){te.stopListening(),te._detachLiveRange()}}class yu extends(M(Qc)){constructor(te,ne,ie,re){super(),this.name=te,this._liveRange=this._attachLiveRange(ne),this._managedUsingOperations=ie,this._affectsData=re}get managedUsingOperations(){if(!this._liveRange)throw new C("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new C("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new C("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new C("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new C("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(te){return this._liveRange&&this._detachLiveRange(),te.delegate("change:range").to(this),te.delegate("change:content").to(this),this._liveRange=te,te}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}yu.prototype.is=function(te){return"marker"===te||"model:marker"===te};class xu extends Bh{constructor(te,ne){super(null),this.sourcePosition=te.clone(),this.howMany=ne}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const te=super.toJSON();return te.sourcePosition=this.sourcePosition.toJSON(),te}_validate(){if(this.sourcePosition.root.document)throw new C("detach-operation-on-document-node",this)}_execute(){zh(hd._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Eu extends Qc{constructor(te){super(),this.markers=new Map,this._children=new Xc,te&&this._insertChild(0,te)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(te){return this._children.getNode(te)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(te){return this._children.getNodeIndex(te)}getChildStartOffset(te){return this._children.getNodeStartOffset(te)}getPath(){return[]}getNodeByPath(te){let ne=this;for(const ie of te)ne=ne.getChild(ne.offsetToIndex(ie));return ne}offsetToIndex(te){return this._children.offsetToIndex(te)}toJSON(){const te=[];for(const ne of this._children)te.push(ne.toJSON());return te}static fromJSON(te){const ne=[];for(const ie of te)ie.name?ne.push(nd.fromJSON(ie)):ne.push(td.fromJSON(ie));return new Eu(ne)}_appendChild(te){this._insertChild(this.childCount,te)}_insertChild(te,ne){const ie=function(te){return"string"==typeof te?[new td(te)]:(et(te)||(te=[te]),Array.from(te).map((te=>"string"==typeof te?new td(te):te instanceof ed?new td(te.data,te.getAttributes()):te)))}(ne);for(const te of ie)null!==te.parent&&te._remove(),te.parent=this;this._children._insertNodes(te,ie)}_removeChildren(te,ne=1){const ie=this._children._removeNodes(te,ne);for(const te of ie)te.parent=null;return ie}}Eu.prototype.is=function(te){return"documentFragment"===te||"model:documentFragment"===te};class Du{constructor(te,ne){this.model=te,this.batch=ne}createText(te,ne){return new td(te,ne)}createElement(te,ne){return new nd(te,ne)}createDocumentFragment(){return new Eu}cloneElement(te,ne=!0){return te._clone(ne)}insert(te,ne,ie=0){if(this._assertWriterUsedCorrectly(),te instanceof td&&""==te.data)return;const re=rd._createAt(ne,ie);if(te.parent){if(Bu(te.root,re.root))return void this.move(hd._createOn(te),re);if(te.root.document)throw new C("model-writer-insert-forbidden-move",this);this.remove(te)}const le=re.root.document?re.root.document.version:null,ce=new jh(re,te,le);if(te instanceof td&&(ce.shouldReceiveAttributes=!0),this.batch.addOperation(ce),this.model.applyOperation(ce),te instanceof Eu)for(const[ne,ie]of te.markers){const te=rd._createAt(ie.root,0),le={range:new hd(ie.start._getCombined(te,re),ie.end._getCombined(te,re)),usingOperation:!0,affectsData:!0};this.model.markers.has(ne)?this.updateMarker(ne,le):this.addMarker(ne,le)}}insertText(te,ne,ie,re){ne instanceof Eu||ne instanceof nd||ne instanceof rd?this.insert(this.createText(te),ne,ie):this.insert(this.createText(te,ne),ie,re)}insertElement(te,ne,ie,re){ne instanceof Eu||ne instanceof nd||ne instanceof rd?this.insert(this.createElement(te),ne,ie):this.insert(this.createElement(te,ne),ie,re)}append(te,ne){this.insert(te,ne,"end")}appendText(te,ne,ie){ne instanceof Eu||ne instanceof nd?this.insert(this.createText(te),ne,"end"):this.insert(this.createText(te,ne),ie,"end")}appendElement(te,ne,ie){ne instanceof Eu||ne instanceof nd?this.insert(this.createElement(te),ne,"end"):this.insert(this.createElement(te,ne),ie,"end")}setAttribute(te,ne,ie){if(this._assertWriterUsedCorrectly(),ie instanceof hd){const re=ie.getMinimalFlatRanges();for(const ie of re)Su(this,te,ne,ie)}else Tu(this,te,ne,ie)}setAttributes(te,ne){for(const[ie,re]of Mi(te))this.setAttribute(ie,re,ne)}removeAttribute(te,ne){if(this._assertWriterUsedCorrectly(),ne instanceof hd){const ie=ne.getMinimalFlatRanges();for(const ne of ie)Su(this,te,null,ne)}else Tu(this,te,null,ne)}clearAttributes(te){this._assertWriterUsedCorrectly();const e=te=>{for(const ne of te.getAttributeKeys())this.removeAttribute(ne,te)};if(te instanceof hd)for(const ne of te.getItems())e(ne);else e(te)}move(te,ne,ie){if(this._assertWriterUsedCorrectly(),!(te instanceof hd))throw new C("writer-move-invalid-range",this);if(!te.isFlat)throw new C("writer-move-range-not-flat",this);const re=rd._createAt(ne,ie);if(re.isEqual(te.start))return;if(this._addOperationForAffectedMarkers("move",te),!Bu(te.root,re.root))throw new C("writer-move-different-document",this);const le=te.root.document?te.root.document.version:null,ce=new Fh(te.start,te.end.offset-te.start.offset,re,le);this.batch.addOperation(ce),this.model.applyOperation(ce)}remove(te){this._assertWriterUsedCorrectly();const ne=(te instanceof hd?te:hd._createOn(te)).getMinimalFlatRanges().reverse();for(const te of ne)this._addOperationForAffectedMarkers("move",te),Mu(te.start,te.end.offset-te.start.offset,this.batch,this.model)}merge(te){this._assertWriterUsedCorrectly();const ne=te.nodeBefore,ie=te.nodeAfter;if(this._addOperationForAffectedMarkers("merge",te),!(ne instanceof nd))throw new C("writer-merge-no-element-before",this);if(!(ie instanceof nd))throw new C("writer-merge-no-element-after",this);te.root.document?this._merge(te):this._mergeDetached(te)}createPositionFromPath(te,ne,ie){return this.model.createPositionFromPath(te,ne,ie)}createPositionAt(te,ne){return this.model.createPositionAt(te,ne)}createPositionAfter(te){return this.model.createPositionAfter(te)}createPositionBefore(te){return this.model.createPositionBefore(te)}createRange(te,ne){return this.model.createRange(te,ne)}createRangeIn(te){return this.model.createRangeIn(te)}createRangeOn(te){return this.model.createRangeOn(te)}createSelection(...te){return this.model.createSelection(...te)}_mergeDetached(te){const ne=te.nodeBefore,ie=te.nodeAfter;this.move(hd._createIn(ie),rd._createAt(ne,"end")),this.remove(ie)}_merge(te){const ne=rd._createAt(te.nodeBefore,"end"),ie=rd._createAt(te.nodeAfter,0),re=te.root.document.graveyard,le=new rd(re,[0]),ce=te.root.document.version,de=new Uh(ie,te.nodeAfter.maxOffset,ne,le,ce);this.batch.addOperation(de),this.model.applyOperation(de)}rename(te,ne){if(this._assertWriterUsedCorrectly(),!(te instanceof nd))throw new C("writer-rename-not-element-instance",this);const ie=te.root.document?te.root.document.version:null,re=new $h(rd._createBefore(te),te.name,ne,ie);this.batch.addOperation(re),this.model.applyOperation(re)}split(te,ne){this._assertWriterUsedCorrectly();let ie,re,le=te.parent;if(!le.parent)throw new C("writer-split-element-no-parent",this);if(ne||(ne=le.parent),!te.parent.getAncestors({includeSelf:!0}).includes(ne))throw new C("writer-split-invalid-limit-element",this);do{const ne=le.root.document?le.root.document.version:null,ce=le.maxOffset-te.offset,de=Hh.getInsertionPosition(te),ue=new Hh(te,ce,de,null,ne);this.batch.addOperation(ue),this.model.applyOperation(ue),ie||re||(ie=le,re=te.parent.nextSibling),le=(te=this.createPositionAfter(te.parent)).parent}while(le!==ne);return{position:te,range:new hd(rd._createAt(ie,"end"),rd._createAt(re,0))}}wrap(te,ne){if(this._assertWriterUsedCorrectly(),!te.isFlat)throw new C("writer-wrap-range-not-flat",this);const ie=ne instanceof nd?ne:new nd(ne);if(ie.childCount>0)throw new C("writer-wrap-element-not-empty",this);if(null!==ie.parent)throw new C("writer-wrap-element-attached",this);this.insert(ie,te.start);const re=new hd(te.start.getShiftedBy(1),te.end.getShiftedBy(1));this.move(re,rd._createAt(ie,0))}unwrap(te){if(this._assertWriterUsedCorrectly(),null===te.parent)throw new C("writer-unwrap-element-no-parent",this);this.move(hd._createIn(te),this.createPositionAfter(te)),this.remove(te)}addMarker(te,ne){if(this._assertWriterUsedCorrectly(),!ne||"boolean"!=typeof ne.usingOperation)throw new C("writer-addmarker-no-usingoperation",this);const ie=ne.usingOperation,re=ne.range,le=void 0!==ne.affectsData&&ne.affectsData;if(this.model.markers.has(te))throw new C("writer-addmarker-marker-exists",this);if(!re)throw new C("writer-addmarker-no-range",this);return ie?(Iu(this,te,null,re,le),this.model.markers.get(te)):this.model.markers._set(te,re,ie,le)}updateMarker(te,ne){this._assertWriterUsedCorrectly();const ie="string"==typeof te?te:te.name,re=this.model.markers.get(ie);if(!re)throw new C("writer-updatemarker-marker-not-exists",this);if(!ne)return _("writer-updatemarker-reconvert-using-editingcontroller",{markerName:ie}),void this.model.markers._refresh(re);const le="boolean"==typeof ne.usingOperation,ce="boolean"==typeof ne.affectsData,de=ce?ne.affectsData:re.affectsData;if(!le&&!ne.range&&!ce)throw new C("writer-updatemarker-wrong-options",this);const ue=re.getRange(),me=ne.range?ne.range:ue;le&&ne.usingOperation!==re.managedUsingOperations?ne.usingOperation?Iu(this,ie,null,me,de):(Iu(this,ie,ue,null,de),this.model.markers._set(ie,me,void 0,de)):re.managedUsingOperations?Iu(this,ie,ue,me,de):this.model.markers._set(ie,me,void 0,de)}removeMarker(te){this._assertWriterUsedCorrectly();const ne="string"==typeof te?te:te.name;if(!this.model.markers.has(ne))throw new C("writer-removemarker-no-marker",this);const ie=this.model.markers.get(ne);ie.managedUsingOperations?Iu(this,ne,ie.getRange(),null,ie.affectsData):this.model.markers._remove(ne)}addRoot(te,ne="$root"){this._assertWriterUsedCorrectly();const ie=this.model.document.getRoot(te);if(ie&&ie.isAttached())throw new C("writer-addroot-root-exists",this);const re=this.model.document,le=new Yh(te,ne,!0,re,re.version);return this.batch.addOperation(le),this.model.applyOperation(le),this.model.document.getRoot(te)}detachRoot(te){this._assertWriterUsedCorrectly();const ne="string"==typeof te?this.model.document.getRoot(te):te;if(!ne||!ne.isAttached())throw new C("writer-detachroot-no-root",this);for(const te of this.model.markers)te.getRange().root===ne&&this.removeMarker(te);for(const te of ne.getAttributeKeys())this.removeAttribute(te,ne);this.remove(this.createRangeIn(ne));const ie=this.model.document,re=new Yh(ne.rootName,ne.name,!1,ie,ie.version);this.batch.addOperation(re),this.model.applyOperation(re)}setSelection(...te){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...te)}setSelectionFocus(te,ne){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(te,ne)}setSelectionAttribute(te,ne){if(this._assertWriterUsedCorrectly(),"string"==typeof te)this._setSelectionAttribute(te,ne);else for(const[ne,ie]of Mi(te))this._setSelectionAttribute(ne,ie)}removeSelectionAttribute(te){if(this._assertWriterUsedCorrectly(),"string"==typeof te)this._removeSelectionAttribute(te);else for(const ne of te)this._removeSelectionAttribute(ne)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(te){this.model.document.selection._restoreGravity(te)}_setSelectionAttribute(te,ne){const ie=this.model.document.selection;if(ie.isCollapsed&&ie.anchor.parent.isEmpty){const re=Td._getStoreAttributeKey(te);this.setAttribute(re,ne,ie.anchor.parent)}ie._setAttribute(te,ne)}_removeSelectionAttribute(te){const ne=this.model.document.selection;if(ne.isCollapsed&&ne.anchor.parent.isEmpty){const ie=Td._getStoreAttributeKey(te);this.removeAttribute(ie,ne.anchor.parent)}ne._removeAttribute(te)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new C("writer-incorrect-use",this)}_addOperationForAffectedMarkers(te,ne){for(const ie of this.model.markers){if(!ie.managedUsingOperations)continue;const re=ie.getRange();let le=!1;if("move"===te){const te=ne;le=te.containsPosition(re.start)||te.start.isEqual(re.start)||te.containsPosition(re.end)||te.end.isEqual(re.end)}else{const te=ne,ie=te.nodeBefore,ce=te.nodeAfter,de=re.start.parent==ie&&re.start.isAtEnd,ue=re.end.parent==ce&&0==re.end.offset,me=re.end.nodeAfter==ce,ge=re.start.nodeAfter==ce;le=de||ue||me||ge}le&&this.updateMarker(ie.name,{range:re})}}}function Su(te,ne,ie,re){const le=te.model,ce=le.document;let de,ue,me,ge=re.start;for(const te of re.getWalker({shallow:!0}))me=te.item.getAttribute(ne),de&&ue!=me&&(ue!=ie&&d(),ge=de),de=te.nextPosition,ue=me;function d(){const re=new hd(ge,de),me=re.root.document?ce.version:null,fe=new qh(re,ne,ue,ie,me);te.batch.addOperation(fe),le.applyOperation(fe)}de instanceof rd&&de!=ge&&ue!=ie&&d()}function Tu(te,ne,ie,re){const le=te.model,ce=le.document,de=re.getAttribute(ne);let ue,me;if(de!=ie){if(re.root===re){const te=re.document?ce.version:null;me=new Kh(re,ne,de,ie,te)}else{ue=new hd(rd._createBefore(re),te.createPositionAfter(re));const le=ue.root.document?ce.version:null;me=new qh(ue,ne,de,ie,le)}te.batch.addOperation(me),le.applyOperation(me)}}function Iu(te,ne,ie,re,le){const ce=te.model,de=ce.document,ue=new Wh(ne,ie,re,ce.markers,!!le,de.version);te.batch.addOperation(ue),ce.applyOperation(ue)}function Mu(te,ne,ie,re){let le;if(te.root.document){const ie=re.document,ce=new rd(ie.graveyard,[0]);le=new Fh(te,ne,ce,ie.version)}else le=new xu(te,ne);ie.addOperation(le),re.applyOperation(le)}function Bu(te,ne){return te===ne||te instanceof wu&&ne instanceof wu}function Nu(te,ne,ie={}){if(ne.isCollapsed)return;const re=ne.getFirstRange();if("$graveyard"==re.root.rootName)return;const le=te.schema;te.change((te=>{if(!ie.doNotResetEntireContent&&function(te,ne){const ie=te.getLimitElement(ne);if(!ne.containsEntireContent(ie))return!1;const re=ne.getFirstRange();return re.start.parent!=re.end.parent&&te.checkChild(ie,"paragraph")}(le,ne))return void function(te,ne){const ie=te.model.schema.getLimitElement(ne);te.remove(te.createRangeIn(ie)),Ou(te,te.createPositionAt(ie,0),ne)}(te,ne);const ce={};if(!ie.doNotAutoparagraph){const te=ne.getSelectedElement();te&&Object.assign(ce,le.getAttributesWithProperty(te,"copyOnReplace",!0))}const[de,ue]=function(te){const ne=te.root.document.model,ie=te.start;let re=te.end;if(ne.hasContent(te,{ignoreMarkers:!0})){const ie=function(te){const ne=te.parent,ie=ne.root.document.model.schema,re=ne.getAncestors({parentFirst:!0,includeSelf:!0});for(const te of re){if(ie.isLimit(te))return null;if(ie.isBlock(te))return te}}(re);if(ie&&re.isTouching(ne.createPositionAt(ie,0))){const ie=ne.createSelection(te);ne.modifySelection(ie,{direction:"backward"});const le=ie.getLastPosition(),ce=ne.createRange(le,re);ne.hasContent(ce,{ignoreMarkers:!0})||(re=le)}}return[du.fromPosition(ie,"toPrevious"),du.fromPosition(re,"toNext")]}(re);de.isTouching(ue)||te.remove(te.createRange(de,ue)),ie.leaveUnmerged||(function(te,ne,ie){const re=te.model;if(!Lu(te.model.schema,ne,ie))return;const[le,ce]=function(te,ne){const ie=te.getAncestors(),re=ne.getAncestors();let le=0;for(;ie[le]&&ie[le]==re[le];)le++;return[ie[le],re[le]]}(ne,ie);le&&ce&&(!re.hasContent(le,{ignoreMarkers:!0})&&re.hasContent(ce,{ignoreMarkers:!0})?Pu(te,ne,ie,le.parent):zu(te,ne,ie,le.parent))}(te,de,ue),le.removeDisallowedAttributes(de.parent.getChildren(),te)),Ru(te,ne,de),!ie.doNotAutoparagraph&&function(te,ne){const ie=te.checkChild(ne,"$text"),re=te.checkChild(ne,"paragraph");return!ie&&re}(le,de)&&Ou(te,de,ne,ce),de.detach(),ue.detach()}))}function zu(te,ne,ie,re){const le=ne.parent,ce=ie.parent;if(le!=re&&ce!=re){for(ne=te.createPositionAfter(le),(ie=te.createPositionBefore(ce)).isEqual(ne)||te.insert(ce,ne),te.merge(ne);ie.parent.isEmpty;){const ne=ie.parent;ie=te.createPositionBefore(ne),te.remove(ne)}Lu(te.model.schema,ne,ie)&&zu(te,ne,ie,re)}}function Pu(te,ne,ie,re){const le=ne.parent,ce=ie.parent;if(le!=re&&ce!=re){for(ne=te.createPositionAfter(le),(ie=te.createPositionBefore(ce)).isEqual(ne)||te.insert(le,ie);ne.parent.isEmpty;){const ie=ne.parent;ne=te.createPositionBefore(ie),te.remove(ie)}ie=te.createPositionBefore(ce),function(te,ne){const ie=ne.nodeBefore,re=ne.nodeAfter;ie.name!=re.name&&te.rename(ie,re.name),te.clearAttributes(ie),te.setAttributes(Object.fromEntries(re.getAttributes()),ie),te.merge(ne)}(te,ie),Lu(te.model.schema,ne,ie)&&Pu(te,ne,ie,re)}}function Lu(te,ne,ie){const re=ne.parent,le=ie.parent;return re!=le&&!te.isLimit(re)&&!te.isLimit(le)&&function(te,ne,ie){const re=new hd(te,ne);for(const te of re.getWalker())if(ie.isLimit(te.item))return!1;return!0}(ne,ie,te)}function Ou(te,ne,ie,re={}){const le=te.createElement("paragraph");te.model.schema.setAllowedAttributes(le,re,te),te.insert(le,ne),Ru(te,ie,te.createPositionAt(le,0))}function Ru(te,ne,ie){ne instanceof Td?te.setSelection(ie):ne.setTo(ie)}function Vu(te,ne){const ie=[];Array.from(te.getItems({direction:"backward"})).map((te=>ne.createRangeOn(te))).filter((ne=>(ne.start.isAfter(te.start)||ne.start.isEqual(te.start))&&(ne.end.isBefore(te.end)||ne.end.isEqual(te.end)))).forEach((te=>{ie.push(te.start.parent),ne.remove(te)})),ie.forEach((te=>{let ie=te;for(;ie.parent&&ie.isEmpty;){const te=ne.createRangeOn(ie);ie=ie.parent,ne.remove(te)}}))}class Fu{constructor(te,ne,ie){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=te,this.writer=ne,this.position=ie,this.canMergeWith=new Set([this.position.parent]),this.schema=te.schema,this._documentFragment=ne.createDocumentFragment(),this._documentFragmentPosition=ne.createPositionAt(this._documentFragment,0)}handleNodes(te){for(const ne of Array.from(te))this._handleNode(ne);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(te){const ne=this.writer.createPositionAfter(this._lastNode),ie=this.writer.createPositionAfter(te);if(ie.isAfter(ne)){if(this._lastNode=te,this.position.parent!=te||!this.position.isAtEnd)throw new C("insertcontent-invalid-insertion-position",this);this.position=ie,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?hd._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new hd(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(te){if(this.schema.isObject(te))return void this._handleObject(te);let ne=this._checkAndAutoParagraphToAllowedPosition(te);ne||(ne=this._checkAndSplitToAllowedPosition(te),ne)?(this._appendToFragment(te),this._firstNode||(this._firstNode=te),this._lastNode=te):this._handleDisallowedNode(te)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const te=du.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=te.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=te.toPosition(),te.detach()}_handleObject(te){this._checkAndSplitToAllowedPosition(te)?this._appendToFragment(te):this._tryAutoparagraphing(te)}_handleDisallowedNode(te){te.is("element")?this.handleNodes(te.getChildren()):this._tryAutoparagraphing(te)}_appendToFragment(te){if(!this.schema.checkChild(this.position,te))throw new C("insertcontent-wrong-position",this,{node:te,position:this.position});this.writer.insert(te,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(te.offsetSize),this.schema.isObject(te)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=te:this._nodeToSelect=null,this._filterAttributesOf.push(te)}_setAffectedBoundaries(te){this._affectedStart||(this._affectedStart=du.fromPosition(te,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(te)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=du.fromPosition(te,"toNext"))}_mergeOnLeft(){const te=this._firstNode;if(!(te instanceof nd))return;if(!this._canMergeLeft(te))return;const ne=du._createBefore(te);ne.stickiness="toNext";const ie=du.fromPosition(this.position,"toNext");this._affectedStart.isEqual(ne)&&(this._affectedStart.detach(),this._affectedStart=du._createAt(ne.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=ne.nodeBefore,this._lastNode=ne.nodeBefore),this.writer.merge(ne),ne.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=du._createAt(ne.nodeBefore,"end","toNext")),this.position=ie.toPosition(),ie.detach(),this._filterAttributesOf.push(this.position.parent),ne.detach()}_mergeOnRight(){const te=this._lastNode;if(!(te instanceof nd))return;if(!this._canMergeRight(te))return;const ne=du._createAfter(te);if(ne.stickiness="toNext",!this.position.isEqual(ne))throw new C("insertcontent-invalid-insertion-position",this);this.position=rd._createAt(ne.nodeBefore,"end");const ie=du.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(ne)&&(this._affectedEnd.detach(),this._affectedEnd=du._createAt(ne.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=ne.nodeBefore,this._lastNode=ne.nodeBefore),this.writer.merge(ne),ne.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=du._createAt(ne.nodeBefore,0,"toPrevious")),this.position=ie.toPosition(),ie.detach(),this._filterAttributesOf.push(this.position.parent),ne.detach()}_canMergeLeft(te){const ne=te.previousSibling;return ne instanceof nd&&this.canMergeWith.has(ne)&&this.model.schema.checkMerge(ne,te)}_canMergeRight(te){const ne=te.nextSibling;return ne instanceof nd&&this.canMergeWith.has(ne)&&this.model.schema.checkMerge(te,ne)}_tryAutoparagraphing(te){const ne=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,ne)&&this.schema.checkChild(ne,te)&&(ne._appendChild(te),this._handleNode(ne))}_checkAndAutoParagraphToAllowedPosition(te){if(this.schema.checkChild(this.position.parent,te))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",te))return!1;this._insertPartialFragment();const ne=this.writer.createElement("paragraph");return this.writer.insert(ne,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=ne,this.position=this.writer.createPositionAt(ne,0),!0}_checkAndSplitToAllowedPosition(te){const ne=this._getAllowedIn(this.position.parent,te);if(!ne)return!1;for(ne!=this.position.parent&&this._insertPartialFragment();ne!=this.position.parent;)if(this.position.isAtStart){const te=this.position.parent;this.position=this.writer.createPositionBefore(te),te.isEmpty&&te.parent===ne&&this.writer.remove(te)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const te=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=te,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(te,ne){return this.schema.checkChild(te,ne)?te:this.schema.isLimit(te)?null:this._getAllowedIn(te.parent,ne)}}const Hl=' ,.?!:;"-()';function Uu(te,ne){const{isForward:ie,walker:re,unit:le,schema:ce,treatEmojiAsSingleUnit:de}=te,{type:ue,item:me,nextPosition:ge}=ne;if("text"==ue)return"word"===te.unit?function(te,ne){let ie=te.position.textNode;for(ie||(ie=ne?te.position.nodeAfter:te.position.nodeBefore);ie&&ie.is("$text");){const re=te.position.offset-ie.startOffset;if(qu(ie,re,ne))ie=ne?te.position.nodeAfter:te.position.nodeBefore;else{if(Gu(ie.data,re,ne))break;te.next()}}return te.position}(re,ie):function(te,ne,ie){const re=te.position.textNode;if(re){const le=re.data;let ce=te.position.offset-re.startOffset;for(;Ni(le,ce)||"character"==ne&&zi(le,ce)||ie&&Li(le,ce);)te.next(),ce=te.position.offset-re.startOffset}return te.position}(re,le,de);if(ue==(ie?"elementStart":"elementEnd")){if(ce.isSelectable(me))return rd._createAt(me,ie?"after":"before");if(ce.checkChild(ge,"$text"))return ge}else{if(ce.isLimit(me))return void re.skip((()=>!0));if(ce.checkChild(ge,"$text"))return ge}}function Wu(te,ne){const ie=te.root,re=rd._createAt(ie,ne?"end":0);return ne?new hd(te,re):new hd(re,te)}function Gu(te,ne,ie){const re=ne+(ie?0:-1);return Hl.includes(te.charAt(re))}function qu(te,ne,ie){return ne===(ie?te.offsetSize:0)}class Zu extends(q()){constructor(){super(),this.markers=new vu,this.document=new Cu(this),this.schema=new dh,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((te=>this.decorate(te))),this.on("applyOperation",((te,ne)=>{ne[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck(((te,ne)=>{if("$marker"===ne.name)return!0})),function nh(te){te.document.registerPostFixer((ne=>function(te,ne){const ie=ne.document.selection,re=ne.schema,le=[];let ce=!1;for(const te of ie.getRanges()){const ne=oh(te,re);ne&&!ne.isEqual(te)?(le.push(ne),ce=!0):le.push(te)}return ce&&te.setSelection(function(te){const ne=[...te],ie=new Set;let re=1;for(;re<ne.length;){const te=ne[re],le=ne.slice(0,re);for(const[ce,de]of le.entries())if(!ie.has(ce))if(te.isEqual(de))ie.add(ce);else if(te.isIntersecting(de)){ie.add(ce),ie.add(re);const le=te.getJoined(de);ne.push(le)}re++}return ne.filter(((te,ne)=>!ie.has(ne)))}(le),{backward:ie.isBackward}),!1}(ne,te)))}(this),this.document.registerPostFixer(qd),this.on("insertContent",((te,[ne,ie])=>{te.return=function(te,ne,ie){return te.change((re=>{const le=ie||te.document.selection;le.isCollapsed||te.deleteContent(le,{doNotAutoparagraph:!0});const ce=new Fu(te,re,le.anchor),de=[];let ue;if(ne.is("documentFragment")){if(ne.markers.size){const te=[];for(const[ie,re]of ne.markers){const{start:ne,end:le}=re,ce=ne.isEqual(le);te.push({position:ne,name:ie,isCollapsed:ce},{position:le,name:ie,isCollapsed:ce})}te.sort((({position:te},{position:ne})=>te.isBefore(ne)?1:-1));for(const{position:ie,name:le,isCollapsed:ce}of te){let te=null,ue=null;const me=ie.parent===ne&&ie.isAtStart,ge=ie.parent===ne&&ie.isAtEnd;me||ge?ce&&(ue=me?"start":"end"):(te=re.createElement("$marker"),re.insert(te,ie)),de.push({name:le,element:te,collapsed:ue})}}ue=ne.getChildren()}else ue=[ne];ce.handleNodes(ue);let me=ce.getSelectionRange();if(ne.is("documentFragment")&&de.length){const te=me?xd.fromRange(me):null,ne={};for(let te=de.length-1;te>=0;te--){const{name:ie,element:le,collapsed:ue}=de[te],me=!ne[ie];if(me&&(ne[ie]=[]),le){const te=re.createPositionAt(le,"before");ne[ie].push(te),re.remove(le)}else{const te=ce.getAffectedRange();if(!te){ue&&ne[ie].push(ce.position);continue}ue?ne[ie].push(te[ue]):ne[ie].push(me?te.start:te.end)}}for(const[te,[ie,le]]of Object.entries(ne))ie&&le&&ie.root===le.root&&re.addMarker(te,{usingOperation:!0,affectsData:!0,range:new hd(ie,le)});te&&(me=te.toRange(),te.detach())}me&&(le instanceof Td?re.setSelection(me):le.setTo(me));const ge=ce.getAffectedRange()||te.createRange(le.anchor);return ce.destroy(),ge}))}(this,ne,ie)})),this.on("insertObject",((te,[ne,ie,re])=>{te.return=function ju(te,ne,ie,re={}){if(!te.schema.isObject(ne))throw new C("insertobject-element-not-an-object",te,{object:ne});const le=ie||te.document.selection;let ce=le;re.findOptimalPosition&&te.schema.isBlock(ne)&&(ce=te.createSelection(te.schema.findOptimalInsertionRange(le,re.findOptimalPosition)));const de=Si(le.getSelectedBlocks()),ue={};return de&&Object.assign(ue,te.schema.getAttributesWithProperty(de,"copyOnReplace",!0)),te.change((ie=>{ce.isCollapsed||te.deleteContent(ce,{doNotAutoparagraph:!0});let le=ne;const de=ce.anchor.parent;!te.schema.checkChild(de,ne)&&te.schema.checkChild(de,"paragraph")&&te.schema.checkChild("paragraph",ne)&&(le=ie.createElement("paragraph"),ie.insert(ne,le)),te.schema.setAllowedAttributes(le,ue,ie);const me=te.insertContent(le,ce);return me.isCollapsed||re.setSelection&&function(te,ne,ie,re){const le=te.model;if("on"==ie)return void te.setSelection(ne,"on");if("after"!=ie)throw new C("insertobject-invalid-place-parameter-value",le);let ce=ne.nextSibling;le.schema.isInline(ne)?te.setSelection(ne,"after"):(!(ce&&le.schema.checkChild(ce,"$text"))&&le.schema.checkChild(ne.parent,"paragraph")&&(ce=te.createElement("paragraph"),le.schema.setAllowedAttributes(ce,re,te),le.insertContent(ce,te.createPositionAfter(ne))),ce&&te.setSelection(ce,0))}(ie,ne,re.setSelection,ue),me}))}(this,ne,ie,re)})),this.on("canEditAt",(te=>{const ne=!this.document.isReadOnly;te.return=ne,ne||te.stop()}))}change(te){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new mu,callback:te}),this._runPendingChanges()[0]):te(this._currentWriter)}catch(te){C.rethrowUnexpectedError(te,this)}}enqueueChange(te,ne){try{te?"function"==typeof te?(ne=te,te=new mu):te instanceof mu||(te=new mu(te)):te=new mu,this._pendingChanges.push({batch:te,callback:ne}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(te){C.rethrowUnexpectedError(te,this)}}applyOperation(te){te._execute()}insertContent(te,ne,ie,...re){const le=$u(ne,ie);return this.fire("insertContent",[te,le,ie,...re])}insertObject(te,ne,ie,re,...le){const ce=$u(ne,ie);return this.fire("insertObject",[te,ce,re,re,...le])}deleteContent(te,ne){Nu(this,te,ne)}modifySelection(te,ne){!function(te,ne,ie={}){const re=te.schema,le="backward"!=ie.direction,ce=ie.unit?ie.unit:"character",de=!!ie.treatEmojiAsSingleUnit,ue=ne.focus,me=new od({boundaries:Wu(ue,le),singleCharacters:!0,direction:le?"forward":"backward"}),ge={walker:me,schema:re,isForward:le,unit:ce,treatEmojiAsSingleUnit:de};let fe;for(;fe=me.next();){if(fe.done)return;const ie=Uu(ge,fe.value);if(ie)return void(ne instanceof Td?te.change((te=>{te.setSelectionFocus(ie)})):ne.setFocus(ie))}}(this,te,ne)}getSelectedContent(te){return function(te,ne){return te.change((te=>{const ie=te.createDocumentFragment(),re=ne.getFirstRange();if(!re||re.isCollapsed)return ie;const le=re.start.root,ce=re.start.getCommonPath(re.end),de=le.getNodeByPath(ce);let ue;ue=re.start.parent==re.end.parent?re:te.createRange(te.createPositionAt(de,re.start.path[ce.length]),te.createPositionAt(de,re.end.path[ce.length]+1));const me=ue.end.offset-ue.start.offset;for(const ne of ue.getItems({shallow:!0}))ne.is("$textProxy")?te.appendText(ne.data,ne.getAttributes(),ie):te.append(te.cloneElement(ne,!0),ie);if(ue!=re){const ne=re._getTransformedByMove(ue.start,te.createPositionAt(ie,0),me)[0],le=te.createRange(te.createPositionAt(ie,0),ne.start);Vu(te.createRange(ne.end,te.createPositionAt(ie,"end")),te),Vu(le,te)}return ie}))}(this,te)}hasContent(te,ne={}){const ie=te instanceof hd?te:hd._createIn(te);if(ie.isCollapsed)return!1;const{ignoreWhitespaces:re=!1,ignoreMarkers:le=!1}=ne;if(!le)for(const te of this.markers.getMarkersIntersectingRange(ie))if(te.affectsData)return!0;for(const te of ie.getItems())if(this.schema.isContent(te)){if(!te.is("$textProxy"))return!0;if(!re)return!0;if(-1!==te.data.search(/\S/))return!0}return!1}canEditAt(te){const ne=$u(te);return this.fire("canEditAt",[ne])}createPositionFromPath(te,ne,ie){return new rd(te,ne,ie)}createPositionAt(te,ne){return rd._createAt(te,ne)}createPositionAfter(te){return rd._createAfter(te)}createPositionBefore(te){return rd._createBefore(te)}createRange(te,ne){return new hd(te,ne)}createRangeIn(te){return hd._createIn(te)}createRangeOn(te){return hd._createOn(te)}createSelection(...te){return new bd(...te)}createBatch(te){return new mu(te)}createOperationFromJSON(te){return Jh.fromJSON(te,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const te=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const ne=this._pendingChanges[0].batch;this._currentWriter=new Du(this,ne);const ie=this._pendingChanges[0].callback(this._currentWriter);te.push(ie),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return te}}function $u(te,ne){if(te)return te instanceof bd||te instanceof Td?te:te instanceof Jc?ne||0===ne?new bd(te,ne):te.is("rootElement")?new bd(te,"in"):new bd(te,"on"):new bd(te)}class Ku extends pc{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(te){this.fire(te.type,te)}}class Yu extends pc{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(te){this.fire(te.type,te)}}class Qu{constructor(te){this.document=te}createDocumentFragment(te){return new Dl(this.document,te)}createElement(te,ne,ie){return new Ka(this.document,te,ne,ie)}createText(te){return new $s(this.document,te)}clone(te,ne=!1){return te._clone(ne)}appendChild(te,ne){return ne._appendChild(te)}insertChild(te,ne,ie){return ie._insertChild(te,ne)}removeChildren(te,ne,ie){return ie._removeChildren(te,ne)}remove(te){const ne=te.parent;return ne?this.removeChildren(ne.getChildIndex(te),1,ne):[]}replace(te,ne){const ie=te.parent;if(ie){const re=ie.getChildIndex(te);return this.removeChildren(re,1,ie),this.insertChild(re,ne,ie),!0}return!1}unwrapElement(te){const ne=te.parent;if(ne){const ie=ne.getChildIndex(te);this.remove(te),this.insertChild(ie,te.getChildren(),ne)}}rename(te,ne){const ie=new Ka(this.document,te,ne.getAttributes(),ne.getChildren());return this.replace(ne,ie)?ie:null}setAttribute(te,ne,ie){ie._setAttribute(te,ne)}removeAttribute(te,ne){ne._removeAttribute(te)}addClass(te,ne){ne._addClass(te)}removeClass(te,ne){ne._removeClass(te)}setStyle(te,ne,ie){Et(te)&&void 0===ie?ne._setStyle(te):ie._setStyle(te,ne)}removeStyle(te,ne){ne._removeStyle(te)}setCustomProperty(te,ne,ie){ie._setCustomProperty(te,ne)}removeCustomProperty(te,ne){return ne._removeCustomProperty(te)}createPositionAt(te,ne){return ol._createAt(te,ne)}createPositionAfter(te){return ol._createAfter(te)}createPositionBefore(te){return ol._createBefore(te)}createRange(te,ne){return new il(te,ne)}createRangeOn(te){return il._createOn(te)}createRangeIn(te){return il._createIn(te)}createSelection(...te){return new sl(...te)}}const Ul=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,$l=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,Kl=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,nc=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,ic=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,oc=/\w+\((?:[^()]|\([^()]*\))*\)|\S+/gi,rc=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);function rm(te){return te.startsWith("#")?Ul.test(te):te.startsWith("rgb")?$l.test(te)||Kl.test(te):te.startsWith("hsl")?nc.test(te)||ic.test(te):rc.has(te.toLowerCase())}const sc=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function am(te){return sc.includes(te)}const mc=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function cm(te){return mc.test(te)}const bc=/^[+-]?[0-9]*([.][0-9]+)?%$/;function hm(te){return bc.test(te)}const Cc=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function mm(te){return Cc.includes(te)}const wc=["center","top","bottom","left","right"];function pm(te){return wc.includes(te)}const Ic=["fixed","scroll","local"];function km(te){return Ic.includes(te)}const Sc=/^url\(/;function wm(te){return Sc.test(te)}function Am(te=""){if(""===te)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const ne=ym(te),ie=ne[0],re=ne[2]||ie,le=ne[1]||ie;return{top:ie,bottom:re,right:le,left:ne[3]||le}}function Cm(te){return ne=>{const{top:ie,right:re,bottom:le,left:ce}=ne,de=[];return[ie,re,ce,le].every((te=>!!te))?de.push([te,_m(ne)]):(ie&&de.push([te+"-top",ie]),re&&de.push([te+"-right",re]),le&&de.push([te+"-bottom",le]),ce&&de.push([te+"-left",ce])),de}}function _m({top:te,right:ne,bottom:ie,left:re}){const le=[];return re!==ne?le.push(te,ne,ie,re):ie!==te?le.push(te,ne,ie):ne!==te?le.push(te,ne):le.push(te),le.join(" ")}function vm(te){return ne=>({path:te,value:Am(ne)})}function ym(te){const ne=te.matchAll(oc);return Array.from(ne).map((te=>te[0]))}function xm(te){te.setNormalizer("background",(te=>{const ne={},ie=ym(te);for(const te of ie)mm(te)?(ne.repeat=ne.repeat||[],ne.repeat.push(te)):pm(te)?(ne.position=ne.position||[],ne.position.push(te)):km(te)?ne.attachment=te:rm(te)?ne.color=te:wm(te)&&(ne.image=te);return{path:"background",value:ne}})),te.setNormalizer("background-color",(te=>({path:"background.color",value:te}))),te.setReducer("background",(te=>{const ne=[];return ne.push(["background-color",te.color]),ne})),te.setStyleRelation("background",["background-color"])}function Em(te){te.setNormalizer("border",(te=>{const{color:ne,style:ie,width:re}=Nm(te);return{path:"border",value:{color:Am(ne),style:Am(ie),width:Am(re)}}})),te.setNormalizer("border-top",Dm("top")),te.setNormalizer("border-right",Dm("right")),te.setNormalizer("border-bottom",Dm("bottom")),te.setNormalizer("border-left",Dm("left")),te.setNormalizer("border-color",Sm("color")),te.setNormalizer("border-width",Sm("width")),te.setNormalizer("border-style",Sm("style")),te.setNormalizer("border-top-color",Im("color","top")),te.setNormalizer("border-top-style",Im("style","top")),te.setNormalizer("border-top-width",Im("width","top")),te.setNormalizer("border-right-color",Im("color","right")),te.setNormalizer("border-right-style",Im("style","right")),te.setNormalizer("border-right-width",Im("width","right")),te.setNormalizer("border-bottom-color",Im("color","bottom")),te.setNormalizer("border-bottom-style",Im("style","bottom")),te.setNormalizer("border-bottom-width",Im("width","bottom")),te.setNormalizer("border-left-color",Im("color","left")),te.setNormalizer("border-left-style",Im("style","left")),te.setNormalizer("border-left-width",Im("width","left")),te.setExtractor("border-top",Mm("top")),te.setExtractor("border-right",Mm("right")),te.setExtractor("border-bottom",Mm("bottom")),te.setExtractor("border-left",Mm("left")),te.setExtractor("border-top-color","border.color.top"),te.setExtractor("border-right-color","border.color.right"),te.setExtractor("border-bottom-color","border.color.bottom"),te.setExtractor("border-left-color","border.color.left"),te.setExtractor("border-top-width","border.width.top"),te.setExtractor("border-right-width","border.width.right"),te.setExtractor("border-bottom-width","border.width.bottom"),te.setExtractor("border-left-width","border.width.left"),te.setExtractor("border-top-style","border.style.top"),te.setExtractor("border-right-style","border.style.right"),te.setExtractor("border-bottom-style","border.style.bottom"),te.setExtractor("border-left-style","border.style.left"),te.setReducer("border-color",Cm("border-color")),te.setReducer("border-style",Cm("border-style")),te.setReducer("border-width",Cm("border-width")),te.setReducer("border-top",zm("top")),te.setReducer("border-right",zm("right")),te.setReducer("border-bottom",zm("bottom")),te.setReducer("border-left",zm("left")),te.setReducer("border",function(){return te=>{const ne=Bm(te,"top"),ie=Bm(te,"right"),re=Bm(te,"bottom"),le=Bm(te,"left"),ce=[ne,ie,re,le],de={width:t(ce,"width"),style:t(ce,"style"),color:t(ce,"color")},ue=Pm(de,"all");if(ue.length)return ue;const me=Object.entries(de).reduce(((te,[ne,ie])=>(ie&&(te.push([`border-${ne}`,ie]),ce.forEach((te=>delete te[ne]))),te)),[]);return[...me,...Pm(ne,"top"),...Pm(ie,"right"),...Pm(re,"bottom"),...Pm(le,"left")]};function t(te,ne){return te.map((te=>te[ne])).reduce(((te,ne)=>te==ne?te:null))}}()),te.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),te.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),te.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),te.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),te.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),te.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),te.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),te.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"])}function Dm(te){return ne=>{const{color:ie,style:re,width:le}=Nm(ne),ce={};return void 0!==ie&&(ce.color={[te]:ie}),void 0!==re&&(ce.style={[te]:re}),void 0!==le&&(ce.width={[te]:le}),{path:"border",value:ce}}}function Sm(te){return ne=>({path:"border",value:Tm(ne,te)})}function Tm(te,ne){return{[ne]:Am(te)}}function Im(te,ne){return ie=>({path:"border",value:{[te]:{[ne]:ie}}})}function Mm(te){return(ne,ie)=>{if(ie.border)return Bm(ie.border,te)}}function Bm(te,ne){const ie={};return te.width&&te.width[ne]&&(ie.width=te.width[ne]),te.style&&te.style[ne]&&(ie.style=te.style[ne]),te.color&&te.color[ne]&&(ie.color=te.color[ne]),ie}function Nm(te){const ne={},ie=ym(te);for(const te of ie)cm(te)||/thin|medium|thick/.test(te)?ne.width=te:am(te)?ne.style=te:ne.color=te;return ne}function zm(te){return ne=>Pm(ne,te)}function Pm(te,ne){const ie=[];if(te&&te.width&&ie.push("width"),te&&te.style&&ie.push("style"),te&&te.color&&ie.push("color"),3==ie.length){const re=ie.map((ne=>te[ne])).join(" ");return["all"==ne?["border",re]:[`border-${ne}`,re]]}return"all"==ne?[]:ie.map((ie=>[`border-${ne}-${ie}`,te[ie]]))}function Lm(te){te.setNormalizer("margin",vm("margin")),te.setNormalizer("margin-top",(te=>({path:"margin.top",value:te}))),te.setNormalizer("margin-right",(te=>({path:"margin.right",value:te}))),te.setNormalizer("margin-bottom",(te=>({path:"margin.bottom",value:te}))),te.setNormalizer("margin-left",(te=>({path:"margin.left",value:te}))),te.setReducer("margin",Cm("margin")),te.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}function Om(te){te.setNormalizer("padding",vm("padding")),te.setNormalizer("padding-top",(te=>({path:"padding.top",value:te}))),te.setNormalizer("padding-right",(te=>({path:"padding.right",value:te}))),te.setNormalizer("padding-bottom",(te=>({path:"padding.bottom",value:te}))),te.setNormalizer("padding-left",(te=>({path:"padding.left",value:te}))),te.setReducer("padding",Cm("padding")),te.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}class Rm{constructor(){this._commands=new Map}add(te,ne){this._commands.set(te,ne)}get(te){return this._commands.get(te)}execute(te,...ne){const ie=this.get(te);if(!ie)throw new C("commandcollection-command-not-found",this,{commandName:te});return ie.execute(...ne)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const te of this.commands())te.destroy()}}class Vm extends Ii{constructor(te){super(),this.editor=te}set(te,ne,ie={}){if("string"==typeof ne){const te=ne;ne=(ne,ie)=>{this.editor.execute(te),ie()}}super.set(te,ne,ie)}}class Fm extends(q()){constructor(te={}){super();const ne=this.constructor,ie=te.language||ne.defaultConfig&&ne.defaultConfig.language;this._context=te.context||new Bs({language:ie}),this._context._addEditor(this,!te.context);const re=Array.from(ne.builtinPlugins||[]);this.config=new xo(te,ne.defaultConfig),this.config.define("plugins",re),this.config.define(this._context._getEditorConfig()),this.plugins=new Ms(this,re,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new Rm,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new Zu,this.on("change:isReadOnly",(()=>{this.model.document.isReadOnly=this.isReadOnly}));const le=new qa;this.data=new Sh(this.model,le),this.editing=new sh(this.model,le),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new Th([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Vm(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(te){throw new C("editor-isreadonly-has-no-setter")}enableReadOnlyMode(te){if("string"!=typeof te&&"symbol"!=typeof te)throw new C("editor-read-only-lock-id-invalid",null,{lockId:te});this._readOnlyLocks.has(te)||(this._readOnlyLocks.add(te),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(te){if("string"!=typeof te&&"symbol"!=typeof te)throw new C("editor-read-only-lock-id-invalid",null,{lockId:te});this._readOnlyLocks.has(te)&&(this._readOnlyLocks.delete(te),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const te=this.config,ne=te.get("plugins"),ie=te.get("removePlugins")||[],re=te.get("extraPlugins")||[],le=te.get("substitutePlugins")||[];return this.plugins.init(ne.concat(re),ie,le)}destroy(){let te=Promise.resolve();return"initializing"==this.state&&(te=new Promise((te=>this.once("ready",te)))),te.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(te,...ne){try{return this.commands.execute(te,...ne)}catch(te){C.rethrowUnexpectedError(te,this)}}focus(){this.editing.view.focus()}static create(...te){throw new Error("This is an abstract method.")}}function jm(te){return class extends te{setData(te){this.data.set(te)}getData(te){return this.data.get(te)}}}{const te=jm(Object);jm.setData=te.prototype.setData,jm.getData=te.prototype.getData}function Hm(te){return class extends te{updateSourceElement(te){if(!this.sourceElement)throw new C("editor-missing-sourceelement",this);const ne=this.config.get("updateSourceElementOnDestroy"),ie=this.sourceElement instanceof HTMLTextAreaElement;if(!ne&&!ie)return void $o(this.sourceElement,"");const re="string"==typeof te?te:this.data.get();$o(this.sourceElement,re)}}}Hm.updateSourceElement=Hm(Object).prototype.updateSourceElement;class Um extends Ns{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Di({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(te){if("string"!=typeof te)throw new C("pendingactions-add-invalid-message",this);const ne=new(q());return ne.set("message",te),this._actions.add(ne),this.hasAny=!0,ne}remove(te){this._actions.remove(te),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const Tc='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',Dc={bold:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:Tc,caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',colorPalette:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.209 18.717A8.5 8.5 0 1 1 18.686 9.6h-.008l.002.12a3 3 0 0 1-2.866 2.997h-.268l-.046-.002v.002h-4.791a2 2 0 1 0 0 4 1 1 0 1 1-.128 1.992 8.665 8.665 0 0 1-.372.008Zm-3.918-7.01a1.25 1.25 0 1 0-2.415-.648 1.25 1.25 0 0 0 2.415.647ZM5.723 8.18a1.25 1.25 0 1 0 .647-2.414 1.25 1.25 0 0 0-.647 2.414ZM9.76 6.155a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Zm4.028 1.759a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',history:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 1a9 9 0 1 1-8.027 13.075l1.128-1.129A7.502 7.502 0 0 0 18.5 10a7.5 7.5 0 1 0-14.962.759l-.745-.746-.76.76A9 9 0 0 1 11 1z"/><path d="M.475 8.17a.75.75 0 0 1 .978.047l.075.082 1.284 1.643 1.681-1.284a.75.75 0 0 1 .978.057l.073.083a.75.75 0 0 1-.057.978l-.083.073-2.27 1.737a.75.75 0 0 1-.973-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 .13-1.052z"/><path d="M11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66 9.118a.693.693 0 0 1 .956.032l3.65 3.411 2.422-2.238a.695.695 0 0 1 .945 0L17.5 13.6V2.5h-15v11.1l4.16-4.482ZM17.8 1c.652 0 1.2.47 1.2 1.1v14.362c0 .64-.532 1.038-1.184 1.038H2.184C1.532 17.5 1 17.103 1 16.462V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.128 2.128 0 0 1 .157-2.364A2.133 2.133 0 1 1 12.145 7Z"/></svg>',imageUpload:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h9.494a2.97 2.97 0 0 1-.414-.287 2.998 2.998 0 0 1-1.055-2.03 3.003 3.003 0 0 1 .693-2.185l.383-.455-.02.018-3.65-3.41a.695.695 0 0 0-.957-.034L1.5 13.6V2.5h15v5.535a2.97 2.97 0 0 1 1.412.932l.088.105V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.146 2.146 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.644-3.11 2.134 2.134 0 0 0-1.875-.978Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/></svg>',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1c-.662 0-1.2.47-1.2 1.1v14.248c0 .64.533 1.152 1.185 1.152h6.623v-7.236L6.617 9.15a.694.694 0 0 0-.957-.033L1.602 13.55V2.553l14.798.003V9.7H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.094 2.094 0 0 0-1.621.832 2.127 2.127 0 0 0 1.136 3.357 2.13 2.13 0 0 0 2.611-1.506 2.133 2.133 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.366-.44Z"/><path clip-rule="evenodd" d="M19.898 12.369v6.187a.844.844 0 0 1-.844.844h-8.719a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.531a.843.843 0 0 1 .597.248l.838.852h4.75c.223 0 .441.114.6.272a.844.844 0 0 1 .247.597Zm-1.52.654-4.377.02-1.1-1.143H11v6h7.4l-.023-4.877Z"/></svg>',imageUrl:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h7.029a5.401 5.401 0 0 1 .615-4.338l.762-1.232-2.975-2.78a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v6.023c.449.131.887.32 1.307.573l.058.033c.046.028.09.057.135.086V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.15 2.15 0 0 0-1.611.834 2.118 2.118 0 0 0-.438 1.158 2.14 2.14 0 0 0 1.277 2.096 2.132 2.132 0 0 0 2.645-3.11 2.13 2.13 0 0 0-1.873-.978Z"/><path d="M16.63 10.294a3.003 3.003 0 0 0-4.142.887l-.117.177a.647.647 0 0 0-.096.492.664.664 0 0 0 .278.418.7.7 0 0 0 .944-.234 1.741 1.741 0 0 1 2.478-.463 1.869 1.869 0 0 1 .476 2.55.637.637 0 0 0-.071.5.646.646 0 0 0 .309.396.627.627 0 0 0 .869-.19l.027-.041a3.226 3.226 0 0 0-.956-4.492Zm-6.061 3.78-.044.066a3.228 3.228 0 0 0 .82 4.403 3.005 3.005 0 0 0 4.275-.798l.13-.197a.626.626 0 0 0 .092-.475.638.638 0 0 0-.268-.402.713.713 0 0 0-.99.26l-.018.029a1.741 1.741 0 0 1-2.477.461 1.87 1.87 0 0 1-.475-2.55l.029-.047a.647.647 0 0 0 .086-.485.66.66 0 0 0-.275-.408l-.04-.027a.609.609 0 0 0-.845.17Z"/><path d="M15.312 13.925c.24-.36.154-.838-.19-1.067-.346-.23-.82-.124-1.059.236l-1.268 1.907c-.239.36-.153.838.192 1.067.345.23.818.123 1.057-.236l1.268-1.907Z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.035 1C2.446 1 2 1.54 2 2.098V10.5h1.5v-8h13v8H18V2.098C18 1.539 17.48 1 16.9 1H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.89 1.89 0 0 0 1.011 2.976 1.903 1.903 0 0 0 2.253-1.114 1.887 1.887 0 0 0-1.822-2.598ZM7.463 8.163a.611.611 0 0 0-.432.154L5.071 10.5h5.119L7.88 8.348a.628.628 0 0 0-.417-.185Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 10.5h2.969l-.92-1.113a.618.618 0 0 0-.42-.165ZM.91 11.5a.91.91 0 0 0-.91.912v6.877c0 .505.405.91.91.91h18.178a.91.91 0 0 0 .912-.91v-6.877a.908.908 0 0 0-.912-.912H.91ZM3.668 13h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516L3.668 13Zm4.947 0h1.801v4.3h2.7v1.4h-4.5V13h-.001Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9V13h-.001Zm-8.517 1.457-.614 2.059h1.262l-.648-2.059Z"/></svg>',loupe:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.68 13.74h-.001l4.209 4.208a1 1 0 1 0 1.414-1.414l-4.267-4.268a6 6 0 1 0-1.355 1.474ZM13 9a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/></svg>',previousArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>',nextArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M13 5.5H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2ZM13 7a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-8A.5.5 0 0 1 2 7h11Z"/></svg>',objectSizeSmall:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M7 9.5H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2ZM7 11a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4A.5.5 0 0 1 2 11h5Z"/></svg>',objectSizeMedium:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M10 7.5H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2ZM10 9a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6A.5.5 0 0 1 2 9h8Z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>',dragIndicator:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/></svg>',redo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',undo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',bulletedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>',numberedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',todoList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m2.315 14.705 2.224-2.24a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.682.682 0 0 1-.112.089.647.647 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.717.722zm5.185.045a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75zM2.329 5.745l2.21-2.226a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.685.685 0 0 1-.496.196.644.644 0 0 1-.468-.187L.688 5.912a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.73.736zM7.5 5.75A.75.75 0 0 1 8.25 5h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',codeBlock:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.87 12.61a.75.75 0 0 1-.089.976l-.085.07-3.154 2.254 3.412 2.414a.75.75 0 0 1 .237.95l-.057.095a.75.75 0 0 1-.95.237l-.096-.058-4.272-3.022-.003-1.223 4.01-2.867a.75.75 0 0 1 1.047.174zm2.795-.231.095.057 4.011 2.867-.003 1.223-4.272 3.022-.095.058a.75.75 0 0 1-.88-.151l-.07-.086-.058-.095a.75.75 0 0 1 .15-.88l.087-.07 3.412-2.414-3.154-2.253-.085-.071a.75.75 0 0 1 .862-1.207zM16 0a2 2 0 0 1 2 2v9.354l-.663-.492-.837-.001V2a.5.5 0 0 0-.5-.5H2a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h3.118L7.156 19H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14zM5.009 15l.003 1H3v-1h2.009zm2.188-2-1.471 1H5v-1h2.197zM10 11v.095L8.668 12H7v-1h3zm4-2v1H7V9h7zm0-2v1H7V7h7zm-4-2v1H5V5h5zM6 3v1H3V3h3z"/></svg>',browseFiles:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',heading1:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 9v10h-2v-8h-2V9h4zM4 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1V11H4v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H3a1 1 0 0 1 1 1v4.5z"/></svg>',heading2:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm16.076 8.343V18.5h-6.252c.067-.626.27-1.22.61-1.78.338-.561 1.006-1.305 2.005-2.232.804-.749 1.297-1.257 1.479-1.523.245-.368.368-.732.368-1.092 0-.398-.107-.703-.32-.917-.214-.214-.51-.32-.886-.32-.372 0-.669.111-.889.336-.22.224-.347.596-.38 1.117l-1.778-.178c.106-.982.438-1.686.997-2.114.558-.427 1.257-.64 2.095-.64.918 0 1.64.247 2.164.742.525.495.787 1.11.787 1.847 0 .419-.075.818-.225 1.197-.15.378-.388.775-.714 1.19-.216.275-.605.67-1.168 1.187-.563.516-.92.859-1.07 1.028a3.11 3.11 0 0 0-.365.495h3.542z"/></svg>',heading3:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm9.989 7.53 1.726-.209c.055.44.203.777.445 1.01.24.232.533.349.876.349.368 0 .678-.14.93-.42.251-.279.377-.655.377-1.13 0-.448-.12-.803-.362-1.066a1.153 1.153 0 0 0-.882-.393c-.228 0-.501.044-.819.133l.197-1.453c.482.012.85-.092 1.105-.315.253-.222.38-.517.38-.885 0-.313-.093-.563-.279-.75-.186-.185-.434-.278-.743-.278a1.07 1.07 0 0 0-.78.317c-.216.212-.347.52-.394.927l-1.644-.28c.114-.562.287-1.012.517-1.348.231-.337.553-.601.965-.794a3.24 3.24 0 0 1 1.387-.289c.876 0 1.579.28 2.108.838.436.457.653.973.653 1.549 0 .817-.446 1.468-1.339 1.955.533.114.96.37 1.28.768.319.398.478.878.478 1.441 0 .817-.298 1.513-.895 2.088-.596.576-1.339.864-2.228.864-.842 0-1.54-.243-2.094-.727-.555-.485-.876-1.118-.965-1.901z"/></svg>',heading4:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm13.55 10v-1.873h-3.81v-1.561l4.037-5.91h1.498v5.904h1.156v1.567h-1.156V18.5H17.05zm0-3.44v-3.18l-2.14 3.18h2.14z"/></svg>',heading5:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm9.578 7.607 1.777-.184c.05.402.201.72.45.955a1.223 1.223 0 0 0 1.81-.101c.258-.303.387-.759.387-1.368 0-.572-.128-1-.384-1.286-.256-.285-.59-.428-1-.428-.512 0-.971.226-1.377.679l-1.448-.21.915-4.843h4.716v1.67H15.56l-.28 1.58a2.697 2.697 0 0 1 1.219-.298 2.68 2.68 0 0 1 2.012.863c.55.576.825 1.323.825 2.241a3.36 3.36 0 0 1-.666 2.05c-.605.821-1.445 1.232-2.52 1.232-.86 0-1.56-.23-2.101-.692-.542-.461-.866-1.081-.971-1.86z"/></svg>',heading6:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm15.595 2.973-1.726.19c-.043-.355-.153-.617-.33-.787-.178-.169-.409-.253-.692-.253-.377 0-.695.169-.956.507-.26.339-.424 1.043-.492 2.114.445-.525.997-.787 1.657-.787.745 0 1.383.284 1.914.85.531.568.797 1.3.797 2.197 0 .952-.28 1.716-.838 2.291-.559.576-1.276.864-2.152.864-.94 0-1.712-.365-2.317-1.095-.605-.73-.908-1.927-.908-3.59 0-1.705.316-2.935.946-3.688.63-.753 1.45-1.13 2.457-1.13.706 0 1.291.198 1.755.594.463.395.758.97.885 1.723zm-4.043 3.891c0 .58.133 1.028.4 1.343.266.315.57.473.914.473.33 0 .605-.13.825-.388.22-.258.33-.68.33-1.27 0-.604-.118-1.047-.355-1.329a1.115 1.115 0 0 0-.89-.422c-.342 0-.632.134-.869.403s-.355.666-.355 1.19z"/></svg>',horizontalLine:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',html:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17 0a2 2 0 0 1 2 2v7a1 1 0 0 1 1 1v5a1 1 0 0 1-.883.993l-.118.006L19 17a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2l-.001-1.001-.116-.006A1 1 0 0 1 0 15v-5a1 1 0 0 1 .999-1L1 2a2 2 0 0 1 2-2h14zm.499 15.999h-15L2.5 17a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5l-.001-1.001zm-3.478-6.013-.014.014H14v.007l-1.525 1.525-1.46-1.46-.015.013V10h-1v5h1v-3.53l1.428 1.43.048.043.131-.129L14 11.421V15h1v-5h-.965l-.014-.014zM2 10H1v5h1v-2h2v2h1v-5H4v2H2v-2zm7 0H6v1h1v4h1v-4h1v-1zm8 0h-1v5h3v-1h-2v-4zm0-8.5H3a.5.5 0 0 0-.5.5l-.001 6.999h15L17.5 2a.5.5 0 0 0-.5-.5zM10 7v1H4V7h6zm3-2v1H4V5h9zm-3-2v1H4V3h6z"/></svg>',indent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',outdent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',table:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5.5v3h4v-3H3Zm0 4v3h4v-3H3Zm0 4v3h4v-3H3Zm5 3h4v-3H8v3Zm5 0h4v-3h-4v3Zm4-4v-3h-4v3h4Zm0-4v-3h-4v3h4Zm1.5 8A1.5 1.5 0 0 1 17 18H3a1.5 1.5 0 0 1-1.5-1.5V3c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13.5Zm-6.5-4v-3H8v3h4Zm0-4v-3H8v3h4Z"/></svg>'};var Mc=i(4768);Fo()(Mc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Mc.Z.locals;const{threeVerticalDots:Nc}=Dc,Oc={alignLeft:Dc.alignLeft,bold:Dc.bold,importExport:Dc.importExport,paragraph:Dc.paragraph,plus:Dc.plus,text:Dc.text,threeVerticalDots:Dc.threeVerticalDots,pilcrow:Dc.pilcrow,dragIndicator:Dc.dragIndicator};class Ym extends Hi{constructor(te,ne){super(te);const ie=this.bindTemplate,re=this.t;this.options=ne||{},this.set("ariaLabel",re("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Ti,this.keystrokes=new Ii,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Qm(te),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const le="rtl"===te.uiLanguageDirection;this._focusCycler=new As({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[le?"arrowright":"arrowleft","arrowup"],focusNext:[le?"arrowleft":"arrowright","arrowdown"]}});const ce=["ck","ck-toolbar",ie.to("class"),ie.if("isCompact","ck-toolbar_compact")];var de;this.options.shouldGroupWhenFull&&this.options.isFloating&&ce.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:ce,role:"toolbar","aria-label":ie.to("ariaLabel"),style:{maxWidth:ie.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(de=this,de.bindTemplate.to((te=>{te.target===de.element&&te.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new Xm(this):new Jm(this)}render(){super.render(),this.focusTracker.add(this.element);for(const te of this.items)this.focusTracker.add(te.element);this.items.on("add",((te,ne)=>{this.focusTracker.add(ne.element)})),this.items.on("remove",((te,ne)=>{this.focusTracker.remove(ne.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(te,ne,ie){this.items.addMany(this._buildItemsFromConfig(te,ne,ie))}_buildItemsFromConfig(te,ne,ie){const re=xs(te),le=ie||re.removeItems;return this._cleanItemsConfiguration(re.items,ne,le).map((te=>V(te)?this._createNestedToolbarDropdown(te,ne,le):"|"===te?new vs:"-"===te?new ys:ne.create(te))).filter((te=>!!te))}_cleanItemsConfiguration(te,ne,ie){const re=te.filter(((te,re,le)=>"|"===te||-1===ie.indexOf(te)&&("-"===te?!this.options.shouldGroupWhenFull||(_("toolbarview-line-break-ignored-when-grouping-items",le),!1):!(!V(te)&&!ne.has(te)&&(_("toolbarview-item-unavailable",{item:te}),1)))));return this._cleanSeparatorsAndLineBreaks(re)}_cleanSeparatorsAndLineBreaks(te){const e=te=>"-"!==te&&"|"!==te,ne=te.length,ie=te.findIndex(e);if(-1===ie)return[];const re=ne-te.slice().reverse().findIndex(e);return te.slice(ie,re).filter(((te,ne,ie)=>!!e(te)||!(ne>0&&ie[ne-1]===te)))}_createNestedToolbarDropdown(te,ne,ie){let{label:re,icon:le,items:ce,tooltip:de=!0,withText:ue=!1}=te;if(ce=this._cleanItemsConfiguration(ce,ne,ie),!ce.length)return null;const me=mg(this.locale);return re||_("toolbarview-nested-toolbar-dropdown-missing-label",te),me.class="ck-toolbar__nested-toolbar-dropdown",me.buttonView.set({label:re,tooltip:de,withText:!!ue}),!1!==le?me.buttonView.icon=Oc[le]||le||Nc:me.buttonView.withText=!0,gg(me,(()=>me.toolbarView._buildItemsFromConfig(ce,ne,ie))),me}}class Qm extends Hi{constructor(te){super(te),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Jm{constructor(te){const ne=te.bindTemplate;te.set("isVertical",!1),te.itemsView.children.bindTo(te.items).using((te=>te)),te.focusables.bindTo(te.items).using((te=>_s(te)?te:null)),te.extendTemplate({attributes:{class:[ne.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class Xm{constructor(te){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=te,this.viewChildren=te.children,this.viewFocusables=te.focusables,this.viewItemsView=te.itemsView,this.viewFocusTracker=te.focusTracker,this.viewLocale=te.locale,this.ungroupedItems=te.createCollection(),this.groupedItems=te.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),te.itemsView.children.bindTo(this.ungroupedItems).using((te=>te)),this.ungroupedItems.on("change",this._updateFocusCyclableItems.bind(this)),te.children.on("change",this._updateFocusCyclableItems.bind(this)),te.items.on("change",((te,ne)=>{const ie=ne.index,re=Array.from(ne.added);for(const te of ne.removed)ie>=this.ungroupedItems.length?this.groupedItems.remove(te):this.ungroupedItems.remove(te);for(let te=ie;te<ie+re.length;te++){const ne=re[te-ie];te>this.ungroupedItems.length?this.groupedItems.add(ne,te-this.ungroupedItems.length):this.ungroupedItems.add(ne,te)}this._updateGrouping()})),te.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(te){this.viewElement=te.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(te)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!ti(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const te=this.groupedItems.length;let ne;for(;this._areItemsOverflowing;)this._groupLastItem(),ne=!0;if(!ne&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==te&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const te=this.viewElement,ne=this.viewLocale.uiLanguageDirection,ie=new jo(te.lastChild),re=new jo(te);if(!this.cachedPadding){const ie=go.window.getComputedStyle(te),re="ltr"===ne?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(ie[re])}return"ltr"===ne?ie.right>re.right-this.cachedPadding:ie.left<re.left+this.cachedPadding}_enableGroupingOnResize(){let te;this.resizeObserver=new _o(this.viewElement,(ne=>{te&&te===ne.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),te=ne.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(te){te.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new vs),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const te=this.viewLocale,ne=te.t,ie=mg(te);return ie.class="ck-toolbar__grouped-dropdown",ie.panelPosition="ltr"===te.uiLanguageDirection?"sw":"se",gg(ie,this.groupedItems),ie.buttonView.set({label:ne("Show more items"),tooltip:!0,tooltipPosition:"rtl"===te.uiLanguageDirection?"se":"sw",icon:Nc}),ie}_updateFocusCyclableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((te=>{_s(te)&&this.viewFocusables.add(te)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class tg extends Hi{constructor(te){super(te);const ne=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",ne.if("isVisible","ck-hidden",(te=>!te))],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class eg extends Hi{constructor(te){super(te),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class ng extends Hi{constructor(te,ne=new ns){super(te);const ie=this.bindTemplate,re=new rg(te);this.set({label:"",isVisible:!0}),this.labelView=ne,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,re]),re.set({role:"group",ariaLabelledBy:ne.id}),re.focusTracker.destroy(),re.keystrokes.destroy(),this.items=re.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",ie.if("isVisible","ck-hidden",(te=>!te))]},children:this.children})}focus(){if(this.items){const te=this.items.find((te=>!(te instanceof eg)));te&&te.focus()}}}var Pc=i(179);Fo()(Pc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Pc.Z.locals;class rg extends Hi{constructor(te){super(te),this._listItemGroupToChangeListeners=new WeakMap;const ne=this.bindTemplate;this.focusables=new Oi,this.items=this.createCollection(),this.focusTracker=new Ti,this.keystrokes=new Ii,this._focusCycler=new As({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:ne.to("role"),"aria-label":ne.to("ariaLabel"),"aria-labelledby":ne.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const te of this.items)te instanceof ng?this._registerFocusableItemsGroup(te):te instanceof tg&&this._registerFocusableListItem(te);this.items.on("change",((te,ne)=>{for(const te of ne.removed)te instanceof ng?this._deregisterFocusableItemsGroup(te):this._deregisterFocusableListItem(te);for(const te of Array.from(ne.added).reverse())te instanceof ng?this._registerFocusableItemsGroup(te,ne.index):this._registerFocusableListItem(te,ne.index)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(te,ne){this.focusTracker.add(te.element),this.focusables.add(te,ne)}_deregisterFocusableListItem(te){this.focusTracker.remove(te.element),this.focusables.remove(te)}_getOnGroupItemsChangeCallback(te){return(ne,ie)=>{for(const te of ie.removed)this._deregisterFocusableListItem(te);for(const ne of Array.from(ie.added).reverse())this._registerFocusableListItem(ne,this.items.getIndex(te)+ie.index)}}_registerFocusableItemsGroup(te,ne){Array.from(te.items).forEach(((te,ie)=>{const re=void 0!==ne?ne+ie:void 0;this._registerFocusableListItem(te,re)}));const ie=this._getOnGroupItemsChangeCallback(te);this._listItemGroupToChangeListeners.set(te,ie),te.items.on("change",ie)}_deregisterFocusableItemsGroup(te){for(const ne of te.items)this._deregisterFocusableListItem(ne);te.items.off("change",this._listItemGroupToChangeListeners.get(te)),this._listItemGroupToChangeListeners.delete(te)}}var Bc=i(4791);Fo()(Bc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bc.Z.locals;class lg extends Hi{constructor(te,ne){super(te);const ie=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(ne),this.arrowView=this._createArrowView(),this.keystrokes=new Ii,this.focusTracker=new Ti,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",ie.to("class"),ie.if("isVisible","ck-hidden",(te=>!te)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((te,ne)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),ne())})),this.keystrokes.set("arrowleft",((te,ne)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),ne())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(te){const ne=te||new br;return te||ne.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),ne.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),ne.delegate("execute").to(this),ne}_createArrowView(){const te=new br,ne=te.bindTemplate;return te.icon=_r,te.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":ne.to("isOn"),"aria-haspopup":!0,"aria-expanded":ne.to("isOn",(te=>String(te)))}}),te.bind("isEnabled").to(this),te.bind("label").to(this),te.bind("tooltip").to(this),te.delegate("execute").to(this,"open"),te}}var zc=i(2704);Fo()(zc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),zc.Z.locals;var Sd=i(1883);function mg(te,ne=ws){const ie="function"==typeof ne?new ne(te):ne,re=new gs(te),le=new Zr(te,ie,re);return ie.bind("isEnabled").to(le),ie instanceof lg?ie.arrowView.bind("isOn").to(le,"isOpen"):ie.bind("isOn").to(le,"isOpen"),function(te){(function(te){te.on("render",(()=>{t({emitter:te,activator:()=>te.isOpen,callback:()=>{te.isOpen=!1},contextElements:()=>[te.element,...te.focusTracker._elements]})}))})(te),function(te){te.on("execute",(ne=>{ne.source instanceof Cr||(te.isOpen=!1)}))}(te),function(te){te.focusTracker.on("change:isFocused",((ne,ie,re)=>{te.isOpen&&!re&&(te.isOpen=!1)}))}(te),function(te){te.keystrokes.set("arrowdown",((ne,ie)=>{te.isOpen&&(te.panelView.focus(),ie())})),te.keystrokes.set("arrowup",((ne,ie)=>{te.isOpen&&(te.panelView.focusLast(),ie())}))}(te),function(te){te.on("change:isOpen",((ne,ie,re)=>{if(re)return;const le=te.panelView.element;le&&le.contains(go.document.activeElement)&&te.buttonView.focus()}))}(te),function(te){te.on("change:isOpen",((ne,ie,re)=>{re&&te.panelView.focus()}),{priority:"low"})}(te)}(le),le}function gg(te,ne,ie={}){te.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),te.isOpen?pg(te,ne,ie):te.once("change:isOpen",(()=>pg(te,ne,ie)),{priority:"highest"}),ie.enableActiveItemFocusOnDropdownOpen&&bg(te,(()=>te.toolbarView.items.find((te=>te.isOn))))}function pg(te,ne,ie){const re=te.locale,le=re.t,ce=te.toolbarView=new Ym(re),de="function"==typeof ne?ne():ne;ce.ariaLabel=ie.ariaLabel||le("Dropdown toolbar"),ie.maxWidth&&(ce.maxWidth=ie.maxWidth),ie.class&&(ce.class=ie.class),ie.isCompact&&(ce.isCompact=ie.isCompact),ie.isVertical&&(ce.isVertical=!0),de instanceof Oi?ce.items.bindTo(de).using((te=>te)):ce.items.addMany(de),te.panelView.children.add(ce),ce.items.delegate("execute").to(te)}function fg(te,ne,ie={}){te.isOpen?kg(te,ne,ie):te.once("change:isOpen",(()=>kg(te,ne,ie)),{priority:"highest"}),bg(te,(()=>te.listView.items.find((te=>te instanceof tg&&te.children.first.isOn))))}function kg(te,ne,ie){const re=te.locale,le=te.listView=new rg(re),ce="function"==typeof ne?ne():ne;le.ariaLabel=ie.ariaLabel,le.role=ie.role,wg(te,le.items,ce,re),te.panelView.children.add(le),le.items.delegate("execute").to(te)}function bg(te,ne){te.on("change:isOpen",(()=>{if(!te.isOpen)return;const ie=ne();ie&&("function"==typeof ie.focus?ie.focus():_("ui-dropdown-focus-child-on-open-child-missing-focus",{view:ie}))}),{priority:ue.low-10})}function wg(te,ne,ie,re){ne.bindTo(ie).using((ne=>{if("separator"===ne.type)return new eg(re);if("group"===ne.type){const ie=new ng(re);return ie.set({label:ne.label}),wg(te,ie.items,ne.items,re),ie.items.delegate("execute").to(te),ie}if("button"===ne.type||"switchbutton"===ne.type){const te=new tg(re);let ie;return"button"===ne.type?(ie=new br(re),ie.extendTemplate({attributes:{"aria-checked":ie.bindTemplate.to("isOn")}})):ie=new Cr(re),ie.bind(...Object.keys(ne.model)).to(ne.model),ie.delegate("execute").to(te),te.children.add(ie),te}return null}))}Fo()(Sd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Sd.Z.locals;const Ag=(te,ne,ie)=>{const re=new ds(te.locale);return re.set({id:ne,ariaDescribedById:ie}),re.bind("isReadOnly").to(te,"isEnabled",(te=>!te)),re.bind("hasError").to(te,"errorText",(te=>!!te)),re.on("input",(()=>{te.errorText=null})),te.bind("isEmpty","isFocused","placeholder").to(re),re},Cg=(te,ne,ie)=>{const re=new hs(te.locale);return re.set({id:ne,ariaDescribedById:ie,inputMode:"numeric"}),re.bind("isReadOnly").to(te,"isEnabled",(te=>!te)),re.bind("hasError").to(te,"errorText",(te=>!!te)),re.on("input",(()=>{te.errorText=null})),te.bind("isEmpty","isFocused","placeholder").to(re),re},_g=(te,ne,ie)=>{const re=mg(te.locale);return re.set({id:ne,ariaDescribedById:ie}),re.bind("isEnabled").to(te),re},vg=(te,ne=0,ie=1)=>te>ie?ie:te<ne?ne:te,yg=(te,ne=0,ie=Math.pow(10,ne))=>Math.round(ie*te)/ie,Au=(Math.PI,te=>("#"===te[0]&&(te=te.substring(1)),te.length<6?{r:parseInt(te[0]+te[0],16),g:parseInt(te[1]+te[1],16),b:parseInt(te[2]+te[2],16),a:4===te.length?yg(parseInt(te[3]+te[3],16)/255,2):1}:{r:parseInt(te.substring(0,2),16),g:parseInt(te.substring(2,4),16),b:parseInt(te.substring(4,6),16),a:8===te.length?yg(parseInt(te.substring(6,8),16)/255,2):1})),Dg=te=>{const{h:ne,s:ie,l:re}=(({h:te,s:ne,v:ie,a:re})=>{const le=(200-ne)*ie/100;return{h:yg(te),s:yg(le>0&&le<200?ne*ie/100/(le<=100?le:200-le)*100:0),l:yg(le/2),a:yg(re,2)}})(te);return`hsl(${ne}, ${ie}%, ${re}%)`},Tg=te=>{const ne=te.toString(16);return ne.length<2?"0"+ne:ne},Bg=(te,ne)=>{if(te===ne)return!0;for(const ie in te)if(te[ie]!==ne[ie])return!1;return!0},Hu={},zg=te=>{let ne=Hu[te];return ne||(ne=document.createElement("template"),ne.innerHTML=te,Hu[te]=ne),ne},Pg=(te,ne,ie)=>{te.dispatchEvent(new CustomEvent(ne,{bubbles:!0,detail:ie}))};let Xu=!1;const Og=te=>"touches"in te,Rg=(te,ne)=>{const ie=Og(ne)?ne.touches[0]:ne,re=te.el.getBoundingClientRect();Pg(te.el,"move",te.getMove({x:vg((ie.pageX-(re.left+window.pageXOffset))/re.width),y:vg((ie.pageY-(re.top+window.pageYOffset))/re.height)}))};class Vg{constructor(te,ne,ie,re){const le=zg(`<div role="slider" tabindex="0" part="${ne}" ${ie}><div part="${ne}-pointer"></div></div>`);te.appendChild(le.content.cloneNode(!0));const ce=te.querySelector(`[part=${ne}]`);ce.addEventListener("mousedown",this),ce.addEventListener("touchstart",this),ce.addEventListener("keydown",this),this.el=ce,this.xy=re,this.nodes=[ce.firstChild,ce]}set dragging(te){const ne=te?document.addEventListener:document.removeEventListener;ne(Xu?"touchmove":"mousemove",this),ne(Xu?"touchend":"mouseup",this)}handleEvent(te){switch(te.type){case"mousedown":case"touchstart":if(te.preventDefault(),!(te=>!(Xu&&!Og(te)||(Xu||(Xu=Og(te)),0)))(te)||!Xu&&0!=te.button)return;this.el.focus(),Rg(this,te),this.dragging=!0;break;case"mousemove":case"touchmove":te.preventDefault(),Rg(this,te);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((te,ne)=>{const ie=ne.keyCode;ie>40||te.xy&&ie<37||ie<33||(ne.preventDefault(),Pg(te.el,"move",te.getMove({x:39===ie?.01:37===ie?-.01:34===ie?.05:33===ie?-.05:35===ie?1:36===ie?-1:0,y:40===ie?.01:38===ie?-.01:0},!0)))})(this,te)}}style(te){te.forEach(((te,ne)=>{for(const ie in te)this.nodes[ne].style.setProperty(ie,te[ie])}))}}class Fg extends Vg{constructor(te){super(te,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:te}){this.h=te,this.style([{left:te/360*100+"%",color:Dg({h:te,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${yg(te)}`)}getMove(te,ne){return{h:ne?vg(this.h+360*te.x,0,360):360*te.x}}}class jg extends Vg{constructor(te){super(te,"saturation",'aria-label="Color"',!0)}update(te){this.hsva=te,this.style([{top:100-te.v+"%",left:`${te.s}%`,color:Dg(te)},{"background-color":Dg({h:te.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${yg(te.s)}%, Brightness ${yg(te.v)}%`)}getMove(te,ne){return{s:ne?vg(this.hsva.s+100*te.x,0,100):100*te.x,v:ne?vg(this.hsva.v-100*te.y,0,100):Math.round(100-100*te.y)}}}const Ju=Symbol("same"),ap=Symbol("color"),sp=Symbol("hsva"),dp=Symbol("update"),pp=Symbol("parts"),hp=Symbol("css"),fp=Symbol("sliders");class Kg extends HTMLElement{static get observedAttributes(){return["color"]}get[hp](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[fp](){return[jg,Fg]}get color(){return this[ap]}set color(te){if(!this[Ju](te)){const ne=this.colorModel.toHsva(te);this[dp](ne),this[ap]=te}}constructor(){super();const te=zg(`<style>${this[hp].join("")}</style>`),ne=this.attachShadow({mode:"open"});ne.appendChild(te.content.cloneNode(!0)),ne.addEventListener("move",this),this[pp]=this[fp].map((te=>new te(ne)))}connectedCallback(){if(this.hasOwnProperty("color")){const te=this.color;delete this.color,this.color=te}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(te,ne,ie){const re=this.colorModel.fromAttr(ie);this[Ju](re)||(this.color=re)}handleEvent(te){const ne=this[sp],ie={...ne,...te.detail};let re;this[dp](ie),Bg(ie,ne)||this[Ju](re=this.colorModel.fromHsva(ie))||(this[ap]=re,Pg(this,"color-changed",{value:re}))}[Ju](te){return this.color&&this.colorModel.equal(te,this.color)}[dp](te){this[sp]=te,this[pp].forEach((ne=>ne.update(te)))}}const _p={defaultColor:"#000",toHsva:te=>(({r:te,g:ne,b:ie,a:re})=>{const le=Math.max(te,ne,ie),ce=le-Math.min(te,ne,ie),de=ce?le===te?(ne-ie)/ce:le===ne?2+(ie-te)/ce:4+(te-ne)/ce:0;return{h:yg(60*(de<0?de+6:de)),s:yg(le?ce/le*100:0),v:yg(le/255*100),a:re}})(Au(te)),fromHsva:({h:te,s:ne,v:ie})=>(({r:te,g:ne,b:ie,a:re})=>{const le=re<1?Tg(yg(255*re)):"";return"#"+Tg(te)+Tg(ne)+Tg(ie)+le})((({h:te,s:ne,v:ie,a:re})=>{te=te/360*6,ne/=100,ie/=100;const le=Math.floor(te),ce=ie*(1-ne),de=ie*(1-(te-le)*ne),ue=ie*(1-(1-te+le)*ne),me=le%6;return{r:yg(255*[ie,de,ce,ce,ue,ie][me]),g:yg(255*[ue,ie,ie,de,ce,ce][me]),b:yg(255*[ce,ce,ue,ie,ie,de][me]),a:yg(re,2)}})({h:te,s:ne,v:ie,a:1})),equal:(te,ne)=>te.toLowerCase()===ne.toLowerCase()||Bg(Au(te),Au(ne)),fromAttr:te=>te};class Qg extends Kg{get colorModel(){return _p}}customElements.define("hex-color-picker",class extends Qg{});var bp=i(4257);Fo()(bp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bp.Z.locals;class tp extends Hi{constructor(te,ne={}){super(te),this.set({color:"",_hexColor:""}),this.hexInputRow=this._createInputRow();const ie=this.createCollection();ne.hideInput||ie.add(this.hexInputRow),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker"],tabindex:-1},children:ie}),this._config=ne,this._debounceColorPickerEvent=Xr((te=>{this.set("color",te),this.fire("colorSelected",{color:this.color})}),150,{leading:!0}),this.on("set:color",((te,ne,ie)=>{te.return=Rr(ie,this._config.format||"hsl")})),this.on("change:color",(()=>{this._hexColor=ep(this.color)})),this.on("change:_hexColor",(()=>{document.activeElement!==this.picker&&this.picker.setAttribute("color",this._hexColor),ep(this.color)!=ep(this._hexColor)&&(this.color=this._hexColor)}))}render(){if(super.render(),this.picker=go.document.createElement("hex-color-picker"),this.picker.setAttribute("class","hex-color-picker"),this.picker.setAttribute("tabindex","-1"),this._createSlidersView(),this.element){this.hexInputRow.element?this.element.insertBefore(this.picker,this.hexInputRow.element):this.element.appendChild(this.picker);const te=document.createElement("style");te.textContent='[role="slider"]:focus [part$="pointer"] {border: 1px solid #fff;outline: 1px solid var(--ck-color-focus-border);box-shadow: 0 0 0 2px #fff;}',this.picker.shadowRoot.appendChild(te)}this.picker.addEventListener("color-changed",(te=>{const ne=te.detail.value;this._debounceColorPickerEvent(ne)}))}focus(){!this._config.hideInput&&(le.isGecko||le.isiOS||le.isSafari)&&this.hexInputRow.children.get(1).focus(),this.slidersView.first.focus()}_createSlidersView(){const te=[...this.picker.shadowRoot.children].filter((te=>"slider"===te.getAttribute("role"))).map((te=>new np(te)));this.slidersView=this.createCollection(),te.forEach((te=>{this.slidersView.add(te)}))}_createInputRow(){const te=new op,ne=this._createColorInput();return new ip(this.locale,[te,ne])}_createColorInput(){const te=new rs(this.locale,Ag),{t:ne}=this.locale;return te.set({label:ne("HEX"),class:"color-picker-hex-input"}),te.fieldView.bind("value").to(this,"_hexColor",(ne=>te.isFocused?te.fieldView.value:ne.startsWith("#")?ne.substring(1):ne)),te.fieldView.on("input",(()=>{const ne=te.fieldView.element.value;if(ne){const te=ne.trim(),ie=te.startsWith("#")?te.substring(1):te;[3,4,6,8].includes(ie.length)&&/(([0-9a-fA-F]{2}){3,4}|([0-9a-fA-F]){3,4})/.test(ie)&&this._debounceColorPickerEvent("#"+ie)}})),te}}function ep(te){let ne=function(te){if(!te)return"";const ne=Vr(te);return ne?"hex"===ne.space?ne.hexValue:Rr(te,"hex"):"#000"}(te);return ne||(ne="#000"),4===ne.length&&(ne="#"+[ne[1],ne[1],ne[2],ne[2],ne[3],ne[3]].join("")),ne.toLowerCase()}class np extends Hi{constructor(te){super(),this.element=te}focus(){this.element.focus()}}class op extends Hi{constructor(te){super(te),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__hash-view"]},children:"#"})}}class ip extends Hi{constructor(te,ne){super(te),this.children=this.createCollection(ne),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__row"]},children:this.children})}}class rp extends(q(Di)){constructor(te){super(te),this.set("isEmpty",!0),this.on("change",(()=>{this.set("isEmpty",0===this.length)}))}add(te,ne){return this.find((ne=>ne.color===te.color))?this:super.add(te,ne)}hasColor(te){return!!this.find((ne=>ne.color===te))}}const{eraser:vp,colorPalette:yp}=Dc;class lp extends Hi{constructor(te,{colors:ne,columns:ie,removeButtonLabel:re,documentColorsLabel:le,documentColorsCount:ce,colorPickerLabel:de,focusTracker:ue,focusables:me}){super(te);const ge=this.bindTemplate;this.set("isVisible",!0),this.focusTracker=ue,this.items=this.createCollection(),this.colorDefinitions=ne,this.columns=ie,this.documentColors=new rp,this.documentColorsCount=ce,this._focusables=me,this._removeButtonLabel=re,this._colorPickerLabel=de,this._documentColorsLabel=le,this.setTemplate({tag:"div",attributes:{class:["ck-color-grids-fragment",ge.if("isVisible","ck-hidden",(te=>!te))]},children:this.items}),this.removeColorButtonView=this._createRemoveColorButton(),this.items.add(this.removeColorButtonView)}updateDocumentColors(te,ne){const ie=te.document,re=this.documentColorsCount;this.documentColors.clear();for(const le of ie.getRoots()){const ie=te.createRangeIn(le);for(const te of ie.getItems())if(te.is("$textProxy")&&te.hasAttribute(ne)&&(this._addColorToDocumentColors(te.getAttribute(ne)),this.documentColors.length>=re))return}}updateSelectedColors(){const te=this.documentColorsGrid,ne=this.staticColorsGrid,ie=this.selectedColor;ne.selectedColor=ie,te&&(te.selectedColor=ie)}render(){if(super.render(),this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount){const te=Ui.bind(this.documentColors,this.documentColors),ne=new ns(this.locale);ne.text=this._documentColorsLabel,ne.extendTemplate({attributes:{class:["ck","ck-color-grid__label",te.if("isEmpty","ck-hidden")]}}),this.items.add(ne),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}this._createColorPickerButton(),this._addColorSelectorElementsToFocusTracker(),this.focus()}focus(){this.removeColorButtonView.focus()}destroy(){super.destroy()}addColorPickerButton(){this.colorPickerButtonView&&(this.items.add(this.colorPickerButtonView),this.focusTracker.add(this.colorPickerButtonView.element),this._focusables.add(this.colorPickerButtonView))}_addColorSelectorElementsToFocusTracker(){this.focusTracker.add(this.removeColorButtonView.element),this._focusables.add(this.removeColorButtonView),this.staticColorsGrid&&(this.focusTracker.add(this.staticColorsGrid.element),this._focusables.add(this.staticColorsGrid)),this.documentColorsGrid&&(this.focusTracker.add(this.documentColorsGrid.element),this._focusables.add(this.documentColorsGrid))}_createColorPickerButton(){this.colorPickerButtonView=new br,this.colorPickerButtonView.set({label:this._colorPickerLabel,withText:!0,icon:yp,class:"ck-color-selector__color-picker"}),this.colorPickerButtonView.on("execute",(()=>{this.fire("colorPicker:show")}))}_createRemoveColorButton(){const te=new br;return te.set({withText:!0,icon:vp,label:this._removeButtonLabel}),te.class="ck-color-selector__remove-color",te.on("execute",(()=>{this.fire("execute",{value:null,source:"removeColorButton"})})),te.render(),te}_createStaticColorsGrid(){const te=new Br(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return te.on("execute",((te,ne)=>{this.fire("execute",{value:ne.value,source:"staticColorsGrid"})})),te}_createDocumentColorsGrid(){const te=Ui.bind(this.documentColors,this.documentColors),ne=new Br(this.locale,{columns:this.columns});return ne.extendTemplate({attributes:{class:te.if("isEmpty","ck-hidden")}}),ne.items.bindTo(this.documentColors).using((te=>{const ne=new Tr;return ne.set({color:te.color,hasBorder:te.options&&te.options.hasBorder}),te.label&&ne.set({label:te.label,tooltip:!0}),ne.on("execute",(()=>{this.fire("execute",{value:te.color,source:"documentColorsGrid"})})),ne})),this.documentColors.on("change:isEmpty",((te,ie,re)=>{re&&(ne.selectedColor=null)})),ne}_addColorToDocumentColors(te){const ne=this.colorDefinitions.find((ne=>ne.color===te));ne?this.documentColors.add(Object.assign({},ne)):this.documentColors.add({color:te,label:te,options:{hasBorder:!1}})}}class cp extends Hi{constructor(te,{focusTracker:ne,focusables:ie,keystrokes:re,colorPickerViewConfig:le}){super(te),this.items=this.createCollection(),this.focusTracker=ne,this.keystrokes=re,this.set("isVisible",!1),this.set("selectedColor",void 0),this._focusables=ie,this._colorPickerViewConfig=le;const ce=this.bindTemplate,{saveButtonView:de,cancelButtonView:ue}=this._createActionButtons();this.saveButtonView=de,this.cancelButtonView=ue,this.actionBarView=this._createActionBarView({saveButtonView:de,cancelButtonView:ue}),this.setTemplate({tag:"div",attributes:{class:["ck-color-picker-fragment",ce.if("isVisible","ck-hidden",(te=>!te))]},children:this.items})}render(){super.render();const te=new tp(this.locale,{...this._colorPickerViewConfig});this.colorPickerView=te,this.colorPickerView.render(),this.selectedColor&&(te.color=this.selectedColor),this.listenTo(this,"change:selectedColor",((ne,ie,re)=>{te.color=re})),this.items.add(this.colorPickerView),this.items.add(this.actionBarView),this._addColorPickersElementsToFocusTracker(),this._stopPropagationOnArrowsKeys(),this._executeOnEnterPress(),this._executeUponColorChange()}destroy(){super.destroy()}focus(){this.colorPickerView.focus()}_executeOnEnterPress(){this.keystrokes.set("enter",(te=>{this.isVisible&&this.focusTracker.focusedElement!==this.cancelButtonView.element&&(this.fire("execute",{value:this.selectedColor}),te.stopPropagation(),te.preventDefault())}))}_stopPropagationOnArrowsKeys(){const t=te=>te.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}_addColorPickersElementsToFocusTracker(){for(const te of this.colorPickerView.slidersView)this.focusTracker.add(te.element),this._focusables.add(te);const te=this.colorPickerView.hexInputRow.children.get(1);te.element&&(this.focusTracker.add(te.element),this._focusables.add(te)),this.focusTracker.add(this.saveButtonView.element),this._focusables.add(this.saveButtonView),this.focusTracker.add(this.cancelButtonView.element),this._focusables.add(this.cancelButtonView)}_createActionBarView({saveButtonView:te,cancelButtonView:ne}){const ie=new Hi,re=this.createCollection();return re.add(te),re.add(ne),ie.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector_action-bar"]},children:re}),ie}_createActionButtons(){const te=this.locale,ne=te.t,ie=new br(te),re=new br(te);return ie.set({icon:Dc.check,class:"ck-button-save",type:"button",withText:!1,label:ne("Accept")}),re.set({icon:Dc.cancel,class:"ck-button-cancel",type:"button",withText:!1,label:ne("Cancel")}),ie.on("execute",(()=>{this.fire("execute",{source:"colorPickerSaveButton",value:this.selectedColor})})),re.on("execute",(()=>{this.fire("colorPicker:cancel")})),{saveButtonView:ie,cancelButtonView:re}}_executeUponColorChange(){this.colorPickerView.on("colorSelected",((te,ne)=>{this.fire("execute",{value:ne.color,source:"colorPicker"}),this.set("selectedColor",ne.color)}))}}var wp=i(6306);Fo()(wp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),wp.Z.locals;class up extends Hi{constructor(te,{colors:ne,columns:ie,removeButtonLabel:re,documentColorsLabel:le,documentColorsCount:ce,colorPickerLabel:de,colorPickerViewConfig:ue}){super(te),this.items=this.createCollection(),this.focusTracker=new Ti,this.keystrokes=new Ii,this._focusables=new Oi,this._colorPickerViewConfig=ue,this._focusCycler=new As({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.colorGridsFragmentView=new lp(te,{colors:ne,columns:ie,removeButtonLabel:re,documentColorsLabel:le,documentColorsCount:ce,colorPickerLabel:de,focusTracker:this.focusTracker,focusables:this._focusables}),this.colorPickerFragmentView=new cp(te,{focusables:this._focusables,focusTracker:this.focusTracker,keystrokes:this.keystrokes,colorPickerViewConfig:ue}),this.set("_isColorGridsFragmentVisible",!0),this.set("_isColorPickerFragmentVisible",!1),this.set("selectedColor",void 0),this.colorGridsFragmentView.bind("isVisible").to(this,"_isColorGridsFragmentVisible"),this.colorPickerFragmentView.bind("isVisible").to(this,"_isColorPickerFragmentVisible"),this.on("change:selectedColor",((te,ne,ie)=>{this.colorGridsFragmentView.set("selectedColor",ie),this.colorPickerFragmentView.set("selectedColor",ie)})),this.colorGridsFragmentView.on("change:selectedColor",((te,ne,ie)=>{this.set("selectedColor",ie)})),this.colorPickerFragmentView.on("change:selectedColor",((te,ne,ie)=>{this.set("selectedColor",ie)})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector"]},children:this.items})}render(){super.render(),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}appendUI(){this._appendColorGridsFragment(),this._colorPickerViewConfig&&this._appendColorPickerFragment()}showColorPickerFragment(){this.colorPickerFragmentView.colorPickerView&&!this._isColorPickerFragmentVisible&&(this._isColorPickerFragmentVisible=!0,this.colorPickerFragmentView.focus(),this._isColorGridsFragmentVisible=!1)}showColorGridsFragment(){this._isColorGridsFragmentVisible||(this._isColorGridsFragmentVisible=!0,this.colorGridsFragmentView.focus(),this._isColorPickerFragmentVisible=!1)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}updateDocumentColors(te,ne){this.colorGridsFragmentView.updateDocumentColors(te,ne)}updateSelectedColors(){this.colorGridsFragmentView.updateSelectedColors()}_appendColorGridsFragment(){this.items.length||(this.items.add(this.colorGridsFragmentView),this.colorGridsFragmentView.delegate("execute").to(this),this.colorGridsFragmentView.delegate("colorPicker:show").to(this))}_appendColorPickerFragment(){2!==this.items.length&&(this.items.add(this.colorPickerFragmentView),this.colorGridsFragmentView.colorPickerButtonView&&this.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{this.showColorPickerFragment()})),this.colorGridsFragmentView.addColorPickerButton(),this.colorPickerFragmentView.delegate("execute").to(this),this.colorPickerFragmentView.delegate("colorPicker:cancel").to(this))}}class mp{constructor(te){this._components=new Map,this.editor=te}*names(){for(const te of this._components.values())yield te.originalName}add(te,ne){this._components.set(gp(te),{callback:ne,originalName:te})}create(te){if(!this.has(te))throw new C("componentfactory-item-missing",this,{name:te});return this._components.get(gp(te)).callback(this.editor.locale)}has(te){return this._components.has(gp(te))}}function gp(te){return String(te).toLowerCase()}var Ip=i(1874);Fo()(Ip.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ip.Z.locals;class kp extends Hi{constructor(te,ne={}){super(te);const ie=this.bindTemplate;this.set("label",ne.label||""),this.set("class",ne.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",ie.to("class")]},children:this.children}),ne.icon&&(this.iconView=new hr,this.iconView.content=ne.icon,this.children.add(this.iconView));const re=new Hi(te);re.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"]},children:[{text:ie.to("label")}]}),this.children.add(re)}}var Sp=i(1043);Fo()(Sp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Sp.Z.locals;class Ap extends Hi{constructor(te){super(te),this.children=this.createCollection(),this.keystrokes=new Ii,this._focusTracker=new Ti,this._focusables=new Oi,this.focusCycler=new As({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__actions"]},children:this.children})}render(){super.render(),this.keystrokes.listenTo(this.element)}setButtons(te){for(const ne of te){const te=new br(this.locale);let ie;for(ie in te.on("execute",(()=>ne.onExecute())),ne.onCreate&&ne.onCreate(te),ne)"onExecute"!=ie&&"onCreate"!=ie&&te.set(ie,ne[ie]);this.children.add(te)}this._updateFocusCyclableItems()}focus(te){-1===te?this.focusCycler.focusLast():this.focusCycler.focusFirst()}_updateFocusCyclableItems(){Array.from(this.children).forEach((te=>{this._focusables.add(te),this._focusTracker.add(te.element)}))}}class Cp extends Hi{constructor(te){super(te),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__content"]},children:this.children})}reset(){for(;this.children.length;)this.children.remove(0)}}var Tp=i(2105);Fo()(Tp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Tp.Z.locals;const Dp="screen-center",xp=Ko("px");let Ep=(()=>{class Bp extends(function(te){return class extends te{constructor(...te){super(...te),this._onDragBound=this._onDrag.bind(this),this._onDragEndBound=this._onDragEnd.bind(this),this._lastDraggingCoordinates={x:0,y:0},this.on("render",(()=>{this._attachListeners()})),this.set("isDragging",!1)}_attachListeners(){this.listenTo(this.element,"mousedown",this._onDragStart.bind(this)),this.listenTo(this.element,"touchstart",this._onDragStart.bind(this))}_attachDragListeners(){this.listenTo(go.document,"mouseup",this._onDragEndBound),this.listenTo(go.document,"touchend",this._onDragEndBound),this.listenTo(go.document,"mousemove",this._onDragBound),this.listenTo(go.document,"touchmove",this._onDragBound)}_detachDragListeners(){this.stopListening(go.document,"mouseup",this._onDragEndBound),this.stopListening(go.document,"touchend",this._onDragEndBound),this.stopListening(go.document,"mousemove",this._onDragBound),this.stopListening(go.document,"touchmove",this._onDragBound)}_onDragStart(te,ne){if(!this._isHandleElementPressed(ne))return;this._attachDragListeners();let ie=0,re=0;ne instanceof MouseEvent?(ie=ne.clientX,re=ne.clientY):(ie=ne.touches[0].clientX,re=ne.touches[0].clientY),this._lastDraggingCoordinates={x:ie,y:re},this.isDragging=!0}_onDrag(te,ne){if(!this.isDragging)return void this._detachDragListeners();let ie=0,re=0;ne instanceof MouseEvent?(ie=ne.clientX,re=ne.clientY):(ie=ne.touches[0].clientX,re=ne.touches[0].clientY),ne.preventDefault(),this.fire("drag",{deltaX:Math.round(ie-this._lastDraggingCoordinates.x),deltaY:Math.round(re-this._lastDraggingCoordinates.y)}),this._lastDraggingCoordinates={x:ie,y:re}}_onDragEnd(){this._detachDragListeners(),this.isDragging=!1}_isHandleElementPressed(te){return!!this.dragHandleElement&&(this.dragHandleElement===te.target||te.target instanceof HTMLElement&&this.dragHandleElement.contains(te.target))}}}(Hi)){constructor(te,{getCurrentDomRoot:ne,getViewportOffset:ie}){super(te),this.wasMoved=!1;const re=this.bindTemplate,le=te.t;this.set("className",""),this.set("ariaLabel",le("Editor dialog")),this.set("isModal",!1),this.set("position",Dp),this.set("_isVisible",!1),this.set("_isTransparent",!1),this.set("_top",0),this.set("_left",0),this._getCurrentDomRoot=ne,this._getViewportOffset=ie,this.decorate("moveTo"),this.parts=this.createCollection(),this.keystrokes=new Ii,this.focusTracker=new Ti,this._focusables=new Oi,this._focusCycler=new As({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog-overlay",re.if("isModal","ck-dialog-overlay__transparent",(te=>!te)),re.if("_isVisible","ck-hidden",(te=>!te))],tabindex:"-1"},children:[{tag:"div",attributes:{tabindex:"-1",class:["ck","ck-dialog",re.to("className")],role:"dialog","aria-label":re.to("ariaLabel"),style:{top:re.to("_top",(te=>xp(te))),left:re.to("_left",(te=>xp(te))),visibility:re.if("_isTransparent","hidden")}},children:this.parts}]})}render(){super.render(),this.keystrokes.set("Esc",((te,ne)=>{this.fire("close",{source:"escKeyPress"}),ne()})),this.on("drag",((te,{deltaX:ne,deltaY:ie})=>{this.wasMoved=!0,this.moveBy(ne,ie)})),this.listenTo(go.window,"resize",(()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()})),this.listenTo(go.document,"scroll",(()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()})),this.on("change:_isVisible",((te,ne,ie)=>{ie&&(this._isTransparent=!0,setTimeout((()=>{this.updatePosition(),this._isTransparent=!1,this.focus()}),10))})),this.keystrokes.listenTo(this.element)}get dragHandleElement(){return this.headerView?this.headerView.element:null}setupParts({icon:te,title:ne,hasCloseButton:ie=!0,content:re,actionButtons:le}){ne&&(this.headerView=new kp(this.locale,{icon:te}),ie&&(this.closeButtonView=this._createCloseButton(),this.headerView.children.add(this.closeButtonView)),this.headerView.label=ne,this.ariaLabel=ne,this.parts.add(this.headerView,0)),re&&(re instanceof Hi&&(re=[re]),this.contentView=new Cp(this.locale),this.contentView.children.addMany(re),this.parts.add(this.contentView)),le&&(this.actionsView=new Ap(this.locale),this.actionsView.setButtons(le),this.parts.add(this.actionsView)),this._updateFocusCyclableItems()}focus(){this._focusCycler.focusFirst()}moveTo(te,ne){const ie=this._getViewportRect(),re=this._getDialogRect();te+re.width>ie.right&&(te=ie.right-re.width),te<ie.left&&(te=ie.left),ne<ie.top&&(ne=ie.top),this._moveTo(te,ne)}_moveTo(te,ne){this._left=te,this._top=ne}moveBy(te,ne){this.moveTo(this._left+te,this._top+ne)}_moveOffScreen(){this._moveTo(-9999,-9999)}updatePosition(){if(!this.element||!this.element.parentNode)return;const te=this._getViewportRect();let ne,ie=this.position;this._getCurrentDomRoot()?ne=this._getVisibleDomRootRect(te):ie=Dp;const re=Bp.defaultOffset,le=this._getDialogRect();switch(ie){case"editor-top-side":if(ne){const te="ltr"===this.locale.contentLanguageDirection?ne.right-le.width-re:ne.left+re;this.moveTo(te,ne.top+re)}else this._moveOffScreen();break;case"editor-center":ne?this.moveTo(Math.round(ne.left+ne.width/2-le.width/2),Math.round(ne.top+ne.height/2-le.height/2)):this._moveOffScreen();break;case Dp:this.moveTo(Math.round((te.width-le.width)/2),Math.round((te.height-le.height)/2));break;case"editor-top-center":ne?this.moveTo(Math.round(ne.left+ne.width/2-le.width/2),ne.top+re):this._moveOffScreen();break;case"editor-bottom-center":ne?this.moveTo(Math.round(ne.left+ne.width/2-le.width/2),ne.bottom-le.height-re):this._moveOffScreen();break;case"editor-above-center":ne?this.moveTo(Math.round(ne.left+ne.width/2-le.width/2),ne.top-le.height-re):this._moveOffScreen();break;case"editor-below-center":ne?this.moveTo(Math.round(ne.left+ne.width/2-le.width/2),ne.bottom+re):this._moveOffScreen()}}_getVisibleDomRootRect(te){let ne=new jo(this._getCurrentDomRoot()).getVisible();return ne?(ne=te.getIntersection(ne),ne||null):null}_getDialogRect(){return new jo(this.element.firstElementChild)}_getViewportRect(){return function(te){te=Object.assign({top:0,bottom:0,left:0,right:0},te);const ne=new jo(go.window);return ne.top+=te.top,ne.height-=te.top,ne.bottom-=te.bottom,ne.height-=te.bottom,ne.left+=te.left,ne.right-=te.right,ne.width-=te.left+te.right,ne}(this._getViewportOffset())}_updateFocusCyclableItems(){const te=[];if(this.contentView)for(const ne of this.contentView.children)_s(ne)&&te.push(ne);this.actionsView&&te.push(this.actionsView),this.closeButtonView&&te.push(this.closeButtonView),te.forEach((te=>{var ne;this._focusables.add(te),this.focusTracker.add(te.element),_s(ne=te)&&"focusCycler"in ne&&ne.focusCycler instanceof As&&(this.listenTo(te.focusCycler,"forwardCycle",(te=>{this._focusCycler.focusNext(),this._focusCycler.next!==this._focusCycler.focusables.get(this._focusCycler.current)&&te.stop()})),this.listenTo(te.focusCycler,"backwardCycle",(te=>{this._focusCycler.focusPrevious(),this._focusCycler.previous!==this._focusCycler.focusables.get(this._focusCycler.current)&&te.stop()})))}))}_createCloseButton(){const te=new br(this.locale),ne=this.locale.t;return te.set({label:ne("Close"),tooltip:!0,icon:Tc}),te.on("execute",(()=>this.fire("close",{source:"closeButton"}))),te}}return Bp.defaultOffset=15,Bp})();const Mp=Ep;var Np=i(4460);Fo()(Np.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Np.Z.locals;const Rp=Ko("px"),Lp=go.document.body,Op={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}};class Vp extends Hi{constructor(te){super(te);const ne=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",ne.to("position",(te=>`ck-balloon-panel_${te}`)),ne.if("isVisible","ck-balloon-panel_visible"),ne.if("withArrow","ck-balloon-panel_with-arrow"),ne.to("class")],style:{top:ne.to("top",Rp),left:ne.to("left",Rp)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(te){this.show();const ne=Vp.defaultPositions,ie=Object.assign({},{element:this.element,positions:[ne.southArrowNorth,ne.southArrowNorthMiddleWest,ne.southArrowNorthMiddleEast,ne.southArrowNorthWest,ne.southArrowNorthEast,ne.northArrowSouth,ne.northArrowSouthMiddleWest,ne.northArrowSouthMiddleEast,ne.northArrowSouthWest,ne.northArrowSouthEast,ne.viewportStickyNorth],limiter:Lp,fitInViewport:!0},te),re=Vp._getOptimalPosition(ie)||Op,le=parseInt(re.left),ce=parseInt(re.top),de=re.name,ue=re.config||{},{withArrow:me=!0}=ue;this.top=ce,this.left=le,this.position=de,this.withArrow=me}pin(te){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(te):this._stopPinning()},this._startPinning(te),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(te){this.attachTo(te);const ne=jp(te.target),ie=te.limiter?jp(te.limiter):Lp;this.listenTo(go.document,"scroll",((re,le)=>{const ce=le.target,de=ne&&ce.contains(ne),ue=ie&&ce.contains(ie);!de&&!ue&&ne&&ie||this.attachTo(te)}),{useCapture:!0}),this.listenTo(go.window,"resize",(()=>{this.attachTo(te)}))}_stopPinning(){this.stopListening(go.document,"scroll"),this.stopListening(go.window,"resize")}}Vp.arrowSideOffset=25,Vp.arrowHeightOffset=10,Vp.stickyVerticalOffset=20,Vp._getOptimalPosition=ei,Vp.defaultPositions=Hp();const Pp=Vp;function jp(te){return yo(te)?te:Ro(te)?te.commonAncestorContainer:"function"==typeof te?jp(te()):null}function Hp(te={}){const{sideOffset:ne=Vp.arrowSideOffset,heightOffset:ie=Vp.arrowHeightOffset,stickyVerticalOffset:re=Vp.stickyVerticalOffset,config:le}=te;return{northWestArrowSouthWest:(te,ie)=>({top:r(te,ie),left:te.left-ne,name:"arrow_sw",...le&&{config:le}}),northWestArrowSouthMiddleWest:(te,ie)=>({top:r(te,ie),left:te.left-.25*ie.width-ne,name:"arrow_smw",...le&&{config:le}}),northWestArrowSouth:(te,ne)=>({top:r(te,ne),left:te.left-ne.width/2,name:"arrow_s",...le&&{config:le}}),northWestArrowSouthMiddleEast:(te,ie)=>({top:r(te,ie),left:te.left-.75*ie.width+ne,name:"arrow_sme",...le&&{config:le}}),northWestArrowSouthEast:(te,ie)=>({top:r(te,ie),left:te.left-ie.width+ne,name:"arrow_se",...le&&{config:le}}),northArrowSouthWest:(te,ie)=>({top:r(te,ie),left:te.left+te.width/2-ne,name:"arrow_sw",...le&&{config:le}}),northArrowSouthMiddleWest:(te,ie)=>({top:r(te,ie),left:te.left+te.width/2-.25*ie.width-ne,name:"arrow_smw",...le&&{config:le}}),northArrowSouth:(te,ne)=>({top:r(te,ne),left:te.left+te.width/2-ne.width/2,name:"arrow_s",...le&&{config:le}}),northArrowSouthMiddleEast:(te,ie)=>({top:r(te,ie),left:te.left+te.width/2-.75*ie.width+ne,name:"arrow_sme",...le&&{config:le}}),northArrowSouthEast:(te,ie)=>({top:r(te,ie),left:te.left+te.width/2-ie.width+ne,name:"arrow_se",...le&&{config:le}}),northEastArrowSouthWest:(te,ie)=>({top:r(te,ie),left:te.right-ne,name:"arrow_sw",...le&&{config:le}}),northEastArrowSouthMiddleWest:(te,ie)=>({top:r(te,ie),left:te.right-.25*ie.width-ne,name:"arrow_smw",...le&&{config:le}}),northEastArrowSouth:(te,ne)=>({top:r(te,ne),left:te.right-ne.width/2,name:"arrow_s",...le&&{config:le}}),northEastArrowSouthMiddleEast:(te,ie)=>({top:r(te,ie),left:te.right-.75*ie.width+ne,name:"arrow_sme",...le&&{config:le}}),northEastArrowSouthEast:(te,ie)=>({top:r(te,ie),left:te.right-ie.width+ne,name:"arrow_se",...le&&{config:le}}),southWestArrowNorthWest:te=>({top:s(te),left:te.left-ne,name:"arrow_nw",...le&&{config:le}}),southWestArrowNorthMiddleWest:(te,ie)=>({top:s(te),left:te.left-.25*ie.width-ne,name:"arrow_nmw",...le&&{config:le}}),southWestArrowNorth:(te,ne)=>({top:s(te),left:te.left-ne.width/2,name:"arrow_n",...le&&{config:le}}),southWestArrowNorthMiddleEast:(te,ie)=>({top:s(te),left:te.left-.75*ie.width+ne,name:"arrow_nme",...le&&{config:le}}),southWestArrowNorthEast:(te,ie)=>({top:s(te),left:te.left-ie.width+ne,name:"arrow_ne",...le&&{config:le}}),southArrowNorthWest:te=>({top:s(te),left:te.left+te.width/2-ne,name:"arrow_nw",...le&&{config:le}}),southArrowNorthMiddleWest:(te,ie)=>({top:s(te),left:te.left+te.width/2-.25*ie.width-ne,name:"arrow_nmw",...le&&{config:le}}),southArrowNorth:(te,ne)=>({top:s(te),left:te.left+te.width/2-ne.width/2,name:"arrow_n",...le&&{config:le}}),southArrowNorthMiddleEast:(te,ie)=>({top:s(te),left:te.left+te.width/2-.75*ie.width+ne,name:"arrow_nme",...le&&{config:le}}),southArrowNorthEast:(te,ie)=>({top:s(te),left:te.left+te.width/2-ie.width+ne,name:"arrow_ne",...le&&{config:le}}),southEastArrowNorthWest:te=>({top:s(te),left:te.right-ne,name:"arrow_nw",...le&&{config:le}}),southEastArrowNorthMiddleWest:(te,ie)=>({top:s(te),left:te.right-.25*ie.width-ne,name:"arrow_nmw",...le&&{config:le}}),southEastArrowNorth:(te,ne)=>({top:s(te),left:te.right-ne.width/2,name:"arrow_n",...le&&{config:le}}),southEastArrowNorthMiddleEast:(te,ie)=>({top:s(te),left:te.right-.75*ie.width+ne,name:"arrow_nme",...le&&{config:le}}),southEastArrowNorthEast:(te,ie)=>({top:s(te),left:te.right-ie.width+ne,name:"arrow_ne",...le&&{config:le}}),westArrowEast:(te,ne)=>({top:te.top+te.height/2-ne.height/2,left:te.left-ne.width-ie,name:"arrow_e",...le&&{config:le}}),eastArrowWest:(te,ne)=>({top:te.top+te.height/2-ne.height/2,left:te.right+ie,name:"arrow_w",...le&&{config:le}}),viewportStickyNorth:(te,ne,ie,ce)=>{const de=ce||ie;return te.getIntersection(de)?de.height-te.height>re?null:{top:de.top+re,left:te.left+te.width/2-ne.width/2,name:"arrowless",config:{withArrow:!1,...le}}:null}};function r(te,ne){return te.top-ne.height-ie}function s(te){return te.bottom+ie}}var Fp=i(3888);Fo()(Fp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Fp.Z.locals;const Gp="ck-tooltip";class qp extends(Mo()){constructor(te){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,qp._editors.add(te),qp._instance)return qp._instance;qp._instance=this,this.tooltipTextView=new Hi(te.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new Pp(te.locale),this.balloonPanelView.class=Gp,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=Xr(this._pinTooltip,600),this.listenTo(go.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(go.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(go.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(go.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(go.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(te){const ne=te.ui.view&&te.ui.view.body;qp._editors.delete(te),this.stopListening(te.ui),ne&&ne.has(this.balloonPanelView)&&ne.remove(this.balloonPanelView),qp._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),qp._instance=null)}static getPositioningFunctions(te){const ne=qp.defaultBalloonPositions;return{s:[ne.southArrowNorth,ne.southArrowNorthEast,ne.southArrowNorthWest],n:[ne.northArrowSouth],e:[ne.eastArrowWest],w:[ne.westArrowEast],sw:[ne.southArrowNorthEast],se:[ne.southArrowNorthWest]}[te]}_onEnterOrFocus(te,{target:ne}){const ie=$p(ne);var re;ie&&ie!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(ie,{text:(re=ie).dataset.ckeTooltipText,position:re.dataset.ckeTooltipPosition||"s",cssClass:re.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(te,{target:ne,relatedTarget:ie}){if("mouseleave"===te.name){if(!yo(ne))return;if(this._currentElementWithTooltip&&ne!==this._currentElementWithTooltip)return;const te=$p(ne),re=$p(ie);te&&te!==re&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&ne!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(te,{target:ne}){this._currentElementWithTooltip&&(ne.contains(this.balloonPanelView.element)&&ne.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(te,{text:ne,position:ie,cssClass:re}){const le=Si(qp._editors.values()).ui.view.body;le.has(this.balloonPanelView)||le.add(this.balloonPanelView),this.tooltipTextView.text=ne,this.balloonPanelView.pin({target:te,positions:qp.getPositioningFunctions(ie)}),this._resizeObserver=new _o(te,(()=>{ti(te)||this._unpinTooltip()})),this.balloonPanelView.class=[Gp,re].filter((te=>te)).join(" ");for(const te of qp._editors)this.listenTo(te.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=te,this._currentTooltipPosition=ie}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const te of qp._editors)this.stopListening(te.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){ti(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:qp.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}}qp.defaultBalloonPositions=Hp({heightOffset:5,sideOffset:13}),qp._editors=new Set,qp._instance=null;const zp=qp;function $p(te){return yo(te)?te.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}const Kp=function(te,ne,ie){var re=!0,le=!0;if("function"!=typeof te)throw new TypeError("Expected a function");return V(ie)&&(re="leading"in ie?!!ie.leading:re,le="trailing"in ie?!!ie.trailing:le),Xr(te,ne,{leading:re,maxWait:ne,trailing:le})};class Xp extends(Mo()){constructor(te){super(),this.editor=te,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Kp(this._showBalloon.bind(this),50,{leading:!0}),te.on("ready",this._handleEditorReady.bind(this))}destroy(){const te=this._balloonView;te&&(te.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const te=this.editor;(te.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(te){function e(te){return te.length>=40&&te.length<=255?"VALID":"INVALID"}if(!te)return"INVALID";let ne="";try{ne=atob(te)}catch(te){return"INVALID"}const ie=ne.split("-"),re=ie[0],le=ie[1];if(!le)return e(te);try{atob(le)}catch(ne){try{if(atob(re),!atob(re).length)return e(te)}catch(ne){return e(te)}}if(re.length<40||re.length>255)return"INVALID";let ce="";try{atob(re),ce=atob(le)}catch(te){return"INVALID"}if(8!==ce.length)return"INVALID";const de=Number(ce.substring(0,4)),ue=Number(ce.substring(4,6))-1,me=Number(ce.substring(6,8)),fe=new Date(de,ue,me);return fe<ge||isNaN(Number(fe))?"INVALID":"VALID"}(te.config.get("licenseKey")))&&te.ui.view&&(te.ui.focusTracker.on("change:isFocused",((te,ne,ie)=>{this._updateLastFocusedEditableElement(),ie?this._showBalloon():this._hideBalloon()})),te.ui.focusTracker.on("change:focusedElement",((te,ne,ie)=>{this._updateLastFocusedEditableElement(),ie&&this._showBalloon()})),te.ui.on("update",(()=>{this._showBalloonThrottled()})))}_createBalloonView(){const te=this.editor,ne=this._balloonView=new Pp,ie=nf(te),re=new tf(te.locale,ie.label);ne.content.add(re),ne.set({class:"ck-powered-by-balloon"}),te.ui.view.body.add(ne),te.ui.focusTracker.add(ne.element),this._balloonView=ne}_showBalloon(){if(!this._lastFocusedEditableElement)return;const te=function(te,ne){const ie=nf(te),re="right"===ie.side?function(te,ne){return ef(te,ne,((te,ie)=>te.left+te.width-ie.width-ne.horizontalOffset))}(ne,ie):function(te,ne){return ef(te,ne,(te=>te.left+ne.horizontalOffset))}(ne,ie);return{target:ne,positions:[re]}}(this.editor,this._lastFocusedEditableElement);te&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(te))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const te=this.editor,ne=te.ui.focusTracker.isFocused,ie=te.ui.focusTracker.focusedElement;if(!ne||!ie)return void(this._lastFocusedEditableElement=null);const re=Array.from(te.ui.getEditableElementsNames()).map((ne=>te.ui.getEditableElement(ne)));re.includes(ie)?this._lastFocusedEditableElement=ie:this._lastFocusedEditableElement=re[0]}}class tf extends Hi{constructor(te,ne){super(te);const ie=new hr,re=this.bindTemplate;ie.set({content:'<svg xmlns="http://www.w3.org/2000/svg" width="53" height="10" viewBox="0 0 53 10"><path fill="#1C2331" d="M31.724 1.492a15.139 15.139 0 0 0 .045 1.16 2.434 2.434 0 0 0-.687-.34 3.68 3.68 0 0 0-1.103-.166 2.332 2.332 0 0 0-1.14.255 1.549 1.549 0 0 0-.686.87c-.15.41-.225.98-.225 1.712 0 .939.148 1.659.444 2.161.297.503.792.754 1.487.754.452.015.9-.094 1.294-.316.296-.174.557-.4.771-.669l.14.852h1.282V.007h-1.623v1.485ZM31 6.496a1.77 1.77 0 0 1-.494.061.964.964 0 0 1-.521-.127.758.758 0 0 1-.296-.466 3.984 3.984 0 0 1-.093-.992 4.208 4.208 0 0 1 .098-1.052.753.753 0 0 1 .307-.477 1.08 1.08 0 0 1 .55-.122c.233-.004.466.026.69.089l.483.144v2.553c-.11.076-.213.143-.307.2a1.73 1.73 0 0 1-.417.189ZM35.68 0l-.702.004c-.322.002-.482.168-.48.497l.004.581c.002.33.164.493.486.49l.702-.004c.322-.002.481-.167.48-.496L36.165.49c-.002-.33-.164-.493-.486-.491ZM36.145 2.313l-1.612.01.034 5.482 1.613-.01-.035-5.482ZM39.623.79 37.989.8 38 2.306l-.946.056.006 1.009.949-.006.024 2.983c.003.476.143.844.419 1.106.275.26.658.39 1.148.387.132 0 .293-.01.483-.03.19-.02.38-.046.57-.08.163-.028.324-.068.482-.119l-.183-1.095-.702.004a.664.664 0 0 1-.456-.123.553.553 0 0 1-.14-.422l-.016-2.621 1.513-.01-.006-1.064-1.514.01-.01-1.503ZM46.226 2.388c-.41-.184-.956-.274-1.636-.27-.673.004-1.215.101-1.627.29-.402.179-.72.505-.888.91-.18.419-.268.979-.264 1.68.004.688.1 1.24.285 1.655.172.404.495.724.9.894.414.18.957.268 1.63.264.68-.004 1.224-.099 1.632-.284.4-.176.714-.501.878-.905.176-.418.263-.971.258-1.658-.004-.702-.097-1.261-.28-1.677a1.696 1.696 0 0 0-.888-.9Zm-.613 3.607a.77.77 0 0 1-.337.501 1.649 1.649 0 0 1-1.317.009.776.776 0 0 1-.343-.497 4.066 4.066 0 0 1-.105-1.02 4.136 4.136 0 0 1 .092-1.03.786.786 0 0 1 .337-.507 1.59 1.59 0 0 1 1.316-.008.79.79 0 0 1 .344.502c.078.337.113.683.105 1.03.012.343-.019.685-.092 1.02ZM52.114 2.07a2.67 2.67 0 0 0-1.128.278c-.39.191-.752.437-1.072.73l-.157-.846-1.273.008.036 5.572 1.623-.01-.024-3.78c.35-.124.646-.22.887-.286.26-.075.53-.114.8-.118l.45-.003.144-1.546-.286.001ZM22.083 7.426l-1.576-2.532a2.137 2.137 0 0 0-.172-.253 1.95 1.95 0 0 0-.304-.29.138.138 0 0 1 .042-.04 1.7 1.7 0 0 0 .328-.374l1.75-2.71c.01-.015.025-.028.024-.048-.01-.01-.021-.007-.031-.007L20.49 1.17a.078.078 0 0 0-.075.045l-.868 1.384c-.23.366-.46.732-.688 1.099a.108.108 0 0 1-.112.06c-.098-.005-.196-.001-.294-.002-.018 0-.038.006-.055-.007.002-.02.002-.039.005-.058a4.6 4.6 0 0 0 .046-.701V1.203c0-.02-.009-.032-.03-.03h-.033L16.93 1.17c-.084 0-.073-.01-.073.076v6.491c-.001.018.006.028.025.027h1.494c.083 0 .072.007.072-.071v-2.19c0-.055-.003-.11-.004-.166a3.366 3.366 0 0 0-.05-.417h.06c.104 0 .209.002.313-.002a.082.082 0 0 1 .084.05c.535.913 1.07 1.824 1.607 2.736a.104.104 0 0 0 .103.062c.554-.003 1.107-.002 1.66-.002l.069-.003-.019-.032-.188-.304ZM27.112 6.555c-.005-.08-.004-.08-.082-.08h-2.414c-.053 0-.106-.003-.159-.011a.279.279 0 0 1-.246-.209.558.558 0 0 1-.022-.15c0-.382 0-.762-.002-1.143 0-.032.007-.049.042-.044h2.504c.029.003.037-.012.034-.038V3.814c0-.089.013-.078-.076-.078h-2.44c-.07 0-.062.003-.062-.06v-.837c0-.047.004-.093.013-.14a.283.283 0 0 1 .241-.246.717.717 0 0 1 .146-.011h2.484c.024.002.035-.009.036-.033l.003-.038.03-.496c.01-.183.024-.365.034-.548.005-.085.003-.087-.082-.094-.218-.018-.437-.038-.655-.05a17.845 17.845 0 0 0-.657-.026 72.994 72.994 0 0 0-1.756-.016 1.7 1.7 0 0 0-.471.064 1.286 1.286 0 0 0-.817.655c-.099.196-.149.413-.145.633v3.875c0 .072.003.144.011.216a1.27 1.27 0 0 0 .711 1.029c.228.113.48.167.734.158.757-.005 1.515.002 2.272-.042.274-.016.548-.034.82-.053.03-.002.043-.008.04-.041-.008-.104-.012-.208-.019-.312a69.964 69.964 0 0 1-.05-.768ZM16.14 7.415l-.127-1.075c-.004-.03-.014-.04-.044-.037a13.125 13.125 0 0 1-.998.073c-.336.01-.672.02-1.008.016-.116-.001-.233-.014-.347-.039a.746.746 0 0 1-.45-.262c-.075-.1-.132-.211-.167-.33a3.324 3.324 0 0 1-.126-.773 9.113 9.113 0 0 1-.015-.749c0-.285.022-.57.065-.852.023-.158.066-.312.127-.46a.728.728 0 0 1 .518-.443 1.64 1.64 0 0 1 .397-.048c.628-.001 1.255.003 1.882.05.022.001.033-.006.036-.026l.003-.031.06-.55c.019-.177.036-.355.057-.532.004-.034-.005-.046-.04-.056a5.595 5.595 0 0 0-1.213-.21 10.783 10.783 0 0 0-.708-.02c-.24-.003-.48.01-.719.041a3.477 3.477 0 0 0-.625.14 1.912 1.912 0 0 0-.807.497c-.185.2-.33.433-.424.688a4.311 4.311 0 0 0-.24 1.096c-.031.286-.045.572-.042.86-.006.43.024.86.091 1.286.04.25.104.497.193.734.098.279.26.53.473.734.214.205.473.358.756.446.344.11.702.17 1.063.177a8.505 8.505 0 0 0 1.578-.083 6.11 6.11 0 0 0 .766-.18c.03-.008.047-.023.037-.057a.157.157 0 0 1-.003-.025Z"/><path fill="#AFE229" d="M6.016 6.69a1.592 1.592 0 0 0-.614.21c-.23.132-.422.32-.56.546-.044.072-.287.539-.287.539l-.836 1.528.009.006c.038.025.08.046.123.063.127.046.26.07.395.073.505.023 1.011-.007 1.517-.003.29.009.58.002.869-.022a.886.886 0 0 0 .395-.116.962.962 0 0 0 .312-.286c.056-.083.114-.163.164-.249.24-.408.48-.816.718-1.226.075-.128.148-.257.222-.386l.112-.192a1.07 1.07 0 0 0 .153-.518l-1.304.023s-1.258-.005-1.388.01Z"/><path fill="#771BFF" d="m2.848 9.044.76-1.39.184-.352c-.124-.067-.245-.14-.367-.21-.346-.204-.706-.384-1.045-.6a.984.984 0 0 1-.244-.207c-.108-.134-.136-.294-.144-.46-.021-.409-.002-.818-.009-1.227-.003-.195 0-.39.003-.585.004-.322.153-.553.427-.713l.833-.488c.22-.13.44-.257.662-.385.05-.029.105-.052.158-.077.272-.128.519-.047.76.085l.044.028c.123.06.242.125.358.196.318.178.635.357.952.537.095.056.187.117.275.184.194.144.254.35.266.578.016.284.007.569.006.853-.001.28.004.558 0 .838.592-.003 1.259 0 1.259 0l.723-.013c-.003-.292-.007-.584-.007-.876 0-.524.015-1.048-.016-1.571-.024-.42-.135-.8-.492-1.067a5.02 5.02 0 0 0-.506-.339A400.52 400.52 0 0 0 5.94.787C5.722.664 5.513.524 5.282.423 5.255.406 5.228.388 5.2.373 4.758.126 4.305-.026 3.807.21c-.097.046-.197.087-.29.14A699.896 699.896 0 0 0 .783 1.948c-.501.294-.773.717-.778 1.31-.004.36-.009.718-.001 1.077.016.754-.017 1.508.024 2.261.016.304.07.6.269.848.127.15.279.28.448.382.622.4 1.283.734 1.92 1.11l.183.109Z"/></svg>\n',isColorInherited:!1}),ie.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...ne?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[ne]}]:[],ie],on:{dragstart:re.to((te=>te.preventDefault()))}}]})}}function ef(te,ne,ie){return(re,le)=>{const ce=new jo(te);if(ce.width<350||ce.height<50)return null;let de;de="inside"===ne.position?ce.bottom-le.height:ce.bottom-le.height/2,de-=ne.verticalOffset;const ue=ie(ce,le),me=re.clone().moveTo(ue,de).getIntersection(le.clone().moveTo(ue,de)).getVisible();return!me||me.getArea()<le.getArea()?null:{top:de,left:ue,name:`position_${ne.position}-side_${ne.side}`,config:{withArrow:!1}}}}function nf(te){const ne=te.config.get("ui.poweredBy"),ie=ne&&ne.position||"border";return{position:ie,label:"Powered by",verticalOffset:"inside"===ie?5:0,horizontalOffset:5,side:"ltr"===te.locale.contentLanguageDirection?"right":"left",...ne}}var Up=i(3290);Fo()(Up.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Up.Z.locals;const Yp="polite";class af{constructor(te){this.editor=te}announce(te,ne,ie=Yp){const re=this.editor;this.view||(this.view=new lf(re.locale),re.ui.view.body.add(this.view));let le=this.view.regionViews.find((ne=>ne.regionName===te));le||(le=new cf(this.view.locale),this.view.regionViews.add(le)),le.set({regionName:te,text:ne,politeness:ie})}}class lf extends Hi{constructor(te){super(te),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class cf extends Hi{constructor(te){super(te);const ne=this.bindTemplate;this.set("regionName",""),this.set("text",""),this.set("politeness",Yp),this.setTemplate({tag:"div",attributes:{role:"region","data-region":ne.to("regionName"),"aria-live":ne.to("politeness")},children:[{text:ne.to("text")}]})}}class df extends(q()){constructor(te){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const ne=te.editing.view;this.editor=te,this.componentFactory=new mp(te),this.focusTracker=new Ti,this.tooltipManager=new zp(te),this.poweredBy=new Xp(te),this.ariaLiveAnnouncer=new af(te),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",(()=>{this.isReady=!0})),this.listenTo(ne.document,"layoutChanged",this.update.bind(this)),this.listenTo(ne,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const te of this._editableElementsMap.values())te.ckeditorInstance=null,this.editor.keystrokes.stopListening(te);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(te,ne){this._editableElementsMap.set(te,ne),ne.ckeditorInstance||(ne.ckeditorInstance=this.editor),this.focusTracker.add(ne);const n=()=>{this.editor.editing.view.getDomRoot(te)||this.editor.keystrokes.listenTo(ne)};this.isReady?n():this.once("ready",n)}removeEditableElement(te){const ne=this._editableElementsMap.get(te);ne&&(this._editableElementsMap.delete(te),this.editor.keystrokes.stopListening(ne),this.focusTracker.remove(ne),ne.ckeditorInstance=null)}getEditableElement(te="main"){return this._editableElementsMap.get(te)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(te,ne={}){te.isRendered?(this.focusTracker.add(te.element),this.editor.keystrokes.listenTo(te.element)):te.once("render",(()=>{this.focusTracker.add(te.element),this.editor.keystrokes.listenTo(te.element)})),this._focusableToolbarDefinitions.push({toolbarView:te,options:ne})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const te=this.editor,ne=te.config.get("ui.viewportOffset");if(ne)return ne;const ie=te.config.get("toolbar.viewportTopOffset");return ie?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:ie}):{top:0}}_initFocusTracking(){const te=this.editor,ne=te.editing.view;let ie,re;te.keystrokes.set("Alt+F10",((te,le)=>{const ce=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(ce)&&!Array.from(ne.domRoots.values()).includes(ce)&&(ie=ce);const de=this._getCurrentFocusedToolbarDefinition();de&&re||(re=this._getFocusableCandidateToolbarDefinitions());for(let te=0;te<re.length;te++){const te=re.shift();if(re.push(te),te!==de&&this._focusFocusableCandidateToolbar(te)){de&&de.options.afterBlur&&de.options.afterBlur();break}}le()})),te.keystrokes.set("Esc",((ne,re)=>{const le=this._getCurrentFocusedToolbarDefinition();le&&(ie?(ie.focus(),ie=null):te.editing.view.focus(),le.options.afterBlur&&le.options.afterBlur(),re())}))}_getFocusableCandidateToolbarDefinitions(){const te=[];for(const ne of this._focusableToolbarDefinitions){const{toolbarView:ie,options:re}=ne;(ti(ie.element)||re.beforeFocus)&&te.push(ne)}return te.sort(((te,ne)=>hf(te)-hf(ne))),te}_getCurrentFocusedToolbarDefinition(){for(const te of this._focusableToolbarDefinitions)if(te.toolbarView.element&&te.toolbarView.element.contains(this.focusTracker.focusedElement))return te;return null}_focusFocusableCandidateToolbar(te){const{toolbarView:ne,options:{beforeFocus:ie}}=te;return ie&&ie(),!!ti(ne.element)&&(ne.focus(),!0)}_handleScrollToTheSelection(te,ne){const ie={top:0,bottom:0,left:0,right:0,...this.viewportOffset};ne.viewportOffset.top+=ie.top,ne.viewportOffset.bottom+=ie.bottom,ne.viewportOffset.left+=ie.left,ne.viewportOffset.right+=ie.right}}function hf(te){const{toolbarView:ne,options:ie}=te;let re=10;return ti(ne.element)&&re--,ie.isContextual&&re--,re}var Wp=i(9847);Fo()(Wp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Wp.Z.locals;class gf extends Hi{constructor(te){super(te),this.body=new dr(te)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class pf extends gf{constructor(te){super(te),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:te.uiLanguageDirection,lang:te.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const te=this.t,ne=new ns;return ne.text=te("Rich Text Editor"),ne.extendTemplate({attributes:{class:"ck-voice-label"}}),ne}}class ff extends Hi{constructor(te,ne,ie){super(te),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:te.contentLanguage,dir:te.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=ie,this._hasExternalElement=!!this._editableElement,this._editingView=ne}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const te=this._editingView;function e(ne){te.change((ie=>{const re=te.document.getRoot(ne.name);ie.addClass(ne.isFocused?"ck-focused":"ck-blurred",re),ie.removeClass(ne.isFocused?"ck-blurred":"ck-focused",re)}))}te.isRenderingInProgress?function n(ne){te.once("change:isRenderingInProgress",((te,ie,re)=>{re?n(ne):e(ne)}))}(this):e(this)}}class kf extends ff{constructor(te,ne,ie,re={}){super(te,ne,ie);const le=te.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=re.label||(()=>le("Editor editing area: %0",this.name))}render(){super.render();const te=this._editingView;te.change((ne=>{const ie=te.document.getRoot(this.name);ne.setAttribute("aria-label",this._generateLabel(this),ie)}))}}class bf extends Ns{static get pluginName(){return"Notification"}init(){this.on("show:warning",((te,ne)=>{window.alert(ne.message)}),{priority:"lowest"})}showSuccess(te,ne={}){this._showNotification({message:te,type:"success",namespace:ne.namespace,title:ne.title})}showInfo(te,ne={}){this._showNotification({message:te,type:"info",namespace:ne.namespace,title:ne.title})}showWarning(te,ne={}){this._showNotification({message:te,type:"warning",namespace:ne.namespace,title:ne.title})}_showNotification(te){const ne=te.namespace?`show:${te.type}:${te.namespace}`:`show:${te.type}`;this.fire(ne,{message:te.message,type:te.type,title:te.title||""})}}class wf extends(q()){constructor(te,ne){super(),ne&&ls(this,ne),te&&this.set(te)}}var Qp=i(7592);Fo()(Qp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Qp.Z.locals;var Jp=i(6356);Fo()(Jp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Jp.Z.locals;const Zp=Ko("px");class xf extends Es{static get pluginName(){return"ContextualBalloon"}constructor(te){super(te),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const te=this.editor.editing.view,ne=te.document.selection.editableElement;return ne?te.domConverter.mapViewToDom(ne.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(te){return Array.from(this._viewToStack.keys()).includes(te)}add(te){if(this._view||this._createPanelView(),this.hasView(te.view))throw new C("contextualballoon-add-view-exist",[this,te]);const ne=te.stackId||"main";if(!this._idToStack.has(ne))return this._idToStack.set(ne,new Map([[te.view,te]])),this._viewToStack.set(te.view,this._idToStack.get(ne)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!te.singleViewMode||this.showStack(ne));const ie=this._idToStack.get(ne);te.singleViewMode&&this.showStack(ne),ie.set(te.view,te),this._viewToStack.set(te.view,ie),ie===this._visibleStack&&this._showView(te)}remove(te){if(!this.hasView(te))throw new C("contextualballoon-remove-view-not-exist",[this,te]);const ne=this._viewToStack.get(te);this._singleViewMode&&this.visibleView===te&&(this._singleViewMode=!1),this.visibleView===te&&(1===ne.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(ne.values())[ne.size-2])),1===ne.size?(this._idToStack.delete(this._getStackId(ne)),this._numberOfStacks=this._idToStack.size):ne.delete(te),this._viewToStack.delete(te)}updatePosition(te){te&&(this._visibleStack.get(this.visibleView).position=te),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(te){this.visibleStack=te;const ne=this._idToStack.get(te);if(!ne)throw new C("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==ne&&this._showView(Array.from(ne.values()).pop())}_createPanelView(){this._view=new Pp(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(te){return Array.from(this._idToStack.entries()).find((ne=>ne[1]===te))[0]}_showNextStack(){const te=Array.from(this._idToStack.values());let ne=te.indexOf(this._visibleStack)+1;te[ne]||(ne=0),this.showStack(this._getStackId(te[ne]))}_showPrevStack(){const te=Array.from(this._idToStack.values());let ne=te.indexOf(this._visibleStack)-1;te[ne]||(ne=te.length-1),this.showStack(this._getStackId(te[ne]))}_createRotatorView(){const te=new Ef(this.editor.locale),ne=this.editor.locale.t;return this.view.content.add(te),te.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((te,ne)=>!ne&&te>1)),te.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),te.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((te,ie)=>{if(ie<2)return"";const re=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return ne("%0 of %1",[re,ie])})),te.buttonNextView.on("execute",(()=>{te.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),te.buttonPrevView.on("execute",(()=>{te.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),te}_createFakePanelsView(){const te=new Df(this.editor.locale,this.view);return te.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((te,ne)=>!ne&&te>=2?Math.min(te-1,2):0)),te.listenTo(this.view,"change:top",(()=>te.updatePosition())),te.listenTo(this.view,"change:left",(()=>te.updatePosition())),this.editor.ui.view.body.add(te),te}_showView({view:te,balloonClassName:ne="",withArrow:ie=!0,singleViewMode:re=!1}){this.view.class=ne,this.view.withArrow=ie,this._rotatorView.showView(te),this.visibleView=te,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),re&&(this._singleViewMode=!0)}_getBalloonPosition(){let te=Array.from(this._visibleStack.values()).pop().position;return te&&(te.limiter||(te=Object.assign({},te,{limiter:this.positionLimiter})),te=Object.assign({},te,{viewportOffsetConfig:this.editor.ui.viewportOffset})),te}}class Ef extends Hi{constructor(te){super(te);const ne=te.t,ie=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Ti,this.buttonPrevView=this._createButtonView(ne("Previous"),Dc.previousArrow),this.buttonNextView=this._createButtonView(ne("Next"),Dc.nextArrow),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",ie.to("isNavigationVisible",(te=>te?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:ie.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(te){this.hideView(),this.content.add(te)}hideView(){this.content.clear()}_createButtonView(te,ne){const ie=new br(this.locale);return ie.set({label:te,icon:ne,tooltip:!0}),ie}}class Df extends Hi{constructor(te,ne){super(te);const ie=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=ne,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",ie.to("numberOfPanels",(te=>te?"":"ck-hidden"))],style:{top:ie.to("top",Zp),left:ie.to("left",Zp),width:ie.to("width",Zp),height:ie.to("height",Zp)}},children:this.content}),this.on("change:numberOfPanels",((te,ne,ie,re)=>{ie>re?this._addPanels(ie-re):this._removePanels(re-ie),this.updatePosition()}))}_addPanels(te){for(;te--;){const te=new Hi;te.setTemplate({tag:"div"}),this.content.add(te),this.registerChild(te)}}_removePanels(te){for(;te--;){const te=this.content.last;this.content.remove(te),this.deregisterChild(te),te.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:te,left:ne}=this._balloonPanelView,{width:ie,height:re}=new jo(this._balloonPanelView.element);Object.assign(this,{top:te,left:ne,width:ie,height:re})}}}var lh=i(3707);Fo()(lh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lh.Z.locals;const Xh=Ko("px");class Mf extends Hi{constructor(te){super(te);const ne=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new Ui({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:ne.to("isSticky",(te=>te?"block":"none")),height:ne.to("isSticky",(te=>te?Xh(this._contentPanelRect.height):null))}}}).render(),this.contentPanelElement=new Ui({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",ne.if("isSticky","ck-sticky-panel__content_sticky"),ne.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:ne.to("isSticky",(te=>te?Xh(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:ne.to("_stickyTopOffset",(te=>te?Xh(te):te)),bottom:ne.to("_stickyBottomOffset",(te=>te?Xh(te):te)),marginLeft:ne.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this.contentPanelElement]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(go.document,"scroll",(()=>{this.checkIfShouldBeSticky()}),{useCapture:!0}),this.listenTo(this,"change:isActive",(()=>{this.checkIfShouldBeSticky()}))}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const te=new jo(this.limiterElement);let ne=te.getVisible();if(ne){const te=new jo(go.window);te.top+=this.viewportTopOffset,te.height-=this.viewportTopOffset,ne=ne.getIntersection(te)}if(ne&&te.top<ne.top){const ie=ne.top;if(ie+this._contentPanelRect.height+this.limiterBottomOffset>ne.bottom){const ie=Math.max(te.bottom-ne.bottom,0)+this.limiterBottomOffset;te.bottom-ie>te.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(ie):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<te.height?this._stickToTopOfAncestors(ie):this._unstick()}else this._unstick()}_stickToTopOfAncestors(te){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=te,this._stickyBottomOffset=null,this._marginLeft=Xh(-go.window.scrollX)}_stickToBottomOfLimiter(te){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=te,this._marginLeft=Xh(-go.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new jo(this.contentPanelElement)}}class Bf extends rs{constructor(te,ne){const ie=te.t,re=Object.assign({},{showResetButton:!0,showIcon:!0,creator:Ag},ne);super(te,re.creator),this.label=ne.label,this._viewConfig=re,this._viewConfig.showIcon&&(this.iconView=new hr,this.iconView.content=Dc.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new br(te),this.resetButtonView.set({label:ie("Clear"),icon:Dc.cancel,class:"ck-search__reset",isVisible:!1,tooltip:!0}),this.resetButtonView.on("execute",(()=>{this.reset(),this.focus(),this.fire("reset")})),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",(te=>!te)),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class Nf extends Hi{constructor(){super();const te=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",te.if("isVisible","ck-hidden",(te=>!te))],tabindex:-1},children:[{tag:"span",children:[{text:[te.to("primaryText")]}]},{tag:"span",children:[{text:[te.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class zf extends Hi{constructor(te){super(te),this.children=this.createCollection(),this.focusTracker=new Ti,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new As({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const te of this.children)this.focusTracker.add(te.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var Qh=/[\\^$.*+?()[\]{}|]/g,em=RegExp(Qh.source),tm=i(9332);Fo()(tm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),tm.Z.locals;class Ff extends Hi{constructor(te,ne){super(te),this._config=ne,this.filteredView=ne.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new Ti,this.keystrokes=new Ii,this.resultsView=new zf(te),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),ne.infoView&&ne.infoView.instance?this.infoView=ne.infoView.instance:(this.infoView=new Nf,this._enableDefaultInfoViewBehavior(),this.on("render",(()=>{this.search("")}))),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new As({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",((te,{resultsCount:ne,totalItemsCount:ie})=>{this.resultsCount=ne,this.totalItemsCount=ie})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",ne.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const t=te=>te.stopPropagation();for(const te of this.focusableChildren)this.focusTracker.add(te.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(te){const ne=te?new RegExp(function(te){return(te=ma(te))&&em.test(te)?te.replace(Qh,"\\$&"):te}(te),"ig"):null,ie=this.filteredView.filter(ne);this.fire("search",{query:te,...ie})}_createSearchTextQueryView(){const te=new Bf(this.locale,this._config.queryView);return this.listenTo(te.fieldView,"input",(()=>{this.search(te.fieldView.element.value)})),te.on("reset",(()=>this.reset())),te.bind("isEnabled").to(this),te}_enableDefaultInfoViewBehavior(){const te=this.locale.t,ne=this.infoView;function n(te,{query:ne,resultsCount:ie,totalItemsCount:re}){return"function"==typeof te?te(ne,ie,re):te}this.on("search",((ie,re)=>{if(re.resultsCount)ne.set({isVisible:!1});else{const ie=this._config.infoView&&this._config.infoView.text;let le,ce;re.totalItemsCount?ie&&ie.notFound?(le=ie.notFound.primary,ce=ie.notFound.secondary):(le=te("No results found"),ce=""):ie&&ie.noSearchableItems?(le=ie.noSearchableItems.primary,ce=ie.noSearchableItems.secondary):(le=te("No searchable items"),ce=""),ne.set({primaryText:n(le,re),secondaryText:n(ce,re),isVisible:!0})}}))}}var nm=i(4029);Fo()(nm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),nm.Z.locals;class Uf extends Ff{constructor(te,ne){super(te,ne),this._config=ne;const ie=Ko("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const re=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[re.if("isVisible","ck-hidden",(te=>!te)),re.to("_position",(te=>`ck-search__results_${te}`))],style:{width:re.to("_width",ie)}}}),this.focusTracker.on("change:isFocused",((te,ie,re)=>{this._updateResultsVisibility(),re?this.resultsView.element.scrollTop=0:ne.resetOnBlur&&this.queryView.reset()})),this.on("search",(()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()})),this.keystrokes.set("esc",((te,ne)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,ne())})),this.listenTo(go.document,"scroll",(()=>{this._updateResultsViewWidthAndPosition()})),this.on("change:isEnabled",(()=>{this._updateResultsVisibility()})),this.filteredView.on("execute",((te,{value:ne})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=ne,this.resultsView.isVisible=!1})),this.resultsView.on("change:isVisible",(()=>{this._updateResultsViewWidthAndPosition()}))}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new jo(this.queryView.fieldView.element).width;const te=Uf._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:Uf.defaultResultsPositions});this.resultsView._position=te?te.name:"s"}_updateResultsVisibility(){const te=void 0===this._config.queryMinChars?0:this._config.queryMinChars,ne=this.queryView.fieldView.element.value.length;this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&ne>=te}}Uf.defaultResultsPositions=[te=>({top:te.bottom,left:te.left,name:"s"}),(te,ne)=>({top:te.top-ne.height,left:te.left,name:"n"})],Uf._getOptimalPosition=ei;const Wf=function(te){return function(ne){return null==te?void 0:te[ne]}};Wf({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),RegExp(/[&<>"']/g.source);var im=i(4746);Fo()(im.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),im.Z.locals;var om=i(6446);Fo()(om.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),om.Z.locals,Ko("px");var sm=i(4176);Fo()(sm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),sm.Z.locals,Ko("px"),Ko("px");class Jf extends df{constructor(te,ne){super(te),this.view=ne,this._toolbarConfig=xs(te.config.get("toolbar")),this._elementReplacer=new J,this.listenTo(te.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(te){const ne=this.editor,ie=this.view,re=ne.editing.view,le=ie.editable,ce=re.document.getRoot();le.name=ce.rootName,ie.render();const de=le.element;this.setEditableElement(le.name,de),ie.editable.bind("isFocused").to(this.focusTracker),re.attachDomRoot(de),te&&this._elementReplacer.replace(te,this.element),this._initPlaceholder(),this._initToolbar(),this._initDialogPluginIntegration(),this.fire("ready")}destroy(){super.destroy();const te=this.view,ne=this.editor.editing.view;this._elementReplacer.restore(),ne.detachDomRoot(te.editable.name),te.destroy()}_initToolbar(){const te=this.view;te.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),te.stickyPanel.limiterElement=te.element,te.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(({top:te})=>te||0)),te.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(te.toolbar)}_initPlaceholder(){const te=this.editor,ne=te.editing.view,ie=ne.document.getRoot(),re=te.sourceElement;let le;const ce=te.config.get("placeholder");ce&&(le="string"==typeof ce?ce:ce[this.view.editable.name]),!le&&re&&"textarea"===re.tagName.toLowerCase()&&(le=re.getAttribute("placeholder")),le&&(ie.placeholder=le),function Rs({view:te,element:ne,text:ie,isDirectHost:re=!0,keepOnFocus:le=!1}){const ce=te.document;function s(ie){ta.get(ce).set(ne,{text:ie,isDirectHost:re,keepOnFocus:le,hostElement:re?ne:null}),te.change((te=>Hs(ce,te)))}ta.has(ce)||(ta.set(ce,new Map),ce.registerPostFixer((te=>Hs(ce,te))),ce.on("change:isComposing",(()=>{te.change((te=>Hs(ce,te)))}),{priority:"high"})),ne.is("editableElement")&&ne.on("change:placeholder",((te,ne,ie)=>{s(ie)})),ne.placeholder?s(ne.placeholder):ie&&s(ie),ie&&(ia||_("enableplaceholder-deprecated-text-option"),ia=!0)}({view:ne,element:ie,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(te,ne,ie){const re=this.view.stickyPanel;if(re.isSticky){const te=new jo(re.element).height;ne.viewportOffset.top+=te}else{const t=()=>{this.editor.editing.view.scrollToTheSelection(ie)};this.listenTo(re,"change:isSticky",t),setTimeout((()=>{this.stopListening(re,"change:isSticky",t)}),20)}}_initDialogPluginIntegration(){if(!this.editor.plugins.has("Dialog"))return;const te=this.view.stickyPanel,ne=this.editor.plugins.get("Dialog");ne.on("show",(()=>{const ie=ne.view;ie.on("moveTo",((ne,re)=>{if(!te.isSticky||ie.wasMoved)return;const le=new jo(te.contentPanelElement);re[1]<le.bottom+Mp.defaultOffset&&(re[1]=le.bottom+Mp.defaultOffset)}),{priority:"high"})}),{priority:"low"})}}var lm=i(3624);Fo()(lm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lm.Z.locals;class ek extends pf{constructor(te,ne,ie={}){super(te),this.stickyPanel=new Mf(te),this.toolbar=new Ym(te,{shouldGroupWhenFull:ie.shouldToolbarGroupWhenFull}),this.editable=new kf(te,ne)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class nk{constructor(te){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof te.crashNumberLimit?te.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof te.minimumNonErrorTimePeriod?te.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=te=>{const ne="error"in te?te.error:te.reason;ne instanceof Error&&this._handleError(ne,te)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(te,ne){this._listeners[te]||(this._listeners[te]=[]),this._listeners[te].push(ne)}off(te,ne){this._listeners[te]=this._listeners[te].filter((te=>te!==ne))}_fire(te,...ne){const ie=this._listeners[te]||[];for(const te of ie)te.apply(this,[null,...ne])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(te,ne){if(this._shouldReactToError(te)){this.crashes.push({message:te.message,stack:te.stack,filename:ne instanceof ErrorEvent?ne.filename:void 0,lineno:ne instanceof ErrorEvent?ne.lineno:void 0,colno:ne instanceof ErrorEvent?ne.colno:void 0,date:this._now()});const ie=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:te,causesRestart:ie}),ie?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(te){return te.is&&te.is("CKEditorError")&&void 0!==te.context&&null!==te.context&&"ready"===this.state&&this._isErrorComingFromThisItem(te)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function ok(te,ne=new Set){const ie=[te],re=new Set;let le=0;for(;ie.length>le;){const ce=ie[le++];if(!re.has(ce)&&ik(ce)&&!ne.has(ce))if(re.add(ce),Symbol.iterator in ce)try{for(const te of ce)ie.push(te)}catch(te){}else for(const te in ce)"defaultValue"!==te&&ie.push(ce[te])}return re}function ik(te){const ne=Object.prototype.toString.call(te),ie=typeof te;return!("number"===ie||"boolean"===ie||"string"===ie||"symbol"===ie||"function"===ie||"[object Date]"===ne||"[object RegExp]"===ne||"[object Module]"===ne||null==te||te._watchdogExcluded||te instanceof EventTarget||te instanceof Event)}function rk(te,ne,ie=new Set){if(te===ne&&"object"==typeof(re=te)&&null!==re)return!0;var re;const le=ok(te,ie),ce=ok(ne,ie);for(const te of le)if(ce.has(te))return!0;return!1}class sk extends nk{constructor(te,ne={}){super(ne),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Kp(this._save.bind(this),"number"==typeof ne.saveInterval?ne.saveInterval:5e3),te&&(this._creator=(ne,ie)=>te.create(ne,ie)),this._destructor=te=>te.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(te){this._creator=te}setDestructor(te){this._destructor=te}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((te=>{console.error("An error happened during the editor destroying.",te)})).then((()=>{const te={},ne=[],ie=this._config.rootsAttributes||{},re={};for(const[le,ce]of Object.entries(this._data.roots))ce.isLoaded?(te[le]="",re[le]=ie[le]||{}):ne.push(le);const le={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:ne,rootsAttributes:re,_watchdogInitialData:this._data};return delete le.initialData,le.extraPlugins.push(ak),this._initUsingData?this.create(te,le,le.context):yo(this._elementOrData)?this.create(this._elementOrData,le,le.context):this.create(this._editables,le,le.context)})).then((()=>{this._fire("restart")}))}create(te=this._elementOrData,ne=this._config,ie){return Promise.resolve().then((()=>(super._startErrorHandling(),this._elementOrData=te,this._initUsingData="string"==typeof te||Object.keys(te).length>0&&"string"==typeof Object.values(te)[0],this._config=this._cloneEditorConfiguration(ne)||{},this._config.context=ie,this._creator(te,this._config)))).then((te=>{this._editor=te,te.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=te.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")}))}destroy(){return Promise.resolve().then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling(),this._throttledSave.cancel();const te=this._editor;return this._editor=null,te.model.document.off("change:data",this._throttledSave),this._destructor(te)}))}_save(){const te=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=te}catch(te){console.error(te,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(te){this._excludedProps=te}_getData(){const te=this._editor,ne=te.model.document.roots.filter((te=>te.isAttached()&&"$graveyard"!=te.rootName)),{plugins:ie}=te,re=ie.has("CommentsRepository")&&ie.get("CommentsRepository"),le=ie.has("TrackChanges")&&ie.get("TrackChanges"),ce={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};ne.forEach((te=>{ce.roots[te.rootName]={content:JSON.stringify(Array.from(te.getChildren())),attributes:JSON.stringify(Array.from(te.getAttributes())),isLoaded:te._isLoaded}}));for(const ne of te.model.markers)ne._affectsData&&(ce.markers[ne.name]={rangeJSON:ne.getRange().toJSON(),usingOperation:ne._managedUsingOperations,affectsData:ne._affectsData});return re&&(ce.commentThreads=JSON.stringify(re.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),le&&(ce.suggestions=JSON.stringify(le.getSuggestions({toJSON:!0,skipNotAttached:!0}))),ce}_getEditables(){const te={};for(const ne of this.editor.model.document.getRootNames()){const ie=this.editor.ui.getEditableElement(ne);ie&&(te[ne]=ie)}return te}_isErrorComingFromThisItem(te){return rk(this._editor,te.context,this._excludedProps)}_cloneEditorConfiguration(te){return vo(te,((te,ne)=>yo(te)||"context"===ne?te:void 0))}}class ak{constructor(te){this.editor=te,this._data=te.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",(te=>{te.stop(),this.editor.model.enqueueChange({isUndoable:!1},(te=>{this._restoreCollaborationData(),this._restoreEditorData(te)})),this.editor.data.fire("ready")}),{priority:999})}_createNode(te,ne){if("name"in ne){const ie=te.createElement(ne.name,ne.attributes);if(ne.children)for(const re of ne.children)ie._appendChild(this._createNode(te,re));return ie}return te.createText(ne.data,ne.attributes)}_restoreEditorData(te){const ne=this.editor;Object.entries(this._data.roots).forEach((([ie,{content:re,attributes:le}])=>{const ce=JSON.parse(re),de=JSON.parse(le),ue=ne.model.document.getRoot(ie);for(const[ne,ie]of de)te.setAttribute(ne,ie,ue);for(const ne of ce){const ie=this._createNode(te,ne);te.insert(ie,ue,"end")}})),Object.entries(this._data.markers).forEach((([ie,re])=>{const{document:le}=ne.model,{rangeJSON:{start:ce,end:de},...ue}=re,me=le.getRoot(ce.root),ge=te.createPositionFromPath(me,ce.path,ce.stickiness),fe=te.createPositionFromPath(me,de.path,de.stickiness),_e=te.createRange(ge,fe);te.addMarker(ie,{range:_e,...ue})}))}_restoreCollaborationData(){const te=JSON.parse(this._data.commentThreads),ne=JSON.parse(this._data.suggestions);te.forEach((te=>{const ne=this.editor.config.get("collaboration.channelId"),ie=this.editor.plugins.get("CommentsRepository");ie.hasCommentThread(te.threadId)&&ie.getCommentThread(te.threadId).remove(),ie.addCommentThread({channelId:ne,...te})})),ne.forEach((te=>{const ne=this.editor.plugins.get("TrackChangesEditing");ne.hasSuggestion(te.id)?ne.getSuggestion(te.id).attributes=te.attributes:ne.addSuggestionData(te)}))}}const dm=Symbol("MainQueueId");class ck{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(te){this._onEmptyCallbacks.push(te)}enqueue(te,ne){const ie=te===dm;this._activeActions++,this._queues.get(te)||this._queues.set(te,Promise.resolve());const re=(ie?Promise.all(this._queues.values()):Promise.all([this._queues.get(dm),this._queues.get(te)])).then(ne),le=re.catch((()=>{}));return this._queues.set(te,le),re.finally((()=>{this._activeActions--,this._queues.get(te)===le&&0===this._activeActions&&this._onEmptyCallbacks.forEach((te=>te()))}))}}function dk(te){return Array.isArray(te)?te:[te]}class hk extends(jm(Hm(Fm))){constructor(te,ne={}){if(!mk(te)&&void 0!==ne.initialData)throw new C("editor-create-initial-data",null);super(ne),void 0===this.config.get("initialData")&&this.config.set("initialData",function(te){return mk(te)?(ne=te)instanceof HTMLTextAreaElement?ne.value:ne.innerHTML:te;var ne}(te)),mk(te)&&(this.sourceElement=te),this.model.document.createRoot();const ie=!this.config.get("toolbar.shouldNotGroupWhenFull"),re=new ek(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:ie});this.ui=new Jf(this,re),function(te){if(!jt(te.updateSourceElement))throw new C("attachtoform-missing-elementapi-interface",te);const ne=te.sourceElement;if(function(te){return!!te&&"textarea"===te.tagName.toLowerCase()}(ne)&&ne.form){let ie;const re=ne.form,i=()=>te.updateSourceElement();jt(re.submit)&&(ie=re.submit,re.submit=()=>{i(),ie.apply(re)}),re.addEventListener("submit",i),te.on("destroy",(()=>{re.removeEventListener("submit",i),ie&&(re.submit=ie)}))}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(te,ne={}){return new Promise((ie=>{const re=new this(te,ne);ie(re.initPlugins().then((()=>re.ui.init(mk(te)?te:null))).then((()=>re.data.init(re.config.get("initialData")))).then((()=>re.fire("ready"))).then((()=>re)))}))}}hk.Context=Bs,hk.EditorWatchdog=sk,hk.ContextWatchdog=class extends nk{constructor(te,ne={}){super(ne),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new ck,this._watchdogConfig=ne,this._creator=ne=>te.create(ne),this._destructor=te=>te.destroy(),this._actionQueues.onEmpty((()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))}))}setCreator(te){this._creator=te}setDestructor(te){this._destructor=te}get context(){return this._context}create(te={}){return this._actionQueues.enqueue(dm,(()=>(this._contextConfig=te,this._create())))}getItem(te){return this._getWatchdog(te)._item}getItemState(te){return this._getWatchdog(te).state}add(te){const ne=dk(te);return Promise.all(ne.map((te=>this._actionQueues.enqueue(te.id,(()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let ne;if(this._watchdogs.has(te.id))throw new Error(`Item with the given id is already added: '${te.id}'.`);if("editor"===te.type)return ne=new sk(null,this._watchdogConfig),ne.setCreator(te.creator),ne._setExcludedProperties(this._contextProps),te.destructor&&ne.setDestructor(te.destructor),this._watchdogs.set(te.id,ne),ne.on("error",((ie,{error:re,causesRestart:le})=>{this._fire("itemError",{itemId:te.id,error:re}),le&&this._actionQueues.enqueue(te.id,(()=>new Promise((ie=>{const o=()=>{ne.off("restart",o),this._fire("itemRestart",{itemId:te.id}),ie()};ne.on("restart",o)}))))})),ne.create(te.sourceElementOrData,te.config,this._context);throw new Error(`Not supported item type: '${te.type}'.`)})))))}remove(te){const ne=dk(te);return Promise.all(ne.map((te=>this._actionQueues.enqueue(te,(()=>{const ne=this._getWatchdog(te);return this._watchdogs.delete(te),ne.destroy()})))))}destroy(){return this._actionQueues.enqueue(dm,(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueues.enqueue(dm,(()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((te=>{console.error("An error happened during destroying the context or items.",te)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((te=>(this._context=te,this._contextProps=ok(this._context),Promise.all(Array.from(this._watchdogs.values()).map((te=>(te._setExcludedProperties(this._contextProps),te.create(void 0,void 0,this._context))))))))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling();const te=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((te=>te.destroy()))).then((()=>this._destructor(te)))}))}_getWatchdog(te){const ne=this._watchdogs.get(te);if(!ne)throw new Error(`Item with the given id was not registered: ${te}.`);return ne}_isErrorComingFromThisItem(te){for(const ne of this._watchdogs.values())if(ne._isErrorComingFromThisItem(te))return!1;return rk(this._context,te.context)}};const um=hk;function mk(te){return yo(te)}const gm=["left","right","center","justify"];function pk(te){return gm.includes(te)}function fk(te,ne){return"rtl"==ne.contentLanguageDirection?"right"===te:"left"===te}function kk(te){const ne=te.map((te=>{let ne;return ne="string"==typeof te?{name:te}:te,ne})).filter((te=>{const ne=gm.includes(te.name);return ne||_("alignment-config-name-not-recognized",{option:te}),ne})),ie=ne.filter((te=>Boolean(te.className))).length;if(ie&&ie<ne.length)throw new C("alignment-config-classnames-are-missing",{configuredOptions:te});return ne.forEach(((ne,ie,re)=>{const le=re.slice(ie+1);if(le.some((te=>te.name==ne.name)))throw new C("alignment-config-name-already-defined",{option:ne,configuredOptions:te});if(ne.className&&le.some((te=>te.className==ne.className)))throw new C("alignment-config-classname-already-defined",{option:ne,configuredOptions:te})})),ne}const fm="alignment";class wk extends Ss{refresh(){const te=this.editor.locale,ne=Si(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=Boolean(ne)&&this._canBeAligned(ne),this.isEnabled&&ne.hasAttribute("alignment")?this.value=ne.getAttribute("alignment"):this.value="rtl"===te.contentLanguageDirection?"right":"left"}execute(te={}){const ne=this.editor,ie=ne.locale,re=ne.model,le=re.document,ce=te.value;re.change((te=>{const ne=Array.from(le.selection.getSelectedBlocks()).filter((te=>this._canBeAligned(te))),re=ne[0].getAttribute("alignment");fk(ce,ie)||re===ce||!ce?function(te,ne){for(const ie of te)ne.removeAttribute(fm,ie)}(ne,te):function(te,ne,ie){for(const re of te)ne.setAttribute(fm,ie,re)}(ne,te,ce)}))}_canBeAligned(te){return this.editor.model.schema.checkAttribute(te,fm)}}class Ak extends Es{static get pluginName(){return"AlignmentEditing"}constructor(te){super(te),te.config.define("alignment",{options:gm.map((te=>({name:te})))})}init(){const te=this.editor,ne=te.locale,ie=te.model.schema,re=kk(te.config.get("alignment.options")).filter((te=>pk(te.name)&&!fk(te.name,ne))),le=re.some((te=>!!te.className));ie.extend("$block",{allowAttributes:"alignment"}),te.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),le?te.conversion.attributeToAttribute(function(te){const ne={};for(const ie of te)ne[ie.name]={key:"class",value:ie.className};return{model:{key:"alignment",values:te.map((te=>te.name))},view:ne}}(re)):te.conversion.for("downcast").attributeToAttribute(function(te){const ne={};for(const{name:ie}of te)ne[ie]={key:"style",value:{"text-align":ie}};return{model:{key:"alignment",values:te.map((te=>te.name))},view:ne}}(re));const ce=function(te){const ne=[];for(const{name:ie}of te)ne.push({view:{key:"style",value:{"text-align":ie}},model:{key:"alignment",value:ie}});return ne}(re);for(const ne of ce)te.conversion.for("upcast").attributeToAttribute(ne);const de=function(te){const ne=[];for(const{name:ie}of te)ne.push({view:{key:"align",value:ie},model:{key:"alignment",value:ie}});return ne}(re);for(const ne of de)te.conversion.for("upcast").attributeToAttribute(ne);te.commands.add("alignment",new wk(te))}}const bm=new Map([["left",Dc.alignLeft],["right",Dc.alignRight],["center",Dc.alignCenter],["justify",Dc.alignJustify]]);class _k extends Es{get localizedOptionTitles(){const te=this.editor.t;return{left:te("Align left"),right:te("Align right"),center:te("Align center"),justify:te("Justify")}}static get pluginName(){return"AlignmentUI"}init(){const te=this.editor,ne=te.ui.componentFactory,ie=te.t,re=kk(te.config.get("alignment.options"));re.map((te=>te.name)).filter(pk).forEach((te=>this._addButton(te))),ne.add("alignment",(le=>{const ce=mg(le);gg(ce,(()=>re.map((te=>ne.create(`alignment:${te.name}`)))),{enableActiveItemFocusOnDropdownOpen:!0,isVertical:!0,ariaLabel:ie("Text alignment toolbar")}),ce.buttonView.set({label:ie("Text alignment"),tooltip:!0}),ce.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});const de="rtl"===le.contentLanguageDirection?bm.get("right"):bm.get("left"),ue=te.commands.get("alignment");return ce.buttonView.bind("icon").to(ue,"value",(te=>bm.get(te)||de)),ce.bind("isEnabled").to(ue,"isEnabled"),this.listenTo(ce,"execute",(()=>{te.editing.view.focus()})),ce}))}_addButton(te){const ne=this.editor;ne.ui.componentFactory.add(`alignment:${te}`,(ie=>{const re=ne.commands.get("alignment"),le=new br(ie);return le.set({label:this.localizedOptionTitles[te],icon:bm.get(te),tooltip:!0,isToggleable:!0}),le.bind("isEnabled").to(re),le.bind("isOn").to(re,"value",(ne=>ne===te)),this.listenTo(le,"execute",(()=>{ne.execute("alignment",{value:te}),ne.editing.view.focus()})),le}))}}class vk extends Ss{constructor(te,ne){super(te),this.attributeKey=ne}refresh(){const te=this.editor.model,ne=te.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=te.schema.checkAttributeInSelection(ne.selection,this.attributeKey)}execute(te={}){const ne=this.editor.model,ie=ne.document.selection,re=void 0===te.forceValue?!this.value:te.forceValue;ne.change((te=>{if(ie.isCollapsed)re?te.setSelectionAttribute(this.attributeKey,!0):te.removeSelectionAttribute(this.attributeKey);else{const le=ne.schema.getValidRanges(ie.getRanges(),this.attributeKey);for(const ne of le)re?te.setAttribute(this.attributeKey,re,ne):te.removeAttribute(this.attributeKey,ne)}}))}_getValueFromFirstAllowedNode(){const te=this.editor.model,ne=te.schema,ie=te.document.selection;if(ie.isCollapsed)return ie.hasAttribute(this.attributeKey);for(const te of ie.getRanges())for(const ie of te.getItems())if(ne.checkAttribute(ie,this.attributeKey))return ie.hasAttribute(this.attributeKey);return!1}}const Gm="bold";class xk extends Es{static get pluginName(){return"BoldEditing"}init(){const te=this.editor;te.model.schema.extend("$text",{allowAttributes:Gm}),te.model.schema.setAttributeProperties(Gm,{isFormatting:!0,copyOnEnter:!0}),te.conversion.attributeToElement({model:Gm,view:"strong",upcastAlso:["b",te=>{const ne=te.getStyle("font-weight");return ne&&("bold"==ne||Number(ne)>=600)?{name:!0,styles:["font-weight"]}:null}]}),te.commands.add(Gm,new vk(te,Gm)),te.keystrokes.set("CTRL+B",Gm)}}const $m="bold";class Dk extends Es{static get pluginName(){return"BoldUI"}init(){const te=this.editor,ne=te.t;te.ui.componentFactory.add($m,(ie=>{const re=te.commands.get($m),le=new br(ie);return le.set({label:ne("Bold"),icon:Dc.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),le.bind("isOn","isEnabled").to(re,"value","isEnabled"),this.listenTo(le,"execute",(()=>{te.execute($m),te.editing.view.focus()})),le}))}}class Sk{constructor(te,ne=20){this._batch=null,this.model=te,this._size=0,this.limit=ne,this._isLocked=!1,this._changeCallback=(te,ne)=>{ne.isLocal&&ne.isUndoable&&ne!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(te){this._size+=te,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(te=!1){this.isLocked&&!te||(this._batch=null,this._size=0)}}class Tk extends Ss{constructor(te,ne){super(te),this._buffer=new Sk(te.model,ne),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(te={}){const ne=this.editor.model,ie=ne.document,re=te.text||"",le=re.length;let ce=ie.selection;if(te.selection?ce=te.selection:te.range&&(ce=ne.createSelection(te.range)),!ne.canEditAt(ce))return;const de=te.resultRange;ne.enqueueChange(this._buffer.batch,(te=>{this._buffer.lock();const ue=Array.from(ie.selection.getAttributes());ne.deleteContent(ce),re&&ne.insertContent(te.createText(re,ue),ce),de?te.setSelection(de):ce.is("documentSelection")||te.setSelection(ce),this._buffer.unlock(),this._buffer.input(le)}))}}const qm=["insertText","insertReplacementText"];class Mk extends uc{constructor(te){super(te),this.focusObserver=te.getObserver(jc),le.isAndroid&&qm.push("insertCompositionText");const ne=te.document;ne.on("beforeinput",((ie,re)=>{if(!this.isEnabled)return;const{data:le,targetRanges:ce,inputType:de,domEvent:ue}=re;if(!qm.includes(de))return;this.focusObserver.flush();const me=new p(ne,"insertText");ne.fire(me,new gc(te,ue,{text:le,selection:te.createSelection(ce)})),me.stop.called&&ie.stop()})),ne.on("compositionend",((ie,{data:re,domEvent:ce})=>{this.isEnabled&&!le.isAndroid&&re&&ne.fire("insertText",new gc(te,ce,{text:re,selection:ne.selection}))}),{priority:"lowest"})}observe(){}stopObserving(){}}class Bk extends Es{static get pluginName(){return"Input"}init(){const te=this.editor,ne=te.model,ie=te.editing.view,re=ne.document.selection;ie.addObserver(Mk);const ce=new Tk(te,te.config.get("typing.undoStep")||20);te.commands.add("insertText",ce),te.commands.add("input",ce),this.listenTo(ie.document,"insertText",((re,ce)=>{ie.document.isComposing||ce.preventDefault();const{text:de,selection:ue,resultRange:me}=ce,ge=Array.from(ue.getRanges()).map((ne=>te.editing.mapper.toModelRange(ne)));let fe=de;if(le.isAndroid){const te=Array.from(ge[0].getItems()).reduce(((te,ne)=>te+(ne.is("$textProxy")?ne.data:"")),"");te&&(te.length<=fe.length?fe.startsWith(te)&&(fe=fe.substring(te.length),ge[0].start=ge[0].start.getShiftedBy(te.length)):te.startsWith(fe)&&(ge[0].start=ge[0].start.getShiftedBy(fe.length),fe=""))}const _e={text:fe,selection:ne.createSelection(ge)};me&&(_e.resultRange=te.editing.mapper.toModelRange(me)),te.execute("insertText",_e),ie.scrollToTheSelection()})),le.isAndroid?this.listenTo(ie.document,"keydown",((te,le)=>{!re.isCollapsed&&229==le.keyCode&&ie.document.isComposing&&Nk(ne,ce)})):this.listenTo(ie.document,"compositionstart",(()=>{re.isCollapsed||Nk(ne,ce)}))}}function Nk(te,ne){if(!ne.isEnabled)return;const ie=ne.buffer;ie.lock(),te.enqueueChange(ie.batch,(()=>{te.deleteContent(te.document.selection)})),ie.unlock()}class zk extends Ss{constructor(te,ne){super(te),this.direction=ne,this._buffer=new Sk(te.model,te.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(te={}){const ne=this.editor.model,ie=ne.document;ne.enqueueChange(this._buffer.batch,(re=>{this._buffer.lock();const le=re.createSelection(te.selection||ie.selection);if(!ne.canEditAt(le))return;const ce=te.sequence||1,de=le.isCollapsed;if(le.isCollapsed&&ne.modifySelection(le,{direction:this.direction,unit:te.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(ce))return void this._replaceEntireContentWithParagraph(re);if(this._shouldReplaceFirstBlockWithParagraph(le,ce))return void this.editor.execute("paragraph",{selection:le});if(le.isCollapsed)return;let ue=0;le.getFirstRange().getMinimalFlatRanges().forEach((te=>{ue+=X(te.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),ne.deleteContent(le,{doNotResetEntireContent:de,direction:this.direction}),this._buffer.input(ue),re.setSelection(le),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(te){if(te>1)return!1;const ne=this.editor.model,ie=ne.document.selection,re=ne.schema.getLimitElement(ie);if(!ie.isCollapsed||!ie.containsEntireContent(re))return!1;if(!ne.schema.checkChild(re,"paragraph"))return!1;const le=re.getChild(0);return!le||!le.is("element","paragraph")}_replaceEntireContentWithParagraph(te){const ne=this.editor.model,ie=ne.document.selection,re=ne.schema.getLimitElement(ie),le=te.createElement("paragraph");te.remove(te.createRangeIn(re)),te.insert(le,re),te.setSelection(le,0)}_shouldReplaceFirstBlockWithParagraph(te,ne){const ie=this.editor.model;if(ne>1||"backward"!=this.direction)return!1;if(!te.isCollapsed)return!1;const re=te.getFirstPosition(),le=ie.schema.getLimitElement(re),ce=le.getChild(0);return re.parent==ce&&!!te.containsEntireContent(ce)&&!!ie.schema.checkChild(le,"paragraph")&&"paragraph"!=ce.name}}const Wm="word",Km="selection",Zm="backward",ig="forward",og={deleteContent:{unit:Km,direction:Zm},deleteContentBackward:{unit:"codePoint",direction:Zm},deleteWordBackward:{unit:Wm,direction:Zm},deleteHardLineBackward:{unit:Km,direction:Zm},deleteSoftLineBackward:{unit:Km,direction:Zm},deleteContentForward:{unit:"character",direction:ig},deleteWordForward:{unit:Wm,direction:ig},deleteHardLineForward:{unit:Km,direction:ig},deleteSoftLineForward:{unit:Km,direction:ig}};class Fk extends uc{constructor(te){super(te);const ne=te.document;let ie=0;ne.on("keydown",(()=>{ie++})),ne.on("keyup",(()=>{ie=0})),ne.on("beforeinput",((re,ce)=>{if(!this.isEnabled)return;const{targetRanges:de,domEvent:ue,inputType:me}=ce,ge=og[me];if(!ge)return;const fe={direction:ge.direction,unit:ge.unit,sequence:ie};fe.unit==Km&&(fe.selectionToRemove=te.createSelection(de[0])),"deleteContentBackward"===me&&(le.isAndroid&&(fe.sequence=1),function(te){if(1!=te.length||te[0].isCollapsed)return!1;const ne=te[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let ie=0;for(const{nextPosition:te}of ne){if(te.parent.is("$text")){const ne=te.parent.data,re=te.offset;if(Ni(ne,re)||zi(ne,re)||Li(ne,re))continue;ie++}else ie++;if(ie>1)return!0}return!1}(de)&&(fe.unit=Km,fe.selectionToRemove=te.createSelection(de)));const _e=new ll(ne,"delete",de[0]);ne.fire(_e,new gc(te,ue,fe)),_e.stop.called&&re.stop()})),le.isBlink&&function(te){const ne=te.view,ie=ne.document;let re=null,le=!1;function r(te){return te==wo.backspace||te==wo.delete}function s(te){return te==wo.backspace?Zm:ig}ie.on("keydown",((te,{keyCode:ne})=>{re=ne,le=!1})),ie.on("keyup",((ce,{keyCode:de,domEvent:ue})=>{const me=ie.selection,ge=te.isEnabled&&de==re&&r(de)&&!me.isCollapsed&&!le;if(re=null,ge){const te=me.getFirstRange(),re=new ll(ie,"delete",te),le={unit:Km,direction:s(de),selectionToRemove:me};ie.fire(re,new gc(ne,ue,le))}})),ie.on("beforeinput",((te,{inputType:ne})=>{const ie=og[ne];r(re)&&ie&&ie.direction==s(re)&&(le=!0)}),{priority:"high"}),ie.on("beforeinput",((te,{inputType:ne,data:ie})=>{re==wo.delete&&"insertText"==ne&&""==ie&&te.stop()}),{priority:"high"})}(this)}observe(){}stopObserving(){}}class jk extends Es{static get pluginName(){return"Delete"}init(){const te=this.editor,ne=te.editing.view,ie=ne.document,re=te.model.document;ne.addObserver(Fk),this._undoOnBackspace=!1;const le=new zk(te,"forward");te.commands.add("deleteForward",le),te.commands.add("forwardDelete",le),te.commands.add("delete",new zk(te,"backward")),this.listenTo(ie,"delete",((re,le)=>{ie.isComposing||le.preventDefault();const{direction:ce,sequence:de,selectionToRemove:ue,unit:me}=le,ge="forward"===ce?"deleteForward":"delete",fe={sequence:de};if("selection"==me){const ne=Array.from(ue.getRanges()).map((ne=>te.editing.mapper.toModelRange(ne)));fe.selection=te.model.createSelection(ne)}else fe.unit=me;te.execute(ge,fe),ne.scrollToTheSelection()}),{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(ie,"delete",((ne,ie)=>{this._undoOnBackspace&&"backward"==ie.direction&&1==ie.sequence&&"codePoint"==ie.unit&&(this._undoOnBackspace=!1,te.execute("undo"),ie.preventDefault(),ne.stop())}),{context:"$capture"}),this.listenTo(re,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class Hk extends Es{static get requires(){return[Bk,jk]}static get pluginName(){return"Typing"}}function Uk(te,ne){let ie=te.start;return{text:Array.from(te.getWalker({ignoreElementEnd:!1})).reduce(((te,{item:re})=>re.is("$text")||re.is("$textProxy")?te+re.data:(ie=ne.createPositionAfter(re),"")),""),range:ne.createRange(ie,te.end)}}class Wk extends(q()){constructor(te,ne){super(),this.model=te,this.testCallback=ne,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(te.document.selection),this.stopListening(te.document))})),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const te=this.model.document;this.listenTo(te.selection,"change:range",((ne,{directChange:ie})=>{ie&&(te.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))})),this.listenTo(te,"change:data",((te,ne)=>{!ne.isUndo&&ne.isLocal&&this._evaluateTextBeforeSelection("data",{batch:ne})}))}_evaluateTextBeforeSelection(te,ne={}){const ie=this.model,re=ie.document.selection,le=ie.createRange(ie.createPositionAt(re.focus.parent,0),re.focus),{text:ce,range:de}=Uk(le,ie),ue=this.testCallback(ce);if(!ue&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!ue,ue){const ie=Object.assign(ne,{text:ce,range:de});"object"==typeof ue&&Object.assign(ie,ue),this.fire(`matched:${te}`,ie)}}}class Gk extends Es{static get pluginName(){return"TwoStepCaretMovement"}constructor(te){super(te),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}init(){const te=this.editor,ne=te.model,ie=te.editing.view,re=te.locale,le=ne.document.selection;this.listenTo(ie.document,"arrowKey",((te,ne)=>{if(!le.isCollapsed)return;if(ne.shiftKey||ne.altKey||ne.ctrlKey)return;const ie=ne.keyCode==wo.arrowright,ce=ne.keyCode==wo.arrowleft;if(!ie&&!ce)return;const de=re.contentLanguageDirection;let ue=!1;ue="ltr"===de&&ie||"rtl"===de&&ce?this._handleForwardMovement(ne):this._handleBackwardMovement(ne),!0===ue&&te.stop()}),{context:"$text",priority:"highest"}),this.listenTo(le,"change:range",((te,ne)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!ne.directChange&&Qk(le.getFirstPosition(),this.attributes)||this._restoreGravity())})),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(te){this.attributes.add(te)}_handleForwardMovement(te){const ne=this.attributes,ie=this.editor.model,re=ie.document.selection,le=re.getFirstPosition();return!(this._isGravityOverridden||le.isAtStart&&qk(re,ne)||!Qk(le,ne)||(Kk(te),qk(re,ne)&&Qk(le,ne,!0)?$k(ie,ne):this._overrideGravity(),0))}_handleBackwardMovement(te){const ne=this.attributes,ie=this.editor.model,re=ie.document.selection,le=re.getFirstPosition();return this._isGravityOverridden?(Kk(te),this._restoreGravity(),Qk(le,ne,!0)?$k(ie,ne):Zk(ie,ne,le),!0):le.isAtStart?!!qk(re,ne)&&(Kk(te),Zk(ie,ne,le),!0):!qk(re,ne)&&Qk(le,ne,!0)?(Kk(te),Zk(ie,ne,le),!0):!!Yk(le,ne)&&(le.isAtEnd&&!qk(re,ne)&&Qk(le,ne)?(Kk(te),Zk(ie,ne,le),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const te=this.editor,ne=te.model,ie=ne.document.selection,re=te.editing.view.document;te.editing.view.addObserver(Yu);let le=!1;this.listenTo(re,"mousedown",(()=>{le=!0})),this.listenTo(re,"selectionChange",(()=>{const te=this.attributes;if(!le)return;if(le=!1,!ie.isCollapsed)return;if(!qk(ie,te))return;const re=ie.getFirstPosition();Qk(re,te)&&(re.isAtStart||Qk(re,te,!0)?$k(ne,te):this._isGravityOverridden||this._overrideGravity())}))}_enableInsertContentSelectionAttributesFixer(){const te=this.editor.model,ne=te.document.selection,ie=this.attributes;this.listenTo(te,"insertContent",(()=>{const re=ne.getFirstPosition();qk(ne,ie)&&Qk(re,ie)&&$k(te,ie)}),{priority:"low"})}_handleDeleteContentAfterNode(){const te=this.editor,ne=te.model,ie=ne.document.selection,re=te.editing.view;let le=!1,ce=!1;this.listenTo(re.document,"delete",((te,ne)=>{le="backward"===ne.direction}),{priority:"high"}),this.listenTo(ne,"deleteContent",(()=>{if(!le)return;const te=ie.getFirstPosition();ce=qk(ie,this.attributes)&&!Yk(te,this.attributes)}),{priority:"high"}),this.listenTo(ne,"deleteContent",(()=>{le&&(le=!1,ce||te.model.enqueueChange((()=>{const te=ie.getFirstPosition();qk(ie,this.attributes)&&Qk(te,this.attributes)&&(te.isAtStart||Qk(te,this.attributes,!0)?$k(ne,this.attributes):this._isGravityOverridden||this._overrideGravity())})))}),{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((te=>te.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((te=>{te.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function qk(te,ne){for(const ie of ne)if(te.hasAttribute(ie))return!0;return!1}function Zk(te,ne,ie){const re=ie.nodeBefore;te.change((ie=>{if(re){const ne=[],le=te.schema.isObject(re)&&te.schema.isInline(re);for(const[ie,ce]of re.getAttributes())!te.schema.checkAttribute("$text",ie)||le&&!1===te.schema.getAttributeProperties(ie).copyFromObject||ne.push([ie,ce]);ie.setSelectionAttribute(ne)}else ie.removeSelectionAttribute(ne)}))}function $k(te,ne){te.change((te=>{te.removeSelectionAttribute(ne)}))}function Kk(te){te.preventDefault()}function Yk(te,ne){return Qk(te.getShiftedBy(-1),ne)}function Qk(te,ne,ie=!1){const{nodeBefore:re,nodeAfter:le}=te;for(const te of ne){const ne=re?re.getAttribute(te):void 0,ce=le?le.getAttribute(te):void 0;if((!ie||void 0!==ne&&void 0!==ce)&&ce!==ne)return!0}return!1}function Jk(te){return new RegExp(`(^|\\s)(${te})([^${te}]*)(${te})$`)}function Xk(te,ne,ie,re){return re.createRange(tb(te,ne,ie,!0,re),tb(te,ne,ie,!1,re))}function tb(te,ne,ie,re,le){let ce=te.textNode||(re?te.nodeBefore:te.nodeAfter),de=null;for(;ce&&ce.getAttribute(ne)==ie;)de=ce,ce=re?ce.previousSibling:ce.nextSibling;return de?le.createPositionAt(de,re?"before":"after"):te}Jk('"'),Jk("'"),Jk("'"),Jk('"'),Jk('"'),Jk("'");var ag=i(5363);Fo()(ag.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ag.Z.locals;const sg="italic";class ib extends Es{static get pluginName(){return"ItalicEditing"}init(){const te=this.editor;te.model.schema.extend("$text",{allowAttributes:sg}),te.model.schema.setAttributeProperties(sg,{isFormatting:!0,copyOnEnter:!0}),te.conversion.attributeToElement({model:sg,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),te.commands.add(sg,new vk(te,sg)),te.keystrokes.set("CTRL+I",sg)}}const cg="italic";class sb extends Es{static get pluginName(){return"ItalicUI"}init(){const te=this.editor,ne=te.t;te.ui.componentFactory.add(cg,(ie=>{const re=te.commands.get(cg),le=new br(ie);return le.set({label:ne("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),le.bind("isOn","isEnabled").to(re,"value","isEnabled"),this.listenTo(le,"execute",(()=>{te.execute(cg),te.editing.view.focus()})),le}))}}function*ab(te,ne){for(const ie of ne)ie&&te.getAttributeProperties(ie[0]).copyOnEnter&&(yield ie)}class lb extends Ss{execute(){this.editor.model.change((te=>{this.enterBlock(te),this.fire("afterExecute",{writer:te})}))}enterBlock(te){const ne=this.editor.model,ie=ne.document.selection,re=ne.schema,le=ie.isCollapsed,ce=ie.getFirstRange(),de=ce.start.parent,ue=ce.end.parent;if(re.isLimit(de)||re.isLimit(ue))return le||de!=ue||ne.deleteContent(ie),!1;if(le){const ne=ab(te.model.schema,ie.getAttributes());return cb(te,ce.start),te.setSelectionAttribute(ne),!0}{const re=!(ce.start.isAtStart&&ce.end.isAtEnd),le=de==ue;if(ne.deleteContent(ie,{leaveUnmerged:re}),re){if(le)return cb(te,ie.focus),!0;te.setSelection(ue,0)}}return!1}}function cb(te,ne){te.split(ne),te.setSelection(ne.parent.nextSibling,0)}const dg={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class hb extends uc{constructor(te){super(te);const ne=this.document;let ie=!1;ne.on("keydown",((te,ne)=>{ie=ne.shiftKey})),ne.on("beforeinput",((re,ce)=>{if(!this.isEnabled)return;let de=ce.inputType;le.isSafari&&ie&&"insertParagraph"==de&&(de="insertLineBreak");const ue=ce.domEvent,me=dg[de];if(!me)return;const ge=new ll(ne,"enter",ce.targetRanges[0]);ne.fire(ge,new gc(te,ue,{isSoft:me.isSoft})),ge.stop.called&&re.stop()}))}observe(){}stopObserving(){}}class ub extends Es{static get pluginName(){return"Enter"}init(){const te=this.editor,ne=te.editing.view,ie=ne.document;ne.addObserver(hb),te.commands.add("enter",new lb(te)),this.listenTo(ie,"enter",((re,le)=>{ie.isComposing||le.preventDefault(),le.isSoft||(te.execute("enter"),ne.scrollToTheSelection())}),{priority:"low"})}}class mb extends Ss{execute(){const te=this.editor.model,ne=te.document;te.change((ie=>{!function(te,ne,ie){const re=ie.isCollapsed,le=ie.getFirstRange(),ce=le.start.parent,de=le.end.parent,ue=ce==de;if(re){const re=ab(te.schema,ie.getAttributes());gb(te,ne,le.end),ne.removeSelectionAttribute(ie.getAttributeKeys()),ne.setSelectionAttribute(re)}else{const re=!(le.start.isAtStart&&le.end.isAtEnd);te.deleteContent(ie,{leaveUnmerged:re}),ue?gb(te,ne,ie.focus):re&&ne.setSelection(de,0)}}(te,ie,ne.selection),this.fire("afterExecute",{writer:ie})}))}refresh(){const te=this.editor.model,ne=te.document;this.isEnabled=function(te,ne){if(ne.rangeCount>1)return!1;const ie=ne.anchor;if(!ie||!te.checkChild(ie,"softBreak"))return!1;const re=ne.getFirstRange(),le=re.start.parent,ce=re.end.parent;return!pb(le,te)&&!pb(ce,te)||le===ce}(te.schema,ne.selection)}}function gb(te,ne,ie){const re=ne.createElement("softBreak");te.insertContent(re,ie),ne.setSelection(re,"after")}function pb(te,ne){return!te.is("rootElement")&&(ne.isLimit(te)||pb(te.parent,ne))}class fb extends Es{static get pluginName(){return"ShiftEnter"}init(){const te=this.editor,ne=te.model.schema,ie=te.conversion,re=te.editing.view,le=re.document;ne.register("softBreak",{allowWhere:"$text",isInline:!0}),ie.for("upcast").elementToElement({model:"softBreak",view:"br"}),ie.for("downcast").elementToElement({model:"softBreak",view:(te,{writer:ne})=>ne.createEmptyElement("br")}),re.addObserver(hb),te.commands.add("shiftEnter",new mb(te)),this.listenTo(le,"enter",((ne,ie)=>{le.isComposing||ie.preventDefault(),ie.isSoft&&(te.execute("shiftEnter"),re.scrollToTheSelection())}),{priority:"low"})}}class kb extends Ss{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(te={}){const ne=this.editor.model,ie=ne.schema,re=ne.document.selection,le=Array.from(re.getSelectedBlocks()),ce=void 0===te.forceValue?!this.value:te.forceValue;ne.change((te=>{if(ce){const ne=le.filter((te=>bb(te)||Ab(ie,te)));this._applyQuote(te,ne)}else this._removeQuote(te,le.filter(bb))}))}_getValue(){const te=Si(this.editor.model.document.selection.getSelectedBlocks());return!(!te||!bb(te))}_checkEnabled(){if(this.value)return!0;const te=this.editor.model.document.selection,ne=this.editor.model.schema,ie=Si(te.getSelectedBlocks());return!!ie&&Ab(ne,ie)}_removeQuote(te,ne){wb(te,ne).reverse().forEach((ne=>{if(ne.start.isAtStart&&ne.end.isAtEnd)return void te.unwrap(ne.start.parent);if(ne.start.isAtStart){const ie=te.createPositionBefore(ne.start.parent);return void te.move(ne,ie)}ne.end.isAtEnd||te.split(ne.end);const ie=te.createPositionAfter(ne.end.parent);te.move(ne,ie)}))}_applyQuote(te,ne){const ie=[];wb(te,ne).reverse().forEach((ne=>{let re=bb(ne.start);re||(re=te.createElement("blockQuote"),te.wrap(ne,re)),ie.push(re)})),ie.reverse().reduce(((ne,ie)=>ne.nextSibling==ie?(te.merge(te.createPositionAfter(ne)),ne):ie))}}function bb(te){return"blockQuote"==te.parent.name?te.parent:null}function wb(te,ne){let ie,re=0;const le=[];for(;re<ne.length;){const ce=ne[re],de=ne[re+1];ie||(ie=te.createPositionBefore(ce)),de&&ce.nextSibling==de||(le.push(te.createRange(ie,te.createPositionAfter(ce))),ie=null),re++}return le}function Ab(te,ne){const ie=te.checkChild(ne.parent,"blockQuote"),re=te.checkChild(["$root","blockQuote"],ne);return ie&&re}class Cb extends Es{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[ub,jk]}init(){const te=this.editor,ne=te.model.schema;te.commands.add("blockQuote",new kb(te)),ne.register("blockQuote",{inheritAllFrom:"$container"}),te.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),te.model.document.registerPostFixer((ie=>{const re=te.model.document.differ.getChanges();for(const te of re)if("insert"==te.type){const re=te.position.nodeAfter;if(!re)continue;if(re.is("element","blockQuote")&&re.isEmpty)return ie.remove(re),!0;if(re.is("element","blockQuote")&&!ne.checkChild(te.position,re))return ie.unwrap(re),!0;if(re.is("element")){const te=ie.createRangeIn(re);for(const re of te.getItems())if(re.is("element","blockQuote")&&!ne.checkChild(ie.createPositionBefore(re),re))return ie.unwrap(re),!0}}else if("remove"==te.type){const ne=te.position.parent;if(ne.is("element","blockQuote")&&ne.isEmpty)return ie.remove(ne),!0}return!1}));const ie=this.editor.editing.view.document,re=te.model.document.selection,le=te.commands.get("blockQuote");this.listenTo(ie,"enter",((ne,ie)=>{re.isCollapsed&&le.value&&re.getLastPosition().parent.isEmpty&&(te.execute("blockQuote"),te.editing.view.scrollToTheSelection(),ie.preventDefault(),ne.stop())}),{context:"blockquote"}),this.listenTo(ie,"delete",((ne,ie)=>{if("backward"!=ie.direction||!re.isCollapsed||!le.value)return;const ce=re.getLastPosition().parent;ce.isEmpty&&!ce.previousSibling&&(te.execute("blockQuote"),te.editing.view.scrollToTheSelection(),ie.preventDefault(),ne.stop())}),{context:"blockquote"})}}var ug=i(3789);Fo()(ug.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ug.Z.locals;class yb extends Es{static get pluginName(){return"BlockQuoteUI"}init(){const te=this.editor,ne=te.t;te.ui.componentFactory.add("blockQuote",(ie=>{const re=te.commands.get("blockQuote"),le=new br(ie);return le.set({label:ne("Block quote"),icon:Dc.quote,tooltip:!0,isToggleable:!0}),le.bind("isOn","isEnabled").to(re,"value","isEnabled"),this.listenTo(le,"execute",(()=>{te.execute("blockQuote"),te.editing.view.focus()})),le}))}}class xb extends pc{constructor(te){super(te),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const ne=this.document;function n(te){return(ie,re)=>{re.preventDefault();const le=re.dropRange?[re.dropRange]:null,ce=new p(ne,te);ne.fire(ce,{dataTransfer:re.dataTransfer,method:ie.name,targetRanges:le,target:re.target,domEvent:re.domEvent}),ce.stop.called&&re.stopPropagation()}}this.listenTo(ne,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(ne,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(ne,"dragover",n("dragging"),{priority:"low"})}onDomEvent(te){const ne="clipboardData"in te?te.clipboardData:te.dataTransfer,ie="drop"==te.type||"paste"==te.type,re={dataTransfer:new Wc(ne,{cacheFiles:ie})};"drop"!=te.type&&"dragover"!=te.type||(re.dropRange=function(te,ne){const ie=ne.target.ownerDocument,re=ne.clientX,le=ne.clientY;let ce;return ie.caretRangeFromPoint&&ie.caretRangeFromPoint(re,le)?ce=ie.caretRangeFromPoint(re,le):ne.rangeParent&&(ce=ie.createRange(),ce.setStart(ne.rangeParent,ne.rangeOffset),ce.collapse(!0)),ce?te.domConverter.domRangeToView(ce):null}(this.view,te)),this.fire(te.type,te,re)}}const hg=["figcaption","li"],Ig=["ol","ul"];function Sb(te){if(te.is("$text")||te.is("$textProxy"))return te.data;if(te.is("element","img")&&te.hasAttribute("alt"))return te.getAttribute("alt");if(te.is("element","br"))return"\n";let ne="",ie=null;for(const re of te.getChildren())ne+=Tb(re,ie)+Sb(re),ie=re;return ne}function Tb(te,ne){return ne?te.is("element","li")&&!te.isEmpty&&te.getChild(0).is("containerElement")||Ig.includes(te.name)&&Ig.includes(ne.name)?"\n\n":te.is("containerElement")||ne.is("containerElement")?hg.includes(te.name)||hg.includes(ne.name)?"\n":"\n\n":"":""}class Ib extends Es{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(xb),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(te,ne,ie){const re=this.editor.model.getSelectedContent(ne);this.fire("outputTransformation",{dataTransfer:te,content:re,method:ie})}_setupPasteDrop(){const te=this.editor,ne=te.model,ie=te.editing.view,re=ie.document;this.listenTo(re,"clipboardInput",((ne,ie)=>{"paste"!=ie.method||te.model.canEditAt(te.model.document.selection)||ne.stop()}),{priority:"highest"}),this.listenTo(re,"clipboardInput",((te,ne)=>{const re=ne.dataTransfer;let le;if(ne.content)le=ne.content;else{let te="";re.getData("text/html")?te=function(te){return te.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((te,ne)=>1==ne.length?" ":ne)).replace(/<!--[\s\S]*?-->/g,"")}(re.getData("text/html")):re.getData("text/plain")&&(((ce=(ce=re.getData("text/plain")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||ce.includes("<br>"))&&(ce=`<p>${ce}</p>`),te=ce),le=this.editor.data.htmlProcessor.toView(te)}var ce;const de=new p(this,"inputTransformation");this.fire(de,{content:le,dataTransfer:re,targetRanges:ne.targetRanges,method:ne.method}),de.stop.called&&te.stop(),ie.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((te,ie)=>{if(ie.content.isEmpty)return;const re=this.editor.data.toModel(ie.content,"$clipboardHolder");0!=re.childCount&&(te.stop(),ne.change((()=>{this.fire("contentInsertion",{content:re,method:ie.method,dataTransfer:ie.dataTransfer,targetRanges:ie.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((te,ie)=>{ie.resultRange=ne.insertContent(ie.content)}),{priority:"low"})}_setupCopyCut(){const te=this.editor,ne=te.model.document,ie=te.editing.view.document,o=(te,ie)=>{const re=ie.dataTransfer;ie.preventDefault(),this._fireOutputTransformationEvent(re,ne.selection,te.name)};this.listenTo(ie,"copy",o,{priority:"low"}),this.listenTo(ie,"cut",((ne,ie)=>{te.model.canEditAt(te.model.document.selection)?o(ne,ie):ie.preventDefault()}),{priority:"low"}),this.listenTo(this,"outputTransformation",((ne,re)=>{const le=te.data.toView(re.content);ie.fire("clipboardOutput",{dataTransfer:re.dataTransfer,content:le,method:re.method})}),{priority:"low"}),this.listenTo(ie,"clipboardOutput",((ie,re)=>{re.content.isEmpty||(re.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(re.content)),re.dataTransfer.setData("text/plain",Sb(re.content))),"cut"==re.method&&te.model.deleteContent(ne.selection)}),{priority:"low"})}}class Mb extends(M()){constructor(){super(...arguments),this._stack=[]}add(te,ne){const ie=this._stack,re=ie[0];this._insertDescriptor(te);const le=ie[0];re===le||Bb(re,le)||this.fire("change:top",{oldDescriptor:re,newDescriptor:le,writer:ne})}remove(te,ne){const ie=this._stack,re=ie[0];this._removeDescriptor(te);const le=ie[0];re===le||Bb(re,le)||this.fire("change:top",{oldDescriptor:re,newDescriptor:le,writer:ne})}_insertDescriptor(te){const ne=this._stack,ie=ne.findIndex((ne=>ne.id===te.id));if(Bb(te,ne[ie]))return;ie>-1&&ne.splice(ie,1);let re=0;for(;ne[re]&&Nb(ne[re],te);)re++;ne.splice(re,0,te)}_removeDescriptor(te){const ne=this._stack,ie=ne.findIndex((ne=>ne.id===te));ie>-1&&ne.splice(ie,1)}}function Bb(te,ne){return te&&ne&&te.priority==ne.priority&&zb(te.classes)==zb(ne.classes)}function Nb(te,ne){return te.priority>ne.priority||!(te.priority<ne.priority)&&zb(te.classes)>zb(ne.classes)}function zb(te){return Array.isArray(te)?te.sort().join(","):te}const Sg='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',xg="ck-widget",Eg="ck-widget_selected";function Rb(te){return!!te.is("element")&&!!te.getCustomProperty("widget")}function Vb(te,ne,ie={}){if(!te.is("containerElement"))throw new C("widget-to-widget-wrong-element-type",null,{element:te});return ne.setAttribute("contenteditable","false",te),ne.addClass(xg,te),ne.setCustomProperty("widget",!0,te),te.getFillerOffset=Gb,ne.setCustomProperty("widgetLabel",[],te),ie.label&&function(te,ne){te.getCustomProperty("widgetLabel").push(ne)}(te,ie.label),ie.hasSelectionHandle&&function(te,ne){const ie=ne.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(te){const ne=this.toDomElement(te),ie=new hr;return ie.set("content",Sg),ie.render(),ne.appendChild(ie.element),ne}));ne.insert(ne.createPositionAt(te,0),ie),ne.addClass(["ck-widget_with-selection-handle"],te)}(te,ne),Hb(te,ne),te}function Fb(te,ne,ie){if(ne.classes&&ie.addClass(_i(ne.classes),te),ne.attributes)for(const re in ne.attributes)ie.setAttribute(re,ne.attributes[re],te)}function jb(te,ne,ie){if(ne.classes&&ie.removeClass(_i(ne.classes),te),ne.attributes)for(const re in ne.attributes)ie.removeAttribute(re,te)}function Hb(te,ne,ie=Fb,re=jb){const le=new Mb;le.on("change:top",((ne,le)=>{le.oldDescriptor&&re(te,le.oldDescriptor,le.writer),le.newDescriptor&&ie(te,le.newDescriptor,le.writer)})),ne.setCustomProperty("addHighlight",((te,ne,ie)=>le.add(ne,ie)),te),ne.setCustomProperty("removeHighlight",((te,ne,ie)=>le.remove(ne,ie)),te)}function Ub(te,ne,ie={}){return ne.addClass(["ck-editor__editable","ck-editor__nested-editable"],te),ne.setAttribute("role","textbox",te),ie.label&&ne.setAttribute("aria-label",ie.label,te),ne.setAttribute("contenteditable",te.isReadOnly?"false":"true",te),te.on("change:isReadOnly",((ie,re,le)=>{ne.setAttribute("contenteditable",le?"false":"true",te)})),te.on("change:isFocused",((ie,re,le)=>{le?ne.addClass("ck-editor__nested-editable_focused",te):ne.removeClass("ck-editor__nested-editable_focused",te)})),Hb(te,ne),te}function Wb(te,ne){const ie=te.getSelectedElement();if(ie){const re=$b(te);if(re)return ne.createRange(ne.createPositionAt(ie,re))}return ne.schema.findOptimalInsertionRange(te)}function Gb(){return null}const Mg="widget-type-around";function Zb(te,ne,ie){return!!te&&Rb(te)&&!ie.isInline(ne)}function $b(te){return te.getAttribute(Mg)}var Ng=i(2347);Fo()(Ng.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ng.Z.locals;const Lg=["before","after"],Gg=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild,Hg="ck-widget__type-around_disabled";class tw extends Es{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[ub,jk]}init(){const te=this.editor,ne=te.editing.view;this.on("change:isEnabled",((ie,re,le)=>{ne.change((te=>{for(const ie of ne.document.roots)le?te.removeClass(Hg,ie):te.addClass(Hg,ie)})),le||te.model.change((te=>{te.removeSelectionAttribute(Mg)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(te,ne){const ie=this.editor,re=ie.editing.view,le=ie.model.schema.getAttributesWithProperty(te,"copyOnReplace",!0);ie.execute("insertParagraph",{position:ie.model.createPositionAt(te,ne),attributes:le}),re.focus(),re.scrollToTheSelection()}_listenToIfEnabled(te,ne,ie,re){this.listenTo(te,ne,((...te)=>{this.isEnabled&&ie(...te)}),re)}_insertParagraphAccordingToFakeCaretPosition(){const te=this.editor.model.document.selection,ne=$b(te);if(!ne)return!1;const ie=te.getSelectedElement();return this._insertParagraph(ie,ne),!0}_enableTypeAroundUIInjection(){const te=this.editor,ne=te.model.schema,ie=te.locale.t,re={before:ie("Insert paragraph before block"),after:ie("Insert paragraph after block")};te.editing.downcastDispatcher.on("insert",((te,le,ce)=>{const de=ce.mapper.toViewElement(le.item);de&&Zb(de,le.item,ne)&&(function(te,ne,ie){const re=te.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(te){const ie=this.toDomElement(te);return function(te,ne){for(const ie of Lg){const re=new Ui({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${ie}`],title:ne[ie],"aria-hidden":"true"},children:[te.ownerDocument.importNode(Gg,!0)]});te.appendChild(re.render())}}(ie,ne),function(te){const ne=new Ui({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});te.appendChild(ne.render())}(ie),ie}));te.insert(te.createPositionAt(ie,"end"),re)}(ce.writer,re,de),de.getCustomProperty("widgetLabel").push((()=>this.isEnabled?ie("Press Enter to type after or press Shift + Enter to type before the widget"):"")))}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const te=this.editor,ne=te.model,ie=ne.document.selection,re=ne.schema,le=te.editing.view;function r(te){return`ck-widget_type-around_show-fake-caret_${te}`}this._listenToIfEnabled(le.document,"arrowKey",((te,ne)=>{this._handleArrowKeyPress(te,ne)}),{context:[Rb,"$text"],priority:"high"}),this._listenToIfEnabled(ie,"change:range",((ne,ie)=>{ie.directChange&&te.model.change((te=>{te.removeSelectionAttribute(Mg)}))})),this._listenToIfEnabled(ne.document,"change:data",(()=>{const ne=ie.getSelectedElement();ne&&Zb(te.editing.mapper.toViewElement(ne),ne,re)||te.model.change((te=>{te.removeSelectionAttribute(Mg)}))})),this._listenToIfEnabled(te.editing.downcastDispatcher,"selection",((te,ne,ie)=>{const le=ie.writer;if(this._currentFakeCaretModelElement){const te=ie.mapper.toViewElement(this._currentFakeCaretModelElement);te&&(le.removeClass(Lg.map(r),te),this._currentFakeCaretModelElement=null)}const ce=ne.selection.getSelectedElement();if(!ce)return;const de=ie.mapper.toViewElement(ce);if(!Zb(de,ce,re))return;const ue=$b(ne.selection);ue&&(le.addClass(r(ue),de),this._currentFakeCaretModelElement=ce)})),this._listenToIfEnabled(te.ui.focusTracker,"change:isFocused",((ne,ie,re)=>{re||te.model.change((te=>{te.removeSelectionAttribute(Mg)}))}))}_handleArrowKeyPress(te,ne){const ie=this.editor,re=ie.model,le=re.document.selection,ce=re.schema,de=ie.editing.view,ue=function(te,ne){const ie=Ci(te,ne);return"down"===ie||"right"===ie}(ne.keyCode,ie.locale.contentLanguageDirection),me=de.document.selection.getSelectedElement();let ge;Zb(me,ie.editing.mapper.toModelElement(me),ce)?ge=this._handleArrowKeyPressOnSelectedWidget(ue):le.isCollapsed?ge=this._handleArrowKeyPressWhenSelectionNextToAWidget(ue):ne.shiftKey||(ge=this._handleArrowKeyPressWhenNonCollapsedSelection(ue)),ge&&(ne.preventDefault(),te.stop())}_handleArrowKeyPressOnSelectedWidget(te){const ne=this.editor.model,ie=$b(ne.document.selection);return ne.change((ne=>ie?ie!==(te?"after":"before")&&(ne.removeSelectionAttribute(Mg),!0):(ne.setSelectionAttribute(Mg,te?"after":"before"),!0)))}_handleArrowKeyPressWhenSelectionNextToAWidget(te){const ne=this.editor,ie=ne.model,re=ie.schema,le=ne.plugins.get("Widget"),ce=le._getObjectElementNextToSelection(te);return!!Zb(ne.editing.mapper.toViewElement(ce),ce,re)&&(ie.change((ne=>{le._setSelectionOverElement(ce),ne.setSelectionAttribute(Mg,te?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(te){const ne=this.editor,ie=ne.model,re=ie.schema,le=ne.editing.mapper,ce=ie.document.selection,de=te?ce.getLastPosition().nodeBefore:ce.getFirstPosition().nodeAfter;return!!Zb(le.toViewElement(de),de,re)&&(ie.change((ne=>{ne.setSelection(de,"on"),ne.setSelectionAttribute(Mg,te?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const te=this.editor,ne=te.editing.view;this._listenToIfEnabled(ne.document,"mousedown",((ie,re)=>{const le=re.domTarget.closest(".ck-widget__type-around__button");if(!le)return;const ce=function(te){return te.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(le),de=function(te,ne){const ie=te.closest(".ck-widget");return ne.mapDomToView(ie)}(le,ne.domConverter),ue=te.editing.mapper.toModelElement(de);this._insertParagraph(ue,ce),re.preventDefault(),ie.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const te=this.editor,ne=te.model.document.selection,ie=te.editing.view;this._listenToIfEnabled(ie.document,"enter",((ie,re)=>{if("atTarget"!=ie.eventPhase)return;const le=ne.getSelectedElement(),ce=te.editing.mapper.toViewElement(le),de=te.model.schema;let ue;this._insertParagraphAccordingToFakeCaretPosition()?ue=!0:Zb(ce,le,de)&&(this._insertParagraph(le,re.isSoft?"before":"after"),ue=!0),ue&&(re.preventDefault(),ie.stop())}),{context:Rb})}_enableInsertingParagraphsOnTypingKeystroke(){const te=this.editor.editing.view.document;this._listenToIfEnabled(te,"insertText",((ne,ie)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(ie.selection=te.selection)}),{priority:"high"}),le.isAndroid?this._listenToIfEnabled(te,"keydown",((te,ne)=>{229==ne.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()})):this._listenToIfEnabled(te,"compositionstart",(()=>{this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const te=this.editor,ne=te.editing.view,ie=te.model,re=ie.schema;this._listenToIfEnabled(ne.document,"delete",((ne,le)=>{if("atTarget"!=ne.eventPhase)return;const ce=$b(ie.document.selection);if(!ce)return;const de=le.direction,ue=ie.document.selection.getSelectedElement(),me="forward"==de;if("before"===ce===me)te.execute("delete",{selection:ie.createSelection(ue,"on")});else{const ne=re.getNearestSelectionRange(ie.createPositionAt(ue,ce),de);if(ne)if(ne.isCollapsed){const le=ie.createSelection(ne.start);if(ie.modifySelection(le,{direction:de}),le.focus.isEqual(ne.start)){const te=function(te,ne){let ie=ne;for(const re of ne.getAncestors({parentFirst:!0})){if(re.childCount>1||te.isLimit(re))break;ie=re}return ie}(re,ne.start.parent);ie.deleteContent(ie.createSelection(te,"on"),{doNotAutoparagraph:!0})}else ie.change((ie=>{ie.setSelection(ne),te.execute(me?"deleteForward":"delete")}))}else ie.change((ie=>{ie.setSelection(ne),te.execute(me?"deleteForward":"delete")}))}le.preventDefault(),ne.stop()}),{context:Rb})}_enableInsertContentIntegration(){const te=this.editor,ne=this.editor.model,ie=ne.document.selection;this._listenToIfEnabled(te.model,"insertContent",((te,[re,le])=>{if(le&&!le.is("documentSelection"))return;const ce=$b(ie);return ce?(te.stop(),ne.change((te=>{const le=ie.getSelectedElement(),de=ne.createPositionAt(le,ce),ue=te.createSelection(de),me=ne.insertContent(re,ue);return te.setSelection(ue),me}))):void 0}),{priority:"high"})}_enableInsertObjectIntegration(){const te=this.editor,ne=this.editor.model.document.selection;this._listenToIfEnabled(te.model,"insertObject",((te,ie)=>{const[,re,le={}]=ie;if(re&&!re.is("documentSelection"))return;const ce=$b(ne);ce&&(le.findOptimalPosition=ce,ie[3]=le)}),{priority:"high"})}_enableDeleteContentIntegration(){const te=this.editor,ne=this.editor.model.document.selection;this._listenToIfEnabled(te.model,"deleteContent",((te,[ie])=>{ie&&!ie.is("documentSelection")||$b(ne)&&te.stop()}),{priority:"high"})}}function nw(te,ne,ie){const re=te.schema,le=te.createRangeIn(ne.root),ce="forward"==ie?"elementStart":"elementEnd";for(const{previousPosition:te,item:de,type:ue}of le.getWalker({startPosition:ne,direction:ie})){if(re.isLimit(de)&&!re.isInline(de))return te;if(ue==ce&&re.isBlock(de))return null}return null}function ow(te,ne,ie){const re="backward"==ie?ne.end:ne.start;if(te.checkChild(re,"$text"))return re;for(const{nextPosition:re}of ne.getWalker({direction:ie}))if(te.checkChild(re,"$text"))return re;return null}var Ug=i(7153);Fo()(Ug.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ug.Z.locals;class sw extends Es{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[tw,jk]}init(){const te=this.editor,ne=te.editing.view,ie=ne.document;this.editor.editing.downcastDispatcher.on("selection",((ne,ie,re)=>{const le=re.writer,ce=ie.selection;if(ce.isCollapsed)return;const de=ce.getSelectedElement();if(!de)return;const ue=te.editing.mapper.toViewElement(de);var me;Rb(ue)&&re.consumable.consume(ce,"selection")&&le.setSelection(le.createRangeOn(ue),{fake:!0,label:(me=ue,me.getCustomProperty("widgetLabel").reduce(((te,ne)=>"function"==typeof ne?te?te+". "+ne():ne():te?te+". "+ne:ne),""))})})),this.editor.editing.downcastDispatcher.on("selection",((te,ne,ie)=>{this._clearPreviouslySelectedWidgets(ie.writer);const re=ie.writer,le=re.document.selection;let ce=null;for(const te of le.getRanges())for(const ne of te){const te=ne.item;Rb(te)&&!aw(te,ce)&&(re.addClass(Eg,te),this._previouslySelected.add(te),ce=te)}}),{priority:"low"}),ne.addObserver(Yu),this.listenTo(ie,"mousedown",((...te)=>this._onMousedown(...te))),this.listenTo(ie,"arrowKey",((...te)=>{this._handleSelectionChangeOnArrowKeyPress(...te)}),{context:[Rb,"$text"]}),this.listenTo(ie,"arrowKey",((...te)=>{this._preventDefaultOnArrowKeyPress(...te)}),{context:"$root"}),this.listenTo(ie,"arrowKey",function ew(te){const ne=te.model;return(ie,re)=>{const le=re.keyCode==wo.arrowup,ce=re.keyCode==wo.arrowdown,de=re.shiftKey,ue=ne.document.selection;if(!le&&!ce)return;const me=ce;if(de&&function(te,ne){return!te.isCollapsed&&te.isBackward==ne}(ue,me))return;const ge=function(te,ne,ie){const re=te.model;if(ie){const te=ne.isCollapsed?ne.focus:ne.getLastPosition(),ie=nw(re,te,"forward");if(!ie)return null;const le=re.createRange(te,ie),ce=ow(re.schema,le,"backward");return ce?re.createRange(te,ce):null}{const te=ne.isCollapsed?ne.focus:ne.getFirstPosition(),ie=nw(re,te,"backward");if(!ie)return null;const le=re.createRange(ie,te),ce=ow(re.schema,le,"forward");return ce?re.createRange(ce,te):null}}(te,ue,me);if(ge){if(ge.isCollapsed){if(ue.isCollapsed)return;if(de)return}(ge.isCollapsed||function(te,ne,ie){const re=te.model,le=te.view.domConverter;if(ie){const te=re.createSelection(ne.start);re.modifySelection(te),te.focus.isAtEnd||ne.start.isEqual(te.focus)||(ne=re.createRange(te.focus,ne.end))}const ce=te.mapper.toViewRange(ne),de=le.viewRangeToDom(ce),ue=jo.getDomRangeRects(de);let me;for(const te of ue)if(void 0!==me){if(Math.round(te.top)>=me)return!1;me=Math.max(me,Math.round(te.bottom))}else me=Math.round(te.bottom);return!0}(te,ge,me))&&(ne.change((te=>{const ie=me?ge.end:ge.start;if(de){const re=ne.createSelection(ue.anchor);re.setFocus(ie),te.setSelection(re)}else te.setSelection(ie)})),ie.stop(),re.preventDefault(),re.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(ie,"delete",((te,ne)=>{this._handleDelete("forward"==ne.direction)&&(ne.preventDefault(),te.stop())}),{context:"$root"})}_onMousedown(te,ne){const ie=this.editor,re=ie.editing.view,ce=re.document;let de=ne.target;if(ne.domEvent.detail>=3)return void(this._selectBlockContent(de)&&ne.preventDefault());if(function(te){let ne=te;for(;ne;){if(ne.is("editableElement")&&!ne.is("rootElement"))return!0;if(Rb(ne))return!1;ne=ne.parent}return!1}(de))return;if(!Rb(de)&&(de=de.findAncestor(Rb),!de))return;le.isAndroid&&ne.preventDefault(),ce.isFocused||re.focus();const ue=ie.editing.mapper.toModelElement(de);this._setSelectionOverElement(ue)}_selectBlockContent(te){const ne=this.editor,ie=ne.model,re=ne.editing.mapper,le=ie.schema,ce=re.findMappedViewAncestor(this.editor.editing.view.createPositionAt(te,0)),de=function(te,ne){for(const ie of te.getAncestors({includeSelf:!0,parentFirst:!0})){if(ne.checkChild(ie,"$text"))return ie;if(ne.isLimit(ie)&&!ne.isObject(ie))break}return null}(re.toModelElement(ce),ie.schema);return!!de&&(ie.change((te=>{const ne=le.isLimit(de)?null:function(te,ne){const ie=new od({startPosition:te});for(const{item:te}of ie){if(ne.isLimit(te)||!te.is("element"))return null;if(ne.checkChild(te,"$text"))return te}return null}(te.createPositionAfter(de),le),ie=te.createPositionAt(de,0),re=ne?te.createPositionAt(ne,0):te.createPositionAt(de,"end");te.setSelection(te.createRange(ie,re))})),!0)}_handleSelectionChangeOnArrowKeyPress(te,ne){const ie=ne.keyCode,re=this.editor.model,le=re.schema,ce=re.document.selection,de=ce.getSelectedElement(),ue=Ci(ie,this.editor.locale.contentLanguageDirection),me="down"==ue||"right"==ue,ge="up"==ue||"down"==ue;if(de&&le.isObject(de)){const ie=me?ce.getLastPosition():ce.getFirstPosition(),de=le.getNearestSelectionRange(ie,me?"forward":"backward");return void(de&&(re.change((te=>{te.setSelection(de)})),ne.preventDefault(),te.stop()))}if(!ce.isCollapsed&&!ne.shiftKey){const ie=ce.getFirstPosition(),de=ce.getLastPosition(),ue=ie.nodeAfter,ge=de.nodeBefore;return void((ue&&le.isObject(ue)||ge&&le.isObject(ge))&&(re.change((te=>{te.setSelection(me?de:ie)})),ne.preventDefault(),te.stop()))}if(!ce.isCollapsed)return;const fe=this._getObjectElementNextToSelection(me);if(fe&&le.isObject(fe)){if(le.isInline(fe)&&ge)return;this._setSelectionOverElement(fe),ne.preventDefault(),te.stop()}}_preventDefaultOnArrowKeyPress(te,ne){const ie=this.editor.model,re=ie.schema,le=ie.document.selection.getSelectedElement();le&&re.isObject(le)&&(ne.preventDefault(),te.stop())}_handleDelete(te){const ne=this.editor.model.document.selection;if(!this.editor.model.canEditAt(ne))return;if(!ne.isCollapsed)return;const ie=this._getObjectElementNextToSelection(te);return ie?(this.editor.model.change((te=>{let re=ne.anchor.parent;for(;re.isEmpty;){const ne=re;re=ne.parent,te.remove(ne)}this._setSelectionOverElement(ie)})),!0):void 0}_setSelectionOverElement(te){this.editor.model.change((ne=>{ne.setSelection(ne.createRangeOn(te))}))}_getObjectElementNextToSelection(te){const ne=this.editor.model,ie=ne.schema,re=ne.document.selection,le=ne.createSelection(re);if(ne.modifySelection(le,{direction:te?"forward":"backward"}),le.isEqual(re))return null;const ce=te?le.focus.nodeBefore:le.focus.nodeAfter;return ce&&ie.isObject(ce)?ce:null}_clearPreviouslySelectedWidgets(te){for(const ne of this._previouslySelected)te.removeClass(Eg,ne);this._previouslySelected.clear()}}function aw(te,ne){return!!ne&&Array.from(te.getAncestors()).includes(ne)}class lw extends Es{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[xf]}static get pluginName(){return"WidgetToolbarRepository"}init(){const te=this.editor;if(te.plugins.has("BalloonToolbar")){const ne=te.plugins.get("BalloonToolbar");this.listenTo(ne,"show",(ne=>{(function(te){const ne=te.getSelectedElement();return!(!ne||!Rb(ne))})(te.editing.view.document.selection)&&ne.stop()}),{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(te.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(te.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const te of this._toolbarDefinitions.values())te.view.destroy()}register(te,{ariaLabel:ne,items:ie,getRelatedElement:re,balloonClassName:le="ck-toolbar-container"}){if(!ie.length)return void _("widget-toolbar-no-items",{toolbarId:te});const ce=this.editor,de=ce.t,ue=new Ym(ce.locale);if(ue.ariaLabel=ne||de("Widget toolbar"),this._toolbarDefinitions.has(te))throw new C("widget-toolbar-duplicated",this,{toolbarId:te});const me={view:ue,getRelatedElement:re,balloonClassName:le,itemsConfig:ie,initialized:!1};ce.ui.addToolbar(ue,{isContextual:!0,beforeFocus:()=>{const te=re(ce.editing.view.document.selection);te&&this._showToolbar(me,te)},afterBlur:()=>{this._hideToolbar(me)}}),this._toolbarDefinitions.set(te,me)}_updateToolbarsVisibility(){let te=0,ne=null,ie=null;for(const re of this._toolbarDefinitions.values()){const le=re.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&le)if(this.editor.ui.focusTracker.isFocused){const ce=le.getAncestors().length;ce>te&&(te=ce,ne=le,ie=re)}else this._isToolbarVisible(re)&&this._hideToolbar(re);else this._isToolbarInBalloon(re)&&this._hideToolbar(re)}ie&&this._showToolbar(ie,ne)}_hideToolbar(te){this._balloon.remove(te.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(te,ne){this._isToolbarVisible(te)?cw(this.editor,ne):this._isToolbarInBalloon(te)||(te.initialized||(te.initialized=!0,te.view.fillFromConfig(te.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:te.view,position:dw(this.editor,ne),balloonClassName:te.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const te of this._toolbarDefinitions.values())if(this._isToolbarVisible(te)){const ne=te.getRelatedElement(this.editor.editing.view.document.selection);cw(this.editor,ne)}})))}_isToolbarVisible(te){return this._balloon.visibleView===te.view}_isToolbarInBalloon(te){return this._balloon.hasView(te.view)}}function cw(te,ne){const ie=te.plugins.get("ContextualBalloon"),re=dw(te,ne);ie.updatePosition(re)}function dw(te,ne){const ie=te.editing.view,re=Pp.defaultPositions;return{target:ie.domConverter.mapViewToDom(ne),positions:[re.northArrowSouth,re.northArrowSouthWest,re.northArrowSouthEast,re.southArrowNorth,re.southArrowNorthWest,re.southArrowNorthEast,re.viewportStickyNorth]}}class hw extends(q()){constructor(te){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=te,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(te,ne,ie){const re=new jo(ne);this.activeHandlePosition=function(te){const ne=["top-left","top-right","bottom-right","bottom-left"];for(const ie of ne)if(te.classList.contains(uw(ie)))return ie}(te),this._referenceCoordinates=function(te,ne){const ie=new jo(te),re=ne.split("-"),le={x:"right"==re[1]?ie.right:ie.left,y:"bottom"==re[0]?ie.bottom:ie.top};return le.x+=te.ownerDocument.defaultView.scrollX,le.y+=te.ownerDocument.defaultView.scrollY,le}(ne,function(te){const ne=te.split("-"),ie={top:"bottom",bottom:"top",left:"right",right:"left"};return`${ie[ne[0]]}-${ie[ne[1]]}`}(this.activeHandlePosition)),this._originalWidth=re.width,this._originalHeight=re.height,this._aspectRatio=re.width/re.height;const le=ie.style.width;le&&le.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(le):this._originalWidthPercents=function(te,ne){const ie=te.parentElement;let re=parseFloat(ie.ownerDocument.defaultView.getComputedStyle(ie).width),le=0,ce=ie;for(;isNaN(re);){if(ce=ce.parentElement,++le>5)return 0;re=parseFloat(ie.ownerDocument.defaultView.getComputedStyle(ce).width)}return ne.width/re*100}(ie,re)}update(te){this.proposedWidth=te.width,this.proposedHeight=te.height,this.proposedWidthPercents=te.widthPercents,this.proposedHandleHostWidth=te.handleHostWidth,this.proposedHandleHostHeight=te.handleHostHeight}}function uw(te){return`ck-widget__resizer__handle-${te}`}class mw extends Hi{constructor(){super();const te=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",te.to("_viewPosition",(te=>te?`ck-orientation-${te}`:""))],style:{display:te.if("_isVisible","none",(te=>!te))}},children:[{text:te.to("_label")}]})}_bindToState(te,ne){this.bind("_isVisible").to(ne,"proposedWidth",ne,"proposedHeight",((te,ne)=>null!==te&&null!==ne)),this.bind("_label").to(ne,"proposedHandleHostWidth",ne,"proposedHandleHostHeight",ne,"proposedWidthPercents",((ne,ie,re)=>"px"===te.unit?`${ne}×${ie}`:`${re}%`)),this.bind("_viewPosition").to(ne,"activeHandlePosition",ne,"proposedHandleHostWidth",ne,"proposedHandleHostHeight",((te,ne,ie)=>ne<50||ie<50?"above-center":te))}_dismiss(){this.unbind(),this._isVisible=!1}}class gw extends(q()){constructor(te){super(),this._viewResizerWrapper=null,this._options=te,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",((te,ne)=>te&&ne)),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(te=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),te.stop())}),{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change((te=>{te.removeClass("ck-hidden",this._viewResizerWrapper)}))}hide(){this._options.editor.editing.view.change((te=>{te.addClass("ck-hidden",this._viewResizerWrapper)}))}attach(){const te=this,ne=this._options.viewElement;this._options.editor.editing.view.change((ie=>{const re=ie.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(ne){const ie=this.toDomElement(ne);return te._appendHandles(ie),te._appendSizeUI(ie),ie}));ie.insert(ie.createPositionAt(ne,"end"),re),ie.addClass("ck-widget_with-resizer",ne),this._viewResizerWrapper=re,this.isVisible||this.hide()})),this.on("change:isVisible",(()=>{this.isVisible?(this.show(),this.redraw()):this.hide()}))}begin(te){this._state=new hw(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(te,this._getHandleHost(),this._getResizeHost())}updateSize(te){const ne=this._proposeNewSize(te);this._options.editor.editing.view.change((te=>{const ie=this._options.unit||"%",re=("%"===ie?ne.widthPercents:ne.width)+ie;te.setStyle("width",re,this._options.viewElement)}));const ie=this._getHandleHost(),re=new jo(ie),le=Math.round(re.width),ce=Math.round(re.height),de=new jo(ie);ne.width=Math.round(de.width),ne.height=Math.round(de.height),this.redraw(re),this.state.update({...ne,handleHostWidth:le,handleHostHeight:ce})}commit(){const te=this._options.unit||"%",ne=("%"===te?this.state.proposedWidthPercents:this.state.proposedWidth)+te;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(ne)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(te){const ne=this._domResizerWrapper;if(!((ie=ne)&&ie.ownerDocument&&ie.ownerDocument.contains(ie)))return;var ie;const re=ne.parentElement,le=this._getHandleHost(),ce=this._viewResizerWrapper,de=[ce.getStyle("width"),ce.getStyle("height"),ce.getStyle("left"),ce.getStyle("top")];let ue;if(re.isSameNode(le)){const ne=te||new jo(le);ue=[ne.width+"px",ne.height+"px",void 0,void 0]}else ue=[le.offsetWidth+"px",le.offsetHeight+"px",le.offsetLeft+"px",le.offsetTop+"px"];"same"!==tt(de,ue)&&this._options.editor.editing.view.change((te=>{te.setStyle({width:ue[0],height:ue[1],left:ue[2],top:ue[3]},ce)}))}containsHandle(te){return this._domResizerWrapper.contains(te)}static isResizeHandle(te){return te.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change((te=>{te.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(te){const ne=this.state,ie=(le=te).pageX,re=le.pageY;var le;const ce=!this._options.isCentered||this._options.isCentered(this),de={x:ne._referenceCoordinates.x-(ie+ne.originalWidth),y:re-ne.originalHeight-ne._referenceCoordinates.y};ce&&ne.activeHandlePosition.endsWith("-right")&&(de.x=ie-(ne._referenceCoordinates.x+ne.originalWidth)),ce&&(de.x*=2);let ue=Math.abs(ne.originalWidth+de.x),me=Math.abs(ne.originalHeight+de.y);return"width"==(ue/ne.aspectRatio>me?"width":"height")?me=ue/ne.aspectRatio:ue=me*ne.aspectRatio,{width:Math.round(ue),height:Math.round(me),widthPercents:Math.min(Math.round(ne.originalWidthPercents/ne.originalWidth*ue*100)/100,100)}}_getResizeHost(){const te=this._domResizerWrapper.parentElement;return this._options.getResizeHost(te)}_getHandleHost(){const te=this._domResizerWrapper.parentElement;return this._options.getHandleHost(te)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(te){const ne=["top-left","top-right","bottom-right","bottom-left"];for(const re of ne)te.appendChild(new Ui({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(ie=re,`ck-widget__resizer__handle-${ie}`)}}).render());var ie}_appendSizeUI(te){this._sizeView=new mw,this._sizeView.render(),te.appendChild(this._sizeView.element)}}var $g=i(4875);Fo()($g.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$g.Z.locals;class kw extends Es{constructor(){super(...arguments),this._resizers=new Map}static get pluginName(){return"WidgetResize"}init(){const te=this.editor.editing,ne=go.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),te.view.addObserver(Yu),this._observer=new(Mo()),this.listenTo(te.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(ne,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(ne,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=Kp((()=>this.redrawSelectedResizer()),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[te,ne]of this._resizers)te.isAttached()||(this._resizers.delete(te),ne.destroy())}),{priority:"lowest"}),this._observer.listenTo(go.window,"resize",this._redrawSelectedResizerThrottled);const ie=this.editor.editing.view.document.selection;ie.on("change",(()=>{const te=ie.getSelectedElement(),ne=this.getResizerByViewElement(te)||null;ne?this.select(ne):this.deselect()}))}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const te of this._resizers.values())te.destroy();this._redrawSelectedResizerThrottled.cancel()}select(te){this.deselect(),this.selectedResizer=te,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(te){const ne=new gw(te),ie=this.editor.plugins;if(ne.attach(),ie.has("WidgetToolbarRepository")){const te=ie.get("WidgetToolbarRepository");ne.on("begin",(()=>{te.forceDisabled("resize")}),{priority:"lowest"}),ne.on("cancel",(()=>{te.clearForceDisabled("resize")}),{priority:"highest"}),ne.on("commit",(()=>{te.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(te.viewElement,ne);const re=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(re)==ne&&this.select(ne),ne}getResizerByViewElement(te){return this._resizers.get(te)}_getResizerByHandle(te){for(const ne of this._resizers.values())if(ne.containsHandle(te))return ne}_mouseDownListener(te,ne){const ie=ne.domTarget;gw.isResizeHandle(ie)&&(this._activeResizer=this._getResizerByHandle(ie)||null,this._activeResizer&&(this._activeResizer.begin(ie),te.stop(),ne.preventDefault()))}_mouseMoveListener(te,ne){this._activeResizer&&this._activeResizer.updateSize(ne)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}const qg=Ko("px");class ww extends Hi{constructor(){super();const te=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",te.if("isVisible","ck-hidden",(te=>!te))],style:{left:te.to("left",(te=>qg(te))),top:te.to("top",(te=>qg(te))),width:te.to("width",(te=>qg(te)))}}})}}class Aw extends Es{constructor(){super(...arguments),this.removeDropMarkerDelayed=Bi((()=>this.removeDropMarker()),40),this._updateDropMarkerThrottled=Kp((te=>this._updateDropMarker(te)),40),this._reconvertMarkerThrottled=Kp((()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")}),0),this._dropTargetLineView=new ww,this._domEmitter=new(Mo()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:te}of this._scrollables.values())te.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(te,ne,ie,re,le,ce){this.removeDropMarkerDelayed.cancel();const de=Cw(this.editor,te,ne,ie,re,le,ce);if(de)return ce&&ce.containsRange(de)?this.removeDropMarker():void this._updateDropMarkerThrottled(de)}getFinalDropRange(te,ne,ie,re,le,ce){const de=Cw(this.editor,te,ne,ie,re,le,ce);return this.removeDropMarker(),de}removeDropMarker(){const te=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,te.markers.has("drop-target")&&te.change((te=>{te.removeMarker("drop-target")}))}_setupDropMarker(){const te=this.editor;te.ui.view.body.add(this._dropTargetLineView),te.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),te.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(ne,{writer:ie})=>{if(te.model.schema.checkChild(ne.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(ie);ne.markerRange.isCollapsed?this._updateDropTargetLine(ne.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(te){const ne=this.editor,ie=ne.model.markers;ne.model.change((ne=>{ie.has("drop-target")?ie.get("drop-target").getRange().isEqual(te)||ne.updateMarker("drop-target",{range:te}):ne.addMarker("drop-target",{range:te,usingOperation:!1,affectsData:!1})}))}_createDropTargetPosition(te){return te.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(te){const ne=this.toDomElement(te);return ne.append("⁠",te.createElement("span"),"⁠"),ne}))}_updateDropTargetLine(te){const ne=this.editor.editing,ie=te.start.nodeBefore,re=te.start.nodeAfter,le=te.start.parent,ce=ie?ne.mapper.toViewElement(ie):null,de=ce?ne.view.domConverter.mapViewToDom(ce):null,ue=re?ne.mapper.toViewElement(re):null,me=ue?ne.view.domConverter.mapViewToDom(ue):null,ge=ne.mapper.toViewElement(le);if(!ge)return;const fe=ne.view.domConverter.mapViewToDom(ge),_e=this._getScrollableRect(ge),{scrollX:be,scrollY:Ce}=go.window,ye=de?new jo(de):null,we=me?new jo(me):null,ke=new jo(fe).excludeScrollbarsAndBorders(),Se=ye?ye.bottom:ke.top,xe=we?we.top:ke.bottom,Ee=go.window.getComputedStyle(fe),Me=Se<=xe?(Se+xe)/2:xe;if(_e.top<Me&&Me<_e.bottom){const te=ke.left+parseFloat(Ee.paddingLeft),ne=ke.right-parseFloat(Ee.paddingRight),ie=Math.max(te+be,_e.left),re=Math.min(ne+be,_e.right);this._dropTargetLineView.set({isVisible:!0,left:ie,top:Me+Ce,width:re-ie})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(te){const ne=te.root.rootName;let ie;if(this._scrollables.has(ne))ie=this._scrollables.get(ne).domElement;else{ie=function(te){let ne=te;do{ne=ne.parentElement;const te=go.window.getComputedStyle(ne).overflowY;if("auto"==te||"scroll"==te)break}while("BODY"!=ne.tagName);return ne}(this.editor.editing.view.domConverter.mapViewToDom(te)),this._domEmitter.listenTo(ie,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const re=new _o(ie,this._reconvertMarkerThrottled);this._scrollables.set(ne,{domElement:ie,resizeObserver:re})}return new jo(ie).excludeScrollbarsAndBorders()}}function Cw(te,ne,ie,re,le,ce,de){const ue=te.model,me=te.editing.mapper;let ge=xw(te,ne);for(;ge;){if(!ce)if(ue.schema.checkChild(ge,"$text")){if(ie){const ne=ie[0].start,ce=me.toModelPosition(ne);if(!de||Array.from(de.getItems()).every((te=>ue.schema.checkChild(ce,te)))){if(ue.schema.checkChild(ce,"$text"))return ue.createRange(ce);if(ne)return vw(te,xw(te,ne.parent),re,le)}}}else if(ue.schema.isInline(ge))return vw(te,ge,re,le);if(ue.schema.isBlock(ge))return vw(te,ge,re,le);if(ue.schema.checkChild(ge,"$block")){const ne=Array.from(ge.getChildren()).filter((ne=>ne.is("element")&&!_w(te,ne)));let ie=0,ce=ne.length;if(0==ce)return ue.createRange(ue.createPositionAt(ge,"end"));for(;ie<ce-1;){const de=Math.floor((ie+ce)/2);"before"==yw(te,ne[de],re,le)?ce=de:ie=de}return vw(te,ne[ie],re,le)}ge=ge.parent}return null}function _w(te,ne){const ie=te.editing.mapper,re=te.editing.view.domConverter,le=ie.toViewElement(ne);if(!le)return!0;const ce=re.mapViewToDom(le);return"none"!=go.window.getComputedStyle(ce).float}function vw(te,ne,ie,re){const le=te.model;return le.createRange(le.createPositionAt(ne,yw(te,ne,ie,re)))}function yw(te,ne,ie,re){const le=te.editing.mapper,ce=te.editing.view.domConverter,de=le.toViewElement(ne),ue=ce.mapViewToDom(de),me=new jo(ue);return te.model.schema.isInline(ne)?ie<(me.left+me.right)/2?"before":"after":re<(me.top+me.bottom)/2?"before":"after"}function xw(te,ne){const ie=te.editing.mapper,re=te.editing.view,le=ie.toModelElement(ne);if(le)return le;const ce=re.createPositionBefore(ne),de=ie.findMappedViewAncestor(ce);return ie.toModelElement(de)}class Ew extends Es{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(Mo())}static get pluginName(){return"DragDropBlockToolbar"}init(){const te=this.editor;if(this.listenTo(te,"change:isReadOnly",((te,ne,ie)=>{ie?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")})),le.isAndroid&&this.forceDisabled("noAndroidSupport"),te.plugins.has("BlockToolbar")){const ne=te.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(ne,"dragstart",((te,ne)=>this._handleBlockDragStart(ne))),this._domEmitter.listenTo(go.document,"dragover",((te,ne)=>this._handleBlockDragging(ne))),this._domEmitter.listenTo(go.document,"drop",((te,ne)=>this._handleBlockDragging(ne))),this._domEmitter.listenTo(go.document,"dragend",(()=>this._handleBlockDragEnd()),{useCapture:!0}),this.isEnabled&&ne.setAttribute("draggable","true"),this.on("change:isEnabled",((te,ie,re)=>{ne.setAttribute("draggable",re?"true":"false")}))}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(te){if(!this.isEnabled)return;const ne=this.editor.model,ie=ne.document.selection,re=this.editor.editing.view,le=Array.from(ie.getSelectedBlocks()),ce=ne.createRange(ne.createPositionBefore(le[0]),ne.createPositionAfter(le[le.length-1]));ne.change((te=>te.setSelection(ce))),this._isBlockDragging=!0,re.focus(),re.getObserver(xb).onDomEvent(te)}_handleBlockDragging(te){if(!this.isEnabled||!this._isBlockDragging)return;const ne=te.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),ie=te.clientY,re=document.elementFromPoint(ne,ie),le=this.editor.editing.view;re&&re.closest(".ck-editor__editable")&&le.getObserver(xb).onDomEvent({...te,type:te.type,dataTransfer:te.dataTransfer,target:re,clientX:ne,clientY:ie,preventDefault:()=>te.preventDefault(),stopPropagation:()=>te.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}var Yg=i(799);Fo()(Yg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Yg.Z.locals;class Tw extends Es{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=Bi((()=>this._clearDraggableAttributes()),40),this._blockMode=!1,this._domEmitter=new(Mo())}static get pluginName(){return"DragDrop"}static get requires(){return[Ib,sw,Aw,Ew]}init(){const te=this.editor,ne=te.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,ne.addObserver(xb),ne.addObserver(Yu),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(te,"change:isReadOnly",((te,ne,ie)=>{ie?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((te,ne,ie)=>{ie||this._finalizeDragging(!1)})),le.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const te=this.editor,ne=te.model,ie=te.editing.view,re=ie.document,ce=te.plugins.get(Aw);this.listenTo(re,"dragstart",((te,ie)=>{if(ie.target&&ie.target.is("editableElement"))return void ie.preventDefault();if(this._prepareDraggedRange(ie.target),!this._draggedRange)return void ie.preventDefault();this._draggingUid=k(),ie.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",ie.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const re=ne.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(ie.dataTransfer,re,"dragstart");const{dataTransfer:le,domTarget:ce,domEvent:de}=ie,{clientX:ue}=de;this._updatePreview({dataTransfer:le,domTarget:ce,clientX:ue}),ie.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(re,"dragend",((te,ne)=>{this._finalizeDragging(!ne.dataTransfer.isCanceled&&"move"==ne.dataTransfer.dropEffect)}),{priority:"low"}),this._domEmitter.listenTo(go.document,"dragend",(()=>{this._blockMode=!1}),{useCapture:!0}),this.listenTo(re,"dragenter",(()=>{this.isEnabled&&ie.focus()})),this.listenTo(re,"dragleave",(()=>{ce.removeDropMarkerDelayed()})),this.listenTo(re,"dragging",((te,ne)=>{if(!this.isEnabled)return void(ne.dataTransfer.dropEffect="none");const{clientX:ie,clientY:re}=ne.domEvent;ce.updateDropMarker(ne.target,ne.targetRanges,ie,re,this._blockMode,this._draggedRange),this._draggedRange||(ne.dataTransfer.dropEffect="copy"),le.isGecko||("copy"==ne.dataTransfer.effectAllowed?ne.dataTransfer.dropEffect="copy":["all","copyMove"].includes(ne.dataTransfer.effectAllowed)&&(ne.dataTransfer.dropEffect="move")),te.stop()}),{priority:"low"})}_setupClipboardInputIntegration(){const te=this.editor,ne=te.editing.view.document,ie=te.plugins.get(Aw);this.listenTo(ne,"clipboardInput",((ne,re)=>{if("drop"!=re.method)return;const{clientX:le,clientY:ce}=re.domEvent,de=ie.getFinalDropRange(re.target,re.targetRanges,le,ce,this._blockMode,this._draggedRange);return de?(this._draggedRange&&this._draggingUid!=re.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==Iw(re.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(de,!0)?(this._finalizeDragging(!1),void ne.stop()):void(re.targetRanges=[te.editing.mapper.toViewRange(de)])):(this._finalizeDragging(!1),void ne.stop())}),{priority:"high"})}_setupContentInsertionIntegration(){const te=this.editor.plugins.get(Ib);te.on("contentInsertion",((te,ne)=>{if(!this.isEnabled||"drop"!==ne.method)return;const ie=ne.targetRanges.map((te=>this.editor.editing.mapper.toModelRange(te)));this.editor.model.change((te=>te.setSelection(ie)))}),{priority:"high"}),te.on("contentInsertion",((te,ne)=>{if(!this.isEnabled||"drop"!==ne.method)return;const ie="move"==Iw(ne.dataTransfer),re=!ne.resultRange||!ne.resultRange.isCollapsed;this._finalizeDragging(re&&ie)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const te=this.editor,ne=te.editing.view,ie=ne.document;this.listenTo(ie,"mousedown",((re,ce)=>{if(le.isAndroid||!ce)return;this._clearDraggableAttributesDelayed.cancel();let de=Mw(ce.target);if(le.isBlink&&!te.isReadOnly&&!de&&!ie.selection.isCollapsed){const te=ie.selection.getSelectedElement();te&&Rb(te)||(de=ie.selection.editableElement)}de&&(ne.change((te=>{te.setAttribute("draggable","true",de)})),this._draggableElement=te.editing.mapper.toModelElement(de))})),this.listenTo(ie,"mouseup",(()=>{le.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const te=this.editor.editing;te.view.change((ne=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&ne.removeAttribute("draggable",te.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_finalizeDragging(te){const ne=this.editor,ie=ne.model;ne.plugins.get(Aw).removeDropMarker(),this._clearDraggableAttributes(),ne.plugins.has("WidgetToolbarRepository")&&ne.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(te&&this.isEnabled&&ie.change((te=>{const ne=ie.createSelection(this._draggedRange);ie.deleteContent(ne,{doNotAutoparagraph:!0});const re=ne.getFirstPosition().parent;re.isEmpty&&!ie.schema.checkChild(re,"$text")&&ie.schema.checkChild(re,"paragraph")&&te.insertElement("paragraph",re,0)})),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(te){const ne=this.editor,ie=ne.model,re=ie.document.selection,le=te?Mw(te):null;if(le){const te=ne.editing.mapper.toModelElement(le);return this._draggedRange=xd.fromRange(ie.createRangeOn(te)),this._blockMode=ie.schema.isBlock(te),void(ne.plugins.has("WidgetToolbarRepository")&&ne.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(re.isCollapsed&&!re.getFirstPosition().parent.isEmpty)return;const ce=Array.from(re.getSelectedBlocks()),de=re.getFirstRange();if(0==ce.length)return void(this._draggedRange=xd.fromRange(de));const ue=Bw(ie,ce);if(ce.length>1)this._draggedRange=xd.fromRange(ue),this._blockMode=!0;else if(1==ce.length){const te=de.start.isTouching(ue.start)&&de.end.isTouching(ue.end);this._draggedRange=xd.fromRange(te?ue:de),this._blockMode=te}ie.change((te=>te.setSelection(this._draggedRange.toRange())))}_updatePreview({dataTransfer:te,domTarget:ne,clientX:ie}){const re=this.editor.editing.view,ce=re.document.selection.editableElement,de=re.domConverter.mapViewToDom(ce),ue=go.window.getComputedStyle(de);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=bt(go.document,"div",{style:"position: fixed; left: -999999px;"}),go.document.body.appendChild(this._previewContainer));const me=new jo(de);if(de.contains(ne))return;const ge=parseFloat(ue.paddingLeft),fe=bt(go.document,"div");fe.className="ck ck-content",fe.style.width=ue.width,fe.style.paddingLeft=`${me.left-ie+ge}px`,le.isiOS&&(fe.style.backgroundColor="white"),fe.innerHTML=te.getData("text/html"),te.setDragImage(fe,0,0),this._previewContainer.appendChild(fe)}}function Iw(te){return le.isGecko?te.dropEffect:["all","copyMove"].includes(te.effectAllowed)?"move":"copy"}function Mw(te){if(te.is("editableElement"))return null;if(te.hasClass("ck-widget__selection-handle"))return te.findAncestor(Rb);if(Rb(te))return te;const ne=te.findAncestor((te=>Rb(te)||te.is("editableElement")));return Rb(ne)?ne:null}function Bw(te,ne){const ie=ne[0],re=ne[ne.length-1],le=ie.getCommonAncestor(re),ce=te.createPositionBefore(ie),de=te.createPositionAfter(re);if(le&&le.is("element")&&!te.schema.isLimit(le)){const ne=te.createRangeOn(le),ie=ce.isTouching(ne.start),re=de.isTouching(ne.end);if(ie&&re)return Bw(te,[le])}return te.createRange(ce,de)}class Nw extends Es{static get pluginName(){return"PastePlainText"}static get requires(){return[Ib]}init(){const te=this.editor,ne=te.model,ie=te.editing.view,re=ie.document,le=ne.document.selection;let ce=!1;ie.addObserver(xb),this.listenTo(re,"keydown",((te,ne)=>{ce=ne.shiftKey})),te.plugins.get(Ib).on("contentInsertion",((te,ie)=>{(ce||function(te,ne){if(te.childCount>1)return!1;const ie=te.getChild(0);return!ne.isObject(ie)&&0==Array.from(ie.getAttributeKeys()).length}(ie.content,ne.schema))&&ne.change((te=>{const re=Array.from(le.getAttributes()).filter((([te])=>ne.schema.getAttributeProperties(te).isFormatting));le.isCollapsed||ne.deleteContent(le,{doNotAutoparagraph:!0}),re.push(...le.getAttributes());const ce=te.createRangeIn(ie.content);for(const ne of ce.getItems())ne.is("$textProxy")&&te.setAttributes(re,ne)}))}))}}class zw extends Es{static get pluginName(){return"Clipboard"}static get requires(){return[Ib,Tw,Nw]}}class Pw extends Ss{constructor(te){super(te),this.affectsData=!1}execute(){const te=this.editor.model,ne=te.document.selection;let ie=te.schema.getLimitElement(ne);if(ne.containsEntireContent(ie)||!Lw(te.schema,ie))do{if(ie=ie.parent,!ie)return}while(!Lw(te.schema,ie));te.change((te=>{te.setSelection(ie,"in")}))}}function Lw(te,ne){return te.isLimit(ne)&&(te.checkChild(ne,"$text")||te.checkChild(ne,"paragraph"))}const Wg=wi("Ctrl+A");class Rw extends Es{static get pluginName(){return"SelectAllEditing"}init(){const te=this.editor,ne=te.editing.view.document;te.commands.add("selectAll",new Pw(te)),this.listenTo(ne,"keydown",((ne,ie)=>{bi(ie)===Wg&&(te.execute("selectAll"),ie.preventDefault())}))}}class Vw extends Es{static get pluginName(){return"SelectAllUI"}init(){const te=this.editor;te.ui.componentFactory.add("selectAll",(ne=>{const ie=te.commands.get("selectAll"),re=new br(ne),le=ne.t;return re.set({label:le("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),re.bind("isEnabled").to(ie,"isEnabled"),this.listenTo(re,"execute",(()=>{te.execute("selectAll"),te.editing.view.focus()})),re}))}}class Fw extends Es{static get requires(){return[Rw,Vw]}static get pluginName(){return"SelectAll"}}class jw extends Ss{constructor(te){super(te),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(te.data,"set",((te,ne)=>{ne[1]={...ne[1]};const ie=ne[1];ie.batchType||(ie.batchType={isUndoable:!1})}),{priority:"high"}),this.listenTo(te.data,"set",((te,ne)=>{ne[1].batchType.isUndoable||this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(te){const ne=this.editor.model.document.selection,ie={ranges:ne.hasOwnRange?Array.from(ne.getRanges()):[],isBackward:ne.isBackward};this._stack.push({batch:te,selection:ie}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(te,ne,ie){const re=this.editor.model,le=re.document,ce=[],de=te.map((te=>te.getTransformedByOperations(ie))),ue=de.flat();for(const te of de){const ne=te.filter((te=>te.root!=le.graveyard)).filter((te=>!Uw(te,ue)));ne.length&&(Hw(ne),ce.push(ne[0]))}ce.length&&re.change((te=>{te.setSelection(ce,{backward:ne})}))}_undo(te,ne){const ie=this.editor.model,re=ie.document;this._createdBatches.add(ne);const le=te.operations.slice().filter((te=>te.isDocumentOperation));le.reverse();for(const te of le){const le=te.baseVersion+1,ce=Array.from(re.history.getOperations(le)),de=ou([te.getReversed()],ce,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let le of de){const ce=le.affectedSelectable;ce&&!ie.canEditAt(ce)&&(le=new Zh(le.baseVersion)),ne.addOperation(le),ie.applyOperation(le),re.history.setOperationAsUndone(te,le)}}}}function Hw(te){te.sort(((te,ne)=>te.start.isBefore(ne.start)?-1:1));for(let ne=1;ne<te.length;ne++){const ie=te[ne-1].getJoined(te[ne],!0);ie&&(ne--,te.splice(ne,2,ie))}}function Uw(te,ne){return ne.some((ne=>ne!==te&&ne.containsRange(te,!0)))}class Ww extends jw{execute(te=null){const ne=te?this._stack.findIndex((ne=>ne.batch==te)):this._stack.length-1,ie=this._stack.splice(ne,1)[0],re=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(re,(()=>{this._undo(ie.batch,re);const te=this.editor.model.document.history.getOperations(ie.batch.baseVersion);this._restoreSelection(ie.selection.ranges,ie.selection.isBackward,te)})),this.fire("revert",ie.batch,re),this.refresh()}}class Gw extends jw{execute(){const te=this._stack.pop(),ne=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(ne,(()=>{const ie=te.batch.operations[te.batch.operations.length-1].baseVersion+1,re=this.editor.model.document.history.getOperations(ie);this._restoreSelection(te.selection.ranges,te.selection.isBackward,re),this._undo(te.batch,ne)})),this.refresh()}}class qw extends Es{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const te=this.editor;this._undoCommand=new Ww(te),this._redoCommand=new Gw(te),te.commands.add("undo",this._undoCommand),te.commands.add("redo",this._redoCommand),this.listenTo(te.model,"applyOperation",((te,ne)=>{const ie=ne[0];if(!ie.isDocumentOperation)return;const re=ie.batch,le=this._redoCommand.createdBatches.has(re),ce=this._undoCommand.createdBatches.has(re);this._batchRegistry.has(re)||(this._batchRegistry.add(re),re.isUndoable&&(le?this._undoCommand.addBatch(re):ce||(this._undoCommand.addBatch(re),this._redoCommand.clearStack())))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((te,ne,ie)=>{this._redoCommand.addBatch(ie)})),te.keystrokes.set("CTRL+Z","undo"),te.keystrokes.set("CTRL+Y","redo"),te.keystrokes.set("CTRL+SHIFT+Z","redo")}}class Zw extends Es{static get pluginName(){return"UndoUI"}init(){const te=this.editor,ne=te.locale,ie=te.t,re="ltr"==ne.uiLanguageDirection?Dc.undo:Dc.redo,le="ltr"==ne.uiLanguageDirection?Dc.redo:Dc.undo;this._addButton("undo",ie("Undo"),"CTRL+Z",re),this._addButton("redo",ie("Redo"),"CTRL+Y",le)}_addButton(te,ne,ie,re){const le=this.editor;le.ui.componentFactory.add(te,(ce=>{const de=le.commands.get(te),ue=new br(ce);return ue.set({label:ne,icon:re,keystroke:ie,tooltip:!0}),ue.bind("isEnabled").to(de,"isEnabled"),this.listenTo(ue,"execute",(()=>{le.execute(te),le.editing.view.focus()})),ue}))}}class $w extends Es{static get requires(){return[qw,Zw]}static get pluginName(){return"Undo"}}class Kw extends Ss{constructor(te,ne){super(te),this.attributeKey=ne}refresh(){const te=this.editor.model,ne=te.document;this.value=ne.selection.getAttribute(this.attributeKey),this.isEnabled=te.schema.checkAttributeInSelection(ne.selection,this.attributeKey)}execute(te={}){const ne=this.editor.model,ie=ne.document.selection,re=te.value,le=te.batch,r=te=>{if(ie.isCollapsed)re?te.setSelectionAttribute(this.attributeKey,re):te.removeSelectionAttribute(this.attributeKey);else{const le=ne.schema.getValidRanges(ie.getRanges(),this.attributeKey);for(const ne of le)re?te.setAttribute(this.attributeKey,re,ne):te.removeAttribute(this.attributeKey,ne)}};le?ne.enqueueChange(le,(te=>{r(te)})):ne.change((te=>{r(te)}))}}const Xg="fontSize",Jg="fontFamily",Zg="fontColor";function Xw(te,ne){const ie={model:{key:te,values:[]},view:{},upcastAlso:{}};for(const te of ne)ie.model.values.push(te.model),ie.view[te.model]=te.view,te.upcastAlso&&(ie.upcastAlso[te.model]=te.upcastAlso);return ie}function tA(te){return ne=>ne.getStyle(te).replace(/\s/g,"")}function eA(te){return(ne,{writer:ie})=>ie.createAttributeElement("span",{style:`${te}:${ne}`},{priority:7})}class nA extends Kw{constructor(te){super(te,Jg)}}function oA(te){return te.map(iA).filter((te=>void 0!==te))}function iA(te){return"object"==typeof te?te:"default"===te?{title:"Default",model:void 0}:"string"==typeof te?function(te){const ne=te.replace(/"|'/g,"").split(","),ie=ne[0],re=ne.map(rA).join(", ");return{title:ie,model:re,view:{name:"span",styles:{"font-family":re},priority:7}}}(te):void 0}function rA(te){return(te=te.trim()).indexOf(" ")>0&&(te=`'${te}'`),te}class sA extends Es{static get pluginName(){return"FontFamilyEditing"}constructor(te){super(te),te.config.define(Jg,{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1})}init(){const te=this.editor;te.model.schema.extend("$text",{allowAttributes:Jg}),te.model.schema.setAttributeProperties(Jg,{isFormatting:!0,copyOnEnter:!0});const ne=oA(te.config.get("fontFamily.options")).filter((te=>te.model)),ie=Xw(Jg,ne);te.config.get("fontFamily.supportAllValues")?(this._prepareAnyValueConverters(),this._prepareCompatibilityConverter()):te.conversion.attributeToElement(ie),te.commands.add(Jg,new nA(te))}_prepareAnyValueConverters(){const te=this.editor;te.conversion.for("downcast").attributeToElement({model:Jg,view:(te,{writer:ne})=>ne.createAttributeElement("span",{style:"font-family:"+te},{priority:7})}),te.conversion.for("upcast").elementToAttribute({model:{key:Jg,value:te=>te.getStyle("font-family")},view:{name:"span",styles:{"font-family":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{face:/.*/}},model:{key:Jg,value:te=>te.getAttribute("face")}})}}class aA extends Es{static get pluginName(){return"FontFamilyUI"}init(){const te=this.editor,ne=te.t,ie=this._getLocalizedOptions(),re=te.commands.get(Jg),le=ne("Font Family");te.ui.componentFactory.add(Jg,(ne=>{const ce=mg(ne);return fg(ce,(()=>function(te,ne){const ie=new Di;for(const re of te){const te={type:"button",model:new wf({commandName:Jg,commandParam:re.model,label:re.title,role:"menuitemradio",withText:!0})};te.model.bind("isOn").to(ne,"value",(te=>te===re.model||!(!te||!re.model)&&te.split(",")[0].replace(/'/g,"").toLowerCase()===re.model.toLowerCase())),re.view&&"string"!=typeof re.view&&re.view.styles&&te.model.set("labelStyle",`font-family: ${re.view.styles["font-family"]}`),ie.add(te)}return ie}(ie,re)),{role:"menu",ariaLabel:le}),ce.buttonView.set({label:le,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514L11.03 3zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244L12.3 6zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973L13.57 9zm-2.754 2.5L8.038 4.785 5.261 11.5h5.555zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663L11.436 13z"/></svg>',tooltip:!0}),ce.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),ce.bind("isEnabled").to(re),this.listenTo(ce,"execute",(ne=>{te.execute(ne.source.commandName,{value:ne.source.commandParam}),te.editing.view.focus()})),ce}))}_getLocalizedOptions(){const te=this.editor,ne=te.t;return oA(te.config.get(Jg).options).map((te=>("Default"===te.title&&(te.title=ne("Default")),te)))}}class lA extends Kw{constructor(te){super(te,Xg)}}function cA(te){return te.map((te=>function(te){if("number"==typeof te&&(te=String(te)),"object"==typeof te&&(ne=te).title&&ne.model&&ne.view)return hA(te);var ne;const ie=function(te){return"string"==typeof te?rf[te]:rf[te.model]}(te);return ie?hA(ie):"default"===te?{model:void 0,title:"Default"}:function(te){let ne;if("object"==typeof te){if(!te.model)throw new C("font-size-invalid-definition",null,te);ne=parseFloat(te.model)}else ne=parseFloat(te);return isNaN(ne)}(te)?void 0:function(te){return"string"==typeof te&&(te={title:te,model:`${parseFloat(te)}px`}),te.view={name:"span",styles:{"font-size":te.model}},hA(te)}(te)}(te))).filter((te=>void 0!==te))}const rf={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function hA(te){return te.view&&"string"!=typeof te.view&&!te.view.priority&&(te.view.priority=7),te}const sf=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"];class mA extends Es{static get pluginName(){return"FontSizeEditing"}constructor(te){super(te),te.config.define(Xg,{options:["tiny","small","default","big","huge"],supportAllValues:!1})}init(){const te=this.editor;te.model.schema.extend("$text",{allowAttributes:Xg}),te.model.schema.setAttributeProperties(Xg,{isFormatting:!0,copyOnEnter:!0});const ne=te.config.get("fontSize.supportAllValues"),ie=cA(this.editor.config.get("fontSize.options")).filter((te=>te.model)),re=Xw(Xg,ie);ne?(this._prepareAnyValueConverters(re),this._prepareCompatibilityConverter()):te.conversion.attributeToElement(re),te.commands.add(Xg,new lA(te))}_prepareAnyValueConverters(te){const ne=this.editor,ie=te.model.values.filter((te=>!cm(String(te))&&!hm(String(te))));if(ie.length)throw new C("font-size-invalid-use-of-named-presets",null,{presets:ie});ne.conversion.for("downcast").attributeToElement({model:Xg,view:(te,{writer:ne})=>{if(te)return ne.createAttributeElement("span",{style:"font-size:"+te},{priority:7})}}),ne.conversion.for("upcast").elementToAttribute({model:{key:Xg,value:te=>te.getStyle("font-size")},view:{name:"span",styles:{"font-size":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{size:/^[+-]?\d{1,3}$/}},model:{key:Xg,value:te=>{const ne=te.getAttribute("size"),ie="-"===ne[0]||"+"===ne[0];let re=parseInt(ne,10);ie&&(re=3+re);const le=sf.length-1,ce=Math.min(Math.max(re,0),le);return sf[ce]}}})}}var uf=i(5991);Fo()(uf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),uf.Z.locals;class fA extends Es{static get pluginName(){return"FontSizeUI"}init(){const te=this.editor,ne=te.t,ie=this._getLocalizedOptions(),re=te.commands.get(Xg),le=ne("Font Size");te.ui.componentFactory.add(Xg,(ne=>{const ce=mg(ne);return fg(ce,(()=>function(te,ne){const ie=new Di;for(const re of te){const te={type:"button",model:new wf({commandName:Xg,commandParam:re.model,label:re.title,class:"ck-fontsize-option",role:"menuitemradio",withText:!0})};re.view&&"string"!=typeof re.view&&(re.view.styles&&te.model.set("labelStyle",`font-size:${re.view.styles["font-size"]}`),re.view.classes&&te.model.set("class",`${te.model.class} ${re.view.classes}`)),te.model.bind("isOn").to(ne,"value",(te=>te===re.model)),ie.add(te)}return ie}(ie,re)),{role:"menu",ariaLabel:le}),ce.buttonView.set({label:le,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),ce.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),ce.bind("isEnabled").to(re),this.listenTo(ce,"execute",(ne=>{te.execute(ne.source.commandName,{value:ne.source.commandParam}),te.editing.view.focus()})),ce}))}_getLocalizedOptions(){const te=this.editor,ne=te.t,ie={Default:ne("Default"),Tiny:ne("Tiny"),Small:ne("Small"),Big:ne("Big"),Huge:ne("Huge")};return cA(te.config.get(Xg).options).map((te=>{const ne=ie[te.title];return ne&&ne!=te.title&&(te=Object.assign({},te,{title:ne})),te}))}}class kA extends Kw{constructor(te){super(te,Zg)}}class bA extends Es{static get pluginName(){return"FontColorEditing"}constructor(te){super(te),te.config.define(Zg,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),te.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:Zg,value:tA("color")}}),te.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:Zg,value:te=>te.getAttribute("color")}}),te.conversion.for("downcast").attributeToElement({model:Zg,view:eA("color")}),te.commands.add(Zg,new kA(te)),te.model.schema.extend("$text",{allowAttributes:Zg}),te.model.schema.setAttributeProperties(Zg,{isFormatting:!0,copyOnEnter:!0})}}class wA extends Es{constructor(te,{commandName:ne,componentName:ie,icon:re,dropdownLabel:le}){super(te),this.commandName=ne,this.componentName=ie,this.icon=re,this.dropdownLabel=le,this.columns=te.config.get(`${this.componentName}.columns`),this.colorSelectorView=void 0}init(){const te=this.editor,ne=te.locale,ie=ne.t,re=te.commands.get(this.commandName),le=te.config.get(this.componentName),ce=Er(ne,Dr(le.colors)),de=le.documentColors,ue=!1!==le.colorPicker;te.ui.componentFactory.add(this.componentName,(ne=>{const me=mg(ne);let ge=!1;return this.colorSelectorView=function({dropdownView:te,colors:ne,columns:ie,removeButtonLabel:re,colorPickerLabel:le,documentColorsLabel:ce,documentColorsCount:de,colorPickerViewConfig:ue}){const me=te.locale,ge=new up(me,{colors:ne,columns:ie,removeButtonLabel:re,colorPickerLabel:le,documentColorsLabel:ce,documentColorsCount:de,colorPickerViewConfig:ue});return te.colorSelectorView=ge,te.panelView.children.add(ge),ge}({dropdownView:me,colors:ce.map((te=>({label:te.label,color:te.model,options:{hasBorder:te.hasBorder}}))),columns:this.columns,removeButtonLabel:ie("Remove color"),colorPickerLabel:ie("Color picker"),documentColorsLabel:0!==de?ie("Document colors"):"",documentColorsCount:void 0===de?this.columns:de,colorPickerViewConfig:!!ue&&(le.colorPicker||{})}),this.colorSelectorView.bind("selectedColor").to(re,"value"),me.buttonView.set({label:this.dropdownLabel,icon:this.icon,tooltip:!0}),me.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),me.bind("isEnabled").to(re),this.colorSelectorView.on("execute",((ne,ie)=>{me.isOpen&&te.execute(this.commandName,{value:ie.value,batch:this._undoStepBatch}),"colorPicker"!==ie.source&&te.editing.view.focus(),"colorPickerSaveButton"===ie.source&&(me.isOpen=!1)})),this.colorSelectorView.on("colorPicker:show",(()=>{this._undoStepBatch=te.model.createBatch()})),this.colorSelectorView.on("colorPicker:cancel",(()=>{this._undoStepBatch.operations.length&&(me.isOpen=!1,te.execute("undo",this._undoStepBatch)),te.editing.view.focus()})),me.on("change:isOpen",((ne,ie,re)=>{ge||(ge=!0,me.colorSelectorView.appendUI()),re&&(0!==de&&this.colorSelectorView.updateDocumentColors(te.model,this.componentName),this.colorSelectorView.updateSelectedColors(),this.colorSelectorView.showColorGridsFragment())})),bg(me,(()=>me.colorSelectorView.colorGridsFragmentView.staticColorsGrid.items.find((te=>te.isOn)))),me}))}}class AA extends wA{constructor(te){const ne=te.locale.t;super(te,{commandName:Zg,componentName:Zg,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3 10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:ne("Font Color")})}static get pluginName(){return"FontColorUI"}}class CA extends Ss{constructor(te){super(te),this._isEnabledBasedOnSelection=!1}refresh(){const te=this.editor.model,ne=Si(te.document.selection.getSelectedBlocks());this.value=!!ne&&ne.is("element","paragraph"),this.isEnabled=!!ne&&_A(ne,te.schema)}execute(te={}){const ne=this.editor.model,ie=ne.document,re=te.selection||ie.selection;ne.canEditAt(re)&&ne.change((te=>{const ie=re.getSelectedBlocks();for(const re of ie)!re.is("element","paragraph")&&_A(re,ne.schema)&&te.rename(re,"paragraph")}))}}function _A(te,ne){return ne.checkChild(te.parent,"paragraph")&&!ne.isObject(te)}class vA extends Ss{constructor(te){super(te),this._isEnabledBasedOnSelection=!1}execute(te){const ne=this.editor.model,ie=te.attributes;let re=te.position;ne.canEditAt(re)&&ne.change((te=>{if(re=this._findPositionToInsertParagraph(re,te),!re)return;const le=te.createElement("paragraph");ie&&ne.schema.setAllowedAttributes(le,ie,te),ne.insertContent(le,re),te.setSelection(le,"in")}))}_findPositionToInsertParagraph(te,ne){const ie=this.editor.model;if(ie.schema.checkChild(te,"paragraph"))return te;const re=ie.schema.findAllowedParent(te,"paragraph");if(!re)return null;const le=te.parent,ce=ie.schema.checkChild(le,"$text");return le.isEmpty||ce&&te.isAtEnd?ie.createPositionAfter(le):!le.isEmpty&&ce&&te.isAtStart?ie.createPositionBefore(le):ne.split(te,re).position}}class yA extends Es{static get pluginName(){return"Paragraph"}init(){const te=this.editor,ne=te.model;te.commands.add("paragraph",new CA(te)),te.commands.add("insertParagraph",new vA(te)),ne.schema.register("paragraph",{inheritAllFrom:"$block"}),te.conversion.elementToElement({model:"paragraph",view:"p"}),te.conversion.for("upcast").elementToElement({model:(te,{writer:ne})=>yA.paragraphLikeElements.has(te.name)?te.isEmpty?null:ne.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}yA.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);const mf=yA;class EA extends Ss{constructor(te,ne){super(te),this.modelElements=ne}refresh(){const te=Si(this.editor.model.document.selection.getSelectedBlocks());this.value=!!te&&this.modelElements.includes(te.name)&&te.name,this.isEnabled=!!te&&this.modelElements.some((ne=>DA(te,ne,this.editor.model.schema)))}execute(te){const ne=this.editor.model,ie=ne.document,re=te.value;ne.change((te=>{const le=Array.from(ie.selection.getSelectedBlocks()).filter((te=>DA(te,re,ne.schema)));for(const ne of le)ne.is("element",re)||te.rename(ne,re)}))}}function DA(te,ne,ie){return ie.checkChild(te.parent,ne)&&!ie.isObject(te)}const _f="paragraph";class TA extends Es{static get pluginName(){return"HeadingEditing"}constructor(te){super(te),te.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[mf]}init(){const te=this.editor,ne=te.config.get("heading.options"),ie=[];for(const re of ne)"paragraph"!==re.model&&(te.model.schema.register(re.model,{inheritAllFrom:"$block"}),te.conversion.elementToElement(re),ie.push(re.model));this._addDefaultH1Conversion(te),te.commands.add("heading",new EA(te,ie))}afterInit(){const te=this.editor,ne=te.commands.get("enter"),ie=te.config.get("heading.options");ne&&this.listenTo(ne,"afterExecute",((ne,re)=>{const le=te.model.document.selection.getFirstPosition().parent;ie.some((te=>le.is("element",te.model)))&&!le.is("element",_f)&&0===le.childCount&&re.writer.rename(le,_f)}))}_addDefaultH1Conversion(te){te.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:ue.low+1})}}var Cf=i(4249);Fo()(Cf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Cf.Z.locals;class BA extends Es{static get pluginName(){return"HeadingUI"}init(){const te=this.editor,ne=te.t,ie=function(te){const ne=te.t,ie={Paragraph:ne("Paragraph"),"Heading 1":ne("Heading 1"),"Heading 2":ne("Heading 2"),"Heading 3":ne("Heading 3"),"Heading 4":ne("Heading 4"),"Heading 5":ne("Heading 5"),"Heading 6":ne("Heading 6")};return te.config.get("heading.options").map((te=>{const ne=ie[te.title];return ne&&ne!=te.title&&(te.title=ne),te}))}(te),re=ne("Choose heading"),le=ne("Heading");te.ui.componentFactory.add("heading",(ne=>{const ce={},de=new Di,ue=te.commands.get("heading"),me=te.commands.get("paragraph"),ge=[ue];for(const te of ie){const ne={type:"button",model:new wf({label:te.title,class:te.class,role:"menuitemradio",withText:!0})};"paragraph"===te.model?(ne.model.bind("isOn").to(me,"value"),ne.model.set("commandName","paragraph"),ge.push(me)):(ne.model.bind("isOn").to(ue,"value",(ne=>ne===te.model)),ne.model.set({commandName:"heading",commandValue:te.model})),de.add(ne),ce[te.model]=te.title}const fe=mg(ne);return fg(fe,de,{ariaLabel:le,role:"menu"}),fe.buttonView.set({ariaLabel:le,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:le}),fe.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),fe.bind("isEnabled").toMany(ge,"isEnabled",((...te)=>te.some((te=>te)))),fe.buttonView.bind("label").to(ue,"value",me,"value",((te,ne)=>{const ie=te||ne&&"paragraph";return"boolean"==typeof ie?re:ce[ie]?ce[ie]:re})),this.listenTo(fe,"execute",(ne=>{const{commandName:ie,commandValue:re}=ne.source;te.execute(ie,re?{value:re}:void 0),te.editing.view.focus()})),fe}))}}new Set(["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"]);class NA extends Ss{refresh(){const te=this.editor.model,ne=te.document;this.value=ne.selection.getAttribute("highlight"),this.isEnabled=te.schema.checkAttributeInSelection(ne.selection,"highlight")}execute(te={}){const ne=this.editor.model,ie=ne.document.selection,re=te.value;ne.change((te=>{if(ie.isCollapsed){const ne=ie.getFirstPosition();if(ie.hasAttribute("highlight")){const n=te=>te.item.hasAttribute("highlight")&&te.item.getAttribute("highlight")===this.value,ie=ne.getLastMatchingPosition(n,{direction:"backward"}),le=ne.getLastMatchingPosition(n),ce=te.createRange(ie,le);re&&this.value!==re?(ne.isEqual(le)||te.setAttribute("highlight",re,ce),te.setSelectionAttribute("highlight",re)):(ne.isEqual(le)||te.removeAttribute("highlight",ce),te.removeSelectionAttribute("highlight"))}else re&&te.setSelectionAttribute("highlight",re)}else{const le=ne.schema.getValidRanges(ie.getRanges(),"highlight");for(const ne of le)re?te.setAttribute("highlight",re,ne):te.removeAttribute("highlight",ne)}}))}}class zA extends Es{static get pluginName(){return"HighlightEditing"}constructor(te){super(te),te.config.define("highlight",{options:[{model:"yellowMarker",class:"marker-yellow",title:"Yellow marker",color:"var(--ck-highlight-marker-yellow)",type:"marker"},{model:"greenMarker",class:"marker-green",title:"Green marker",color:"var(--ck-highlight-marker-green)",type:"marker"},{model:"pinkMarker",class:"marker-pink",title:"Pink marker",color:"var(--ck-highlight-marker-pink)",type:"marker"},{model:"blueMarker",class:"marker-blue",title:"Blue marker",color:"var(--ck-highlight-marker-blue)",type:"marker"},{model:"redPen",class:"pen-red",title:"Red pen",color:"var(--ck-highlight-pen-red)",type:"pen"},{model:"greenPen",class:"pen-green",title:"Green pen",color:"var(--ck-highlight-pen-green)",type:"pen"}]})}init(){const te=this.editor;te.model.schema.extend("$text",{allowAttributes:"highlight"});const ne=te.config.get("highlight.options");te.conversion.attributeToElement(function(te){const ne={model:{key:"highlight",values:[]},view:{}};for(const ie of te)ne.model.values.push(ie.model),ne.view[ie.model]={name:"mark",classes:ie.class};return ne}(ne)),te.commands.add("highlight",new NA(te))}}var vf=i(7263);Fo()(vf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),vf.Z.locals;class OA extends Es{get localizedOptionTitles(){const te=this.editor.t;return{"Yellow marker":te("Yellow marker"),"Green marker":te("Green marker"),"Pink marker":te("Pink marker"),"Blue marker":te("Blue marker"),"Red pen":te("Red pen"),"Green pen":te("Green pen")}}static get pluginName(){return"HighlightUI"}init(){const te=this.editor.config.get("highlight.options");for(const ne of te)this._addHighlighterButton(ne);this._addRemoveHighlightButton(),this._addDropdown(te)}_addRemoveHighlightButton(){const te=this.editor.t,ne=this.editor.commands.get("highlight");this._addButton("removeHighlight",te("Remove highlight"),Dc.eraser,null,(te=>{te.bind("isEnabled").to(ne,"isEnabled")}))}_addHighlighterButton(te){const ne=this.editor.commands.get("highlight");this._addButton("highlight:"+te.model,te.title,RA(te.type),te.model,(function(ie){ie.bind("isEnabled").to(ne,"isEnabled"),ie.bind("isOn").to(ne,"value",(ne=>ne===te.model)),ie.iconView.fillColor=te.color,ie.isToggleable=!0}))}_addButton(te,ne,ie,re,le){const ce=this.editor;ce.ui.componentFactory.add(te,(te=>{const de=new br(te),ue=this.localizedOptionTitles[ne]?this.localizedOptionTitles[ne]:ne;return de.set({label:ue,icon:ie,tooltip:!0}),de.on("execute",(()=>{ce.execute("highlight",{value:re}),ce.editing.view.focus()})),le(de),de}))}_addDropdown(te){const ne=this.editor,ie=ne.t,re=ne.ui.componentFactory,le=te[0],ce=te.reduce(((te,ne)=>(te[ne.model]=ne,te)),{});re.add("highlight",(de=>{const ue=ne.commands.get("highlight"),me=mg(de,lg),ge=me.buttonView;function d(te,ne){const ie=te&&te!==ge.lastExecuted?te:ge.lastExecuted;return ce[ie][ne]}return ge.set({label:ie("Highlight"),tooltip:!0,lastExecuted:le.model,commandValue:le.model,isToggleable:!0}),ge.bind("icon").to(ue,"value",(te=>RA(d(te,"type")))),ge.bind("color").to(ue,"value",(te=>d(te,"color"))),ge.bind("commandValue").to(ue,"value",(te=>d(te,"model"))),ge.bind("isOn").to(ue,"value",(te=>!!te)),ge.delegate("execute").to(me),me.bind("isEnabled").to(ue,"isEnabled"),gg(me,(()=>{const ne=te.map((te=>{const ne=re.create("highlight:"+te.model);return this.listenTo(ne,"execute",(()=>{me.buttonView.set({lastExecuted:te.model})})),ne}));return ne.push(new vs),ne.push(re.create("removeHighlight")),ne}),{enableActiveItemFocusOnDropdownOpen:!0,ariaLabel:ie("Text highlight toolbar")}),function(te){te.buttonView.actionView.iconView.bind("fillColor").to(te.buttonView,"color")}(me),ge.on("execute",(()=>{ne.execute("highlight",{value:ge.commandValue})})),this.listenTo(me,"execute",(()=>{ne.editing.view.focus()})),me}))}}function RA(te){return"marker"===te?'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.798 1.59 3.002 12.875l1.895 1.852 2.521 1.402 6.997-12.194z"/><path d="m2.556 16.727.234-.348c-.297-.151-.462-.293-.498-.426-.036-.137.002-.416.115-.837.094-.25.15-.449.169-.595a4.495 4.495 0 0 0 0-.725c-.209-.621-.303-1.041-.284-1.26.02-.218.178-.506.475-.862l6.77-9.414c.539-.91 1.605-.85 3.199.18 1.594 1.032 2.188 1.928 1.784 2.686l-5.877 10.36c-.158.412-.333.673-.526.782-.193.108-.604.179-1.232.21-.362.131-.608.237-.738.318-.13.081-.305.238-.526.47-.293.265-.504.397-.632.397-.096 0-.27-.075-.524-.226l-.31.41-1.6-1.12zm-.279.415 1.575 1.103-.392.515H1.19l1.087-1.618zm8.1-13.656-4.953 6.9L8.75 12.57l4.247-7.574c.175-.25-.188-.647-1.092-1.192-.903-.546-1.412-.652-1.528-.32zM8.244 18.5 9.59 17h9.406v1.5H8.245z"/></svg>':'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.126 2.268 2.002 13.874l1.895 1.852 2.521 1.402L14.47 5.481l-1.543-2.568-2.801-.645z"/><path d="m4.5 18.088-2.645-1.852-.04-2.95-.006-.005.006-.008v-.025l.011.008L8.73 2.97c.165-.233.356-.417.567-.557l-1.212.308L4.604 7.9l-.83-.558 3.694-5.495 2.708-.69 1.65 1.145.046.018.85-1.216 2.16 1.512-.856 1.222c.828.967 1.144 2.141.432 3.158L7.55 17.286l.006.005-3.055.797H4.5zm-.634.166-1.976.516-.026-1.918 2.002 1.402zM9.968 3.817l-.006-.004-6.123 9.184 3.277 2.294 6.108-9.162.005.003c.317-.452-.16-1.332-1.064-1.966-.891-.624-1.865-.776-2.197-.349zM8.245 18.5 9.59 17h9.406v1.5H8.245z"/></svg>'}const yf=Wf({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"});var Af=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,If=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),Sf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rf="\\ud800-\\udfff",Lf="\\u2700-\\u27bf",Of="a-z\\xdf-\\xf6\\xf8-\\xff",Pf="A-Z\\xc0-\\xd6\\xd8-\\xde",jf="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vf="["+jf+"]",Gf="\\d+",Hf="["+Lf+"]",$f="["+Of+"]",qf="[^"+Rf+jf+Gf+Lf+Of+Pf+"]",Yf="(?:\\ud83c[\\udde6-\\uddff]){2}",Xf="[\\ud800-\\udbff][\\udc00-\\udfff]",Kf="["+Pf+"]",Qf="(?:"+$f+"|"+qf+")",Zf="(?:"+Kf+"|"+qf+")",t_="(?:['’](?:d|ll|m|re|s|t|ve))?",n_="(?:['’](?:D|LL|M|RE|S|T|VE))?",i_="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",a_="[\\ufe0e\\ufe0f]?",l_=a_+i_+"(?:\\u200d(?:"+["[^"+Rf+"]",Yf,Xf].join("|")+")"+a_+i_+")*",c_="(?:"+[Hf,Yf,Xf].join("|")+")"+l_,d_=RegExp([Kf+"?"+$f+"+"+t_+"(?="+[Vf,Kf,"$"].join("|")+")",Zf+"+"+n_+"(?="+[Vf,Kf+Qf,"$"].join("|")+")",Kf+"?"+Qf+"+"+t_,Kf+"+"+n_,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gf,c_].join("|"),"g");const kC=function(te,ne,ie){return te=ma(te),void 0===(ne=ie?void 0:ne)?function(te){return Tf.test(te)}(te)?function(te){return te.match(d_)||[]}(te):function(te){return te.match(Sf)||[]}(te):te.match(ne)||[]};var h_=RegExp("['’]","g"),O_=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const _C=function(te){return O_.test(te)};var G_="\\ud800-\\udfff",H_="["+G_+"]",U_="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",W_="\\ud83c[\\udffb-\\udfff]",eb="[^"+G_+"]",nb="(?:\\ud83c[\\udde6-\\uddff]){2}",ob="[\\ud800-\\udbff][\\udc00-\\udfff]",rb="(?:"+U_+"|"+W_+")?",db="[\\ufe0e\\ufe0f]?",_b=db+rb+"(?:\\u200d(?:"+[eb,nb,ob].join("|")+")"+db+rb+")*",vb="(?:"+[eb+U_+"?",U_,nb,ob,H_].join("|")+")",Db=RegExp(W_+"(?="+W_+")|"+vb+_b,"g");const OC=function(te){return _C(te)?function(te){return te.match(Db)||[]}(te):function(te){return te.split("")}(te)},RC=function(te){te=ma(te);var ne=_C(te)?OC(te):void 0,ie=ne?ne[0]:te.charAt(0),re=ne?function(te,ne,ie){var re=te.length;return ie=void 0===ie?re:ie,!ne&&ie>=re?te:ba(te,ne,ie)}(ne,1).join(""):te.slice(1);return ie.toUpperCase()+re},Eb=function(te){return function(ne){return function(te,ne,ie,re){var le=-1,ce=null==te?0:te.length;for(re&&ce&&(ie=te[++le]);++le<ce;)ie=ne(ie,te[le],le,te);return ie}(kC(function(te){return(te=ma(te))&&te.replace(Af,yf).replace(If,"")}(ne).replace(h_,"")),te,"")}}((function(te,ne,ie){return te+(ie?" ":"")+RC(ne)}));function FC(te,ne,ie,re){ne&&function(te,ne,ie){if(ne.attributes)for(const[re]of Object.entries(ne.attributes))te.removeAttribute(re,ie);if(ne.styles)for(const re of Object.keys(ne.styles))te.removeStyle(re,ie);ne.classes&&te.removeClass(ne.classes,ie)}(te,ne,re),ie&&jC(te,ie,re)}function jC(te,ne,ie){if(ne.attributes)for(const[re,le]of Object.entries(ne.attributes))te.setAttribute(re,le,ie);ne.styles&&te.setStyle(ne.styles,ie),ne.classes&&te.addClass(ne.classes,ie)}function HC(te,ne,ie,re,le){const ce=ne.getAttribute(ie),de={};for(const te of["attributes","styles","classes"]){if(te!=re){ce&&ce[te]&&(de[te]=ce[te]);continue}if("classes"==re){const ne=new Set(ce&&ce.classes||[]);le(ne),ne.size&&(de[te]=Array.from(ne));continue}const ne=new Map(Object.entries(ce&&ce[te]||{}));le(ne),ne.size&&(de[te]=Object.fromEntries(ne))}Object.keys(de).length?ne.is("documentSelection")?te.setSelectionAttribute(ie,de):te.setAttribute(ie,de,ne):ce&&(ne.is("documentSelection")?te.removeSelectionAttribute(ie):te.removeAttribute(ie,ne))}function UC(te){return`html${ne=te,Eb(ne).replace(/ /g,"")}Attributes`;var ne}function WC({model:te}){return(ne,ie)=>ie.writer.createElement(te,{htmlContent:ne.getCustomProperty("$rawContent")})}function GC(te,{view:ne,isInline:ie}){const re=te.t;return(te,{writer:le})=>{const ce=re("HTML object"),de=qC(ne,te,le),ue=te.getAttribute(UC(ne));return le.addClass("html-object-embed__content",de),ue&&jC(le,ue,de),Vb(le.createContainerElement(ie?"span":"div",{class:"html-object-embed","data-html-object-embed-label":ce},de),le,{label:ce})}}function qC(te,ne,ie){return ie.createRawElement(te,null,((te,ie)=>{ie.setContentOf(te,ne.getAttribute("htmlContent"))}))}function $C({model:te,view:ne},ie){return(re,{writer:le,consumable:ce})=>{if(!re.hasAttribute(te))return null;const de=le.createContainerElement(ne),ue=re.getAttribute(te);return ce.consume(re,`attribute:${te}`),jC(le,ue,de),de.getFillerOffset=()=>null,ie?Vb(de,le):de}}function KC({priority:te,view:ne}){return(ie,re)=>{if(!ie)return;const{writer:le}=re,ce=le.createAttributeElement(ne,null,{priority:te});return jC(le,ie,ce),ce}}function YC({view:te},ne){return ie=>{ie.on(`element:${te}`,((te,ie,re)=>{if(!ie.modelRange||ie.modelRange.isCollapsed)return;const le=ne.processViewAttributes(ie.viewItem,re);le&&re.writer.setAttribute(UC(ie.viewItem.name),le,ie.modelRange)}),{priority:"low"})}}function QC({view:te,model:ne}){return ie=>{ie.on(`attribute:${UC(te)}:${ne}`,((te,ne,ie)=>{if(!ie.consumable.consume(ne.item,te.name))return;const{attributeOldValue:re,attributeNewValue:le}=ne;FC(ie.writer,re,le,ie.mapper.toViewElement(ne.item))}))}}const Lb=[{model:"codeBlock",view:"pre"},{model:"paragraph",view:"p"},{model:"blockQuote",view:"blockquote"},{model:"listItem",view:"li"},{model:"pageBreak",view:"div"},{model:"rawHtml",view:"div"},{model:"table",view:"table"},{model:"tableRow",view:"tr"},{model:"tableCell",view:"td"},{model:"tableCell",view:"th"},{model:"tableColumnGroup",view:"colgroup"},{model:"tableColumn",view:"col"},{model:"caption",view:"caption"},{model:"caption",view:"figcaption"},{model:"imageBlock",view:"img"},{model:"imageInline",view:"img"},{model:"htmlP",view:"p",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlBlockquote",view:"blockquote",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlTable",view:"table",modelSchema:{allowWhere:"$block",isBlock:!0}},{model:"htmlTbody",view:"tbody",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlThead",view:"thead",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlTfoot",view:"tfoot",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlCaption",view:"caption",modelSchema:{allowIn:"htmlTable",allowChildren:"$text",isBlock:!1}},{model:"htmlColgroup",view:"colgroup",modelSchema:{allowIn:"htmlTable",allowChildren:"col",isBlock:!1}},{model:"htmlCol",view:"col",modelSchema:{allowIn:"htmlColgroup",isBlock:!1}},{model:"htmlTr",view:"tr",modelSchema:{allowIn:["htmlTable","htmlThead","htmlTbody"],isLimit:!0}},{model:"htmlTd",view:"td",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlTh",view:"th",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlFigure",view:"figure",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFigcaption",view:"figcaption",modelSchema:{allowIn:"htmlFigure",allowChildren:"$text",isBlock:!1}},{model:"htmlAddress",view:"address",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlAside",view:"aside",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlMain",view:"main",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDetails",view:"details",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSummary",view:"summary",modelSchema:{allowChildren:"$text",allowIn:"htmlDetails",isBlock:!1}},{model:"htmlDiv",view:"div",paragraphLikeModel:"htmlDivParagraph",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlFieldset",view:"fieldset",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlLegend",view:"legend",modelSchema:{allowIn:"htmlFieldset",allowChildren:"$text"}},{model:"htmlHeader",view:"header",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFooter",view:"footer",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlForm",view:"form",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlHgroup",view:"hgroup",modelSchema:{allowChildren:["htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6"],isBlock:!1}},{model:"htmlH1",view:"h1",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH2",view:"h2",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH3",view:"h3",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH4",view:"h4",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH5",view:"h5",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH6",view:"h6",modelSchema:{inheritAllFrom:"$block"}},{model:"$htmlList",modelSchema:{allowWhere:"$container",allowChildren:["$htmlList","htmlLi"],isBlock:!1}},{model:"htmlDir",view:"dir",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlMenu",view:"menu",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlUl",view:"ul",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlOl",view:"ol",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlLi",view:"li",modelSchema:{allowIn:"$htmlList",allowChildren:"$text",isBlock:!1}},{model:"htmlPre",view:"pre",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlArticle",view:"article",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSection",view:"section",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlNav",view:"nav",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDivDl",view:"div",modelSchema:{allowChildren:["htmlDt","htmlDd"],allowIn:"htmlDl"}},{model:"htmlDl",view:"dl",modelSchema:{allowWhere:"$container",allowChildren:["htmlDt","htmlDd","htmlDivDl"],isBlock:!1}},{model:"htmlDt",view:"dt",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlDd",view:"dd",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlCenter",view:"center",modelSchema:{inheritAllFrom:"$container",isBlock:!1}}],Ob=[{model:"htmlLiAttributes",view:"li",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlOlAttributes",view:"ol",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlUlAttributes",view:"ul",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"table"},{model:"htmlTheadAttributes",view:"thead",appliesToBlock:"table"},{model:"htmlTbodyAttributes",view:"tbody",appliesToBlock:"table"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"imageBlock"},{model:"htmlAcronym",view:"acronym",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTt",view:"tt",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlFont",view:"font",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTime",view:"time",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlVar",view:"var",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBig",view:"big",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSmall",view:"small",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSamp",view:"samp",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlQ",view:"q",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlOutput",view:"output",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlKbd",view:"kbd",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdi",view:"bdi",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdo",view:"bdo",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlAbbr",view:"abbr",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlA",view:"a",priority:5,coupledAttribute:"linkHref"},{model:"htmlStrong",view:"strong",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlB",view:"b",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlI",view:"i",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlEm",view:"em",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlS",view:"s",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDel",view:"del",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlIns",view:"ins",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlU",view:"u",coupledAttribute:"underline",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSub",view:"sub",coupledAttribute:"subscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSup",view:"sup",coupledAttribute:"superscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCode",view:"code",coupledAttribute:"code",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlMark",view:"mark",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSpan",view:"span",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCite",view:"cite",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlLabel",view:"label",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDfn",view:"dfn",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlObject",view:"object",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlIframe",view:"iframe",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlInput",view:"input",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlButton",view:"button",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlTextarea",view:"textarea",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlSelect",view:"select",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlVideo",view:"video",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlEmbed",view:"embed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlOembed",view:"oembed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlAudio",view:"audio",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlImg",view:"img",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlCanvas",view:"canvas",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlMeter",view:"meter",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlProgress",view:"progress",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlScript",view:"script",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlStyle",view:"style",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlCustomElement",view:"$customElement",modelSchema:{allowWhere:["$text","$block"],allowAttributesOf:"$inlineObject",isInline:!0}}],Pb=ja((function(te,ne,ie,re){wa(te,ne,ie,re)}));class e_ extends Es{constructor(){super(...arguments),this._definitions=[]}static get pluginName(){return"DataSchema"}init(){for(const te of Lb)this.registerBlockElement(te);for(const te of Ob)this.registerInlineElement(te)}registerBlockElement(te){this._definitions.push({...te,isBlock:!0})}registerInlineElement(te){this._definitions.push({...te,isInline:!0})}extendBlockElement(te){this._extendDefinition({...te,isBlock:!0})}extendInlineElement(te){this._extendDefinition({...te,isInline:!0})}getDefinitionsForView(te,ne=!1){const ie=new Set;for(const re of this._getMatchingViewDefinitions(te)){if(ne)for(const te of this._getReferences(re.model))ie.add(te);ie.add(re)}return ie}getDefinitionsForModel(te){return this._definitions.filter((ne=>ne.model==te))}_getMatchingViewDefinitions(te){return this._definitions.filter((ne=>ne.view&&function(te,ne){return"string"==typeof te?te===ne:te instanceof RegExp&&te.test(ne)}(te,ne.view)))}*_getReferences(te){const ne=["inheritAllFrom","inheritTypesFrom","allowWhere","allowContentOf","allowAttributesOf"],ie=this._definitions.filter((ne=>ne.model==te));for(const{modelSchema:re}of ie)if(re)for(const ie of ne)for(const ne of _i(re[ie]||[])){const ie=this._definitions.filter((te=>te.model==ne));for(const re of ie)ne!==te&&(yield*this._getReferences(re.model),yield re)}}_extendDefinition(te){const ne=Array.from(this._definitions.entries()).filter((([,ne])=>ne.model==te.model));if(0!=ne.length)for(const[ie,re]of ne)this._definitions[ie]=Pb({},re,te,((te,ne)=>Array.isArray(te)?te.concat(ne):void 0));else this._definitions.push(te)}}const o_=function(te){return te!=te},r_=function(te,ne,ie){return ne==ne?function(te,ne,ie){for(var re=ie-1,le=te.length;++re<le;)if(te[re]===ne)return re;return-1}(te,ne,ie):function(te,ne,ie,re){for(var le=te.length,ce=ie+(re?1:-1);re?ce--:++ce<le;)if(ne(te[ce],ce,te))return ce;return-1}(te,o_,ie)},s_=function(te,ne,ie,re){for(var le=ie-1,ce=te.length;++le<ce;)if(re(te[le],ne))return le;return-1};var qb=Array.prototype.splice;const Yb=Va((function(te,ne){return te&&te.length&&ne&&ne.length?function(te,ne,ie,re){var le=re?s_:r_,ce=-1,de=ne.length,ue=te;for(te===ne&&(ne=Cn(ne)),ie&&(ue=ca(te,Ze(ie)));++ce<de;)for(var me=0,ge=ne[ce],fe=ie?ie(ge):ge;(me=le(ue,fe,me,re))>-1;)ue!==te&&qb.call(ue,me,1),qb.call(te,me,1);return te}(te,ne):te}));var Xb=i(1710);Fo()(Xb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Xb.Z.locals;class u_ extends Es{constructor(te){super(te),this._dataSchema=te.plugins.get("DataSchema"),this._allowedAttributes=new Ys,this._disallowedAttributes=new Ys,this._allowedElements=new Set,this._disallowedElements=new Set,this._dataInitialized=!1,this._coupledAttributes=null,this._registerElementsAfterInit(),this._registerElementHandlers(),this._registerCoupledAttributesPostFixer(),this._registerAssociatedHtmlAttributesPostFixer()}static get pluginName(){return"DataFilter"}static get requires(){return[e_,sw]}loadAllowedConfig(te){for(const ne of te){const te=ne.name||/[\s\S]+/,ie=k_(ne);this.allowElement(te),ie.forEach((te=>this.allowAttributes(te)))}}loadDisallowedConfig(te){for(const ne of te){const te=ne.name||/[\s\S]+/,ie=k_(ne);0==ie.length?this.disallowElement(te):ie.forEach((te=>this.disallowAttributes(te)))}}loadAllowedEmptyElementsConfig(te){for(const ne of te)this.allowEmptyElement(ne)}allowElement(te){for(const ne of this._dataSchema.getDefinitionsForView(te,!0))this._addAllowedElement(ne),this._coupledAttributes=null}disallowElement(te){for(const ne of this._dataSchema.getDefinitionsForView(te,!1))this._disallowedElements.add(ne.view)}allowEmptyElement(te){for(const ne of this._dataSchema.getDefinitionsForView(te,!0))ne.isInline&&this._dataSchema.extendInlineElement({...ne,allowEmpty:!0})}allowAttributes(te){this._allowedAttributes.add(te)}disallowAttributes(te){this._disallowedAttributes.add(te)}processViewAttributes(te,ne){return m_(te,ne,this._disallowedAttributes),m_(te,ne,this._allowedAttributes)}_addAllowedElement(te){if(!this._allowedElements.has(te)){if(this._allowedElements.add(te),"appliesToBlock"in te&&"string"==typeof te.appliesToBlock)for(const ne of this._dataSchema.getDefinitionsForModel(te.appliesToBlock))ne.isBlock&&this._addAllowedElement(ne);this._dataInitialized&&this.editor.data.once("set",(()=>{this._fireRegisterEvent(te)}),{priority:ue.highest+1})}}_registerElementsAfterInit(){this.editor.data.on("init",(()=>{this._dataInitialized=!0;for(const te of this._allowedElements)this._fireRegisterEvent(te)}),{priority:ue.highest+1})}_registerElementHandlers(){this.on("register",((te,ne)=>{const ie=this.editor.model.schema;if(ne.isObject&&!ie.isRegistered(ne.model))this._registerObjectElement(ne);else if(ne.isBlock)this._registerBlockElement(ne);else{if(!ne.isInline)throw new C("data-filter-invalid-definition",null,ne);this._registerInlineElement(ne)}te.stop()}),{priority:"lowest"})}_registerCoupledAttributesPostFixer(){const te=this.editor.model,ne=te.document.selection;te.document.registerPostFixer((ne=>{const ie=te.document.differ.getChanges();let re=!1;const le=this._getCoupledAttributesMap();for(const te of ie){if("attribute"!=te.type||null!==te.attributeNewValue)continue;const ie=le.get(te.attributeKey);if(ie)for(const{item:le}of te.range.getWalker())for(const te of ie)le.hasAttribute(te)&&(ne.removeAttribute(te,le),re=!0)}return re})),this.listenTo(ne,"change:attribute",((ie,{attributeKeys:re})=>{const le=new Set,ce=this._getCoupledAttributesMap();for(const te of re){if(ne.hasAttribute(te))continue;const ie=ce.get(te);if(ie)for(const te of ie)ne.hasAttribute(te)&&le.add(te)}0!=le.size&&te.change((te=>{for(const ne of le)te.removeSelectionAttribute(ne)}))}))}_registerAssociatedHtmlAttributesPostFixer(){const te=this.editor.model;te.document.registerPostFixer((ne=>{const ie=te.document.differ.getChanges();let re=!1;for(const le of ie)if("insert"===le.type&&"$text"!==le.name)for(const ie of le.attributes.keys())ie.startsWith("html")&&ie.endsWith("Attributes")&&(te.schema.checkAttribute(le.name,ie)||(ne.removeAttribute(ie,le.position.nodeAfter),re=!0));return re}))}_getCoupledAttributesMap(){if(this._coupledAttributes)return this._coupledAttributes;this._coupledAttributes=new Map;for(const te of this._allowedElements)if(te.coupledAttribute&&te.model){const ne=this._coupledAttributes.get(te.coupledAttribute);ne?ne.push(te.model):this._coupledAttributes.set(te.coupledAttribute,[te.model])}return this._coupledAttributes}_fireRegisterEvent(te){te.view&&this._disallowedElements.has(te.view)||this.fire(te.view?`register:${te.view}`:"register",te)}_registerObjectElement(te){const ne=this.editor,ie=ne.model.schema,re=ne.conversion,{view:le,model:ce}=te;ie.register(ce,te.modelSchema),le&&(ie.extend(te.model,{allowAttributes:[UC(le),"htmlContent"]}),ne.data.registerRawContentMatcher({name:le}),re.for("upcast").elementToElement({view:le,model:WC(te),converterPriority:ue.low+2}),re.for("upcast").add(YC(te,this)),re.for("editingDowncast").elementToStructure({model:{name:ce,attributes:[UC(le)]},view:GC(ne,te)}),re.for("dataDowncast").elementToElement({model:ce,view:(te,{writer:ne})=>qC(le,te,ne)}),re.for("dataDowncast").add(QC(te)))}_registerBlockElement(te){const ne=this.editor,ie=ne.model.schema,re=ne.conversion,{view:le,model:ce}=te;if(!ie.isRegistered(te.model)){if(ie.register(te.model,te.modelSchema),!le)return;re.for("upcast").elementToElement({model:ce,view:le,converterPriority:ue.low+2}),re.for("downcast").elementToElement({model:ce,view:le})}le&&(ie.extend(te.model,{allowAttributes:UC(le)}),re.for("upcast").add(YC(te,this)),re.for("downcast").add(QC(te)))}_registerInlineElement(te){const ne=this.editor,ie=ne.model.schema,re=ne.conversion,le=te.model;te.appliesToBlock||(ie.extend("$text",{allowAttributes:le}),te.attributeProperties&&ie.setAttributeProperties(le,te.attributeProperties),re.for("upcast").add(function ZC({view:te,model:ne,allowEmpty:ie},re){return ne=>{ne.on(`element:${te}`,((te,ne,le)=>{let ce=re.processViewAttributes(ne.viewItem,le);if(ce||le.consumable.test(ne.viewItem,{name:!0})){if(ce=ce||{},le.consumable.consume(ne.viewItem,{name:!0}),ne.modelRange||(ne=Object.assign(ne,le.convertChildren(ne.viewItem,ne.modelCursor))),ie&&ne.modelRange.isCollapsed&&Object.keys(ce).length){const te=le.writer.createElement("htmlEmptyElement");if(!le.safeInsert(te,ne.modelCursor))return;const ie=le.getSplitParts(te);return ne.modelRange=le.writer.createRange(ne.modelRange.start,le.writer.createPositionAfter(ie[ie.length-1])),le.updateConversionResult(te,ne),void i(te,ce,le)}for(const te of ne.modelRange.getItems())i(te,ce,le)}}),{priority:"low"})};function i(te,ie,re){if(re.schema.checkAttribute(te,ne)){const le=function(te,ne){const ie=Kc(te);let re="attributes";for(re in ne)ie[re]="classes"==re?Array.from(new Set([...te[re]||[],...ne[re]])):{...te[re],...ne[re]};return ie}(ie,te.getAttribute(ne)||{});re.writer.setAttribute(ne,le,te)}}}(te,this)),re.for("downcast").attributeToElement({model:le,view:KC(te)}),te.allowEmpty&&(ie.setAttributeProperties(le,{copyFromObject:!1}),ie.isRegistered("htmlEmptyElement")||ie.register("htmlEmptyElement",{inheritAllFrom:"$inlineObject"}),ne.data.htmlProcessor.domConverter.registerInlineObjectMatcher((ne=>ne.name==te.view&&ne.isEmpty&&Array.from(ne.getAttributeKeys()).length?{name:!0}:null)),re.for("editingDowncast").elementToElement({model:"htmlEmptyElement",view:$C(te,!0)}),re.for("dataDowncast").elementToElement({model:"htmlEmptyElement",view:$C(te)})))}}function m_(te,ne,ie){const re=function(te,{consumable:ne},ie){const re=ie.matchAll(te)||[],le=[];for(const ie of re)g_(ne,te,ie),delete ie.match.name,ne.consume(te,ie.match),le.push(ie);return le}(te,ne,ie),{attributes:le,styles:ce,classes:de}=function(te){const ne={attributes:new Set,classes:new Set,styles:new Set};for(const ie of te)for(const te in ne)(ie.match[te]||[]).forEach((ie=>ne[te].add(ie)));return ne}(re),ue={};if(le.size)for(const te of le)Xo(te)||le.delete(te);return le.size&&(ue.attributes=p_(le,(ne=>te.getAttribute(ne)))),ce.size&&(ue.styles=p_(ce,(ne=>te.getStyle(ne)))),de.size&&(ue.classes=Array.from(de)),Object.keys(ue).length?ue:null}function g_(te,ne,ie){for(const re of["attributes","classes","styles"]){const le=ie.match[re];if(le)for(const ie of Array.from(le))te.test(ne,{[re]:[ie]})||Yb(le,ie)}}function p_(te,ne){const ie={};for(const re of te)void 0!==ne(re)&&(ie[re]=ne(re));return ie}function f_(te,ne){const{name:ie}=te,re=te[ne];return Et(re)?Object.entries(re).map((([te,re])=>({name:ie,[ne]:{[te]:re}}))):Array.isArray(re)?re.map((te=>({name:ie,[ne]:[te]}))):[te]}function k_(te){const{name:ne,attributes:ie,classes:re,styles:le}=te,ce=[];return ie&&ce.push(...f_({name:ne,attributes:ie},"attributes")),re&&ce.push(...f_({name:ne,classes:re},"classes")),le&&ce.push(...f_({name:ne,styles:le},"styles")),ce}class b_ extends Es{static get requires(){return[u_]}static get pluginName(){return"CodeBlockElementSupport"}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const te=this.editor.plugins.get(u_);te.on("register:pre",((ne,ie)=>{if("codeBlock"!==ie.model)return;const re=this.editor,le=re.model.schema,ce=re.conversion;le.extend("codeBlock",{allowAttributes:["htmlPreAttributes","htmlContentAttributes"]}),ce.for("upcast").add(function(te){return ne=>{ne.on("element:code",((ne,ie,re)=>{const le=ie.viewItem,ce=le.parent;function s(ne,le){const ce=te.processViewAttributes(ne,re);ce&&re.writer.setAttribute(le,ce,ie.modelRange)}ce&&ce.is("element","pre")&&(s(ce,"htmlPreAttributes"),s(le,"htmlContentAttributes"))}),{priority:"low"})}}(te)),ce.for("downcast").add((te=>{te.on("attribute:htmlPreAttributes:codeBlock",((te,ne,ie)=>{if(!ie.consumable.consume(ne.item,te.name))return;const{attributeOldValue:re,attributeNewValue:le}=ne,ce=ie.mapper.toViewElement(ne.item).parent;FC(ie.writer,re,le,ce)})),te.on("attribute:htmlContentAttributes:codeBlock",((te,ne,ie)=>{if(!ie.consumable.consume(ne.item,te.name))return;const{attributeOldValue:re,attributeNewValue:le}=ne,ce=ie.mapper.toViewElement(ne.item);FC(ie.writer,re,le,ce)}))})),ne.stop()}))}}class w_ extends Es{static get requires(){return[u_]}static get pluginName(){return"DualContentModelElementSupport"}init(){this.editor.plugins.get(u_).on("register",((te,ne)=>{const ie=ne,re=this.editor,le=re.model.schema,ce=re.conversion;if(!ie.paragraphLikeModel)return;if(le.isRegistered(ie.model)||le.isRegistered(ie.paragraphLikeModel))return;const de={model:ie.paragraphLikeModel,view:ie.view};le.register(ie.model,ie.modelSchema),le.register(de.model,{inheritAllFrom:"$block"}),ce.for("upcast").elementToElement({view:ie.view,model:(te,{writer:ne})=>this._hasBlockContent(te)?ne.createElement(ie.model):ne.createElement(de.model),converterPriority:ue.low+.5}),ce.for("downcast").elementToElement({view:ie.view,model:ie.model}),this._addAttributeConversion(ie),ce.for("downcast").elementToElement({view:de.view,model:de.model}),this._addAttributeConversion(de),te.stop()}))}_hasBlockContent(te){const ne=this.editor.editing.view,ie=ne.domConverter.blockElements;for(const re of ne.createRangeIn(te).getItems())if(re.is("element")&&ie.includes(re.name))return!0;return!1}_addAttributeConversion(te){const ne=this.editor,ie=ne.conversion,re=ne.plugins.get(u_);ne.model.schema.extend(te.model,{allowAttributes:UC(te.view)}),ie.for("upcast").add(YC(te,re)),ie.for("downcast").add(QC(te))}}class A_ extends Es{static get requires(){return[e_,ub]}static get pluginName(){return"HeadingElementSupport"}init(){const te=this.editor;if(!te.plugins.has("HeadingEditing"))return;const ne=te.config.get("heading.options");this.registerHeadingElements(te,ne)}registerHeadingElements(te,ne){const ie=te.plugins.get(e_),re=[];for(const te of ne)"model"in te&&"view"in te&&(ie.registerBlockElement({view:te.view,model:te.model}),re.push(te.model));ie.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:re}})}}function C_(te,ne,ie){const re=te.createRangeOn(ne);for(const{item:te}of re.getWalker())if(te.is("element",ie))return te}class __ extends Es{static get requires(){return[u_]}static get pluginName(){return"ImageElementSupport"}init(){const te=this.editor;if(!te.plugins.has("ImageInlineEditing")&&!te.plugins.has("ImageBlockEditing"))return;const ne=te.model.schema,ie=te.conversion,re=te.plugins.get(u_);re.on("register:figure",(()=>{ie.for("upcast").add(function(te){return ne=>{ne.on("element:figure",((ne,ie,re)=>{const le=ie.viewItem;if(!ie.modelRange||!le.hasClass("image"))return;const ce=te.processViewAttributes(le,re);ce&&re.writer.setAttribute("htmlFigureAttributes",ce,ie.modelRange)}),{priority:"low"})}}(re))})),re.on("register:img",((le,ce)=>{"imageBlock"!==ce.model&&"imageInline"!==ce.model||(ne.isRegistered("imageBlock")&&ne.extend("imageBlock",{allowAttributes:["htmlImgAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),ne.isRegistered("imageInline")&&ne.extend("imageInline",{allowAttributes:["htmlA","htmlImgAttributes"]}),ie.for("upcast").add(function(te){return ne=>{ne.on("element:img",((ne,ie,re)=>{if(!ie.modelRange)return;const le=ie.viewItem,ce=te.processViewAttributes(le,re);ce&&re.writer.setAttribute("htmlImgAttributes",ce,ie.modelRange)}),{priority:"low"})}}(re)),ie.for("downcast").add((te=>{function n(ne,ie){te.on(`attribute:${ie}:imageBlock`,((te,ie,re)=>{if(!re.consumable.test(ie.item,te.name))return;const{attributeOldValue:le,attributeNewValue:ce}=ie,de=re.mapper.toViewElement(ie.item),ue=C_(re.writer,de,ne);ue&&(FC(re.writer,le,ce,ue),re.consumable.consume(ie.item,te.name))}),{priority:"low"}),"a"===ne&&te.on("attribute:linkHref:imageBlock",((te,ne,ie)=>{if(!ie.consumable.consume(ne.item,"attribute:htmlLinkAttributes:imageBlock"))return;const re=ie.mapper.toViewElement(ne.item),le=C_(ie.writer,re,"a");jC(ie.writer,ne.item.getAttribute("htmlLinkAttributes"),le)}),{priority:"low"})}(function e(ne){te.on(`attribute:${ne}:imageInline`,((te,ne,ie)=>{if(!ie.consumable.consume(ne.item,te.name))return;const{attributeOldValue:re,attributeNewValue:le}=ne,ce=ie.mapper.toViewElement(ne.item);FC(ie.writer,re,le,ce)}),{priority:"low"})})("htmlImgAttributes"),n("img","htmlImgAttributes"),n("figure","htmlFigureAttributes"),n("a","htmlLinkAttributes")})),te.plugins.has("LinkImage")&&ie.for("upcast").add(function(te,ne){const ie=ne.plugins.get("ImageUtils");return ne=>{ne.on("element:a",((ne,re,le)=>{const ce=re.viewItem;if(!ie.findViewImgElement(ce))return;const de=re.modelCursor.parent;if(!de.is("element","imageBlock"))return;const ue=te.processViewAttributes(ce,le);ue&&le.writer.setAttribute("htmlLinkAttributes",ue,de)}),{priority:"low"})}}(re,te)),le.stop())}))}}class v_ extends Es{static get requires(){return[u_]}static get pluginName(){return"MediaEmbedElementSupport"}init(){const te=this.editor;if(!te.plugins.has("MediaEmbed")||te.config.get("mediaEmbed.previewsInData"))return;const ne=te.model.schema,ie=te.conversion,re=this.editor.plugins.get(u_),le=this.editor.plugins.get(e_),ce=te.config.get("mediaEmbed.elementName");le.registerBlockElement({model:"media",view:ce}),re.on("register:figure",(()=>{ie.for("upcast").add(function(te){return ne=>{ne.on("element:figure",((ne,ie,re)=>{const le=ie.viewItem;if(!ie.modelRange||!le.hasClass("media"))return;const ce=te.processViewAttributes(le,re);ce&&re.writer.setAttribute("htmlFigureAttributes",ce,ie.modelRange)}),{priority:"low"})}}(re))})),re.on(`register:${ce}`,((te,le)=>{"media"===le.model&&(ne.extend("media",{allowAttributes:[UC(ce),"htmlFigureAttributes"]}),ie.for("upcast").add(function(te,ne){const n=(ie,re,le)=>{!function r(ne,ie){const ce=te.processViewAttributes(ne,le);ce&&le.writer.setAttribute(ie,ce,re.modelRange)}(re.viewItem,UC(ne))};return te=>{te.on(`element:${ne}`,n,{priority:"low"})}}(re,ce)),ie.for("dataDowncast").add(function(te){return ne=>{function n(te,ie){ne.on(`attribute:${ie}:media`,((ne,ie,re)=>{if(!re.consumable.consume(ie.item,ne.name))return;const{attributeOldValue:le,attributeNewValue:ce}=ie,de=re.mapper.toViewElement(ie.item),ue=C_(re.writer,de,te);FC(re.writer,le,ce,ue)}))}n(te,UC(te)),n("figure","htmlFigureAttributes")}}(ce)),te.stop())}))}}class y_ extends Es{static get requires(){return[u_]}static get pluginName(){return"ScriptElementSupport"}init(){const te=this.editor.plugins.get(u_);te.on("register:script",((ne,ie)=>{const re=this.editor,le=re.model.schema,ce=re.conversion;le.register("htmlScript",ie.modelSchema),le.extend("htmlScript",{allowAttributes:["htmlScriptAttributes","htmlContent"],isContent:!0}),re.data.registerRawContentMatcher({name:"script"}),ce.for("upcast").elementToElement({view:"script",model:WC(ie)}),ce.for("upcast").add(YC(ie,te)),ce.for("downcast").elementToElement({model:"htmlScript",view:(te,{writer:ne})=>qC("script",te,ne)}),ce.for("downcast").add(QC(ie)),ne.stop()}))}}class x_ extends Es{static get requires(){return[u_]}static get pluginName(){return"TableElementSupport"}init(){const te=this.editor;if(!te.plugins.has("TableEditing"))return;const ne=te.model.schema,ie=te.conversion,re=te.plugins.get(u_),le=te.plugins.get("TableUtils");re.on("register:figure",(()=>{ie.for("upcast").add(function(te){return ne=>{ne.on("element:figure",((ne,ie,re)=>{const le=ie.viewItem;if(!ie.modelRange||!le.hasClass("table"))return;const ce=te.processViewAttributes(le,re);ce&&re.writer.setAttribute("htmlFigureAttributes",ce,ie.modelRange)}),{priority:"low"})}}(re))})),re.on("register:table",((ce,de)=>{"table"===de.model&&(ne.extend("table",{allowAttributes:["htmlTableAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),ie.for("upcast").add(function(te){return ne=>{ne.on("element:table",((ne,ie,re)=>{if(!ie.modelRange)return;const le=ie.viewItem;r(le,"htmlTableAttributes");for(const te of le.getChildren())te.is("element","thead")&&r(te,"htmlTheadAttributes"),te.is("element","tbody")&&r(te,"htmlTbodyAttributes");function r(ne,le){const ce=te.processViewAttributes(ne,re);ce&&re.writer.setAttribute(le,ce,ie.modelRange)}}),{priority:"low"})}}(re)),ie.for("downcast").add((te=>{function e(ne,ie){te.on(`attribute:${ie}:table`,((te,ie,re)=>{if(!re.consumable.test(ie.item,te.name))return;const le=re.mapper.toViewElement(ie.item),ce=C_(re.writer,le,ne);ce&&(re.consumable.consume(ie.item,te.name),FC(re.writer,ie.attributeOldValue,ie.attributeNewValue,ce))}))}e("table","htmlTableAttributes"),e("figure","htmlFigureAttributes"),e("thead","htmlTheadAttributes"),e("tbody","htmlTbodyAttributes")})),te.model.document.registerPostFixer(function(te,ne){return ie=>{const re=te.document.differ.getChanges();let le=!1;for(const te of re){if("attribute"!=te.type||"headingRows"!=te.attributeKey)continue;const re=te.range.start.nodeAfter,ce=re.getAttribute("htmlTheadAttributes"),de=re.getAttribute("htmlTbodyAttributes");ce&&!te.attributeNewValue?(ie.removeAttribute("htmlTheadAttributes",re),le=!0):de&&te.attributeNewValue==ne.getRows(re)&&(ie.removeAttribute("htmlTbodyAttributes",re),le=!0)}return le}}(te.model,le)),ce.stop())}))}}class E_ extends Es{static get requires(){return[u_]}static get pluginName(){return"StyleElementSupport"}init(){const te=this.editor.plugins.get(u_);te.on("register:style",((ne,ie)=>{const re=this.editor,le=re.model.schema,ce=re.conversion;le.register("htmlStyle",ie.modelSchema),le.extend("htmlStyle",{allowAttributes:["htmlStyleAttributes","htmlContent"],isContent:!0}),re.data.registerRawContentMatcher({name:"style"}),ce.for("upcast").elementToElement({view:"style",model:WC(ie)}),ce.for("upcast").add(YC(ie,te)),ce.for("downcast").elementToElement({model:"htmlStyle",view:(te,{writer:ne})=>qC("style",te,ne)}),ce.for("downcast").add(QC(ie)),ne.stop()}))}}class D_ extends Es{static get requires(){return[u_]}static get pluginName(){return"ListElementSupport"}init(){const te=this.editor;if(!te.plugins.has("ListEditing"))return;const ne=te.model.schema,ie=te.conversion,re=te.plugins.get(u_),le=te.plugins.get("ListEditing"),ce=["ul","ol","li"];le.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast:jC}),le.registerDowncastStrategy({scope:"list",attributeName:"htmlUlAttributes",setAttributeOnDowncast:jC}),le.registerDowncastStrategy({scope:"list",attributeName:"htmlOlAttributes",setAttributeOnDowncast:jC}),re.on("register",((te,le)=>{if(!ce.includes(le.view))return;if(te.stop(),ne.checkAttribute("$block","htmlLiAttributes"))return;const de=ce.map((te=>UC(te)));ne.extend("$listItem",{allowAttributes:de}),ie.for("upcast").add((te=>{te.on("element:ul",S_("htmlUlAttributes",re),{priority:"low"}),te.on("element:ol",S_("htmlOlAttributes",re),{priority:"low"}),te.on("element:li",S_("htmlLiAttributes",re),{priority:"low"})}))})),le.on("postFixer",((te,{listNodes:ne,writer:ie})=>{for(const{node:re,previousNodeInList:le}of ne)if(le){if(le.getAttribute("listType")==re.getAttribute("listType")){const ne=T_(le.getAttribute("listType")),ce=le.getAttribute(ne);!Gh(re.getAttribute(ne),ce)&&ie.model.schema.checkAttribute(re,ne)&&(ie.setAttribute(ne,ce,re),te.return=!0)}if(le.getAttribute("listItemId")==re.getAttribute("listItemId")){const ne=le.getAttribute("htmlLiAttributes");!Gh(re.getAttribute("htmlLiAttributes"),ne)&&ie.model.schema.checkAttribute(re,"htmlLiAttributes")&&(ie.setAttribute("htmlLiAttributes",ne,re),te.return=!0)}}})),le.on("postFixer",((te,{listNodes:ne,writer:ie})=>{for(const{node:re}of ne){const ne=re.getAttribute("listType");"numbered"!==ne&&re.getAttribute("htmlOlAttributes")&&(ie.removeAttribute("htmlOlAttributes",re),te.return=!0),"numbered"===ne&&re.getAttribute("htmlUlAttributes")&&(ie.removeAttribute("htmlUlAttributes",re),te.return=!0)}}))}afterInit(){const te=this.editor;if(!te.commands.get("indentList"))return;const ne=te.commands.get("indentList");this.listenTo(ne,"afterExecute",((ne,ie)=>{te.model.change((ne=>{for(const re of ie){const ie=T_(re.getAttribute("listType"));te.model.schema.checkAttribute(re,ie)&&ne.setAttribute(ie,{},re)}}))}))}}function S_(te,ne){return(ie,re,le)=>{const ce=re.viewItem;re.modelRange||Object.assign(re,le.convertChildren(re.viewItem,re.modelCursor));const de=ne.processViewAttributes(ce,le);for(const ne of re.modelRange.getItems({shallow:!0}))ne.hasAttribute("listItemId")&&(ne.hasAttribute(te)||le.writer.model.schema.checkAttribute(ne,te)&&le.writer.setAttribute(te,de||{},ne))}}function T_(te){return"numbered"===te?"htmlOlAttributes":"htmlUlAttributes"}class I_ extends Es{static get requires(){return[u_,e_]}static get pluginName(){return"CustomElementSupport"}init(){const te=this.editor.plugins.get(u_),ne=this.editor.plugins.get(e_);te.on("register:$customElement",((ie,re)=>{ie.stop();const le=this.editor,ce=le.model.schema,de=le.conversion,ue=le.editing.view.domConverter.unsafeElements,me=le.data.htmlProcessor.domConverter.preElements;ce.register(re.model,re.modelSchema),ce.extend(re.model,{allowAttributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"],isContent:!0}),le.data.htmlProcessor.domConverter.registerRawContentMatcher({name:"template"}),de.for("upcast").elementToElement({view:/.*/,model:(ie,ce)=>{if("$comment"==ie.name)return null;if(!function(te){try{document.createElement(te)}catch(te){return!1}return!0}(ie.name))return null;if(ne.getDefinitionsForView(ie.name).size)return null;ue.includes(ie.name)||ue.push(ie.name),me.includes(ie.name)||me.push(ie.name);const de=ce.writer.createElement(re.model,{htmlElementName:ie.name}),ge=te.processViewAttributes(ie,ce);let fe;if(ge&&ce.writer.setAttribute("htmlCustomElementAttributes",ge,de),ie.is("element","template")&&ie.getCustomProperty("$rawContent"))fe=ie.getCustomProperty("$rawContent");else{const te=new Qu(ie.document).createDocumentFragment(ie),ne=le.data.htmlProcessor.domConverter.viewToDom(te),re=ne.firstChild;for(;re.firstChild;)ne.appendChild(re.firstChild);re.remove(),fe=le.data.htmlProcessor.htmlWriter.getHtml(ne)}ce.writer.setAttribute("htmlContent",fe,de);for(const{item:te}of le.editing.view.createRangeIn(ie))ce.consumable.consume(te,{name:!0});return de},converterPriority:"low"}),de.for("editingDowncast").elementToElement({model:{name:re.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(te,{writer:ne})=>{const ie=te.getAttribute("htmlElementName"),re=ne.createRawElement(ie);return te.hasAttribute("htmlCustomElementAttributes")&&jC(ne,te.getAttribute("htmlCustomElementAttributes"),re),re}}),de.for("dataDowncast").elementToElement({model:{name:re.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(te,{writer:ne})=>{const ie=te.getAttribute("htmlElementName"),re=te.getAttribute("htmlContent"),le=ne.createRawElement(ie,null,((te,ne)=>{ne.setContentOf(te,re)}));return te.hasAttribute("htmlCustomElementAttributes")&&jC(ne,te.getAttribute("htmlCustomElementAttributes"),le),le}})}))}}function*M_(te,ne,ie){if(ne)if(!(Symbol.iterator in ne)&&ne.is("documentSelection")&&ne.isCollapsed)te.schema.checkAttributeInSelection(ne,ie)&&(yield ne);else for(const re of function(te,ne,ie){return!(Symbol.iterator in ne)&&(ne.is("node")||ne.is("$text")||ne.is("$textProxy"))?te.schema.checkAttribute(ne,ie)?[te.createRangeOn(ne)]:[]:te.schema.getValidRanges(te.createSelection(ne).getRanges(),ie)}(te,ne,ie))yield*re.getItems({shallow:!0})}function B_(te){return te.createContainerElement("figure",{class:"image"},[te.createEmptyElement("img"),te.createSlot("children")])}function N_(te,ne){const ie=te.plugins.get("ImageUtils"),re=te.plugins.has("ImageInlineEditing")&&te.plugins.has("ImageBlockEditing");return te=>ie.isInlineImageView(te)?re&&("block"==te.getStyle("display")||te.findAncestor(ie.isBlockImageView)?"imageBlock":"imageInline")!==ne?null:i(te):null;function i(te){const ne={name:!0};return te.hasAttribute("src")&&(ne.attributes=["src"]),ne}}function z_(te,ne){const ie=Si(ne.getSelectedBlocks());return!ie||te.isObject(ie)||ie.isEmpty&&"listItem"!=ie.name?"imageBlock":"imageInline"}function P_(te){return te&&te.endsWith("px")?parseInt(te):null}function L_(te){const ne=P_(te.getStyle("width")),ie=P_(te.getStyle("height"));return!(!ne||!ie)}const Kb=/^(image|image-inline)$/;class R_ extends Es{constructor(){super(...arguments),this._domEmitter=new(Mo())}static get pluginName(){return"ImageUtils"}isImage(te){return this.isInlineImage(te)||this.isBlockImage(te)}isInlineImageView(te){return!!te&&te.is("element","img")}isBlockImageView(te){return!!te&&te.is("element","figure")&&te.hasClass("image")}insertImage(te={},ne=null,ie=null,re={}){const le=this.editor,ce=le.model,de=ce.document.selection,ue=V_(le,ne||de,ie);te={...Object.fromEntries(de.getAttributes()),...te};for(const ne in te)ce.schema.checkAttribute(ue,ne)||delete te[ne];return ce.change((ie=>{const{setImageSizes:le=!0}=re,de=ie.createElement(ue,te);return ce.insertObject(de,ne,null,{setSelection:"on",findOptimalPosition:ne||"imageInline"==ue?void 0:"auto"}),de.parent?(le&&this.setImageNaturalSizeAttributes(de),de):null}))}setImageNaturalSizeAttributes(te){const ne=te.getAttribute("src");ne&&(te.getAttribute("width")||te.getAttribute("height")||this.editor.model.change((ie=>{const re=new go.window.Image;this._domEmitter.listenTo(re,"load",(()=>{te.getAttribute("width")||te.getAttribute("height")||this.editor.model.enqueueChange(ie.batch,(ne=>{ne.setAttribute("width",re.naturalWidth,te),ne.setAttribute("height",re.naturalHeight,te)})),this._domEmitter.stopListening(re,"load")})),re.src=ne})))}getClosestSelectedImageWidget(te){const ne=te.getFirstPosition();if(!ne)return null;const ie=te.getSelectedElement();if(ie&&this.isImageWidget(ie))return ie;let re=ne.parent;for(;re;){if(re.is("element")&&this.isImageWidget(re))return re;re=re.parent}return null}getClosestSelectedImageElement(te){const ne=te.getSelectedElement();return this.isImage(ne)?ne:te.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(te){return te.findAncestor({classes:Kb})}isImageAllowed(){const te=this.editor.model.document.selection;return function(te,ne){if("imageBlock"==V_(te,ne,null)){const ie=function(te,ne){const ie=Wb(te,ne).start.parent;return ie.isEmpty&&!ie.is("element","$root")?ie.parent:ie}(ne,te.model);if(te.model.schema.checkChild(ie,"imageBlock"))return!0}else if(te.model.schema.checkChild(ne.focus,"imageInline"))return!0;return!1}(this.editor,te)&&function(te){return[...te.focus.getAncestors()].every((te=>!te.is("element","imageBlock")))}(te)}toImageWidget(te,ne,ie){return ne.setCustomProperty("image",!0,te),Vb(te,ne,{label:()=>{const ne=this.findViewImgElement(te).getAttribute("alt");return ne?`${ne} ${ie}`:ie}})}isImageWidget(te){return!!te.getCustomProperty("image")&&Rb(te)}isBlockImage(te){return!!te&&te.is("element","imageBlock")}isInlineImage(te){return!!te&&te.is("element","imageInline")}findViewImgElement(te){if(this.isInlineImageView(te))return te;const ne=this.editor.editing.view;for(const{item:ie}of ne.createRangeIn(te))if(this.isInlineImageView(ie))return ie}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function V_(te,ne,ie){const re=te.model.schema,le=te.config.get("image.insert.type");return te.plugins.has("ImageBlockEditing")?te.plugins.has("ImageInlineEditing")?ie||("inline"===le?"imageInline":"auto"!==le?"imageBlock":ne.is("selection")?z_(re,ne):re.checkChild(ne,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class F_ extends Ss{refresh(){const te=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!te,this.isEnabled&&te.hasAttribute("alt")?this.value=te.getAttribute("alt"):this.value=!1}execute(te){const ne=this.editor,ie=ne.plugins.get("ImageUtils"),re=ne.model,le=ie.getClosestSelectedImageElement(re.document.selection);re.change((ne=>{ne.setAttribute("alt",te.newValue,le)}))}}class j_ extends Es{static get requires(){return[R_]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new F_(this.editor))}}var Qb=i(5269);Fo()(Qb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Qb.Z.locals;var Jb=i(6603);Fo()(Jb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Jb.Z.locals;class q_ extends Hi{constructor(te){super(te);const ne=this.locale.t;this.focusTracker=new Ti,this.keystrokes=new Ii,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(ne("Save"),Dc.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(ne("Cancel"),Dc.cancel,"ck-button-cancel","cancel"),this._focusables=new Oi,this._focusCycler=new As({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),n({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((te=>{this._focusables.add(te),this.focusTracker.add(te.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(te,ne,ie,re){const le=new br(this.locale);return le.set({label:te,icon:ne,tooltip:!0}),le.extendTemplate({attributes:{class:ie}}),re&&le.delegate("execute").to(this,re),le}_createLabeledInputView(){const te=this.locale.t,ne=new rs(this.locale,Ag);return ne.label=te("Text alternative"),ne}}function Z_(te){const ne=te.editing.view,ie=Pp.defaultPositions,re=te.plugins.get("ImageUtils");return{target:ne.domConverter.mapViewToDom(re.getClosestSelectedImageWidget(ne.document.selection)),positions:[ie.northArrowSouth,ie.northArrowSouthWest,ie.northArrowSouthEast,ie.southArrowNorth,ie.southArrowNorthWest,ie.southArrowNorthEast,ie.viewportStickyNorth]}}class $_ extends Es{static get requires(){return[xf]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const te=this.editor,ne=te.t;te.ui.componentFactory.add("imageTextAlternative",(ie=>{const re=te.commands.get("imageTextAlternative"),le=new br(ie);return le.set({label:ne("Change image text alternative"),icon:Dc.textAlternative,tooltip:!0}),le.bind("isEnabled").to(re,"isEnabled"),le.bind("isOn").to(re,"value",(te=>!!te)),this.listenTo(le,"execute",(()=>{this._showForm()})),le}))}_createForm(){const te=this.editor,ne=te.editing.view.document,ie=te.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(e(q_))(te.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{te.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this._form.keystrokes.set("Esc",((te,ne)=>{this._hideForm(!0),ne()})),this.listenTo(te.ui,"update",(()=>{ie.getClosestSelectedImageWidget(ne.selection)?this._isVisible&&function(te){const ne=te.plugins.get("ContextualBalloon");if(te.plugins.get("ImageUtils").getClosestSelectedImageWidget(te.editing.view.document.selection)){const ie=Z_(te);ne.updatePosition(ie)}}(te):this._hideForm(!0)})),t({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const te=this.editor,ne=te.commands.get("imageTextAlternative"),ie=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Z_(te)}),ie.fieldView.value=ie.fieldView.element.value=ne.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(te=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),te&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class K_ extends Es{static get requires(){return[j_,$_]}static get pluginName(){return"ImageTextAlternative"}}function Y_(te,ne){const n=(ne,ie,re)=>{if(!re.consumable.consume(ie.item,ne.name))return;const le=re.writer,ce=re.mapper.toViewElement(ie.item),de=te.findViewImgElement(ce);null===ie.attributeNewValue?(le.removeAttribute("srcset",de),le.removeAttribute("sizes",de)):ie.attributeNewValue&&(le.setAttribute("srcset",ie.attributeNewValue,de),le.setAttribute("sizes","100vw",de))};return te=>{te.on(`attribute:srcset:${ne}`,n)}}function Q_(te,ne,ie){const o=(ne,ie,re)=>{if(!re.consumable.consume(ie.item,ne.name))return;const le=re.writer,ce=re.mapper.toViewElement(ie.item),de=te.findViewImgElement(ce);le.setAttribute(ie.attributeKey,ie.attributeNewValue||"",de)};return te=>{te.on(`attribute:${ie}:${ne}`,o)}}class J_ extends uc{observe(te){this.listenTo(te,"load",((te,ne)=>{const ie=ne.target;this.checkShouldIgnoreEventFromTarget(ie)||"IMG"==ie.tagName&&this._fireEvents(ne)}),{useCapture:!0})}stopObserving(te){this.stopListening(te)}_fireEvents(te){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",te))}}class X_ extends Ss{constructor(te){super(te);const ne=te.config.get("image.insert.type");te.plugins.has("ImageBlockEditing")||"block"===ne&&_("image-block-plugin-required"),te.plugins.has("ImageInlineEditing")||"inline"===ne&&_("image-inline-plugin-required")}refresh(){const te=this.editor.plugins.get("ImageUtils");this.isEnabled=te.isImageAllowed()}execute(te){const ne=_i(te.source),ie=this.editor.model.document.selection,re=this.editor.plugins.get("ImageUtils"),le=Object.fromEntries(ie.getAttributes());ne.forEach(((te,ne)=>{const ce=ie.getSelectedElement();if("string"==typeof te&&(te={src:te}),ne&&ce&&re.isImage(ce)){const ne=this.editor.model.createPositionAfter(ce);re.insertImage({...te,...le},ne)}else re.insertImage({...te,...le})}))}}class tv extends Ss{constructor(te){super(te),this.decorate("cleanupImage")}refresh(){const te=this.editor.plugins.get("ImageUtils"),ne=this.editor.model.document.selection.getSelectedElement();this.isEnabled=te.isImage(ne),this.value=this.isEnabled?ne.getAttribute("src"):null}execute(te){const ne=this.editor.model.document.selection.getSelectedElement(),ie=this.editor.plugins.get("ImageUtils");this.editor.model.change((re=>{re.setAttribute("src",te.source,ne),this.cleanupImage(re,ne),ie.setImageNaturalSizeAttributes(ne)}))}cleanupImage(te,ne){te.removeAttribute("srcset",ne),te.removeAttribute("sizes",ne),te.removeAttribute("sources",ne),te.removeAttribute("width",ne),te.removeAttribute("height",ne),te.removeAttribute("alt",ne)}}class ev extends Es{static get requires(){return[R_]}static get pluginName(){return"ImageEditing"}init(){const te=this.editor,ne=te.conversion;te.editing.view.addObserver(J_),ne.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const ie=new X_(te),re=new tv(te);te.commands.add("insertImage",ie),te.commands.add("replaceImageSource",re),te.commands.add("imageInsert",ie)}}class nv extends Es{static get requires(){return[R_]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(te){const ne=this.editor,ie=ne.plugins.get("ImageUtils"),re="imageBlock"===te?"figure":"img";function i(ne,re,le,ce){ne.on(`attribute:${re}:${te}`,((ne,re,de)=>{if(!de.consumable.consume(re.item,ne.name))return;const ue=de.writer,me=de.mapper.toViewElement(re.item),ge=ie.findViewImgElement(me);if(null!==re.attributeNewValue?ue.setAttribute(le,re.attributeNewValue,ge):ue.removeAttribute(le,ge),re.item.hasAttribute("sources"))return;const fe=re.item.hasAttribute("resizedWidth");if("imageInline"===te&&!fe&&!ce)return;const _e=re.item.getAttribute("width"),be=re.item.getAttribute("height");_e&&be&&ue.setStyle("aspect-ratio",`${_e}/${be}`,ge)}))}ne.conversion.for("upcast").attributeToAttribute({view:{name:re,styles:{width:/.+/}},model:{key:"width",value:te=>L_(te)?P_(te.getStyle("width")):null}}).attributeToAttribute({view:{name:re,key:"width"},model:"width"}).attributeToAttribute({view:{name:re,styles:{height:/.+/}},model:{key:"height",value:te=>L_(te)?P_(te.getStyle("height")):null}}).attributeToAttribute({view:{name:re,key:"height"},model:"height"}),ne.conversion.for("editingDowncast").add((te=>{i(te,"width","width",!0),i(te,"height","height",!0)})),ne.conversion.for("dataDowncast").add((te=>{i(te,"width","width",!1),i(te,"height","height",!1)}))}}class ov extends Ss{constructor(te,ne){super(te),this._modelElementName=ne}refresh(){const te=this.editor.plugins.get("ImageUtils"),ne=te.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=te.isInlineImage(ne):this.isEnabled=te.isBlockImage(ne)}execute(te={}){const ne=this.editor,ie=this.editor.model,re=ne.plugins.get("ImageUtils"),le=re.getClosestSelectedImageElement(ie.document.selection),ce=Object.fromEntries(le.getAttributes());return ce.src||ce.uploadId?ie.change((ne=>{const{setImageSizes:de=!0}=te,ue=Array.from(ie.markers).filter((te=>te.getRange().containsItem(le))),me=re.insertImage(ce,ie.createSelection(le,"on"),this._modelElementName,{setImageSizes:de});if(!me)return null;const ge=ne.createRangeOn(me);for(const te of ue){const ie=te.getRange(),re="$graveyard"!=ie.root.rootName?ie.getJoined(ge,!0):ge;ne.updateMarker(te,{range:re})}return{oldElement:le,newElement:me}})):null}}var eC=i(31);Fo()(eC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),eC.Z.locals;class sv extends Es{static get requires(){return[R_]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const te=this.editor.model.schema;te.isRegistered("imageBlock")&&te.extend("imageBlock",{allowAttributes:["placeholder"]}),te.isRegistered("imageInline")&&te.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const te=this.editor,ne=te.conversion,ie=te.plugins.get("ImageUtils");ne.for("editingDowncast").add((te=>{te.on("attribute:placeholder",((te,ne,re)=>{if(!re.consumable.test(ne.item,te.name))return;if(!ne.item.is("element","imageBlock")&&!ne.item.is("element","imageInline"))return;re.consumable.consume(ne.item,te.name);const le=re.writer,ce=re.mapper.toViewElement(ne.item),de=ie.findViewImgElement(ce);ne.attributeNewValue?(le.addClass("image_placeholder",de),le.setStyle("background-image",`url(${ne.attributeNewValue})`,de),le.setCustomProperty("editingPipeline:doNotReuseOnce",!0,de)):(le.removeClass("image_placeholder",de),le.removeStyle("background-image",de))}))}))}_setupLoadListener(){const te=this.editor,ne=te.model,ie=te.editing,re=ie.view,le=te.plugins.get("ImageUtils");re.addObserver(J_),this.listenTo(re.document,"imageLoaded",((te,ce)=>{const de=re.domConverter.mapDomToView(ce.target);if(!de)return;const ue=le.getImageWidgetFromImageView(de);if(!ue)return;const me=ie.mapper.toModelElement(ue);me&&me.hasAttribute("placeholder")&&ne.enqueueChange({isUndoable:!1},(te=>{te.removeAttribute("placeholder",me)}))}))}}class av extends Es{static get requires(){return[ev,nv,R_,sv,Ib]}static get pluginName(){return"ImageBlockEditing"}init(){const te=this.editor;te.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),te.plugins.has("ImageInlineEditing")&&(te.commands.add("imageTypeBlock",new ov(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const te=this.editor,ne=te.t,ie=te.conversion,re=te.plugins.get("ImageUtils");ie.for("dataDowncast").elementToStructure({model:"imageBlock",view:(te,{writer:ne})=>B_(ne)}),ie.for("editingDowncast").elementToStructure({model:"imageBlock",view:(te,{writer:ie})=>re.toImageWidget(B_(ie),ie,ne("image widget"))}),ie.for("downcast").add(Q_(re,"imageBlock","src")).add(Q_(re,"imageBlock","alt")).add(Y_(re,"imageBlock")),ie.for("upcast").elementToElement({view:N_(te,"imageBlock"),model:(te,{writer:ne})=>ne.createElement("imageBlock",te.hasAttribute("src")?{src:te.getAttribute("src")}:void 0)}).add(function(te){const e=(ne,ie,re)=>{if(!re.consumable.test(ie.viewItem,{name:!0,classes:"image"}))return;const le=te.findViewImgElement(ie.viewItem);if(!le||!re.consumable.test(le,{name:!0}))return;re.consumable.consume(ie.viewItem,{name:!0,classes:"image"});const ce=Si(re.convertItem(le,ie.modelCursor).modelRange.getItems());ce?(re.convertChildren(ie.viewItem,ce),re.updateConversionResult(ce,ie)):re.consumable.revert(ie.viewItem,{name:!0,classes:"image"})};return te=>{te.on("element:figure",e)}}(re))}_setupClipboardIntegration(){const te=this.editor,ne=te.model,ie=te.editing.view,re=te.plugins.get("ImageUtils"),le=te.plugins.get("ClipboardPipeline");this.listenTo(le,"inputTransformation",((le,ce)=>{const de=Array.from(ce.content.getChildren());let ue;if(!de.every(re.isInlineImageView))return;ue=ce.targetRanges?te.editing.mapper.toModelRange(ce.targetRanges[0]):ne.document.selection.getFirstRange();const me=ne.createSelection(ue);if("imageBlock"===z_(ne.schema,me)){const te=new Qu(ie.document),ne=de.map((ne=>te.createElement("figure",{class:"image"},ne)));ce.content=te.createDocumentFragment(ne)}})),this.listenTo(le,"contentInsertion",((te,ie)=>{"paste"===ie.method&&ne.change((te=>{const ne=te.createRangeIn(ie.content);for(const te of ne.getItems())te.is("element","imageBlock")&&re.setImageNaturalSizeAttributes(te)}))}))}}var tC=i(8879);Fo()(tC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),tC.Z.locals;class dv extends Hi{constructor(te,ne=[]){super(te),this.focusTracker=new Ti,this.keystrokes=new Ii,this._focusables=new Oi,this.children=this.createCollection(),this._focusCycler=new As({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const te of ne)this.children.add(te),this._focusables.add(te),te instanceof xr&&this._focusables.addMany(te.children);if(this._focusables.length>1)for(const te of this._focusables)hv(te)&&(te.focusCycler.on("forwardCycle",(te=>{this._focusCycler.focusNext(),te.stop()})),te.focusCycler.on("backwardCycle",(te=>{this._focusCycler.focusPrevious(),te.stop()})));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),n({view:this});for(const te of this._focusables)this.focusTracker.add(te.element);this.keystrokes.listenTo(this.element);const t=te=>te.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}function hv(te){return"focusCycler"in te}class uv extends Es{static get pluginName(){return"ImageInsertUI"}static get requires(){return[R_]}constructor(te){super(te),this._integrations=new Map,te.config.define("image.insert.integrations",["upload","assetManager","url"])}init(){const te=this.editor,ne=te.model.document.selection,ie=te.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(te.model.document,"change",(()=>{this.isImageSelected=ie.isImage(ne.getSelectedElement())}));const o=te=>this._createToolbarComponent(te);te.ui.componentFactory.add("insertImage",o),te.ui.componentFactory.add("imageInsert",o)}registerIntegration({name:te,observable:ne,buttonViewCreator:ie,formViewCreator:re,requiresForm:le}){this._integrations.has(te)&&_("image-insert-integration-exists",{name:te}),this._integrations.set(te,{observable:ne,buttonViewCreator:ie,formViewCreator:re,requiresForm:!!le})}_createToolbarComponent(te){const ne=this.editor,ie=te.t,re=this._prepareIntegrations();if(!re.length)return null;let le;const ce=re[0];if(1==re.length){if(!ce.requiresForm)return ce.buttonViewCreator(!0);le=ce.buttonViewCreator(!0)}else{const ne=ce.buttonViewCreator(!1);le=new lg(te,ne),le.tooltip=!0,le.bind("label").to(this,"isImageSelected",(te=>ie(te?"Replace image":"Insert image")))}const de=this.dropdownView=mg(te,le),ue=re.map((({observable:te})=>te));return de.bind("isEnabled").toMany(ue,"isEnabled",((...te)=>te.some((te=>te)))),de.once("change:isOpen",(()=>{const te=re.map((({formViewCreator:te})=>te(1==re.length))),ie=new dv(ne.locale,te);de.panelView.children.add(ie)})),de}_prepareIntegrations(){const te=this.editor.config.get("image.insert.integrations"),ne=[];if(!te.length)return _("image-insert-integrations-not-specified"),ne;for(const ie of te)this._integrations.has(ie)?ne.push(this._integrations.get(ie)):["upload","assetManager","url"].includes(ie)||_("image-insert-unknown-integration",{item:ie});return ne.length||_("image-insert-integrations-not-registered"),ne}}var nC=i(2430);Fo()(nC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),nC.Z.locals;class pv extends Es{static get requires(){return[av,sw,K_,uv]}static get pluginName(){return"ImageBlock"}}class fv extends Es{static get requires(){return[ev,nv,R_,sv,Ib]}static get pluginName(){return"ImageInlineEditing"}init(){const te=this.editor,ne=te.model.schema;ne.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),ne.addChildCheck(((te,ne)=>{if(te.endsWith("caption")&&"imageInline"===ne.name)return!1})),this._setupConversion(),te.plugins.has("ImageBlockEditing")&&(te.commands.add("imageTypeInline",new ov(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const te=this.editor,ne=te.t,ie=te.conversion,re=te.plugins.get("ImageUtils");ie.for("dataDowncast").elementToElement({model:"imageInline",view:(te,{writer:ne})=>ne.createEmptyElement("img")}),ie.for("editingDowncast").elementToStructure({model:"imageInline",view:(te,{writer:ie})=>re.toImageWidget(function(te){return te.createContainerElement("span",{class:"image-inline"},te.createEmptyElement("img"))}(ie),ie,ne("image widget"))}),ie.for("downcast").add(Q_(re,"imageInline","src")).add(Q_(re,"imageInline","alt")).add(Y_(re,"imageInline")),ie.for("upcast").elementToElement({view:N_(te,"imageInline"),model:(te,{writer:ne})=>ne.createElement("imageInline",te.hasAttribute("src")?{src:te.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const te=this.editor,ne=te.model,ie=te.editing.view,re=te.plugins.get("ImageUtils"),le=te.plugins.get("ClipboardPipeline");this.listenTo(le,"inputTransformation",((le,ce)=>{const de=Array.from(ce.content.getChildren());let ue;if(!de.every(re.isBlockImageView))return;ue=ce.targetRanges?te.editing.mapper.toModelRange(ce.targetRanges[0]):ne.document.selection.getFirstRange();const me=ne.createSelection(ue);if("imageInline"===z_(ne.schema,me)){const te=new Qu(ie.document),ne=de.map((ne=>1===ne.childCount?(Array.from(ne.getAttributes()).forEach((ie=>te.setAttribute(...ie,re.findViewImgElement(ne)))),ne.getChild(0)):ne));ce.content=te.createDocumentFragment(ne)}})),this.listenTo(le,"contentInsertion",((te,ie)=>{"paste"===ie.method&&ne.change((te=>{const ne=te.createRangeIn(ie.content);for(const te of ne.getItems())te.is("element","imageInline")&&re.setImageNaturalSizeAttributes(te)}))}))}}class kv extends Es{static get requires(){return[fv,sw,K_,uv]}static get pluginName(){return"ImageInline"}}var iC=i(2423);Fo()(iC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),iC.Z.locals;class Av extends(q()){constructor(){super();const te=new window.FileReader;this._reader=te,this._data=void 0,this.set("loaded",0),te.onprogress=te=>{this.loaded=te.loaded}}get error(){return this._reader.error}get data(){return this._data}read(te){const ne=this._reader;return this.total=te.size,new Promise(((ie,re)=>{ne.onload=()=>{const te=ne.result;this._data=te,ie(te)},ne.onerror=()=>{re("error")},ne.onabort=()=>{re("aborted")},this._reader.readAsDataURL(te)}))}abort(){this._reader.abort()}}class Cv extends Es{constructor(){super(...arguments),this.loaders=new Di,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[Um]}init(){this.loaders.on("change",(()=>this._updatePendingAction())),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((te,ne)=>ne?te/ne*100:0))}getLoader(te){return this._loadersMap.get(te)||null}createLoader(te){if(!this.createUploadAdapter)return _("filerepository-no-upload-adapter"),null;const ne=new _v(Promise.resolve(te),this.createUploadAdapter);return this.loaders.add(ne),this._loadersMap.set(te,ne),te instanceof Promise&&ne.file.then((te=>{this._loadersMap.set(te,ne)})).catch((()=>{})),ne.on("change:uploaded",(()=>{let te=0;for(const ne of this.loaders)te+=ne.uploaded;this.uploaded=te})),ne.on("change:uploadTotal",(()=>{let te=0;for(const ne of this.loaders)ne.uploadTotal&&(te+=ne.uploadTotal);this.uploadTotal=te})),ne}destroyLoader(te){const ne=te instanceof _v?te:this.getLoader(te);ne._destroy(),this.loaders.remove(ne),this._loadersMap.forEach(((te,ie)=>{te===ne&&this._loadersMap.delete(ie)}))}_updatePendingAction(){const te=this.editor.plugins.get(Um);if(this.loaders.length){if(!this._pendingAction){const ne=this.editor.t,n=te=>`${ne("Upload in progress")} ${parseInt(te)}%.`;this._pendingAction=te.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else te.remove(this._pendingAction),this._pendingAction=null}}class _v extends(q()){constructor(te,ne){super(),this.id=k(),this._filePromiseWrapper=this._createFilePromiseWrapper(te),this._adapter=ne(this),this._reader=new Av,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((te,ne)=>ne?te/ne*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((te=>this._filePromiseWrapper?te:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new C("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((te=>this._reader.read(te))).then((te=>{if("reading"!==this.status)throw this.status;return this.status="idle",te})).catch((te=>{if("aborted"===te)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:te}))}upload(){if("idle"!=this.status)throw new C("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((te=>(this.uploadResponse=te,this.status="idle",te))).catch((te=>{if("aborted"===this.status)throw"aborted";throw this.status="error",te}))}abort(){const te=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==te?this._reader.abort():"uploading"==te&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((()=>{})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(te){const ne={};return ne.promise=new Promise(((ie,re)=>{ne.rejecter=re,ne.isFulfilled=!1,te.then((te=>{ne.isFulfilled=!0,ie(te)})).catch((te=>{ne.isFulfilled=!0,re(te)}))})),ne}}class vv extends br{constructor(te){super(te),this.buttonView=this,this._fileInputView=new yv(te),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",(()=>{this._fileInputView.open()})),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}class yv extends Hi{constructor(te){super(te),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const ne=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:ne.to("acceptedType"),multiple:ne.to("allowMultipleFiles")},on:{change:ne.to((()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""}))}})}open(){this.element.click()}}class xv{constructor(te){this.loader=te}upload(){return new Promise(((te,ne)=>{const ie=this.reader=new window.FileReader;ie.addEventListener("load",(()=>{te({default:ie.result})})),ie.addEventListener("error",(te=>{ne(te)})),ie.addEventListener("abort",(()=>{ne()})),this.loader.file.then((te=>{ie.readAsDataURL(te)}))}))}abort(){this.reader.abort()}}function Ev(te){const ne=te.map((te=>te.replace("+","\\+")));return new RegExp(`^image\\/(${ne.join("|")})$`)}function Dv(te){return new Promise(((ne,ie)=>{const re=te.getAttribute("src");fetch(re).then((te=>te.blob())).then((te=>{const ie=Sv(te,re),le=ie.replace("image/",""),ce=new File([te],`image.${le}`,{type:ie});ne(ce)})).catch((te=>te&&"TypeError"===te.name?function(te){return function(te){return new Promise(((ne,ie)=>{const re=go.document.createElement("img");re.addEventListener("load",(()=>{const te=go.document.createElement("canvas");te.width=re.width,te.height=re.height,te.getContext("2d").drawImage(re,0,0),te.toBlob((te=>te?ne(te):ie()))})),re.addEventListener("error",(()=>ie())),re.src=te}))}(te).then((ne=>{const ie=Sv(ne,te),re=ie.replace("image/","");return new File([ne],`image.${re}`,{type:ie})}))}(re).then(ne).catch(ie):ie(te)))}))}function Sv(te,ne){return te.type?te.type:ne.match(/data:(image\/\w+);base64/)?ne.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class Tv extends Es{static get pluginName(){return"ImageUploadUI"}init(){const te=this.editor,ne=te.t,n=ie=>{const re=new vv(ie),le=te.commands.get("uploadImage"),ce=te.config.get("image.upload.types"),de=Ev(ce);return re.set({acceptedType:ce.map((te=>`image/${te}`)).join(","),allowMultipleFiles:!0,label:ne("Upload image from computer"),icon:Dc.imageUpload,tooltip:!0}),re.bind("isEnabled").to(le),re.on("done",((ne,ie)=>{const re=Array.from(ie).filter((te=>de.test(te.type)));re.length&&(te.execute("uploadImage",{file:re}),te.editing.view.focus())})),re};if(te.ui.componentFactory.add("uploadImage",n),te.ui.componentFactory.add("imageUpload",n),te.plugins.has("ImageInsertUI")){const ie=te.plugins.get("ImageInsertUI"),re=te.commands.get("uploadImage");ie.registerIntegration({name:"upload",observable:re,buttonViewCreator:()=>{const re=te.ui.componentFactory.create("uploadImage");return re.bind("label").to(ie,"isImageSelected",(te=>ne(te?"Replace image from computer":"Upload image from computer"))),re},formViewCreator:()=>{const re=te.ui.componentFactory.create("uploadImage");return re.withText=!0,re.bind("label").to(ie,"isImageSelected",(te=>ne(te?"Replace from computer":"Upload from computer"))),re.on("execute",(()=>{ie.dropdownView.isOpen=!1})),re}})}}}var oC=i(2926);Fo()(oC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),oC.Z.locals;var rC=i(1547);Fo()(rC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),rC.Z.locals;var aC=i(6618);Fo()(aC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),aC.Z.locals;class Lv extends Es{static get pluginName(){return"ImageUploadProgress"}constructor(te){super(te),this.uploadStatusChange=(te,ne,ie)=>{const re=this.editor,le=ne.item,ce=le.getAttribute("uploadId");if(!ie.consumable.consume(ne.item,te.name))return;const de=re.plugins.get("ImageUtils"),ue=re.plugins.get(Cv),me=ce?ne.attributeNewValue:null,ge=this.placeholder,fe=re.editing.mapper.toViewElement(le),_e=ie.writer;if("reading"==me)return Ov(fe,_e),void Rv(de,ge,fe,_e);if("uploading"==me){const te=ue.loaders.get(ce);return Ov(fe,_e),void(te?(Vv(fe,_e),function(te,ne,ie,re){const le=function(te){const ne=te.createUIElement("div",{class:"ck-progress-bar"});return te.setCustomProperty("progressBar",!0,ne),ne}(ne);ne.insert(ne.createPositionAt(te,"end"),le),ie.on("change:uploadedPercent",((te,ne,ie)=>{re.change((te=>{te.setStyle("width",ie+"%",le)}))}))}(fe,_e,te,re.editing.view),function(te,ne,ie,re){if(re.data){const le=te.findViewImgElement(ne);ie.setAttribute("src",re.data,le)}}(de,fe,_e,te)):Rv(de,ge,fe,_e))}"complete"==me&&ue.loaders.get(ce)&&function(te,ne,ie){const re=ne.createUIElement("div",{class:"ck-image-upload-complete-icon"});ne.insert(ne.createPositionAt(te,"end"),re),setTimeout((()=>{ie.change((te=>te.remove(te.createRangeOn(re))))}),3e3)}(fe,_e,re.editing.view),function(te,ne){jv(te,ne,"progressBar")}(fe,_e),Vv(fe,_e),function(te,ne){ne.removeClass("ck-appear",te)}(fe,_e)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const te=this.editor;te.plugins.has("ImageBlockEditing")&&te.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),te.plugins.has("ImageInlineEditing")&&te.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function Ov(te,ne){te.hasClass("ck-appear")||ne.addClass("ck-appear",te)}function Rv(te,ne,ie,re){ie.hasClass("ck-image-upload-placeholder")||re.addClass("ck-image-upload-placeholder",ie);const le=te.findViewImgElement(ie);le.getAttribute("src")!==ne&&re.setAttribute("src",ne,le),Fv(ie,"placeholder")||re.insert(re.createPositionAfter(le),function(te){const ne=te.createUIElement("div",{class:"ck-upload-placeholder-loader"});return te.setCustomProperty("placeholder",!0,ne),ne}(re))}function Vv(te,ne){te.hasClass("ck-image-upload-placeholder")&&ne.removeClass("ck-image-upload-placeholder",te),jv(te,ne,"placeholder")}function Fv(te,ne){for(const ie of te.getChildren())if(ie.getCustomProperty(ne))return ie}function jv(te,ne,ie){const re=Fv(te,ie);re&&ne.remove(ne.createRangeOn(re))}class Hv extends Ss{refresh(){const te=this.editor,ne=te.plugins.get("ImageUtils"),ie=te.model.document.selection.getSelectedElement();this.isEnabled=ne.isImageAllowed()||ne.isImage(ie)}execute(te){const ne=_i(te.file),ie=this.editor.model.document.selection,re=this.editor.plugins.get("ImageUtils"),le=Object.fromEntries(ie.getAttributes());ne.forEach(((te,ne)=>{const ce=ie.getSelectedElement();if(ne&&ce&&re.isImage(ce)){const ne=this.editor.model.createPositionAfter(ce);this._uploadImage(te,le,ne)}else this._uploadImage(te,le)}))}_uploadImage(te,ne,ie){const re=this.editor,le=re.plugins.get(Cv).createLoader(te),ce=re.plugins.get("ImageUtils");le&&ce.insertImage({...ne,uploadId:le.id},ie)}}class Uv extends Es{static get requires(){return[Cv,bf,Ib,R_]}static get pluginName(){return"ImageUploadEditing"}constructor(te){super(te),te.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const te=this.editor,ne=te.model.document,ie=te.conversion,re=te.plugins.get(Cv),le=te.plugins.get("ImageUtils"),ce=te.plugins.get("ClipboardPipeline"),de=Ev(te.config.get("image.upload.types")),ue=new Hv(te);te.commands.add("uploadImage",ue),te.commands.add("imageUpload",ue),ie.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(te.editing.view.document,"clipboardInput",((ne,ie)=>{if(re=ie.dataTransfer,Array.from(re.types).includes("text/html")&&""!==re.getData("text/html"))return;var re;const le=Array.from(ie.dataTransfer.files).filter((te=>!!te&&de.test(te.type)));le.length&&(ne.stop(),te.model.change((ne=>{ie.targetRanges&&ne.setSelection(ie.targetRanges.map((ne=>te.editing.mapper.toModelRange(ne)))),te.execute("uploadImage",{file:le})})))})),this.listenTo(ce,"inputTransformation",((ne,ie)=>{const ce=Array.from(te.editing.view.createRangeIn(ie.content)).map((te=>te.item)).filter((te=>function(te,ne){return!(!te.isInlineImageView(ne)||!ne.getAttribute("src")||!ne.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!ne.getAttribute("src").match(/^blob:/g))}(le,te)&&!te.getAttribute("uploadProcessed"))).map((te=>({promise:Dv(te),imageElement:te})));if(!ce.length)return;const de=new Qu(te.editing.view.document);for(const te of ce){de.setAttribute("uploadProcessed",!0,te.imageElement);const ne=re.createLoader(te.promise);ne&&(de.setAttribute("src","",te.imageElement),de.setAttribute("uploadId",ne.id,te.imageElement))}})),te.editing.view.document.on("dragover",((te,ne)=>{ne.preventDefault()})),ne.on("change",(()=>{const ie=ne.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),le=new Set;for(const ne of ie)if("insert"==ne.type&&"$text"!=ne.name){const ie=ne.position.nodeAfter,ce="$graveyard"==ne.position.root.rootName;for(const ne of Wv(te,ie)){const te=ne.getAttribute("uploadId");if(!te)continue;const ie=re.loaders.get(te);ie&&(ce?le.has(te)||ie.abort():(le.add(te),this._uploadImageElements.set(te,ne),"idle"==ie.status&&this._readAndUpload(ie)))}}})),this.on("uploadComplete",((te,{imageElement:ne,data:ie})=>{const re=ie.urls?ie.urls:ie;this.editor.model.change((te=>{te.setAttribute("src",re.default,ne),this._parseAndSetSrcsetAttributeOnImage(re,ne,te),le.setImageNaturalSizeAttributes(ne)}))}),{priority:"low"})}afterInit(){const te=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&te.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&te.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(te){const ne=this.editor,ie=ne.model,re=ne.locale.t,ce=ne.plugins.get(Cv),de=ne.plugins.get(bf),ue=ne.plugins.get("ImageUtils"),me=this._uploadImageElements;return ie.enqueueChange({isUndoable:!1},(ne=>{ne.setAttribute("uploadStatus","reading",me.get(te.id))})),te.read().then((()=>{const re=te.upload(),ce=me.get(te.id);if(le.isSafari){const te=ne.editing.mapper.toViewElement(ce),ie=ue.findViewImgElement(te);ne.editing.view.once("render",(()=>{if(!ie.parent)return;const te=ne.editing.view.domConverter.mapViewToDom(ie.parent);if(!te)return;const re=te.style.display;te.style.display="none",te._ckHack=te.offsetHeight,te.style.display=re}))}return ie.enqueueChange({isUndoable:!1},(te=>{te.setAttribute("uploadStatus","uploading",ce)})),re})).then((ne=>{ie.enqueueChange({isUndoable:!1},(ie=>{const re=me.get(te.id);ie.setAttribute("uploadStatus","complete",re),this.fire("uploadComplete",{data:ne,imageElement:re})})),c()})).catch((ne=>{if("error"!==te.status&&"aborted"!==te.status)throw ne;"error"==te.status&&ne&&de.showWarning(ne,{title:re("Upload failed"),namespace:"upload"}),ie.enqueueChange({isUndoable:!1},(ne=>{ne.remove(me.get(te.id))})),c()}));function c(){ie.enqueueChange({isUndoable:!1},(ne=>{const ie=me.get(te.id);ne.removeAttribute("uploadId",ie),ne.removeAttribute("uploadStatus",ie),me.delete(te.id)})),ce.destroyLoader(te)}}_parseAndSetSrcsetAttributeOnImage(te,ne,ie){let re=0;const le=Object.keys(te).filter((te=>{const ne=parseInt(te,10);if(!isNaN(ne))return re=Math.max(re,ne),!0})).map((ne=>`${te[ne]} ${ne}w`)).join(", ");if(""!=le){const te={srcset:le};ne.hasAttribute("width")||ne.hasAttribute("height")||(te.width=re),ie.setAttributes(te,ne)}}}function Wv(te,ne){const ie=te.plugins.get("ImageUtils");return Array.from(te.model.createRangeOn(ne)).filter((te=>ie.isImage(te.item))).map((te=>te.item))}class Gv extends Ss{refresh(){const te=this.editor,ne=te.plugins.get("ImageUtils").getClosestSelectedImageElement(te.model.document.selection);this.isEnabled=!!ne,ne&&ne.hasAttribute("resizedWidth")?this.value={width:ne.getAttribute("resizedWidth"),height:null}:this.value=null}execute(te){const ne=this.editor,ie=ne.model,re=ne.plugins.get("ImageUtils"),le=re.getClosestSelectedImageElement(ie.document.selection);this.value={width:te.width,height:null},le&&ie.change((ne=>{ne.setAttribute("resizedWidth",te.width,le),ne.removeAttribute("resizedHeight",le),re.setImageNaturalSizeAttributes(le)}))}}class qv extends Es{static get requires(){return[R_]}static get pluginName(){return"ImageResizeEditing"}constructor(te){super(te),te.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const te=this.editor,ne=new Gv(te);this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline"),te.commands.add("resizeImage",ne),te.commands.add("imageResize",ne)}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["resizedWidth","resizedHeight"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["resizedWidth","resizedHeight"]})}_registerConverters(te){const ne=this.editor,ie=ne.plugins.get("ImageUtils");ne.conversion.for("downcast").add((ne=>ne.on(`attribute:resizedWidth:${te}`,((te,ne,ie)=>{if(!ie.consumable.consume(ne.item,te.name))return;const re=ie.writer,le=ie.mapper.toViewElement(ne.item);null!==ne.attributeNewValue?(re.setStyle("width",ne.attributeNewValue,le),re.addClass("image_resized",le)):(re.removeStyle("width",le),re.removeClass("image_resized",le))})))),ne.conversion.for("dataDowncast").attributeToAttribute({model:{name:te,key:"resizedHeight"},view:te=>({key:"style",value:{height:te}})}),ne.conversion.for("editingDowncast").add((ne=>ne.on(`attribute:resizedHeight:${te}`,((ne,re,le)=>{if(!le.consumable.consume(re.item,ne.name))return;const ce=le.writer,de=le.mapper.toViewElement(re.item),ue="imageInline"===te?ie.findViewImgElement(de):de;null!==re.attributeNewValue?ce.setStyle("height",re.attributeNewValue,ue):ce.removeStyle("height",ue)})))),ne.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===te?"figure":"img",styles:{width:/.+/}},model:{key:"resizedWidth",value:te=>L_(te)?null:te.getStyle("width")}}),ne.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===te?"figure":"img",styles:{height:/.+/}},model:{key:"resizedHeight",value:te=>L_(te)?null:te.getStyle("height")}})}}const sC={small:Dc.objectSizeSmall,medium:Dc.objectSizeMedium,large:Dc.objectSizeLarge,original:Dc.objectSizeFull};class $v extends Es{static get requires(){return[qv]}static get pluginName(){return"ImageResizeButtons"}constructor(te){super(te),this._resizeUnit=te.config.get("image.resizeUnit")}init(){const te=this.editor,ne=te.config.get("image.resizeOptions"),ie=te.commands.get("resizeImage");this.bind("isEnabled").to(ie);for(const te of ne)this._registerImageResizeButton(te);this._registerImageResizeDropdown(ne)}_registerImageResizeButton(te){const ne=this.editor,{name:ie,value:re,icon:le}=te,ce=re?re+this._resizeUnit:null;ne.ui.componentFactory.add(ie,(ie=>{const re=new br(ie),de=ne.commands.get("resizeImage"),ue=this._getOptionLabelValue(te,!0);if(!sC[le])throw new C("imageresizebuttons-missing-icon",ne,te);return re.set({label:ue,icon:sC[le],tooltip:ue,isToggleable:!0}),re.bind("isEnabled").to(this),re.bind("isOn").to(de,"value",Kv(ce)),this.listenTo(re,"execute",(()=>{ne.execute("resizeImage",{width:ce})})),re}))}_registerImageResizeDropdown(te){const ne=this.editor,ie=ne.t,re=te.find((te=>!te.value)),i=le=>{const ce=ne.commands.get("resizeImage"),de=mg(le,ws),ue=de.buttonView,me=ie("Resize image");return ue.set({tooltip:me,commandValue:re.value,icon:sC.medium,isToggleable:!0,label:this._getOptionLabelValue(re),withText:!0,class:"ck-resize-image-button",ariaLabel:me,ariaLabelledBy:void 0}),ue.bind("label").to(ce,"value",(te=>te&&te.width?te.width:this._getOptionLabelValue(re))),de.bind("isEnabled").to(this),fg(de,(()=>this._getResizeDropdownListItemDefinitions(te,ce)),{ariaLabel:ie("Image resize list"),role:"menu"}),this.listenTo(de,"execute",(te=>{ne.execute(te.source.commandName,{width:te.source.commandValue}),ne.editing.view.focus()})),de};ne.ui.componentFactory.add("resizeImage",i),ne.ui.componentFactory.add("imageResize",i)}_getOptionLabelValue(te,ne=!1){const ie=this.editor.t;return te.label?te.label:ne?te.value?ie("Resize image to %0",te.value+this._resizeUnit):ie("Resize image to the original size"):te.value?te.value+this._resizeUnit:ie("Original")}_getResizeDropdownListItemDefinitions(te,ne){const ie=new Di;return te.map((te=>{const re=te.value?te.value+this._resizeUnit:null,le={type:"button",model:new wf({commandName:"resizeImage",commandValue:re,label:this._getOptionLabelValue(te),role:"menuitemradio",withText:!0,icon:null})};le.model.bind("isOn").to(ne,"value",Kv(re)),ie.add(le)})),ie}}function Kv(te){return ne=>null===te&&ne===te||null!==ne&&ne.width===te}const lC="image_resized";class Qv extends Es{static get requires(){return[kw,R_]}static get pluginName(){return"ImageResizeHandles"}init(){const te=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(te),this._setupResizerCreator()}_setupResizerCreator(){const te=this.editor,ne=te.editing.view,ie=te.plugins.get("ImageUtils");ne.addObserver(J_),this.listenTo(ne.document,"imageLoaded",((re,le)=>{if(!le.target.matches("figure.image.ck-widget > img,figure.image.ck-widget > picture > img,figure.image.ck-widget > a > img,figure.image.ck-widget > a > picture > img,span.image-inline.ck-widget > img,span.image-inline.ck-widget > picture > img"))return;const ce=te.editing.view.domConverter,de=ce.domToView(le.target),ue=ie.getImageWidgetFromImageView(de);let me=this.editor.plugins.get(kw).getResizerByViewElement(ue);if(me)return void me.redraw();const ge=te.editing.mapper,fe=ge.toModelElement(ue);me=te.plugins.get(kw).attachTo({unit:te.config.get("image.resizeUnit"),modelElement:fe,viewElement:ue,editor:te,getHandleHost:te=>te.querySelector("img"),getResizeHost:()=>ce.mapViewToDom(ge.toViewElement(fe.parent)),isCentered(){const te=fe.getAttribute("imageStyle");return!te||"block"==te||"alignCenter"==te},onCommit(ie){ne.change((te=>{te.removeClass(lC,ue)})),te.execute("resizeImage",{width:ie})}}),me.on("updateSize",(()=>{ue.hasClass(lC)||ne.change((te=>{te.addClass(lC,ue)}));const te="imageInline"===fe.name?de:ue;te.getStyle("height")&&ne.change((ne=>{ne.removeStyle("height",te)}))})),me.bind("isEnabled").to(this)}))}}var cC=i(2400);Fo()(cC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cC.Z.locals;class ty extends Ss{constructor(te,ne){super(te),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(ne.map((te=>{if(te.isDefault)for(const ne of te.modelElements)this._defaultStyles[ne]=te.name;return[te.name,te]})))}refresh(){const te=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!te,this.isEnabled?te.hasAttribute("imageStyle")?this.value=te.getAttribute("imageStyle"):this.value=this._defaultStyles[te.name]:this.value=!1}execute(te={}){const ne=this.editor,ie=ne.model,re=ne.plugins.get("ImageUtils");ie.change((ne=>{const le=te.value,{setImageSizes:ce=!0}=te;let de=re.getClosestSelectedImageElement(ie.document.selection);le&&this.shouldConvertImageType(le,de)&&(this.editor.execute(re.isBlockImage(de)?"imageTypeInline":"imageTypeBlock",{setImageSizes:ce}),de=re.getClosestSelectedImageElement(ie.document.selection)),!le||this._styles.get(le).isDefault?ne.removeAttribute("imageStyle",de):ne.setAttribute("imageStyle",le,de),ce&&re.setImageNaturalSizeAttributes(de)}))}shouldConvertImageType(te,ne){return!this._styles.get(te).modelElements.includes(ne.name)}}const{objectFullWidth:dC,objectInline:uC,objectLeft:pC,objectRight:hC,objectCenter:mC,objectBlockLeft:gC,objectBlockRight:fC}=Dc,bC={get inline(){return{name:"inline",title:"In line",icon:uC,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:pC,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:gC,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:mC,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:hC,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:fC,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:mC,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:hC,modelElements:["imageBlock"],className:"image-style-side"}}},CC={full:dC,left:gC,right:fC,center:mC,inlineLeft:pC,inlineRight:hC,inline:uC},vC=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function hy(te){_("image-style-configuration-definition-invalid",te)}const yC={normalizeStyles:function(te){return(te.configuredStyles.options||[]).map((te=>function(te){return te="string"==typeof te?bC[te]?{...bC[te]}:{name:te}:function(te,ne){const ie={...ne};for(const re in te)Object.prototype.hasOwnProperty.call(ne,re)||(ie[re]=te[re]);return ie}(bC[te.name],te),"string"==typeof te.icon&&(te.icon=CC[te.icon]||te.icon),te}(te))).filter((ne=>function(te,{isBlockPluginLoaded:ne,isInlinePluginLoaded:ie}){const{modelElements:re,name:le}=te;if(!(re&&re.length&&le))return hy({style:te}),!1;{const le=[ne?"imageBlock":null,ie?"imageInline":null];if(!re.some((te=>le.includes(te))))return _("image-style-missing-dependency",{style:te,missingPlugins:re.map((te=>"imageBlock"===te?"ImageBlockEditing":"ImageInlineEditing"))}),!1}return!0}(ne,te)))},getDefaultStylesConfiguration:function(te,ne){return te&&ne?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:te?{options:["block","side"]}:ne?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(te){return te.has("ImageBlockEditing")&&te.has("ImageInlineEditing")?[...vC]:[]},warnInvalidStyle:hy,DEFAULT_OPTIONS:bC,DEFAULT_ICONS:CC,DEFAULT_DROPDOWN_DEFINITIONS:vC};function my(te,ne){for(const ie of ne)if(ie.name===te)return ie}class gy extends Es{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[R_]}init(){const{normalizeStyles:te,getDefaultStylesConfiguration:ne}=yC,ie=this.editor,re=ie.plugins.has("ImageBlockEditing"),le=ie.plugins.has("ImageInlineEditing");ie.config.define("image.styles",ne(re,le)),this.normalizedStyles=te({configuredStyles:ie.config.get("image.styles"),isBlockPluginLoaded:re,isInlinePluginLoaded:le}),this._setupConversion(re,le),this._setupPostFixer(),ie.commands.add("imageStyle",new ty(ie,this.normalizedStyles))}_setupConversion(te,ne){const ie=this.editor,re=ie.model.schema,le=(ce=this.normalizedStyles,(te,ne,ie)=>{if(!ie.consumable.consume(ne.item,te.name))return;const re=my(ne.attributeNewValue,ce),le=my(ne.attributeOldValue,ce),de=ie.mapper.toViewElement(ne.item),ue=ie.writer;le&&ue.removeClass(le.className,de),re&&ue.addClass(re.className,de)});var ce;const de=function(te){const ne={imageInline:te.filter((te=>!te.isDefault&&te.modelElements.includes("imageInline"))),imageBlock:te.filter((te=>!te.isDefault&&te.modelElements.includes("imageBlock")))};return(te,ie,re)=>{if(!ie.modelRange)return;const le=ie.viewItem,ce=Si(ie.modelRange.getItems());if(ce&&re.schema.checkAttribute(ce,"imageStyle"))for(const te of ne[ce.name])re.consumable.consume(le,{classes:te.className})&&re.writer.setAttribute("imageStyle",te.name,ce)}}(this.normalizedStyles);ie.editing.downcastDispatcher.on("attribute:imageStyle",le),ie.data.downcastDispatcher.on("attribute:imageStyle",le),te&&(re.extend("imageBlock",{allowAttributes:"imageStyle"}),ie.data.upcastDispatcher.on("element:figure",de,{priority:"low"})),ne&&(re.extend("imageInline",{allowAttributes:"imageStyle"}),ie.data.upcastDispatcher.on("element:img",de,{priority:"low"}))}_setupPostFixer(){const te=this.editor,ne=te.model.document,ie=te.plugins.get(R_),re=new Map(this.normalizedStyles.map((te=>[te.name,te])));ne.registerPostFixer((te=>{let le=!1;for(const ce of ne.differ.getChanges())if("insert"==ce.type||"attribute"==ce.type&&"imageStyle"==ce.attributeKey){let ne="insert"==ce.type?ce.position.nodeAfter:ce.range.start.nodeAfter;if(ne&&ne.is("element","paragraph")&&ne.childCount>0&&(ne=ne.getChild(0)),!ie.isImage(ne))continue;const de=ne.getAttribute("imageStyle");if(!de)continue;const ue=re.get(de);ue&&ue.modelElements.includes(ne.name)||(te.removeAttribute("imageStyle",ne),le=!0)}return le}))}}var wC=i(3534);Fo()(wC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),wC.Z.locals;class ky extends Es{static get requires(){return[gy]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const te=this.editor.t;return{"Wrap text":te("Wrap text"),"Break text":te("Break text"),"In line":te("In line"),"Full size image":te("Full size image"),"Side image":te("Side image"),"Left aligned image":te("Left aligned image"),"Centered image":te("Centered image"),"Right aligned image":te("Right aligned image")}}init(){const te=this.editor.plugins,ne=this.editor.config.get("image.toolbar")||[],ie=by(te.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const te of ie)this._createButton(te);const re=by([...ne.filter(V),...yC.getDefaultDropdownDefinitions(te)],this.localizedDefaultStylesTitles);for(const te of re)this._createDropdown(te,ie)}_createDropdown(te,ne){const ie=this.editor.ui.componentFactory;ie.add(te.name,(re=>{let le;const{defaultItem:ce,items:de,title:ue}=te,me=de.filter((te=>ne.find((({name:ne})=>wy(ne)===te)))).map((te=>{const ne=ie.create(te);return te===ce&&(le=ne),ne}));de.length!==me.length&&yC.warnInvalidStyle({dropdown:te});const ge=mg(re,lg),fe=ge.buttonView,_e=fe.arrowView;return gg(ge,me,{enableActiveItemFocusOnDropdownOpen:!0}),fe.set({label:Ay(ue,le.label),class:null,tooltip:!0}),_e.unbind("label"),_e.set({label:ue}),fe.bind("icon").toMany(me,"isOn",((...te)=>{const ne=te.findIndex(Ia);return ne<0?le.icon:me[ne].icon})),fe.bind("label").toMany(me,"isOn",((...te)=>{const ne=te.findIndex(Ia);return Ay(ue,ne<0?le.label:me[ne].label)})),fe.bind("isOn").toMany(me,"isOn",((...te)=>te.some(Ia))),fe.bind("class").toMany(me,"isOn",((...te)=>te.some(Ia)?"ck-splitbutton_flatten":void 0)),fe.on("execute",(()=>{me.some((({isOn:te})=>te))?ge.isOpen=!ge.isOpen:le.fire("execute")})),ge.bind("isEnabled").toMany(me,"isEnabled",((...te)=>te.some(Ia))),this.listenTo(ge,"execute",(()=>{this.editor.editing.view.focus()})),ge}))}_createButton(te){const ne=te.name;this.editor.ui.componentFactory.add(wy(ne),(ie=>{const re=this.editor.commands.get("imageStyle"),le=new br(ie);return le.set({label:te.title,icon:te.icon,tooltip:!0,isToggleable:!0}),le.bind("isEnabled").to(re,"isEnabled"),le.bind("isOn").to(re,"value",(te=>te===ne)),le.on("execute",this._executeCommand.bind(this,ne)),le}))}_executeCommand(te){this.editor.execute("imageStyle",{value:te}),this.editor.editing.view.focus()}}function by(te,ne){for(const ie of te)ne[ie.title]&&(ie.title=ne[ie.title]);return te}function wy(te){return`imageStyle:${te}`}function Ay(te,ne){return(te?te+": ":"")+ne}class Cy extends Es{static get pluginName(){return"IndentEditing"}init(){const te=this.editor;te.commands.add("indent",new Is(te)),te.commands.add("outdent",new Is(te))}}class _y extends Es{static get pluginName(){return"IndentUI"}init(){const te=this.editor,ne=te.locale,ie=te.t,re="ltr"==ne.uiLanguageDirection?Dc.indent:Dc.outdent,le="ltr"==ne.uiLanguageDirection?Dc.outdent:Dc.indent;this._defineButton("indent",ie("Increase indent"),re),this._defineButton("outdent",ie("Decrease indent"),le)}_defineButton(te,ne,ie){const re=this.editor;re.ui.componentFactory.add(te,(le=>{const ce=re.commands.get(te),de=new br(le);return de.set({label:ne,icon:ie,tooltip:!0}),de.bind("isEnabled").to(ce,"isEnabled"),this.listenTo(de,"execute",(()=>{re.execute(te),re.editing.view.focus()})),de}))}}class vy extends Ss{constructor(te,ne){super(te),this._indentBehavior=ne}refresh(){const te=Si(this.editor.model.document.selection.getSelectedBlocks());te&&this._isIndentationChangeAllowed(te)?this.isEnabled=this._indentBehavior.checkEnabled(te.getAttribute("blockIndent")):this.isEnabled=!1}execute(){const te=this.editor.model,ne=this._getBlocksToChange();te.change((te=>{for(const ie of ne){const ne=ie.getAttribute("blockIndent"),re=this._indentBehavior.getNextIndent(ne);re?te.setAttribute("blockIndent",re,ie):te.removeAttribute("blockIndent",ie)}}))}_getBlocksToChange(){const te=this.editor.model.document.selection;return Array.from(te.getSelectedBlocks()).filter((te=>this._isIndentationChangeAllowed(te)))}_isIndentationChangeAllowed(te){const ne=this.editor;return!(!ne.model.schema.checkAttribute(te,"blockIndent")||ne.plugins.has("ListUtils")&&this._indentBehavior.isForward&&ne.plugins.get("ListUtils").isListItemBlock(te))}}class yy{constructor(te){this.isForward="forward"===te.direction,this.offset=te.offset,this.unit=te.unit}checkEnabled(te){const ne=parseFloat(te||"0");return this.isForward||ne>0}getNextIndent(te){const ne=parseFloat(te||"0");if(te&&!te.endsWith(this.unit))return this.isForward?this.offset+this.unit:void 0;const ie=ne+(this.isForward?this.offset:-this.offset);return ie>0?ie+this.unit:void 0}}class xy{constructor(te){this.isForward="forward"===te.direction,this.classes=te.classes}checkEnabled(te){const ne=this.classes.indexOf(te);return this.isForward?ne<this.classes.length-1:ne>=0}getNextIndent(te){const ne=this.classes.indexOf(te),ie=this.isForward?1:-1;return this.classes[ne+ie]}}const AC=["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"];class Dy{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(te){Array.isArray(te)?te.forEach((te=>this._definitions.add(te))):this._definitions.add(te)}getDispatcher(){return te=>{te.on("attribute:linkHref",((te,ne,ie)=>{if(!ie.consumable.test(ne.item,"attribute:linkHref"))return;if(!ne.item.is("selection")&&!ie.schema.isInline(ne.item))return;const re=ie.writer,le=re.document.selection;for(const te of this._definitions){const ce=re.createAttributeElement("a",te.attributes,{priority:5});te.classes&&re.addClass(te.classes,ce);for(const ne in te.styles)re.setStyle(ne,te.styles[ne],ce);re.setCustomProperty("link",!0,ce),te.callback(ne.attributeNewValue)?ne.item.is("selection")?re.wrap(le.getFirstRange(),ce):re.wrap(ie.mapper.toViewRange(ne.range),ce):re.unwrap(ie.mapper.toViewRange(ne.range),ce)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return te=>{te.on("attribute:linkHref:imageBlock",((te,ne,{writer:ie,mapper:re})=>{const le=re.toViewElement(ne.item),ce=Array.from(le.getChildren()).find((te=>te.is("element","a")));for(const te of this._definitions){const re=Mi(te.attributes);if(te.callback(ne.attributeNewValue)){for(const[te,ne]of re)"class"===te?ie.addClass(ne,ce):ie.setAttribute(te,ne,ce);te.classes&&ie.addClass(te.classes,ce);for(const ne in te.styles)ie.setStyle(ne,te.styles[ne],ce)}else{for(const[te,ne]of re)"class"===te?ie.removeClass(ne,ce):ie.removeAttribute(te,ce);te.classes&&ie.removeClass(te.classes,ce);for(const ne in te.styles)ie.removeStyle(ne,ce)}}}))}}}const IC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,SC=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,TC=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,DC=/^((\w+:(\/{2,})?)|(\W))/i,xC="Ctrl+K";function Ny(te,{writer:ne}){const ie=ne.createAttributeElement("a",{href:te},{priority:5});return ne.setCustomProperty("link",!0,ie),ie}function zy(te){const ne=String(te);return function(te){return!!te.replace(IC,"").match(SC)}(ne)?ne:"#"}function Py(te,ne){return!!te&&ne.checkAttribute(te.name,"linkHref")}function Ly(te,ne){const ie=(re=te,TC.test(re)?"mailto:":ne);var re;const le=!!ie&&!Oy(te);return te&&le?ie+te:te}function Oy(te){return DC.test(te)}function Ry(te){window.open(te,"_blank","noopener")}class Vy extends Ss{constructor(){super(...arguments),this.manualDecorators=new Di,this.automaticDecorators=new Dy}restoreManualDecoratorStates(){for(const te of this.manualDecorators)te.value=this._getDecoratorStateFromModel(te.id)}refresh(){const te=this.editor.model,ne=te.document.selection,ie=ne.getSelectedElement()||Si(ne.getSelectedBlocks());Py(ie,te.schema)?(this.value=ie.getAttribute("linkHref"),this.isEnabled=te.schema.checkAttribute(ie,"linkHref")):(this.value=ne.getAttribute("linkHref"),this.isEnabled=te.schema.checkAttributeInSelection(ne,"linkHref"));for(const te of this.manualDecorators)te.value=this._getDecoratorStateFromModel(te.id)}execute(te,ne={}){const ie=this.editor.model,re=ie.document.selection,le=[],ce=[];for(const te in ne)ne[te]?le.push(te):ce.push(te);ie.change((ne=>{if(re.isCollapsed){const de=re.getFirstPosition();if(re.hasAttribute("linkHref")){const ue=Fy(re);let me=Xk(de,"linkHref",re.getAttribute("linkHref"),ie);re.getAttribute("linkHref")===ue&&(me=this._updateLinkContent(ie,ne,me,te)),ne.setAttribute("linkHref",te,me),le.forEach((te=>{ne.setAttribute(te,!0,me)})),ce.forEach((te=>{ne.removeAttribute(te,me)})),ne.setSelection(ne.createPositionAfter(me.end.nodeBefore))}else if(""!==te){const ce=Mi(re.getAttributes());ce.set("linkHref",te),le.forEach((te=>{ce.set(te,!0)}));const{end:ue}=ie.insertContent(ne.createText(te,ce),de);ne.setSelection(ue)}["linkHref",...le,...ce].forEach((te=>{ne.removeSelectionAttribute(te)}))}else{const de=ie.schema.getValidRanges(re.getRanges(),"linkHref"),ue=[];for(const te of re.getSelectedBlocks())ie.schema.checkAttribute(te,"linkHref")&&ue.push(ne.createRangeOn(te));const me=ue.slice();for(const te of de)this._isRangeToUpdate(te,ue)&&me.push(te);for(const de of me){let ue=de;if(1===me.length){const le=Fy(re);re.getAttribute("linkHref")===le&&(ue=this._updateLinkContent(ie,ne,de,te),ne.setSelection(ne.createSelection(ue)))}ne.setAttribute("linkHref",te,ue),le.forEach((te=>{ne.setAttribute(te,!0,ue)})),ce.forEach((te=>{ne.removeAttribute(te,ue)}))}}}))}_getDecoratorStateFromModel(te){const ne=this.editor.model,ie=ne.document.selection,re=ie.getSelectedElement();return Py(re,ne.schema)?re.getAttribute(te):ie.getAttribute(te)}_isRangeToUpdate(te,ne){for(const ie of ne)if(ie.containsRange(te))return!1;return!0}_updateLinkContent(te,ne,ie,re){const le=ne.createText(re,{linkHref:re});return te.insertContent(le,ie)}}function Fy(te){if(te.isCollapsed){const ne=te.getFirstPosition();return ne.textNode&&ne.textNode.data}{const ne=Array.from(te.getFirstRange().getItems());if(ne.length>1)return null;const ie=ne[0];return ie.is("$text")||ie.is("$textProxy")?ie.data:null}}class jy extends Ss{refresh(){const te=this.editor.model,ne=te.document.selection,ie=ne.getSelectedElement();Py(ie,te.schema)?this.isEnabled=te.schema.checkAttribute(ie,"linkHref"):this.isEnabled=te.schema.checkAttributeInSelection(ne,"linkHref")}execute(){const te=this.editor,ne=this.editor.model,ie=ne.document.selection,re=te.commands.get("link");ne.change((te=>{const le=ie.isCollapsed?[Xk(ie.getFirstPosition(),"linkHref",ie.getAttribute("linkHref"),ne)]:ne.schema.getValidRanges(ie.getRanges(),"linkHref");for(const ne of le)if(te.removeAttribute("linkHref",ne),re)for(const ie of re.manualDecorators)te.removeAttribute(ie.id,ne)}))}}class Hy extends(q()){constructor({id:te,label:ne,attributes:ie,classes:re,styles:le,defaultValue:ce}){super(),this.id=te,this.set("value",void 0),this.defaultValue=ce,this.label=ne,this.attributes=ie,this.classes=re,this.styles=le}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var EC=i(3925);Fo()(EC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),EC.Z.locals;const MC="automatic",NC=/^(https?:)?\/\//;class Zy extends Es{static get pluginName(){return"LinkEditing"}static get requires(){return[Gk,Bk,Ib]}constructor(te){super(te),te.config.define("link",{allowCreatingEmptyLinks:!1,addTargetToExternalLinks:!1})}init(){const te=this.editor;te.model.schema.extend("$text",{allowAttributes:"linkHref"}),te.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Ny}),te.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(te,ne)=>Ny(zy(te),ne)}),te.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:te=>te.getAttribute("href")}}),te.commands.add("link",new Vy(te)),te.commands.add("unlink",new jy(te));const ne=function(te,ne){const ie={"Open in a new tab":te("Open in a new tab"),Downloadable:te("Downloadable")};return ne.forEach((te=>("label"in te&&ie[te.label]&&(te.label=ie[te.label]),te))),ne}(te.t,function(te){const ne=[];if(te)for(const[ie,re]of Object.entries(te)){const te=Object.assign({},re,{id:`link${RC(ie)}`});ne.push(te)}return ne}(te.config.get("link.decorators")));this._enableAutomaticDecorators(ne.filter((te=>te.mode===MC))),this._enableManualDecorators(ne.filter((te=>"manual"===te.mode))),te.plugins.get(Gk).registerAttribute("linkHref"),function(te,ne,ie,re){const le=te.editing.view,ce=new Set;le.document.registerPostFixer((ie=>{const le=te.model.document.selection;let de=!1;if(le.hasAttribute(ne)){const ue=Xk(le.getFirstPosition(),ne,le.getAttribute(ne),te.model),me=te.editing.mapper.toViewRange(ue);for(const te of me.getItems())te.is("element","a")&&!te.hasClass(re)&&(ie.addClass(re,te),ce.add(te),de=!0)}return de})),te.conversion.for("editingDowncast").add((te=>{function e(){le.change((te=>{for(const ne of ce.values())te.removeClass(re,ne),ce.delete(ne)}))}te.on("insert",e,{priority:"highest"}),te.on("remove",e,{priority:"highest"}),te.on("attribute",e,{priority:"highest"}),te.on("selection",e,{priority:"highest"})}))}(te,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(te){const ne=this.editor,ie=ne.commands.get("link").automaticDecorators;ne.config.get("link.addTargetToExternalLinks")&&ie.add({id:"linkIsExternal",mode:MC,callback:te=>!!te&&NC.test(te),attributes:{target:"_blank",rel:"noopener noreferrer"}}),ie.add(te),ie.length&&ne.conversion.for("downcast").add(ie.getDispatcher())}_enableManualDecorators(te){if(!te.length)return;const ne=this.editor,ie=ne.commands.get("link").manualDecorators;te.forEach((te=>{ne.model.schema.extend("$text",{allowAttributes:te.id});const re=new Hy(te);ie.add(re),ne.conversion.for("downcast").attributeToElement({model:re.id,view:(te,{writer:ne,schema:ie},{item:le})=>{if((le.is("selection")||ie.isInline(le))&&te){const te=ne.createAttributeElement("a",re.attributes,{priority:5});re.classes&&ne.addClass(re.classes,te);for(const ie in re.styles)ne.setStyle(ie,re.styles[ie],te);return ne.setCustomProperty("link",!0,te),te}}}),ne.conversion.for("upcast").elementToAttribute({view:{name:"a",...re._createPattern()},model:{key:re.id}})}))}_enableLinkOpen(){const te=this.editor,ne=te.editing.view.document;this.listenTo(ne,"click",((te,ne)=>{if(!(le.isMac?ne.domEvent.metaKey:ne.domEvent.ctrlKey))return;let ie=ne.domTarget;if("a"!=ie.tagName.toLowerCase()&&(ie=ie.closest("a")),!ie)return;const re=ie.getAttribute("href");re&&(te.stop(),ne.preventDefault(),Ry(re))}),{context:"$capture"}),this.listenTo(ne,"keydown",((ne,ie)=>{const re=te.commands.get("link").value;re&&ie.keyCode===wo.enter&&ie.altKey&&(ne.stop(),Ry(re))}))}_enableSelectionAttributesFixer(){const te=this.editor.model,ne=te.document.selection;this.listenTo(ne,"change:attribute",((ie,{attributeKeys:re})=>{re.includes("linkHref")&&!ne.hasAttribute("linkHref")&&te.change((ne=>{var ie;!function(te,ne){te.removeSelectionAttribute("linkHref");for(const ie of ne)te.removeSelectionAttribute(ie)}(ne,(ie=te.schema,ie.getDefinition("$text").allowAttributes.filter((te=>te.startsWith("link")))))}))}))}_enableClipboardIntegration(){const te=this.editor,ne=te.model,ie=this.editor.config.get("link.defaultProtocol");ie&&this.listenTo(te.plugins.get("ClipboardPipeline"),"contentInsertion",((te,re)=>{ne.change((te=>{const ne=te.createRangeIn(re.content);for(const re of ne.getItems())if(re.hasAttribute("linkHref")){const ne=Ly(re.getAttribute("linkHref"),ie);te.setAttribute("linkHref",ne,re)}}))}))}}var LC=i(4874);Fo()(LC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),LC.Z.locals;class Yy extends Hi{constructor(te,ne){super(te),this.focusTracker=new Ti,this.keystrokes=new Ii,this._focusables=new Oi;const ie=te.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(ie("Save"),Dc.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(ie("Cancel"),Dc.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(ne),this.children=this._createFormChildren(ne.manualDecorators),this._focusCycler=new As({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const re=["ck","ck-link-form","ck-responsive-form"];ne.manualDecorators.length&&re.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:re,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((te,ne)=>(te[ne.name]=ne.isOn,te)),{})}render(){super.render(),n({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach((te=>{this._focusables.add(te),this.focusTracker.add(te.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const te=this.locale.t,ne=new rs(this.locale,Ag);return ne.label=te("Link URL"),ne}_createButton(te,ne,ie,re){const le=new br(this.locale);return le.set({label:te,icon:ne,tooltip:!0}),le.extendTemplate({attributes:{class:ie}}),re&&le.delegate("execute").to(this,re),le}_createManualDecoratorSwitches(te){const ne=this.createCollection();for(const ie of te.manualDecorators){const re=new Cr(this.locale);re.set({name:ie.id,label:ie.label,withText:!0}),re.bind("isOn").toMany([ie,te],"value",((te,ne)=>void 0===ne&&void 0===te?!!ie.defaultValue:!!te)),re.on("execute",(()=>{ie.set("value",!re.isOn)})),ne.add(re)}return ne}_createFormChildren(te){const ne=this.createCollection();if(ne.add(this.urlInputView),te.length){const te=new Hi;te.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((te=>({tag:"li",children:[te],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),ne.add(te)}return ne.add(this.saveButtonView),ne.add(this.cancelButtonView),ne}}var PC=i(7536);Fo()(PC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),PC.Z.locals;class Xy extends Hi{constructor(te){super(te),this.focusTracker=new Ti,this.keystrokes=new Ii,this._focusables=new Oi;const ne=te.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(ne("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(ne("Edit link"),Dc.pencil,"edit"),this.set("href",void 0),this._focusCycler=new As({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((te=>{this._focusables.add(te),this.focusTracker.add(te.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(te,ne,ie){const re=new br(this.locale);return re.set({label:te,icon:ne,tooltip:!0}),re.delegate("execute").to(this,ie),re}_createPreviewButton(){const te=new br(this.locale),ne=this.bindTemplate,ie=this.t;return te.set({withText:!0,tooltip:ie("Open link in new tab")}),te.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:ne.to("href",(te=>te&&zy(te))),target:"_blank",rel:"noopener noreferrer"}}),te.bind("label").to(this,"href",(te=>te||ie("This link has no URL"))),te.bind("isEnabled").to(this,"href",(te=>!!te)),te.template.tag="a",te.template.eventListeners={},te}}const BC="link-ui";class ex extends Es{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[xf]}static get pluginName(){return"LinkUI"}init(){const te=this.editor;te.editing.view.addObserver(Ku),this._balloon=te.plugins.get(xf),this._createToolbarLinkButton(),this._enableBalloonActivators(),te.conversion.for("editingDowncast").markerToHighlight({model:BC,view:{classes:["ck-fake-link-selection"]}}),te.conversion.for("editingDowncast").markerToElement({model:BC,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const te=this.editor,ne=new Xy(te.locale),ie=te.commands.get("link"),re=te.commands.get("unlink");return ne.bind("href").to(ie,"value"),ne.editButtonView.bind("isEnabled").to(ie),ne.unlinkButtonView.bind("isEnabled").to(re),this.listenTo(ne,"edit",(()=>{this._addFormView()})),this.listenTo(ne,"unlink",(()=>{te.execute("unlink"),this._hideUI()})),ne.keystrokes.set("Esc",((te,ne)=>{this._hideUI(),ne()})),ne.keystrokes.set(xC,((te,ne)=>{this._addFormView(),ne()})),ne}_createFormView(){const te=this.editor,ne=te.commands.get("link"),ie=te.config.get("link.defaultProtocol"),re=te.config.get("link.allowCreatingEmptyLinks"),le=new(e(Yy))(te.locale,ne);return le.urlInputView.fieldView.bind("value").to(ne,"value"),le.urlInputView.bind("isEnabled").to(ne,"isEnabled"),le.saveButtonView.bind("isEnabled").to(ne,"isEnabled",le.urlInputView,"isEmpty",((te,ne)=>te&&(re||!ne))),this.listenTo(le,"submit",(()=>{const{value:ne}=le.urlInputView.fieldView.element,re=Ly(ne,ie);te.execute("link",re,le.getDecoratorSwitchesState()),this._closeFormView()})),this.listenTo(le,"cancel",(()=>{this._closeFormView()})),le.keystrokes.set("Esc",((te,ne)=>{this._closeFormView(),ne()})),le}_createToolbarLinkButton(){const te=this.editor,ne=te.commands.get("link"),ie=te.t;te.ui.componentFactory.add("link",(te=>{const re=new br(te);return re.isEnabled=!0,re.label=ie("Link"),re.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',re.keystroke=xC,re.tooltip=!0,re.isToggleable=!0,re.bind("isEnabled").to(ne,"isEnabled"),re.bind("isOn").to(ne,"value",(te=>!!te)),this.listenTo(re,"execute",(()=>this._showUI(!0))),re}))}_enableBalloonActivators(){const te=this.editor,ne=te.editing.view.document;this.listenTo(ne,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),te.keystrokes.set(xC,((ne,ie)=>{ie(),te.commands.get("link").isEnabled&&this._showUI(!0)}))}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",((te,ne)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),ne())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((te,ne)=>{this._isUIVisible&&(this._hideUI(),ne())})),t({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const te=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this.formView.urlInputView.fieldView.value=te.value||"",this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions()}_closeFormView(){const te=this.editor.commands.get("link");te.restoreManualDecoratorStates(),void 0!==te.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this.formView.urlInputView.fieldView.reset(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(te=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),te&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),te&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const te=this.editor;this.stopListening(te.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),te.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const te=this.editor,ne=te.editing.view.document;let ie=this._getSelectedLinkElement(),re=r();const i=()=>{const te=this._getSelectedLinkElement(),ne=r();ie&&!te||!ie&&ne!==re?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),ie=te,re=ne};function r(){return ne.selection.focus.getAncestors().reverse().find((te=>te.is("element")))}this.listenTo(te.ui,"update",i),this.listenTo(this._balloon,"change:visibleView",i)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){const te=this._balloon.visibleView;return!!this.formView&&te==this.formView||this._areActionsVisible}_getBalloonPositionData(){const te=this.editor.editing.view,ne=this.editor.model,ie=te.document;let re;if(ne.markers.has(BC)){const ne=Array.from(this.editor.editing.mapper.markerNameToElements(BC)),ie=te.createRange(te.createPositionBefore(ne[0]),te.createPositionAfter(ne[ne.length-1]));re=te.domConverter.viewRangeToDom(ie)}else re=()=>{const ne=this._getSelectedLinkElement();return ne?te.domConverter.mapViewToDom(ne):te.domConverter.viewRangeToDom(ie.selection.getFirstRange())};return{target:re}}_getSelectedLinkElement(){const te=this.editor.editing.view,ne=te.document.selection,ie=ne.getSelectedElement();if(ne.isCollapsed||ie&&Rb(ie))return nx(ne.getFirstPosition());{const ie=ne.getFirstRange().getTrimmed(),re=nx(ie.start),le=nx(ie.end);return re&&re==le&&te.createRangeIn(re).getTrimmed().isEqual(ie)?re:null}}_showFakeVisualSelection(){const te=this.editor.model;te.change((ne=>{const ie=te.document.selection.getFirstRange();if(te.markers.has(BC))ne.updateMarker(BC,{range:ie});else if(ie.start.isAtEnd){const re=ie.start.getLastMatchingPosition((({item:ne})=>!te.schema.isContent(ne)),{boundaries:ie});ne.addMarker(BC,{usingOperation:!1,affectsData:!1,range:ne.createRange(re,ie.end)})}else ne.addMarker(BC,{usingOperation:!1,affectsData:!1,range:ie})}))}_hideFakeVisualSelection(){const te=this.editor.model;te.markers.has(BC)&&te.change((te=>{te.removeMarker(BC)}))}}function nx(te){return te.getAncestors().find((te=>{return(ne=te).is("attributeElement")&&!!ne.getCustomProperty("link");var ne}))||null}const VC=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class ix extends Es{static get requires(){return[jk,Zy]}static get pluginName(){return"AutoLink"}init(){const te=this.editor.model.document.selection;te.on("change:range",(()=>{this.isEnabled=!te.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(te,ne){return ne.textNode&&ne.textNode.hasAttribute("linkHref")?Xk(ne,"linkHref",ne.textNode.getAttribute("linkHref"),te):null}_selectEntireLinks(te,ne){const ie=this.editor.model,re=ie.document.selection,le=re.getFirstPosition(),ce=re.getLastPosition();let de=ne.getJoined(this._expandLinkRange(ie,le)||ne);de&&(de=de.getJoined(this._expandLinkRange(ie,ce)||ne)),de&&(de.start.isBefore(le)||de.end.isAfter(ce))&&te.setSelection(de)}_enablePasteLinking(){const te=this.editor,ne=te.model,ie=ne.document.selection,re=te.plugins.get("ClipboardPipeline"),le=te.commands.get("link");re.on("inputTransformation",((te,re)=>{if(!this.isEnabled||!le.isEnabled||ie.isCollapsed)return;if(ie.rangeCount>1)return;const ce=ie.getFirstRange(),de=re.dataTransfer.getData("text/plain");if(!de)return;const ue=de.match(VC);ue&&ue[2]===de&&(ne.change((te=>{this._selectEntireLinks(te,ce),le.execute(de)})),te.stop())}),{priority:"high"})}_enableTypingHandling(){const te=this.editor,ne=new Wk(te.model,(te=>{if(!function(te){return te.length>4&&" "===te[te.length-1]&&" "!==te[te.length-2]}(te))return;const ne=rx(te.substr(0,te.length-1));return ne?{url:ne}:void 0}));ne.on("matched:data",((ne,ie)=>{const{batch:re,range:le,url:ce}=ie;if(!re.isTyping)return;const de=le.end.getShiftedBy(-1),ue=de.getShiftedBy(-ce.length),me=te.model.createRange(ue,de);this._applyAutoLink(ce,me)})),ne.bind("isEnabled").to(this)}_enableEnterHandling(){const te=this.editor,ne=te.model,ie=te.commands.get("enter");ie&&ie.on("execute",(()=>{const te=ne.document.selection.getFirstPosition();if(!te.parent.previousSibling)return;const ie=ne.createRangeIn(te.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(ie)}))}_enableShiftEnterHandling(){const te=this.editor,ne=te.model,ie=te.commands.get("shiftEnter");ie&&ie.on("execute",(()=>{const te=ne.document.selection.getFirstPosition(),ie=ne.createRange(ne.createPositionAt(te.parent,0),te.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(ie)}))}_checkAndApplyAutoLinkOnRange(te){const ne=this.editor.model,{text:ie,range:re}=Uk(te,ne),le=rx(ie);if(le){const te=ne.createRange(re.end.getShiftedBy(-le.length),re.end);this._applyAutoLink(le,te)}}_applyAutoLink(te,ne){const ie=this.editor.model,re=Ly(te,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(te,ne){return ne.schema.checkAttributeInSelection(ne.createSelection(te),"linkHref")}(ne,ie)&&Oy(re)&&!function(te){const ne=te.start.nodeAfter;return!!ne&&ne.hasAttribute("linkHref")}(ne)&&this._persistAutoLink(re,ne)}_persistAutoLink(te,ne){const ie=this.editor.model,re=this.editor.plugins.get("Delete");ie.enqueueChange((le=>{le.setAttribute("linkHref",te,ne),ie.enqueueChange((()=>{re.requestUndoOnBackspace()}))}))}}function rx(te){const ne=VC.exec(te);return ne?ne[2]:null}var zC=i(4330);Fo()(zC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),zC.Z.locals;class lx{constructor(te,ne){this._startElement=te,this._referenceIndent=te.getAttribute("listIndent"),this._isForward="forward"==ne.direction,this._includeSelf=!!ne.includeSelf,this._sameAttributes=_i(ne.sameAttributes||[]),this._sameIndent=!!ne.sameIndent,this._lowerIndent=!!ne.lowerIndent,this._higherIndent=!!ne.higherIndent}static first(te,ne){return Si(new this(te,ne)[Symbol.iterator]())}*[Symbol.iterator](){const te=[];for(const{node:ne}of cx(this._getStartNode(),this._isForward?"forward":"backward")){const ie=ne.getAttribute("listIndent");if(ie<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=ie}else if(ie>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){te.push(ne);continue}}else{if(!this._sameIndent){if(this._higherIndent){te.length&&(yield*te,te.length=0);break}continue}if(this._sameAttributes.some((te=>ne.getAttribute(te)!==this._startElement.getAttribute(te))))break}te.length&&(yield*te,te.length=0),yield ne}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}function*cx(te,ne="forward"){const ie="forward"==ne,re=[];let le=null;for(;ux(te);){let ne=null;if(le){const ie=te.getAttribute("listIndent"),ce=le.getAttribute("listIndent");ie>ce?re[ce]=le:ie<ce?(ne=re[ie],re.length=ie):ne=le}yield{node:te,previous:le,previousNodeInList:ne},le=te,te=ie?te.nextSibling:te.previousSibling}}class dx{constructor(te){this._listHead=te}[Symbol.iterator](){return cx(this._listHead,"forward")}}class hx{static next(){return k()}}function ux(te){return!!te&&te.is("element")&&te.hasAttribute("listItemId")}function mx(te,ne={}){return[...gx(te,{...ne,direction:"backward"}),...gx(te,{...ne,direction:"forward"})]}function gx(te,ne={}){const ie="forward"==ne.direction,re=Array.from(new lx(te,{...ne,includeSelf:ie,sameIndent:!0,sameAttributes:"listItemId"}));return ie?re:re.reverse()}function px(te){const ne=new lx(te,{sameIndent:!0,sameAttributes:"listType"}),ie=new lx(te,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward"});return[...Array.from(ne).reverse(),...ie]}function fx(te){return!lx.first(te,{sameIndent:!0,sameAttributes:"listItemId"})}function kx(te){return!lx.first(te,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function bx(te,ne={}){te=_i(te);const ie=!1!==ne.withNested,re=new Set;for(const ne of te)for(const te of mx(ne,{higherIndent:ie}))re.add(te);return xx(re)}function wx(te){te=_i(te);const ne=new Set;for(const ie of te)for(const te of px(ie))ne.add(te);return xx(ne)}function Ax(te,ne){const ie=gx(te,{direction:"forward"}),re=hx.next();for(const te of ie)ne.setAttribute("listItemId",re,te);return ie}function Cx(te,ne,ie){const re={};for(const[te,ie]of ne.getAttributes())te.startsWith("list")&&(re[te]=ie);const le=gx(te,{direction:"forward"});for(const te of le)ie.setAttributes(re,te);return le}function _x(te,ne,{expand:ie,indentBy:re=1}={}){te=_i(te);const le=ie?bx(te):te;for(const te of le){const ie=te.getAttribute("listIndent")+re;ie<0?vx(te,ne):ne.setAttribute("listIndent",ie,te)}return le}function vx(te,ne){te=_i(te);for(const ie of te)ie.is("element","listItem")&&ne.rename(ie,"paragraph");for(const ie of te)for(const te of ie.getAttributeKeys())te.startsWith("list")&&ne.removeAttribute(te,ie);return te}function yx(te){if(!te.length)return!1;const ne=te[0].getAttribute("listItemId");return!!ne&&!te.some((te=>te.getAttribute("listItemId")!=ne))}function xx(te){return Array.from(te).filter((te=>"$graveyard"!==te.root.rootName)).sort(((te,ne)=>te.index-ne.index))}function Ex(te){const ne=te.document.selection.getSelectedElement();return ne&&te.schema.isObject(ne)&&te.schema.isBlock(ne)?ne:null}function Dx(te,ne){return ne.checkChild(te.parent,"listItem")&&ne.checkChild(te,"$text")&&!ne.isObject(te)}function Sx(te,ne,ie){return gx(ne,{direction:"forward"}).pop().index>te.index?Cx(te,ne,ie):[]}class Tx extends Ss{constructor(te,ne){super(te),this._direction=ne}refresh(){this.isEnabled=this._checkEnabled()}execute(){const te=this.editor.model,ne=Ix(te.document.selection);te.change((te=>{const ie=[];yx(ne)&&!fx(ne[0])?("forward"==this._direction&&ie.push(..._x(ne,te)),ie.push(...Ax(ne[0],te))):"forward"==this._direction?ie.push(..._x(ne,te,{expand:!0})):ie.push(...function(te,ne){const ie=bx(te=_i(te)),re=new Set,le=Math.min(...ie.map((te=>te.getAttribute("listIndent")))),ce=new Map;for(const te of ie)ce.set(te,lx.first(te,{lowerIndent:!0}));for(const te of ie){if(re.has(te))continue;re.add(te);const ie=te.getAttribute("listIndent")-1;if(ie<0)vx(te,ne);else{if(te.getAttribute("listIndent")==le){const ie=Sx(te,ce.get(te),ne);for(const te of ie)re.add(te);if(ie.length)continue}ne.setAttribute("listIndent",ie,te)}}return xx(re)}(ne,te));for(const ne of ie){if(!ne.hasAttribute("listType"))continue;const ie=lx.first(ne,{sameIndent:!0});ie&&te.setAttribute("listType",ie.getAttribute("listType"),ne)}this._fireAfterExecute(ie)}))}_fireAfterExecute(te){this.fire("afterExecute",xx(new Set(te)))}_checkEnabled(){let te=Ix(this.editor.model.document.selection),ne=te[0];if(!ne)return!1;if("backward"==this._direction)return!0;if(yx(te)&&!fx(te[0]))return!0;te=bx(te),ne=te[0];const ie=lx.first(ne,{sameIndent:!0});return!!ie&&ie.getAttribute("listType")==ne.getAttribute("listType")}}function Ix(te){const ne=Array.from(te.getSelectedBlocks()),ie=ne.findIndex((te=>!ux(te)));return-1!=ie&&(ne.length=ie),ne}class Mx extends Ss{constructor(te,ne){super(te),this.type=ne}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(te={}){const ne=this.editor.model,ie=ne.document,re=Ex(ne),le=Array.from(ie.selection.getSelectedBlocks()).filter((te=>ne.schema.checkAttribute(te,"listType")||Dx(te,ne.schema))),ce=void 0!==te.forceValue?!te.forceValue:this.value;ne.change((te=>{if(ce){const ne=le[le.length-1],ie=gx(ne,{direction:"forward"}),re=[];ie.length>1&&re.push(...Ax(ie[1],te)),re.push(...vx(le,te)),re.push(...function(te,ne){const ie=[];let re=Number.POSITIVE_INFINITY;for(const{node:le}of cx(te.nextSibling,"forward")){const te=le.getAttribute("listIndent");if(0==te)break;te<re&&(re=te);const ce=te-re;ne.setAttribute("listIndent",ce,le),ie.push(le)}return ie}(ne,te)),this._fireAfterExecute(re)}else if((re||ie.selection.isCollapsed)&&ux(le[0])){const ne=px(re||le[0]);for(const ie of ne)te.setAttribute("listType",this.type,ie);this._fireAfterExecute(ne)}else{const ie=[];for(const re of le)if(re.hasAttribute("listType"))for(const ne of bx(re,{withNested:!1}))ne.getAttribute("listType")!=this.type&&(te.setAttribute("listType",this.type,ne),ie.push(ne));else!re.is("element","listItem")&&Dx(re,ne.schema)&&te.rename(re,"listItem"),te.setAttributes({listIndent:0,listItemId:hx.next(),listType:this.type},re),ie.push(re);this._fireAfterExecute(ie)}}))}_fireAfterExecute(te){this.fire("afterExecute",xx(new Set(te)))}_getValue(){const te=this.editor.model.document.selection,ne=Array.from(te.getSelectedBlocks());if(!ne.length)return!1;for(const te of ne)if(te.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const te=this.editor.model,ne=te.schema,ie=te.document.selection,re=Array.from(ie.getSelectedBlocks());if(!re.length)return!1;if(this.value)return!0;for(const te of re)if(ne.checkAttribute(te,"listType")||Dx(te,ne))return!0;return!1}}class Bx extends Ss{constructor(te,ne){super(te),this._direction=ne}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:te=!1}={}){const ne=this.editor.model,ie=ne.document.selection,re=[];ne.change((le=>{const{firstElement:ce,lastElement:de}=this._getMergeSubjectElements(ie,te),ue=ce.getAttribute("listIndent")||0,me=de.getAttribute("listIndent"),ge=de.getAttribute("listItemId");if(ue!=me){const te=(fe=de,Array.from(new lx(fe,{direction:"forward",higherIndent:!0})));re.push(..._x([de,...te],le,{indentBy:ue-me,expand:ue<me}))}var fe;if(te){let te=ie;ie.isCollapsed&&(te=le.createSelection(le.createRange(le.createPositionAt(ce,"end"),le.createPositionAt(de,0)))),ne.deleteContent(te,{doNotResetEntireContent:ie.isCollapsed});const ue=te.getLastPosition().parent,me=ue.nextSibling;re.push(ue),me&&me!==de&&me.getAttribute("listItemId")==ge&&re.push(...Cx(me,ue,le))}else re.push(...Cx(de,ce,le));this._fireAfterExecute(re)}))}_fireAfterExecute(te){this.fire("afterExecute",xx(new Set(te)))}_checkEnabled(){const te=this.editor.model,ne=te.document.selection,ie=Ex(te);if(ne.isCollapsed||ie){const te=ie||ne.getFirstPosition().parent;if(!ux(te))return!1;const re="backward"==this._direction?te.previousSibling:te.nextSibling;if(!re)return!1;if(yx([te,re]))return!1}else{const te=ne.getLastPosition(),ie=ne.getFirstPosition();if(te.parent===ie.parent)return!1;if(!ux(te.parent))return!1}return!0}_getMergeSubjectElements(te,ne){const ie=Ex(this.editor.model);let re,le;if(te.isCollapsed||ie){const ce=ie||te.getFirstPosition().parent,de=fx(ce);"backward"==this._direction?(le=ce,re=de&&!ne?lx.first(ce,{sameIndent:!0,lowerIndent:!0}):ce.previousSibling):(re=ce,le=ce.nextSibling)}else re=te.getFirstPosition().parent,le=te.getLastPosition().parent;return{firstElement:re,lastElement:le}}}class Nx extends Ss{constructor(te,ne){super(te),this._direction=ne}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change((te=>{const ne=Ax(this._getStartBlock(),te);this._fireAfterExecute(ne)}))}_fireAfterExecute(te){this.fire("afterExecute",xx(new Set(te)))}_checkEnabled(){const te=this.editor.model.document.selection,ne=this._getStartBlock();return te.isCollapsed&&ux(ne)&&!fx(ne)}_getStartBlock(){const te=this.editor.model.document.selection.getFirstPosition().parent;return"before"==this._direction?te:te.nextSibling}}class zx extends Es{static get pluginName(){return"ListUtils"}expandListBlocksToCompleteList(te){return wx(te)}isFirstBlockOfListItem(te){return fx(te)}isListItemBlock(te){return ux(te)}expandListBlocksToCompleteItems(te,ne={}){return bx(te,ne)}}function Px(te){return te.is("element","ol")||te.is("element","ul")}function Lx(te){return te.is("element","li")}function Ox(te,ne,ie,re=Fx(ie,ne)){return te.createAttributeElement(Vx(ie),null,{priority:2*ne/100-100,id:re})}function Rx(te,ne,ie){return te.createAttributeElement("li",null,{priority:(2*ne+1)/100-100,id:ie})}function Vx(te){return"numbered"==te?"ol":"ul"}function Fx(te,ne){return`list-${te}-${ne}`}function jx(te,ne){const ie=te.nodeBefore;if(ux(ie)){let te=ie;for(const{node:ie}of cx(te,"backward"))if(te=ie,ne.has(te))return;ne.set(ie,te)}else{const ie=te.nodeAfter;ux(ie)&&ne.set(ie,ie)}}function Ux(){return(te,ne,ie)=>{if(!ie.consumable.test(ne.viewItem,{name:!0}))return;const re=new Qu(ne.viewItem.document);for(const te of Array.from(ne.viewItem.getChildren()))Lx(te)||Px(te)||re.remove(te)}}function Wx(te,ne,ie,{dataPipeline:re}={}){const le=function(te){return(ne,ie)=>{const re=[];for(const ie of te)ne.hasAttribute(ie)&&re.push(`attribute:${ie}`);return!!re.every((te=>!1!==ie.test(ne,te)))&&(re.forEach((te=>ie.consume(ne,te))),!0)}}(te);return(ce,de,ue)=>{const{writer:me,mapper:ge,consumable:fe}=ue,_e=de.item;if(!te.includes(de.attributeKey))return;if(!le(_e,fe))return;const be=function(te,ne,ie){const re=ie.createRangeOn(te);return ne.toViewRange(re).getTrimmed().end.nodeBefore}(_e,ge,ie);!function(te,ne,ie){for(;te.parent.is("attributeElement")&&te.parent.getCustomProperty("listItemWrapper");)ne.unwrap(ne.createRangeIn(te.parent),te.parent);const re=ne.createPositionBefore(te).getWalker({direction:"backward"}),le=[];for(const{item:te}of re){if(te.is("element")&&ie.toModelElement(te))break;te.is("element")&&te.getCustomProperty("listItemMarker")&&le.push(te)}for(const te of le)ne.remove(te)}(be,me,ge),function(te,ne){let ie=te.parent;for(;ie.is("attributeElement")&&["ul","ol","li"].includes(ie.name);){const re=ie.parent;ne.unwrap(ne.createRangeOn(te),ie),ie=re}}(be,me);const Ce=function(te,ne,ie,re,{dataPipeline:le}){let ce=re.createRangeOn(ne);if(!fx(te))return ce;for(const de of ie){if("itemMarker"!=de.scope)continue;const ie=de.createElement(re,te,{dataPipeline:le});if(!ie)continue;if(re.setCustomProperty("listItemMarker",!0,ie),re.insert(ce.start,ie),ce=re.createRange(re.createPositionBefore(ie),re.createPositionAfter(ne)),!de.createWrapperElement||!de.canWrapElement)continue;const ue=de.createWrapperElement(re,te,{dataPipeline:le});re.setCustomProperty("listItemWrapper",!0,ue),de.canWrapElement(te)?ce=re.wrap(ce,ue):(ce=re.wrap(re.createRangeOn(ie),ue),ce=re.createRange(ce.start,re.createPositionAfter(ne)))}return ce}(_e,be,ne,me,{dataPipeline:re});!function(te,ne,ie,re){if(!te.hasAttribute("listIndent"))return;const le=te.getAttribute("listIndent");let ce=te;for(let te=le;te>=0;te--){const le=Rx(re,te,ce.getAttribute("listItemId")),de=Ox(re,te,ce.getAttribute("listType"));for(const te of ie)"list"!=te.scope&&"item"!=te.scope||!ce.hasAttribute(te.attributeName)||te.setAttributeOnDowncast(re,ce.getAttribute(te.attributeName),"list"==te.scope?de:le);if(ne=re.wrap(ne,le),ne=re.wrap(ne,de),0==te)break;if(ce=lx.first(ce,{lowerIndent:!0}),!ce)break}}(_e,Ce,ne,me)}}function Gx(te,{dataPipeline:ne}={}){return(ie,{writer:re})=>{if(!qx(ie,te))return null;if(!ne)return re.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const le=re.createContainerElement("p");return re.setCustomProperty("dataPipeline:transparentRendering",!0,le),le}}function qx(te,ne,ie=mx(te)){if(!ux(te))return!1;for(const ie of te.getAttributeKeys())if(!ie.startsWith("selection:")&&!ne.includes(ie))return!1;return ie.length<2}var XC=i(3190);Fo()(XC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),XC.Z.locals;var JC=i(4784);Fo()(JC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),JC.Z.locals;const iv=["listType","listIndent","listItemId"];class Jx extends Es{static get pluginName(){return"ListEditing"}static get requires(){return[ub,jk,zx,Ib]}constructor(te){super(te),this._downcastStrategies=[],te.config.define("list.multiBlock",!0)}init(){const te=this.editor,ne=te.model,ie=te.config.get("list.multiBlock");if(te.plugins.has("LegacyListEditing"))throw new C("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});ne.schema.register("$listItem",{allowAttributes:iv}),ie?(ne.schema.extend("$container",{allowAttributesOf:"$listItem"}),ne.schema.extend("$block",{allowAttributesOf:"$listItem"}),ne.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):ne.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"});for(const te of iv)ne.schema.setAttributeProperties(te,{copyOnReplace:!0});te.commands.add("numberedList",new Mx(te,"numbered")),te.commands.add("bulletedList",new Mx(te,"bulleted")),te.commands.add("indentList",new Tx(te,"forward")),te.commands.add("outdentList",new Tx(te,"backward")),te.commands.add("splitListItemBefore",new Nx(te,"before")),te.commands.add("splitListItemAfter",new Nx(te,"after")),ie&&(te.commands.add("mergeListItemBackward",new Bx(te,"backward")),te.commands.add("mergeListItemForward",new Bx(te,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration()}afterInit(){const te=this.editor.commands,ne=te.get("indent"),ie=te.get("outdent");ne&&ne.registerChildCommand(te.get("indentList"),{priority:"high"}),ie&&ie.registerChildCommand(te.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(te){this._downcastStrategies.push(te)}getListAttributeNames(){return[...iv,...this._downcastStrategies.map((te=>te.attributeName))]}_setupDeleteIntegration(){const te=this.editor,ne=te.commands.get("mergeListItemBackward"),ie=te.commands.get("mergeListItemForward");this.listenTo(te.editing.view.document,"delete",((re,le)=>{const ce=te.model.document.selection;Ex(te.model)||te.model.change((()=>{const de=ce.getFirstPosition();if(ce.isCollapsed&&"backward"==le.direction){if(!de.isAtStart)return;const ie=de.parent;if(!ux(ie))return;if(lx.first(ie,{sameAttributes:"listType",sameIndent:!0})||0!==ie.getAttribute("listIndent")){if(!ne||!ne.isEnabled)return;ne.execute({shouldMergeOnBlocksContentLevel:Xx(te.model,"backward")})}else kx(ie)||te.execute("splitListItemAfter"),te.execute("outdentList");le.preventDefault(),re.stop()}else{if(ce.isCollapsed&&!ce.getLastPosition().isAtEnd)return;if(!ie||!ie.isEnabled)return;ie.execute({shouldMergeOnBlocksContentLevel:Xx(te.model,"forward")}),le.preventDefault(),re.stop()}}))}),{context:"li"})}_setupEnterIntegration(){const te=this.editor,ne=te.model,ie=te.commands,re=ie.get("enter");this.listenTo(te.editing.view.document,"enter",((ie,re)=>{const le=ne.document,ce=le.selection.getFirstPosition().parent;if(le.selection.isCollapsed&&ux(ce)&&ce.isEmpty&&!re.isSoft){const ne=fx(ce),le=kx(ce);ne&&le?(te.execute("outdentList"),re.preventDefault(),ie.stop()):ne&&!le?(te.execute("splitListItemAfter"),re.preventDefault(),ie.stop()):le&&(te.execute("splitListItemBefore"),re.preventDefault(),ie.stop())}}),{context:"li"}),this.listenTo(re,"afterExecute",(()=>{const ne=ie.get("splitListItemBefore");ne.refresh(),ne.isEnabled&&2===mx(te.model.document.selection.getLastPosition().parent).length&&ne.execute()}))}_setupTabIntegration(){const te=this.editor;this.listenTo(te.editing.view.document,"tab",((ne,ie)=>{const re=ie.shiftKey?"outdentList":"indentList";this.editor.commands.get(re).isEnabled&&(te.execute(re),ie.stopPropagation(),ie.preventDefault(),ne.stop())}),{context:"li"})}_setupConversion(){const te=this.editor,ne=te.model,ie=this.getListAttributeNames(),re=te.config.get("list.multiBlock"),le=re?"paragraph":"listItem";te.conversion.for("upcast").elementToElement({view:"li",model:(te,{writer:ne})=>ne.createElement(le,{listType:""})}).elementToElement({view:"p",model:(te,{writer:ne})=>te.parent&&te.parent.is("element","li")?ne.createElement(le,{listType:""}):null,converterPriority:"high"}).add((te=>{te.on("element:li",function Hx(){return(te,ne,ie)=>{const{writer:re,schema:le}=ie;if(!ne.modelRange)return;const ce=Array.from(ne.modelRange.getItems({shallow:!0})).filter((te=>le.checkAttribute(te,"listItemId")));if(!ce.length)return;const de=hx.next(),ue=function(te){let ne=0,ie=te.parent;for(;ie;){if(Lx(ie))ne++;else{const te=ie.previousSibling;te&&Lx(te)&&ne++}ie=ie.parent}return ne}(ne.viewItem);let me=ne.viewItem.parent&&ne.viewItem.parent.is("element","ol")?"numbered":"bulleted";const ge=ce[0].getAttribute("listType");ge&&(me=ge);const fe={listItemId:de,listIndent:ue,listType:me};for(const te of ce)te.hasAttribute("listItemId")||re.setAttributes(fe,te);ce.length>1&&ce[1].getAttribute("listItemId")!=fe.listItemId&&ie.keepEmptyElement(ce[0])}}()),te.on("element:ul",Ux(),{priority:"high"}),te.on("element:ol",Ux(),{priority:"high"})})),re||te.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),te.conversion.for("editingDowncast").elementToElement({model:le,view:Gx(ie),converterPriority:"high"}).add((te=>{te.on("attribute",Wx(ie,this._downcastStrategies,ne))})),te.conversion.for("dataDowncast").elementToElement({model:le,view:Gx(ie,{dataPipeline:!0}),converterPriority:"high"}).add((te=>{te.on("attribute",Wx(ie,this._downcastStrategies,ne,{dataPipeline:!0}))})),this.listenTo(ne.document,"change:data",function(te,ne,ie,re){return()=>{const re=te.document.differ.getChanges(),le=[],ce=new Map,de=new Set;for(const te of re)if("insert"==te.type&&"$text"!=te.name)jx(te.position,ce),te.attributes.has("listItemId")?de.add(te.position.nodeAfter):jx(te.position.getShiftedBy(te.length),ce);else if("remove"==te.type&&te.attributes.has("listItemId"))jx(te.position,ce);else if("attribute"==te.type){const ne=te.range.start.nodeAfter;ie.includes(te.attributeKey)?(jx(te.range.start,ce),null===te.attributeNewValue?(jx(te.range.start.getShiftedBy(1),ce),r(ne)&&le.push(ne)):de.add(ne)):ux(ne)&&r(ne)&&le.push(ne)}for(const te of ce.values())le.push(...i(te,de));for(const te of new Set(le))ne.reconvertItem(te)};function i(te,ne){const re=[],le=new Set,ce=[];for(const{node:de,previous:ue}of cx(te,"forward")){if(le.has(de))continue;const te=de.getAttribute("listIndent");ue&&te<ue.getAttribute("listIndent")&&(ce.length=te+1),ce[te]=Object.fromEntries(Array.from(de.getAttributes()).filter((([te])=>ie.includes(te))));const me=gx(de,{direction:"forward"});for(const te of me)le.add(te),(r(te,me)||s(te,ce,ne))&&re.push(te)}return re}function r(te,le){const ce=ne.mapper.toViewElement(te);if(!ce)return!1;if(re.fire("checkElement",{modelElement:te,viewElement:ce}))return!0;if(!te.is("element","paragraph")&&!te.is("element","listItem"))return!1;const de=qx(te,ie,le);return!(!de||!ce.is("element","p"))||!(de||!ce.is("element","span"))}function s(te,ie,le){if(le.has(te))return!1;const ce=ne.mapper.toViewElement(te);let de=ie.length-1;for(let te=ce.parent;!te.is("editableElement");te=te.parent){const ne=Lx(te),le=Px(te);if(!le&&!ne)continue;const ce="checkAttributes:"+(ne?"item":"list");if(re.fire(ce,{viewElement:te,modelAttributes:ie[de]}))break;if(le&&(de--,de<0))return!1}return!0}}(ne,te.editing,ie,this),{priority:"high"}),this.on("checkAttributes:item",((te,{viewElement:ne,modelAttributes:ie})=>{ne.id!=ie.listItemId&&(te.return=!0,te.stop())})),this.on("checkAttributes:list",((te,{viewElement:ne,modelAttributes:ie})=>{ne.name==Vx(ie.listType)&&ne.id==Fx(ie.listType,ie.listIndent)||(te.return=!0,te.stop())}))}_setupModelPostFixing(){const te=this.editor.model,ne=this.getListAttributeNames();te.document.registerPostFixer((ie=>function(te,ne,ie,re){const le=te.document.differ.getChanges(),ce=new Map,de=re.editor.config.get("list.multiBlock");let ue=!1;for(const re of le){if("insert"==re.type&&"$text"!=re.name){const le=re.position.nodeAfter;if(!te.schema.checkAttribute(le,"listItemId"))for(const te of Array.from(le.getAttributeKeys()))ie.includes(te)&&(ne.removeAttribute(te,le),ue=!0);jx(re.position,ce),re.attributes.has("listItemId")||jx(re.position.getShiftedBy(re.length),ce);for(const{item:ne,previousPosition:ie}of te.createRangeIn(le))ux(ne)&&jx(ie,ce)}else"remove"==re.type?jx(re.position,ce):"attribute"==re.type&&ie.includes(re.attributeKey)&&(jx(re.range.start,ce),null===re.attributeNewValue&&jx(re.range.start.getShiftedBy(1),ce));if(!de&&"attribute"==re.type&&iv.includes(re.attributeKey)){const te=re.range.start.nodeAfter;null===re.attributeNewValue&&te&&te.is("element","listItem")?(ne.rename(te,"paragraph"),ue=!0):null===re.attributeOldValue&&te&&te.is("element")&&"listItem"!=te.name&&(ne.rename(te,"listItem"),ue=!0)}}const me=new Set;for(const te of ce.values())ue=re.fire("postFixer",{listNodes:new dx(te),listHead:te,writer:ne,seenIds:me})||ue;return ue}(te,ie,ne,this))),this.on("postFixer",((te,{listNodes:ne,writer:ie})=>{te.return=function(te,ne){let ie=0,re=-1,le=null,ce=!1;for(const{node:de}of te){const te=de.getAttribute("listIndent");if(te>ie){let ue;null===le?(le=te-ie,ue=ie):(le>te&&(le=te),ue=te-le),ue>re+1&&(ue=re+1),ne.setAttribute("listIndent",ue,de),ce=!0,re=ue}else le=null,ie=te+1,re=te}return ce}(ne,ie)||te.return}),{priority:"high"}),this.on("postFixer",((te,{listNodes:ne,writer:ie,seenIds:re})=>{te.return=function(te,ne,ie){const re=new Set;let le=!1;for(const{node:ce}of te){if(re.has(ce))continue;let te=ce.getAttribute("listType"),de=ce.getAttribute("listItemId");if(ne.has(de)&&(de=hx.next()),ne.add(de),ce.is("element","listItem"))ce.getAttribute("listItemId")!=de&&(ie.setAttribute("listItemId",de,ce),le=!0);else for(const ne of gx(ce,{direction:"forward"}))re.add(ne),ne.getAttribute("listType")!=te&&(de=hx.next(),te=ne.getAttribute("listType")),ne.getAttribute("listItemId")!=de&&(ie.setAttribute("listItemId",de,ne),le=!0)}return le}(ne,re,ie)||te.return}),{priority:"high"})}_setupClipboardIntegration(){const te=this.editor.model,ne=this.editor.plugins.get("ClipboardPipeline");this.listenTo(te,"insertContent",function(te){return(ne,[ie,re])=>{const le=ie.is("documentFragment")?Array.from(ie.getChildren()):[ie];if(!le.length)return;const ce=(re?te.createSelection(re):te.document.selection).getFirstPosition();let de;if(ux(ce.parent))de=ce.parent;else{if(!ux(ce.nodeBefore))return;de=ce.nodeBefore}te.change((te=>{const ne=de.getAttribute("listType"),ie=de.getAttribute("listIndent"),re=le[0].getAttribute("listIndent")||0,ce=Math.max(ie-re,0);for(const ie of le){const re=ux(ie);de.is("element","listItem")&&ie.is("element","paragraph")&&te.rename(ie,"listItem"),te.setAttributes({listIndent:(re?ie.getAttribute("listIndent"):0)+ce,listItemId:re?ie.getAttribute("listItemId"):hx.next(),listType:ne},ie)}}))}}(te),{priority:"high"}),this.listenTo(ne,"outputTransformation",((ne,ie)=>{te.change((te=>{const ne=Array.from(ie.content.getChildren()),re=ne[ne.length-1];if(ne.length>1&&re.is("element")&&re.isEmpty&&ne.slice(0,-1).every(ux)&&te.remove(re),"copy"==ie.method||"cut"==ie.method){const ne=Array.from(ie.content.getChildren());yx(ne)&&vx(ne,te)}}))}))}}function Xx(te,ne){const ie=te.document.selection;if(!ie.isCollapsed)return!Ex(te);if("forward"===ne)return!0;const re=ie.getFirstPosition().parent,le=re.previousSibling;return!te.schema.isObject(le)&&(!!le.isEmpty||yx([re,le]))}function tE(te,ne,ie,re){te.ui.componentFactory.add(ne,(le=>{const ce=te.commands.get(ne),de=new br(le);return de.set({label:ie,icon:re,tooltip:!0,isToggleable:!0}),de.bind("isOn","isEnabled").to(ce,"value","isEnabled"),de.on("execute",(()=>{te.execute(ne),te.editing.view.focus()})),de}))}class eE extends Es{static get pluginName(){return"ListUI"}init(){const te=this.editor.t;tE(this.editor,"numberedList",te("Numbered List"),Dc.numberedList),tE(this.editor,"bulletedList",te("Bulleted List"),Dc.bulletedList)}}class oE extends Ss{refresh(){const te=this._getValue();this.value=te,this.isEnabled=null!=te}execute({startIndex:te=1}={}){const ne=this.editor.model,ie=ne.document;let re=Array.from(ie.selection.getSelectedBlocks()).filter((te=>ux(te)&&"numbered"==te.getAttribute("listType")));re=wx(re),ne.change((ne=>{for(const ie of re)ne.setAttribute("listStart",te>=0?te:1,ie)}))}_getValue(){const te=Si(this.editor.model.document.selection.getSelectedBlocks());return te&&ux(te)&&"numbered"==te.getAttribute("listType")?te.getAttribute("listStart"):null}}const rv={},lv={},cv={},mv=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:te,typeAttribute:ne,listType:ie}of mv)rv[te]=ie,lv[te]=ne,ne&&(cv[ne]=te);function lE(){return mv.map((te=>te.listStyle))}function cE(te){return rv[te]||null}function dE(te){return cv[te]||null}function hE(te){return lv[te]||null}class uE extends Ss{constructor(te,ne,ie){super(te),this.defaultType=ne,this._supportedTypes=ie}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(te={}){const ne=this.editor.model,ie=ne.document;ne.change((ne=>{this._tryToConvertItemsToList(te);let re=Array.from(ie.selection.getSelectedBlocks()).filter((te=>te.hasAttribute("listType")));if(re.length){re=wx(re);for(const ie of re)ne.setAttribute("listStyle",te.type||this.defaultType,ie)}}))}isStyleTypeSupported(te){return!this._supportedTypes||this._supportedTypes.includes(te)}_getValue(){const te=Si(this.editor.model.document.selection.getSelectedBlocks());return ux(te)?te.getAttribute("listStyle"):null}_checkEnabled(){const te=this.editor,ne=te.commands.get("numberedList"),ie=te.commands.get("bulletedList");return ne.isEnabled||ie.isEnabled}_tryToConvertItemsToList(te){if(!te.type)return;const ne=cE(te.type);if(!ne)return;const ie=this.editor,re=`${ne}List`;ie.commands.get(re).value||ie.execute(re)}}class mE extends Ss{refresh(){const te=this._getValue();this.value=te,this.isEnabled=null!=te}execute(te={}){const ne=this.editor.model,ie=ne.document;let re=Array.from(ie.selection.getSelectedBlocks()).filter((te=>ux(te)&&"numbered"==te.getAttribute("listType")));re=wx(re),ne.change((ne=>{for(const ie of re)ne.setAttribute("listReversed",!!te.reversed,ie)}))}_getValue(){const te=Si(this.editor.model.document.selection.getSelectedBlocks());return ux(te)&&"numbered"==te.getAttribute("listType")?te.getAttribute("listReversed"):null}}function gE(te){return(ne,ie,re)=>{const{writer:le,schema:ce,consumable:de}=re;if(!1===de.test(ie.viewItem,te.viewConsumables))return;ie.modelRange||Object.assign(ie,re.convertChildren(ie.viewItem,ie.modelCursor));let ue=!1;for(const ne of ie.modelRange.getItems({shallow:!0}))ce.checkAttribute(ne,te.attributeName)&&te.appliesToListItem(ne)&&(ne.hasAttribute(te.attributeName)||(le.setAttribute(te.attributeName,te.getAttributeOnUpcast(ie.viewItem),ne),ue=!0));ue&&de.consume(ie.viewItem,te.viewConsumables)}}class pE extends Es{static get pluginName(){return"ListPropertiesUtils"}getAllSupportedStyleTypes(){return lE()}getListTypeFromListStyleType(te){return cE(te)}getListStyleTypeFromTypeAttribute(te){return dE(te)}getTypeAttributeFromListStyleType(te){return hE(te)}}const gv="default";class kE extends Es{static get requires(){return[Jx,pE]}static get pluginName(){return"ListPropertiesEditing"}constructor(te){super(te),te.config.define("list.properties",{styles:!0,startIndex:!1,reversed:!1})}init(){const te=this.editor,ne=te.model,ie=te.plugins.get(Jx),re=function(te){const ne=[];if(te.styles){const ie="object"==typeof te.styles&&te.styles.useAttribute;ne.push({attributeName:"listStyle",defaultValue:gv,viewConsumables:{styles:"list-style-type"},addCommand(te){let ne=lE();ie&&(ne=ne.filter((te=>!!hE(te)))),te.commands.add("listStyle",new uE(te,gv,ne))},appliesToListItem:te=>"numbered"==te.getAttribute("listType")||"bulleted"==te.getAttribute("listType"),hasValidAttribute(te){if(!this.appliesToListItem(te))return!te.hasAttribute("listStyle");if(!te.hasAttribute("listStyle"))return!1;const ne=te.getAttribute("listStyle");return ne==gv||cE(ne)==te.getAttribute("listType")},setAttributeOnDowncast(te,ne,re){if(ne&&ne!==gv){if(!ie)return void te.setStyle("list-style-type",ne,re);{const ie=hE(ne);if(ie)return void te.setAttribute("type",ie,re)}}te.removeStyle("list-style-type",re),te.removeAttribute("type",re)},getAttributeOnUpcast(te){const ne=te.getStyle("list-style-type");if(ne)return ne;const ie=te.getAttribute("type");return ie?dE(ie):gv}})}return te.reversed&&ne.push({attributeName:"listReversed",defaultValue:!1,viewConsumables:{attributes:"reversed"},addCommand(te){te.commands.add("listReversed",new mE(te))},appliesToListItem:te=>"numbered"==te.getAttribute("listType"),hasValidAttribute(te){return this.appliesToListItem(te)==te.hasAttribute("listReversed")},setAttributeOnDowncast(te,ne,ie){ne?te.setAttribute("reversed","reversed",ie):te.removeAttribute("reversed",ie)},getAttributeOnUpcast:te=>te.hasAttribute("reversed")}),te.startIndex&&ne.push({attributeName:"listStart",defaultValue:1,viewConsumables:{attributes:"start"},addCommand(te){te.commands.add("listStart",new oE(te))},appliesToListItem:te=>"numbered"==te.getAttribute("listType"),hasValidAttribute(te){return this.appliesToListItem(te)==te.hasAttribute("listStart")},setAttributeOnDowncast(te,ne,ie){0==ne||ne>1?te.setAttribute("start",ne,ie):te.removeAttribute("start",ie)},getAttributeOnUpcast(te){const ne=te.getAttribute("start");return ne>=0?ne:1}}),ne}(te.config.get("list.properties"));for(const le of re)le.addCommand(te),ne.schema.extend("$listItem",{allowAttributes:le.attributeName}),ie.registerDowncastStrategy({scope:"list",attributeName:le.attributeName,setAttributeOnDowncast(te,ne,ie){le.setAttributeOnDowncast(te,ne,ie)}});te.conversion.for("upcast").add((te=>{for(const ne of re)te.on("element:ol",gE(ne)),te.on("element:ul",gE(ne))})),ie.on("checkAttributes:list",((te,{viewElement:ne,modelAttributes:ie})=>{for(const le of re)le.getAttributeOnUpcast(ne)!=ie[le.attributeName]&&(te.return=!0,te.stop())})),this.listenTo(te.commands.get("indentList"),"afterExecute",((te,ie)=>{ne.change((te=>{for(const ne of ie)for(const ie of re)ie.appliesToListItem(ne)&&te.setAttribute(ie.attributeName,ie.defaultValue,ne)}))})),ie.on("postFixer",((te,{listNodes:ne,writer:ie})=>{for(const{node:le}of ne)for(const ne of re)ne.hasValidAttribute(le)||(ne.appliesToListItem(le)?ie.setAttribute(ne.attributeName,ne.defaultValue,le):ie.removeAttribute(ne.attributeName,le),te.return=!0)})),ie.on("postFixer",((te,{listNodes:ne,writer:ie})=>{for(const{node:le,previousNodeInList:ce}of ne)if(ce&&ce.getAttribute("listType")==le.getAttribute("listType"))for(const ne of re){const{attributeName:re}=ne;if(!ne.appliesToListItem(le))continue;const de=ce.getAttribute(re);le.getAttribute(re)!=de&&(ie.setAttribute(re,de,le),te.return=!0)}}))}}var bv=i(9938);Fo()(bv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bv.Z.locals;class AE extends Hi{constructor(te,{enabledProperties:ne,styleButtonViews:ie,styleGridAriaLabel:re}){super(te),this.stylesView=null,this.additionalPropertiesCollapsibleView=null,this.startIndexFieldView=null,this.reversedSwitchButtonView=null,this.focusTracker=new Ti,this.keystrokes=new Ii,this.focusables=new Oi;const le=["ck","ck-list-properties"];this.children=this.createCollection(),this.focusCycler=new As({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),ne.styles?(this.stylesView=this._createStylesView(ie,re),this.children.add(this.stylesView)):le.push("ck-list-properties_without-styles"),(ne.startIndex||ne.reversed)&&(this._addNumberedListPropertyViews(ne),le.push("ck-list-properties_with-numbered-properties")),this.setTemplate({tag:"div",attributes:{class:le},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element),(this.startIndexFieldView||this.reversedSwitchButtonView)&&(this.focusables.add(this.children.last.buttonView),this.focusTracker.add(this.children.last.buttonView.element));for(const te of this.stylesView.children)this.stylesView.focusTracker.add(te.element);o({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>go.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=te=>te.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.reversedSwitchButtonView&&(this.focusables.add(this.reversedSwitchButtonView),this.focusTracker.add(this.reversedSwitchButtonView.element)),this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createStylesView(te,ne){const ie=new Hi(this.locale);return ie.children=ie.createCollection(),ie.children.addMany(te),ie.setTemplate({tag:"div",attributes:{"aria-label":ne,class:["ck","ck-list-styles-list"]},children:ie.children}),ie.children.delegate("execute").to(this),ie.focus=function(){this.children.first.focus()},ie.focusTracker=new Ti,ie.keystrokes=new Ii,ie.render(),ie.keystrokes.listenTo(ie.element),ie}_addNumberedListPropertyViews(te){const ne=this.locale.t,ie=[];te.startIndex&&(this.startIndexFieldView=this._createStartIndexField(),ie.push(this.startIndexFieldView)),te.reversed&&(this.reversedSwitchButtonView=this._createReversedSwitchButton(),ie.push(this.reversedSwitchButtonView)),te.styles?(this.additionalPropertiesCollapsibleView=new xr(this.locale,ie),this.additionalPropertiesCollapsibleView.set({label:ne("List properties"),isCollapsed:!0}),this.additionalPropertiesCollapsibleView.buttonView.bind("isEnabled").toMany(ie,"isEnabled",((...te)=>te.some((te=>te)))),this.additionalPropertiesCollapsibleView.buttonView.on("change:isEnabled",((te,ne,ie)=>{ie||(this.additionalPropertiesCollapsibleView.isCollapsed=!0)})),this.children.add(this.additionalPropertiesCollapsibleView)):this.children.addMany(ie)}_createStartIndexField(){const te=this.locale.t,ne=new rs(this.locale,Cg);return ne.set({label:te("Start at"),class:"ck-numbered-list-properties__start-index"}),ne.fieldView.set({min:0,step:1,value:1,inputMode:"numeric"}),ne.fieldView.on("input",(()=>{const ie=ne.fieldView.element,re=ie.valueAsNumber;Number.isNaN(re)||(ie.checkValidity()?this.fire("listStart",{startIndex:re}):ne.errorText=te("Start index must be greater than 0."))})),ne}_createReversedSwitchButton(){const te=this.locale.t,ne=new Cr(this.locale);return ne.set({withText:!0,label:te("Reversed order"),class:"ck-numbered-list-properties__reversed-order"}),ne.delegate("execute").to(this,"listReversed"),ne}}var wv=i(2591);Fo()(wv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),wv.Z.locals;class vE extends Es{static get pluginName(){return"ListPropertiesUI"}init(){const te=this.editor,ne=te.locale.t,ie=te.config.get("list.properties");ie.styles&&te.ui.componentFactory.add("bulletedList",yE({editor:te,parentCommandName:"bulletedList",buttonLabel:ne("Bulleted List"),buttonIcon:Dc.bulletedList,styleGridAriaLabel:ne("Bulleted list styles toolbar"),styleDefinitions:[{label:ne("Toggle the disc list style"),tooltip:ne("Disc"),type:"disc",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"/></svg>'},{label:ne("Toggle the circle list style"),tooltip:ne("Circle"),type:"circle",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"/></svg>'},{label:ne("Toggle the square list style"),tooltip:ne("Square"),type:"square",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M14 27v6H8v-6h6zm0-9v6H8v-6h6zm0-9v6H8V9h6z"/></svg>'}]})),(ie.styles||ie.startIndex||ie.reversed)&&te.ui.componentFactory.add("numberedList",yE({editor:te,parentCommandName:"numberedList",buttonLabel:ne("Numbered List"),buttonIcon:Dc.numberedList,styleGridAriaLabel:ne("Numbered list styles toolbar"),styleDefinitions:[{label:ne("Toggle the decimal list style"),tooltip:ne("Decimal"),type:"decimal",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M10.29 15V8.531H9.286c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.343 0v-1.235h-1.235V15h1.235zM11.3 24v-1.147H8.848c.064-.111.148-.226.252-.343.104-.117.351-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.494-.824.104-.263.156-.539.156-.829 0-.51-.182-.936-.545-1.279-.363-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.153-.155.358-.233.616-.233.26 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.468.536-1.024 1.055-.692.641-1.155 1.156-1.389 1.544-.234.389-.375.8-.422 1.233H11.3zm2.333 0v-1.235h-1.235V24h1.235zM9.204 34.11c.615 0 1.129-.2 1.542-.598.413-.398.62-.88.62-1.446 0-.39-.11-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.619-.337.928-.788.928-1.353 0-.399-.151-.756-.453-1.073-.366-.386-.852-.58-1.459-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.668.55c-.16.232-.28.544-.358.933l1.138.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.215 0 .386.065.515.194s.193.302.193.518c0 .255-.087.46-.263.613-.176.154-.43.227-.765.218l-.136 1.006c.22-.061.409-.092.567-.092.24 0 .444.09.61.272.168.182.251.428.251.739 0 .328-.087.589-.261.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.307-.698l-1.196.145c.062.542.285.98.668 1.316.384.335.868.503 1.45.503zm4.43-.11v-1.235h-1.236V34h1.235z"/></svg>'},{label:ne("Toggle the decimal with leading zero list style"),tooltip:ne("Decimal with leading zero"),type:"decimal-leading-zero",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M5.714 15.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm6.078.914V8.531H10.79c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.344 0v-1.235h-1.235V15h1.235zm-9.422 9.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm7.088.914v-1.147H10.35c.065-.111.149-.226.253-.343.104-.117.35-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.493-.824.104-.263.156-.539.156-.829 0-.51-.181-.936-.544-1.279-.364-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.152-.155.357-.233.615-.233.261 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.467.536-1.024 1.055-.691.641-1.154 1.156-1.388 1.544-.235.389-.375.8-.422 1.233h4.328zm2.334 0v-1.235h-1.235V24h1.235zM5.714 34.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm4.992 1.024c.616 0 1.13-.2 1.543-.598.413-.398.62-.88.62-1.446 0-.39-.111-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.618-.337.927-.788.927-1.353 0-.399-.15-.756-.452-1.073-.366-.386-.853-.58-1.46-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.667.55c-.16.232-.28.544-.359.933l1.139.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.214 0 .386.065.515.194s.193.302.193.518c0 .255-.088.46-.264.613-.175.154-.43.227-.764.218l-.136 1.006c.22-.061.408-.092.566-.092.24 0 .444.09.611.272.167.182.25.428.25.739 0 .328-.086.589-.26.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.308-.698l-1.195.145c.062.542.284.98.668 1.316.384.335.867.503 1.45.503zm4.43-.11v-1.235h-1.235V34h1.235z"/></svg>'},{label:ne("Toggle the lower–roman list style"),tooltip:ne("Lower–roman"),type:"lower-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.88 8.7V7.558h-1.234V8.7h1.234zm0 5.3V9.333h-1.234V14h1.234zm2.5 0v-1.235h-1.234V14h1.235zm-4.75 4.7v-1.142H8.395V18.7H9.63zm0 5.3v-4.667H8.395V24H9.63zm2.5-5.3v-1.142h-1.234V18.7h1.235zm0 5.3v-4.667h-1.234V24h1.235zm2.501 0v-1.235h-1.235V24h1.235zM7.38 28.7v-1.142H6.145V28.7H7.38zm0 5.3v-4.667H6.145V34H7.38zm2.5-5.3v-1.142H8.646V28.7H9.88zm0 5.3v-4.667H8.646V34H9.88zm2.5-5.3v-1.142h-1.234V28.7h1.235zm0 5.3v-4.667h-1.234V34h1.235zm2.501 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:ne("Toggle the upper–roman list style"),tooltip:ne("Upper-roman"),type:"upper-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.916 15V8.558h-1.301V15h1.3zm2.465 0v-1.235h-1.235V15h1.235zM9.665 25v-6.442h-1.3V25h1.3zm2.5 0v-6.442h-1.3V25h1.3zm2.466 0v-1.235h-1.235V25h1.235zm-7.216 9v-6.442h-1.3V34h1.3zm2.5 0v-6.442h-1.3V34h1.3zm2.501 0v-6.442h-1.3V34h1.3zm2.465 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:ne("Toggle the lower–latin list style"),tooltip:ne("Lower-latin"),type:"lower-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M9.62 14.105c.272 0 .528-.05.768-.153s.466-.257.677-.462c.009.024.023.072.044.145.047.161.086.283.119.365h1.221a2.649 2.649 0 0 1-.222-.626c-.04-.195-.059-.498-.059-.908l.013-1.441c0-.536-.055-.905-.165-1.105-.11-.201-.3-.367-.569-.497-.27-.13-.68-.195-1.23-.195-.607 0-1.064.108-1.371.325-.308.217-.525.55-.65 1.002l1.12.202c.076-.217.176-.369.299-.455.123-.086.294-.13.514-.13.325 0 .546.05.663.152.118.101.176.27.176.508v.123c-.222.093-.622.194-1.2.303-.427.082-.755.178-.982.288-.227.11-.403.268-.53.474a1.327 1.327 0 0 0-.188.706c0 .398.138.728.415.988.277.261.656.391 1.136.391zm.368-.87a.675.675 0 0 1-.492-.189.606.606 0 0 1-.193-.448c0-.176.08-.32.241-.435.106-.07.33-.142.673-.215a7.19 7.19 0 0 0 .751-.19v.247c0 .296-.016.496-.048.602a.773.773 0 0 1-.295.409 1.07 1.07 0 0 1-.637.22zm4.645.765v-1.235h-1.235V14h1.235zM10.2 25.105c.542 0 1.003-.215 1.382-.646.38-.43.57-1.044.57-1.84 0-.771-.187-1.362-.559-1.774a1.82 1.82 0 0 0-1.41-.617c-.522 0-.973.216-1.354.65v-2.32H7.594V25h1.147v-.686a1.9 1.9 0 0 0 .67.592c.26.133.523.2.79.2zm-.299-.975c-.354 0-.638-.164-.852-.492-.153-.232-.229-.59-.229-1.073 0-.468.098-.818.295-1.048a.93.93 0 0 1 .738-.345c.302 0 .55.118.743.354.193.236.29.62.29 1.154 0 .5-.096.868-.288 1.1-.192.233-.424.35-.697.35zm4.478.87v-1.235h-1.234V25h1.234zm-4.017 9.105c.6 0 1.08-.142 1.437-.426.357-.284.599-.704.725-1.261l-1.213-.207c-.061.326-.167.555-.316.688a.832.832 0 0 1-.576.2.916.916 0 0 1-.75-.343c-.185-.228-.278-.62-.278-1.173 0-.498.091-.853.274-1.066.183-.212.429-.318.736-.318.232 0 .42.061.565.184.145.123.238.306.28.55l1.216-.22c-.146-.501-.387-.874-.722-1.119-.336-.244-.788-.366-1.356-.366-.695 0-1.245.214-1.653.643-.407.43-.61 1.03-.61 1.8 0 .762.202 1.358.608 1.788.406.431.95.646 1.633.646zM14.633 34v-1.235h-1.235V34h1.235z"/></svg>'},{label:ne("Toggle the upper–latin list style"),tooltip:ne("Upper-latin"),type:"upper-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="m7.88 15 .532-1.463h2.575L11.549 15h1.415l-2.58-6.442H9.01L6.5 15h1.38zm2.69-2.549H8.811l.87-2.39.887 2.39zM14.88 15v-1.235h-1.234V15h1.234zM9.352 25c.83-.006 1.352-.02 1.569-.044.346-.038.636-.14.872-.305.236-.166.422-.387.558-.664.137-.277.205-.562.205-.855 0-.372-.106-.695-.317-.97-.21-.276-.512-.471-.905-.585a1.51 1.51 0 0 0 .661-.567 1.5 1.5 0 0 0 .244-.83c0-.28-.066-.53-.197-.754a1.654 1.654 0 0 0-.495-.539 1.676 1.676 0 0 0-.672-.266c-.25-.042-.63-.063-1.14-.063H7.158V25h2.193zm.142-3.88H8.46v-1.49h.747c.612 0 .983.007 1.112.022.217.026.38.102.49.226.11.125.165.287.165.486a.68.68 0 0 1-.192.503.86.86 0 0 1-.525.23 11.47 11.47 0 0 1-.944.023h.18zm.17 2.795H8.46v-1.723h1.05c.592 0 .977.03 1.154.092.177.062.313.16.406.295a.84.84 0 0 1 .14.492c0 .228-.06.41-.181.547a.806.806 0 0 1-.473.257c-.126.026-.423.04-.892.04zM14.88 25v-1.235h-1.234V25h1.234zm-5.018 9.11c.691 0 1.262-.17 1.711-.512.45-.341.772-.864.965-1.567l-1.261-.4c-.109.472-.287.818-.536 1.037-.25.22-.547.33-.892.33-.47 0-.85-.173-1.143-.519-.293-.345-.44-.925-.44-1.74 0-.767.15-1.322.447-1.665.297-.343.684-.514 1.162-.514.346 0 .64.096.881.29.242.193.4.457.477.79l1.288-.307c-.147-.516-.367-.911-.66-1.187-.492-.465-1.132-.698-1.92-.698-.902 0-1.63.296-2.184.89-.554.593-.83 1.426-.83 2.498 0 1.014.275 1.813.825 2.397.551.585 1.254.877 2.11.877zM14.88 34v-1.235h-1.234V34h1.234z"/></svg>'}]}))}}function yE({editor:te,parentCommandName:ne,buttonLabel:ie,buttonIcon:re,styleGridAriaLabel:le,styleDefinitions:ce}){const de=te.commands.get(ne);return ue=>{const me=mg(ue,lg),ge=me.buttonView;return me.bind("isEnabled").to(de),me.class="ck-list-styles-dropdown",ge.on("execute",(()=>{te.execute(ne),te.editing.view.focus()})),ge.set({label:ie,icon:re,tooltip:!0,isToggleable:!0}),ge.bind("isOn").to(de,"value",(te=>!!te)),me.once("change:isOpen",(()=>{const ie=function({editor:te,dropdownView:ne,parentCommandName:ie,styleDefinitions:re,styleGridAriaLabel:le}){const ce=te.locale,de=te.config.get("list.properties");let ue=null;if("numberedList"!=ie&&(de.startIndex=!1,de.reversed=!1),de.styles){const ne=te.commands.get("listStyle"),le=function({editor:te,listStyleCommand:ne,parentCommandName:ie}){const re=te.locale,le=te.commands.get(ie);return({label:ie,type:ce,icon:de,tooltip:ue})=>{const me=new br(re);return me.set({label:ie,icon:de,tooltip:ue}),ne.on("change:value",(()=>{me.isOn=ne.value===ce})),me.on("execute",(()=>{le.value?ne.value!==ce?te.execute("listStyle",{type:ce}):te.execute("listStyle",{type:ne.defaultType}):te.model.change((()=>{te.execute("listStyle",{type:ce})}))})),me}}({editor:te,parentCommandName:ie,listStyleCommand:ne}),ce="function"==typeof ne.isStyleTypeSupported?te=>ne.isStyleTypeSupported(te.type):()=>!0;ue=re.filter(ce).map(le)}const me=new AE(ce,{styleGridAriaLabel:le,enabledProperties:de,styleButtonViews:ue});if(de.styles&&bg(ne,(()=>me.stylesView.children.find((te=>te.isOn)))),de.startIndex){const ne=te.commands.get("listStart");me.startIndexFieldView.bind("isEnabled").to(ne),me.startIndexFieldView.fieldView.bind("value").to(ne),me.on("listStart",((ne,ie)=>te.execute("listStart",ie)))}if(de.reversed){const ne=te.commands.get("listReversed");me.reversedSwitchButtonView.bind("isEnabled").to(ne),me.reversedSwitchButtonView.bind("isOn").to(ne,"value",(te=>!!te)),me.on("listReversed",(()=>{const ie=ne.value;te.execute("listReversed",{reversed:!ie})}))}return me.delegate("execute").to(ne),me}({editor:te,dropdownView:me,parentCommandName:ne,styleGridAriaLabel:le,styleDefinitions:ce});me.panelView.children.add(ie)})),me.on("execute",(()=>{te.editing.view.focus()})),me}}wi("Ctrl+Enter");var Iv=i(9292);function SE(te,ne){const n=(ie,re,le)=>{if(!le.consumable.consume(re.item,ie.name))return;const ce=re.attributeNewValue,de=le.writer,ue=le.mapper.toViewElement(re.item),me=[...ue.getChildren()].find((te=>te.getCustomProperty("media-content")));de.remove(me);const ge=te.getMediaViewElement(de,ce,ne);de.insert(de.createPositionAt(ue,0),ge)};return te=>{te.on("attribute:url:media",n)}}function TE(te){const ne=te.getSelectedElement();return ne&&function(te){return!!te.getCustomProperty("media")&&Rb(te)}(ne)?ne:null}function IE(te,ne,ie,re){return te.createContainerElement("figure",{class:"media"},[ne.getMediaViewElement(te,ie,re),te.createSlot()])}function ME(te){const ne=te.getSelectedElement();return ne&&ne.is("element","media")?ne:null}function BE(te,ne,ie,re){te.change((le=>{const ce=le.createElement("media",{url:ne});te.insertObject(ce,ie,null,{setSelection:"on",findOptimalPosition:re?"auto":void 0})}))}Fo()(Iv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Iv.Z.locals,wi("Ctrl+Enter");class NE extends Ss{refresh(){const te=this.editor.model,ne=te.document.selection,ie=ME(ne);this.value=ie?ie.getAttribute("url"):void 0,this.isEnabled=function(te){const ne=te.getSelectedElement();return!!ne&&"media"===ne.name}(ne)||function(te,ne){let ie=Wb(te,ne).start.parent;return ie.isEmpty&&!ne.schema.isLimit(ie)&&(ie=ie.parent),ne.schema.checkChild(ie,"media")}(ne,te)}execute(te){const ne=this.editor.model,ie=ne.document.selection,re=ME(ie);re?ne.change((ne=>{ne.setAttribute("url",te,re)})):BE(ne,te,ie,!0)}}class zE{constructor(te,ne){const ie=ne.providers,re=ne.extraProviders||[],le=new Set(ne.removeProviders),ce=ie.concat(re).filter((te=>{const ne=te.name;return ne?!le.has(ne):(_("media-embed-no-provider-name",{provider:te}),!1)}));this.locale=te,this.providerDefinitions=ce}hasMedia(te){return!!this._getMedia(te)}getMediaViewElement(te,ne,ie){return this._getMedia(ne).getViewElement(te,ie)}_getMedia(te){if(!te)return new PE(this.locale);te=te.trim();for(const ne of this.providerDefinitions){const ie=ne.html,re=_i(ne.url);for(const ne of re){const re=this._getUrlMatches(te,ne);if(re)return new PE(this.locale,te,re,ie)}}return null}_getUrlMatches(te,ne){let ie=te.match(ne);if(ie)return ie;let re=te.replace(/^https?:\/\//,"");return ie=re.match(ne),ie||(re=re.replace(/^www\./,""),ie=re.match(ne),ie||null)}}class PE{constructor(te,ne,ie,re){this.url=this._getValidUrl(ne),this._locale=te,this._match=ie,this._previewRenderer=re}getViewElement(te,ne){const ie={};let re;if(ne.renderForEditingView||ne.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(ie["data-oembed-url"]=this.url),ne.renderForEditingView&&(ie.class="ck-media__wrapper");const le=this._getPreviewHtml(ne);re=te.createRawElement("div",ie,((te,ne)=>{ne.setContentOf(te,le)}))}else this.url&&(ie.url=this.url),re=te.createEmptyElement(ne.elementName,ie);return te.setCustomProperty("media-content",!0,re),re}_getPreviewHtml(te){return this._previewRenderer?this._previewRenderer(this._match):this.url&&te.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const te=new hr,ne=this._locale.t;return te.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',te.viewBox="0 0 64 42",new Ui({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[te]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":ne("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(te){return te?te.match(/^https?/)?te:"https://"+te:null}}var Mv=i(1922);Fo()(Mv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Mv.Z.locals;class RE extends Es{static get pluginName(){return"MediaEmbedEditing"}constructor(te){super(te),te.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:te=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${te[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:te=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${te[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:te=>{const ne=te[1],ie=te[2];return`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${ne}${ie?`?start=${ie}`:""}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:te=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${te[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new zE(te.locale,te.config.get("mediaEmbed"))}init(){const te=this.editor,ne=te.model.schema,ie=te.t,re=te.conversion,le=te.config.get("mediaEmbed.previewsInData"),ce=te.config.get("mediaEmbed.elementName"),de=this.registry;te.commands.add("mediaEmbed",new NE(te)),ne.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),re.for("dataDowncast").elementToStructure({model:"media",view:(te,{writer:ne})=>{const ie=te.getAttribute("url");return IE(ne,de,ie,{elementName:ce,renderMediaPreview:!!ie&&le})}}),re.for("dataDowncast").add(SE(de,{elementName:ce,renderMediaPreview:le})),re.for("editingDowncast").elementToStructure({model:"media",view:(te,{writer:ne})=>{const re=te.getAttribute("url");return function(te,ne,ie){return ne.setCustomProperty("media",!0,te),Vb(te,ne,{label:ie})}(IE(ne,de,re,{elementName:ce,renderForEditingView:!0}),ne,ie("media widget"))}}),re.for("editingDowncast").add(SE(de,{elementName:ce,renderForEditingView:!0})),re.for("upcast").elementToElement({view:te=>["oembed",ce].includes(te.name)&&te.getAttribute("url")?{name:!0}:null,model:(te,{writer:ne})=>{const ie=te.getAttribute("url");return de.hasMedia(ie)?ne.createElement("media",{url:ie}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(te,{writer:ne})=>{const ie=te.getAttribute("data-oembed-url");return de.hasMedia(ie)?ne.createElement("media",{url:ie}):null}}).add((te=>{te.on("element:figure",((te,ne,ie)=>{if(!ie.consumable.consume(ne.viewItem,{name:!0,classes:"media"}))return;const{modelRange:re,modelCursor:le}=ie.convertChildren(ne.viewItem,ne.modelCursor);ne.modelRange=re,ne.modelCursor=le,Si(re.getItems())||ie.consumable.revert(ne.viewItem,{name:!0,classes:"media"})}))}))}}const Nv=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class FE extends Es{static get requires(){return[zw,jk,$w]}static get pluginName(){return"AutoMediaEmbed"}constructor(te){super(te),this._timeoutId=null,this._positionToInsert=null}init(){const te=this.editor,ne=te.model.document,ie=te.plugins.get("ClipboardPipeline");this.listenTo(ie,"inputTransformation",(()=>{const te=ne.selection.getFirstRange(),ie=du.fromPosition(te.start);ie.stickiness="toPrevious";const re=du.fromPosition(te.end);re.stickiness="toNext",ne.once("change:data",(()=>{this._embedMediaBetweenPositions(ie,re),ie.detach(),re.detach()}),{priority:"high"})})),te.commands.get("undo").on("execute",(()=>{this._timeoutId&&(go.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedMediaBetweenPositions(te,ne){const ie=this.editor,re=ie.plugins.get(RE).registry,le=new xd(te,ne),ce=le.getWalker({ignoreElementEnd:!0});let de="";for(const te of ce)te.item.is("$textProxy")&&(de+=te.item.data);de=de.trim(),de.match(Nv)&&re.hasMedia(de)&&ie.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=du.fromPosition(te),this._timeoutId=go.window.setTimeout((()=>{ie.model.change((te=>{this._timeoutId=null,te.remove(le),le.detach();let ne=null;"$graveyard"!==this._positionToInsert.root.rootName&&(ne=this._positionToInsert),BE(ie.model,de,ne,!1),this._positionToInsert.detach(),this._positionToInsert=null})),ie.plugins.get(jk).requestUndoOnBackspace()}),100)):le.detach()}}var Pv=i(7138);Fo()(Pv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Pv.Z.locals;class UE extends Hi{constructor(te,ne){super(ne);const ie=ne.t;this.focusTracker=new Ti,this.keystrokes=new Ii,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(ie("Save"),Dc.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",(te=>!!te)),this.cancelButtonView=this._createButton(ie("Cancel"),Dc.cancel,"ck-button-cancel","cancel"),this._focusables=new Oi,this._focusCycler=new As({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=te,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),n({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((te=>{this._focusables.add(te),this.focusTracker.add(te.element)})),this.keystrokes.listenTo(this.element);const t=te=>te.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(te){this.urlInputView.fieldView.element.value=te.trim()}isValid(){this.resetFormStatus();for(const te of this._validators){const ne=te(this);if(ne)return this.urlInputView.errorText=ne,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const te=this.locale.t,ne=new rs(this.locale,Ag),ie=ne.fieldView;return this._urlInputViewInfoDefault=te("Paste the media URL in the input."),this._urlInputViewInfoTip=te("Tip: Paste the URL into the content to embed faster."),ne.label=te("Media URL"),ne.infoText=this._urlInputViewInfoDefault,ie.on("input",(()=>{ne.infoText=ie.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=ie.element.value.trim()})),ne}_createButton(te,ne,ie,re){const le=new br(this.locale);return le.set({label:te,icon:ne,tooltip:!0}),le.extendTemplate({attributes:{class:ie}}),re&&le.delegate("execute").to(this,re),le}}class WE extends Es{static get requires(){return[RE]}static get pluginName(){return"MediaEmbedUI"}init(){const te=this.editor,ne=te.commands.get("mediaEmbed");te.ui.componentFactory.add("mediaEmbed",(te=>{const ie=mg(te);return this._setUpDropdown(ie,ne),ie}))}_setUpDropdown(te,ne){const ie=this.editor,re=ie.t,le=te.buttonView,ce=ie.plugins.get(RE).registry;te.once("change:isOpen",(()=>{const re=new(e(UE))(function(te,ne){return[ne=>{if(!ne.url.length)return te("The URL must not be empty.")},ie=>{if(!ne.hasMedia(ie.url))return te("This media URL is not supported.")}]}(ie.t,ce),ie.locale);te.panelView.children.add(re),le.on("open",(()=>{re.disableCssTransitions(),re.url=ne.value||"",re.urlInputView.fieldView.select(),re.enableCssTransitions()}),{priority:"low"}),te.on("submit",(()=>{re.isValid()&&(ie.execute("mediaEmbed",re.url),ie.editing.view.focus())})),te.on("change:isOpen",(()=>re.resetFormStatus())),te.on("cancel",(()=>{ie.editing.view.focus()})),re.delegate("submit","cancel").to(te),re.urlInputView.fieldView.bind("value").to(ne,"value"),re.urlInputView.bind("isEnabled").to(ne,"isEnabled")})),te.bind("isEnabled").to(ne),le.set({label:re("Insert media"),icon:'<svg viewBox="0 0 22 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.587 1.5c-.612 0-.601-.029-.601.551v14.84c0 .59-.01.559.591.559h18.846c.602 0 .591.03.591-.56V2.052c0-.58.01-.55-.591-.55H1.587Zm.701.971h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-14.24 1h13.008v12H4.467l.029-12Zm-2.208 1h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003l-.029 1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h.974v1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Z"/><path d="M8.374 6.648a.399.399 0 0 1 .395-.4.402.402 0 0 1 .2.049l5.148 2.824a.4.4 0 0 1 0 .7l-5.148 2.824a.403.403 0 0 1-.595-.35V6.648Z"/></svg>',tooltip:!0})}}var Bv=i(8705);function $E(te,ne,ie="    "){return`${ie.repeat(Math.max(0,ne))}${te}`}Fo()(Bv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bv.Z.locals;var zv=i(4420);Fo()(zv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),zv.Z.locals;const Yv="SourceEditingMode";function JE(te){return function(te){return te.startsWith("<")}(te)?function ZE(te){const ne=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],ie=ne.map((te=>te.name)).join("|"),re=te.replace(new RegExp(`</?(${ie})( .*?)?>`,"g"),"\n$&\n").replace(/<br[^>]*>/g,"$&\n").split("\n");let le=0;return re.filter((te=>te.length)).map((te=>function(te,ne){return ne.some((ne=>!ne.isVoid&&!!new RegExp(`<${ne.name}( .*?)?>`).test(te)))}(te,ne)?$E(te,le++):function(te,ne){return ne.some((ne=>new RegExp(`</${ne.name}>`).test(te)))}(te,ne)?$E(te,--le):$E(te,le))).join("\n")}(te):te}function XE(te,ne){const{modelAttribute:ie,styleName:re,viewElement:le,defaultValue:ce,reduceBoxSides:de=!1,shouldUpcast:ue=(()=>!0)}=ne;te.for("upcast").attributeToAttribute({view:{name:le,styles:{[re]:/[\s\S]+/}},model:{key:ie,value:te=>{if(!ue(te))return;const ne=te.getNormalizedStyle(re),ie=de?oD(ne):ne;return ce!==ie?ie:void 0}}})}function tD(te,ne,ie,re){te.for("upcast").add((te=>te.on("element:"+ne,((te,ne,le)=>{if(!ne.modelRange)return;const ce=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter((te=>ne.viewItem.hasStyle(te)));if(!ce.length)return;const de={styles:ce};if(!le.consumable.test(ne.viewItem,de))return;const ue=[...ne.modelRange.getItems({shallow:!0})].pop();le.consumable.consume(ne.viewItem,de);const me={style:ne.viewItem.getNormalizedStyle("border-style"),color:ne.viewItem.getNormalizedStyle("border-color"),width:ne.viewItem.getNormalizedStyle("border-width")},ge={style:oD(me.style),color:oD(me.color),width:oD(me.width)};ge.style!==re.style&&le.writer.setAttribute(ie.style,ge.style,ue),ge.color!==re.color&&le.writer.setAttribute(ie.color,ge.color,ue),ge.width!==re.width&&le.writer.setAttribute(ie.width,ge.width,ue)}))))}function eD(te,ne){const{modelElement:ie,modelAttribute:re,styleName:le}=ne;te.for("downcast").attributeToAttribute({model:{name:ie,key:re},view:te=>({key:"style",value:{[le]:te}})})}function nD(te,ne){const{modelAttribute:ie,styleName:re}=ne;te.for("downcast").add((te=>te.on(`attribute:${ie}:table`,((te,ne,ie)=>{const{item:le,attributeNewValue:ce}=ne,{mapper:de,writer:ue}=ie;if(!ie.consumable.consume(ne.item,te.name))return;const me=[...de.toViewElement(le).getChildren()].find((te=>te.is("element","table")));ce?ue.setStyle(re,ce,me):ue.removeStyle(re,me)}))))}function oD(te){if(!te)return;const ne=["top","right","bottom","left"];if(!ne.every((ne=>te[ne])))return te;const ie=te.top;return ne.every((ne=>te[ne]===ie))?ie:te}function iD(te,ne,ie,re,le=1){null!=ne&&null!=le&&ne>le?re.setAttribute(te,ne,ie):re.removeAttribute(te,ie)}function rD(te,ne,ie={}){const re=te.createElement("tableCell",ie);return te.insertElement("paragraph",re),te.insert(re,ne),re}function sD(te,ne){const ie=ne.parent.parent,re=parseInt(ie.getAttribute("headingColumns")||"0"),{column:le}=te.getCellLocation(ne);return!!re&&le<re}function aD(te,ne,ie){const{modelAttribute:re}=ie;te.extend("tableCell",{allowAttributes:[re]}),XE(ne,{viewElement:/^(td|th)$/,...ie}),eD(ne,{modelElement:"tableCell",...ie})}function lD(te){const ne=te.getSelectedElement();return ne&&ne.is("element","table")?ne:te.getFirstPosition().findAncestor("table")}function dD(te){return ne=>{ne.on(`element:${te}`,((te,ne,{writer:ie})=>{if(!ne.modelRange)return;const re=ne.modelRange.start.nodeAfter,le=ie.createPositionAt(re,0);if(ne.viewItem.isEmpty)return void ie.insertElement("paragraph",le);const ce=Array.from(re.getChildren());if(ce.every((te=>te.is("element","$marker")))){const te=ie.createElement("paragraph");ie.insert(te,ie.createPositionAt(re,0));for(const ne of ce)ie.move(ie.createRangeOn(ne),ie.createPositionAt(te,"end"))}}),{priority:"low"})}}function hD(te){let ne=0,ie=0;const re=Array.from(te.getChildren()).filter((te=>"th"===te.name||"td"===te.name));for(;ie<re.length&&"th"===re[ie].name;){const te=re[ie];ne+=parseInt(te.getAttribute("colspan")||"1"),ie++}return ne}class uD{constructor(te,ne={}){this._jumpedToStartRow=!1,this._table=te,this._startRow=void 0!==ne.row?ne.row:ne.startRow||0,this._endRow=void 0!==ne.row?ne.row:ne.endRow,this._startColumn=void 0!==ne.column?ne.column:ne.startColumn||0,this._endColumn=void 0!==ne.column?ne.column:ne.endColumn,this._includeAllSlots=!!ne.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){this._canJumpToStartRow()&&this._jumpToNonSpannedRowClosestToStartRow();const te=this._table.getChild(this._rowIndex);if(!te||this._isOverEndRow())return{done:!0,value:void 0};if(!te.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let ne=null;const ie=this._getSpanned();if(ie)this._includeAllSlots&&!this._shouldSkipSlot()&&(ne=this._formatOutValue(ie.cell,ie.row,ie.column));else{const ie=te.getChild(this._cellIndex);if(!ie)return this._advanceToNextRow();const re=parseInt(ie.getAttribute("colspan")||"1"),le=parseInt(ie.getAttribute("rowspan")||"1");(re>1||le>1)&&this._recordSpans(ie,le,re),this._shouldSkipSlot()||(ne=this._formatOutValue(ie)),this._nextCellAtColumn=this._column+re}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,ne||this.next()}skipRow(te){this._skipRows.add(te)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(te,ne=this._row,ie=this._column){return{done:!1,value:new mD(this,te,ne,ie)}}_shouldSkipSlot(){const te=this._skipRows.has(this._row),ne=this._row<this._startRow,ie=this._column<this._startColumn,re=void 0!==this._endColumn&&this._column>this._endColumn;return te||ne||ie||re}_getSpanned(){const te=this._spannedCells.get(this._row);return te&&te.get(this._column)||null}_recordSpans(te,ne,ie){const re={cell:te,row:this._row,column:this._column};for(let te=this._row;te<this._row+ne;te++)for(let ne=this._column;ne<this._column+ie;ne++)te==this._row&&ne==this._column||this._markSpannedCell(te,ne,re)}_markSpannedCell(te,ne,ie){this._spannedCells.has(te)||this._spannedCells.set(te,new Map),this._spannedCells.get(te).set(ne,ie)}_canJumpToStartRow(){return!!this._startRow&&this._startRow>0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const te=this._getRowLength(0);for(let ne=this._startRow;!this._jumpedToStartRow;ne--)te===this._getRowLength(ne)&&(this._row=ne,this._rowIndex=ne,this._jumpedToStartRow=!0)}_getRowLength(te){return[...this._table.getChild(te).getChildren()].reduce(((te,ne)=>te+parseInt(ne.getAttribute("colspan")||"1")),0)}}class mD{constructor(te,ne,ie,re){this.cell=ne,this.row=te._row,this.column=te._column,this.cellAnchorRow=ie,this.cellAnchorColumn=re,this._cellIndex=te._cellIndex,this._rowIndex=te._rowIndex,this._table=te._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function gD(te,ne){return(ie,{writer:re})=>{const le=ie.getAttribute("headingRows")||0,ce=re.createContainerElement("table",null,[]),de=re.createContainerElement("figure",{class:"table"},ce);le>0&&re.insert(re.createPositionAt(ce,"end"),re.createContainerElement("thead",null,re.createSlot((te=>te.is("element","tableRow")&&te.index<le)))),le<te.getRows(ie)&&re.insert(re.createPositionAt(ce,"end"),re.createContainerElement("tbody",null,re.createSlot((te=>te.is("element","tableRow")&&te.index>=le))));for(const{positionOffset:te,filter:ie}of ne.additionalSlots)re.insert(re.createPositionAt(ce,te),re.createSlot(ie));return re.insert(re.createPositionAt(ce,"after"),re.createSlot((te=>!te.is("element","tableRow")&&!ne.additionalSlots.some((({filter:ne})=>ne(te)))))),ne.asWidget?function(te,ne){return ne.setCustomProperty("table",!0,te),Vb(te,ne,{hasSelectionHandle:!0})}(de,re):de}}function pD(te={}){return(ne,{writer:ie})=>{const re=ne.parent,le=re.parent,ce=le.getChildIndex(re),de=new uD(le,{row:ce}),ue=le.getAttribute("headingRows")||0,me=le.getAttribute("headingColumns")||0;let ge=null;for(const re of de)if(re.cell==ne){const ne=re.row<ue||re.column<me?"th":"td";ge=te.asWidget?Ub(ie.createEditableElement(ne),ie):ie.createContainerElement(ne);break}return ge}}function fD(te={}){return(ne,{writer:ie})=>{if(!ne.parent.is("element","tableCell"))return null;if(!kD(ne))return null;if(te.asWidget)return ie.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const te=ie.createContainerElement("p");return ie.setCustomProperty("dataPipeline:transparentRendering",!0,te),te}}}function kD(te){return 1==te.parent.childCount&&!!te.getAttributeKeys().next().done}class bD extends Ss{refresh(){const te=this.editor.model,ne=te.document.selection,ie=te.schema;this.isEnabled=function(te,ne){const ie=te.getFirstPosition().parent,re=ie===ie.root?ie:ie.parent;return ne.checkChild(re,"table")}(ne,ie)}execute(te={}){const ne=this.editor,ie=ne.model,re=ne.plugins.get("TableUtils"),le=ne.config.get("table.defaultHeadings.rows"),ce=ne.config.get("table.defaultHeadings.columns");void 0===te.headingRows&&le&&(te.headingRows=le),void 0===te.headingColumns&&ce&&(te.headingColumns=ce),ie.change((ne=>{const le=re.createTable(ne,te);ie.insertObject(le,null,null,{findOptimalPosition:"auto"}),ne.setSelection(ne.createPositionAt(le.getNodeByPath([0,0,0]),0))}))}}class wD extends Ss{constructor(te,ne={}){super(te),this.order=ne.order||"below"}refresh(){const te=this.editor.model.document.selection,ne=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(te).length;this.isEnabled=ne}execute(){const te=this.editor,ne=te.model.document.selection,ie=te.plugins.get("TableUtils"),re="above"===this.order,le=ie.getSelectionAffectedTableCells(ne),ce=ie.getRowIndexes(le),de=re?ce.first:ce.last,ue=le[0].findAncestor("table");ie.insertRows(ue,{at:re?de:de+1,copyStructureFromAbove:!re})}}class AD extends Ss{constructor(te,ne={}){super(te),this.order=ne.order||"right"}refresh(){const te=this.editor.model.document.selection,ne=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(te).length;this.isEnabled=ne}execute(){const te=this.editor,ne=te.model.document.selection,ie=te.plugins.get("TableUtils"),re="left"===this.order,le=ie.getSelectionAffectedTableCells(ne),ce=ie.getColumnIndexes(le),de=re?ce.first:ce.last,ue=le[0].findAncestor("table");ie.insertColumns(ue,{columns:1,at:re?de:de+1})}}class CD extends Ss{constructor(te,ne={}){super(te),this.direction=ne.direction||"horizontally"}refresh(){const te=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===te.length}execute(){const te=this.editor.plugins.get("TableUtils"),ne=te.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?te.splitCellHorizontally(ne,2):te.splitCellVertically(ne,2)}}function _D(te,ne,ie){const{startRow:re,startColumn:le,endRow:ce,endColumn:de}=ne,ue=ie.createElement("table"),me=ce-re+1;for(let te=0;te<me;te++)ie.insertElement("tableRow",ue,"end");const ge=[...new uD(te,{startRow:re,endRow:ce,startColumn:le,endColumn:de,includeAllSlots:!0})];for(const{row:te,column:ne,cell:me,isAnchor:fe,cellAnchorRow:_e,cellAnchorColumn:be}of ge){const ge=te-re,Ce=ue.getChild(ge);if(fe){const re=ie.cloneElement(me);ie.append(re,Ce),DD(re,te,ne,ce,de,ie)}else(_e<re||be<le)&&rD(ie,ie.createPositionAt(Ce,"end"))}return function(te,ne,ie,re,le){const ce=parseInt(ne.getAttribute("headingRows")||"0");ce>0&&iD("headingRows",ce-ie,te,le,0);const de=parseInt(ne.getAttribute("headingColumns")||"0");de>0&&iD("headingColumns",de-re,te,le,0)}(ue,te,re,le,ie),ue}function vD(te,ne,ie=0){const re=[],le=new uD(te,{startRow:ie,endRow:ne-1});for(const te of le){const{row:ie,cellHeight:le}=te;ie<ne&&ne<=ie+le-1&&re.push(te)}return re}function yD(te,ne,ie){const re=te.parent,le=re.parent,ce=re.index,de=ne-ce,ue={},me=parseInt(te.getAttribute("rowspan"))-de;me>1&&(ue.rowspan=me);const ge=parseInt(te.getAttribute("colspan")||"1");ge>1&&(ue.colspan=ge);const fe=ce+de,_e=[...new uD(le,{startRow:ce,endRow:fe,includeAllSlots:!0})];let be,Ce=null;for(const ne of _e){const{row:re,column:le,cell:ce}=ne;ce===te&&void 0===be&&(be=le),void 0!==be&&be===le&&re===fe&&(Ce=rD(ie,ne.getPositionBefore(),ue))}return iD("rowspan",de,te,ie),Ce}function xD(te,ne){const ie=[],re=new uD(te);for(const te of re){const{column:re,cellWidth:le}=te;re<ne&&ne<=re+le-1&&ie.push(te)}return ie}function ED(te,ne,ie,re){const le=ie-ne,ce={},de=parseInt(te.getAttribute("colspan"))-le;de>1&&(ce.colspan=de);const ue=parseInt(te.getAttribute("rowspan")||"1");ue>1&&(ce.rowspan=ue);const me=rD(re,re.createPositionAfter(te),ce);return iD("colspan",le,te,re),me}function DD(te,ne,ie,re,le,ce){const de=parseInt(te.getAttribute("colspan")||"1"),ue=parseInt(te.getAttribute("rowspan")||"1");ie+de-1>le&&iD("colspan",le-ie+1,te,ce,1),ne+ue-1>re&&iD("rowspan",re-ne+1,te,ce,1)}function SD(te,ne){const ie=ne.getColumns(te),re=new Array(ie).fill(0);for(const{column:ne}of new uD(te))re[ne]++;const le=re.reduce(((te,ne,ie)=>ne?te:[...te,ie]),[]);if(le.length>0){const ie=le[le.length-1];return ne.removeColumns(te,{at:ie}),!0}return!1}function TD(te,ne){const ie=[],re=ne.getRows(te);for(let ne=0;ne<re;ne++)te.getChild(ne).isEmpty&&ie.push(ne);if(ie.length>0){const re=ie[ie.length-1];return ne.removeRows(te,{at:re}),!0}return!1}function ID(te,ne){SD(te,ne)||TD(te,ne)}function MD(te,ne){const ie=Array.from(new uD(te,{startColumn:ne.firstColumn,endColumn:ne.lastColumn,row:ne.lastRow}));if(ie.every((({cellHeight:te})=>1===te)))return ne.lastRow;const re=ie[0].cellHeight-1;return ne.lastRow+re}function BD(te,ne){const ie=Array.from(new uD(te,{startRow:ne.firstRow,endRow:ne.lastRow,column:ne.lastColumn}));if(ie.every((({cellWidth:te})=>1===te)))return ne.lastColumn;const re=ie[0].cellWidth-1;return ne.lastColumn+re}class ND extends Ss{constructor(te,ne){super(te),this.direction=ne.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const te=this._getMergeableCell();this.value=te,this.isEnabled=!!te}execute(){const te=this.editor.model,ne=te.document,ie=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(ne.selection)[0],re=this.value,le=this.direction;te.change((te=>{const ne="right"==le||"down"==le,ce=ne?ie:re,de=ne?re:ie,ue=de.parent;!function(te,ne,ie){zD(te)||(zD(ne)&&ie.remove(ie.createRangeIn(ne)),ie.move(ie.createRangeIn(te),ie.createPositionAt(ne,"end"))),ie.remove(te)}(de,ce,te);const me=this.isHorizontal?"colspan":"rowspan",ge=parseInt(ie.getAttribute(me)||"1"),fe=parseInt(re.getAttribute(me)||"1");te.setAttribute(me,ge+fe,ce),te.setSelection(te.createRangeIn(ce));const _e=this.editor.plugins.get("TableUtils");ID(ue.findAncestor("table"),_e)}))}_getMergeableCell(){const te=this.editor.model.document,ne=this.editor.plugins.get("TableUtils"),ie=ne.getTableCellsContainingSelection(te.selection)[0];if(!ie)return;const re=this.isHorizontal?function(te,ne,ie){const re=te.parent.parent,le="right"==ne?te.nextSibling:te.previousSibling,ce=(re.getAttribute("headingColumns")||0)>0;if(!le)return;const de="right"==ne?te:le,ue="right"==ne?le:te,{column:me}=ie.getCellLocation(de),{column:ge}=ie.getCellLocation(ue),fe=parseInt(de.getAttribute("colspan")||"1"),_e=sD(ie,de),be=sD(ie,ue);return ce&&_e!=be?void 0:me+fe===ge?le:void 0}(ie,this.direction,ne):function(te,ne,ie){const re=te.parent,le=re.parent,ce=le.getChildIndex(re);if("down"==ne&&ce===ie.getRows(le)-1||"up"==ne&&0===ce)return null;const de=parseInt(te.getAttribute("rowspan")||"1"),ue=le.getAttribute("headingRows")||0;if(ue&&("down"==ne&&ce+de===ue||"up"==ne&&ce===ue))return null;const me=parseInt(te.getAttribute("rowspan")||"1"),ge="down"==ne?ce+me:ce,fe=[...new uD(le,{endRow:ge})],_e=fe.find((ne=>ne.cell===te)),be=_e.column,Ce=fe.find((({row:te,cellHeight:ie,column:re})=>re===be&&("down"==ne?te===ge:ge===te+ie)));return Ce&&Ce.cell?Ce.cell:null}(ie,this.direction,ne);if(!re)return;const le=this.isHorizontal?"rowspan":"colspan",ce=parseInt(ie.getAttribute(le)||"1");return parseInt(re.getAttribute(le)||"1")===ce?re:void 0}}function zD(te){const ne=te.getChild(0);return 1==te.childCount&&ne.is("element","paragraph")&&ne.isEmpty}class PD extends Ss{refresh(){const te=this.editor.plugins.get("TableUtils"),ne=te.getSelectionAffectedTableCells(this.editor.model.document.selection),ie=ne[0];if(ie){const re=ie.findAncestor("table"),le=te.getRows(re)-1,ce=te.getRowIndexes(ne),de=0===ce.first&&ce.last===le;this.isEnabled=!de}else this.isEnabled=!1}execute(){const te=this.editor.model,ne=this.editor.plugins.get("TableUtils"),ie=ne.getSelectionAffectedTableCells(te.document.selection),re=ne.getRowIndexes(ie),le=ie[0],ce=le.findAncestor("table"),de=ne.getCellLocation(le).column;te.change((te=>{const ie=re.last-re.first+1;ne.removeRows(ce,{at:re.first,rows:ie});const le=function(te,ne,ie,re){const le=te.getChild(Math.min(ne,re-1));let ce=le.getChild(0),de=0;for(const te of le.getChildren()){if(de>ie)return ce;ce=te,de+=parseInt(te.getAttribute("colspan")||"1")}return ce}(ce,re.first,de,ne.getRows(ce));te.setSelection(te.createPositionAt(le,0))}))}}class LD extends Ss{refresh(){const te=this.editor.plugins.get("TableUtils"),ne=te.getSelectionAffectedTableCells(this.editor.model.document.selection),ie=ne[0];if(ie){const re=ie.findAncestor("table"),le=te.getColumns(re),{first:ce,last:de}=te.getColumnIndexes(ne);this.isEnabled=de-ce<le-1}else this.isEnabled=!1}execute(){const te=this.editor.plugins.get("TableUtils"),[ne,ie]=function(te,ne){const ie=ne.getSelectionAffectedTableCells(te),re=ie[0],le=ie.pop(),ce=[re,le];return re.isBefore(le)?ce:ce.reverse()}(this.editor.model.document.selection,te),re=ne.parent.parent,le=[...new uD(re)],ce={first:le.find((te=>te.cell===ne)).column,last:le.find((te=>te.cell===ie)).column},de=function(te,ne,ie,re){return parseInt(ie.getAttribute("colspan")||"1")>1?ie:ne.previousSibling||ie.nextSibling?ie.nextSibling||ne.previousSibling:re.first?te.reverse().find((({column:te})=>te<re.first)).cell:te.reverse().find((({column:te})=>te>re.last)).cell}(le,ne,ie,ce);this.editor.model.change((ne=>{const ie=ce.last-ce.first+1;te.removeColumns(re,{at:ce.first,columns:ie}),ne.setSelection(ne.createPositionAt(de,0))}))}}class OD extends Ss{refresh(){const te=this.editor.plugins.get("TableUtils"),ne=this.editor.model,ie=te.getSelectionAffectedTableCells(ne.document.selection),re=ie.length>0;this.isEnabled=re,this.value=re&&ie.every((te=>this._isInHeading(te,te.parent.parent)))}execute(te={}){if(te.forceValue===this.value)return;const ne=this.editor.plugins.get("TableUtils"),ie=this.editor.model,re=ne.getSelectionAffectedTableCells(ie.document.selection),le=re[0].findAncestor("table"),{first:ce,last:de}=ne.getRowIndexes(re),ue=this.value?ce:de+1,me=le.getAttribute("headingRows")||0;ie.change((te=>{if(ue){const ne=vD(le,ue,ue>me?me:0);for(const{cell:ie}of ne)yD(ie,ue,te)}iD("headingRows",ue,le,te,0)}))}_isInHeading(te,ne){const ie=parseInt(ne.getAttribute("headingRows")||"0");return!!ie&&te.parent.index<ie}}class RD extends Ss{refresh(){const te=this.editor.model,ne=this.editor.plugins.get("TableUtils"),ie=ne.getSelectionAffectedTableCells(te.document.selection),re=ie.length>0;this.isEnabled=re,this.value=re&&ie.every((te=>sD(ne,te)))}execute(te={}){if(te.forceValue===this.value)return;const ne=this.editor.plugins.get("TableUtils"),ie=this.editor.model,re=ne.getSelectionAffectedTableCells(ie.document.selection),le=re[0].findAncestor("table"),{first:ce,last:de}=ne.getColumnIndexes(re),ue=this.value?ce:de+1;ie.change((te=>{if(ue){const ne=xD(le,ue);for(const{cell:ie,column:re}of ne)ED(ie,re,ue,te)}iD("headingColumns",ue,le,te,0)}))}}const Xv=5,Jv=2;function jD(te,ne){return 4e3/HD(te,ne)}function HD(te,ne){const ie=UD(te,"tbody",ne)||UD(te,"thead",ne);return WD(ne.editing.view.domConverter.mapViewToDom(ie))}function UD(te,ne,ie){return[...[...ie.editing.mapper.toViewElement(te).getChildren()].find((te=>te.is("element","table"))).getChildren()].find((te=>te.is("element",ne)))}function WD(te){const ne=go.window.getComputedStyle(te);return"border-box"===ne.boxSizing?parseFloat(ne.width)-parseFloat(ne.paddingLeft)-parseFloat(ne.paddingRight)-parseFloat(ne.borderLeftWidth)-parseFloat(ne.borderRightWidth):parseFloat(ne.width)}function GD(te){const ne=Math.pow(10,Jv),ie="number"==typeof te?te:parseFloat(te);return Math.round(ie*ne)/ne}function qD(te){return te.map((te=>"number"==typeof te?te:parseFloat(te))).filter((te=>!Number.isNaN(te))).reduce(((te,ne)=>te+ne),0)}function ZD(te){let ne=function(te){const ne=te.filter((te=>"auto"===te)).length;if(0===ne)return te.map((te=>GD(te)));const ie=qD(te),re=Math.max((100-ie)/ne,Xv);return te.map((te=>"auto"===te?re:te)).map((te=>GD(te)))}(te.map((te=>"auto"===te?te:parseFloat(te.replace("%","")))));const ie=qD(ne);return 100!==ie&&(ne=ne.map((te=>GD(100*te/ie))).map(((te,ne,ie)=>ne!==ie.length-1?te:GD(te+100-qD(ie))))),ne.map((te=>te+"%"))}function $D(te){const ne=go.window.getComputedStyle(te);return"border-box"===ne.boxSizing?parseInt(ne.width):parseFloat(ne.width)+parseFloat(ne.paddingLeft)+parseFloat(ne.paddingRight)+parseFloat(ne.borderWidth)}function KD(te,ne,ie,re){for(let le=0;le<Math.max(ie.length,te.length);le++){const ce=te[le],de=ie[le];de?ce?re.setAttribute("columnWidth",de,ce):re.appendElement("tableColumn",{columnWidth:de},ne):re.remove(ce)}}function YD(te){if(te.is("element","tableColumnGroup"))return te;const ne=te.getChildren();return Array.from(ne).find((te=>te.is("element","tableColumnGroup")))}function QD(te){const ne=YD(te);return ne?Array.from(ne.getChildren()):[]}class JD extends Es{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(te){const ne=te.parent,ie=ne.parent,re=ie.getChildIndex(ne),le=new uD(ie,{row:re});for(const{cell:ne,row:ie,column:re}of le)if(ne===te)return{row:ie,column:re}}createTable(te,ne){const ie=te.createElement("table"),re=ne.rows||2,le=ne.columns||2;return XD(te,ie,0,re,le),ne.headingRows&&iD("headingRows",Math.min(ne.headingRows,re),ie,te,0),ne.headingColumns&&iD("headingColumns",Math.min(ne.headingColumns,le),ie,te,0),ie}insertRows(te,ne={}){const ie=this.editor.model,re=ne.at||0,le=ne.rows||1,ce=void 0!==ne.copyStructureFromAbove,de=ne.copyStructureFromAbove?re-1:re,ue=this.getRows(te),me=this.getColumns(te);if(re>ue)throw new C("tableutils-insertrows-insert-out-of-range",this,{options:ne});ie.change((ne=>{const ie=te.getAttribute("headingRows")||0;if(ie>re&&iD("headingRows",ie+le,te,ne,0),!ce&&(0===re||re===ue))return void XD(ne,te,re,le,me);const ge=ce?Math.max(re,de):re,fe=new uD(te,{endRow:ge}),_e=new Array(me).fill(1);for(const{row:te,column:ie,cellHeight:ue,cellWidth:me,cell:ge}of fe){const fe=te+ue-1,be=te<=de&&de<=fe;te<re&&re<=fe?(ne.setAttribute("rowspan",ue+le,ge),_e[ie]=-me):ce&&be&&(_e[ie]=me)}for(let ie=0;ie<le;ie++){const ie=ne.createElement("tableRow");ne.insert(ie,te,re);for(let te=0;te<_e.length;te++){const re=_e[te],le=ne.createPositionAt(ie,"end");re>0&&rD(ne,le,re>1?{colspan:re}:void 0),te+=Math.abs(re)-1}}}))}insertColumns(te,ne={}){const ie=this.editor.model,re=ne.at||0,le=ne.columns||1;ie.change((ne=>{const ie=te.getAttribute("headingColumns");re<ie&&ne.setAttribute("headingColumns",ie+le,te);const ce=this.getColumns(te);if(0===re||ce===re){for(const ie of te.getChildren())ie.is("element","tableRow")&&tS(le,ne,ne.createPositionAt(ie,re?"end":0));return}const de=new uD(te,{column:re,includeAllSlots:!0});for(const te of de){const{row:ie,cell:ce,cellAnchorColumn:ue,cellAnchorRow:me,cellWidth:ge,cellHeight:fe}=te;if(ue<re){ne.setAttribute("colspan",ge+le,ce);const te=me+fe-1;for(let ne=ie;ne<=te;ne++)de.skipRow(ne)}else tS(le,ne,te.getPositionBefore())}}))}removeRows(te,ne){const ie=this.editor.model,re=ne.rows||1,le=this.getRows(te),ce=ne.at,de=ce+re-1;if(de>le-1)throw new C("tableutils-removerows-row-index-out-of-range",this,{table:te,options:ne});ie.change((ne=>{const ie={first:ce,last:de},{cellsToMove:re,cellsToTrim:le}=function(te,{first:ne,last:ie}){const re=new Map,le=[];for(const{row:ce,column:de,cellHeight:ue,cell:me}of new uD(te,{endRow:ie})){const te=ce+ue-1;if(ce>=ne&&ce<=ie&&te>ie){const te=ue-(ie-ce+1);re.set(de,{cell:me,rowspan:te})}if(ce<ne&&te>=ne){let re;re=te>=ie?ie-ne+1:te-ne+1,le.push({cell:me,rowspan:ue-re})}}return{cellsToMove:re,cellsToTrim:le}}(te,ie);re.size&&function(te,ne,ie,re){const le=[...new uD(te,{includeAllSlots:!0,row:ne})],ce=te.getChild(ne);let de;for(const{column:te,cell:ne,isAnchor:ue}of le)if(ie.has(te)){const{cell:ne,rowspan:le}=ie.get(te),ue=de?re.createPositionAfter(de):re.createPositionAt(ce,0);re.move(re.createRangeOn(ne),ue),iD("rowspan",le,ne,re),de=ne}else ue&&(de=ne)}(te,de+1,re,ne);for(let ie=de;ie>=ce;ie--)ne.remove(te.getChild(ie));for(const{rowspan:te,cell:ie}of le)iD("rowspan",te,ie,ne);!function(te,{first:ne,last:ie},re){const le=te.getAttribute("headingRows")||0;ne<le&&iD("headingRows",ie<le?le-(ie-ne+1):ne,te,re,0)}(te,ie,ne),SD(te,this)||TD(te,this)}))}removeColumns(te,ne){const ie=this.editor.model,re=ne.at,le=ne.columns||1,ce=ne.at+le-1;ie.change((ne=>{!function(te,ne,ie){const re=te.getAttribute("headingColumns")||0;if(re&&ne.first<re){const le=Math.min(re-1,ne.last)-ne.first+1;ie.setAttribute("headingColumns",re-le,te)}}(te,{first:re,last:ce},ne);const ie=QD(te);for(let le=ce;le>=re;le--){for(const{cell:ie,column:re,cellWidth:ce}of[...new uD(te)])re<=le&&ce>1&&re+ce>le?iD("colspan",ce-1,ie,ne):re===le&&ne.remove(ie);if(ie[le]){const te=0===le?ie[1]:ie[le-1],re=parseFloat(ie[le].getAttribute("columnWidth")),ce=parseFloat(te.getAttribute("columnWidth"));ne.remove(ie[le]),ne.setAttribute("columnWidth",re+ce+"%",te)}}TD(te,this)||SD(te,this)}))}splitCellVertically(te,ne=2){const ie=this.editor.model,re=te.parent.parent,le=parseInt(te.getAttribute("rowspan")||"1"),ce=parseInt(te.getAttribute("colspan")||"1");ie.change((ie=>{if(ce>1){const{newCellsSpan:re,updatedSpan:de}=eS(ce,ne);iD("colspan",de,te,ie);const ue={};re>1&&(ue.colspan=re),le>1&&(ue.rowspan=le),tS(ce>ne?ne-1:ce-1,ie,ie.createPositionAfter(te),ue)}if(ce<ne){const de=ne-ce,ue=[...new uD(re)],{column:me}=ue.find((({cell:ne})=>ne===te)),ge=ue.filter((({cell:ne,cellWidth:ie,column:re})=>ne!==te&&re===me||re<me&&re+ie>me));for(const{cell:te,cellWidth:ne}of ge)ie.setAttribute("colspan",ne+de,te);const fe={};le>1&&(fe.rowspan=le),tS(de,ie,ie.createPositionAfter(te),fe);const _e=re.getAttribute("headingColumns")||0;_e>me&&iD("headingColumns",_e+de,re,ie)}}))}splitCellHorizontally(te,ne=2){const ie=this.editor.model,re=te.parent,le=re.parent,ce=le.getChildIndex(re),de=parseInt(te.getAttribute("rowspan")||"1"),ue=parseInt(te.getAttribute("colspan")||"1");ie.change((ie=>{if(de>1){const re=[...new uD(le,{startRow:ce,endRow:ce+de-1,includeAllSlots:!0})],{newCellsSpan:me,updatedSpan:ge}=eS(de,ne);iD("rowspan",ge,te,ie);const{column:fe}=re.find((({cell:ne})=>ne===te)),_e={};me>1&&(_e.rowspan=me),ue>1&&(_e.colspan=ue);for(const te of re){const{column:ne,row:re}=te;re>=ce+ge&&ne===fe&&(re+ce+ge)%me==0&&tS(1,ie,te.getPositionBefore(),_e)}}if(de<ne){const re=ne-de,me=[...new uD(le,{startRow:0,endRow:ce})];for(const{cell:ne,cellHeight:le,row:de}of me)if(ne!==te&&de+le>ce){const te=le+re;ie.setAttribute("rowspan",te,ne)}const ge={};ue>1&&(ge.colspan=ue),XD(ie,le,ce+1,re,1,ge);const fe=le.getAttribute("headingRows")||0;fe>ce&&iD("headingRows",fe+re,le,ie)}}))}getColumns(te){return[...te.getChild(0).getChildren()].reduce(((te,ne)=>te+parseInt(ne.getAttribute("colspan")||"1")),0)}getRows(te){return Array.from(te.getChildren()).reduce(((te,ne)=>ne.is("element","tableRow")?te+1:te),0)}createTableWalker(te,ne={}){return new uD(te,ne)}getSelectedTableCells(te){const ne=[];for(const ie of this.sortRanges(te.getRanges())){const te=ie.getContainedElement();te&&te.is("element","tableCell")&&ne.push(te)}return ne}getTableCellsContainingSelection(te){const ne=[];for(const ie of te.getRanges()){const te=ie.start.findAncestor("tableCell");te&&ne.push(te)}return ne}getSelectionAffectedTableCells(te){const ne=this.getSelectedTableCells(te);return ne.length?ne:this.getTableCellsContainingSelection(te)}getRowIndexes(te){const ne=te.map((te=>te.parent.index));return this._getFirstLastIndexesObject(ne)}getColumnIndexes(te){const ne=te[0].findAncestor("table"),ie=[...new uD(ne)].filter((ne=>te.includes(ne.cell))).map((te=>te.column));return this._getFirstLastIndexesObject(ie)}isSelectionRectangular(te){if(te.length<2||!this._areCellInTheSameTableSection(te))return!1;const ne=new Set,ie=new Set;let re=0;for(const le of te){const{row:te,column:ce}=this.getCellLocation(le),de=parseInt(le.getAttribute("rowspan"))||1,ue=parseInt(le.getAttribute("colspan"))||1;ne.add(te),ie.add(ce),de>1&&ne.add(te+de-1),ue>1&&ie.add(ce+ue-1),re+=de*ue}const le=function(te,ne){const ie=Array.from(te.values()),re=Array.from(ne.values());return(Math.max(...ie)-Math.min(...ie)+1)*(Math.max(...re)-Math.min(...re)+1)}(ne,ie);return le==re}sortRanges(te){return Array.from(te).sort(nS)}_getFirstLastIndexesObject(te){const ne=te.sort(((te,ne)=>te-ne));return{first:ne[0],last:ne[ne.length-1]}}_areCellInTheSameTableSection(te){const ne=te[0].findAncestor("table"),ie=this.getRowIndexes(te),re=parseInt(ne.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(ie,re))return!1;const le=this.getColumnIndexes(te),ce=parseInt(ne.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(le,ce)}_areIndexesInSameSection({first:te,last:ne},ie){return te<ie==ne<ie}}function XD(te,ne,ie,re,le,ce={}){for(let de=0;de<re;de++){const re=te.createElement("tableRow");te.insert(re,ne,ie),tS(le,te,te.createPositionAt(re,"end"),ce)}}function tS(te,ne,ie,re={}){for(let le=0;le<te;le++)rD(ne,ie,re)}function eS(te,ne){if(te<ne)return{newCellsSpan:1,updatedSpan:1};const ie=Math.floor(te/ne);return{newCellsSpan:ie,updatedSpan:te-ie*ne+ie}}function nS(te,ne){const ie=te.start,re=ne.start;return ie.isBefore(re)?-1:1}class oS extends Ss{refresh(){const te=this.editor.plugins.get(JD),ne=te.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=te.isSelectionRectangular(ne)}execute(){const te=this.editor.model,ne=this.editor.plugins.get(JD);te.change((ie=>{const re=ne.getSelectedTableCells(te.document.selection),le=re.shift(),{mergeWidth:ce,mergeHeight:de}=function(te,ne,ie){let re=0,le=0;for(const te of ne){const{row:ne,column:ce}=ie.getCellLocation(te);re=sS(te,ce,re,"colspan"),le=sS(te,ne,le,"rowspan")}const{row:ce,column:de}=ie.getCellLocation(te);return{mergeWidth:re-de,mergeHeight:le-ce}}(le,re,ne);iD("colspan",ce,le,ie),iD("rowspan",de,le,ie);for(const te of re)iS(te,le,ie);ID(le.findAncestor("table"),ne),ie.setSelection(le,"in")}))}}function iS(te,ne,ie){rS(te)||(rS(ne)&&ie.remove(ie.createRangeIn(ne)),ie.move(ie.createRangeIn(te),ie.createPositionAt(ne,"end"))),ie.remove(te)}function rS(te){const ne=te.getChild(0);return 1==te.childCount&&ne.is("element","paragraph")&&ne.isEmpty}function sS(te,ne,ie,re){const le=parseInt(te.getAttribute(re)||"1");return Math.max(ie,ne+le)}class aS extends Ss{constructor(te){super(te),this.affectsData=!1}refresh(){const te=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=te.length>0}execute(){const te=this.editor.model,ne=this.editor.plugins.get("TableUtils"),ie=ne.getSelectionAffectedTableCells(te.document.selection),re=ne.getRowIndexes(ie),le=ie[0].findAncestor("table"),ce=[];for(let ne=re.first;ne<=re.last;ne++)for(const ie of le.getChild(ne).getChildren())ce.push(te.createRangeOn(ie));te.change((te=>{te.setSelection(ce)}))}}class lS extends Ss{constructor(te){super(te),this.affectsData=!1}refresh(){const te=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=te.length>0}execute(){const te=this.editor.plugins.get("TableUtils"),ne=this.editor.model,ie=te.getSelectionAffectedTableCells(ne.document.selection),re=ie[0],le=ie.pop(),ce=re.findAncestor("table"),de=te.getCellLocation(re),ue=te.getCellLocation(le),me=Math.min(de.column,ue.column),ge=Math.max(de.column,ue.column),fe=[];for(const te of new uD(ce,{startColumn:me,endColumn:ge}))fe.push(ne.createRangeOn(te.cell));ne.change((te=>{te.setSelection(fe)}))}}function dS(te,ne){let ie=!1;const re=function(te){const ne=parseInt(te.getAttribute("headingRows")||"0"),ie=Array.from(te.getChildren()).reduce(((te,ne)=>ne.is("element","tableRow")?te+1:te),0),re=[];for(const{row:le,cell:ce,cellHeight:de}of new uD(te)){if(de<2)continue;const te=le<ne?ne:ie;if(le+de>te){const ne=te-le;re.push({cell:ce,rowspan:ne})}}return re}(te);if(re.length){ie=!0;for(const te of re)iD("rowspan",te.rowspan,te.cell,ne,1)}return ie}function hS(te,ne){let ie=!1;const re=function(te){const ne=new Array(te.childCount).fill(0);for(const{rowIndex:ie}of new uD(te,{includeAllSlots:!0}))ne[ie]++;return ne}(te),le=[];for(const[ne,ie]of re.entries())!ie&&te.getChild(ne).is("element","tableRow")&&le.push(ne);if(le.length){ie=!0;for(const ie of le.reverse())ne.remove(te.getChild(ie)),re.splice(ie,1)}const ce=re.filter(((ne,ie)=>te.getChild(ie).is("element","tableRow"))),de=ce[0];if(!ce.every((te=>te===de))){const re=ce.reduce(((te,ne)=>ne>te?ne:te),0);for(const[le,de]of ce.entries()){const ce=re-de;if(ce){for(let ie=0;ie<ce;ie++)rD(ne,ne.createPositionAt(te.getChild(le),"end"));ie=!0}}}return ie}function uS(te){if("attribute"!==te.type)return!1;const ne=te.attributeKey;return"headingRows"===ne||"colspan"===ne||"rowspan"===ne}function gS(te,ne){let ie=!1;for(const re of te.getChildren())re.is("element","tableRow")&&(ie=pS(re,ne)||ie);return ie}function pS(te,ne){let ie=!1;for(const re of te.getChildren())ie=fS(re,ne)||ie;return ie}function fS(te,ne){if(0==te.childCount)return ne.insertElement("paragraph",te),!0;const ie=Array.from(te.getChildren()).filter((te=>te.is("$text")));for(const te of ie)ne.wrap(ne.createRangeOn(te),"paragraph");return!!ie.length}function kS(te){return!!te.position.parent.is("element","tableCell")&&("insert"==te.type&&"$text"==te.name||"remove"==te.type)}function bS(te,ne){if(!te.is("element","paragraph"))return!1;const ie=ne.toViewElement(te);return!!ie&&kD(te)!==ie.is("element","span")}var Zv=i(8361);Fo()(Zv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Zv.Z.locals;class CS extends Es{static get pluginName(){return"TableEditing"}static get requires(){return[JD]}constructor(te){super(te),this._additionalSlots=[]}init(){const te=this.editor,ne=te.model,ie=ne.schema,re=te.conversion,le=te.plugins.get(JD);ie.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),ie.register("tableRow",{allowIn:"table",isLimit:!0}),ie.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),re.for("upcast").add((te=>{te.on("element:figure",((te,ne,ie)=>{if(!ie.consumable.test(ne.viewItem,{name:!0,classes:"table"}))return;const re=function(te){for(const ne of te.getChildren())if(ne.is("element","table"))return ne}(ne.viewItem);if(!re||!ie.consumable.test(re,{name:!0}))return;ie.consumable.consume(ne.viewItem,{name:!0,classes:"table"});const le=Si(ie.convertItem(re,ne.modelCursor).modelRange.getItems());le?(ie.convertChildren(ne.viewItem,ie.writer.createPositionAt(le,"end")),ie.updateConversionResult(le,ne)):ie.consumable.revert(ne.viewItem,{name:!0,classes:"table"})}))})),re.for("upcast").add(function cD(){return te=>{te.on("element:table",((te,ne,ie)=>{const re=ne.viewItem;if(!ie.consumable.test(re,{name:!0}))return;const{rows:le,headingRows:ce,headingColumns:de}=function(te){let ne,ie=0;const re=[],le=[];let ce;for(const de of Array.from(te.getChildren())){if("tbody"!==de.name&&"thead"!==de.name&&"tfoot"!==de.name)continue;"thead"!==de.name||ce||(ce=de);const te=Array.from(de.getChildren()).filter((te=>te.is("element","tr")));for(const ue of te)if(ce&&de===ce||"tbody"===de.name&&Array.from(ue.getChildren()).length&&Array.from(ue.getChildren()).every((te=>te.is("element","th"))))ie++,re.push(ue);else{le.push(ue);const te=hD(ue);(!ne||te<ne)&&(ne=te)}}return{headingRows:ie,headingColumns:ne||0,rows:[...re,...le]}}(re),ue={};de&&(ue.headingColumns=de),ce&&(ue.headingRows=ce);const me=ie.writer.createElement("table",ue);if(ie.safeInsert(me,ne.modelCursor)){if(ie.consumable.consume(re,{name:!0}),le.forEach((te=>ie.convertItem(te,ie.writer.createPositionAt(me,"end")))),ie.convertChildren(re,ie.writer.createPositionAt(me,"end")),me.isEmpty){const te=ie.writer.createElement("tableRow");ie.writer.insert(te,ie.writer.createPositionAt(me,"end")),rD(ie.writer,ie.writer.createPositionAt(te,"end"))}ie.updateConversionResult(me,ne)}}))}}()),re.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:gD(le,{asWidget:!0,additionalSlots:this._additionalSlots})}),re.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:gD(le,{additionalSlots:this._additionalSlots})}),re.for("upcast").elementToElement({model:"tableRow",view:"tr"}),re.for("upcast").add((te=>{te.on("element:tr",((te,ne)=>{ne.viewItem.isEmpty&&0==ne.modelCursor.index&&te.stop()}),{priority:"high"})})),re.for("downcast").elementToElement({model:"tableRow",view:(te,{writer:ne})=>te.isEmpty?ne.createEmptyElement("tr"):ne.createContainerElement("tr")}),re.for("upcast").elementToElement({model:"tableCell",view:"td"}),re.for("upcast").elementToElement({model:"tableCell",view:"th"}),re.for("upcast").add(dD("td")),re.for("upcast").add(dD("th")),re.for("editingDowncast").elementToElement({model:"tableCell",view:pD({asWidget:!0})}),re.for("dataDowncast").elementToElement({model:"tableCell",view:pD()}),re.for("editingDowncast").elementToElement({model:"paragraph",view:fD({asWidget:!0}),converterPriority:"high"}),re.for("dataDowncast").elementToElement({model:"paragraph",view:fD(),converterPriority:"high"}),re.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),re.for("upcast").attributeToAttribute({model:{key:"colspan",value:_S("colspan")},view:"colspan"}),re.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),re.for("upcast").attributeToAttribute({model:{key:"rowspan",value:_S("rowspan")},view:"rowspan"}),te.config.define("table.defaultHeadings.rows",0),te.config.define("table.defaultHeadings.columns",0),te.commands.add("insertTable",new bD(te)),te.commands.add("insertTableRowAbove",new wD(te,{order:"above"})),te.commands.add("insertTableRowBelow",new wD(te,{order:"below"})),te.commands.add("insertTableColumnLeft",new AD(te,{order:"left"})),te.commands.add("insertTableColumnRight",new AD(te,{order:"right"})),te.commands.add("removeTableRow",new PD(te)),te.commands.add("removeTableColumn",new LD(te)),te.commands.add("splitTableCellVertically",new CD(te,{direction:"vertically"})),te.commands.add("splitTableCellHorizontally",new CD(te,{direction:"horizontally"})),te.commands.add("mergeTableCells",new oS(te)),te.commands.add("mergeTableCellRight",new ND(te,{direction:"right"})),te.commands.add("mergeTableCellLeft",new ND(te,{direction:"left"})),te.commands.add("mergeTableCellDown",new ND(te,{direction:"down"})),te.commands.add("mergeTableCellUp",new ND(te,{direction:"up"})),te.commands.add("setTableColumnHeader",new RD(te)),te.commands.add("setTableRowHeader",new OD(te)),te.commands.add("selectTableRow",new aS(te)),te.commands.add("selectTableColumn",new lS(te)),function cS(te){te.document.registerPostFixer((ne=>function(te,ne){const ie=ne.document.differ.getChanges();let re=!1;const le=new Set;for(const ne of ie){let ie=null;"insert"==ne.type&&"table"==ne.name&&(ie=ne.position.nodeAfter),"insert"!=ne.type&&"remove"!=ne.type||"tableRow"!=ne.name&&"tableCell"!=ne.name||(ie=ne.position.findAncestor("table")),uS(ne)&&(ie=ne.range.start.findAncestor("table")),ie&&!le.has(ie)&&(re=dS(ie,te)||re,re=hS(ie,te)||re,le.add(ie))}return re}(ne,te)))}(ne),function mS(te){te.document.registerPostFixer((ne=>function(te,ne){const ie=ne.document.differ.getChanges();let re=!1;for(const ne of ie)"insert"==ne.type&&"table"==ne.name&&(re=gS(ne.position.nodeAfter,te)||re),"insert"==ne.type&&"tableRow"==ne.name&&(re=pS(ne.position.nodeAfter,te)||re),"insert"==ne.type&&"tableCell"==ne.name&&(re=fS(ne.position.nodeAfter,te)||re),"remove"!=ne.type&&"insert"!=ne.type||!kS(ne)||(re=fS(ne.position.parent,te)||re);return re}(ne,te)))}(ne),this.listenTo(ne.document,"change:data",(()=>{!function(te,ne){const ie=te.document.differ;for(const te of ie.getChanges()){let ie,re=!1;if("attribute"==te.type){const ne=te.range.start.nodeAfter;if(!ne||!ne.is("element","table"))continue;if("headingRows"!=te.attributeKey&&"headingColumns"!=te.attributeKey)continue;ie=ne,re="headingRows"==te.attributeKey}else"tableRow"!=te.name&&"tableCell"!=te.name||(ie=te.position.findAncestor("table"),re="tableRow"==te.name);if(!ie)continue;const le=ie.getAttribute("headingRows")||0,ce=ie.getAttribute("headingColumns")||0,de=new uD(ie);for(const te of de){const ie=te.row<le||te.column<ce?"th":"td",de=ne.mapper.toViewElement(te.cell);de&&de.is("element")&&de.name!=ie&&ne.reconvertItem(re?te.cell.parent:te.cell)}}}(ne,te.editing),function(te,ne){const ie=te.document.differ,re=new Set;for(const te of ie.getChanges()){const ne="attribute"==te.type?te.range.start.parent:te.position.parent;ne.is("element","tableCell")&&re.add(ne)}for(const te of re.values()){const ie=Array.from(te.getChildren()).filter((te=>bS(te,ne.mapper)));for(const te of ie)ne.reconvertItem(te)}}(ne,te.editing)}))}registerAdditionalSlot(te){this._additionalSlots.push(te)}}function _S(te){return ne=>{const ie=parseInt(ne.getAttribute(te));return Number.isNaN(ie)||ie<=0?null:ie}}var ey=i(468);Fo()(ey.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ey.Z.locals;class xS extends Hi{constructor(te){super(te);const ne=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new Ii,this.focusTracker=new Ti,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",((te,ne)=>`${ne} × ${te}`)),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":ne.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:ne.to("label")}]}],on:{mousedown:ne.to((te=>{te.preventDefault()})),click:ne.to((()=>{this.fire("execute")}))}}),this.on("boxover",((te,ne)=>{const{row:ie,column:re}=ne.target.dataset;this.items.get(10*(parseInt(ie,10)-1)+(parseInt(re,10)-1)).focus()})),this.focusTracker.on("change:focusedElement",((te,ne,ie)=>{if(!ie)return;const{row:re,column:le}=ie.dataset;this.set({rows:parseInt(re),columns:parseInt(le)})})),this.on("change:columns",(()=>this._highlightGridBoxes())),this.on("change:rows",(()=>this._highlightGridBoxes()))}render(){super.render(),o({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const te of this.items)this.focusTracker.add(te.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const te=this.rows,ne=this.columns;this.items.map(((ie,re)=>{const le=Math.floor(re/10)<te&&re%10<ne;ie.set("isOn",le)}))}_createGridButton(te,ne,ie,re){const le=new br(te);return le.set({label:re,class:"ck-insert-table-dropdown-grid-box"}),le.extendTemplate({attributes:{"data-row":ne,"data-column":ie}}),le}_createGridCollection(){const te=[];for(let ne=0;ne<100;ne++){const ie=Math.floor(ne/10),re=ne%10,le=`${ie+1} × ${re+1}`;te.push(this._createGridButton(this.locale,ie+1,re+1,le))}return this.createCollection(te)}}class ES extends Es{static get pluginName(){return"TableUI"}init(){const te=this.editor,ne=this.editor.t,ie="ltr"===te.locale.contentLanguageDirection;te.ui.componentFactory.add("insertTable",(ie=>{const re=te.commands.get("insertTable"),le=mg(ie);let ce;return le.bind("isEnabled").to(re),le.buttonView.set({icon:Dc.table,label:ne("Insert table"),tooltip:!0}),le.on("change:isOpen",(()=>{ce||(ce=new xS(ie),le.panelView.children.add(ce),ce.delegate("execute").to(le),le.on("execute",(()=>{te.execute("insertTable",{rows:ce.rows,columns:ce.columns}),te.editing.view.focus()})))})),le})),te.ui.componentFactory.add("tableColumn",(te=>{const re=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:ne("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:ie?"insertTableColumnLeft":"insertTableColumnRight",label:ne("Insert column left")}},{type:"button",model:{commandName:ie?"insertTableColumnRight":"insertTableColumnLeft",label:ne("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:ne("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:ne("Select column")}}];return this._prepareDropdown(ne("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',re,te)})),te.ui.componentFactory.add("tableRow",(te=>{const ie=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:ne("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:ne("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:ne("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:ne("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:ne("Select row")}}];return this._prepareDropdown(ne("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',ie,te)})),te.ui.componentFactory.add("mergeTableCells",(te=>{const re=[{type:"button",model:{commandName:"mergeTableCellUp",label:ne("Merge cell up")}},{type:"button",model:{commandName:ie?"mergeTableCellRight":"mergeTableCellLeft",label:ne("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:ne("Merge cell down")}},{type:"button",model:{commandName:ie?"mergeTableCellLeft":"mergeTableCellRight",label:ne("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:ne("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:ne("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(ne("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',re,te)}))}_prepareDropdown(te,ne,ie,re){const le=this.editor,ce=mg(re),de=this._fillDropdownWithListOptions(ce,ie);return ce.buttonView.set({label:te,icon:ne,tooltip:!0}),ce.bind("isEnabled").toMany(de,"isEnabled",((...te)=>te.some((te=>te)))),this.listenTo(ce,"execute",(te=>{le.execute(te.source.commandName),te.source instanceof Cr||le.editing.view.focus()})),ce}_prepareMergeSplitButtonDropdown(te,ne,ie,re){const le=this.editor,ce=mg(re,lg),de="mergeTableCells",ue=le.commands.get(de),me=this._fillDropdownWithListOptions(ce,ie);return ce.buttonView.set({label:te,icon:ne,tooltip:!0,isEnabled:!0}),ce.bind("isEnabled").toMany([ue,...me],"isEnabled",((...te)=>te.some((te=>te)))),this.listenTo(ce.buttonView,"execute",(()=>{le.execute(de),le.editing.view.focus()})),this.listenTo(ce,"execute",(te=>{le.execute(te.source.commandName),le.editing.view.focus()})),ce}_fillDropdownWithListOptions(te,ne){const ie=this.editor,re=[],le=new Di;for(const te of ne)DS(te,ie,re,le);return fg(te,le),re}}function DS(te,ne,ie,re){if("button"===te.type||"switchbutton"===te.type){const re=te.model=new wf(te.model),{commandName:le,bindIsOn:ce}=te.model,de=ne.commands.get(le);ie.push(de),re.set({commandName:le}),re.bind("isEnabled").to(de),ce&&re.bind("isOn").to(de,"value"),re.set({withText:!0})}re.add(te)}var ny=i(1546);Fo()(ny.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ny.Z.locals;class IS extends Es{static get pluginName(){return"TableSelection"}static get requires(){return[JD,JD]}init(){const te=this.editor,ne=te.model,ie=te.editing.view;this.listenTo(ne,"deleteContent",((te,ne)=>this._handleDeleteContent(te,ne)),{priority:"high"}),this.listenTo(ie.document,"insertText",((te,ne)=>this._handleInsertTextEvent(te,ne)),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const te=this.editor.plugins.get(JD),ne=this.editor.model.document.selection,ie=te.getSelectedTableCells(ne);return 0==ie.length?null:ie}getSelectionAsFragment(){const te=this.editor.plugins.get(JD),ne=this.getSelectedTableCells();return ne?this.editor.model.change((ie=>{const re=ie.createDocumentFragment(),{first:le,last:ce}=te.getColumnIndexes(ne),{first:de,last:ue}=te.getRowIndexes(ne),me=ne[0].findAncestor("table");let ge=ue,fe=ce;if(te.isSelectionRectangular(ne)){const te={firstColumn:le,lastColumn:ce,firstRow:de,lastRow:ue};ge=MD(me,te),fe=BD(me,te)}const _e=_D(me,{startRow:de,startColumn:le,endRow:ge,endColumn:fe},ie);return ie.insert(_e,re,0),re})):null}setCellSelection(te,ne){const ie=this._getCellsToSelect(te,ne);this.editor.model.change((te=>{te.setSelection(ie.cells.map((ne=>te.createRangeOn(ne))),{backward:ie.backward})}))}getFocusCell(){const te=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return te&&te.is("element","tableCell")?te:null}getAnchorCell(){const te=Si(this.editor.model.document.selection.getRanges()).getContainedElement();return te&&te.is("element","tableCell")?te:null}_defineSelectionConverter(){const te=this.editor,ne=new Set;te.conversion.for("editingDowncast").add((te=>te.on("selection",((te,ie,re)=>{const le=re.writer;!function(te){for(const ie of ne)te.removeClass("ck-editor__editable_selected",ie);ne.clear()}(le);const ce=this.getSelectedTableCells();if(!ce)return;for(const te of ce){const ie=re.mapper.toViewElement(te);le.addClass("ck-editor__editable_selected",ie),ne.add(ie)}const de=re.mapper.toViewElement(ce[ce.length-1]);le.setSelection(de,0)}),{priority:"lowest"})))}_enablePluginDisabling(){const te=this.editor;this.on("change:isEnabled",(()=>{if(!this.isEnabled){const ne=this.getSelectedTableCells();if(!ne)return;te.model.change((ie=>{const re=ie.createPositionAt(ne[0],0),le=te.model.schema.getNearestSelectionRange(re);ie.setSelection(le)}))}}))}_handleDeleteContent(te,ne){const ie=this.editor.plugins.get(JD),re=ne[0],le=ne[1],ce=this.editor.model,de=!le||"backward"==le.direction,ue=ie.getSelectedTableCells(re);ue.length&&(te.stop(),ce.change((te=>{const ne=ue[de?ue.length-1:0];ce.change((te=>{for(const ne of ue)ce.deleteContent(te.createSelection(ne,"in"))}));const ie=ce.schema.getNearestSelectionRange(te.createPositionAt(ne,0));re.is("documentSelection")?te.setSelection(ie):re.setTo(ie)})))}_handleInsertTextEvent(te,ne){const ie=this.editor,re=this.getSelectedTableCells();if(!re)return;const le=ie.editing.view,ce=ie.editing.mapper,de=re.map((te=>le.createRangeOn(ce.toViewElement(te))));ne.selection=le.createSelection(de)}_getCellsToSelect(te,ne){const ie=this.editor.plugins.get("TableUtils"),re=ie.getCellLocation(te),le=ie.getCellLocation(ne),ce=Math.min(re.row,le.row),de=Math.max(re.row,le.row),ue=Math.min(re.column,le.column),me=Math.max(re.column,le.column),ge=new Array(de-ce+1).fill(null).map((()=>[])),fe={startRow:ce,endRow:de,startColumn:ue,endColumn:me};for(const{row:ne,cell:ie}of new uD(te.findAncestor("table"),fe))ge[ne-ce].push(ie);const _e=le.row<re.row,be=le.column<re.column;return _e&&ge.reverse(),be&&ge.forEach((te=>te.reverse())),{cells:ge.flat(),backward:_e||be}}}class MS extends Es{static get pluginName(){return"TableClipboard"}static get requires(){return[IS,JD]}init(){const te=this.editor,ne=te.editing.view.document;this.listenTo(ne,"copy",((te,ne)=>this._onCopyCut(te,ne))),this.listenTo(ne,"cut",((te,ne)=>this._onCopyCut(te,ne))),this.listenTo(te.model,"insertContent",((te,[ne,ie])=>this._onInsertContent(te,ne,ie)),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(te,ne){const ie=this.editor.plugins.get(IS);if(!ie.getSelectedTableCells())return;if("cut"==te.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;ne.preventDefault(),te.stop();const re=this.editor.data,le=this.editor.editing.view.document,ce=re.toView(ie.getSelectionAsFragment());le.fire("clipboardOutput",{dataTransfer:ne.dataTransfer,content:ce,method:te.name})}_onInsertContent(te,ne,ie){if(ie&&!ie.is("documentSelection"))return;const re=this.editor.model,le=this.editor.plugins.get(JD);let ce=this.getTableIfOnlyTableInContent(ne,re);if(!ce)return;const de=le.getSelectionAffectedTableCells(re.document.selection);de.length?(te.stop(),re.change((te=>{const ne={width:le.getColumns(ce),height:le.getRows(ce)},ie=function(te,ne,ie,re){const le=te[0].findAncestor("table"),ce=re.getColumnIndexes(te),de=re.getRowIndexes(te),ue={firstColumn:ce.first,lastColumn:ce.last,firstRow:de.first,lastRow:de.last},me=1===te.length;return me&&(ue.lastRow+=ne.height-1,ue.lastColumn+=ne.width-1,function(te,ne,ie,re){const le=re.getColumns(te),ce=re.getRows(te);ie>le&&re.insertColumns(te,{at:le,columns:ie-le}),ne>ce&&re.insertRows(te,{at:ce,rows:ne-ce})}(le,ue.lastRow+1,ue.lastColumn+1,re)),me||!re.isSelectionRectangular(te)?function(te,ne,ie){const{firstRow:re,lastRow:le,firstColumn:ce,lastColumn:de}=ne,ue={first:re,last:le},me={first:ce,last:de};NS(te,ce,ue,ie),NS(te,de+1,ue,ie),BS(te,re,me,ie),BS(te,le+1,me,ie,re)}(le,ue,ie):(ue.lastRow=MD(le,ue),ue.lastColumn=BD(le,ue)),ue}(de,ne,te,le),re=ie.lastRow-ie.firstRow+1,ue=ie.lastColumn-ie.firstColumn+1,me={startRow:0,startColumn:0,endRow:Math.min(re,ne.height)-1,endColumn:Math.min(ue,ne.width)-1};ce=_D(ce,me,te);const ge=de[0].findAncestor("table"),fe=this._replaceSelectedCellsWithPasted(ce,ne,ge,ie,te);if(this.editor.plugins.get("TableSelection").isEnabled){const ne=le.sortRanges(fe.map((ne=>te.createRangeOn(ne))));te.setSelection(ne)}else te.setSelection(fe[0],0)}))):ID(ce,le)}_replaceSelectedCellsWithPasted(te,ne,ie,re,le){const{width:ce,height:de}=ne,ue=function(te,ne,ie){const re=new Array(ie).fill(null).map((()=>new Array(ne).fill(null)));for(const{column:ne,row:ie,cell:le}of new uD(te))re[ie][ne]=le;return re}(te,ce,de),me=[...new uD(ie,{startRow:re.firstRow,endRow:re.lastRow,startColumn:re.firstColumn,endColumn:re.lastColumn,includeAllSlots:!0})],ge=[];let fe;for(const te of me){const{row:ne,column:ie}=te;ie===re.firstColumn&&(fe=te.getPositionBefore());const me=ne-re.firstRow,_e=ie-re.firstColumn,be=ue[me%de][_e%ce],Ce=be?le.cloneElement(be):null,ye=this._replaceTableSlotCell(te,Ce,fe,le);ye&&(DD(ye,ne,ie,re.lastRow,re.lastColumn,le),ge.push(ye),fe=le.createPositionAfter(ye))}const _e=parseInt(ie.getAttribute("headingRows")||"0"),be=parseInt(ie.getAttribute("headingColumns")||"0"),Ce=re.firstRow<_e&&_e<=re.lastRow,ye=re.firstColumn<be&&be<=re.lastColumn;if(Ce){const te=BS(ie,_e,{first:re.firstColumn,last:re.lastColumn},le,re.firstRow);ge.push(...te)}if(ye){const te=NS(ie,be,{first:re.firstRow,last:re.lastRow},le);ge.push(...te)}return ge}_replaceTableSlotCell(te,ne,ie,re){const{cell:le,isAnchor:ce}=te;return ce&&re.remove(le),ne?(re.insert(ne,ie),ne):null}getTableIfOnlyTableInContent(te,ne){if(!te.is("documentFragment")&&!te.is("element"))return null;if(te.is("element","table"))return te;if(1==te.childCount&&te.getChild(0).is("element","table"))return te.getChild(0);const ie=ne.createRangeIn(te);for(const te of ie.getItems())if(te.is("element","table")){const re=ne.createRange(ie.start,ne.createPositionBefore(te));if(ne.hasContent(re,{ignoreWhitespaces:!0}))return null;const le=ne.createRange(ne.createPositionAfter(te),ie.end);return ne.hasContent(le,{ignoreWhitespaces:!0})?null:te}return null}}function BS(te,ne,ie,re,le=0){if(!(ne<1))return vD(te,ne,le).filter((({column:te,cellWidth:ne})=>zS(te,ne,ie))).map((({cell:te})=>yD(te,ne,re)))}function NS(te,ne,ie,re){if(!(ne<1))return xD(te,ne).filter((({row:te,cellHeight:ne})=>zS(te,ne,ie))).map((({cell:te,column:ie})=>ED(te,ie,ne,re)))}function zS(te,ne,ie){const re=te+ne-1,{first:le,last:ce}=ie;return te>=le&&te<=ce||te<le&&re>=le}class PS extends Es{static get pluginName(){return"TableKeyboard"}static get requires(){return[IS,JD]}init(){const te=this.editor.editing.view.document;this.listenTo(te,"arrowKey",((...te)=>this._onArrowKey(...te)),{context:"table"}),this.listenTo(te,"tab",((...te)=>this._handleTabOnSelectedTable(...te)),{context:"figure"}),this.listenTo(te,"tab",((...te)=>this._handleTab(...te)),{context:["th","td"]})}_handleTabOnSelectedTable(te,ne){const ie=this.editor,re=ie.model.document.selection.getSelectedElement();re&&re.is("element","table")&&(ne.preventDefault(),ne.stopPropagation(),te.stop(),ie.model.change((te=>{te.setSelection(te.createRangeIn(re.getChild(0).getChild(0)))})))}_handleTab(te,ne){const ie=this.editor,re=this.editor.plugins.get(JD),le=this.editor.plugins.get("TableSelection"),ce=ie.model.document.selection,de=!ne.shiftKey;let ue=re.getTableCellsContainingSelection(ce)[0];if(ue||(ue=le.getFocusCell()),!ue)return;ne.preventDefault(),ne.stopPropagation(),te.stop();const me=ue.parent,ge=me.parent,fe=ge.getChildIndex(me),_e=me.getChildIndex(ue),be=0===_e;if(!de&&be&&0===fe)return void ie.model.change((te=>{te.setSelection(te.createRangeOn(ge))}));const Ce=_e===me.childCount-1,ye=fe===re.getRows(ge)-1;if(de&&ye&&Ce&&(ie.execute("insertTableRowBelow"),fe===re.getRows(ge)-1))return void ie.model.change((te=>{te.setSelection(te.createRangeOn(ge))}));let we;if(de&&Ce){const te=ge.getChild(fe+1);we=te.getChild(0)}else if(!de&&be){const te=ge.getChild(fe-1);we=te.getChild(te.childCount-1)}else we=me.getChild(_e+(de?1:-1));ie.model.change((te=>{te.setSelection(te.createRangeIn(we))}))}_onArrowKey(te,ne){const ie=this.editor,re=Ci(ne.keyCode,ie.locale.contentLanguageDirection);this._handleArrowKeys(re,ne.shiftKey)&&(ne.preventDefault(),ne.stopPropagation(),te.stop())}_handleArrowKeys(te,ne){const ie=this.editor.plugins.get(JD),re=this.editor.plugins.get("TableSelection"),le=this.editor.model,ce=le.document.selection,de=["right","down"].includes(te),ue=ie.getSelectedTableCells(ce);if(ue.length){let ie;return ie=ne?re.getFocusCell():de?ue[ue.length-1]:ue[0],this._navigateFromCellInDirection(ie,te,ne),!0}const me=ce.focus.findAncestor("tableCell");if(!me)return!1;if(!ce.isCollapsed)if(ne){if(ce.isBackward==de&&!ce.containsEntireContent(me))return!1}else{const te=ce.getSelectedElement();if(!te||!le.schema.isObject(te))return!1}return!!this._isSelectionAtCellEdge(ce,me,de)&&(this._navigateFromCellInDirection(me,te,ne),!0)}_isSelectionAtCellEdge(te,ne,ie){const re=this.editor.model,le=this.editor.model.schema,ce=ie?te.getLastPosition():te.getFirstPosition();if(!le.getLimitElement(ce).is("element","tableCell"))return re.createPositionAt(ne,ie?"end":0).isTouching(ce);const de=re.createSelection(ce);return re.modifySelection(de,{direction:ie?"forward":"backward"}),ce.isEqual(de.focus)}_navigateFromCellInDirection(te,ne,ie=!1){const re=this.editor.model,le=te.findAncestor("table"),ce=[...new uD(le,{includeAllSlots:!0})],{row:de,column:ue}=ce[ce.length-1],me=ce.find((({cell:ne})=>ne==te));let{row:ge,column:fe}=me;switch(ne){case"left":fe--;break;case"up":ge--;break;case"right":fe+=me.cellWidth;break;case"down":ge+=me.cellHeight}if(ge<0||ge>de||fe<0&&ge<=0||fe>ue&&ge>=de)return void re.change((te=>{te.setSelection(te.createRangeOn(le))}));fe<0?(fe=ie?0:ue,ge--):fe>ue&&(fe=ie?ue:0,ge++);const _e=ce.find((te=>te.row==ge&&te.column==fe)).cell,be=["right","down"].includes(ne),Ce=this.editor.plugins.get("TableSelection");if(ie&&Ce.isEnabled){const ne=Ce.getAnchorCell()||te;Ce.setCellSelection(ne,_e)}else{const te=re.createPositionAt(_e,be?0:"end");re.change((ne=>{ne.setSelection(te)}))}}}class LS extends pc{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(te){this.fire(te.type,te)}}class OS extends Es{static get pluginName(){return"TableMouse"}static get requires(){return[IS,JD]}init(){this.editor.editing.view.addObserver(LS),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const te=this.editor,ne=te.plugins.get(JD);let ie=!1;const re=te.plugins.get(IS);this.listenTo(te.editing.view.document,"mousedown",((le,ce)=>{const de=te.model.document.selection;if(!this.isEnabled||!re.isEnabled)return;if(!ce.domEvent.shiftKey)return;const ue=re.getAnchorCell()||ne.getTableCellsContainingSelection(de)[0];if(!ue)return;const me=this._getModelTableCellFromDomEvent(ce);me&&RS(ue,me)&&(ie=!0,re.setCellSelection(ue,me),ce.preventDefault())})),this.listenTo(te.editing.view.document,"mouseup",(()=>{ie=!1})),this.listenTo(te.editing.view.document,"selectionChange",(te=>{ie&&te.stop()}),{priority:"highest"})}_enableMouseDragSelection(){const te=this.editor;let ne,ie,re=!1,le=!1;const ce=te.plugins.get(IS);this.listenTo(te.editing.view.document,"mousedown",((te,ie)=>{this.isEnabled&&ce.isEnabled&&(ie.domEvent.shiftKey||ie.domEvent.ctrlKey||ie.domEvent.altKey||(ne=this._getModelTableCellFromDomEvent(ie)))})),this.listenTo(te.editing.view.document,"mousemove",((te,de)=>{if(!de.domEvent.buttons)return;if(!ne)return;const ue=this._getModelTableCellFromDomEvent(de);ue&&RS(ne,ue)&&(ie=ue,re||ie==ne||(re=!0)),re&&(le=!0,ce.setCellSelection(ne,ie),de.preventDefault())})),this.listenTo(te.editing.view.document,"mouseup",(()=>{re=!1,le=!1,ne=null,ie=null})),this.listenTo(te.editing.view.document,"selectionChange",(te=>{le&&te.stop()}),{priority:"highest"})}_getModelTableCellFromDomEvent(te){const ne=te.target,ie=this.editor.editing.view.createPositionAt(ne,0);return this.editor.editing.mapper.toModelPosition(ie).parent.findAncestor("tableCell",{includeSelf:!0})}}function RS(te,ne){return te.parent.parent==ne.parent.parent}var iy=i(2510);function jS(te){return HS(te)||US(te)}function HS(te){const ne=te.getSelectedElement();return ne&&WS(ne)?ne:null}function US(te){const ne=te.getFirstPosition();if(!ne)return null;let ie=ne.parent;for(;ie;){if(ie.is("element")&&WS(ie))return ie;ie=ie.parent}return null}function WS(te){return!!te.getCustomProperty("table")&&Rb(te)}Fo()(iy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),iy.Z.locals;var oy=i(9953);Fo()(oy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),oy.Z.locals;class ZS extends Hi{constructor(te,ne){super(te),this.set("value",""),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isEmpty",!0),this.options=ne,this.focusTracker=new Ti,this._focusables=new Oi,this.dropdownView=this._createDropdownView(),this.inputView=this._createInputTextView(),this.keystrokes=new Ii,this._stillTyping=!1,this.focusCycler=new As({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-input-color"]},children:[this.dropdownView,this.inputView]}),this.on("change:value",((te,ne,ie)=>this._setInputValue(ie)))}render(){super.render(),[this.inputView,this.dropdownView.buttonView].forEach((te=>{this.focusTracker.add(te.element),this._focusables.add(te)})),this.keystrokes.listenTo(this.element)}focus(te){-1===te?this.focusCycler.focusLast():this.focusCycler.focusFirst()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createDropdownView(){const te=this.locale,ne=te.t,ie=this.bindTemplate,re=this._createColorSelector(te),le=mg(te),ce=new Hi;return ce.setTemplate({tag:"span",attributes:{class:["ck","ck-input-color__button__preview"],style:{backgroundColor:ie.to("value")}},children:[{tag:"span",attributes:{class:["ck","ck-input-color__button__preview__no-color-indicator",ie.if("value","ck-hidden",(te=>""!=te))]}}]}),le.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),le.buttonView.children.add(ce),le.buttonView.label=ne("Color picker"),le.buttonView.tooltip=!0,le.panelPosition="rtl"===te.uiLanguageDirection?"se":"sw",le.panelView.children.add(re),le.bind("isEnabled").to(this,"isReadOnly",(te=>!te)),le.on("change:isOpen",((te,ne,ie)=>{ie&&(re.updateSelectedColors(),re.showColorGridsFragment())})),le}_createInputTextView(){const te=this.locale,ne=new ds(te);return ne.extendTemplate({on:{blur:ne.bindTemplate.to("blur")}}),ne.value=this.value,ne.bind("isReadOnly","hasError").to(this),this.bind("isFocused","isEmpty").to(ne),ne.on("input",(()=>{const te=ne.element.value,ie=this.options.colorDefinitions.find((ne=>te===ne.label));this._stillTyping=!0,this.value=ie&&ie.color||te})),ne.on("blur",(()=>{this._stillTyping=!1,this._setInputValue(ne.element.value)})),ne.delegate("input").to(this),ne}_createColorSelector(te){const ne=te.t,ie=this.options.defaultColorValue||"",re=ne(ie?"Restore default":"Remove color"),le=new up(te,{colors:this.options.colorDefinitions,columns:this.options.columns,removeButtonLabel:re,colorPickerLabel:ne("Color picker"),colorPickerViewConfig:!1!==this.options.colorPickerConfig&&{...this.options.colorPickerConfig,hideInput:!0}});le.appendUI(),le.on("execute",((te,ne)=>{"colorPickerSaveButton"!==ne.source?(this.value=ne.value||ie,this.fire("input"),"colorPicker"!==ne.source&&(this.dropdownView.isOpen=!1)):this.dropdownView.isOpen=!1}));let ce=this.value;return le.on("colorPicker:cancel",(()=>{this.value=ce,this.fire("input"),this.dropdownView.isOpen=!1})),le.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{ce=this.value})),le.bind("selectedColor").to(this,"value"),le}_setInputValue(te){if(!this._stillTyping){const ne=$S(te),ie=this.options.colorDefinitions.find((te=>ne===$S(te.color)));this.inputView.value=ie?ie.label:te||""}}}function $S(te){return te.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ")}const KS=te=>""===te;function YS(te){return{none:te("None"),solid:te("Solid"),dotted:te("Dotted"),dashed:te("Dashed"),double:te("Double"),groove:te("Groove"),ridge:te("Ridge"),inset:te("Inset"),outset:te("Outset")}}function QS(te){return te('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".')}function JS(te){return te('The value is invalid. Try "10px" or "2em" or simply "2".')}function XS(te){return te=te.trim().toLowerCase(),KS(te)||rm(te)}function tT(te){return te=te.trim(),KS(te)||sT(te)||cm(te)||hm(te)}function eT(te){return te=te.trim(),KS(te)||sT(te)||cm(te)}function nT(te,ne){const ie=new Di,re=YS(te.t);for(const le in re){const ce={type:"button",model:new wf({_borderStyleValue:le,label:re[le],role:"menuitemradio",withText:!0})};"none"===le?ce.model.bind("isOn").to(te,"borderStyle",(te=>"none"===ne?!te:te===le)):ce.model.bind("isOn").to(te,"borderStyle",(te=>te===le)),ie.add(ce)}return ie}function oT(te){const{view:ne,icons:ie,toolbar:re,labels:le,propertyName:ce,nameToValue:de,defaultValue:ue}=te;for(const te in le){const me=new br(ne.locale);me.set({label:le[te],icon:ie[te],tooltip:le[te]});const ge=de?de(te):te;me.bind("isOn").to(ne,ce,(te=>{let ne=te;return""===te&&ue&&(ne=ue),ge===ne})),me.on("execute",(()=>{ne[ce]=ge})),re.items.add(me)}}const ry=[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}];function rT(te){return(ne,ie,re)=>{const le=new ZS(ne.locale,{colorDefinitions:(ce=te.colorConfig,ce.map((te=>({color:te.model,label:te.label,options:{hasBorder:te.hasBorder}})))),columns:te.columns,defaultColorValue:te.defaultColorValue,colorPickerConfig:te.colorPickerConfig});var ce;return le.inputView.set({id:ie,ariaDescribedById:re}),le.bind("isReadOnly").to(ne,"isEnabled",(te=>!te)),le.bind("hasError").to(ne,"errorText",(te=>!!te)),le.on("input",(()=>{ne.errorText=null})),ne.bind("isEmpty","isFocused").to(le),le}}function sT(te){const ne=parseFloat(te);return!Number.isNaN(ne)&&te===String(ne)}var ay=i(6908);Fo()(ay.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ay.Z.locals;class cT extends Hi{constructor(te,ne={}){super(te);const ie=this.bindTemplate;this.set("class",ne.class||null),this.children=this.createCollection(),ne.children&&ne.children.forEach((te=>this.children.add(te))),this.set("_role",null),this.set("_ariaLabelledBy",null),ne.labelView&&this.set({_role:"group",_ariaLabelledBy:ne.labelView.id}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",ie.to("class")],role:ie.to("_role"),"aria-labelledby":ie.to("_ariaLabelledBy")},children:this.children})}}var sy=i(7502);Fo()(sy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),sy.Z.locals;var ly=i(9429);Fo()(ly.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ly.Z.locals;var cy=i(3964);Fo()(cy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cy.Z.locals;const dy={left:Dc.alignLeft,center:Dc.alignCenter,right:Dc.alignRight,justify:Dc.alignJustify,top:Dc.alignTop,middle:Dc.alignMiddle,bottom:Dc.alignBottom};class kT extends Hi{constructor(te,ne){super(te),this.set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),this.options=ne;const{borderStyleDropdown:ie,borderWidthInput:re,borderColorInput:le,borderRowLabel:ce}=this._createBorderFields(),{backgroundRowLabel:de,backgroundInput:ue}=this._createBackgroundFields(),{widthInput:me,operatorLabel:ge,heightInput:fe,dimensionsLabel:_e}=this._createDimensionFields(),{horizontalAlignmentToolbar:be,verticalAlignmentToolbar:Ce,alignmentLabel:ye}=this._createAlignmentFields();this.focusTracker=new Ti,this.keystrokes=new Ii,this.children=this.createCollection(),this.borderStyleDropdown=ie,this.borderWidthInput=re,this.borderColorInput=le,this.backgroundInput=ue,this.paddingInput=this._createPaddingField(),this.widthInput=me,this.heightInput=fe,this.horizontalAlignmentToolbar=be,this.verticalAlignmentToolbar=Ce;const{saveButtonView:we,cancelButtonView:ke}=this._createActionButtons();this.saveButtonView=we,this.cancelButtonView=ke,this._focusables=new Oi,this._focusCycler=new As({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new kp(te,{label:this.t("Cell properties")})),this.children.add(new cT(te,{labelView:ce,children:[ce,ie,le,re],class:"ck-table-form__border-row"})),this.children.add(new cT(te,{labelView:de,children:[de,ue],class:"ck-table-form__background-row"})),this.children.add(new cT(te,{children:[new cT(te,{labelView:_e,children:[_e,me,ge,fe],class:"ck-table-form__dimensions-row"}),new cT(te,{children:[this.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),this.children.add(new cT(te,{labelView:ye,children:[ye,be,Ce],class:"ck-table-cell-properties-form__alignment-row"})),this.children.add(new cT(te,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-cell-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),n({view:this}),[this.borderColorInput,this.backgroundInput].forEach((te=>{te.fieldView.focusCycler.on("forwardCycle",(te=>{this._focusCycler.focusNext(),te.stop()})),te.fieldView.focusCycler.on("backwardCycle",(te=>{this._focusCycler.focusPrevious(),te.stop()}))})),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.paddingInput,this.horizontalAlignmentToolbar,this.verticalAlignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((te=>{this._focusables.add(te),this.focusTracker.add(te.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const te=this.options.defaultTableCellProperties,ne={style:te.borderStyle,width:te.borderWidth,color:te.borderColor},ie=rT({colorConfig:this.options.borderColors,columns:5,defaultColorValue:ne.color,colorPickerConfig:this.options.colorPickerConfig}),re=this.locale,le=this.t,ce=le("Style"),de=new ns(re);de.text=le("Border");const ue=YS(le),me=new rs(re,_g);me.set({label:ce,class:"ck-table-form__border-style"}),me.fieldView.buttonView.set({ariaLabel:ce,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:ce}),me.fieldView.buttonView.bind("label").to(this,"borderStyle",(te=>ue[te||"none"])),me.fieldView.on("execute",(te=>{this.borderStyle=te.source._borderStyleValue})),me.bind("isEmpty").to(this,"borderStyle",(te=>!te)),fg(me.fieldView,nT(this,ne.style),{role:"menu",ariaLabel:ce});const ge=new rs(re,Ag);ge.set({label:le("Width"),class:"ck-table-form__border-width"}),ge.fieldView.bind("value").to(this,"borderWidth"),ge.bind("isEnabled").to(this,"borderStyle",bT),ge.fieldView.on("input",(()=>{this.borderWidth=ge.fieldView.element.value}));const fe=new rs(re,ie);return fe.set({label:le("Color"),class:"ck-table-form__border-color"}),fe.fieldView.bind("value").to(this,"borderColor"),fe.bind("isEnabled").to(this,"borderStyle",bT),fe.fieldView.on("input",(()=>{this.borderColor=fe.fieldView.value})),this.on("change:borderStyle",((te,ie,re,le)=>{bT(re)||(this.borderColor="",this.borderWidth=""),bT(le)||(this.borderColor=ne.color,this.borderWidth=ne.width)})),{borderRowLabel:de,borderStyleDropdown:me,borderColorInput:fe,borderWidthInput:ge}}_createBackgroundFields(){const te=this.locale,ne=this.t,ie=new ns(te);ie.text=ne("Background");const re=rT({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableCellProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),le=new rs(te,re);return le.set({label:ne("Color"),class:"ck-table-cell-properties-form__background"}),le.fieldView.bind("value").to(this,"backgroundColor"),le.fieldView.on("input",(()=>{this.backgroundColor=le.fieldView.value})),{backgroundRowLabel:ie,backgroundInput:le}}_createDimensionFields(){const te=this.locale,ne=this.t,ie=new ns(te);ie.text=ne("Dimensions");const re=new rs(te,Ag);re.set({label:ne("Width"),class:"ck-table-form__dimensions-row__width"}),re.fieldView.bind("value").to(this,"width"),re.fieldView.on("input",(()=>{this.width=re.fieldView.element.value}));const le=new Hi(te);le.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const ce=new rs(te,Ag);return ce.set({label:ne("Height"),class:"ck-table-form__dimensions-row__height"}),ce.fieldView.bind("value").to(this,"height"),ce.fieldView.on("input",(()=>{this.height=ce.fieldView.element.value})),{dimensionsLabel:ie,widthInput:re,operatorLabel:le,heightInput:ce}}_createPaddingField(){const te=this.locale,ne=this.t,ie=new rs(te,Ag);return ie.set({label:ne("Padding"),class:"ck-table-cell-properties-form__padding"}),ie.fieldView.bind("value").to(this,"padding"),ie.fieldView.on("input",(()=>{this.padding=ie.fieldView.element.value})),ie}_createAlignmentFields(){const te=this.locale,ne=this.t,ie=new ns(te);ie.text=ne("Table cell text alignment");const re=new Ym(te),le="rtl"===te.contentLanguageDirection;re.set({isCompact:!0,ariaLabel:ne("Horizontal text alignment toolbar")}),oT({view:this,icons:dy,toolbar:re,labels:this._horizontalAlignmentLabels,propertyName:"horizontalAlignment",nameToValue:te=>{if(le){if("left"===te)return"right";if("right"===te)return"left"}return te},defaultValue:this.options.defaultTableCellProperties.horizontalAlignment});const ce=new Ym(te);return ce.set({isCompact:!0,ariaLabel:ne("Vertical text alignment toolbar")}),oT({view:this,icons:dy,toolbar:ce,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",defaultValue:this.options.defaultTableCellProperties.verticalAlignment}),{horizontalAlignmentToolbar:re,verticalAlignmentToolbar:ce,alignmentLabel:ie}}_createActionButtons(){const te=this.locale,ne=this.t,ie=new br(te),re=new br(te),le=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return ie.set({label:ne("Save"),icon:Dc.check,class:"ck-button-save",type:"submit",withText:!0}),ie.bind("isEnabled").toMany(le,"errorText",((...te)=>te.every((te=>!te)))),re.set({label:ne("Cancel"),icon:Dc.cancel,class:"ck-button-cancel",withText:!0}),re.delegate("execute").to(this,"cancel"),{saveButtonView:ie,cancelButtonView:re}}get _horizontalAlignmentLabels(){const te=this.locale,ne=this.t,ie=ne("Align cell text to the left"),re=ne("Align cell text to the center"),le=ne("Align cell text to the right"),ce=ne("Justify cell text");return"rtl"===te.uiLanguageDirection?{right:le,center:re,left:ie,justify:ce}:{left:ie,center:re,right:le,justify:ce}}get _verticalAlignmentLabels(){const te=this.t;return{top:te("Align cell text to the top"),middle:te("Align cell text to the middle"),bottom:te("Align cell text to the bottom")}}}function bT(te){return"none"!==te}const uy=Pp.defaultPositions,py=[uy.northArrowSouth,uy.northArrowSouthWest,uy.northArrowSouthEast,uy.southArrowNorth,uy.southArrowNorthWest,uy.southArrowNorthEast,uy.viewportStickyNorth];function CT(te,ne){const ie=te.plugins.get("ContextualBalloon"),re=te.editing.view.document.selection;let le;"cell"===ne?US(re)&&(le=vT(te)):jS(re)&&(le=_T(te)),le&&ie.updatePosition(le)}function _T(te){const ne=lD(te.model.document.selection),ie=te.editing.mapper.toViewElement(ne);return{target:te.editing.view.domConverter.mapViewToDom(ie),positions:py}}function vT(te){const ne=te.editing.mapper,ie=te.editing.view.domConverter,re=te.model.document.selection;if(re.rangeCount>1)return{target:()=>function(te,ne){const ie=ne.editing.mapper,re=ne.editing.view.domConverter,le=Array.from(te).map((te=>{const ne=yT(te.start),le=ie.toViewElement(ne);return new jo(re.mapViewToDom(le))}));return jo.getBoundingRect(le)}(re.getRanges(),te),positions:py};const le=yT(re.getFirstPosition()),ce=ne.toViewElement(le);return{target:ie.mapViewToDom(ce),positions:py}}function yT(te){return te.nodeAfter&&te.nodeAfter.is("element","tableCell")?te.nodeAfter:te.findAncestor("tableCell")}function xT(te){if(!te||!V(te))return te;const{top:ne,right:ie,bottom:re,left:le}=te;return ne==ie&&ie==re&&re==le?ne:void 0}function ET(te,ne){const ie=parseFloat(te);return Number.isNaN(ie)||String(ie)!==String(te)?te:`${ie}${ne}`}function DT(te,ne={}){const ie={borderStyle:"none",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",...te};return ne.includeAlignmentProperty&&!ie.alignment&&(ie.alignment="center"),ne.includePaddingProperty&&!ie.padding&&(ie.padding=""),ne.includeVerticalAlignmentProperty&&!ie.verticalAlignment&&(ie.verticalAlignment="middle"),ne.includeHorizontalAlignmentProperty&&!ie.horizontalAlignment&&(ie.horizontalAlignment=ne.isRightToLeftContent?"right":"left"),ie}const fy={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",height:"tableCellHeight",width:"tableCellWidth",padding:"tableCellPadding",backgroundColor:"tableCellBackgroundColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"};class TT extends Es{static get requires(){return[xf]}static get pluginName(){return"TableCellPropertiesUI"}constructor(te){super(te),te.config.define("table.tableCellProperties",{borderColors:ry,backgroundColors:ry})}init(){const te=this.editor,ne=te.t;this._defaultTableCellProperties=DT(te.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===te.locale.contentLanguageDirection}),this._balloon=te.plugins.get(xf),this.view=null,this._isReady=!1,te.ui.componentFactory.add("tableCellProperties",(ie=>{const re=new br(ie);re.set({label:ne("Cell properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',tooltip:!0}),this.listenTo(re,"execute",(()=>this._showView()));const le=Object.values(fy).map((ne=>te.commands.get(ne)));return re.bind("isEnabled").toMany(le,"isEnabled",((...te)=>te.some((te=>te)))),re}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const te=this.editor,ne=te.config.get("table.tableCellProperties"),ie=Dr(ne.borderColors),re=Er(te.locale,ie),le=Dr(ne.backgroundColors),ce=Er(te.locale,le),de=!1!==ne.colorPicker,ue=new kT(te.locale,{borderColors:re,backgroundColors:ce,defaultTableCellProperties:this._defaultTableCellProperties,colorPickerConfig:!!de&&(ne.colorPicker||{})}),me=te.t;ue.render(),this.listenTo(ue,"submit",(()=>{this._hideView()})),this.listenTo(ue,"cancel",(()=>{this._undoStepBatch.operations.length&&te.execute("undo",this._undoStepBatch),this._hideView()})),ue.keystrokes.set("Esc",((te,ne)=>{this._hideView(),ne()})),t({emitter:ue,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const ge=QS(me),fe=JS(me);return ue.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle")),ue.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:ue.borderColorInput,commandName:"tableCellBorderColor",errorText:ge,validator:XS})),ue.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:ue.borderWidthInput,commandName:"tableCellBorderWidth",errorText:fe,validator:eT})),ue.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:ue.paddingInput,commandName:"tableCellPadding",errorText:fe,validator:tT})),ue.on("change:width",this._getValidatedPropertyChangeCallback({viewField:ue.widthInput,commandName:"tableCellWidth",errorText:fe,validator:tT})),ue.on("change:height",this._getValidatedPropertyChangeCallback({viewField:ue.heightInput,commandName:"tableCellHeight",errorText:fe,validator:tT})),ue.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:ue.backgroundInput,commandName:"tableCellBackgroundColor",errorText:ge,validator:XS})),ue.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment")),ue.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment")),ue}_fillViewFormFromCommandValues(){const te=this.editor.commands,ne=te.get("tableCellBorderStyle");Object.entries(fy).map((([ne,ie])=>{const re=this._defaultTableCellProperties[ne]||"";return[ne,te.get(ie).value||re]})).forEach((([te,ie])=>{("borderColor"!==te&&"borderWidth"!==te||"none"!==ne.value)&&this.view.set(te,ie)})),this._isReady=!0}_showView(){const te=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(te.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:vT(te)}),this._undoStepBatch=te.model.createBatch(),this.view.focus()}_hideView(){const te=this.editor;this.stopListening(te.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const te=this.editor;US(te.editing.view.document.selection)?this._isViewVisible&&CT(te,"cell"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(te){return(ne,ie,re)=>{this._isReady&&this.editor.execute(te,{value:re,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(te){const{commandName:ne,viewField:ie,validator:re,errorText:le}=te,ce=Xr((()=>{ie.errorText=le}),500);return(te,le,de)=>{ce.cancel(),this._isReady&&(re(de)?(this.editor.execute(ne,{value:de,batch:this._undoStepBatch}),ie.errorText=null):ce())}}}class IT extends Ss{constructor(te,ne,ie){super(te),this.attributeName=ne,this._defaultValue=ie}refresh(){const te=this.editor,ne=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(te.model.document.selection);this.isEnabled=!!ne.length,this.value=this._getSingleValue(ne)}execute(te={}){const{value:ne,batch:ie}=te,re=this.editor.model,le=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(re.document.selection),ce=this._getValueToSet(ne);re.enqueueChange(ie,(te=>{ce?le.forEach((ne=>te.setAttribute(this.attributeName,ce,ne))):le.forEach((ne=>te.removeAttribute(this.attributeName,ne)))}))}_getAttribute(te){if(!te)return;const ne=te.getAttribute(this.attributeName);return ne!==this._defaultValue?ne:void 0}_getValueToSet(te){if(te!==this._defaultValue)return te}_getSingleValue(te){const ne=this._getAttribute(te[0]);return te.every((te=>this._getAttribute(te)===ne))?ne:void 0}}class MT extends IT{constructor(te,ne){super(te,"tableCellWidth",ne)}_getValueToSet(te){if((te=ET(te,"px"))!==this._defaultValue)return te}}class BT extends Es{static get pluginName(){return"TableCellWidthEditing"}static get requires(){return[CS]}init(){const te=this.editor,ne=DT(te.config.get("table.tableCellProperties.defaultProperties"));aD(te.model.schema,te.conversion,{modelAttribute:"tableCellWidth",styleName:"width",defaultValue:ne.width}),te.commands.add("tableCellWidth",new MT(te,ne.width))}}class NT extends IT{constructor(te,ne){super(te,"tableCellPadding",ne)}_getAttribute(te){if(!te)return;const ne=xT(te.getAttribute(this.attributeName));return ne!==this._defaultValue?ne:void 0}_getValueToSet(te){const ne=ET(te,"px");if(ne!==this._defaultValue)return ne}}class zT extends IT{constructor(te,ne){super(te,"tableCellHeight",ne)}_getValueToSet(te){const ne=ET(te,"px");if(ne!==this._defaultValue)return ne}}class PT extends IT{constructor(te,ne){super(te,"tableCellBackgroundColor",ne)}}class LT extends IT{constructor(te,ne){super(te,"tableCellVerticalAlignment",ne)}}class OT extends IT{constructor(te,ne){super(te,"tableCellHorizontalAlignment",ne)}}class RT extends IT{constructor(te,ne){super(te,"tableCellBorderStyle",ne)}_getAttribute(te){if(!te)return;const ne=xT(te.getAttribute(this.attributeName));return ne!==this._defaultValue?ne:void 0}}class VT extends IT{constructor(te,ne){super(te,"tableCellBorderColor",ne)}_getAttribute(te){if(!te)return;const ne=xT(te.getAttribute(this.attributeName));return ne!==this._defaultValue?ne:void 0}}class FT extends IT{constructor(te,ne){super(te,"tableCellBorderWidth",ne)}_getAttribute(te){if(!te)return;const ne=xT(te.getAttribute(this.attributeName));return ne!==this._defaultValue?ne:void 0}_getValueToSet(te){const ne=ET(te,"px");if(ne!==this._defaultValue)return ne}}const Iy=/^(top|middle|bottom)$/,Sy=/^(left|center|right|justify)$/;class UT extends Es{static get pluginName(){return"TableCellPropertiesEditing"}static get requires(){return[CS,BT]}init(){const te=this.editor,ne=te.model.schema,ie=te.conversion;te.config.define("table.tableCellProperties.defaultProperties",{});const re=DT(te.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===te.locale.contentLanguageDirection});te.data.addStyleProcessorRules(Em),function(te,ne,ie){const re={width:"tableCellBorderWidth",color:"tableCellBorderColor",style:"tableCellBorderStyle"};te.extend("tableCell",{allowAttributes:Object.values(re)}),tD(ne,"td",re,ie),tD(ne,"th",re,ie),eD(ne,{modelElement:"tableCell",modelAttribute:re.style,styleName:"border-style"}),eD(ne,{modelElement:"tableCell",modelAttribute:re.color,styleName:"border-color"}),eD(ne,{modelElement:"tableCell",modelAttribute:re.width,styleName:"border-width"})}(ne,ie,{color:re.borderColor,style:re.borderStyle,width:re.borderWidth}),te.commands.add("tableCellBorderStyle",new RT(te,re.borderStyle)),te.commands.add("tableCellBorderColor",new VT(te,re.borderColor)),te.commands.add("tableCellBorderWidth",new FT(te,re.borderWidth)),aD(ne,ie,{modelAttribute:"tableCellHeight",styleName:"height",defaultValue:re.height}),te.commands.add("tableCellHeight",new zT(te,re.height)),te.data.addStyleProcessorRules(Om),aD(ne,ie,{modelAttribute:"tableCellPadding",styleName:"padding",reduceBoxSides:!0,defaultValue:re.padding}),te.commands.add("tableCellPadding",new NT(te,re.padding)),te.data.addStyleProcessorRules(xm),aD(ne,ie,{modelAttribute:"tableCellBackgroundColor",styleName:"background-color",defaultValue:re.backgroundColor}),te.commands.add("tableCellBackgroundColor",new PT(te,re.backgroundColor)),function(te,ne,ie){te.extend("tableCell",{allowAttributes:["tableCellHorizontalAlignment"]}),ne.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellHorizontalAlignment"},view:te=>({key:"style",value:{"text-align":te}})}),ne.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"text-align":Sy}},model:{key:"tableCellHorizontalAlignment",value:te=>{const ne=te.getStyle("text-align");return ne===ie?null:ne}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{align:Sy}},model:{key:"tableCellHorizontalAlignment",value:te=>{const ne=te.getAttribute("align");return ne===ie?null:ne}}})}(ne,ie,re.horizontalAlignment),te.commands.add("tableCellHorizontalAlignment",new OT(te,re.horizontalAlignment)),function(te,ne,ie){te.extend("tableCell",{allowAttributes:["tableCellVerticalAlignment"]}),ne.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellVerticalAlignment"},view:te=>({key:"style",value:{"vertical-align":te}})}),ne.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"vertical-align":Iy}},model:{key:"tableCellVerticalAlignment",value:te=>{const ne=te.getStyle("vertical-align");return ne===ie?null:ne}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{valign:Iy}},model:{key:"tableCellVerticalAlignment",value:te=>{const ne=te.getAttribute("valign");return ne===ie?null:ne}}})}(ne,ie,re.verticalAlignment),te.commands.add("tableCellVerticalAlignment",new LT(te,re.verticalAlignment))}}class WT extends Ss{constructor(te,ne,ie){super(te),this.attributeName=ne,this._defaultValue=ie}refresh(){const te=lD(this.editor.model.document.selection);this.isEnabled=!!te,this.value=this._getValue(te)}execute(te={}){const ne=this.editor.model,ie=ne.document.selection,{value:re,batch:le}=te,ce=lD(ie),de=this._getValueToSet(re);ne.enqueueChange(le,(te=>{de?te.setAttribute(this.attributeName,de,ce):te.removeAttribute(this.attributeName,ce)}))}_getValue(te){if(!te)return;const ne=te.getAttribute(this.attributeName);return ne!==this._defaultValue?ne:void 0}_getValueToSet(te){if(te!==this._defaultValue)return te}}class GT extends WT{constructor(te,ne){super(te,"tableBackgroundColor",ne)}}class qT extends WT{constructor(te,ne){super(te,"tableBorderColor",ne)}_getValue(te){if(!te)return;const ne=xT(te.getAttribute(this.attributeName));return ne!==this._defaultValue?ne:void 0}}class ZT extends WT{constructor(te,ne){super(te,"tableBorderStyle",ne)}_getValue(te){if(!te)return;const ne=xT(te.getAttribute(this.attributeName));return ne!==this._defaultValue?ne:void 0}}class $T extends WT{constructor(te,ne){super(te,"tableBorderWidth",ne)}_getValue(te){if(!te)return;const ne=xT(te.getAttribute(this.attributeName));return ne!==this._defaultValue?ne:void 0}_getValueToSet(te){const ne=ET(te,"px");if(ne!==this._defaultValue)return ne}}class KT extends WT{constructor(te,ne){super(te,"tableWidth",ne)}_getValueToSet(te){if((te=ET(te,"px"))!==this._defaultValue)return te}}class YT extends WT{constructor(te,ne){super(te,"tableHeight",ne)}_getValueToSet(te){if((te=ET(te,"px"))!==this._defaultValue)return te}}class QT extends WT{constructor(te,ne){super(te,"tableAlignment",ne)}}const Ty=/^(left|center|right)$/,Ey=/^(left|none|right)$/;class tI extends Es{static get pluginName(){return"TablePropertiesEditing"}static get requires(){return[CS]}init(){const te=this.editor,ne=te.model.schema,ie=te.conversion;te.config.define("table.tableProperties.defaultProperties",{});const re=DT(te.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0});te.data.addStyleProcessorRules(Em),function(te,ne,ie){const re={width:"tableBorderWidth",color:"tableBorderColor",style:"tableBorderStyle"};te.extend("table",{allowAttributes:Object.values(re)}),tD(ne,"table",re,ie),nD(ne,{modelAttribute:re.color,styleName:"border-color"}),nD(ne,{modelAttribute:re.style,styleName:"border-style"}),nD(ne,{modelAttribute:re.width,styleName:"border-width"})}(ne,ie,{color:re.borderColor,style:re.borderStyle,width:re.borderWidth}),te.commands.add("tableBorderColor",new qT(te,re.borderColor)),te.commands.add("tableBorderStyle",new ZT(te,re.borderStyle)),te.commands.add("tableBorderWidth",new $T(te,re.borderWidth)),function(te,ne,ie){te.extend("table",{allowAttributes:["tableAlignment"]}),ne.for("downcast").attributeToAttribute({model:{name:"table",key:"tableAlignment"},view:te=>({key:"style",value:{float:"center"===te?"none":te}}),converterPriority:"high"}),ne.for("upcast").attributeToAttribute({view:{name:/^(table|figure)$/,styles:{float:Ey}},model:{key:"tableAlignment",value:te=>{let ne=te.getStyle("float");return"none"===ne&&(ne="center"),ne===ie?null:ne}}}).attributeToAttribute({view:{attributes:{align:Ty}},model:{name:"table",key:"tableAlignment",value:te=>{const ne=te.getAttribute("align");return ne===ie?null:ne}}})}(ne,ie,re.alignment),te.commands.add("tableAlignment",new QT(te,re.alignment)),eI(ne,ie,{modelAttribute:"tableWidth",styleName:"width",defaultValue:re.width}),te.commands.add("tableWidth",new KT(te,re.width)),eI(ne,ie,{modelAttribute:"tableHeight",styleName:"height",defaultValue:re.height}),te.commands.add("tableHeight",new YT(te,re.height)),te.data.addStyleProcessorRules(xm),function(te,ne,ie){const{modelAttribute:re}=ie;te.extend("table",{allowAttributes:[re]}),XE(ne,{viewElement:"table",...ie}),nD(ne,ie)}(ne,ie,{modelAttribute:"tableBackgroundColor",styleName:"background-color",defaultValue:re.backgroundColor}),te.commands.add("tableBackgroundColor",new GT(te,re.backgroundColor))}}function eI(te,ne,ie){const{modelAttribute:re}=ie;te.extend("table",{allowAttributes:[re]}),XE(ne,{viewElement:/^(table|figure)$/,shouldUpcast:te=>!("table"==te.name&&"figure"==te.parent.name),...ie}),eD(ne,{modelElement:"table",...ie})}var My=i(6596);Fo()(My.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),My.Z.locals;const By={left:Dc.objectLeft,center:Dc.objectCenter,right:Dc.objectRight};class rI extends Hi{constructor(te,ne){super(te),this.set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),this.options=ne;const{borderStyleDropdown:ie,borderWidthInput:re,borderColorInput:le,borderRowLabel:ce}=this._createBorderFields(),{backgroundRowLabel:de,backgroundInput:ue}=this._createBackgroundFields(),{widthInput:me,operatorLabel:ge,heightInput:fe,dimensionsLabel:_e}=this._createDimensionFields(),{alignmentToolbar:be,alignmentLabel:Ce}=this._createAlignmentFields();this.focusTracker=new Ti,this.keystrokes=new Ii,this.children=this.createCollection(),this.borderStyleDropdown=ie,this.borderWidthInput=re,this.borderColorInput=le,this.backgroundInput=ue,this.widthInput=me,this.heightInput=fe,this.alignmentToolbar=be;const{saveButtonView:ye,cancelButtonView:we}=this._createActionButtons();this.saveButtonView=ye,this.cancelButtonView=we,this._focusables=new Oi,this._focusCycler=new As({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new kp(te,{label:this.t("Table properties")})),this.children.add(new cT(te,{labelView:ce,children:[ce,ie,le,re],class:"ck-table-form__border-row"})),this.children.add(new cT(te,{labelView:de,children:[de,ue],class:"ck-table-form__background-row"})),this.children.add(new cT(te,{children:[new cT(te,{labelView:_e,children:[_e,me,ge,fe],class:"ck-table-form__dimensions-row"}),new cT(te,{labelView:Ce,children:[Ce,be],class:"ck-table-properties-form__alignment-row"})]})),this.children.add(new cT(te,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),n({view:this}),[this.borderColorInput,this.backgroundInput].forEach((te=>{te.fieldView.focusCycler.on("forwardCycle",(te=>{this._focusCycler.focusNext(),te.stop()})),te.fieldView.focusCycler.on("backwardCycle",(te=>{this._focusCycler.focusPrevious(),te.stop()}))})),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.alignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((te=>{this._focusables.add(te),this.focusTracker.add(te.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const te=this.options.defaultTableProperties,ne={style:te.borderStyle,width:te.borderWidth,color:te.borderColor},ie=rT({colorConfig:this.options.borderColors,columns:5,defaultColorValue:ne.color,colorPickerConfig:this.options.colorPickerConfig}),re=this.locale,le=this.t,ce=le("Style"),de=new ns(re);de.text=le("Border");const ue=YS(le),me=new rs(re,_g);me.set({label:ce,class:"ck-table-form__border-style"}),me.fieldView.buttonView.set({ariaLabel:ce,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:ce}),me.fieldView.buttonView.bind("label").to(this,"borderStyle",(te=>ue[te||"none"])),me.fieldView.on("execute",(te=>{this.borderStyle=te.source._borderStyleValue})),me.bind("isEmpty").to(this,"borderStyle",(te=>!te)),fg(me.fieldView,nT(this,ne.style),{role:"menu",ariaLabel:ce});const ge=new rs(re,Ag);ge.set({label:le("Width"),class:"ck-table-form__border-width"}),ge.fieldView.bind("value").to(this,"borderWidth"),ge.bind("isEnabled").to(this,"borderStyle",sI),ge.fieldView.on("input",(()=>{this.borderWidth=ge.fieldView.element.value}));const fe=new rs(re,ie);return fe.set({label:le("Color"),class:"ck-table-form__border-color"}),fe.fieldView.bind("value").to(this,"borderColor"),fe.bind("isEnabled").to(this,"borderStyle",sI),fe.fieldView.on("input",(()=>{this.borderColor=fe.fieldView.value})),this.on("change:borderStyle",((te,ie,re,le)=>{sI(re)||(this.borderColor="",this.borderWidth=""),sI(le)||(this.borderColor=ne.color,this.borderWidth=ne.width)})),{borderRowLabel:de,borderStyleDropdown:me,borderColorInput:fe,borderWidthInput:ge}}_createBackgroundFields(){const te=this.locale,ne=this.t,ie=new ns(te);ie.text=ne("Background");const re=rT({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),le=new rs(te,re);return le.set({label:ne("Color"),class:"ck-table-properties-form__background"}),le.fieldView.bind("value").to(this,"backgroundColor"),le.fieldView.on("input",(()=>{this.backgroundColor=le.fieldView.value})),{backgroundRowLabel:ie,backgroundInput:le}}_createDimensionFields(){const te=this.locale,ne=this.t,ie=new ns(te);ie.text=ne("Dimensions");const re=new rs(te,Ag);re.set({label:ne("Width"),class:"ck-table-form__dimensions-row__width"}),re.fieldView.bind("value").to(this,"width"),re.fieldView.on("input",(()=>{this.width=re.fieldView.element.value}));const le=new Hi(te);le.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const ce=new rs(te,Ag);return ce.set({label:ne("Height"),class:"ck-table-form__dimensions-row__height"}),ce.fieldView.bind("value").to(this,"height"),ce.fieldView.on("input",(()=>{this.height=ce.fieldView.element.value})),{dimensionsLabel:ie,widthInput:re,operatorLabel:le,heightInput:ce}}_createAlignmentFields(){const te=this.locale,ne=this.t,ie=new ns(te);ie.text=ne("Alignment");const re=new Ym(te);return re.set({isCompact:!0,ariaLabel:ne("Table alignment toolbar")}),oT({view:this,icons:By,toolbar:re,labels:this._alignmentLabels,propertyName:"alignment",defaultValue:this.options.defaultTableProperties.alignment}),{alignmentLabel:ie,alignmentToolbar:re}}_createActionButtons(){const te=this.locale,ne=this.t,ie=new br(te),re=new br(te),le=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return ie.set({label:ne("Save"),icon:Dc.check,class:"ck-button-save",type:"submit",withText:!0}),ie.bind("isEnabled").toMany(le,"errorText",((...te)=>te.every((te=>!te)))),re.set({label:ne("Cancel"),icon:Dc.cancel,class:"ck-button-cancel",withText:!0}),re.delegate("execute").to(this,"cancel"),{saveButtonView:ie,cancelButtonView:re}}get _alignmentLabels(){const te=this.locale,ne=this.t,ie=ne("Align table to the left"),re=ne("Center table"),le=ne("Align table to the right");return"rtl"===te.uiLanguageDirection?{right:le,center:re,left:ie}:{left:ie,center:re,right:le}}}function sI(te){return"none"!==te}const Gy={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"};class lI extends Es{static get requires(){return[xf]}static get pluginName(){return"TablePropertiesUI"}constructor(te){super(te),this.view=null,te.config.define("table.tableProperties",{borderColors:ry,backgroundColors:ry})}init(){const te=this.editor,ne=te.t;this._defaultTableProperties=DT(te.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0}),this._balloon=te.plugins.get(xf),te.ui.componentFactory.add("tableProperties",(ie=>{const re=new br(ie);re.set({label:ne("Table properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',tooltip:!0}),this.listenTo(re,"execute",(()=>this._showView()));const le=Object.values(Gy).map((ne=>te.commands.get(ne)));return re.bind("isEnabled").toMany(le,"isEnabled",((...te)=>te.some((te=>te)))),re}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const te=this.editor,ne=te.config.get("table.tableProperties"),ie=Dr(ne.borderColors),re=Er(te.locale,ie),le=Dr(ne.backgroundColors),ce=Er(te.locale,le),de=!1!==ne.colorPicker,ue=new rI(te.locale,{borderColors:re,backgroundColors:ce,defaultTableProperties:this._defaultTableProperties,colorPickerConfig:!!de&&(ne.colorPicker||{})}),me=te.t;ue.render(),this.listenTo(ue,"submit",(()=>{this._hideView()})),this.listenTo(ue,"cancel",(()=>{this._undoStepBatch.operations.length&&te.execute("undo",this._undoStepBatch),this._hideView()})),ue.keystrokes.set("Esc",((te,ne)=>{this._hideView(),ne()})),t({emitter:ue,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const ge=QS(me),fe=JS(me);return ue.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle")),ue.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:ue.borderColorInput,commandName:"tableBorderColor",errorText:ge,validator:XS})),ue.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:ue.borderWidthInput,commandName:"tableBorderWidth",errorText:fe,validator:eT})),ue.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:ue.backgroundInput,commandName:"tableBackgroundColor",errorText:ge,validator:XS})),ue.on("change:width",this._getValidatedPropertyChangeCallback({viewField:ue.widthInput,commandName:"tableWidth",errorText:fe,validator:tT})),ue.on("change:height",this._getValidatedPropertyChangeCallback({viewField:ue.heightInput,commandName:"tableHeight",errorText:fe,validator:tT})),ue.on("change:alignment",this._getPropertyChangeCallback("tableAlignment")),ue}_fillViewFormFromCommandValues(){const te=this.editor.commands,ne=te.get("tableBorderStyle");Object.entries(Gy).map((([ne,ie])=>{const re=ne,le=this._defaultTableProperties[re]||"";return[re,te.get(ie).value||le]})).forEach((([te,ie])=>{("borderColor"!==te&&"borderWidth"!==te||"none"!==ne.value)&&this.view.set(te,ie)})),this._isReady=!0}_showView(){const te=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(te.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:_T(te)}),this._undoStepBatch=te.model.createBatch(),this.view.focus()}_hideView(){const te=this.editor;this.stopListening(te.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const te=this.editor;jS(te.editing.view.document.selection)?this._isViewVisible&&CT(te,"table"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(te){return(ne,ie,re)=>{this._isReady&&this.editor.execute(te,{value:re,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(te){const{commandName:ne,viewField:ie,validator:re,errorText:le}=te,ce=Xr((()=>{ie.errorText=le}),500);return(te,le,de)=>{ce.cancel(),this._isReady&&(re(de)?(this.editor.execute(ne,{value:de,batch:this._undoStepBatch}),ie.errorText=null):ce())}}}var Uy=i(1111);Fo()(Uy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Uy.Z.locals;class hI extends Ss{refresh(){this.isEnabled=!0}execute(te={}){const{model:ne,plugins:ie}=this.editor;let{table:re=ne.document.selection.getSelectedElement(),columnWidths:le,tableWidth:ce}=te;le&&(le=Array.isArray(le)?le:le.split(",")),ne.change((te=>{ce?te.setAttribute("tableWidth",ce,re):te.removeAttribute("tableWidth",re);const ne=ie.get("TableColumnResizeEditing").getColumnGroupElement(re);if(!le&&!ne)return;if(!le)return te.remove(ne);const de=ZD(le);if(ne)Array.from(ne.getChildren()).forEach(((ne,ie)=>te.setAttribute("columnWidth",de[ie],ne)));else{const ne=te.createElement("tableColumnGroup");de.forEach((ie=>te.appendElement("tableColumn",{columnWidth:ie},ne))),te.append(ne,re)}}))}}class mI extends Es{static get requires(){return[CS,JD]}static get pluginName(){return"TableColumnResizeEditing"}constructor(te){super(te),this._isResizingActive=!1,this.set("_isResizingAllowed",!0),this._resizingData=null,this._domEmitter=new(Mo()),this._tableUtilsPlugin=te.plugins.get("TableUtils"),this.on("change:_isResizingAllowed",((ne,ie,re)=>{const le=re?"removeClass":"addClass";te.editing.view.change((ne=>{for(const ie of te.editing.view.document.roots)ne[le]("ck-column-resize_disabled",te.editing.view.document.getRoot(ie.rootName))}))}))}init(){this._extendSchema(),this._registerPostFixer(),this._registerConverters(),this._registerResizingListeners(),this._registerResizerInserter();const te=this.editor,ne=te.plugins.get("TableColumnResize");te.plugins.get("TableEditing").registerAdditionalSlot({filter:te=>te.is("element","tableColumnGroup"),positionOffset:0});const ie=new hI(te);te.commands.add("resizeTableWidth",ie),te.commands.add("resizeColumnWidths",ie),this.bind("_isResizingAllowed").to(te,"isReadOnly",ne,"isEnabled",ie,"isEnabled",((te,ne,ie)=>!te&&ne&&ie))}destroy(){this._domEmitter.stopListening(),super.destroy()}getColumnGroupElement(te){return YD(te)}getTableColumnElements(te){return QD(te)}getTableColumnsWidths(te){return function(te){return QD(te).map((te=>te.getAttribute("columnWidth")))}(te)}_extendSchema(){this.editor.model.schema.extend("table",{allowAttributes:["tableWidth"]}),this.editor.model.schema.register("tableColumnGroup",{allowIn:"table",isLimit:!0}),this.editor.model.schema.register("tableColumn",{allowIn:"tableColumnGroup",allowAttributes:["columnWidth","colSpan"],isLimit:!0})}_registerPostFixer(){const te=this.editor.model;function e(te,ne,ie){const re=ie._tableUtilsPlugin.getColumns(ne);if(0==re-te.length)return te;const le=te.map((te=>Number(te.replace("%","")))),ce=function(te,ne){const ie=new Set;for(const re of te.getChanges())if("insert"==re.type&&re.position.nodeAfter&&"tableCell"==re.position.nodeAfter.name&&re.position.nodeAfter.getAncestors().includes(ne))ie.add(re.position.nodeAfter);else if("remove"==re.type){const te=re.position.nodeBefore||re.position.nodeAfter;"tableCell"==te.name&&te.getAncestors().includes(ne)&&ie.add(te)}return ie}(ie.editor.model.document.differ,ne);for(const te of ce){const ce=re-le.length;if(0===ce)continue;const ue=ce>0,me=ie._tableUtilsPlugin.getCellLocation(te).column;if(ue){const te=(de=jD(ne,ie.editor),Array(ce).fill(de));le.splice(me,0,...te)}else{const te=le.splice(me,Math.abs(ce));le[me]+=qD(te)}}var de;return le.map((te=>te+"%"))}te.document.registerPostFixer((ne=>{let ie=!1;for(const re of function(te){const ne=new Set;for(const ie of te.document.differ.getChanges()){let re=null;switch(ie.type){case"insert":re=["table","tableRow","tableCell"].includes(ie.name)?ie.position:null;break;case"remove":re=["tableRow","tableCell"].includes(ie.name)?ie.position:null;break;case"attribute":ie.range.start.nodeAfter&&(re=["table","tableRow","tableCell"].includes(ie.range.start.nodeAfter.name)?ie.range.start:null)}if(!re)continue;const le=re.nodeAfter&&re.nodeAfter.is("element","table")?re.nodeAfter:re.findAncestor("table");for(const ie of te.createRangeOn(le).getItems())ie.is("element","table")&&YD(ie)&&ne.add(ie)}return ne}(te)){const te=this.getColumnGroupElement(re),le=this.getTableColumnElements(te),ce=this.getTableColumnsWidths(te);let de=ZD(ce);de=e(de,re,this),Gh(ce,de)||(KD(le,te,de,ne),ie=!0)}return ie}))}_registerConverters(){const te=this.editor.conversion;te.for("upcast").attributeToAttribute({view:{name:"figure",key:"style",value:{width:/[\s\S]+/}},model:{name:"table",key:"tableWidth",value:te=>te.getStyle("width")}}),te.for("downcast").attributeToAttribute({model:{name:"table",key:"tableWidth"},view:te=>({name:"figure",key:"style",value:{width:te}})}),te.elementToElement({model:"tableColumnGroup",view:"colgroup"}),te.elementToElement({model:"tableColumn",view:"col"}),te.for("downcast").add((te=>te.on("insert:table",((te,ne,ie)=>{const re=ie.writer,le=ne.item,ce=ie.mapper.toViewElement(le),de=ce.is("element","table")?ce:Array.from(ce.getChildren()).find((te=>te.is("element","table")));YD(le)?re.addClass("ck-table-resized",de):re.removeClass("ck-table-resized",de)}),{priority:"low"}))),te.for("upcast").add(function uI(te){return ne=>ne.on("element:colgroup",((ne,ie,re)=>{const le=ie.modelCursor.findAncestor("table"),ce=YD(le);if(!ce)return;const de=QD(ce),ue=te.getColumns(le);let me=(ge=ce,fe=re.writer,QD(ge).reduce(((te,ne)=>{const ie=ne.getAttribute("columnWidth"),re=ne.getAttribute("colSpan");if(!re)return te.push(ie),te;for(let ne=0;ne<re;ne++)te.push(ie);return fe.removeAttribute("colSpan",ne),te}),[]));var ge,fe;me=Array.from({length:ue},((te,ne)=>me[ne]||"auto")),(me.length!=de.length||me.includes("auto"))&&KD(de,ce,ZD(me),re.writer)}),{priority:"low"})}(this._tableUtilsPlugin)),te.for("upcast").attributeToAttribute({view:{name:"col",styles:{width:/.*/}},model:{key:"columnWidth",value:te=>{const ne=te.getStyle("width");return ne&&(ne.endsWith("%")||ne.endsWith("pt"))?ne:"auto"}}}),te.for("upcast").attributeToAttribute({view:{name:"col",key:"span"},model:"colSpan"}),te.for("downcast").attributeToAttribute({model:{name:"tableColumn",key:"columnWidth"},view:te=>({key:"style",value:{width:te}})})}_registerResizingListeners(){const te=this.editor.editing.view;te.addObserver(LS),te.document.on("mousedown",this._onMouseDownHandler.bind(this),{priority:"high"}),this._domEmitter.listenTo(go.window.document,"mousemove",Kp(this._onMouseMoveHandler.bind(this),50)),this._domEmitter.listenTo(go.window.document,"mouseup",this._onMouseUpHandler.bind(this))}_onMouseDownHandler(te,ne){const ie=ne.target;if(!ie.hasClass("ck-table-column-resizer"))return;if(!this._isResizingAllowed)return;const re=this.editor,le=re.editing.mapper.toModelElement(ie.findAncestor("figure"));if(!re.model.canEditAt(le))return;ne.preventDefault(),te.stop();const ce=function(te,ne,ie){const re=Array(ne.getColumns(te)),le=new uD(te);for(const te of le){const ne=ie.editing.mapper.toViewElement(te.cell),le=$D(ie.editing.view.domConverter.mapViewToDom(ne));(!re[te.column]||le<re[te.column])&&(re[te.column]=GD(le))}return re}(le,this._tableUtilsPlugin,re),de=ie.findAncestor("table"),ue=re.editing.view;Array.from(de.getChildren()).find((te=>te.is("element","colgroup")))||ue.change((te=>{!function(te,ne,ie){const re=te.createContainerElement("colgroup");for(let ie=0;ie<ne.length;ie++){const le=te.createEmptyElement("col"),ce=`${GD(ne[ie]/qD(ne)*100)}%`;te.setStyle("width",ce,le),te.insert(te.createPositionAt(re,"end"),le)}te.insert(te.createPositionAt(ie,0),re)}(te,ce,de)})),this._isResizingActive=!0,this._resizingData=this._getResizingData(ne,ce),ue.change((te=>function(te,ne,ie){const re=ie.widths.viewFigureWidth/ie.widths.viewFigureParentWidth;te.addClass("ck-table-resized",ne),te.addClass("ck-table-column-resizer__active",ie.elements.viewResizer),te.setStyle("width",`${GD(100*re)}%`,ne.findAncestor("figure"))}(te,de,this._resizingData)))}_onMouseMoveHandler(te,ne){if(!this._isResizingActive)return;if(!this._isResizingAllowed)return void this._onMouseUpHandler();const{columnPosition:ie,flags:{isRightEdge:re,isTableCentered:le,isLtrContent:ce},elements:{viewFigure:de,viewLeftColumn:ue,viewRightColumn:me},widths:{viewFigureParentWidth:ge,tableWidth:fe,leftColumnWidth:_e,rightColumnWidth:be}}=this._resizingData,Ce=40-_e,ye=re?ge-fe:be-40,we=(ce?1:-1)*(re&&le?2:1),ke=(Se=(ne.clientX-ie)*we,xe=Math.min(Ce,0),Ee=Math.max(ye,0),GD(Se<=xe?xe:Se>=Ee?Ee:Se));var Se,xe,Ee;0!==ke&&this.editor.editing.view.change((te=>{const ne=GD(100*(_e+ke)/fe);if(te.setStyle("width",`${ne}%`,ue),re){const ne=GD(100*(fe+ke)/ge);te.setStyle("width",`${ne}%`,de)}else{const ne=GD(100*(be-ke)/fe);te.setStyle("width",`${ne}%`,me)}}))}_onMouseUpHandler(){if(!this._isResizingActive)return;const{viewResizer:te,modelTable:ne,viewFigure:ie,viewColgroup:re}=this._resizingData.elements,le=this.editor,ce=le.editing.view,de=this.getColumnGroupElement(ne),ue=Array.from(re.getChildren()).filter((te=>te.is("view:element"))),me=de?this.getTableColumnsWidths(de):null,ge=ue.map((te=>te.getStyle("width"))),fe=!Gh(me,ge),_e=ne.getAttribute("tableWidth"),be=ie.getStyle("width"),Ce=_e!==be;(fe||Ce)&&(this._isResizingAllowed?le.execute("resizeTableWidth",{table:ne,tableWidth:`${GD(be)}%`,columnWidths:ge}):ce.change((te=>{if(me)for(const ne of ue)te.setStyle("width",me.shift(),ne);else te.remove(re);Ce&&(_e?te.setStyle("width",_e,ie):te.removeStyle("width",ie)),me||_e||te.removeClass("ck-table-resized",[...ie.getChildren()].find((te=>"table"===te.name)))}))),ce.change((ne=>{ne.removeClass("ck-table-column-resizer__active",te)})),this._isResizingActive=!1,this._resizingData=null}_getResizingData(te,ne){const ie=this.editor,re=te.domEvent.clientX,le=te.target,ce=le.findAncestor("td")||le.findAncestor("th"),de=ie.editing.mapper.toModelElement(ce),ue=de.findAncestor("table"),me=function(te,ne){const ie=ne.getCellLocation(te).column;return{leftEdge:ie,rightEdge:ie+(te.getAttribute("colspan")||1)-1}}(de,this._tableUtilsPlugin).rightEdge,ge=me===this._tableUtilsPlugin.getColumns(ue)-1,fe=!ue.hasAttribute("tableAlignment"),_e="rtl"!==ie.locale.contentLanguageDirection,be=ce.findAncestor("table"),Ce=be.findAncestor("figure"),ye=[...be.getChildren()].find((te=>te.is("element","colgroup"))),we=ye.getChild(me),ke=ge?void 0:ye.getChild(me+1);return{columnPosition:re,flags:{isRightEdge:ge,isTableCentered:fe,isLtrContent:_e},elements:{viewResizer:le,modelTable:ue,viewFigure:Ce,viewColgroup:ye,viewLeftColumn:we,viewRightColumn:ke},widths:{viewFigureParentWidth:WD(ie.editing.view.domConverter.mapViewToDom(Ce.parent)),viewFigureWidth:WD(ie.editing.view.domConverter.mapViewToDom(Ce)),tableWidth:HD(ue,ie),leftColumnWidth:ne[me],rightColumnWidth:ge?void 0:ne[me+1]}}}_registerResizerInserter(){this.editor.conversion.for("editingDowncast").add((te=>{te.on("insert:tableCell",((te,ne,ie)=>{const re=ne.item,le=ie.mapper.toViewElement(re),ce=ie.writer;ce.insert(ce.createPositionAt(le,"end"),ce.createUIElement("div",{class:"ck-table-column-resizer"}))}),{priority:"lowest"})}))}}var $y=i(7176);Fo()($y.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$y.Z.locals;class fI extends um{}fI.builtinPlugins=[class extends Es{static get requires(){return[Ak,_k]}static get pluginName(){return"Alignment"}},class extends Es{static get requires(){return[Cv]}static get pluginName(){return"Base64UploadAdapter"}init(){this.editor.plugins.get(Cv).createUploadAdapter=te=>new xv(te)}},class extends Es{static get requires(){return[Cb,yb]}static get pluginName(){return"BlockQuote"}},class extends Es{static get requires(){return[xk,Dk]}static get pluginName(){return"Bold"}},class extends Es{static get requires(){return[zw,ub,Fw,fb,Hk,$w]}static get pluginName(){return"Essentials"}},class extends Es{static get requires(){return[bA,AA]}static get pluginName(){return"FontColor"}},class extends Es{static get requires(){return[sA,aA]}static get pluginName(){return"FontFamily"}},class extends Es{static get requires(){return[mA,fA]}static get pluginName(){return"FontSize"}normalizeSizeOptions(te){return cA(te)}},class extends Es{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[u_,b_,w_,A_,__,v_,y_,x_,E_,D_,I_]}init(){const te=this.editor,ne=te.plugins.get(u_);ne.loadAllowedEmptyElementsConfig(te.config.get("htmlSupport.allowEmpty")||[]),ne.loadAllowedConfig(te.config.get("htmlSupport.allow")||[]),ne.loadDisallowedConfig(te.config.get("htmlSupport.disallow")||[])}getGhsAttributeNameForElement(te){const ne=this.editor.plugins.get("DataSchema"),ie=Array.from(ne.getDefinitionsForView(te,!1)),re=ie.find((te=>te.isInline&&!ie[0].isObject));return re?re.model:UC(te)}addModelHtmlClass(te,ne,ie){const re=this.editor.model,le=this.getGhsAttributeNameForElement(te);re.change((te=>{for(const ce of M_(re,ie,le))HC(te,ce,le,"classes",(te=>{for(const ie of _i(ne))te.add(ie)}))}))}removeModelHtmlClass(te,ne,ie){const re=this.editor.model,le=this.getGhsAttributeNameForElement(te);re.change((te=>{for(const ce of M_(re,ie,le))HC(te,ce,le,"classes",(te=>{for(const ie of _i(ne))te.delete(ie)}))}))}setModelHtmlAttributes(te,ne,ie){const re=this.editor.model,le=this.getGhsAttributeNameForElement(te);re.change((te=>{for(const ce of M_(re,ie,le))HC(te,ce,le,"attributes",(te=>{for(const[ie,re]of Object.entries(ne))te.set(ie,re)}))}))}removeModelHtmlAttributes(te,ne,ie){const re=this.editor.model,le=this.getGhsAttributeNameForElement(te);re.change((te=>{for(const ce of M_(re,ie,le))HC(te,ce,le,"attributes",(te=>{for(const ie of _i(ne))te.delete(ie)}))}))}setModelHtmlStyles(te,ne,ie){const re=this.editor.model,le=this.getGhsAttributeNameForElement(te);re.change((te=>{for(const ce of M_(re,ie,le))HC(te,ce,le,"styles",(te=>{for(const[ie,re]of Object.entries(ne))te.set(ie,re)}))}))}removeModelHtmlStyles(te,ne,ie){const re=this.editor.model,le=this.getGhsAttributeNameForElement(te);re.change((te=>{for(const ce of M_(re,ie,le))HC(te,ce,le,"styles",(te=>{for(const ie of _i(ne))te.delete(ie)}))}))}},class extends Es{static get requires(){return[TA,BA]}static get pluginName(){return"Heading"}},class extends Es{static get requires(){return[zA,OA]}static get pluginName(){return"Highlight"}},class extends Es{static get requires(){return[pv,kv]}static get pluginName(){return"Image"}},class extends Es{static get requires(){return[qv,Qv,$v]}static get pluginName(){return"ImageResize"}},class extends Es{static get requires(){return[gy,ky]}static get pluginName(){return"ImageStyle"}},class extends Es{static get requires(){return[lw,R_]}static get pluginName(){return"ImageToolbar"}afterInit(){const te=this.editor,ne=te.t,ie=te.plugins.get(lw),re=te.plugins.get("ImageUtils");var le;ie.register("image",{ariaLabel:ne("Image toolbar"),items:(le=te.config.get("image.toolbar")||[],le.map((te=>V(te)?te.name:te))),getRelatedElement:te=>re.getClosestSelectedImageWidget(te)})}},qv,Qv,class extends Es{static get pluginName(){return"ImageUpload"}static get requires(){return[Uv,Tv,Lv]}},class extends Es{static get pluginName(){return"Indent"}static get requires(){return[Cy,_y]}},class extends Es{constructor(te){super(te),te.config.define("indentBlock",{offset:40,unit:"px"})}static get pluginName(){return"IndentBlock"}init(){const te=this.editor,ne=te.config.get("indentBlock");ne.classes&&ne.classes.length?(this._setupConversionUsingClasses(ne.classes),te.commands.add("indentBlock",new vy(te,new xy({direction:"forward",classes:ne.classes}))),te.commands.add("outdentBlock",new vy(te,new xy({direction:"backward",classes:ne.classes})))):(te.data.addStyleProcessorRules(Lm),this._setupConversionUsingOffset(),te.commands.add("indentBlock",new vy(te,new yy({direction:"forward",offset:ne.offset,unit:ne.unit}))),te.commands.add("outdentBlock",new vy(te,new yy({direction:"backward",offset:ne.offset,unit:ne.unit}))))}afterInit(){const te=this.editor,ne=te.model.schema,ie=te.commands.get("indent"),re=te.commands.get("outdent"),le=te.config.get("heading.options");(le&&le.map((te=>te.model))||AC).forEach((te=>{ne.isRegistered(te)&&ne.extend(te,{allowAttributes:"blockIndent"})})),ne.setAttributeProperties("blockIndent",{isFormatting:!0}),ie.registerChildCommand(te.commands.get("indentBlock")),re.registerChildCommand(te.commands.get("outdentBlock"))}_setupConversionUsingOffset(){const te=this.editor.conversion,ne="rtl"===this.editor.locale.contentLanguageDirection?"margin-right":"margin-left";te.for("upcast").attributeToAttribute({view:{styles:{[ne]:/[\s\S]+/}},model:{key:"blockIndent",value:te=>{if(!te.is("element","li"))return te.getStyle(ne)}}}),te.for("downcast").attributeToAttribute({model:"blockIndent",view:te=>({key:"style",value:{[ne]:te}})})}_setupConversionUsingClasses(te){const ne={model:{key:"blockIndent",values:[]},view:{}};for(const ie of te)ne.model.values.push(ie),ne.view[ie]={key:"class",value:[ie]};this.editor.conversion.attributeToAttribute(ne)}},class extends Es{static get requires(){return[ib,sb]}static get pluginName(){return"Italic"}},class extends Es{static get requires(){return[Zy,ex,ix]}static get pluginName(){return"Link"}},class nE extends Es{static get requires(){return[Jx,eE]}static get pluginName(){return"List"}},class xE extends Es{static get requires(){return[kE,vE]}static get pluginName(){return"ListProperties"}},class extends Es{static get requires(){return[RE,WE,FE,sw]}static get pluginName(){return"MediaEmbed"}},class extends Es{static get requires(){return[lw]}static get pluginName(){return"MediaEmbedToolbar"}afterInit(){const te=this.editor,ne=te.t;te.plugins.get(lw).register("mediaEmbed",{ariaLabel:ne("Media toolbar"),items:te.config.get("mediaEmbed.toolbar")||[],getRelatedElement:TE})}},mf,class extends Es{static get pluginName(){return"SourceEditing"}static get requires(){return[Um]}constructor(te){super(te),this.set("isSourceEditingMode",!1),this._elementReplacer=new J,this._replacedRoots=new Map,this._dataFromRoots=new Map}init(){const te=this.editor,ne=te.t;te.ui.componentFactory.add("sourceEditing",(ie=>{const re=new br(ie);return re.set({label:ne("Source"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>',tooltip:!0,withText:!0,class:"ck-source-editing-button"}),re.bind("isOn").to(this,"isSourceEditingMode"),re.bind("isEnabled").to(this,"isEnabled",te,"isReadOnly",te.plugins.get(Um),"hasAny",((te,ne,ie)=>!!te&&!ne&&!ie)),this.listenTo(re,"execute",(()=>{this.isSourceEditingMode=!this.isSourceEditingMode})),re})),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",((te,ne,ie)=>{ie?(this._hideVisibleDialog(),this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())})),this.on("change:isEnabled",((te,ne,ie)=>this._handleReadOnlyMode(!ie))),this.listenTo(te,"change:isReadOnly",((te,ne,ie)=>this._handleReadOnlyMode(ie)))),te.data.on("get",(()=>{this.isSourceEditingMode&&this.updateEditorData()}),{priority:"high"})}afterInit(){const te=this.editor;["RealTimeCollaborativeEditing","CommentsEditing","TrackChangesEditing","RevisionHistory"].some((ne=>te.plugins.has(ne)))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),te.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}updateEditorData(){const te=this.editor,ne={};for(const[te,ie]of this._replacedRoots){const re=this._dataFromRoots.get(te),le=ie.dataset.value;re!==le&&(ne[te]=le,this._dataFromRoots.set(te,le))}Object.keys(ne).length&&te.data.set(ne,{batchType:{isUndoable:!0}})}_showSourceEditing(){const te=this.editor,ne=te.editing.view,ie=te.model;ie.change((te=>{te.setSelection(null),te.removeSelectionAttribute(ie.document.selection.getAttributeKeys())}));for(const[ie,re]of ne.domRoots){const le=JE(te.data.get({rootName:ie})),ce=bt(re.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),de=bt(re.ownerDocument,"div",{class:"ck-source-editing-area","data-value":le},[ce]);ce.value=le,ce.setSelectionRange(0,0),ce.addEventListener("input",(()=>{de.dataset.value=ce.value,te.ui.update()})),ne.change((te=>{const re=ne.document.getRoot(ie);te.addClass("ck-hidden",re)})),te.ui.setEditableElement("sourceEditing:"+ie,ce),this._replacedRoots.set(ie,de),this._elementReplacer.replace(re,de),this._dataFromRoots.set(ie,le)}this._focusSourceEditing()}_hideSourceEditing(){const te=this.editor.editing.view;this.updateEditorData(),te.change((ne=>{for(const[ie]of this._replacedRoots)ne.removeClass("ck-hidden",te.document.getRoot(ie))})),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),te.focus()}_focusSourceEditing(){const te=this.editor,[ne]=this._replacedRoots.values(),ie=ne.querySelector("textarea");te.editing.view.document.isFocused=!1,ie.focus()}_disableCommands(){const te=this.editor;for(const ne of te.commands.commands())ne.forceDisabled(Yv)}_enableCommands(){const te=this.editor;for(const ne of te.commands.commands())ne.clearForceDisabled(Yv)}_handleReadOnlyMode(te){if(this.isSourceEditingMode)for(const[,ne]of this._replacedRoots)ne.querySelector("textarea").readOnly=te}_isAllowedToHandleSourceEditingMode(){const te=this.editor.ui.view.editable;return te&&!te.hasExternalElement}_hideVisibleDialog(){if(this.editor.plugins.has("Dialog")){const te=this.editor.plugins.get("Dialog");te.isOpen&&te.hide()}}},class extends Es{static get requires(){return[CS,ES,IS,OS,PS,MS,sw]}static get pluginName(){return"Table"}},class extends Es{static get pluginName(){return"TableCellProperties"}static get requires(){return[UT,TT]}},class extends Es{static get requires(){return[mI,BT]}static get pluginName(){return"TableColumnResize"}},class extends Es{static get pluginName(){return"TableProperties"}static get requires(){return[tI,lI]}},class extends Es{static get requires(){return[lw]}static get pluginName(){return"TableToolbar"}afterInit(){const te=this.editor,ne=te.t,ie=te.plugins.get(lw),re=te.config.get("table.contentToolbar"),le=te.config.get("table.tableToolbar");re&&ie.register("tableContent",{ariaLabel:ne("Table toolbar"),items:re,getRelatedElement:US}),le&&ie.register("table",{ariaLabel:ne("Table toolbar"),items:le,getRelatedElement:HS})}},$w],fI.defaultConfig={toolbar:{items:["heading","|","undo","redo","bold","italic","fontColor","alignment","fontFamily","fontSize","highlight","blockQuote","bulletedList","numberedList","|","indent","outdent","|","insertTable","imageUpload","link","mediaEmbed","|","sourceEditing"]},language:"pt-br",image:{resizeOptions:[{name:"resizeImage:original",value:null,label:"Original"},{name:"resizeImage:25",value:"25",label:"25%"},{name:"resizeImage:50",value:"50",label:"50%"},{name:"resizeImage:80",value:"80",label:"80%"}],toolbar:["resizeImage","imageTextAlternative","imageStyle:inline","imageStyle:block","imageStyle:side"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableCellProperties","tableProperties"]}};const qy=fI})(),de.default})(),te.exports=re()},3500:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>we,x:()=>ye});var re=ie(3107);const le=JSON.parse('{"startsWith":"Começa com","contains":"Contém","notContains":"Não contém","endsWith":"Termina com","equals":"Igual","notEquals":"Diferente","noFilter":"Sem filtro","filter":"Filtro","lt":"Menor que","lte":"Menor que ou igual a","gt":"Maior que","gte":"Maior que ou igual a","dateIs":"Data é","dateIsNot":"Data não é","dateBefore":"Date é anterior","dateAfter":"Data é posterior","custom":"Customizado","clear":"Limpar","close":"Fechar","apply":"Aplicar","matchAll":"Match All","matchAny":"Match Any","addRule":"Adicionar Regra","removeRule":"Remover Regra","accept":"Sim","reject":"Não","choose":"Escolha","upload":"Upload","cancel":"Cancelar","completed":"Concluído","pending":"Pendente","dayNames":["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],"dayNamesShort":["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],"dayNamesMin":["Do","Se","Te","Qa","Qi","Sx","Sa"],"monthNames":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],"monthNamesShort":["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],"chooseYear":"Escolha Ano","chooseMonth":"Escolha Mês","chooseDate":"Escolha Data","prevDecade":"Década Anterior","nextDecade":"Década Seguinte","prevYear":"Ano Anterior","nextYear":"Ano Seguinte","prevMonth":"Mês Anterior","nextMonth":"Mês Seguinte","prevHour":"Hora Anterior","nextHour":"Hora Seguinte","prevMinute":"Minuto Anterior","nextMinute":"Minuto Seguinte","prevSecond":"Segundo Anterior","nextSecond":"Segundo Seguinte","am":"am","pm":"pm","today":"Hoje","weekHeader":"Sem","firstDayOfWeek":0,"dateFormat":"dd/mm/yy","weak":"Fraco","medium":"Médio","strong":"Forte","passwordPrompt":"Digite uma senha","emptyFilterMessage":"Nenhum resultado encontrado","searchMessage":"{0} resultados disponíveis","selectionMessage":"{0} itens selecionados","emptySelectionMessage":"Nenhum item selecionado","emptySearchMessage":"Nenhum resultado encontrado","emptyMessage":"Nenhuma opção disponível","aria":{"trueLabel":"Verdadeiro","falseLabel":"Falso","nullLabel":"Não selecionado","star":"1 estrela","stars":"{star} estrelas","selectAll":"Todos itens selecionados","unselectAll":"Nenhum item selecionado","close":"Fechar","previous":"Anterior","next":"Seguinte","navigation":"Navegação","scrollTop":"Rolar para Topo","moveTop":"Mover para Topo","moveUp":"Mover para Cima","moveDown":"Mover para Baixo","moveBottom":"Mover para Final","moveToTarget":"Mover para Alvo","moveToSource":"Mover para Fonte","moveAllToTarget":"Mover Todos para Alvo","moveAllToSource":"Mover Todos para Fonte","pageLabel":"{page}","firstPageLabel":"Primeira Página","lastPageLabel":"Última Página","nextPageLabel":"Página Seguinte","previousPageLabel":"Página Anterior","rowsPerPageLabel":"Linhas por página","jumpToPageDropdownLabel":"Pular para Menu da Página","jumpToPageInputLabel":"Pular para Campo da Página","selectRow":"Linha Selecionada","unselectRow":"Linha Não Selecionada","expandRow":"Linha Expandida","collapseRow":"Linha Recolhida","showFilterMenu":"Mostrar Menu de Filtro","hideFilterMenu":"Esconder Menu de Filtro","filterOperator":"Operador de Filtro","filterConstraint":"Restrição de Filtro","editRow":"Editar Linha","saveEdit":"Salvar Editar","cancelEdit":"Cancelar Editar","listView":"Exibição em Lista","gridView":"Exibição em Grade","slide":"Deslizar","slideNumber":"{slideNumber}","zoomImage":"Ampliar Imagem","zoomIn":"Mais Zoom","zoomOut":"Menos Zoom","rotateRight":"Girar à Direita","rotateLeft":"Girar à Esquerda"}}');var ce=ie.t(le,2),de=ie(3969),ue=ie(2848),me=ie(6563),ge=ie(3828),fe=ie(5656),_e=ie(4460),be=ie(5328),Ce=ie(360);const _c0=()=>({height:"6px",position:"absolute",top:"0",width:"100vw",zIndex:"1000",borderRadius:"0"});function AppComponent_p_progressBar_0_Template(te,ne){1&te&&re.nrm(0,"p-progressBar",8),2&te&&re.Aen(re.lJ4(2,_c0))}var ye=function(te){return te.TopCenter="global-top-center",te.TopRight="global-top-right",te.TopLeft="global-top-left",te.Center="global-center",te.BottomCenter="global-bottom-center",te.BottomRight="global-bottom-right",te.BottomLeft="global-bottom-left",te}(ye||{});let we=(()=>{class AppComponent{constructor(te,ne){this.config=te,this.captionMembroService=ne,this.layoutService=(0,re.WQX)(ue.Y),this.loadingService=(0,re.WQX)(me.T),this.globalToastKey=ye,de.q.instancia=ne}get layoutStateClass(){return this.layoutService.layoutStateClass}ngOnInit(){this.config.setTranslation(ce)}static#e=this.ɵfac=function AppComponent_Factory(te){return new(te||AppComponent)(re.rXU(ge.r1),re.rXU(de.q))};static#t=this.ɵcmp=re.VBU({type:AppComponent,selectors:[["app-root"]],decls:10,vars:24,consts:[["mode","indeterminate",3,"style",4,"ngIf"],["position","top-center",1,"toast-global",3,"preventOpenDuplicates","key","ngClass"],["position","top-right",1,"toast-global",3,"preventOpenDuplicates","key","ngClass"],["position","top-left",1,"toast-global",3,"preventOpenDuplicates","key","ngClass"],["position","center",1,"toast-global",3,"preventOpenDuplicates","key","ngClass"],["position","bottom-center",1,"toast-global",3,"preventOpenDuplicates","key","ngClass"],["position","bottom-right",1,"toast-global",3,"preventOpenDuplicates","key","ngClass"],["position","bottom-left",1,"toast-global",3,"preventOpenDuplicates","key","ngClass"],["mode","indeterminate"]],template:function AppComponent_Template(te,ne){1&te&&(re.DNE(0,AppComponent_p_progressBar_0_Template,1,3,"p-progressBar",0),re.nI1(1,"async"),re.nrm(2,"router-outlet")(3,"p-toast",1)(4,"p-toast",2)(5,"p-toast",3)(6,"p-toast",4)(7,"p-toast",5)(8,"p-toast",6)(9,"p-toast",7)),2&te&&(re.Y8G("ngIf",re.bMT(1,22,ne.loadingService.loading$)),re.R7$(3),re.Y8G("preventOpenDuplicates",!0)("key",ne.globalToastKey.TopCenter)("ngClass",ne.layoutStateClass),re.R7$(),re.Y8G("preventOpenDuplicates",!0)("key",ne.globalToastKey.TopRight)("ngClass",ne.layoutStateClass),re.R7$(),re.Y8G("preventOpenDuplicates",!0)("key",ne.globalToastKey.TopLeft)("ngClass",ne.layoutStateClass),re.R7$(),re.Y8G("preventOpenDuplicates",!0)("key",ne.globalToastKey.Center)("ngClass",ne.layoutStateClass),re.R7$(),re.Y8G("preventOpenDuplicates",!0)("key",ne.globalToastKey.BottomCenter)("ngClass",ne.layoutStateClass),re.R7$(),re.Y8G("preventOpenDuplicates",!0)("key",ne.globalToastKey.BottomRight)("ngClass",ne.layoutStateClass),re.R7$(),re.Y8G("preventOpenDuplicates",!0)("key",ne.globalToastKey.BottomLeft)("ngClass",ne.layoutStateClass))},dependencies:[fe.n3,_e.YU,_e.bT,be.y8,Ce.z,_e.Jj]})}return AppComponent})()},1:(te,ne,ie)=>{"use strict";ie.d(ne,{L:()=>ke});var re=ie(3107),le=ie(936),ce=ie(2040),de=ie(7178),ue=ie(6564),me=ie(4447),ge=ie(6830),fe=ie(3972),_e=ie(6838),be=ie(7800);var Ce=ie(4460),ye=ie(7280),we=ie(8841);function EsqueceuSenhaComponent_small_9_Template(te,ne){if(1&te&&(re.j41(0,"small",10),re.EFF(1),re.k0s()),2&te){const te=re.XpG();re.R7$(),re.SpI(" ",te.emailCpf.getError("emailCpfInvalido").errorMessage," ")}}function EsqueceuSenhaComponent_small_10_Template(te,ne){1&te&&(re.j41(0,"small",10),re.EFF(1," Preencha um email ou CPF válido "),re.k0s())}function EsqueceuSenhaComponent_small_11_Template(te,ne){if(1&te&&(re.j41(0,"small",10),re.EFF(1),re.k0s()),2&te){const te=re.XpG();re.R7$(),re.SpI(' O uso do domínio "',te.emailCpf.getError("forbiddenDomain").forbiddenEmailDomain,'" não é permitido. ')}}let ke=(()=>{class EsqueceuSenhaComponent{constructor(){this.authService=(0,re.WQX)(ge.u),this.brMessageService=(0,re.WQX)(fe.h),this.dominioEmailValidator=(0,re.WQX)(_e.u),this.cancel=new re.bkB,this.loading=!1,this.emailCpf=new le.MJ("",[le.k0.required,te=>{const ne=te.value;if(be.X.test(ne)||!ne)return null;const ie=ne.replaceAll(/\./g,"").replace("-",""),re=isNaN(Number(ie))?"Email inválido":"CPF inválido";return{emailCpfInvalido:{value:te.value,errorMessage:re}}}],[this.dominioEmailValidator.checarDominio()])}sendPasswordResetEmail(){this.emailCpf.invalid||(this.loading=!0,this.authService.solicitarResetSenha(this.emailCpf.value.trim()).pipe((0,ce.M)((()=>this.brMessageService.success("Instruções enviadas para o email cadastrado"))),(0,de.W)((te=>(this.brMessageService.error(te.error.message),ue.w))),(0,me.j)((()=>this.loading=!1))).subscribe())}emitCancel(){this.cancel.emit()}static#e=this.ɵfac=function EsqueceuSenhaComponent_Factory(te){return new(te||EsqueceuSenhaComponent)};static#t=this.ɵcmp=re.VBU({type:EsqueceuSenhaComponent,selectors:[["br-esqueceu-senha"]],outputs:{cancel:"cancel"},decls:15,vars:7,consts:[[1,"mt-2","mb-5"],[1,"flex","flex-column","gap-2","mb-3"],[1,"p-float-label"],["id","emailCpf","brInputText","","type","text","autofocus","",1,"block","w-full","input-email-cpf",3,"maxLength","formControl","keyup.enter"],["htmlFor","emailCpf",1,"label-email-cpf"],[1,"h-1rem"],["class","text-red-500",4,"ngIf"],[1,"flex","justify-content-center","gap-3","flex-auto","align-items-stretch"],["styleClass","w-full h-full p-button-outlined","label","Cancelar",1,"w-full",3,"onClick"],["styleClass","w-full h-full send-button flex justify-content-center","label","Enviar",1,"w-full",3,"disabled","loading","onClick"],[1,"text-red-500"]],template:function EsqueceuSenhaComponent_Template(te,ne){1&te&&(re.j41(0,"div")(1,"p",0),re.EFF(2,"Informe seu email ou número do CPF."),re.k0s(),re.j41(3,"div",1)(4,"span",2)(5,"input",3),re.bIt("keyup.enter",(function EsqueceuSenhaComponent_Template_input_keyup_enter_5_listener(){return ne.sendPasswordResetEmail()})),re.k0s(),re.j41(6,"label",4),re.EFF(7,"Email ou CPF"),re.k0s()(),re.j41(8,"div",5),re.DNE(9,EsqueceuSenhaComponent_small_9_Template,2,1,"small",6)(10,EsqueceuSenhaComponent_small_10_Template,2,0,"small",6)(11,EsqueceuSenhaComponent_small_11_Template,2,1,"small",6),re.k0s()(),re.j41(12,"div",7)(13,"p-button",8),re.bIt("onClick",(function EsqueceuSenhaComponent_Template_p_button_onClick_13_listener(){return ne.emitCancel()})),re.k0s(),re.j41(14,"p-button",9),re.bIt("onClick",(function EsqueceuSenhaComponent_Template_p_button_onClick_14_listener(){return ne.sendPasswordResetEmail()})),re.k0s()()()),2&te&&(re.R7$(5),re.Y8G("maxLength",80)("formControl",ne.emailCpf),re.R7$(4),re.Y8G("ngIf",ne.emailCpf.touched&&ne.emailCpf.hasError("emailCpfInvalido")),re.R7$(),re.Y8G("ngIf",ne.emailCpf.touched&&ne.emailCpf.hasError("required")),re.R7$(),re.Y8G("ngIf",ne.emailCpf.touched&&ne.emailCpf.hasError("forbiddenDomain")),re.R7$(3),re.Y8G("disabled",ne.emailCpf.invalid||ne.loading||ne.emailCpf.pending)("loading",ne.loading))},dependencies:[Ce.bT,ye.$n,le.me,le.BC,le.l_,we.B],styles:["[_nghost-%COMP%]     .send-button.p-button .p-button-label{flex:initial}[_nghost-%COMP%]     .forgot-password-component .p-dialog-title{color:var(--text-color)}[_nghost-%COMP%]     .p-dialog-mask.p-component-overlay{padding:0 2rem}.input-email-cpf.ng-dirty.ng-invalid[_ngcontent-%COMP%]{border-color:#00ae8a}.input-email-cpf.ng-dirty.ng-invalid[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{color:#70a998}.input-email-cpf.ng-touched.ng-invalid[_ngcontent-%COMP%]{border-color:#ff6767}.input-email-cpf.ng-touched.ng-invalid[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{color:#ff6767}"]})}return EsqueceuSenhaComponent})()},1804:(te,ne,ie)=>{"use strict";ie.d(ne,{r:()=>le});var re=ie(1204);const le=(0,re.hZ)("fade",[(0,re.kY)(":enter",[(0,re.iF)({opacity:0}),(0,re.i0)("0.2s",(0,re.iF)({opacity:1}))]),(0,re.kY)(":leave",[(0,re.iF)({opacity:1}),(0,re.i0)("0.2s",(0,re.iF)({opacity:0}))])])},4924:(te,ne,ie)=>{"use strict";ie.d(ne,{i:()=>Ne});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(407),ue=ie(7280),me=ie(403),ge=ie(5501),fe=ie(208),_e=ie(5708),be=ie(2541),Ce=ie(2864),ye=ie(9335),we=ie(3531),ke=ie(1782),Se=ie(2383),xe=ie(9509);function BrFilterNumberComponent_label_2_Template(te,ne){if(1&te&&(le.j41(0,"label",7),le.EFF(1),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.JRh(te.label)}}let Ee=(()=>{class BrFilterNumberComponent extends xe.V{constructor(te){super(te),this.isCurrency=!1,this.numberMinValue=null,this.numberMaxValue=null}writeValue(te){te?(this.numberMinValue=String(te.min),this.numberMaxValue=String(te.max)):(this.numberMinValue=null,this.numberMaxValue=null),super.writeValue(te)}get buttonLabel(){return this.value?""+(this.value.min===this.value.max?`${(0,Se.Z)(this.value.min,this.isCurrency)}`:`${(0,Se.Z)(this.value.min,this.isCurrency)} até ${(0,Se.Z)(this.value.max,this.isCurrency)}`):this.label}get mode(){return this.isCurrency?"currency":"decimal"}onInput(){clearTimeout(this.inputTimeout),this.inputTimeout=setTimeout((()=>this.patchValue()),300)}patchValue(){clearTimeout(this.inputTimeout),this.numberMinValue&&this.numberMaxValue&&Number(this.numberMinValue)<=Number(this.numberMaxValue)?this.onValueChange({min:Number(this.numberMinValue),max:Number(this.numberMaxValue)}):this.onValueChange(null)}static#e=this.ɵfac=function BrFilterNumberComponent_Factory(te){return new(te||BrFilterNumberComponent)(le.rXU(ce.vO,10))};static#t=this.ɵcmp=le.VBU({type:BrFilterNumberComponent,selectors:[["br-filter-number"]],inputs:{isCurrency:"isCurrency"},standalone:!0,features:[le.Vt3,le.aNF],decls:10,vars:19,consts:[[1,"w-full","h-full","relative"],["styleClass","p-button-outlined",3,"label","disabled","onClick"],["class","float-label fadein animation-duration-200",4,"ngIf"],["appendTo","body"],["op",""],[1,"flex","flex-wrap","align-items-center","justify-content-center","gap-2","w-min"],["locale","pt-BR","currency","BRL",3,"ngModel","mode","placeholder","showClear","min","minFractionDigits","maxFractionDigits","ngModelChange","onInput","onClear"],[1,"float-label","fadein","animation-duration-200"]],template:function BrFilterNumberComponent_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",0)(1,"p-button",1),le.bIt("onClick",(function BrFilterNumberComponent_Template_p_button_onClick_1_listener(ne){le.eBV(te);const ie=le.sdS(4);return le.Njj(ie.toggle(ne))})),le.k0s(),le.DNE(2,BrFilterNumberComponent_label_2_Template,2,1,"label",2),le.k0s(),le.j41(3,"p-overlayPanel",3,4)(5,"div",5)(6,"p-inputNumber",6),le.mxI("ngModelChange",(function BrFilterNumberComponent_Template_p_inputNumber_ngModelChange_6_listener(te){return le.DH7(ne.numberMinValue,te)||(ne.numberMinValue=te),te})),le.bIt("onInput",(function BrFilterNumberComponent_Template_p_inputNumber_onInput_6_listener(){return ne.onInput()}))("onClear",(function BrFilterNumberComponent_Template_p_inputNumber_onClear_6_listener(){return ne.patchValue()})),le.k0s(),le.j41(7,"span"),le.EFF(8,"até"),le.k0s(),le.j41(9,"p-inputNumber",6),le.mxI("ngModelChange",(function BrFilterNumberComponent_Template_p_inputNumber_ngModelChange_9_listener(te){return le.DH7(ne.numberMaxValue,te)||(ne.numberMaxValue=te),te})),le.bIt("onInput",(function BrFilterNumberComponent_Template_p_inputNumber_onInput_9_listener(){return ne.onInput()}))("onClear",(function BrFilterNumberComponent_Template_p_inputNumber_onClear_9_listener(){return ne.patchValue()})),le.k0s()()()}2&te&&(le.R7$(),le.HbH(ne.value?"has-button-label":""),le.Y8G("label",ne.buttonLabel)("disabled",ne.disabled),le.R7$(),le.Y8G("ngIf",ne.value),le.R7$(4),le.R50("ngModel",ne.numberMinValue),le.Y8G("mode",ne.mode)("placeholder",ne.isCurrency?"Quantia mínima":"Valor mínimo")("showClear",!0)("min",0)("minFractionDigits",0)("maxFractionDigits",2),le.R7$(3),le.R50("ngModel",ne.numberMaxValue),le.Y8G("mode",ne.mode)("placeholder",ne.isCurrency?"Quantia máxima":"Valor máximo")("showClear",!0)("min",0)("minFractionDigits",0)("maxFractionDigits",2))},dependencies:[re.MD,re.bT,we.O3,we.YI,fe.kr,ce.YN,ce.BC,ce.vS,ke.d,ke.j,ue.tm,ue.$n],styles:["[_nghost-%COMP%]     .p-button-outlined{border:1px solid #d3dbe3!important;border-bottom-width:medium!important;background-color:#fff!important;width:100%;padding-left:.75rem}[_nghost-%COMP%]     .p-button-outlined .p-button-label{color:var(--text-color);opacity:.85;font-weight:400;width:auto;text-align:left}[_nghost-%COMP%]     .p-button-outlined:hover{border:1px solid var(--secondary-color)!important;border-bottom-width:medium!important}[_nghost-%COMP%]     .has-button-label .button-label{color:var(--text-color)!important}[_nghost-%COMP%]     .p-dropdown{min-width:15rem}.float-label[_ngcontent-%COMP%]{position:absolute;white-space:nowrap;top:-20px;font-size:12px;left:.75rem;color:var(--text-color);opacity:.8}"]})}return BrFilterNumberComponent})();var Me=ie(4358);function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_br_filter_date_1_Template(te,ne){if(1&te&&le.nrm(0,"br-filter-date",13),2&te){const te=le.XpG(2).$implicit;le.Y8G("formControlName",te.formControlName)("label",te.filterLabel||te.label)("mostraHora",te.showTime||!1)}}const _c0=()=>({width:"100%"});function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_p_floatLabel_2_Template(te,ne){if(1&te&&(le.j41(0,"p-floatLabel"),le.nrm(1,"p-dropdown",14),le.j41(2,"label",15),le.EFF(3),le.k0s()()),2&te){const te=le.XpG(2).$implicit,ne=le.XpG(4);le.R7$(),le.Aen(le.lJ4(9,_c0)),le.Y8G("id",te.filterLabel||te.label+" filtro")("options",ne.checkboxFilterOptions)("formControlName",te.formControlName)("showClear",!0)("autofocus",te.autoFocusOnFilter||!1),le.R7$(),le.Y8G("for",te.filterLabel||te.label+" filtro"),le.R7$(),le.JRh(te.filterLabel||te.label)}}function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_br_filter_number_3_Template(te,ne){if(1&te&&le.nrm(0,"br-filter-number",16),2&te){const te=le.XpG(2).$implicit;le.Y8G("formControlName",te.formControlName)("isCurrency",te.isCurrency||!1)("label",te.filterLabel||te.label)}}function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_p_floatLabel_4_Template(te,ne){if(1&te&&(le.j41(0,"p-floatLabel"),le.nrm(1,"p-dropdown",17),le.j41(2,"label",15),le.EFF(3),le.k0s()()),2&te){const te=le.XpG(2).$implicit;le.R7$(),le.Aen(le.lJ4(12,_c0)),le.Y8G("id",te.filterLabel||te.label+" filtro")("options",te.dataList)("formControlName",te.formControlName)("optionLabel",te.optionLabel)("showClear",!0)("optionValue",te.optionValue||te.formControlName)("filter",te.dropdownWithSearch||!1)("filterBy",te.filterBy),le.R7$(),le.Y8G("for",te.filterLabel||te.label+" filtro"),le.R7$(),le.JRh(te.filterLabel||te.label)}}function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_br_foreign_key_5_Template(te,ne){if(1&te&&le.nrm(0,"br-foreign-key",18),2&te){const te=le.XpG(2).$implicit;le.Y8G("formControlName",te.formControlName)("optionLabel",te.optionLabel)("multiple",!0)("endpoint",te.foreignEndpoint)("autoFocus",te.autoFocusOnFilter||!1)("filterBy",te.filterBy)("query",te.foreignMinQuery)("optionValue",te.optionValue||te.formControlName)("label",te.filterLabel||te.label)}}function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_ng_container_6_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_ng_container_6_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_ng_container_6_ng_container_1_Template,1,0,"ng-container",19),le.bVm()),2&te){const te=le.XpG(2).$implicit;le.R7$(),le.Y8G("ngComponentOutlet",te.component)("ngComponentOutletInputs",te.componentInputs)}}const _c1=()=>({"min-width":"100%","max-width":"100%"}),_c2=()=>({"min-width":"100%"});function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_p_floatLabel_7_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-floatLabel")(1,"p-chips",20),le.bIt("onAdd",(function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_p_floatLabel_7_Template_p_chips_onAdd_1_listener(ne){le.eBV(te);const ie=le.XpG(2).$implicit,re=le.XpG(4);return le.Njj(re.applyMaskOnChip(ne,ie,re.form))})),le.k0s(),le.j41(2,"label",15),le.EFF(3),le.k0s()()}if(2&te){const te=le.XpG(2).$implicit;le.R7$(),le.Aen(le.lJ4(12,_c1)),le.Y8G("id",te.filterLabel||te.label+" filtro")("formControlName",te.formControlName)("inputStyle",le.lJ4(13,_c2))("allowDuplicate",!1)("addOnTab",!0)("addOnBlur",!0)("showClear",!0)("autofocus",te.autoFocusOnFilter||!1),le.R7$(),le.Y8G("for",te.filterLabel||te.label+" filtro"),le.R7$(),le.JRh(te.filterLabel||te.label)}}function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_p_floatLabel_8_Template(te,ne){if(1&te&&(le.j41(0,"p-floatLabel"),le.nrm(1,"p-chips",21),le.j41(2,"label",15),le.EFF(3),le.k0s()()),2&te){const te=le.XpG(2).$implicit;le.R7$(),le.Aen(le.lJ4(12,_c1)),le.Y8G("id",te.filterLabel||te.label+" filtro")("formControlName",te.formControlName)("inputStyle",le.lJ4(13,_c2))("allowDuplicate",!1)("addOnTab",!0)("addOnBlur",!0)("showClear",!0)("autofocus",te.autoFocusOnFilter||!1),le.R7$(),le.Y8G("for",te.filterLabel||te.label+" filtro"),le.R7$(),le.JRh(te.filterLabel||te.label)}}function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0,7),le.DNE(1,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_br_filter_date_1_Template,1,3,"br-filter-date",8)(2,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_p_floatLabel_2_Template,4,10,"p-floatLabel",9)(3,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_br_filter_number_3_Template,1,3,"br-filter-number",10)(4,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_p_floatLabel_4_Template,4,13,"p-floatLabel",9)(5,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_br_foreign_key_5_Template,1,9,"br-foreign-key",11)(6,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_ng_container_6_Template,2,2,"ng-container",9)(7,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_p_floatLabel_7_Template,4,14,"p-floatLabel",9)(8,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_p_floatLabel_8_Template,4,14,"p-floatLabel",12),le.bVm()),2&te){const te=le.XpG().$implicit,ne=le.XpG(4);le.Y8G("ngSwitch",te.typeInput),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.Date),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.CheckBox),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.Number),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.Dropdown),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.ForeignKey),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.Component),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.Mask)}}function BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_ng_container_1_Template,9,8,"ng-container",6),le.bVm()),2&te){const te=ne.$implicit,ie=le.XpG(4);le.R7$(),le.Y8G("ngIf",!(!1===te.showOnFilter||te.typeInput===ie.typeInputEnum.Upload||te.typeInput===ie.typeInputEnum.BrList||ie.customFilterConfig[te.formControlName]&&"V"!==ie.customFilterConfig[te.formControlName]))}}function BrFilterComponent_div_0_form_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrFilterComponent_div_0_form_1_ng_container_1_ng_container_1_Template,2,1,"ng-container",4),le.bVm()),2&te){const te=ne.$implicit;le.R7$(),le.Y8G("ngForOf",te.controls)}}function BrFilterComponent_div_0_form_1_br_filter_date_2_Template(te,ne){1&te&&le.nrm(0,"br-filter-date",22)}function BrFilterComponent_div_0_form_1_Template(te,ne){if(1&te&&(le.j41(0,"form",3),le.DNE(1,BrFilterComponent_div_0_form_1_ng_container_1_Template,2,1,"ng-container",4)(2,BrFilterComponent_div_0_form_1_br_filter_date_2_Template,1,0,"br-filter-date",5),le.k0s()),2&te){const te=le.XpG(2);le.Y8G("formGroup",te.form),le.R7$(),le.Y8G("ngForOf",te.brFormulario),le.R7$(),le.Y8G("ngIf",!(te.brListService.hideFiltroDataCriacao||te.customFilterConfig.dataCriacaoRegistro&&"V"!==te.customFilterConfig.dataCriacaoRegistro))}}function BrFilterComponent_div_0_div_2_ng_container_1_ng_container_1_ng_container_1_ng_container_1_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function BrFilterComponent_div_0_div_2_ng_container_1_ng_container_1_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrFilterComponent_div_0_div_2_ng_container_1_ng_container_1_ng_container_1_ng_container_1_ng_container_1_Template,1,0,"ng-container",25),le.bVm()),2&te){const te=le.XpG(2).$implicit;le.R7$(),le.Y8G("ngComponentOutlet",te.componentLoading)}}function BrFilterComponent_div_0_div_2_ng_container_1_ng_container_1_ng_container_1_p_skeleton_2_Template(te,ne){1&te&&le.nrm(0,"p-skeleton",26)}function BrFilterComponent_div_0_div_2_ng_container_1_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0,7),le.DNE(1,BrFilterComponent_div_0_div_2_ng_container_1_ng_container_1_ng_container_1_ng_container_1_Template,2,1,"ng-container",9)(2,BrFilterComponent_div_0_div_2_ng_container_1_ng_container_1_ng_container_1_p_skeleton_2_Template,1,0,"p-skeleton",24),le.bVm()),2&te){const te=le.XpG().$implicit,ne=le.XpG(4);le.Y8G("ngSwitch",te.typeInput),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.Component)}}function BrFilterComponent_div_0_div_2_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrFilterComponent_div_0_div_2_ng_container_1_ng_container_1_ng_container_1_Template,3,2,"ng-container",6),le.bVm()),2&te){const te=ne.$implicit,ie=le.XpG(4);le.R7$(),le.Y8G("ngIf",!(!1===te.showOnFilter||te.typeInput===ie.typeInputEnum.Upload||te.typeInput===ie.typeInputEnum.BrList||ie.customFilterConfig[te.formControlName]&&"V"!==ie.customFilterConfig[te.formControlName]))}}function BrFilterComponent_div_0_div_2_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrFilterComponent_div_0_div_2_ng_container_1_ng_container_1_Template,2,1,"ng-container",4),le.bVm()),2&te){const te=ne.$implicit;le.R7$(),le.Y8G("ngForOf",te.controls)}}function BrFilterComponent_div_0_div_2_p_skeleton_2_Template(te,ne){1&te&&le.nrm(0,"p-skeleton",26)}function BrFilterComponent_div_0_div_2_Template(te,ne){if(1&te&&(le.j41(0,"div",3),le.DNE(1,BrFilterComponent_div_0_div_2_ng_container_1_Template,2,1,"ng-container",4)(2,BrFilterComponent_div_0_div_2_p_skeleton_2_Template,1,0,"p-skeleton",23),le.k0s()),2&te){const te=le.XpG(2);le.Y8G("formGroup",te.form),le.R7$(),le.Y8G("ngForOf",te.brFormulario),le.R7$(),le.Y8G("ngIf",!te.customFilterConfig.dataCriacaoRegistro||"V"===te.customFilterConfig.dataCriacaoRegistro)}}function BrFilterComponent_div_0_Template(te,ne){if(1&te&&(le.j41(0,"div",1),le.DNE(1,BrFilterComponent_div_0_form_1_Template,3,3,"form",2)(2,BrFilterComponent_div_0_div_2_Template,3,3,"div",2),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",!te.isFilterLoading),le.R7$(),le.Y8G("ngIf",te.isFilterLoading)}}let Ne=(()=>{class BrFilterComponent{constructor(){this.formBuilder=(0,le.WQX)(ce.ok),this.typeInputEnum=Ce.St,this.savingCustomFilters=!1,this.isCustomizing=!1}get checkboxFilterOptions(){return this.brListService.checkboxFilterOptions}get brFormulario(){return this.brListService.brFormulario}get isFilterLoading(){return this.brListService.state.isFilterLoading}get form(){return this.brListService.formFilters}set form(te){this.brListService.formFilters=te}get customFilterConfigForm(){return this.brListService.customFilterConfigForm}set customFilterConfigForm(te){this.brListService.customFilterConfigForm=te}get customFilterConfig(){return this.brListService.customFilterConfig}set customFilterConfig(te){this.brListService.customFilterConfig=te}get formGroup(){const te=this.brFormulario.flatMap((te=>te.controls)),ne={};return te.forEach((te=>{if(!1!==te.showOnFilter){const ie=de.cloneDeep(te.control);ie.removeValidators(ce.k0.required),ie.updateValueAndValidity(),ne[te.formControlName]=ie,te.disabledOnFilter&&this.brListService.controlsDisabledOnFilter.push(te.formControlName)}})),{...ne,dataCriacaoRegistro:new ce.MJ(null)}}ngOnInit(){this.form=this.formBuilder.group(this.formGroup)}applyMaskOnChip(te,ne,ie){const re=ne.inputMask,le=te.value.replace(/[^a-zA-Z0-9]/g,"");if(le.length<re.replace(/[^9a]/g,"").length)return;let ce="",de=0;for(let te=0;te<re.length;te++)if("9"===re[te]){if(!(de<le.length&&/\d/.test(le[de])))return;ce+=le[de],de++}else if("a"===re[te]){if(!(de<le.length&&/[a-zA-Z]/.test(le[de])))return;ce+=le[de],de++}else ce+=re[te];const ue=ie.get(ne.formControlName).value;ue.includes(ce)?ue.pop():ue[ue.length-1]=ce}static#e=this.ɵfac=function BrFilterComponent_Factory(te){return new(te||BrFilterComponent)};static#t=this.ɵcmp=le.VBU({type:BrFilterComponent,selectors:[["br-filter"]],inputs:{brListService:"brListService"},standalone:!0,features:[le.aNF],decls:1,vars:1,consts:[["class","br-filter-content",4,"ngIf"],[1,"br-filter-content"],["class","form-container fadein animation-duration-200",3,"formGroup",4,"ngIf"],[1,"form-container","fadein","animation-duration-200",3,"formGroup"],[4,"ngFor","ngForOf"],["formControlName","dataCriacaoRegistro","label","Data de criação","size","100%",4,"ngIf"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],["size","100%",3,"formControlName","label","mostraHora",4,"ngSwitchCase"],[4,"ngSwitchCase"],["size","100%",3,"formControlName","isCurrency","label",4,"ngSwitchCase"],["size","100%",3,"formControlName","optionLabel","multiple","endpoint","autoFocus","filterBy","query","optionValue","label",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["size","100%",3,"formControlName","label","mostraHora"],["pAutoFocus","","optionLabel","label","optionValue","value","appendTo","body",3,"id","options","formControlName","showClear","autofocus"],[3,"for"],["size","100%",3,"formControlName","isCurrency","label"],["appendTo","body",3,"id","options","formControlName","optionLabel","showClear","optionValue","filter","filterBy"],["size","100%",3,"formControlName","optionLabel","multiple","endpoint","autoFocus","filterBy","query","optionValue","label"],[4,"ngComponentOutlet","ngComponentOutletInputs"],["separator",",","pAutoFocus","",3,"id","formControlName","inputStyle","allowDuplicate","addOnTab","addOnBlur","showClear","autofocus","onAdd"],["separator",",","pAutoFocus","",3,"id","formControlName","inputStyle","allowDuplicate","addOnTab","addOnBlur","showClear","autofocus"],["formControlName","dataCriacaoRegistro","label","Data de criação","size","100%"],["width","100%","height","42px",4,"ngIf"],["width","100%","height","42px",4,"ngSwitchDefault"],[4,"ngComponentOutlet"],["width","100%","height","42px"]],template:function BrFilterComponent_Template(te,ne){1&te&&le.DNE(0,BrFilterComponent_div_0_Template,3,2,"div",0),2&te&&le.Y8G("ngIf",ne.form)},dependencies:[re.MD,re.OI,re.Sq,re.bT,re.ux,re.e1,re.fG,ce.X1,ce.qT,ce.BC,ce.cb,ce.j4,ce.JD,ye.i,fe.kr,fe.ms,_e.f,_e.V,Ee,Me.L,ge.AV,ge.C4,be.k,be.E,ue.tm,me.q4],styles:[".br-filter-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;padding:2.5rem 1.5rem 1.5rem}.br-filter-content[_ngcontent-%COMP%]   .form-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(clamp(15rem,30%,40rem),1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}"]})}return BrFilterComponent})()},3968:(te,ne,ie)=>{"use strict";ie.d(ne,{A:()=>Ne});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(2583),ue=ie(403),me=ie(208),ge=ie(5708),fe=ie(1572),_e=ie(3531),be=ie(6962),Ce=ie(2541),ye=ie(2864),we=ie(564),ke=ie(2817),Se=ie(1492),xe=ie(6630),Ee=ie(4358),Me=ie(8841);function BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_floatLabel_1_Template(te,ne){if(1&te&&(le.j41(0,"p-floatLabel"),le.nrm(1,"input",13),le.j41(2,"label",14),le.EFF(3),le.k0s()()),2&te){const te=le.XpG(2).$implicit;le.BMQ("data-formControlName",te.formControlName),le.R7$(),le.Y8G("id",te.label)("formControlName",te.formControlName)("autofocus",te.autoFocusOnDetails||!1),le.R7$(),le.Y8G("for",te.label),le.R7$(),le.JRh(te.label)}}function BrFormularioComponent_div_0_ng_container_1_ng_container_1_br_date_2_Template(te,ne){if(1&te&&le.nrm(0,"br-date",15),2&te){const te=le.XpG(2).$implicit;le.Y8G("label",te.label)("formControlName",te.formControlName)("autoFocus",te.autoFocusOnDetails||!1)("mostraHora",te.showTime||!1),le.BMQ("data-formControlName",te.formControlName)}}function BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_floatLabel_3_Template(te,ne){if(1&te&&(le.j41(0,"p-floatLabel"),le.nrm(1,"textarea",16),le.j41(2,"label",14),le.EFF(3),le.k0s()()),2&te){const te=le.XpG(2).$implicit;le.BMQ("data-formControlName",te.formControlName),le.R7$(),le.Y8G("id",te.label)("autoResize",!0)("formControlName",te.formControlName)("autofocus",te.autoFocusOnDetails||!1),le.R7$(),le.Y8G("for",te.label),le.R7$(),le.JRh(te.label)}}function BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_checkbox_4_Template(te,ne){if(1&te&&le.nrm(0,"p-checkbox",17),2&te){const te=le.XpG(2).$implicit;le.Y8G("formControlName",te.formControlName)("label",te.label)("binary",!0),le.BMQ("data-formControlName",te.formControlName)}}function BrFormularioComponent_div_0_ng_container_1_ng_container_1_br_editor_5_Template(te,ne){if(1&te&&le.nrm(0,"br-editor",18),2&te){const te=le.XpG(2).$implicit;le.Y8G("formControlName",te.formControlName)("label",te.label)("autoFocus",te.autoFocusOnDetails||!1),le.BMQ("data-formControlName",te.formControlName)}}const _c0=()=>({width:"100%"});function BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_floatLabel_6_Template(te,ne){if(1&te&&(le.j41(0,"p-floatLabel"),le.nrm(1,"p-dropdown",19),le.j41(2,"label",14),le.EFF(3),le.k0s()()),2&te){const te=le.XpG(2).$implicit;le.BMQ("data-formControlName",te.formControlName),le.R7$(),le.Aen(le.lJ4(14,_c0)),le.Y8G("id",te.label)("options",te.dataList)("autofocus",te.autoFocusOnDetails||!1)("formControlName",te.formControlName)("optionLabel",te.optionLabel)("showClear",!0)("filter",te.dropdownWithSearch||!1)("optionValue",te.optionValue||te.formControlName)("filterBy",te.filterBy),le.R7$(),le.Y8G("for",te.label),le.R7$(),le.JRh(te.label)}}const _c1=()=>({"min-width":"100%"});function BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_floatLabel_7_Template(te,ne){if(1&te&&(le.j41(0,"p-floatLabel"),le.nrm(1,"p-inputMask",20),le.j41(2,"label",14),le.EFF(3),le.k0s()()),2&te){const te=le.XpG(2).$implicit;le.BMQ("data-formControlName",te.formControlName),le.R7$(),le.Aen(le.lJ4(10,_c1)),le.Y8G("id",te.label)("formControlName",te.formControlName)("showClear",!0)("mask",te.inputMask)("autoFocus",te.autoFocusOnDetails||!1),le.R7$(),le.Y8G("for",te.label),le.R7$(),le.JRh(te.label)}}function BrFormularioComponent_div_0_ng_container_1_ng_container_1_br_foreign_key_8_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"br-foreign-key",21),le.bIt("botaoCallback",(function BrFormularioComponent_div_0_ng_container_1_ng_container_1_br_foreign_key_8_Template_br_foreign_key_botaoCallback_0_listener(){le.eBV(te);const ne=le.XpG(2).$implicit;return le.Njj(ne.foreignKeyBotaoCallback?ne.foreignKeyBotaoCallback():void 0)})),le.k0s()}if(2&te){const te=le.XpG(2).$implicit;le.Y8G("formControlName",te.formControlName)("autoFocus",te.autoFocusOnDetails||!1)("label",te.label)("endpoint",te.foreignEndpoint)("query",te.foreignMinQuery)("optionLabel",te.optionLabel)("optionValue",te.optionValue||te.formControlName)("filterBy",te.filterBy)("botaoIcon",te.foreignKeyBotaoIcon)("botaoLabel",te.foreignKeyBotaoLabel)("multiple",!1),le.BMQ("data-formControlName",te.formControlName)}}function BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_floatLabel_9_Template(te,ne){if(1&te&&(le.j41(0,"p-floatLabel"),le.nrm(1,"p-inputNumber",22),le.j41(2,"label",14),le.EFF(3),le.k0s()()),2&te){const te=le.XpG(2).$implicit;le.BMQ("data-formControlName",te.formControlName),le.R7$(),le.Aen(le.lJ4(13,_c1)),le.Y8G("autofocus",te.autoFocusOnDetails||!1)("formControlName",te.formControlName)("min",0)("mode",te.isCurrency?"currency":"decimal")("inputStyle",le.lJ4(14,_c1))("useGrouping",te.isCurrency||!1)("minFractionDigits",0)("maxFractionDigits",2),le.R7$(),le.Y8G("for",te.label),le.R7$(),le.JRh(te.label)}}const _c2=()=>["any"];function BrFormularioComponent_div_0_ng_container_1_ng_container_1_br_file_upload_10_Template(te,ne){if(1&te&&le.nrm(0,"br-file-upload",23),2&te){const te=le.XpG(2).$implicit;le.Y8G("formControlName",te.formControlName)("multiple",(te.fileLimit||1)>1)("isPublic",te.isPublic||!1)("fileLimit",te.fileLimit||1)("accept",te.acceptedFiles||le.lJ4(8,_c2))("maxFileSize",te.maxFileSize||1e7)("label",te.label),le.BMQ("data-formControlName",te.formControlName)}}function BrFormularioComponent_div_0_ng_container_1_ng_container_1_span_11_Template(te,ne){if(1&te&&(le.j41(0,"span",24),le.nrm(1,"br-list",25),le.k0s()),2&te){const te=le.XpG(2).$implicit,ne=le.XpG(2);le.BMQ("data-formControlName",te.formControlName),le.R7$(),le.Y8G("brListService",te.brListIntegradoService)("brListPaiService",ne.brListService)("integrado",!0)("brListPaiElementRef",ne.brListElementRef)}}function BrFormularioComponent_div_0_ng_container_1_ng_container_1_ng_container_12_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function BrFormularioComponent_div_0_ng_container_1_ng_container_1_ng_container_12_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrFormularioComponent_div_0_ng_container_1_ng_container_1_ng_container_12_ng_container_1_Template,1,0,"ng-container",26),le.bVm()),2&te){const te=le.XpG(2).$implicit;le.R7$(),le.Y8G("ngComponentOutlet",te.component)("ngComponentOutletInputs",te.componentInputs)}}function BrFormularioComponent_div_0_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_floatLabel_1_Template,4,6,"p-floatLabel",6)(2,BrFormularioComponent_div_0_ng_container_1_ng_container_1_br_date_2_Template,1,5,"br-date",7)(3,BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_floatLabel_3_Template,4,7,"p-floatLabel",6)(4,BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_checkbox_4_Template,1,4,"p-checkbox",8)(5,BrFormularioComponent_div_0_ng_container_1_ng_container_1_br_editor_5_Template,1,4,"br-editor",9)(6,BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_floatLabel_6_Template,4,15,"p-floatLabel",6)(7,BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_floatLabel_7_Template,4,11,"p-floatLabel",6)(8,BrFormularioComponent_div_0_ng_container_1_ng_container_1_br_foreign_key_8_Template,1,12,"br-foreign-key",10)(9,BrFormularioComponent_div_0_ng_container_1_ng_container_1_p_floatLabel_9_Template,4,15,"p-floatLabel",6)(10,BrFormularioComponent_div_0_ng_container_1_ng_container_1_br_file_upload_10_Template,1,9,"br-file-upload",11)(11,BrFormularioComponent_div_0_ng_container_1_ng_container_1_span_11_Template,2,5,"span",12)(12,BrFormularioComponent_div_0_ng_container_1_ng_container_1_ng_container_12_Template,2,2,"ng-container",6),le.bVm()),2&te){const te=le.XpG(3);le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.Text),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.Date),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.TextArea),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.CheckBox),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.Editor),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.Dropdown),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.Mask),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.ForeignKey),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.Number),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.Upload),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.BrList),le.R7$(),le.Y8G("ngSwitchCase",te.typeInputEnum.Component)}}function BrFormularioComponent_div_0_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0,4),le.DNE(1,BrFormularioComponent_div_0_ng_container_1_ng_container_1_Template,13,12,"ng-container",5),le.bVm()),2&te){const te=ne.$implicit;le.Y8G("ngSwitch",te.typeInput),le.R7$(),le.Y8G("ngIf",!(!1===te.showOnDetails))}}function BrFormularioComponent_div_0_Template(te,ne){if(1&te&&(le.j41(0,"div",2),le.DNE(1,BrFormularioComponent_div_0_ng_container_1_Template,2,2,"ng-container",3),le.k0s()),2&te){const te=le.XpG();le.Y8G("formGroup",te.form),le.BMQ("data-header",te.brPanel.header),le.R7$(),le.Y8G("ngForOf",te.brPanel.controls)}}function BrFormularioComponent_div_1_ng_container_1_ng_container_1_span_1_Template(te,ne){1&te&&(le.j41(0,"span",24),le.nrm(1,"p-skeleton",31),le.k0s())}function BrFormularioComponent_div_1_ng_container_1_ng_container_1_span_2_Template(te,ne){1&te&&(le.j41(0,"span",24),le.nrm(1,"p-skeleton",32),le.k0s())}function BrFormularioComponent_div_1_ng_container_1_ng_container_1_ng_container_3_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function BrFormularioComponent_div_1_ng_container_1_ng_container_1_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrFormularioComponent_div_1_ng_container_1_ng_container_1_ng_container_3_ng_container_1_Template,1,0,"ng-container",33),le.bVm()),2&te){const te=le.XpG(2).$implicit;le.R7$(),le.Y8G("ngComponentOutlet",te.componentLoading)}}function BrFormularioComponent_div_1_ng_container_1_ng_container_1_p_skeleton_4_Template(te,ne){1&te&&le.nrm(0,"p-skeleton",34)}function BrFormularioComponent_div_1_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0,4),le.DNE(1,BrFormularioComponent_div_1_ng_container_1_ng_container_1_span_1_Template,2,0,"span",12)(2,BrFormularioComponent_div_1_ng_container_1_ng_container_1_span_2_Template,2,0,"span",12)(3,BrFormularioComponent_div_1_ng_container_1_ng_container_1_ng_container_3_Template,2,1,"ng-container",6)(4,BrFormularioComponent_div_1_ng_container_1_ng_container_1_p_skeleton_4_Template,1,0,"p-skeleton",30),le.bVm()),2&te){const te=le.XpG().$implicit,ne=le.XpG(2);le.Y8G("ngSwitch",te.typeInput),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.Editor),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.BrList),le.R7$(),le.Y8G("ngSwitchCase",ne.typeInputEnum.Component)}}function BrFormularioComponent_div_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrFormularioComponent_div_1_ng_container_1_ng_container_1_Template,5,4,"ng-container",29),le.bVm()),2&te){const te=ne.$implicit;le.R7$(),le.Y8G("ngIf",!(!1===te.showOnDetails))}}function BrFormularioComponent_div_1_Template(te,ne){if(1&te&&(le.j41(0,"div",27),le.DNE(1,BrFormularioComponent_div_1_ng_container_1_Template,2,1,"ng-container",28),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngForOf",te.brPanel.controls)}}let Ne=(()=>{class BrFormularioComponent{constructor(){this.typeInputEnum=ye.St,this.isLoading=!1,this.fileUploadComponentList=new le.bkB}get isDetailsLoading(){return this.brListService?this.brListService.state.isDetailsLoading:this.isLoading}get form(){return this.brListService?this.brListService.formDetails:this._form}ngAfterViewInit(){this.brFileUploadComponentList?.changes.subscribe((te=>this.fileUploadComponentList.emit(te)))}static#e=this.ɵfac=function BrFormularioComponent_Factory(te){return new(te||BrFormularioComponent)};static#t=this.ɵcmp=le.VBU({type:BrFormularioComponent,selectors:[["br-formulario"]],viewQuery:function BrFormularioComponent_Query(te,ne){if(1&te&&le.GBs(xe.r,5),2&te){let te;le.mGM(te=le.lsd())&&(ne.brFileUploadComponentList=te)}},inputs:{brListService:"brListService",isLoading:"isLoading",brPanel:"brPanel",_form:"_form",brListElementRef:"brListElementRef"},outputs:{fileUploadComponentList:"fileUploadComponentList"},standalone:!0,features:[le.aNF],decls:2,vars:2,consts:[["class","form-container fadein animation-duration-200",3,"formGroup",4,"ngIf"],["class","form-container fadein animation-duration-200",4,"ngIf"],[1,"form-container","fadein","animation-duration-200",3,"formGroup"],[3,"ngSwitch",4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngIf"],[4,"ngSwitchCase"],["size","calc(100% - 49px)",3,"label","formControlName","autoFocus","mostraHora",4,"ngSwitchCase"],["trueValue","V","falseValue","F",3,"formControlName","label","binary",4,"ngSwitchCase"],["altura","10rem","size","100%","style","grid-column: 1 / -1",3,"formControlName","label","autoFocus",4,"ngSwitchCase"],["size","100%",3,"formControlName","autoFocus","label","endpoint","query","optionLabel","optionValue","filterBy","botaoIcon","botaoLabel","multiple","botaoCallback",4,"ngSwitchCase"],["size","100%",3,"formControlName","multiple","isPublic","fileLimit","accept","maxFileSize","label",4,"ngSwitchCase"],["style","grid-column: 1 / -1",4,"ngSwitchCase"],["brInputText","","pAutoFocus","","type","text",2,"min-width","100%",3,"id","formControlName","autofocus"],[3,"for"],["size","calc(100% - 49px)",3,"label","formControlName","autoFocus","mostraHora"],["pAutoFocus","","pInputTextarea","","rows","1",2,"min-width","100%","min-height","44px",3,"id","autoResize","formControlName","autofocus"],["trueValue","V","falseValue","F",3,"formControlName","label","binary"],["altura","10rem","size","100%",2,"grid-column","1 / -1",3,"formControlName","label","autoFocus"],["pAutoFocus","",3,"id","options","autofocus","formControlName","optionLabel","showClear","filter","optionValue","filterBy"],[3,"id","formControlName","showClear","mask","autoFocus"],["size","100%",3,"formControlName","autoFocus","label","endpoint","query","optionLabel","optionValue","filterBy","botaoIcon","botaoLabel","multiple","botaoCallback"],["pAutoFocus","","locale","pt-BR","currency","BRL",3,"autofocus","formControlName","min","mode","inputStyle","useGrouping","minFractionDigits","maxFractionDigits"],["size","100%",3,"formControlName","multiple","isPublic","fileLimit","accept","maxFileSize","label"],[2,"grid-column","1 / -1"],[3,"brListService","brListPaiService","integrado","brListPaiElementRef"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[1,"form-container","fadein","animation-duration-200"],[4,"ngFor","ngForOf"],[3,"ngSwitch",4,"ngIf"],["width","100%","height","42px",4,"ngSwitchDefault"],["width","100%","height","calc(10rem + 38px)"],["width","100%","height","380px"],[4,"ngComponentOutlet"],["width","100%","height","42px"]],template:function BrFormularioComponent_Template(te,ne){1&te&&le.DNE(0,BrFormularioComponent_div_0_Template,2,3,"div",0)(1,BrFormularioComponent_div_1_Template,2,1,"div",1),2&te&&(le.Y8G("ngIf",!ne.isDetailsLoading&&ne.form),le.R7$(),le.Y8G("ngIf",ne.isDetailsLoading))},dependencies:()=>[re.MD,re.OI,re.Sq,re.bT,re.ux,re.e1,re.fG,Me.B,Ee.L,ke.a,ce.X1,ce.me,ce.BC,ce.cb,ce.j4,ce.JD,Ce.k,Ce.E,ue.q4,ue.Sc,Se.P,ge.f,ge.V,xe.r,be.f,be.Z,_e.O3,_e.YI,me.kr,me.ms,fe.Zn,fe.N5,de.u,de.q,we.K],styles:[".form-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(clamp(15rem,30%,30rem),1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}"]})}return BrFormularioComponent})()},2864:(te,ne,ie)=>{"use strict";ie.d(ne,{Ii:()=>Oe,O7:()=>AbstractBrListService,St:()=>Pe});var re=ie(7691),le=ie(3107),ce=ie(3828),de=ie(1217),ue=ie(7178),me=ie(6564),ge=ie(2653),fe=ie(7947),_e=ie(4447),be=ie(2040),Ce=ie(2867),ye=ie(3016),we=ie(9335),ke=ie(6830),Se=ie(3972),xe=ie(3206),Ee=ie(6612),Me=ie(605),Ne=ie(7538),Re=ie(8),Le=ie(2383),Oe=function(te){return te[te.Date=0]="Date",te[te.DateTime=1]="DateTime",te[te.Currency=2]="Currency",te[te.CheckBox=3]="CheckBox",te[te.Chip=4]="Chip",te[te.Icon=5]="Icon",te[te.Component=6]="Component",te[te.CheckBoxUnsafe=7]="CheckBoxUnsafe",te[te.Button=8]="Button",te}(Oe||{}),Pe=function(te){return te[te.Text=0]="Text",te[te.Editor=1]="Editor",te[te.Number=2]="Number",te[te.Dropdown=3]="Dropdown",te[te.Date=4]="Date",te[te.Upload=5]="Upload",te[te.ForeignKey=6]="ForeignKey",te[te.Mask=7]="Mask",te[te.CheckBox=8]="CheckBox",te[te.TextArea=9]="TextArea",te[te.BrList=10]="BrList",te[te.Component=11]="Component",te}(Pe||{});class AbstractBrListService{get dataList(){return this.dataList$.getValue()}set dataList(te){this.dataList$.next(te)}get columns(){return this.columns$.getValue()}set columns(te){this.columns$.next(te)}get idRowDetails(){return this.idRowDetails$.getValue()}set idRowDetails(te){this.idRowDetails$.next(te)}get columnAgrupamento(){return this.columns.find((te=>!0===te.groupBy))}get recordPkName(){return this.columns[0].fieldPath}get everyBrFormControl(){const te=[];for(const ne of this.brFormulario)for(const ie of ne.controls)te.push(ie);if(!te.some((te=>!1!==te.showOnDetails&&!0===te.autoFocusOnDetails))){const ne=te.find((te=>!1!==te.showOnDetails));ne&&(ne.autoFocusOnDetails=!0)}if(!te.some((te=>!1!==te.showOnFilter&&!0===te.autoFocusOnFilter))){const ne=te.find((te=>!1!==te.showOnFilter));ne&&(ne.autoFocusOnFilter=!0)}return te}constructor(te){this.endpoint=te,this.authService=(0,le.WQX)(ke.u),this.http=(0,le.WQX)(re.Qq),this.messageService=(0,le.WQX)(ce.bg),this.configComponentService=(0,le.WQX)(xe.p),this.brMessageService=(0,le.WQX)(Se.h),this.environmentService=(0,le.WQX)(Ee.v),this.logAcessoService=(0,le.WQX)(Me.C),this.dataList$=new de.t([]),this.idRowDetails$=new de.t(void 0),this.selectedRows=[],this.brChipList=[],this.controlsDisabledOnDetails=[],this.controlsDisabledOnFilter=[],this.appliedFilters={},this.customFilterConfig={},this.labelBotaoSalvarDetails="Salvar",this.labelBotaoFecharDetails="Fechar",this.virtualScrollHeight=34,this.checkboxFilterOptions=[{label:'"Sim"',value:!0},{label:'"Não"',value:!1}],this.state={isLoading:!0,isReadOnly:!1,isIntegrado:!1,isFilterOpen:!1,isFilterLoading:!0,isDetailsOpen:!1,isDetailsHovered:!1,isDetailsLoading:!0,isDetailsFullscreen:!1,isBrChipsOpen:!1,podeVer:!1,podeAlterar:!1,podeApagar:!1,podeInserir:!1,isSalvarDetailsHabilitado:!0},this.url=`${this.environmentService.environment.serverUrl}/${this.endpoint}`,this.configStyle?.().subscribe((te=>this.styleConfig=te)),this.classeIncorp=this.constructor.name.replace("Service","")}listRecords(){return this.http.post(`${this.url}/filtro`,{pageSize:"all"}).pipe((0,ue.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),me.w))))}listRecordsMin(te=""){return this.http.get(`${this.url}/min?search=${te}`).pipe((0,ue.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),me.w))))}filterRecords(te){return this.logAcessoService.addEvento(Me.X.ListaItensTabela,{descricao:JSON.stringify(te),registrarRotinaMenu:!0}),this.http.post(`${this.url}/filtro`,te).pipe((0,ue.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),me.w))))}createRecord(te){return this.http.post(this.url,te).pipe((0,ue.W)((te=>(console.error(te),500===te.status?this.brMessageService.error(te.error.message):this.brMessageService.info(te.error.message),me.w))))}updateRecord(te,ne){return this.http.put(`${this.url}/${te}`,ne).pipe((0,ue.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),me.w))))}getRecord(te){return this.http.get(`${this.url}/${te}`).pipe((0,ue.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),me.w))))}singleDelete(te){return this.http.delete(`${this.url}/${te}`).pipe((0,ue.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),me.w))))}multipleDelete(te){const ne=te.map((te=>this.singleDelete(te)));return(0,ge.p)(ne).pipe((0,fe.T)((te=>te.filter((te=>te!==me.w)))),(0,ue.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),me.w))))}saveBrListConfig(){const te=this.columns.map((te=>({fieldPath:te.fieldPath,searchValue:te.searchValue,sort:te.sort,groupBy:te.groupBy,visible:te.visible,size:te.size})));return delete this.appliedFilters.pageSize,this.configComponentService.save(this.classeIncorp,{appliedFilters:this.appliedFilters,columns:te,customFilterConfig:this.customFilterConfig}).pipe((0,ue.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),me.w))))}openDetails(te){if(!this.state.podeVer)return this.brMessageService.info("Você não possui a permissão para essa ação.");(0,Re.E2)(this.formDetails),this.idRowDetails=te,this.state.isDetailsOpen=!0,this.state.isDetailsLoading=!0,this.idRowDetails?(this.everyBrFormControl.forEach((te=>{if(te.typeInput===Pe.BrList){te.brListIntegradoService.fixedFilters={...te.brListIntegradoService.fixedFilters,[te.formControlName]:[this.idRowDetails],[te.brListIntegradoService.recordPkName]:null},te.brListIntegradoService.defaultDetailsValue={...te.brListIntegradoService.defaultDetailsValue,[te.formControlName]:this.idRowDetails},te.brListIntegradoService.controlsDisabledOnDetails=[...te.brListIntegradoService.controlsDisabledOnDetails,te.formControlName];te.brListIntegradoService.everyBrFormControl.find((ne=>ne.formControlName===te.formControlName)).showOnDetails=!1}})),this.getRecord(this.idRowDetails).pipe((0,ue.W)((te=>(console.error(te),this.brMessageService.error(),me.w))),(0,_e.j)((()=>this.state.isDetailsLoading=!1))).subscribe((te=>{this.formDetails?.patchValue(te),this.disableControlsDisabledOnDetails()}))):(this.everyBrFormControl.forEach((te=>{te.typeInput===Pe.BrList&&(te.brListIntegradoService.fixedFilters={...te.brListIntegradoService.fixedFilters,[te.brListIntegradoService.recordPkName]:["0"]},te.brListIntegradoService.defaultDetailsValue={...te.brListIntegradoService.defaultDetailsValue,[te.formControlName]:null})})),this.defaultDetailsValue&&this.formDetails?.patchValue(this.defaultDetailsValue),this.disableControlsDisabledOnDetails(),setTimeout((()=>this.state.isDetailsLoading=!1),100))}disableControlsDisabledOnFilter(){this.controlsDisabledOnFilter.forEach((te=>{this.formFilters?.get(te)?.disable()}))}refreshData(){return this.state.isLoading=!0,delete this.appliedFilters?.cursor,this.columnAgrupamento?this.appliedFilters.groupBy=this.columnAgrupamento.brFormControl.formControlName:delete this.appliedFilters?.groupBy,this.dataList.length&&(this.appliedFilters.pageSize=this.dataList.length),this.filterRecords({...this.appliedFilters,...this.fixedFilters}).pipe((0,be.M)((te=>{this.pagination=te.pagination,this.selectedRows=[],this.dataList=te.data})),(0,Ce.n)((te=>this.columnAgrupamento?te.groupCountList?this.createGroupHeaderList(te.groupCountList).pipe((0,ue.W)((te=>(console.error(te),this.brMessageService.error(),this.state.isLoading=!1,me.w))),(0,be.M)((te=>{this.dataList=this.mergeSameValueGroups(te).sort(((te,ne)=>ne.count-te.count)).sort(((te,ne)=>te.label.startsWith(`Sem "${this.columnAgrupamento.label}"`)?-1:1)).slice(0,100)})),(0,fe.T)((()=>te))):(0,ye.of)(te):(this.pagination?.nextCursor&&this.dataList.push({isSkeletonRow:!0}),(0,ye.of)(te)))),(0,_e.j)((()=>{this.state.isLoading=!1})))}addData(te,ne){if(this.state.isLoading=!0,this.pagination?.nextCursor){if(0===ne||ne){delete this.appliedFilters.cursor,delete this.appliedFilters.groupBy,this.appliedFilters.pageSize=30,this.dataList[ne].isBrGroupHeader?this.appliedFilters.cursor=void 0:this.appliedFilters.cursor=this.dataList[ne-1][this.recordPkName];const ie=this.getGroupFilter(te);return this.filterRecords({...this.appliedFilters,...this.fixedFilters,...ie}).pipe((0,be.M)((ie=>{this.dataList=this.dataList.filter((ne=>!(ne.groupValue&&ne.groupValue===te)));const re=[...ie.data];re.forEach((ne=>ne.$groupValue=te)),re.length===this.appliedFilters.pageSize&&re.push({isSkeletonRow:!0,groupValue:te,isGroupSkeleton:!0}),this.appliedFilters.cursor?(re.shift(),this.dataList=[...this.dataList.slice(0,ne),...re,...this.dataList.slice(ne)]):this.dataList=[...this.dataList.slice(0,ne+1),...re,...this.dataList.slice(ne+1)]})),(0,ue.W)((te=>(console.error(te),this.brMessageService.error(),me.w))),(0,_e.j)((()=>{this.state.isLoading=!1})))}return this.appliedFilters.cursor=this.pagination.nextCursor,this.appliedFilters.pageSize=30,this.filterRecords({...this.appliedFilters,...this.fixedFilters}).pipe((0,be.M)((te=>{this.pagination=te.pagination,this.dataList=this.dataList.filter((te=>!("isSkeletonRow"in te))),this.dataList=this.dataList.concat(te.data),this.pagination?.nextCursor&&this.dataList.push({isSkeletonRow:!0})})),(0,ue.W)((te=>(console.error(te),this.brMessageService.error(),me.w))),(0,_e.j)((()=>{this.state.isLoading=!1})))}return console.error("Erro na Paginação"),this.brMessageService.error(),me.w}createChipsList(){if(this.brChipList=[],this.fixedFilters){const te=Object.keys(this.fixedFilters).filter((te=>{const ne=this.fixedFilters[te];return null!=ne&&(!Array.isArray(ne)||ne.length>0)}));for(const ne of this.everyBrFormControl)te.includes(ne.formControlName)&&this.createBrChips(ne,!0);if(te.includes("dataCriacaoRegistro")){const te=this.fixedFilters.dataCriacaoRegistro;te.periodo.value===we.v.Outro?this.brChipList.push({text:`Data de criação: ${new Date(te.dataInicial).toLocaleDateString("pt-br")} até ${new Date(te.dataFinal).toLocaleDateString("pt-br")}`,fieldPath:"dataCriacaoRegistro",isRemovable:!1}):this.brChipList.push({text:`Data de criação: ${te.periodo.label}`,fieldPath:"dataCriacaoRegistro",isRemovable:!1})}}if(this.appliedFilters){const te=Object.keys(this.appliedFilters).filter((te=>{const ne=this.appliedFilters[te];return null!=ne&&(!Array.isArray(ne)||ne.length>0)}));for(const ne of this.everyBrFormControl)te.includes(ne.formControlName)&&this.createBrChips(ne,!1);if(te.includes("dataCriacaoRegistro")){const te=this.appliedFilters.dataCriacaoRegistro;te.periodo.value===we.v.Outro?this.brChipList.push({text:`Data de criação: ${new Date(te.dataInicial).toLocaleDateString("pt-br")} até ${new Date(te.dataFinal).toLocaleDateString("pt-br")}`,fieldPath:"dataCriacaoRegistro",isRemovable:!0}):this.brChipList.push({text:`Data de criação: ${te.periodo.label}`,fieldPath:"dataCriacaoRegistro",isRemovable:!0})}}this.brChipList.sort(((te,ne)=>te.isRemovable===ne.isRemovable?0:te.isRemovable?1:-1))}toggleColumnVisibility(te){te.visible=!(!1!==te.visible),this.saveBrListConfig().subscribe()}onAgrupamento(te){if(te){if(!te.brFormControl)return;this.columns.forEach((te=>te.groupBy=!1)),te.sort&&(te.sort=void 0,delete this.appliedFilters.order),te.groupBy=!0,this.refreshData().subscribe((()=>this.saveBrListConfig().subscribe()))}else this.columns.forEach((te=>te.groupBy=!1)),this.refreshData().subscribe((()=>this.saveBrListConfig().subscribe()))}configComponente(te){return this.configComponentService.getConfig(this.classeIncorp).pipe((0,be.M)((ne=>{if(ne){this.appliedFilters=te?{}:{...this.appliedFilters,...ne.config.appliedFilters},this.customFilterConfig=ne.config.customFilterConfig??{},this.atualizarDatas(this.appliedFilters),this.formFilters?.patchValue(this.appliedFilters),this.customFilterConfigForm?.patchValue(this.customFilterConfig);const ie=ne.config.columns||[],re=[],le=[];for(const te of this.columns){const ne=ie.findIndex((ne=>te.fieldPath===ne.fieldPath));-1!==ne?(te.visible=ie[ne].visible,te.sort=ie[ne].sort,te.size=ie[ne].size,te.groupBy=ie[ne].groupBy,te.searchValue=ie[ne].searchValue,re[ne]=te):le.push(te)}re.push(...le),this.columns=re.filter(Boolean)}})),(0,ue.W)((te=>(console.error(te),this.brMessageService.error(),me.w))))}configPermissoes(){const te=this.authService.usuario?.nbrRotinaGrupoAcesso.find((te=>te.nbrRotinaMenu?.classeIncorp===(this.brListPaiService?this.brListPaiService.classeIncorp:this.classeIncorp)+"Component")),ne=this.authService.usuario?.isAdmin;this.state.isReadOnly?this.state={...this.state,podeVer:!0,podeAlterar:!1,podeApagar:!1,podeInserir:!1}:this.state={...this.state,podeApagar:ne||"V"===te?.podeApagar,podeInserir:ne||"V"===te?.podeInserir,podeAlterar:ne||"V"===te?.podeAlterar,podeVer:ne||"V"===te?.podeVer}}createBrChips(te,ne){const ie=this.columns.find((ne=>ne.fieldPath===te.formControlName))?.label,re=ne?this.fixedFilters[te.formControlName]:this.appliedFilters[te.formControlName];switch(te.typeInput){case Pe.Date:if(re.periodo.value===we.v.Outro){const le=new Date(re.dataInicial).toLocaleDateString("pt-br"),ce=new Date(re.dataFinal).toLocaleDateString("pt-br");this.brChipList.push({text:`${ie||te.label}: ${le===ce?`${le}`:`${le} até ${ce}`}`,fieldPath:te.formControlName,isRemovable:!ne,component:te.chipComponent,componentInputs:te.chipComponentInputs})}else this.brChipList.push({text:`${ie||te.label}: ${re.periodo.label}`,fieldPath:te.formControlName,isRemovable:!ne,component:te.chipComponent,componentInputs:te.chipComponentInputs});break;case Pe.CheckBox:this.brChipList.push({text:`${ie||te.label}: ${re?"Sim":"Não"}`,fieldPath:te.formControlName,isRemovable:!ne,component:te.chipComponent,componentInputs:te.chipComponentInputs});break;case Pe.Dropdown:const le=te.dataList.find((ne=>ne[te.optionValue]===re));this.brChipList.push({text:`${ie||te.label}: ${le[te.optionLabel]}`,fieldPath:te.formControlName,isRemovable:!ne,component:te.chipComponent,componentInputs:te.chipComponentInputs});break;case Pe.ForeignKey:this.http.get(`${this.environmentService.environment.serverUrl}/${te.foreignEndpoint}/min?search=id-[${re.join(",")}]`).pipe((0,ue.W)((te=>(console.error(te),this.brMessageService.error(),me.w)))).subscribe((re=>{this.brChipList.push({text:`${ie||te.label}: ${re.data.map((ne=>ne[te.optionLabel])).join(", ")}`,fieldPath:te.formControlName,isRemovable:!ne,component:te.chipComponent,componentInputs:te.chipComponentInputs})}));break;case Pe.Number:this.brChipList.push({text:`${ie||te.label}: ${re.min===re.max?`${(0,Le.Z)(re.min,te.isCurrency||!1)}`:`${(0,Le.Z)(re.min,te.isCurrency||!1)} até ${(0,Le.Z)(re.max,te.isCurrency||!1)}`}`,fieldPath:te.formControlName,isRemovable:!ne,component:te.chipComponent,componentInputs:te.chipComponentInputs});break;default:this.brChipList.push({text:`${ie||te.label}: ${re.join(", ")}`,fieldPath:te.formControlName,isRemovable:!ne,component:te.chipComponent,componentInputs:te.chipComponentInputs})}}atualizarDatas(te){for(const ne of Object.keys(te)){const ie=te[ne];if("object"==typeof ie&&null!==ie&&"periodo"in ie&&"dataInicial"in ie&&ie.periodo.value!==we.v.Outro)if(ie.periodo.value===we.v.MesAtual){const te=new Date;te.setDate(1),te.setHours(0,0,0,0);const ne=new Date;ne.setMonth(ne.getMonth()+1),ne.setDate(0),ne.setHours(23,59,59),ie.dataInicial=(0,Ne.hk)(te),ie.dataFinal=(0,Ne.hk)(ne)}else{const te=new Date(Date.now()-864e5*ie.periodo.value),ne=new Date;te.setHours(0,0,0),ne.setHours(23,59,59),ie.dataInicial=(0,Ne.hk)(te),ie.dataFinal=(0,Ne.hk)(ne)}}}createGroupHeaderList(te){if(this.columnAgrupamento.brFormControl.typeInput===Pe.ForeignKey){const ne=te.map((te=>te.value?this.http.get(`${this.environmentService.environment.serverUrl}/${this.columnAgrupamento.brFormControl.foreignEndpoint}/min?search=id-[${te.value}]`).pipe((0,fe.T)((ne=>({label:`${ne.data[0][this.columnAgrupamento.brFormControl.optionLabel]}`,value:te.value,count:te.count,isBrGroupHeader:!0}))),(0,ue.W)((te=>(console.error(te),this.brMessageService.error(),me.w)))):(0,ye.of)({label:`Sem "${this.columnAgrupamento.label}" cadastrado`,value:te.value,count:te.count,isBrGroupHeader:!0})));return(0,ge.p)(ne)}switch(this.columnAgrupamento.typeColumn){case Oe.Date:case Oe.DateTime:return(0,ye.of)(te.map((te=>{if(!te.value)return{label:`Sem "${this.columnAgrupamento.label}" cadastrado`,value:te.value,count:te.count,isBrGroupHeader:!0};return{label:`${new Date(te.value).toLocaleDateString("pt-br")}`,value:te.value,count:te.count,isBrGroupHeader:!0}})));case Oe.CheckBox:return(0,ye.of)(te.map((te=>te.value?{label:`${this.columnAgrupamento.label}: ${"V"===te.value?"Sim":"Não"}`,value:te.value,count:te.count,isBrGroupHeader:!0}:{label:`Sem "${this.columnAgrupamento.label}" cadastrado`,value:te.value,count:te.count,isBrGroupHeader:!0})));case Oe.Currency:return(0,ye.of)(te.map((te=>{if(!te.value)return{label:`Sem "${this.columnAgrupamento.label}" cadastrado`,value:te.value,count:te.count,isBrGroupHeader:!0};return{label:`${(0,Le.Z)(Number(te.value),this.columnAgrupamento.brFormControl.isCurrency||!1)}`,value:te.value,count:te.count,isBrGroupHeader:!0}})));default:return(0,ye.of)(te.map((te=>te.value?{label:`${te.value}`,value:te.value,count:te.count,isBrGroupHeader:!0}:{label:`Sem "${this.columnAgrupamento.label}" cadastrado`,value:te.value,count:te.count,isBrGroupHeader:!0})))}}getGroupFilter(te){if(null===te)return{[this.columnAgrupamento.brFormControl.formControlName]:[null]};switch(this.columnAgrupamento.brFormControl.typeInput){case Pe.Date:{const ne=new Date(te),ie=new Date(te);return ne.setHours(0,0,0),ie.setHours(23,59,59),{[this.columnAgrupamento.brFormControl.formControlName]:{periodo:{label:"Outro",value:-1},dataInicial:(0,Ne.hk)(ne),dataFinal:(0,Ne.hk)(ie)}}}case Pe.CheckBox:return{[this.columnAgrupamento.brFormControl.formControlName]:"V"===te};case Pe.Number:return{[this.columnAgrupamento.brFormControl.formControlName]:{min:te,max:te}};case Pe.ForeignKey:return{[this.columnAgrupamento.brFormControl.formControlName]:[te]};default:return{groupStringSearch:{key:this.columnAgrupamento.brFormControl.formControlName,value:te}}}}mergeSameValueGroups(te){const ne=new Map;let ie=0;if(te.forEach((te=>{const re=te.label,le=re.startsWith(`Sem "${this.columnAgrupamento.label}" cadastrado`)?"nullGroup":re;if(ne.has(le)){const ie=ne.get(le);ie.count+=te.count,ie.label=`${ie.label?.split(";;")[0]};;(${(0,Le.Z)(ie.count,!1)} ${ie.count>1?this.brListNamePlural:this.brListName})`}else"nullGroup"===le?(ie+=te.count,ne.set(le,{label:`Sem "${this.columnAgrupamento.label}" cadastrado;;(${(0,Le.Z)(ie,!1)} ${ie>1?this.brListNamePlural:this.brListName})`,value:null,count:ie,isBrGroupHeader:!0})):(te.label=`${te.label?.split(";;")[0]};;(${(0,Le.Z)(te.count,!1)} ${te.count>1?this.brListNamePlural:this.brListName})`,ne.set(le,{...te}))})),ne.has("nullGroup")){const te=ne.get("nullGroup");te.label=`Sem "${this.columnAgrupamento.label}" cadastrado;;(${(0,Le.Z)(te.count,!1)} ${te.count>1?this.brListNamePlural:this.brListName})`}return Array.from(ne.values())}disableControlsDisabledOnDetails(){this.controlsDisabledOnDetails.forEach((te=>{this.formDetails?.get(te)?.disable()}))}toggleStatusRegistro(te){return this.http.patch(`${this.environmentService.environment.serverUrl}/br-records/${this.classeIncorp}/status`,{cods:te,pkColumn:this.recordPkName})}getColumnLabelFromBrControl(te){return this.everyBrFormControl.find((ne=>ne.formControlName===te)).label}}},2764:(te,ne,ie)=>{"use strict";ie.d(ne,{M:()=>Ye});var re=ie(1204),le=ie(4460),ce=ie(3107),de=ie(936),ue=ie(3828),me=ie(9568),ge=ie(344),fe=ie(7718),_e=ie(1178),be=ie(8447),Ce=ie(2867),ye=ie(2040),we=ie(7178),ke=ie(6564),Se=ie(4447),xe=ie(2653),Ee=ie(3016),Me=ie(6627),Ne=ie(7610),Re=ie(7947),Le=ie(3968);let Oe=(()=>{class ResizeDirective{constructor(te,ne,ie){this.el=te,this.renderer=ne,this.document=ie,this.initialY=0,this.initialHeight=0,this.onMouseMove=te=>{const ne=te.clientY-this.initialY,ie=this.initialHeight-ne;this.el.nativeElement.style.height=`${ie}px`},this.onMouseUp=()=>{this.el.nativeElement.style.transition="",this.document.removeEventListener("mousemove",this.onMouseMove),this.document.removeEventListener("mouseup",this.onMouseUp)}}ngOnInit(){this.handler=this.renderer.createElement("div"),this.renderer.addClass(this.handler,"resize-handler"),this.renderer.appendChild(this.el.nativeElement,this.handler),this.renderer.listen(this.handler,"mousedown",(te=>this.onMouseDown(te)))}onMouseDown(te){te.preventDefault(),this.initialY=te.clientY,this.initialHeight=this.el.nativeElement.clientHeight,this.el.nativeElement.style.transition="none",this.document.addEventListener("mousemove",this.onMouseMove),this.document.addEventListener("mouseup",this.onMouseUp)}static#e=this.ɵfac=function ResizeDirective_Factory(te){return new(te||ResizeDirective)(ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(le.qQ))};static#t=this.ɵdir=ce.FsC({type:ResizeDirective,selectors:[["","brResize",""]],standalone:!0})}return ResizeDirective})();var Pe=ie(3972),Fe=ie(2848),je=ie(2473),Ve=ie(4667),Ge=ie(8),ze=ie(915),He=ie(2864),$e=ie(7280);const qe=["detailsDialog"];function BrListDetailsComponent_ng_container_0_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_0_ng_container_4_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_0_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"div",9,10),ce.DNE(3,BrListDetailsComponent_ng_container_0_ng_container_4_ng_container_3_Template,1,0,"ng-container",5),ce.nrm(4,"p-confirmDialog",11),ce.k0s(),ce.bVm()),2&te){const te=ce.sdS(2),ne=ce.XpG(2);ce.R7$(3),ce.Y8G("ngTemplateOutlet",ne.novoTemplate),ce.R7$(),ce.Mz_("key","",ne.brListName,"-sidebar-confirmdialog"),ce.Y8G("appendTo",te)}}function BrListDetailsComponent_ng_container_0_ng_template_5_ng_container_0_ng_container_2_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_0_ng_template_5_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"div",9),ce.DNE(2,BrListDetailsComponent_ng_container_0_ng_template_5_ng_container_0_ng_container_2_Template,1,0,"ng-container",5),ce.k0s(),ce.bVm()),2&te){const te=ce.XpG(3);ce.R7$(2),ce.Y8G("ngTemplateOutlet",te.visualizarTemplate)}}function BrListDetailsComponent_ng_container_0_ng_template_5_Template(te,ne){if(1&te&&ce.DNE(0,BrListDetailsComponent_ng_container_0_ng_template_5_ng_container_0_Template,3,1,"ng-container",6),2&te){ce.XpG();const te=ce.sdS(8),ne=ce.XpG();ce.Y8G("ngIf",(null==ne.form?null:ne.form.disabled)&&ne.visualizarTemplate)("ngIfElse",te)}}function BrListDetailsComponent_ng_container_0_ng_template_7_ng_container_0_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_0_ng_template_7_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"div",9,10),ce.DNE(3,BrListDetailsComponent_ng_container_0_ng_template_7_ng_container_0_ng_container_3_Template,1,0,"ng-container",5),ce.nrm(4,"p-confirmDialog",11),ce.k0s(),ce.bVm()),2&te){const te=ce.sdS(2),ne=ce.XpG(3);ce.R7$(3),ce.Y8G("ngTemplateOutlet",ne.alterarTemplate),ce.R7$(),ce.Mz_("key","",ne.brListName,"-sidebar-confirmdialog"),ce.Y8G("appendTo",te)}}function BrListDetailsComponent_ng_container_0_ng_template_7_Template(te,ne){if(1&te&&ce.DNE(0,BrListDetailsComponent_ng_container_0_ng_template_7_ng_container_0_Template,5,3,"ng-container",6),2&te){const te=ce.XpG(2),ne=ce.sdS(8);ce.Y8G("ngIf",te.idRowDetails&&te.alterarTemplate)("ngIfElse",ne)}}const _c1=(te,ne)=>({fullscreen:te,anchored:ne});function BrListDetailsComponent_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"div",3,4),ce.DNE(3,BrListDetailsComponent_ng_container_0_ng_container_3_Template,1,0,"ng-container",5)(4,BrListDetailsComponent_ng_container_0_ng_container_4_Template,5,3,"ng-container",6)(5,BrListDetailsComponent_ng_container_0_ng_template_5_Template,1,2,"ng-template",null,7,ce.C5r)(7,BrListDetailsComponent_ng_container_0_ng_template_7_Template,1,2,"ng-template",null,8,ce.C5r),ce.k0s(),ce.bVm()),2&te){const te=ce.sdS(6),ne=ce.XpG(),ie=ce.sdS(6);ce.R7$(),ce.Y8G("@sidebar-animation",ne.isDetailsOpen?"show":"hide")("ngClass",ce.l_i(5,_c1,ne.isDetailsFullscreen,ne.isMenuAnchored)),ce.R7$(2),ce.Y8G("ngTemplateOutlet",ie),ce.R7$(),ce.Y8G("ngIf",!ne.idRowDetails&&ne.novoTemplate)("ngIfElse",te)}}function BrListDetailsComponent_ng_container_1_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_1_ng_container_4_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_1_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"div",9,10),ce.DNE(3,BrListDetailsComponent_ng_container_1_ng_container_4_ng_container_3_Template,1,0,"ng-container",5),ce.nrm(4,"p-confirmDialog",11),ce.k0s(),ce.bVm()),2&te){const te=ce.sdS(2),ne=ce.XpG(2);ce.R7$(3),ce.Y8G("ngTemplateOutlet",ne.alterarTemplate),ce.R7$(),ce.Mz_("key","",ne.brListName,"-sidebar-confirmdialog"),ce.Y8G("appendTo",te)}}const _c2=()=>({minWidth:"80vw"});function BrListDetailsComponent_ng_container_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"p-dialog",12,13),ce.mxI("visibleChange",(function BrListDetailsComponent_ng_container_1_Template_p_dialog_visibleChange_1_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.DH7(ie.isDetailsOpen,ne)||(ie.isDetailsOpen=ne),ce.Njj(ne)})),ce.DNE(3,BrListDetailsComponent_ng_container_1_ng_container_3_Template,1,0,"ng-container",5)(4,BrListDetailsComponent_ng_container_1_ng_container_4_Template,5,3,"ng-container",6),ce.k0s(),ce.bVm()}if(2&te){const te=ce.XpG(),ne=ce.sdS(6),ie=ce.sdS(8);let re;ce.R7$(),ce.Aen(ce.lJ4(13,_c2)),ce.R50("visible",te.isDetailsOpen),ce.Y8G("draggable",!1)("modal",!0)("dismissableMask",!0)("closable",!1)("resizable",!1)("styleClass",te.layoutState.anchored?"menu-active details-dialog":"details-dialog")("appendTo",te.appendTo?te.appendTo:null!==(re=te.tabAtual)&&void 0!==re?re:"body"),ce.R7$(2),ce.Y8G("ngTemplateOutlet",ne),ce.R7$(),ce.Y8G("ngIf",te.idRowDetails&&te.alterarTemplate)("ngIfElse",ie)}}function BrListDetailsComponent_ng_container_2_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListDetailsComponent_ng_container_2_ng_container_1_Template,1,0,"ng-container",5),ce.bVm()),2&te){ce.XpG();const te=ce.sdS(8);ce.R7$(),ce.Y8G("ngTemplateOutlet",te)}}function BrListDetailsComponent_ng_container_3_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_3_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListDetailsComponent_ng_container_3_ng_container_1_Template,1,0,"ng-container",5),ce.bVm()),2&te){ce.XpG();const te=ce.sdS(6);ce.R7$(),ce.Y8G("ngTemplateOutlet",te)}}function BrListDetailsComponent_ng_container_4_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_4_ng_container_2_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_4_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"div",9,10),ce.DNE(3,BrListDetailsComponent_ng_container_4_ng_container_2_ng_container_3_Template,1,0,"ng-container",5),ce.nrm(4,"p-confirmDialog",11),ce.k0s(),ce.bVm()),2&te){const te=ce.sdS(2),ne=ce.XpG(2);ce.R7$(3),ce.Y8G("ngTemplateOutlet",ne.novoTemplate),ce.R7$(),ce.Mz_("key","",ne.brListName,"-sidebar-confirmdialog"),ce.Y8G("appendTo",te)}}function BrListDetailsComponent_ng_container_4_ng_template_3_ng_container_0_ng_container_2_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_4_ng_template_3_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"div",9),ce.DNE(2,BrListDetailsComponent_ng_container_4_ng_template_3_ng_container_0_ng_container_2_Template,1,0,"ng-container",5),ce.k0s(),ce.bVm()),2&te){const te=ce.XpG(3);ce.R7$(2),ce.Y8G("ngTemplateOutlet",te.visualizarTemplate)}}function BrListDetailsComponent_ng_container_4_ng_template_3_Template(te,ne){if(1&te&&ce.DNE(0,BrListDetailsComponent_ng_container_4_ng_template_3_ng_container_0_Template,3,1,"ng-container",6),2&te){ce.XpG();const te=ce.sdS(6),ne=ce.XpG();ce.Y8G("ngIf",(null==ne.form?null:ne.form.disabled)&&ne.visualizarTemplate)("ngIfElse",te)}}function BrListDetailsComponent_ng_container_4_ng_template_5_ng_container_0_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function BrListDetailsComponent_ng_container_4_ng_template_5_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"div",9,10),ce.DNE(3,BrListDetailsComponent_ng_container_4_ng_template_5_ng_container_0_ng_container_3_Template,1,0,"ng-container",5),ce.nrm(4,"p-confirmDialog",11),ce.k0s(),ce.bVm()),2&te){const te=ce.sdS(2),ne=ce.XpG(3);ce.R7$(3),ce.Y8G("ngTemplateOutlet",ne.alterarTemplate),ce.R7$(),ce.Mz_("key","",ne.brListName,"-sidebar-confirmdialog"),ce.Y8G("appendTo",te)}}function BrListDetailsComponent_ng_container_4_ng_template_5_Template(te,ne){if(1&te&&ce.DNE(0,BrListDetailsComponent_ng_container_4_ng_template_5_ng_container_0_Template,5,3,"ng-container",6),2&te){const te=ce.XpG(2),ne=ce.sdS(8);ce.Y8G("ngIf",te.idRowDetails&&te.alterarTemplate)("ngIfElse",ne)}}function BrListDetailsComponent_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListDetailsComponent_ng_container_4_ng_container_1_Template,1,0,"ng-container",5)(2,BrListDetailsComponent_ng_container_4_ng_container_2_Template,5,3,"ng-container",6)(3,BrListDetailsComponent_ng_container_4_ng_template_3_Template,1,2,"ng-template",null,7,ce.C5r)(5,BrListDetailsComponent_ng_container_4_ng_template_5_Template,1,2,"ng-template",null,8,ce.C5r),ce.bVm()),2&te){const te=ce.sdS(4),ne=ce.XpG(),ie=ce.sdS(6);ce.R7$(),ce.Y8G("ngTemplateOutlet",ie),ce.R7$(),ce.Y8G("ngIf",!ne.idRowDetails&&ne.novoTemplate)("ngIfElse",te)}}function BrListDetailsComponent_ng_template_5_i_4_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"i",20),ce.bIt("click",(function BrListDetailsComponent_ng_template_5_i_4_Template_i_click_0_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.toggleFullscreen())})),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.HbH("button-icon "+(te.isDetailsFullscreen?"pi pi-window-minimize":"pi pi-window-maximize"))}}function BrListDetailsComponent_ng_template_5_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",14)(1,"span",15),ce.EFF(2),ce.k0s(),ce.j41(3,"div",16),ce.DNE(4,BrListDetailsComponent_ng_template_5_i_4_Template,1,2,"i",17),ce.j41(5,"p-button",18),ce.bIt("onClick",(function BrListDetailsComponent_ng_template_5_Template_p_button_onClick_5_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.onSalvar())})),ce.k0s(),ce.j41(6,"p-button",19),ce.bIt("onClick",(function BrListDetailsComponent_ng_template_5_Template_p_button_onClick_6_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.onFechar())})),ce.k0s()()()}if(2&te){const te=ce.XpG();ce.R7$(2),ce.JRh(te.header),ce.R7$(2),ce.Y8G("ngIf",!te.showOnModal&&!te.standalone),ce.R7$(),ce.Y8G("label",te.labelBotaoSalvar)("icon",te.isDetailsLoading?"pi pi-spin pi-spinner":"pi pi-check")("disabled",te.isDetailsLoading||(null==te.form?null:te.form.disabled)||!te.brListService.state.isSalvarDetailsHabilitado),ce.R7$(),ce.Y8G("label",te.labelBotaoFechar)}}function BrListDetailsComponent_ng_template_7_div_0_ng_container_2_ng_container_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"p-panel",24)(2,"br-formulario",25),ce.bIt("fileUploadComponentList",(function BrListDetailsComponent_ng_template_7_div_0_ng_container_2_ng_container_1_Template_br_formulario_fileUploadComponentList_2_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onFileUploadComponentList(ne))})),ce.k0s()(),ce.bVm()}if(2&te){const te=ce.XpG().$implicit,ne=ce.XpG(3);ce.R7$(),ce.Y8G("header",te.header)("collapsed",te.collapsed)("toggleable",!0),ce.R7$(),ce.Y8G("brListService",ne.brListService)("brPanel",te)("brListElementRef",ne.brListPaiElementRef)}}function BrListDetailsComponent_ng_template_7_div_0_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListDetailsComponent_ng_template_7_div_0_ng_container_2_ng_container_1_Template,3,6,"ng-container",0),ce.bVm()),2&te){const te=ne.$implicit;ce.R7$(),ce.Y8G("ngIf",!0!==te.showAsTabView)}}function BrListDetailsComponent_ng_template_7_div_0_p_tabView_3_ng_container_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"p-tabPanel",27)(2,"br-formulario",25),ce.bIt("fileUploadComponentList",(function BrListDetailsComponent_ng_template_7_div_0_p_tabView_3_ng_container_1_Template_br_formulario_fileUploadComponentList_2_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onFileUploadComponentList(ne))})),ce.k0s()(),ce.bVm()}if(2&te){const te=ne.$implicit,ie=ce.XpG(4);ce.R7$(),ce.Y8G("header",te.header),ce.R7$(),ce.Y8G("brListService",ie.brListService)("brPanel",te)("brListElementRef",ie.brListPaiElementRef)}}function BrListDetailsComponent_ng_template_7_div_0_p_tabView_3_Template(te,ne){if(1&te&&(ce.j41(0,"p-tabView",26),ce.DNE(1,BrListDetailsComponent_ng_template_7_div_0_p_tabView_3_ng_container_1_Template,3,4,"ng-container",22),ce.k0s()),2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngForOf",te.brFormularioAsTabView)}}function BrListDetailsComponent_ng_template_7_div_0_Template(te,ne){if(1&te&&(ce.j41(0,"div",9,10),ce.DNE(2,BrListDetailsComponent_ng_template_7_div_0_ng_container_2_Template,2,1,"ng-container",22)(3,BrListDetailsComponent_ng_template_7_div_0_p_tabView_3_Template,2,1,"p-tabView",23),ce.nrm(4,"p-confirmDialog",11),ce.k0s()),2&te){const te=ce.sdS(1),ne=ce.XpG(2);ce.R7$(2),ce.Y8G("ngForOf",ne.brFormulario),ce.R7$(),ce.Y8G("ngIf",ne.showTabPanel),ce.R7$(),ce.Mz_("key","",ne.brListName,"-sidebar-confirmdialog"),ce.Y8G("appendTo",te)}}function BrListDetailsComponent_ng_template_7_Template(te,ne){if(1&te&&ce.DNE(0,BrListDetailsComponent_ng_template_7_div_0_Template,5,4,"div",21),2&te){const te=ce.XpG();ce.Y8G("ngIf",te.form)}}let Ye=(()=>{class BrListDetailsComponent{constructor(){this.validadorFormularioService=(0,ce.WQX)(Ve.E),this.confirmationService=(0,ce.WQX)(ue.td),this.layoutService=(0,ce.WQX)(Fe.Y),this.brMessageService=(0,ce.WQX)(Pe.h),this.formBuilder=(0,ce.WQX)(de.ok),this.tabService=(0,ce.WQX)(je.r),this.registroSalvo$=new be.B,this.tabAtual=null,this.apenasFormulario=!1,this.apenasHeader=!1,this.standalone=!1,this.modal=!1,this.customHeader="",this.modalClosed=new ce.bkB}get layoutState(){return this.layoutService.state}get brListName(){return(0,ze.Z)(this.brListService.brListName)}get showTabPanel(){return this.brListService.brFormulario.some((te=>!0===te.showAsTabView))}get brFormulario(){return this.brListService.brFormulario}get brFormularioAsTabView(){return this.brListService.brFormulario.filter((te=>!0===te.showAsTabView))}get idRowDetails(){return this.brListService.idRowDetails}get isDetailsLoading(){return this.brListService.state.isDetailsLoading}get labelBotaoSalvar(){return this.brListService.labelBotaoSalvarDetails}get labelBotaoFechar(){return this.brListService.labelBotaoFecharDetails}get showOnModal(){return this.brListService.state.isIntegrado||this.modal}get brListElementRef(){return this.brListService.brListElementRef}get brListPaiElementRef(){return this.brListService.brListPaiElementRef}get isDetailsOpen(){return this.brListService.state.isDetailsOpen}get isMenuAnchored(){return this.layoutService.state.anchored}get isDetailsHovered(){return this.brListService.state.isDetailsHovered}get isDetailsFullscreen(){return this.brListService.state.isDetailsFullscreen}set isDetailsFullscreen(te){this.brListService.state.isDetailsFullscreen=te}get defaultDetailsValue(){return this.brListService.defaultDetailsValue}set defaultDetailsValue(te){this.brListService.defaultDetailsValue=te}set isDetailsHovered(te){this.brListService.state.isDetailsHovered=te}get form(){return this.brListService.formDetails}set form(te){this.brListService.formDetails=te}get formGroup(){const te=this.brFormulario.flatMap((te=>te.controls)),ne={};return te.forEach((te=>{ne[te.formControlName]=te.control,te.disabledOnDetails&&this.brListService.controlsDisabledOnDetails.push(te.formControlName),te.typeInput===He.St.CheckBox&&(this.defaultDetailsValue?this.defaultDetailsValue={[te.formControlName]:"F",...this.defaultDetailsValue}:this.defaultDetailsValue={[te.formControlName]:"F"})})),ne}get everyBrFormControl(){return this.brListService.everyBrFormControl}get header(){return this.customHeader?this.customHeader:this.idRowDetails?(0,Ge.d7)(this.form)?`Visualizando ID: ${this.idRowDetails}`:`Alterando ID: ${this.idRowDetails}`:this.brListName.split(" ")[0].endsWith("ão")?`Novo(a) ${this.brListName}`:this.brListName.split(" ")[0].endsWith("o")?`Novo ${this.brListName}`:this.brListName.split(" ")[0].endsWith("a")?`Nova ${this.brListName}`:`Criando ${this.brListName}`}ngOnInit(){this.form=this.formBuilder.group(this.formGroup),this.tabAtual=this.tabService.getTabOpenElement()}onSalvar(){if(this.brListService.onSalvar)this.brListService.onSalvar();else{this.brListService.state.isDetailsLoading=!0;const te=this.validadorFormularioService.validaFormulario(this.form,this.brFormulario);if((0,Ge.QE)(this.form),!te.valido)return this.confirmationService.confirm({message:te.mensagemErro,header:"Aviso",icon:ue.EE.EXCLAMATION_TRIANGLE,dismissableMask:!0,rejectVisible:!1,acceptVisible:!1,key:`${this.brListName}-sidebar-confirmdialog`,accept:()=>this.close()}),void(this.brListService.state.isDetailsLoading=!1);if(this.brListService.idRowDetails){if(!1===this.brListService.state.podeAlterar)return this.brMessageService.info("Você não possui a permissão para essa ação.");this.uploadFiles().pipe((0,Ce.n)((()=>this.brListService.updateRecord(this.brListService.idRowDetails,this.form.getRawValue()))),(0,ye.M)((()=>this.registroSalvo$.next())),(0,we.W)((te=>(console.error(te),this.brMessageService.error(),ke.w))),(0,Se.j)((()=>{this.brListService.state.isDetailsLoading=!1}))).subscribe((()=>((0,Ge.QW)(this.form),this.brListService.state.isDetailsLoading=!1,this.brListService.state.isDetailsOpen=!1,this.showOnModal?this.modalClosed.emit({novoRegistro:!0}):this.brListService.refreshData().subscribe(),this.brListService.state.isIntegrado&&this.brListService.refreshData().subscribe(),this.brListService.aposSalvar?.(),this.brListName.split(" ")[0].endsWith("ão")?this.brMessageService.success(`${this.brListName} "${this.brListService.idRowDetails}" foi atualizado(a) com sucesso.`):this.brListName.split(" ")[0].endsWith("o")?this.brMessageService.success(`${this.brListName} "${this.brListService.idRowDetails}" foi atualizado com sucesso.`):this.brListName.split(" ")[0].endsWith("a")?this.brMessageService.success(`${this.brListName} "${this.brListService.idRowDetails}" foi atualizada com sucesso.`):this.brMessageService.success(`${this.brListName} "${this.brListService.idRowDetails}" foi atualizado com sucesso.`))))}else{if(!1===this.brListService.state.podeInserir)return this.brMessageService.info("Você não possui a permissão para essa ação.");this.uploadFiles().pipe((0,Ce.n)((()=>this.brListService.createRecord(this.form.getRawValue()))),(0,Ce.n)((te=>{const ne=this.everyBrFormControl.flatMap((ne=>ne.typeInput===He.St.BrList?ne.brListIntegradoService.dataList.map((ie=>ne.brListIntegradoService.updateRecord(ie[ne.brListIntegradoService.recordPkName],{...ie,[ne.formControlName]:te}))):[])).filter((te=>void 0!==te));return ne.length?(0,xe.p)(ne):(0,Ee.of)(te)})),(0,ye.M)((()=>this.registroSalvo$.next())),(0,we.W)((te=>(console.error(te),this.brMessageService.error(),ke.w))),(0,Se.j)((()=>{this.brListService.state.isDetailsLoading=!1}))).subscribe((te=>((0,Ge.QW)(this.form),this.brListService.state.isDetailsOpen=!1,this.brListService.brListPaiService?.idRowDetails||(this.brListService.fixedFilters={...this.brListService.fixedFilters,[this.brListService.recordPkName]:this.brListService.fixedFilters?"0"===this.brListService.fixedFilters[this.brListService.recordPkName][0]?[String(te)]:[...this.brListService.fixedFilters[this.brListService.recordPkName],String(te)]:[String(te)]}),this.brListService.state.isIntegrado&&this.brListService.refreshData().subscribe(),this.showOnModal?this.modalClosed.emit({novoRegistro:!0}):this.brListService.refreshData().subscribe(),this.brListService.aposSalvar?.(),this.brListName.split(" ")[0].endsWith("ão")?this.brMessageService.success(`Um(a) novo(a) ${this.brListName} foi criado(a) com sucesso.`):this.brListName.split(" ")[0].endsWith("o")?this.brMessageService.success(`Um novo ${this.brListName} foi criado com sucesso.`):this.brListName.split(" ")[0].endsWith("a")?this.brMessageService.success(`Uma nova ${this.brListName} foi criada com sucesso.`):this.brMessageService.success(`Um(a) novo(a) ${this.brListName} foi criado(a) com sucesso.`))))}}}onFechar(){this.brListService.onFechar?this.brListService.onFechar():this.form.dirty?this.confirmationService.confirm({message:"As alterações serão perdidas.",header:"Confirmação",icon:ue.EE.EXCLAMATION_TRIANGLE,dismissableMask:!0,rejectLabel:"Cancelar",acceptLabel:"Fechar",key:`${this.brListName}-sidebar-confirmdialog`,acceptButtonStyleClass:"p-button-danger",rejectButtonStyleClass:"p-button-danger p-button-outlined",accept:()=>this.close()}):this.close()}toggleFullscreen(){this.isDetailsFullscreen=!this.isDetailsFullscreen}close(){this.brListService.state.isDetailsOpen=!1,this.brListService.state.isDetailsLoading=!0,this.isDetailsHovered=!1,(0,Ge.eo)(this.form),(0,Ge.E2)(this.form),this.showOnModal&&this.modalClosed.emit({novoRegistro:!1})}uploadFiles(){if(this.brFileUploadComponentList?.length){const te=this.brFileUploadComponentList.map((te=>te.uploadFiles()));return(0,Me.z)(te).pipe((0,Ne.s)(1),(0,we.W)((te=>(console.error(te),this.brMessageService.error(),ke.w))),(0,Re.T)((()=>{})))}return(0,Ee.of)(void 0)}onFileUploadComponentList(te){this.brFileUploadComponentList=te}static#e=this.ɵfac=function BrListDetailsComponent_Factory(te){return new(te||BrListDetailsComponent)};static#t=this.ɵcmp=ce.VBU({type:BrListDetailsComponent,selectors:[["br-list-details"]],viewQuery:function BrListDetailsComponent_Query(te,ne){if(1&te&&ce.GBs(qe,5),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.detailsDialog=te.first)}},inputs:{apenasFormulario:"apenasFormulario",apenasHeader:"apenasHeader",standalone:"standalone",modal:"modal",appendTo:"appendTo",brListService:"brListService",novoTemplate:"novoTemplate",alterarTemplate:"alterarTemplate",visualizarTemplate:"visualizarTemplate",customHeader:"customHeader"},outputs:{modalClosed:"modalClosed"},standalone:!0,features:[ce.Jv_([ue.td]),ce.aNF],decls:9,vars:5,consts:[[4,"ngIf"],["brDetailsHeader",""],["brFormularioTemplate",""],["brResize","",1,"br-sidebar",3,"ngClass"],["sidebar",""],[4,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],["checkVisualizarTemplate",""],["checkAlterarTemplate",""],[1,"br-details-content"],["details",""],[3,"key","appendTo"],[3,"visible","draggable","modal","dismissableMask","closable","resizable","styleClass","appendTo","visibleChange"],["detailsDialog",""],[1,"br-details-header"],[1,"titulo","flex-grow-1","pr-5"],[1,"flex","flex-wrap-reverse","justify-content-end","align-items-center","gap-2"],[3,"class","click",4,"ngIf"],["id","botaoSalvar","styleClass","p-button-success p-button-rounded p-button-raised",3,"label","icon","disabled","onClick"],["id","botaoFechar","icon","pi pi-times","styleClass","p-button-danger p-button-rounded p-button-raised",3,"label","onClick"],[3,"click"],["class","br-details-content",4,"ngIf"],[4,"ngFor","ngForOf"],["styleClass","br-details-tab-view",4,"ngIf"],["toggler","header",3,"header","collapsed","toggleable"],[2,"width","100%",3,"brListService","brPanel","brListElementRef","fileUploadComponentList"],["styleClass","br-details-tab-view"],[3,"header"]],template:function BrListDetailsComponent_Template(te,ne){1&te&&ce.DNE(0,BrListDetailsComponent_ng_container_0_Template,9,8,"ng-container",0)(1,BrListDetailsComponent_ng_container_1_Template,5,14,"ng-container",0)(2,BrListDetailsComponent_ng_container_2_Template,2,1,"ng-container",0)(3,BrListDetailsComponent_ng_container_3_Template,2,1,"ng-container",0)(4,BrListDetailsComponent_ng_container_4_Template,7,3,"ng-container",0)(5,BrListDetailsComponent_ng_template_5_Template,7,6,"ng-template",null,1,ce.C5r)(7,BrListDetailsComponent_ng_template_7_Template,1,1,"ng-template",null,2,ce.C5r),2&te&&(ce.Y8G("ngIf",!(ne.showOnModal||ne.apenasFormulario||ne.apenasHeader||ne.standalone)),ce.R7$(),ce.Y8G("ngIf",ne.showOnModal&&!ne.apenasFormulario&&!ne.apenasHeader&&!ne.standalone),ce.R7$(),ce.Y8G("ngIf",!ne.showOnModal&&ne.apenasFormulario&&!ne.apenasHeader&&!ne.standalone),ce.R7$(),ce.Y8G("ngIf",!ne.showOnModal&&!ne.apenasFormulario&&ne.apenasHeader&&!ne.standalone),ce.R7$(),ce.Y8G("ngIf",!ne.showOnModal&&!ne.apenasFormulario&&!ne.apenasHeader&&ne.standalone))},dependencies:[le.MD,le.YU,le.Sq,le.bT,le.T3,ge.P,ge.l,me.F,me.T,$e.$n,fe.b,fe.Z,_e.fd,_e.JQ,_e.Kp,Le.A,Oe],styles:["[_nghost-%COMP%]     .br-sidebar{display:flex;flex-direction:column;position:fixed;bottom:0;left:49px;right:0;width:80vw;height:50vh;max-height:80%;min-height:60px;z-index:5;margin-left:auto;margin-right:auto;transition:width .3s ease-in-out,height .3s ease-in-out,max-height .2s ease-in-out,left .3s ease-in-out}[_nghost-%COMP%]     .br-sidebar.anchored{left:25rem;width:calc(100vw - 26rem)!important}[_nghost-%COMP%]     .br-sidebar.fullscreen{height:calc(100vh - 42px)!important;width:calc(100vw - 55px)!important;max-height:100vh}[_nghost-%COMP%]     .br-sidebar.fullscreen.anchored{width:calc(100vw - 26rem)!important}[_nghost-%COMP%]     .br-sidebar .p-dialog-mask{border-radius:1rem 1rem 0 0}  .details-dialog{background-color:transparent;box-shadow:none;margin-left:3.5rem;transition:margin-left .2s ease-in-out}  .details-dialog.menu-anchored{margin-left:25rem}  .details-dialog>.p-dialog-header{display:none}  .details-dialog>.p-dialog-content{background-color:transparent!important;padding:0!important}  .details-dialog>.p-dialog-content .br-details-header{position:sticky;top:0;z-index:2;border-radius:0!important}  .details-dialog>.br-details-content{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.br-details-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem;background-color:var(--primary-color);border-radius:1rem 1rem 0 0}.br-details-header[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]{color:var(--primary-color-text);font-size:1.5rem;font-weight:500;padding-left:1rem}.br-details-header[_ngcontent-%COMP%]   .button-icon[_ngcontent-%COMP%]{padding:10px;color:var(--primary-color-text);opacity:.75;border-radius:50%;cursor:pointer;height:max-content;transition:background-color .2s ease-in-out,opacity .2s ease-in-out}.br-details-header[_ngcontent-%COMP%]   .button-icon[_ngcontent-%COMP%]:hover{background-color:#9696964d;opacity:1}[_nghost-%COMP%]     .br-details-content{padding:0 1rem;border:1px solid var(--primary-color);width:100%;height:100%;background-color:var(--surface-0);overflow-y:auto;overflow-x:hidden}@media (max-width: 400px){[_nghost-%COMP%]     .br-details-header .p-button-label{display:none}[_nghost-%COMP%]     .br-details-header .p-button-icon{margin-right:0}}"],data:{animation:[(0,re.hZ)("sidebar-animation",[(0,re.wk)("hide",(0,re.iF)({transform:"translateY(100%)"})),(0,re.wk)("show",(0,re.iF)({transform:"translateY(0)"})),(0,re.kY)("hide => show",[(0,re.i0)("200ms ease-in")]),(0,re.kY)("show => hide",[(0,re.i0)("200ms ease-out")])])]}})}return BrListDetailsComponent})()},564:(te,ne,ie)=>{"use strict";ie.d(ne,{K:()=>Ip});var re=ie(1204),le=ie(4460),ce=ie(3107),de=ie(3828),ue=ie(8471);function Chip_div_0_img_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"img",6),ce.bIt("error",(function Chip_div_0_img_2_Template_img_error_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.imageError(ne))})),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.Y8G("src",te.image,ce.B4B)("alt",te.alt)}}function Chip_div_0_ng_template_3_span_0_Template(te,ne){if(1&te&&ce.nrm(0,"span",8),2&te){const te=ce.XpG(3);ce.HbH(te.icon),ce.Y8G("ngClass","p-chip-icon"),ce.BMQ("data-pc-section","icon")}}function Chip_div_0_ng_template_3_Template(te,ne){if(1&te&&ce.DNE(0,Chip_div_0_ng_template_3_span_0_Template,1,4,"span",7),2&te){const te=ce.XpG(2);ce.Y8G("ngIf",te.icon)}}function Chip_div_0_div_5_Template(te,ne){if(1&te&&(ce.j41(0,"div",9),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(2);ce.BMQ("data-pc-section","label"),ce.R7$(),ce.JRh(te.label)}}function Chip_div_0_ng_container_6_ng_container_1_span_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"span",13),ce.bIt("click",(function Chip_div_0_ng_container_6_ng_container_1_span_1_Template_span_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.close(ne))}))("keydown",(function Chip_div_0_ng_container_6_ng_container_1_span_1_Template_span_keydown_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onKeydown(ne))})),ce.k0s()}if(2&te){const te=ce.XpG(4);ce.HbH(te.removeIcon),ce.Y8G("ngClass","pi-chip-remove-icon"),ce.BMQ("data-pc-section","removeicon")("aria-label",te.removeAriaLabel)}}function Chip_div_0_ng_container_6_ng_container_1_TimesCircleIcon_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"TimesCircleIcon",14),ce.bIt("click",(function Chip_div_0_ng_container_6_ng_container_1_TimesCircleIcon_2_Template_TimesCircleIcon_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.close(ne))}))("keydown",(function Chip_div_0_ng_container_6_ng_container_1_TimesCircleIcon_2_Template_TimesCircleIcon_keydown_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onKeydown(ne))})),ce.k0s()}if(2&te){const te=ce.XpG(4);ce.HbH("pi-chip-remove-icon"),ce.BMQ("data-pc-section","removeicon")("aria-label",te.removeAriaLabel)}}function Chip_div_0_ng_container_6_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Chip_div_0_ng_container_6_ng_container_1_span_1_Template,1,5,"span",11)(2,Chip_div_0_ng_container_6_ng_container_1_TimesCircleIcon_2_Template,1,4,"TimesCircleIcon",12),ce.bVm()),2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngIf",te.removeIcon),ce.R7$(),ce.Y8G("ngIf",!te.removeIcon)}}function Chip_div_0_ng_container_6_span_2_1_ng_template_0_Template(te,ne){}function Chip_div_0_ng_container_6_span_2_1_Template(te,ne){1&te&&ce.DNE(0,Chip_div_0_ng_container_6_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Chip_div_0_ng_container_6_span_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"span",15),ce.bIt("click",(function Chip_div_0_ng_container_6_span_2_Template_span_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.close(ne))}))("keydown",(function Chip_div_0_ng_container_6_span_2_Template_span_keydown_0_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onKeydown(ne))})),ce.DNE(1,Chip_div_0_ng_container_6_span_2_1_Template,1,0,null,16),ce.k0s()}if(2&te){const te=ce.XpG(3);ce.BMQ("data-pc-section","removeicon")("aria-label",te.removeAriaLabel),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.removeIconTemplate)}}function Chip_div_0_ng_container_6_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Chip_div_0_ng_container_6_ng_container_1_Template,3,2,"ng-container",5)(2,Chip_div_0_ng_container_6_span_2_Template,2,3,"span",10),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("ngIf",!te.removeIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.removeIconTemplate)}}function Chip_div_0_Template(te,ne){if(1&te&&(ce.j41(0,"div",1),ce.SdG(1),ce.DNE(2,Chip_div_0_img_2_Template,1,2,"img",2)(3,Chip_div_0_ng_template_3_Template,1,1,"ng-template",null,3,ce.C5r)(5,Chip_div_0_div_5_Template,2,2,"div",4)(6,Chip_div_0_ng_container_6_Template,3,2,"ng-container",5),ce.k0s()),2&te){const te=ce.sdS(4),ne=ce.XpG();ce.HbH(ne.styleClass),ce.Y8G("ngClass",ne.containerClass())("ngStyle",ne.style),ce.BMQ("data-pc-name","chip")("aria-label",ne.label)("data-pc-section","root"),ce.R7$(2),ce.Y8G("ngIf",ne.image)("ngIfElse",te),ce.R7$(3),ce.Y8G("ngIf",ne.label),ce.R7$(),ce.Y8G("ngIf",ne.removable)}}const me=["*"];let ge=(()=>{class Chip{label;icon;image;alt;style;styleClass;removable=!1;removeIcon;onRemove=new ce.bkB;onImageError=new ce.bkB;config=(0,ce.WQX)(de.r1);visible=!0;removeIconTemplate;get removeAriaLabel(){return this.config.getTranslation(de.Yj.ARIA).removeLabel}templates;ngAfterContentInit(){this.templates.forEach((te=>{te.getType(),this.removeIconTemplate=te.template}))}containerClass(){return{"p-chip p-component":!0,"p-chip-image":null!=this.image}}close(te){this.visible=!1,this.onRemove.emit(te)}onKeydown(te){"Enter"!==te.key&&"Backspace"!==te.key||this.close(te)}imageError(te){this.onImageError.emit(te)}static ɵfac=function Chip_Factory(te){return new(te||Chip)};static ɵcmp=ce.VBU({type:Chip,selectors:[["p-chip"]],contentQueries:function Chip_ContentQueries(te,ne,ie){if(1&te&&ce.wni(ie,de.Ei,4),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{label:"label",icon:"icon",image:"image",alt:"alt",style:"style",styleClass:"styleClass",removable:[ce.Mj6.HasDecoratorInputTransform,"removable","removable",ce.L39],removeIcon:"removeIcon"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[ce.GFd],ngContentSelectors:me,decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"],[3,"src","alt","error",4,"ngIf","ngIfElse"],["iconTemplate",""],["class","p-chip-text",4,"ngIf"],[4,"ngIf"],[3,"src","alt","error"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-chip-text"],["tabindex","0","class","pi-chip-remove-icon","role","button",3,"click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","ngClass","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"ngClass","click","keydown"],["tabindex","0","role","button",3,"click","keydown"],["tabindex","0","role","button",1,"pi-chip-remove-icon",3,"click","keydown"],[4,"ngTemplateOutlet"]],template:function Chip_Template(te,ne){1&te&&(ce.NAR(),ce.DNE(0,Chip_div_0_Template,7,11,"div",0)),2&te&&ce.Y8G("ngIf",ne.visible)},dependencies:()=>[le.YU,le.bT,le.T3,le.B3,ue.I],styles:["@layer primeng{.p-chip{display:inline-flex;align-items:center}.p-chip-text,.p-chip-icon.pi,.pi-chip-remove-icon.pi{line-height:1.5}.pi-chip-remove-icon{cursor:pointer}.p-chip img{border-radius:50%}}\n"],encapsulation:2,changeDetection:0})}return Chip})(),fe=(()=>{class ChipModule{static ɵfac=function ChipModule_Factory(te){return new(te||ChipModule)};static ɵmod=ce.$C({type:ChipModule});static ɵinj=ce.G2t({imports:[le.MD,ue.I,de.Gg,de.Gg]})}return ChipModule})();var _e=ie(9568),be=ie(3511),Ce=ie(7178),ye=ie(6564),we=ie(2040),ke=ie(2867),Se=ie(4447),xe=ie(4320),Ee=ie(1804),Me=ie(9746),Ne=ie(3972),Re=ie(2848),Le=ie(4667),Oe=ie(915),Pe=ie(2764),Fe=ie(7280),je=ie(344),Ve=ie(4924),Ge=ie(6082),ze=ie(936),He=ie(403),$e=ie(2864);function BrCustomFilterModalComponent_ng_container_0_ng_container_5_ng_container_1_p_checkbox_1_Template(te,ne){if(1&te&&ce.nrm(0,"p-checkbox",8),2&te){const te=ce.XpG().$implicit;ce.Y8G("label",te.label)("formControlName",te.formControlName)("binary",!0)}}function BrCustomFilterModalComponent_ng_container_0_ng_container_5_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrCustomFilterModalComponent_ng_container_0_ng_container_5_ng_container_1_p_checkbox_1_Template,1,3,"p-checkbox",7),ce.bVm()),2&te){const te=ne.$implicit,ie=ce.XpG(3);ce.R7$(),ce.Y8G("ngIf",!(!1===te.showOnFilter)&&te.typeInput!==ie.typeInputEnum.Upload&&te.typeInput!==ie.typeInputEnum.BrList)}}function BrCustomFilterModalComponent_ng_container_0_ng_container_5_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrCustomFilterModalComponent_ng_container_0_ng_container_5_ng_container_1_Template,2,1,"ng-container",5),ce.bVm()),2&te){const te=ne.$implicit;ce.R7$(),ce.Y8G("ngForOf",te.controls)}}function BrCustomFilterModalComponent_ng_container_0_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"div",1)(2,"p-button",2),ce.bIt("onClick",(function BrCustomFilterModalComponent_ng_container_0_Template_p_button_onClick_2_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.setAllConfigInputs("V"))})),ce.k0s(),ce.j41(3,"p-button",3),ce.bIt("onClick",(function BrCustomFilterModalComponent_ng_container_0_Template_p_button_onClick_3_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.setAllConfigInputs("F"))})),ce.k0s()(),ce.j41(4,"form",4),ce.DNE(5,BrCustomFilterModalComponent_ng_container_0_ng_container_5_Template,2,1,"ng-container",5),ce.nrm(6,"p-checkbox",6),ce.k0s(),ce.bVm()}if(2&te){const te=ce.XpG();ce.R7$(4),ce.Y8G("formGroup",te.customFilterConfigForm),ce.R7$(),ce.Y8G("ngForOf",te.brFormulario),ce.R7$(),ce.Y8G("binary",!0)}}let qe=(()=>{class BrCustomFilterModalComponent{constructor(){this.dialogRef=(0,ce.WQX)(be.Pw),this.dynamicDialogData=(0,ce.WQX)(be.sb).data,this.formBuilder=(0,ce.WQX)(ze.ok),this.typeInputEnum=$e.St,this.savingCustomFilters=!1,this.dynamicDialogData.onConfirmarEmitter.pipe((0,Ge.pQ)()).subscribe((()=>this.saveFilterConfig()))}get brListService(){return this.dynamicDialogData.brListService}get customFilterConfigForm(){return this.brListService.customFilterConfigForm}set customFilterConfigForm(te){this.brListService.customFilterConfigForm=te}get form(){return this.brListService.formFilters}get customFilterConfig(){return this.brListService.customFilterConfig}set customFilterConfig(te){this.brListService.customFilterConfig=te}get brFormulario(){return this.brListService.brFormulario}ngOnInit(){this.form&&(this.customFilterConfigForm=this.formBuilder.group({...Object.keys(this.form.controls).reduce(((te,ne)=>({...te,[ne]:["V"]})),{}),dataCriacaoRegistro:["V"]}),this.customFilterConfigForm.patchValue(this.customFilterConfig))}setAllConfigInputs(te){this.customFilterConfigForm&&Object.values(this.customFilterConfigForm.controls).forEach((ne=>ne.setValue(te)))}saveFilterConfig(){this.brListService.customFilterConfig=this.customFilterConfigForm?.getRawValue(),this.brListService.saveBrListConfig().subscribe((()=>this.dialogRef.close()))}static#e=this.ɵfac=function BrCustomFilterModalComponent_Factory(te){return new(te||BrCustomFilterModalComponent)};static#t=this.ɵcmp=ce.VBU({type:BrCustomFilterModalComponent,selectors:[["br-br-custom-filter-modal"]],standalone:!0,features:[ce.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"flex","gap-3","mb-4"],["size","small","label","Habilitar todos","icon","pi pi-check-square",3,"onClick"],["size","small","label","Desabilitar todos","icon","pi pi-times",3,"onClick"],[1,"filter-config-grid",3,"formGroup"],[4,"ngFor","ngForOf"],["label","Data de criação","formControlName","dataCriacaoRegistro","trueValue","V","falseValue","F",3,"binary"],["trueValue","V","falseValue","F",3,"label","formControlName","binary",4,"ngIf"],["trueValue","V","falseValue","F",3,"label","formControlName","binary"]],template:function BrCustomFilterModalComponent_Template(te,ne){1&te&&ce.DNE(0,BrCustomFilterModalComponent_ng_container_0_Template,7,3,"ng-container",0),2&te&&ce.Y8G("ngIf",ne.customFilterConfigForm)},dependencies:[Fe.tm,Fe.$n,He.q4,He.Sc,ze.X1,ze.qT,ze.BC,ze.cb,ze.j4,ze.JD,le.bT,le.pM],styles:[".filter-config-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(6,1fr);gap:1rem;row-gap:1rem;width:-webkit-fill-available}"]})}return BrCustomFilterModalComponent})();var Ye=ie(888),Xe=ie(2473),Ke=ie(8);function BrListFilterComponent_ng_template_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"header",5)(1,"span",6),ce.EFF(2),ce.k0s(),ce.j41(3,"div",7)(4,"p-button",8),ce.bIt("onClick",(function BrListFilterComponent_ng_template_2_Template_p_button_onClick_4_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.clearFilters())})),ce.k0s(),ce.j41(5,"p-button",9),ce.bIt("onClick",(function BrListFilterComponent_ng_template_2_Template_p_button_onClick_5_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.customizeFilters())})),ce.k0s(),ce.j41(6,"p-button",10),ce.bIt("onClick",(function BrListFilterComponent_ng_template_2_Template_p_button_onClick_6_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.onAplicar())})),ce.k0s(),ce.j41(7,"p-button",11),ce.bIt("onClick",(function BrListFilterComponent_ng_template_2_Template_p_button_onClick_7_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.onCancelar())})),ce.k0s()()()}if(2&te){const te=ce.XpG();ce.R7$(2),ce.SpI("Filtrando ",te.brListNamePlural,""),ce.R7$(2),ce.Y8G("rounded",!0)("raised",!0),ce.R7$(),ce.Y8G("rounded",!0)("raised",!0),ce.R7$(),ce.Y8G("icon",te.isFilterLoading?"pi pi-spin pi-spinner":"pi pi-check")("disabled",te.isFilterLoading||(null==te.form?null:te.form.disabled))}}let Qe=(()=>{class BrListFilterComponent{constructor(){this.validadorFormularioService=(0,ce.WQX)(Le.E),this.confirmationService=(0,ce.WQX)(de.td),this.layoutService=(0,ce.WQX)(Re.Y),this.brMessageService=(0,ce.WQX)(Ne.h),this.tabService=(0,ce.WQX)(Xe.r),this.brDialogService=(0,ce.WQX)(Ye.i),this.typeInputEnum=$e.St}get brListName(){return(0,Oe.Z)(this.brListService.brListName)}get brListNamePlural(){return(0,Oe.Z)(this.brListService.brListNamePlural)}get brFormulario(){return this.brListService.brFormulario}get tabAtiva(){return this.tabService.getTabOpenElement()}get appliedFilters(){return this.brListService.appliedFilters}set appliedFilters(te){this.brListService.appliedFilters=te}get isFilterLoading(){return this.brListService.state.isFilterLoading}get isFilterOpen(){return this.brListService.state.isFilterOpen}get isMenuAnchored(){return this.layoutService.state.anchored}get isIntegrado(){return this.brListService.state.isIntegrado}get brListElementRef(){return this.brListService.brListElementRef}get brListPaiElementRef(){return this.brListService.brListPaiElementRef}get checkboxFilterOptions(){return this.brListService.checkboxFilterOptions}get form(){return this.brListService.formFilters}onAplicar(){const te=this.validadorFormularioService.validaFormulario(this.form,this.brFormulario);te.valido||this.confirmationService.confirm({message:te.mensagemErro,header:"Aviso",icon:de.EE.EXCLAMATION_TRIANGLE,dismissableMask:!0,rejectVisible:!1,acceptVisible:!1,key:this.keyConfirmDialog}),this.brListService.columns.forEach((te=>te.searchValue=void 0)),this.brListService.state.isFilterLoading=!0;const ne=this.form.getRawValue(),ie=Object.keys(ne).filter((te=>null!==ne[te]&&void 0!==ne[te])).reduce(((te,ie)=>(te[ie]=ne[ie],te)),{});this.appliedFilters={...ie},this.brListService.refreshData().pipe((0,Ce.W)((te=>(console.error(te),this.brMessageService.error(),ye.w))),(0,Se.j)((()=>this.brListService.state.isFilterLoading=!1))).subscribe((()=>{this.brListService.saveBrListConfig().subscribe(),this.brListService.createChipsList(),this.close()}))}get customFilterConfigForm(){return this.brListService.customFilterConfigForm}set customFilterConfigForm(te){this.brListService.customFilterConfigForm=te}get customFilterConfig(){return this.brListService.customFilterConfig}onFiltersOpen(){this.form&&(this.brListService.disableControlsDisabledOnFilter(),this.form.patchValue({...this.brListService.defaultFiltersValue,...this.appliedFilters})),setTimeout((()=>this.brListService.state.isFilterLoading=!1),100)}onCancelar(){this.form.dirty?this.confirmationService.confirm({message:"As alterações serão perdidas.",header:"Aviso",icon:de.EE.EXCLAMATION_TRIANGLE,dismissableMask:!0,rejectLabel:"Cancelar",acceptLabel:"Fechar",key:`${this.brListName}-filter-confirmdialog`,acceptButtonStyleClass:"p-button-danger",rejectButtonStyleClass:"p-button-danger p-button-outlined",accept:()=>this.close()}):this.close()}close(){(0,Ke.E2)(this.form),this.brListService.state.isFilterOpen=!1,this.brListService.state.isFilterLoading=!0}clearFilters(){(0,Ke.E2)(this.form)}customizeFilters(){this.brDialogService.open(qe,{header:"Selecione os filtros que deseja exibir",data:{brListService:this.brListService},confirmarLabel:"Salvar",onConfirmar:()=>{}})}static#e=this.ɵfac=function BrListFilterComponent_Factory(te){return new(te||BrListFilterComponent)};static#t=this.ɵcmp=ce.VBU({type:BrListFilterComponent,selectors:[["br-list-filter"]],inputs:{brListService:"brListService",keyConfirmDialog:"keyConfirmDialog"},standalone:!0,features:[ce.aNF],decls:5,vars:10,consts:[["styleClass","filter-dialog",3,"visible","draggable","modal","dismissableMask","closable","appendTo","maskStyleClass","visibleChange","onShow"],["filterdialog",""],["pTemplate","header"],[3,"brListService"],["appendTo","body",3,"key","maskStyleClass"],[1,"br-filter-header"],[1,"titulo","flex-grow-1","pr-5"],[1,"flex","gap-2"],["label","Limpar","icon","pi pi-eraser",3,"rounded","raised","onClick"],["severity","info","label","Customizar","icon","pi pi-sliders-h",3,"rounded","raised","onClick"],["label","Aplicar","styleClass","p-button-success p-button-rounded p-button-raised",3,"icon","disabled","onClick"],["label","Fechar","icon","pi pi-times","styleClass","p-button-danger p-button-rounded p-button-raised",3,"onClick"]],template:function BrListFilterComponent_Template(te,ne){if(1&te&&(ce.j41(0,"p-dialog",0,1),ce.mxI("visibleChange",(function BrListFilterComponent_Template_p_dialog_visibleChange_0_listener(te){return ce.DH7(ne.isFilterOpen,te)||(ne.isFilterOpen=te),te})),ce.bIt("onShow",(function BrListFilterComponent_Template_p_dialog_onShow_0_listener(){return ne.onFiltersOpen()})),ce.DNE(2,BrListFilterComponent_ng_template_2_Template,8,7,"ng-template",2),ce.nrm(3,"br-filter",3),ce.k0s(),ce.nrm(4,"p-confirmDialog",4)),2&te){let te;ce.R50("visible",ne.isFilterOpen),ce.Y8G("draggable",!1)("modal",!0)("dismissableMask",!0)("closable",!1)("appendTo",null!==(te=ne.tabAtiva)&&void 0!==te?te:"body")("maskStyleClass",ne.isMenuAnchored?"dialog-on-menu-anchored":"dialog-on-menu-not-anchored"),ce.R7$(3),ce.Y8G("brListService",ne.brListService),ce.R7$(),ce.Mz_("key","",ne.brListName,"-filter-confirmdialog"),ce.Y8G("maskStyleClass",ne.isMenuAnchored?"dialog-on-menu-anchored":"dialog-on-menu-not-anchored")}},dependencies:[le.MD,je.P,je.l,de.Ei,Fe.tm,Fe.$n,Ve.i,_e.F,_e.T],styles:[".filter-dialog{display:flex;flex-direction:column;width:80%;max-height:80%;border-radius:1rem;background-color:transparent}  .filter-dialog .p-dialog-header{padding:0!important;background:transparent!important}  .filter-dialog .p-dialog-header .br-filter-header{display:flex;align-items:center;width:100%;padding:.75rem;background-color:var(--primary-color);border-radius:1rem 1rem 0 0}  .filter-dialog .p-dialog-header .br-filter-header .titulo{color:var(--primary-color-text);font-size:1.5rem;font-weight:500;padding-left:1rem}  .filter-dialog .p-dialog-content{background:var(--surface-ground);border-radius:0 0 1rem 1rem;padding:0}  .filter-dialog .p-dialog-content::-webkit-scrollbar-track{background-color:transparent}"]})}return BrListFilterComponent})();var Je=ie(7691),dt=ie(6314),pt=ie(336),Ct=ie(30),vt=ie(104),It=ie(1572),Dt=ie(3531),Mt=ie(360),Nt=ie(2541),Rt=ie(3238),Ot=ie(7760),Vt=ie(4613),Gt=ie(8841),zt=ie(7069),Ht=ie(7137),Ut=ie(9863),$t=ie(6612),Yt=ie(7538);const Wt=["cmHeader"],Kt=["autoCompleteColumnSearch"],Qt=["columnTh"],Jt=["containerInputColumn"],_c4=()=>({height:"6px",width:"100vw",position:"absolute",bottom:"0"});function BrListTableComponent_ng_template_1_p_progressBar_0_Template(te,ne){1&te&&ce.nrm(0,"p-progressBar",11),2&te&&ce.Aen(ce.lJ4(2,_c4))}function BrListTableComponent_ng_template_1_ng_container_2_i_6_Template(te,ne){if(1&te&&ce.nrm(0,"i"),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2);ce.HbH("fa-light fa-fw fa-arrow-up-arrow-down "+(te.fieldPath===(null==ne.columnAgrupamento?null:ne.columnAgrupamento.fieldPath)?"opacity-50":""))}}function BrListTableComponent_ng_template_1_ng_container_2_i_7_Template(te,ne){1&te&&ce.nrm(0,"i",17)}function BrListTableComponent_ng_template_1_ng_container_2_i_8_Template(te,ne){1&te&&ce.nrm(0,"i",18)}function BrListTableComponent_ng_template_1_ng_container_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"th",12,13),ce.bIt("click",(function BrListTableComponent_ng_template_1_ng_container_2_Template_th_click_1_listener(){const ne=ce.eBV(te).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSort(ne))}))("contextmenu",(function BrListTableComponent_ng_template_1_ng_container_2_Template_th_contextmenu_1_listener(ne){const ie=ce.eBV(te).$implicit,re=ce.XpG(2);return ce.Njj(re.onColumnContextMenu(ne,ie))})),ce.j41(3,"div")(4,"span"),ce.EFF(5),ce.k0s(),ce.DNE(6,BrListTableComponent_ng_template_1_ng_container_2_i_6_Template,1,2,"i",14)(7,BrListTableComponent_ng_template_1_ng_container_2_i_7_Template,1,0,"i",15)(8,BrListTableComponent_ng_template_1_ng_container_2_i_8_Template,1,0,"i",16),ce.k0s()(),ce.bVm()}if(2&te){const te=ne.$implicit,ie=ce.XpG(2);let re,le;ce.R7$(),ce.Aen("width: "+te.size),ce.Y8G("draggable",!0),ce.BMQ("data-fieldPath",te.fieldPath)("data-label",null!==(re=te.label)&&void 0!==re?re:ie.brListService.getColumnLabelFromBrControl(te.formControlName))("data-typeColumn",ie.getTypeColumnLabel(te)),ce.R7$(2),ce.HbH("flex align-items-center gap-2 "+te.styleClass),ce.R7$(2),ce.JRh(null!==(le=te.label)&&void 0!==le?le:ie.brListService.getColumnLabelFromBrControl(te.formControlName)),ce.R7$(),ce.Y8G("ngIf",!te.sort),ce.R7$(),ce.Y8G("ngIf","asc"===te.sort),ce.R7$(),ce.Y8G("ngIf","desc"===te.sort)}}function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_1_ng_template_1_Template(te,ne){}const _c5=()=>[];function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-autoComplete",32),ce.mxI("ngModelChange",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_1_Template_p_autoComplete_ngModelChange_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2).$implicit;return ce.DH7(ie.searchValue,ne)||(ie.searchValue=ne),ce.Njj(ne)})),ce.bIt("onClear",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_1_Template_p_autoComplete_onClear_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumn(ne))}))("completeMethod",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_1_Template_p_autoComplete_completeMethod_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2).$implicit,re=ce.XpG(2);return ce.Njj(re.fetchCheckboxFilterSuggestions(ne,ie))}))("ngModelChange",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_1_Template_p_autoComplete_ngModelChange_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumnInput(ne))})),ce.DNE(1,BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_1_ng_template_1_Template,0,0,"ng-template",33),ce.k0s()}if(2&te){const te=ce.XpG(2).$implicit;ce.R50("ngModel",te.searchValue),ce.Y8G("suggestions",te.searchSuggestions||ce.lJ4(3,_c5))("showClear",!0)}}function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputNumber_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-inputNumber",34),ce.mxI("ngModelChange",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputNumber_2_Template_p_inputNumber_ngModelChange_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2).$implicit;return ce.DH7(ie.searchValue,ne)||(ie.searchValue=ne),ce.Njj(ne)})),ce.bIt("onClear",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputNumber_2_Template_p_inputNumber_onClear_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumn(ne))}))("onInput",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputNumber_2_Template_p_inputNumber_onInput_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumnInput(ne))}))("keydown.enter",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputNumber_2_Template_p_inputNumber_keydown_enter_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumn(ne))})),ce.k0s()}if(2&te){const te=ce.XpG(2).$implicit;ce.R50("ngModel",te.searchValue),ce.Y8G("mode",te.brFormControl.isCurrency?"currency":"decimal")("showClear",!0)("min",0)("minFractionDigits",0)("maxFractionDigits",2)("showClear",!0)}}function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_calendar_3_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-calendar",35),ce.mxI("ngModelChange",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_calendar_3_Template_p_calendar_ngModelChange_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2).$implicit;return ce.DH7(ie.searchValue,ne)||(ie.searchValue=ne),ce.Njj(ne)})),ce.bIt("input",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_calendar_3_Template_p_calendar_input_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumnInput(ne))}))("onClear",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_calendar_3_Template_p_calendar_onClear_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumn(ne))}))("keydown.enter",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_calendar_3_Template_p_calendar_keydown_enter_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumn(ne))})),ce.k0s()}if(2&te){const te=ce.XpG(2).$implicit;ce.R50("ngModel",te.searchValue),ce.Y8G("showOnFocus",!1)("showClear",!0)}}function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_4_ng_template_2_Template(te,ne){}function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_4_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-autoComplete",36,37),ce.mxI("ngModelChange",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_4_Template_p_autoComplete_ngModelChange_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2).$implicit;return ce.DH7(ie.searchValue,ne)||(ie.searchValue=ne),ce.Njj(ne)})),ce.bIt("completeMethod",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_4_Template_p_autoComplete_completeMethod_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2).$implicit,re=ce.XpG(2);return ce.Njj(re.fetchColumnSearchSuggestions(ne,ie))}))("ngModelChange",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_4_Template_p_autoComplete_ngModelChange_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumnInput(ne))}))("onClear",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_4_Template_p_autoComplete_onClear_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumn(ne))})),ce.DNE(2,BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_4_ng_template_2_Template,0,0,"ng-template",33),ce.k0s()}if(2&te){const te=ce.XpG(2).$implicit;ce.Y8G("forceSelection",te.searchSuggestions&&te.searchSuggestions.length>1),ce.R50("ngModel",te.searchValue),ce.Y8G("dataKey",te.brFormControl.optionValue)("suggestions",te.searchSuggestions||ce.lJ4(7,_c5))("minLength",3)("optionLabel",te.brFormControl.optionLabel)("showClear",!0)}}function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputMask_5_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-inputMask",38),ce.mxI("ngModelChange",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputMask_5_Template_p_inputMask_ngModelChange_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2).$implicit;return ce.DH7(ie.searchValue,ne)||(ie.searchValue=ne),ce.Njj(ne)})),ce.bIt("onInput",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputMask_5_Template_p_inputMask_onInput_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumnInput(ne))}))("keydown.enter",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputMask_5_Template_p_inputMask_keydown_enter_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumn(ne))}))("onClear",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputMask_5_Template_p_inputMask_onClear_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumn(ne))})),ce.k0s()}if(2&te){const te=ce.XpG(2).$implicit;ce.R50("ngModel",te.searchValue),ce.Y8G("autoClear",!1)("mask",te.brFormControl.inputMask)("showClear",!0)}}function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_input_6_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"input",39),ce.mxI("ngModelChange",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_input_6_Template_input_ngModelChange_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2).$implicit;return ce.DH7(ie.searchValue,ne)||(ie.searchValue=ne),ce.Njj(ne)})),ce.bIt("keydown.enter",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_input_6_Template_input_keydown_enter_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumn(ne))}))("ngModelChange",(function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_input_6_Template_input_ngModelChange_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(2);return ce.Njj(ie.onSearchColumnInput(ne))})),ce.k0s()}if(2&te){const te=ce.XpG(2).$implicit;ce.R50("ngModel",te.searchValue)}}function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_input_7_Template(te,ne){1&te&&ce.nrm(0,"input",40),2&te&&ce.Y8G("disabled",!0)}function BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0,24),ce.DNE(1,BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_1_Template,2,4,"p-autoComplete",25)(2,BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputNumber_2_Template,1,7,"p-inputNumber",26)(3,BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_calendar_3_Template,1,3,"p-calendar",27)(4,BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_autoComplete_4_Template,3,8,"p-autoComplete",28)(5,BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_p_inputMask_5_Template,1,4,"p-inputMask",29)(6,BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_input_6_Template,1,1,"input",30)(7,BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_input_7_Template,1,1,"input",31),ce.bVm()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2);ce.Y8G("ngSwitch",te.brFormControl.typeInput),ce.R7$(),ce.Y8G("ngSwitchCase",ne.typeInputEnum.CheckBox),ce.R7$(),ce.Y8G("ngSwitchCase",ne.typeInputEnum.Number),ce.R7$(),ce.Y8G("ngSwitchCase",ne.typeInputEnum.Date),ce.R7$(),ce.Y8G("ngSwitchCase",ne.typeInputEnum.ForeignKey),ce.R7$(),ce.Y8G("ngSwitchCase",ne.typeInputEnum.Mask),ce.R7$(),ce.Y8G("ngSwitchCase",ne.typeInputEnum.Text)}}function BrListTableComponent_ng_template_1_ng_container_4_ng_container_5_Template(te,ne){1&te&&(ce.qex(0),ce.nrm(1,"input",40),ce.bVm()),2&te&&(ce.R7$(),ce.Y8G("disabled",!0))}function BrListTableComponent_ng_template_1_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"td",19)(2,"div",20,21),ce.DNE(4,BrListTableComponent_ng_template_1_ng_container_4_ng_container_4_Template,8,7,"ng-container",22)(5,BrListTableComponent_ng_template_1_ng_container_4_ng_container_5_Template,2,1,"ng-container",23),ce.k0s()(),ce.bVm()),2&te){const te=ne.$implicit;ce.R7$(),ce.BMQ("data-fieldPath","input;"+te.fieldPath),ce.R7$(),ce.Aen("width: "+te.size),ce.R7$(2),ce.Y8G("ngIf",te.brFormControl),ce.R7$(),ce.Y8G("ngIf",!te.brFormControl)}}function BrListTableComponent_ng_template_1_Template(te,ne){if(1&te&&(ce.DNE(0,BrListTableComponent_ng_template_1_p_progressBar_0_Template,1,3,"p-progressBar",8),ce.j41(1,"tr"),ce.DNE(2,BrListTableComponent_ng_template_1_ng_container_2_Template,9,12,"ng-container",9),ce.k0s(),ce.j41(3,"tr",10),ce.DNE(4,BrListTableComponent_ng_template_1_ng_container_4_Template,6,5,"ng-container",9),ce.k0s()),2&te){const te=ce.XpG();ce.Y8G("ngIf",te.isLoading),ce.R7$(2),ce.Y8G("ngForOf",te.visibleColumns),ce.R7$(2),ce.Y8G("ngForOf",te.visibleColumns)}}const _c6=te=>({expanded:te});function BrListTableComponent_ng_template_2_ng_container_0_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"tr",41)(2,"td",42)(3,"div",43)(4,"button",44),ce.bIt("click",(function BrListTableComponent_ng_template_2_ng_container_0_Template_button_click_4_listener(){ce.eBV(te);const ne=ce.XpG(),ie=ne.$implicit,re=ne.rowIndex,le=ce.XpG();return ce.Njj(le.toggleGroup(ie,re))})),ce.k0s(),ce.j41(5,"span",45),ce.EFF(6),ce.k0s(),ce.j41(7,"span",46),ce.EFF(8),ce.k0s()()()(),ce.bVm()}if(2&te){const te=ce.XpG(),ne=te.$implicit,ie=te.rowIndex;ce.R7$(),ce.Y8G("ngClass",ce.eq3(7,_c6,ne.expanded)),ce.BMQ("data-label",ne.label)("data-value",ne.value)("data-rowIndex",ie),ce.R7$(3),ce.Y8G("icon",ne.expanded?"pi pi-chevron-down":"pi pi-chevron-right"),ce.R7$(2),ce.JRh(ne.label.split(";;")[0]),ce.R7$(2),ce.JRh(ne.label.split(";;")[1])}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",58),ce.EFF(1),ce.nI1(2,"date"),ce.k0s()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2).$implicit,ie=ce.XpG();ce.R7$(),ce.SpI(" ",ce.i5U(2,1,ie.getColumnDate(ne,te.fieldPath),"dd/MM/yyyy")," ")}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_3_Template(te,ne){if(1&te&&(ce.j41(0,"span",59),ce.EFF(1),ce.nI1(2,"date"),ce.k0s()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2).$implicit,ie=ce.XpG();ce.R7$(),ce.SpI(" ",ce.i5U(2,1,ie.getColumnDateTime(ne,te.fieldPath),"dd/MM/yyyy HH:mm:ss")," ")}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_4_Template(te,ne){if(1&te&&(ce.j41(0,"span",60),ce.EFF(1),ce.nI1(2,"currencyFormat"),ce.k0s()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2).$implicit,ie=ce.XpG();ce.R7$(),ce.SpI(" ",ce.bMT(2,1,ie.getColumnData(ne,te.fieldPath))," ")}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_5_ng_container_1_Template(te,ne){1&te&&(ce.qex(0),ce.nrm(1,"p-tag",62),ce.bVm())}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_5_ng_container_2_Template(te,ne){1&te&&(ce.qex(0),ce.nrm(1,"p-tag",63),ce.bVm())}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_5_Template(te,ne){if(1&te&&(ce.j41(0,"span",61),ce.DNE(1,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_5_ng_container_1_Template,2,0,"ng-container",23)(2,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_5_ng_container_2_Template,2,0,"ng-container",23),ce.k0s()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2).$implicit,ie=ce.XpG();ce.R7$(),ce.Y8G("ngIf","V"===ie.getColumnData(ne,te.fieldPath)),ce.R7$(),ce.Y8G("ngIf","F"===ie.getColumnData(ne,te.fieldPath))}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_6_ng_container_1_Template(te,ne){1&te&&(ce.qex(0),ce.nrm(1,"p-tag",62),ce.bVm())}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_6_ng_container_2_Template(te,ne){1&te&&(ce.qex(0),ce.nrm(1,"p-tag",63),ce.bVm())}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_6_Template(te,ne){if(1&te&&(ce.j41(0,"span",64),ce.DNE(1,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_6_ng_container_1_Template,2,0,"ng-container",23)(2,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_6_ng_container_2_Template,2,0,"ng-container",23),ce.k0s()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2).$implicit,ie=ce.XpG();ce.R7$(),ce.Y8G("ngIf",ie.getColumnData(ne,te.fieldPath)),ce.R7$(),ce.Y8G("ngIf",!ie.getColumnData(ne,te.fieldPath))}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_7_p_tag_1_Template(te,ne){if(1&te&&ce.nrm(0,"p-tag",67),2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG(2).$implicit,ie=ce.XpG();ce.Y8G("value",ie.getColumnData(ne,te.fieldPath))}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_7_Template(te,ne){if(1&te&&(ce.j41(0,"span",65),ce.DNE(1,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_7_p_tag_1_Template,1,1,"p-tag",66),ce.k0s()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2).$implicit,ie=ce.XpG();ce.R7$(),ce.Y8G("ngIf",ie.getColumnData(ne,te.fieldPath))}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_8_Template(te,ne){if(1&te&&(ce.j41(0,"span",68),ce.nrm(1,"i",69),ce.k0s()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2).$implicit,ie=ce.XpG();ce.R7$(),ce.HbH(ie.getColumnData(ne,te.fieldPath)),ce.Y8G("pTooltip",ie.getColumnData(ne,te.fieldPath))("autoHide",!1)}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_9_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"span",70)(1,"p-button",71),ce.bIt("onClick",(function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_9_Template_p_button_onClick_1_listener(){ce.eBV(te);const ne=ce.XpG().$implicit,ie=ce.XpG(2).$implicit;return ce.Njj(null==ne.buttonCallback?null:ne.buttonCallback(ie))})),ce.k0s()()}if(2&te){const te=ce.XpG().$implicit;ce.R7$(),ce.Y8G("label",te.buttonLabel)("icon",te.buttonIcon)("styleClass",te.buttonStyleClass)}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_10_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_10_Template(te,ne){if(1&te&&(ce.j41(0,"span",72),ce.DNE(1,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_10_ng_container_1_Template,1,0,"ng-container",73),ce.k0s()),2&te){const te=ce.XpG().$implicit;ce.R7$(),ce.Y8G("ngComponentOutlet",te.component)("ngComponentOutletInputs",te.componentInputs)}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_11_Template(te,ne){if(1&te&&(ce.j41(0,"span"),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2).$implicit,ie=ce.XpG();ce.R7$(),ce.SpI(" ",ie.getColumnData(ne,te.fieldPath)," ")}}function BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"td",24),ce.DNE(2,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_2_Template,3,4,"span",48)(3,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_3_Template,3,4,"span",49)(4,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_4_Template,3,3,"span",50)(5,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_5_Template,3,2,"span",51)(6,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_6_Template,3,2,"span",52)(7,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_7_Template,2,1,"span",53)(8,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_8_Template,2,4,"span",54)(9,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_9_Template,2,3,"span",55)(10,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_10_Template,2,2,"span",56)(11,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_span_11_Template,2,1,"span",57),ce.k0s(),ce.bVm()),2&te){const te=ne.$implicit,ie=ce.XpG(2).$implicit,re=ce.XpG();let le;ce.R7$(),ce.Aen("width: "+te.size),ce.HbH(re.loadColumnClass(te)+" "+re.loadCellClass(re.getColumnData(ie,te.fieldPath))),ce.Y8G("ngSwitch",te.typeColumn),ce.BMQ("data-value",re.getColumnData(ie,te.fieldPath))("data-labelColumn",null!==(le=te.label)&&void 0!==le?le:re.brListService.getColumnLabelFromBrControl(te.formControlName)),ce.R7$(),ce.Y8G("ngSwitchCase",re.typeColumnEnum.Date),ce.R7$(),ce.Y8G("ngSwitchCase",re.typeColumnEnum.DateTime),ce.R7$(),ce.Y8G("ngSwitchCase",re.typeColumnEnum.Currency),ce.R7$(),ce.Y8G("ngSwitchCase",re.typeColumnEnum.CheckBox),ce.R7$(),ce.Y8G("ngSwitchCase",re.typeColumnEnum.CheckBoxUnsafe),ce.R7$(),ce.Y8G("ngSwitchCase",re.typeColumnEnum.Chip),ce.R7$(),ce.Y8G("ngSwitchCase",re.typeColumnEnum.Icon),ce.R7$(),ce.Y8G("ngSwitchCase",re.typeColumnEnum.Button),ce.R7$(),ce.Y8G("ngSwitchCase",re.typeColumnEnum.Component)}}const _c7=te=>({"br-selected-row":te});function BrListTableComponent_ng_template_2_ng_container_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"tr",47),ce.bIt("dblclick",(function BrListTableComponent_ng_template_2_ng_container_1_Template_tr_dblclick_1_listener(){ce.eBV(te);const ne=ce.XpG().$implicit,ie=ce.XpG();return ce.Njj(ie.onDoubleClick(ne))})),ce.DNE(2,BrListTableComponent_ng_template_2_ng_container_1_ng_container_2_Template,12,16,"ng-container",9),ce.k0s(),ce.bVm()}if(2&te){const te=ce.XpG(),ne=te.$implicit,ie=te.rowIndex,re=ce.XpG();ce.R7$(),ce.HbH("fadein animation-duration-200 br-table "+re.loadRowClass(ne)),ce.Y8G("pContextMenuRow",ne)("pSelectableRow",ne)("pSelectableRowIndex",ie)("ngClass",ce.eq3(9,_c7,re.isSelecionado(ne[re.recordPkName]))),ce.BMQ("data-pkRow",ne[re.recordPkName])("data-rowIndex",ie),ce.R7$(),ce.Y8G("ngForOf",re.visibleColumns)}}function BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_tr_1_ng_container_1_Template(te,ne){1&te&&(ce.qex(0),ce.j41(1,"td"),ce.nrm(2,"p-skeleton"),ce.k0s(),ce.bVm())}function BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_tr_1_Template(te,ne){if(1&te&&(ce.j41(0,"tr"),ce.DNE(1,BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_tr_1_ng_container_1_Template,3,0,"ng-container",9),ce.k0s()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngForOf",te.visibleColumns)}}function BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_tr_2_ng_container_1_Template(te,ne){1&te&&(ce.qex(0),ce.j41(1,"td"),ce.nrm(2,"p-skeleton"),ce.k0s(),ce.bVm())}function BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_tr_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"tr",75),ce.bIt("visible",(function BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_tr_2_Template_tr_visible_0_listener(){ce.eBV(te);const ne=ce.XpG(3),ie=ne.$implicit,re=ne.rowIndex,le=ce.XpG();return ce.Njj(le.onLazyLoad(ie.groupValue,re,ie.isGroupSkeleton))})),ce.DNE(1,BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_tr_2_ng_container_1_Template,3,0,"ng-container",9),ce.k0s()}if(2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngForOf",te.visibleColumns)}}function BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_tr_1_Template,2,1,"tr",23)(2,BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_tr_2_Template,2,1,"tr",74),ce.bVm()),2&te){const te=ne.index;ce.R7$(),ce.Y8G("ngIf",0!==te),ce.R7$(),ce.Y8G("ngIf",0===te)}}function BrListTableComponent_ng_template_2_ng_container_2_Template(te,ne){1&te&&(ce.qex(0),ce.DNE(1,BrListTableComponent_ng_template_2_ng_container_2_ng_container_1_Template,3,2,"ng-container",9),ce.bVm()),2&te&&(ce.R7$(),ce.Y8G("ngForOf",ce.lJ4(1,_c5).constructor(30)))}function BrListTableComponent_ng_template_2_Template(te,ne){if(1&te&&ce.DNE(0,BrListTableComponent_ng_template_2_ng_container_0_Template,9,9,"ng-container",23)(1,BrListTableComponent_ng_template_2_ng_container_1_Template,3,11,"ng-container",23)(2,BrListTableComponent_ng_template_2_ng_container_2_Template,2,2,"ng-container",23),2&te){const te=ne.$implicit;ce.Y8G("ngIf",te.isBrGroupHeader&&!te.isSkeletonRow),ce.R7$(),ce.Y8G("ngIf",!te.isBrGroupHeader&&!te.isSkeletonRow),ce.R7$(),ce.Y8G("ngIf",te.isSkeletonRow)}}function BrListTableComponent_ng_template_3_Template(te,ne){1&te&&(ce.j41(0,"td",76),ce.EFF(1,"Nenhum registro encontrado."),ce.k0s())}function BrListTableComponent_ng_template_6_ng_container_0_span_2_Template(te,ne){if(1&te&&ce.nrm(0,"span",80),2&te){const te=ce.XpG(2).$implicit;ce.HbH(te.icon)}}function BrListTableComponent_ng_template_6_ng_container_0_i_5_Template(te,ne){1&te&&ce.nrm(0,"i",81)}function BrListTableComponent_ng_template_6_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"a",77),ce.DNE(2,BrListTableComponent_ng_template_6_ng_container_0_span_2_Template,1,2,"span",78),ce.j41(3,"span"),ce.EFF(4),ce.k0s(),ce.DNE(5,BrListTableComponent_ng_template_6_ng_container_0_i_5_Template,1,0,"i",79),ce.k0s(),ce.bVm()),2&te){const te=ce.XpG(),ne=te.$implicit,ie=te.hasSubmenu;ce.R7$(2),ce.Y8G("ngIf",ne.icon),ce.R7$(2),ce.JRh(ne.label),ce.R7$(),ce.Y8G("ngIf",ie)}}function BrListTableComponent_ng_template_6_Template(te,ne){if(1&te&&ce.DNE(0,BrListTableComponent_ng_template_6_ng_container_0_Template,6,3,"ng-container",23),2&te){const te=ne.$implicit;ce.Y8G("ngIf",!te.id)}}function BrListTableComponent_ng_template_9_ng_container_0_span_2_Template(te,ne){if(1&te&&ce.nrm(0,"span",80),2&te){const te=ce.XpG(2).$implicit;ce.HbH(te.icon)}}function BrListTableComponent_ng_template_9_ng_container_0_i_5_Template(te,ne){1&te&&ce.nrm(0,"i",81)}function BrListTableComponent_ng_template_9_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"a",77),ce.DNE(2,BrListTableComponent_ng_template_9_ng_container_0_span_2_Template,1,2,"span",78),ce.j41(3,"span"),ce.EFF(4),ce.k0s(),ce.DNE(5,BrListTableComponent_ng_template_9_ng_container_0_i_5_Template,1,0,"i",79),ce.k0s(),ce.bVm()),2&te){const te=ce.XpG(),ne=te.$implicit,ie=te.hasSubmenu;ce.R7$(2),ce.Y8G("ngIf",ne.icon),ce.R7$(2),ce.JRh(ne.label),ce.R7$(),ce.Y8G("ngIf",ie)}}function BrListTableComponent_ng_template_9_Template(te,ne){if(1&te&&ce.DNE(0,BrListTableComponent_ng_template_9_ng_container_0_Template,6,3,"ng-container",23),2&te){const te=ne.$implicit;ce.Y8G("ngIf",!te.id)}}let Zt=(()=>{class BrListTableComponent{constructor(){this.brMessageService=(0,ce.WQX)(Ne.h),this.http=(0,ce.WQX)(Je.Qq),this.environmentService=(0,ce.WQX)($t.v),this.typeColumnEnum=$e.Ii,this.typeInputEnum=$e.St,this.columnContextMenu=[],this.rowContextMenu=[],this.trackByFunction=(te,ne)=>te}get selectedRows(){return this.brListService.selectedRows}set selectedRows(te){this.brListService.selectedRows=te}get columns(){return this.brListService.columns}set columns(te){this.brListService.columns=te}get virtualScrollHeight(){return this.brListService.virtualScrollHeight}get visibleColumns(){return this.brListService.columns.filter((te=>!1!==te.visible))}get columnAgrupamento(){return this.brListService.columnAgrupamento}get groupHeaderList(){return this.brListService.groupHeaderList}get checkboxFilterOptions(){return this.brListService.checkboxFilterOptions}get recordPkName(){return this.brListService.recordPkName}get brListName(){return(0,Oe.Z)(this.brListService.brListName)}get brListNamePlural(){return(0,Oe.Z)(this.brListService.brListNamePlural)}get pagination(){return this.brListService.pagination}get isIntegrado(){return this.brListService.state.isIntegrado}get dataList(){return this.brListService.dataList}set dataList(te){this.brListService.dataList=te}get appliedFilters(){return this.brListService.appliedFilters}get isLoading(){return this.brListService.state.isLoading}set isLoading(te){this.brListService.state.isLoading=te}ngOnInit(){this.rowContextMenu=[...this.brListService.menuMais||[],{label:"Ativar/Desativar",icon:"pi pi-power-off",command:()=>{if(0===this.selectedRows?.length)return void this.brMessageService.info("É necessário selecionar algum registro antes");if(this.isLoading)return;const te=this.selectedRows.map((te=>te[this.recordPkName]));this.isLoading=!0,this.brListService.toggleStatusRegistro(te).pipe((0,Ce.W)((()=>(this.brMessageService.error(),ye.w))),(0,we.M)((()=>this.brMessageService.success())),(0,ke.n)((()=>this.brListService.refreshData())),(0,Se.j)((()=>this.isLoading=!1))).subscribe()}}]}onDoubleClick(te){this.brListService.state.isReadOnly?((0,Ke.LL)(this.brListService.formDetails),this.brListService.openDetails(te[this.recordPkName])):this.brListService.state.podeAlterar&&((0,Ke.eo)(this.brListService.formDetails),this.brListService.openDetails(te[this.recordPkName]))}onLazyLoad(te,ne,ie){ie?this.brListService.addData(te,ne).subscribe():this.brListService.addData().subscribe()}toggleGroup(te,ne){te.expanded?(te.expanded=!1,this.dataList=this.dataList.filter((te=>!te.isSkeletonRow)).filter((ne=>!ne.isSkeletonRow||ne.value!==te.value)).filter((ne=>ne.$groupValue!==te.value))):(te.expanded=!0,this.brListService.addData(te.value,ne).subscribe())}onSort(te){if(this.columnAgrupamento?.fieldPath!==te.fieldPath){switch(te.sort){case void 0:te.sort="asc";break;case"asc":te.sort="desc";break;case"desc":te.sort=void 0}te.sort?this.brListService.appliedFilters.order={path:te.fieldPath,ordem:te.sort}:delete this.brListService.appliedFilters.order,delete this.brListService.appliedFilters.cursor,this.columns.forEach((ne=>{ne.fieldPath!==te.fieldPath&&(ne.sort=void 0)})),this.brListService.refreshData().subscribe((()=>this.brListService.saveBrListConfig().subscribe()))}}getTypeColumnLabel(te){switch(te.typeColumn){case $e.Ii.Date:return"Date";case $e.Ii.DateTime:return"DateTime";case $e.Ii.CheckBox:return"CheckBox";case $e.Ii.Currency:return"Currency";case $e.Ii.Chip:return"Chip";default:return"Default"}}getColumnDate(te,ne){const ie=this.getColumnData(te,ne);return(0,Yt.ZW)(ie)}getColumnDateTime(te,ne){return this.getColumnData(te,ne)}getColumnData(te,ne){return dt.get(te,ne)}onSearchColumnInput(te){clearTimeout(this.inputTimeout),this.inputTimeout=setTimeout((()=>{this.onSearchColumn(te)}),1e3)}onSearchColumn(te){clearTimeout(this.inputTimeout);let ne=!0;if(te.brFormControl){if(te.searchValue||0===te.searchValue)switch(te.brFormControl.typeInput){case $e.St.Date:{const ne=new Date(te.searchValue),ie=new Date(te.searchValue);ne.setHours(0,0,0),ie.setHours(23,59,59),this.appliedFilters[te.brFormControl.formControlName]={periodo:{label:"Outro",value:-1},dataInicial:(0,Yt.hk)(ne),dataFinal:(0,Yt.hk)(ie)};break}case $e.St.CheckBox:"string"==typeof te.searchValue?(ne=!1,this.appliedFilters[te.brFormControl.formControlName]=void 0):this.appliedFilters[te.brFormControl.formControlName]=te.searchValue.value;break;case $e.St.Number:this.appliedFilters[te.brFormControl.formControlName]={min:te.searchValue,max:te.searchValue};break;case $e.St.Mask:{const ne=te.searchValue.replace(/(^[().\-_]+|[().\-_]+$|(?<![a-zA-Z0-9])[().\-_]+|[().\-_]+(?![a-zA-Z0-9]))/g,"").trim();this.appliedFilters[te.brFormControl.formControlName]=ne?[ne]:void 0;break}case $e.St.ForeignKey:"string"==typeof te.searchValue?(ne=!1,this.appliedFilters[te.brFormControl.formControlName]=void 0):this.appliedFilters[te.brFormControl.formControlName]=[te.searchValue[te.brFormControl.optionValue]];break;default:this.appliedFilters[te.brFormControl.formControlName]=[te.searchValue]}else this.appliedFilters[te.brFormControl.formControlName]?this.appliedFilters[te.brFormControl.formControlName]=void 0:ne=!1;ne&&(this.brListService.createChipsList(),0===this.brListService.brChipList.length&&(this.brListService.state.isBrChipsOpen=!1),this.brListService.refreshData().subscribe((()=>this.brListService.saveBrListConfig().subscribe())))}else this.brMessageService.error("A coluna não foi conectada ao formulário de filtro.")}fetchColumnSearchSuggestions(te,ne){let ie=`${this.environmentService.environment.serverUrl}/${ne.brFormControl.foreignEndpoint}/min?search=${te.query}`;const re=ne.brFormControl?.foreignMinQuery?.toString();re&&(ie+="&"+re),this.http.get(ie).subscribe((te=>{ne.searchSuggestions=te.data,1===te.data.length&&(this.acColumnSearch.hide(),ne.searchValue=te.data[0],this.onSearchColumn(ne))}))}fetchCheckboxFilterSuggestions(te,ne){const ie=this.checkboxFilterOptions.filter((ne=>(0,Oe.S)(ne.label).includes((0,Oe.S)(te.query))));ne.searchSuggestions=ie,1===ie.length&&(ne.searchValue=ie[0],this.onSearchColumn(ne))}onColumnContextMenu(te,ne){this.cmHeader.model=this.getColumnContextMenu(ne),this.cmHeader.show(te)}onRowContextMenu(te){this.isSelecionado(this.contextMenuRowSelected[this.recordPkName])||(this.selectedRows=[this.contextMenuRowSelected])}isSelecionado(te){return this.selectedRows.map((te=>te[this.recordPkName])).includes(te)}onColumnReorder(te){if("ID"!==this.visibleColumns[0].label||0!==te.dragIndex&&0!==te.dropIndex){if(void 0!==te.columns&&void 0!==te.dropIndex&&void 0!==te.dragIndex){const ne=[...this.columns];let ie,re;te.dropIndex>te.dragIndex?(ie=ne.findIndex((ne=>ne.fieldPath===te.columns[te.dropIndex].fieldPath)),re=ne.findIndex((ne=>ne.fieldPath===te.columns[te.dropIndex-1].fieldPath))):(ie=ne.findIndex((ne=>ne.fieldPath===te.columns[te.dropIndex].fieldPath)),re=ne.findIndex((ne=>ne.fieldPath===te.columns[te.dropIndex+1].fieldPath))),ne[ie]=this.columns[re],ne[re]=this.columns[ie],this.columns=[...ne],this.brListService.saveBrListConfig().subscribe()}}else this.brMessageService.info('Não é permitido trocar a coluna "ID" de lugar')}onColumnResize(){this.containerInputColumnElements.forEach((te=>{te.nativeElement.style.width="auto"})),this.columnsThElements.forEach((te=>{const ne=te.nativeElement.getAttribute("data-fieldPath"),ie=te.nativeElement.offsetWidth,re=this.columns.find((te=>te.fieldPath===ne));re&&(re.size=`${ie}px`)})),this.brListService.saveBrListConfig().subscribe()}loadColumnClass(te){if(!this.brListService.styleConfig)return"";const ne=this.brListService.styleConfig.classColumn?.filter((ne=>(0,Oe.S)(ne.columnFieldPathTarget)===(0,Oe.S)(te.fieldPath)));return ne?ne.map((te=>te.className)).join(" "):""}loadRowClass(te){if(!this.brListService.styleConfig)return"";const ne=this.brListService.styleConfig.classRow?.filter((ne=>ne.dataTarget.every((ne=>(0,Oe.S)(this.getColumnData(te,ne.field))===(0,Oe.S)(ne.value)))));return ne?ne.map((te=>te.className)).join(" "):""}loadCellClass(te){if(!this.brListService.styleConfig)return"";const ne=this.brListService.styleConfig.classCell?.filter((ne=>ne.dataTarget.map((te=>(0,Oe.S)(te))).includes("string"==typeof te?(0,Oe.S)(te):te)));return ne?ne.map((te=>te.className)).join(" "):""}getColumnContextMenu(te){const ne=te.label??this.brListService.getColumnLabelFromBrControl(te.formControlName);return[!0===te.groupBy?{label:"Cancelar agrupamento",icon:"pi pi-bars",command:()=>{this.brListService.onAgrupamento(void 0),this.columns=this.columns}}:{disabled:!te.brFormControl,label:`Agrupar por ${ne}`,icon:"pi pi-bars",command:()=>{this.brListService.onAgrupamento(te),this.columns=this.columns}},{label:`Esconder ${ne}`,icon:"pi pi-eye-slash",command:()=>{this.brListService.toggleColumnVisibility(te),this.columns=this.columns,this.brMessageService.info(`Acesse "Colunas" para visualizar a coluna "${ne}" novamente.`)}}]}static#e=this.ɵfac=function BrListTableComponent_Factory(te){return new(te||BrListTableComponent)};static#t=this.ɵcmp=ce.VBU({type:BrListTableComponent,selectors:[["br-list-table"]],viewQuery:function BrListTableComponent_Query(te,ne){if(1&te&&(ce.GBs(Wt,5),ce.GBs(Rt.XI,5),ce.GBs(Kt,5),ce.GBs(Qt,5),ce.GBs(Jt,5)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.cmHeader=te.first),ce.mGM(te=ce.lsd())&&(ne.pTable=te.first),ce.mGM(te=ce.lsd())&&(ne.acColumnSearch=te.first),ce.mGM(te=ce.lsd())&&(ne.columnsThElements=te),ce.mGM(te=ce.lsd())&&(ne.containerInputColumnElements=te)}},inputs:{brListService:"brListService"},standalone:!0,features:[ce.aNF],decls:10,vars:17,consts:[["selectionMode","multiple","columnResizeMode","expand","styleClass","p-datatable-sm p-datatable-striped p-datatable-gridlines fadein animation-duration-200",3,"scrollHeight","selection","columns","value","contextMenuSelection","contextMenu","reorderableColumns","scrollable","virtualScroll","virtualRowHeight","metaKeySelection","resizableColumns","showLoader","loading","rowTrackBy","selectionChange","contextMenuSelectionChange","onColReorder","onColResize"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["appendTo","body",3,"model"],["cmHeader",""],["pTemplate","item"],["cmRow",""],["mode","indeterminate",3,"style",4,"ngIf"],[4,"ngFor","ngForOf"],[2,"background-color","#efefef","max-height","33px"],["mode","indeterminate"],["pReorderableColumn","","pResizableColumn","",1,"cursor-pointer",3,"draggable","click","contextmenu"],["columnTh",""],[3,"class",4,"ngIf"],["class","fa-light fa-fw fa-arrow-up-short-wide",4,"ngIf"],["class","fa-light fa-fw fa-arrow-down-wide-short",4,"ngIf"],[1,"fa-light","fa-fw","fa-arrow-up-short-wide"],[1,"fa-light","fa-fw","fa-arrow-down-wide-short"],[1,"input-column"],[1,"container-input-column"],["containerInputColumn",""],[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["dataKey","value","appendTo","body","class","w-full","styleClass","w-full","optionLabel","label","inputStyleClass","py-1 pr-1 w-full",3,"ngModel","suggestions","showClear","ngModelChange","onClear","completeMethod",4,"ngSwitchCase"],["locale","pt-BR","currency","BRL","inputStyleClass","py-1 pr-5 w-full","class","w-full","styleClass","w-full",3,"ngModel","mode","showClear","min","minFractionDigits","maxFractionDigits","ngModelChange","onClear","onInput","keydown.enter",4,"ngSwitchCase"],["dateMask","","dateFormat","dd/mm/yy","inputStyleClass","py-1 pr-5 w-full","styleClass","w-full","class","w-full",3,"ngModel","showOnFocus","showClear","ngModelChange","input","onClear","keydown.enter",4,"ngSwitchCase"],["appendTo","body","class","w-full","styleClass","w-full","inputStyleClass","py-1 pr-5 w-full",3,"forceSelection","ngModel","dataKey","suggestions","minLength","optionLabel","showClear","ngModelChange","completeMethod","onClear",4,"ngSwitchCase"],["styleClass","py-1 pr-5 w-full",3,"ngModel","autoClear","mask","showClear","ngModelChange","onInput","keydown.enter","onClear",4,"ngSwitchCase"],["type","text","brInputText","","class","py-1 w-full",3,"ngModel","ngModelChange","keydown.enter",4,"ngSwitchCase"],["type","text","brInputText","","class","py-1 w-full",3,"disabled",4,"ngSwitchDefault"],["dataKey","value","appendTo","body","styleClass","w-full","optionLabel","label","inputStyleClass","py-1 pr-1 w-full",1,"w-full",3,"ngModel","suggestions","showClear","ngModelChange","onClear","completeMethod"],["pTemplate","loadingicon"],["locale","pt-BR","currency","BRL","inputStyleClass","py-1 pr-5 w-full","styleClass","w-full",1,"w-full",3,"ngModel","mode","showClear","min","minFractionDigits","maxFractionDigits","ngModelChange","onClear","onInput","keydown.enter"],["dateMask","","dateFormat","dd/mm/yy","inputStyleClass","py-1 pr-5 w-full","styleClass","w-full",1,"w-full",3,"ngModel","showOnFocus","showClear","ngModelChange","input","onClear","keydown.enter"],["appendTo","body","styleClass","w-full","inputStyleClass","py-1 pr-5 w-full",1,"w-full",3,"forceSelection","ngModel","dataKey","suggestions","minLength","optionLabel","showClear","ngModelChange","completeMethod","onClear"],["autoCompleteColumnSearch",""],["styleClass","py-1 pr-5 w-full",3,"ngModel","autoClear","mask","showClear","ngModelChange","onInput","keydown.enter","onClear"],["type","text","brInputText","",1,"py-1","w-full",3,"ngModel","ngModelChange","keydown.enter"],["type","text","brInputText","",1,"py-1","w-full",3,"disabled"],[1,"group-header",3,"ngClass"],["colspan","100%"],[1,"flex","align-items-center"],["type","button","pButton","",1,"p-button-text","p-button-rounded","mr-2",3,"icon","click"],[1,"text-xl"],[1,"text-xl","font-semibold","ml-2"],[3,"pContextMenuRow","pSelectableRow","pSelectableRowIndex","ngClass","dblclick"],["data-typeColumn","Date",4,"ngSwitchCase"],["data-typeColumn","DateTime",4,"ngSwitchCase"],["data-typeColumn","Currency",4,"ngSwitchCase"],["data-typeColumn","CheckBox",4,"ngSwitchCase"],["data-typeColumn","CheckBoxUnsafe",4,"ngSwitchCase"],["data-typeColumn","Chip",4,"ngSwitchCase"],["data-typeColumn","Icon",4,"ngSwitchCase"],["data-typeColumn","Button",4,"ngSwitchCase"],["data-typeColumn","Component",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["data-typeColumn","Date"],["data-typeColumn","DateTime"],["data-typeColumn","Currency"],["data-typeColumn","CheckBox"],["severity","success","value","SIM"],["severity","danger","value","NÃO"],["data-typeColumn","CheckBoxUnsafe"],["data-typeColumn","Chip"],[3,"value",4,"ngIf"],[3,"value"],["data-typeColumn","Icon"],[2,"font-size","1.5rem",3,"pTooltip","autoHide"],["data-typeColumn","Button"],[3,"label","icon","styleClass","onClick"],["data-typeColumn","Component"],[4,"ngComponentOutlet","ngComponentOutletInputs"],["observeVisibility","",3,"visible",4,"ngIf"],["observeVisibility","",3,"visible"],["colspan","100%",2,"padding","0.5rem","font-size","large"],[1,"flex","align-items-center","p-menuitem-link",2,"height","35px"],["class","p-menuitem-icon mr-2",3,"class",4,"ngIf"],["class","pi pi-angle-right ml-auto","style","font-size: 0.875rem; width: 0.875rem; height: 0.875rem",4,"ngIf"],[1,"p-menuitem-icon","mr-2"],[1,"pi","pi-angle-right","ml-auto",2,"font-size","0.875rem","width","0.875rem","height","0.875rem"]],template:function BrListTableComponent_Template(te,ne){if(1&te&&(ce.j41(0,"p-table",0),ce.mxI("selectionChange",(function BrListTableComponent_Template_p_table_selectionChange_0_listener(te){return ce.DH7(ne.selectedRows,te)||(ne.selectedRows=te),te}))("contextMenuSelectionChange",(function BrListTableComponent_Template_p_table_contextMenuSelectionChange_0_listener(te){return ce.DH7(ne.contextMenuRowSelected,te)||(ne.contextMenuRowSelected=te),te})),ce.bIt("contextMenuSelectionChange",(function BrListTableComponent_Template_p_table_contextMenuSelectionChange_0_listener(te){return ne.onRowContextMenu(te)}))("onColReorder",(function BrListTableComponent_Template_p_table_onColReorder_0_listener(te){return ne.onColumnReorder(te)}))("onColResize",(function BrListTableComponent_Template_p_table_onColResize_0_listener(){return ne.onColumnResize()})),ce.DNE(1,BrListTableComponent_ng_template_1_Template,5,3,"ng-template",1)(2,BrListTableComponent_ng_template_2_Template,3,3,"ng-template",2)(3,BrListTableComponent_ng_template_3_Template,2,0,"ng-template",3),ce.k0s(),ce.j41(4,"p-contextMenu",4,5),ce.DNE(6,BrListTableComponent_ng_template_6_Template,1,1,"ng-template",6),ce.k0s(),ce.j41(7,"p-contextMenu",4,7),ce.DNE(9,BrListTableComponent_ng_template_9_Template,1,1,"ng-template",6),ce.k0s()),2&te){const te=ce.sdS(8);ce.Y8G("scrollHeight",ne.isIntegrado?"flex":"calc(100vh - 120px)"),ce.R50("selection",ne.selectedRows),ce.Y8G("columns",ne.visibleColumns)("value",ne.dataList),ce.R50("contextMenuSelection",ne.contextMenuRowSelected),ce.Y8G("contextMenu",te)("reorderableColumns",!0)("scrollable",!0)("virtualScroll",!ne.isIntegrado)("virtualRowHeight",ne.virtualScrollHeight)("metaKeySelection",!0)("resizableColumns",!0)("showLoader",!1)("loading",ne.isLoading)("rowTrackBy",ne.trackByFunction),ce.R7$(4),ce.Y8G("model",ne.columnContextMenu),ce.R7$(3),ce.Y8G("model",ne.rowContextMenu)}},dependencies:[le.MD,le.YU,le.OI,le.Sq,le.bT,le.ux,le.e1,le.fG,le.vh,ze.YN,ze.me,ze.BC,ze.vS,Rt.bG,Rt.XI,de.Ei,Rt.d5,Rt.H$,Rt.O8,Rt.SJ,pt.$$,pt.j9,Gt.B,Dt.O3,Dt.YI,Ct.rO,Ct.Vv,Fe._f,Fe.$n,It.Zn,It.N5,Ut.l,Ot.$,Ot.v,Vt.S,Vt.m,Nt.k,Nt.E,vt.rc,vt.tz,Mt.d,Mt.z,Ht.i,zt.Y],styles:["[_nghost-%COMP%]     .p-datatable .p-datatable-wrapper::-webkit-scrollbar{width:0}[_nghost-%COMP%]     .p-datatable .p-datatable-tbody>tr.br-selected-row{background-color:#e1e1e1;color:var(--text-color);outline:1px auto var(--primary-color)}[_nghost-%COMP%]     .p-datatable .p-datatable-tbody>tr.br-selected-row .p-tag{opacity:1}[_nghost-%COMP%]     .p-datatable .p-datatable-tbody>tr .group-header td{padding:.5rem 1rem}[_nghost-%COMP%]     .p-datatable .p-datatable-tbody>tr .group-header td.expanded{position:sticky;top:78px;z-index:2}[_nghost-%COMP%]     .p-datatable .p-datatable-tbody>tr .group-header td .title{font-size:1.5rem}[_nghost-%COMP%]     .p-datatable td:has(span[data-typeColumn=Currency]){text-align:end}[_nghost-%COMP%]     .p-datatable td:has(span[data-typeColumn=Button]){text-align:center}[_nghost-%COMP%]     .p-progressbar{background:#c5c5c5}[_nghost-%COMP%]     .p-progressbar .p-progressbar-value{background:#a8a8a8}"]})}return BrListTableComponent})();var tn={fieldSeparator:",",decimalSeparator:".",quoteStrings:!0,quoteCharacter:'"',showTitle:!1,title:"My Generated Report",filename:"generated",showColumnHeaders:!0,useTextFile:!1,useBom:!0,columnHeaders:[],useKeysAsHeaders:!1,boolDisplay:{true:"TRUE",false:"FALSE"},replaceUndefinedWith:""},Y=te=>Object.assign({},tn,te);class Z extends Error{constructor(te){super(te),this.name="CsvGenerationError"}}class _ extends Error{constructor(te){super(te),this.name="EmptyHeadersError"}}class output_$ extends Error{constructor(te){super(te),this.name="CsvDownloadEnvironmentError"}}var U=te=>te,nn=U,rn=U,an=U,sn=U,H=te=>an("object"==typeof te?te.key:te),D=te=>sn("object"==typeof te?te.displayLabel:te),P=te=>ne=>nn(te+ne+"\r\n"),R=te=>(ne,ie)=>h(te)(rn(ne+ie)),h=te=>ne=>ne+te.fieldSeparator,M=te=>+te===te&&(!isFinite(te)||Boolean(te%1)),C=(te,ne)=>{if("locale"===te.decimalSeparator&&M(ne))return ne.toLocaleString();if("."!==te.decimalSeparator&&M(ne))return ne.toString().replace(".",te.decimalSeparator);if("string"==typeof ne){let ie=ne;return(te.quoteStrings||te.fieldSeparator&&ne.indexOf(te.fieldSeparator)>-1||te.quoteCharacter&&ne.indexOf(te.quoteCharacter)>-1||ne.indexOf("\n")>-1||ne.indexOf("\r")>-1)&&(ie=te.quoteCharacter+function(te,ne){return'"'==ne&&te.indexOf('"')>-1?te.replace(/"/g,'""'):te}(ne,te.quoteCharacter)+te.quoteCharacter),ie}if("boolean"==typeof ne&&te.boolDisplay){const ie=ne?"true":"false";return te.boolDisplay[ie]}return ne},Gx=te=>ne=>{const ie=Y(te),re=ie.useKeysAsHeaders?Object.keys(ne[0]):ie.columnHeaders;let le=((te,...ne)=>ne.reduce(((te,ne)=>ne(te)),te))(nn(""),(te=>ne=>te.useBom?nn(ne+"\ufeff"):ne)(ie),(te=>ne=>te.showTitle?nn(ne+te.title):ne)(ie),((te,ne)=>ie=>{if(!te.showColumnHeaders)return ie;if(ne.length<1)throw new _("Option to show headers but none supplied. Make sure there are keys in your collection or that you've supplied headers through the config options.");let re=rn("");for(let ie=0;ie<ne.length;ie++){const le=D(ne[ie]);re=R(te)(re,C(te,le))}return re=rn(re.slice(0,-1)),P(ie)(re)})(ie,re),((te,ne,ie)=>re=>{let le=re;for(var ce=0;ce<ie.length;ce++){let re=rn("");for(let le=0;le<ne.length;le++){const de=H(ne[le]),ue=void 0===ie[ce][de]?te.replaceUndefinedWith:ie[ce][de];re=R(te)(re,C(te,ue))}re=rn(re.slice(0,-1)),le=P(le)(re)}return le})(ie,re,ne));if(le.length<1)throw new Z("Output is empty. Is your data formatted correctly?");return le},dn=ie(3005),un=ie(3277),pn=ie(4236),hn=ie.n(pn),fn=ie(5656),_n=ie(5724),bn=ie(5598),yn=ie(1646),wn=ie(1939);const kn=["sublist"];function TieredMenuSub_ng_template_2_li_0_Template(te,ne){if(1&te&&ce.nrm(0,"li",5),2&te){const te=ce.XpG().$implicit,ne=ce.XpG();ce.Y8G("ngStyle",ne.getItemProp(te,"style"))("ngClass",ne.getSeparatorItemClass(te)),ce.BMQ("id",ne.getItemId(te))("data-pc-section","separator")}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",18),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG();ce.Y8G("ngClass",ne.getItemProp(te,"icon"))("ngStyle",ne.getItemProp(te,"iconStyle")),ce.BMQ("data-pc-section","icon")("tabindex",-1)}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",19),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG();ce.BMQ("data-pc-section","label"),ce.R7$(),ce.SpI(" ",ne.getItemLabel(te)," ")}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_ng_template_3_Template(te,ne){if(1&te&&ce.nrm(0,"span",20),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG();ce.Y8G("innerHTML",ne.getItemLabel(te),ce.npT),ce.BMQ("data-pc-section","label")}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_span_5_Template(te,ne){if(1&te&&(ce.j41(0,"span",21),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG();ce.Y8G("ngClass",ne.getItemProp(te,"badgeStyleClass")),ce.R7$(),ce.JRh(ne.getItemProp(te,"badge"))}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_AngleRightIcon_1_Template(te,ne){1&te&&ce.nrm(0,"AngleRightIcon",24),2&te&&(ce.Y8G("styleClass","p-submenu-icon"),ce.BMQ("data-pc-section","submenuicon")("aria-hidden",!0))}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_ng_template_0_Template(te,ne){}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_Template(te,ne){1&te&&ce.DNE(0,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_ng_template_0_Template,0,0,"ng-template"),2&te&&ce.Y8G("data-pc-section","submenuicon")("aria-hidden",!0)}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_AngleRightIcon_1_Template,1,3,"AngleRightIcon",22)(2,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_Template,1,2,null,23),ce.bVm()),2&te){const te=ce.XpG(5);ce.R7$(),ce.Y8G("ngIf",!te.tieredMenu.submenuIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.tieredMenu.submenuIconTemplate)}}const primeng_tieredmenu_c1=te=>({"p-menuitem-link":!0,"p-disabled":te});function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_Template(te,ne){if(1&te&&(ce.j41(0,"a",13),ce.DNE(1,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_span_1_Template,1,4,"span",14)(2,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_span_2_Template,2,2,"span",15)(3,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_ng_template_3_Template,1,2,"ng-template",null,16,ce.C5r)(5,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_span_5_Template,2,2,"span",17)(6,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_Template,3,2,"ng-container",9),ce.k0s()),2&te){const te=ce.sdS(4),ne=ce.XpG(3).$implicit,ie=ce.XpG();ce.Y8G("target",ie.getItemProp(ne,"target"))("ngClass",ce.eq3(11,primeng_tieredmenu_c1,ie.getItemProp(ne,"disabled"))),ce.BMQ("href",ie.getItemProp(ne,"url"),ce.B4B)("data-automationid",ie.getItemProp(ne,"automationId"))("data-pc-section","action")("tabindex",-1),ce.R7$(),ce.Y8G("ngIf",ie.getItemProp(ne,"icon")),ce.R7$(),ce.Y8G("ngIf",ie.getItemProp(ne,"escape"))("ngIfElse",te),ce.R7$(3),ce.Y8G("ngIf",ie.getItemProp(ne,"badge")),ce.R7$(),ce.Y8G("ngIf",ie.isItemGroup(ne))}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",18),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG();ce.Y8G("ngClass",ne.getItemProp(te,"icon"))("ngStyle",ne.getItemProp(te,"iconStyle")),ce.BMQ("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",19),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG();ce.BMQ("data-pc-section","label"),ce.R7$(),ce.SpI(" ",ne.getItemLabel(te)," ")}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_ng_template_3_Template(te,ne){if(1&te&&ce.nrm(0,"span",20),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG();ce.Y8G("innerHTML",ne.getItemLabel(te),ce.npT),ce.BMQ("data-pc-section","label")}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_span_5_Template(te,ne){if(1&te&&(ce.j41(0,"span",21),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG();ce.Y8G("ngClass",ne.getItemProp(te,"badgeStyleClass")),ce.R7$(),ce.JRh(ne.getItemProp(te,"badge"))}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_AngleRightIcon_1_Template(te,ne){1&te&&ce.nrm(0,"AngleRightIcon",24),2&te&&(ce.Y8G("styleClass","p-submenu-icon"),ce.BMQ("data-pc-section","submenuicon")("aria-hidden",!0))}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_ng_template_0_Template(te,ne){}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_Template(te,ne){1&te&&ce.DNE(0,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_ng_template_0_Template,0,0,"ng-template"),2&te&&ce.Y8G("data-pc-section","submenuicon")("aria-hidden",!0)}function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_AngleRightIcon_1_Template,1,3,"AngleRightIcon",22)(2,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_Template,1,2,null,23),ce.bVm()),2&te){const te=ce.XpG(5);ce.R7$(),ce.Y8G("ngIf",!te.tieredMenu.submenuIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.tieredMenu.submenuIconTemplate)}}const primeng_tieredmenu_c2=()=>({exact:!1});function TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_Template(te,ne){if(1&te&&(ce.j41(0,"a",25),ce.DNE(1,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_span_1_Template,1,5,"span",14)(2,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_span_2_Template,2,2,"span",15)(3,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_ng_template_3_Template,1,2,"ng-template",null,16,ce.C5r)(5,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_span_5_Template,2,2,"span",17)(6,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_Template,3,2,"ng-container",9),ce.k0s()),2&te){const te=ce.sdS(4),ne=ce.XpG(3).$implicit,ie=ce.XpG();ce.Y8G("routerLink",ie.getItemProp(ne,"routerLink"))("queryParams",ie.getItemProp(ne,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",ie.getItemProp(ne,"routerLinkActiveOptions")||ce.lJ4(20,primeng_tieredmenu_c2))("target",ie.getItemProp(ne,"target"))("ngClass",ce.eq3(21,primeng_tieredmenu_c1,ie.getItemProp(ne,"disabled")))("fragment",ie.getItemProp(ne,"fragment"))("queryParamsHandling",ie.getItemProp(ne,"queryParamsHandling"))("preserveFragment",ie.getItemProp(ne,"preserveFragment"))("skipLocationChange",ie.getItemProp(ne,"skipLocationChange"))("replaceUrl",ie.getItemProp(ne,"replaceUrl"))("state",ie.getItemProp(ne,"state")),ce.BMQ("data-automationid",ie.getItemProp(ne,"automationId"))("tabindex",-1)("data-pc-section","action"),ce.R7$(),ce.Y8G("ngIf",ie.getItemProp(ne,"icon")),ce.R7$(),ce.Y8G("ngIf",ie.getItemProp(ne,"escape"))("ngIfElse",te),ce.R7$(3),ce.Y8G("ngIf",ie.getItemProp(ne,"badge")),ce.R7$(),ce.Y8G("ngIf",ie.isItemGroup(ne))}}function TieredMenuSub_ng_template_2_li_1_ng_container_3_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_1_Template,7,13,"a",11)(2,TieredMenuSub_ng_template_2_li_1_ng_container_3_a_2_Template,7,23,"a",12),ce.bVm()),2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG();ce.R7$(),ce.Y8G("ngIf",!ne.getItemProp(te,"routerLink")),ce.R7$(),ce.Y8G("ngIf",ne.getItemProp(te,"routerLink"))}}function TieredMenuSub_ng_template_2_li_1_ng_container_4_1_ng_template_0_Template(te,ne){}function TieredMenuSub_ng_template_2_li_1_ng_container_4_1_Template(te,ne){1&te&&ce.DNE(0,TieredMenuSub_ng_template_2_li_1_ng_container_4_1_ng_template_0_Template,0,0,"ng-template")}const primeng_tieredmenu_c3=(te,ne)=>({$implicit:te,hasSubmenu:ne});function TieredMenuSub_ng_template_2_li_1_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,TieredMenuSub_ng_template_2_li_1_ng_container_4_1_Template,1,0,null,26),ce.bVm()),2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG();ce.R7$(),ce.Y8G("ngTemplateOutlet",ne.itemTemplate)("ngTemplateOutletContext",ce.l_i(2,primeng_tieredmenu_c3,te.item,ne.getItemProp(te,"items")))}}function TieredMenuSub_ng_template_2_li_1_p_tieredMenuSub_5_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-tieredMenuSub",27),ce.bIt("itemClick",(function TieredMenuSub_ng_template_2_li_1_p_tieredMenuSub_5_Template_p_tieredMenuSub_itemClick_0_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.itemClick.emit(ne))}))("itemMouseEnter",(function TieredMenuSub_ng_template_2_li_1_p_tieredMenuSub_5_Template_p_tieredMenuSub_itemMouseEnter_0_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onItemMouseEnter(ne))})),ce.k0s()}if(2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG();ce.Y8G("items",te.items)("itemTemplate",ne.itemTemplate)("autoDisplay",ne.autoDisplay)("menuId",ne.menuId)("activeItemPath",ne.activeItemPath())("focusedItemId",ne.focusedItemId)("ariaLabelledBy",ne.getItemId(te))("level",ne.level+1)}}function TieredMenuSub_ng_template_2_li_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"li",6,7)(2,"div",8),ce.bIt("click",(function TieredMenuSub_ng_template_2_li_1_Template_div_click_2_listener(ne){ce.eBV(te);const ie=ce.XpG().$implicit,re=ce.XpG();return ce.Njj(re.onItemClick(ne,ie))}))("mouseenter",(function TieredMenuSub_ng_template_2_li_1_Template_div_mouseenter_2_listener(ne){ce.eBV(te);const ie=ce.XpG().$implicit,re=ce.XpG();return ce.Njj(re.onItemMouseEnter({$event:ne,processedItem:ie}))})),ce.DNE(3,TieredMenuSub_ng_template_2_li_1_ng_container_3_Template,3,2,"ng-container",9)(4,TieredMenuSub_ng_template_2_li_1_ng_container_4_Template,2,5,"ng-container",9),ce.k0s(),ce.DNE(5,TieredMenuSub_ng_template_2_li_1_p_tieredMenuSub_5_Template,1,8,"p-tieredMenuSub",10),ce.k0s()}if(2&te){const te=ce.XpG(),ne=te.$implicit,ie=te.index,re=ce.XpG();ce.HbH(re.getItemProp(ne,"styleClass")),ce.Y8G("ngStyle",re.getItemProp(ne,"style"))("ngClass",re.getItemClass(ne))("pTooltip",re.getItemProp(ne,"tooltip"))("tooltipOptions",re.getItemProp(ne,"tooltipOptions")),ce.BMQ("id",re.getItemId(ne))("data-pc-section","menuitem")("data-p-highlight",re.isItemActive(ne))("data-p-focused",re.isItemFocused(ne))("data-p-disabled",re.isItemDisabled(ne))("aria-label",re.getItemLabel(ne))("aria-disabled",re.isItemDisabled(ne)||void 0)("aria-haspopup",re.isItemGroup(ne)&&!re.getItemProp(ne,"to")?"menu":void 0)("aria-expanded",re.isItemGroup(ne)?re.isItemActive(ne):void 0)("aria-setsize",re.getAriaSetSize())("aria-posinset",re.getAriaPosInset(ie)),ce.R7$(2),ce.BMQ("data-pc-section","content"),ce.R7$(),ce.Y8G("ngIf",!re.itemTemplate),ce.R7$(),ce.Y8G("ngIf",re.itemTemplate),ce.R7$(),ce.Y8G("ngIf",re.isItemVisible(ne)&&re.isItemGroup(ne))}}function TieredMenuSub_ng_template_2_Template(te,ne){if(1&te&&ce.DNE(0,TieredMenuSub_ng_template_2_li_0_Template,1,4,"li",3)(1,TieredMenuSub_ng_template_2_li_1_Template,6,21,"li",4),2&te){const te=ne.$implicit,ie=ce.XpG();ce.Y8G("ngIf",ie.isItemVisible(te)&&ie.getItemProp(te,"separator")),ce.R7$(),ce.Y8G("ngIf",ie.isItemVisible(te)&&!ie.getItemProp(te,"separator"))}}const primeng_tieredmenu_c4=(te,ne)=>({"p-submenu-list":te,"p-tieredmenu-root-list":ne}),In=["rootmenu"],Tn=["container"],primeng_tieredmenu_c7=te=>({"p-tieredmenu p-component":!0,"p-tieredmenu-overlay":te}),_c8=(te,ne)=>({showTransitionParams:te,hideTransitionParams:ne}),_c9=te=>({value:"visible",params:te});function TieredMenu_div_0_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",1,2),ce.bIt("click",(function TieredMenu_div_0_Template_div_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onOverlayClick(ne))}))("@overlayAnimation.start",(function TieredMenu_div_0_Template_div_animation_overlayAnimation_start_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onOverlayAnimationStart(ne))}))("@overlayAnimation.done",(function TieredMenu_div_0_Template_div_animation_overlayAnimation_done_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onOverlayAnimationEnd(ne))})),ce.j41(2,"p-tieredMenuSub",3,4),ce.bIt("itemClick",(function TieredMenu_div_0_Template_p_tieredMenuSub_itemClick_2_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onItemClick(ne))}))("menuFocus",(function TieredMenu_div_0_Template_p_tieredMenuSub_menuFocus_2_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onMenuFocus(ne))}))("menuBlur",(function TieredMenu_div_0_Template_p_tieredMenuSub_menuBlur_2_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onMenuBlur(ne))}))("menuKeydown",(function TieredMenu_div_0_Template_p_tieredMenuSub_menuKeydown_2_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onKeyDown(ne))}))("itemMouseEnter",(function TieredMenu_div_0_Template_p_tieredMenuSub_itemMouseEnter_2_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onItemMouseEnter(ne))})),ce.k0s()()}if(2&te){const te=ce.XpG();ce.HbH(te.styleClass),ce.Y8G("id",te.id)("ngClass",ce.eq3(22,primeng_tieredmenu_c7,te.popup))("ngStyle",te.style)("@overlayAnimation",ce.eq3(27,_c9,ce.l_i(24,_c8,te.showTransitionOptions,te.hideTransitionOptions)))("@.disabled",!0!==te.popup),ce.BMQ("data-pc-section","root")("data-pc-name","tieredmenu"),ce.R7$(2),ce.Y8G("root",!0)("items",te.processedItems)("itemTemplate",te.itemTemplate)("menuId",te.id)("tabindex",te.disabled?-1:te.tabindex)("ariaLabel",te.ariaLabel)("ariaLabelledBy",te.ariaLabelledBy)("baseZIndex",te.baseZIndex)("autoZIndex",te.autoZIndex)("autoDisplay",te.autoDisplay)("popup",te.popup)("focusedItemId",te.focused?te.focusedItemId:void 0)("activeItemPath",te.activeItemPath())}}let Dn=(()=>{class TieredMenuSub{el;renderer;tieredMenu;items;itemTemplate;root=!1;autoDisplay;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath=(0,ce.hFB)([]);tabindex=0;itemClick=new ce.bkB;itemMouseEnter=new ce.bkB;menuFocus=new ce.bkB;menuBlur=new ce.bkB;menuKeydown=new ce.bkB;sublistViewChild;constructor(te,ne,ie){this.el=te,this.renderer=ne,this.tieredMenu=ie,(0,ce.QZP)((()=>{const te=this.activeItemPath();wn.BF.isNotEmpty(te)&&this.positionSubmenu()}))}positionSubmenu(){if((0,le.UE)(this.tieredMenu.platformId)){const te=this.sublistViewChild&&this.sublistViewChild.nativeElement;if(te){const ne=te.parentElement.parentElement,ie=_n.D.getOffset(ne),re=_n.D.getViewport(),le=te.offsetParent?te.offsetWidth:_n.D.getOuterWidth(te),ce=_n.D.getOuterWidth(ne.children[0]),de="p-submenu-list-flipped";parseInt(ie.left,10)+ce+le>re.width-_n.D.calculateScrollbarWidth()?_n.D.addClass(te,de):_n.D.hasClass(te,de)&&_n.D.removeClass(te,de)}}}getItemProp(te,ne,ie=null){return te&&te.item?wn.BF.getItemValue(te.item[ne],ie):void 0}getItemId(te){return te.item?.id??`${this.menuId}_${te.key}`}getItemKey(te){return this.getItemId(te)}getItemClass(te){return{...this.getItemProp(te,"class"),"p-menuitem":!0,"p-highlight":this.isItemActive(te),"p-menuitem-active":this.isItemActive(te),"p-focus":this.isItemFocused(te),"p-disabled":this.isItemDisabled(te)}}getItemLabel(te){return this.getItemProp(te,"label")}getSeparatorItemClass(te){return{...this.getItemProp(te,"class"),"p-menuitem-separator":!0}}getAriaSetSize(){return this.items.filter((te=>this.isItemVisible(te)&&!this.getItemProp(te,"separator"))).length}getAriaPosInset(te){return te-this.items.slice(0,te).filter((te=>{const ne=this.isItemVisible(te),ie=ne&&this.getItemProp(te,"separator");return!ne||ie})).length+1}isItemVisible(te){return!1!==this.getItemProp(te,"visible")}isItemActive(te){if(this.activeItemPath())return this.activeItemPath().some((ne=>ne.key===te.key))}isItemDisabled(te){return this.getItemProp(te,"disabled")}isItemFocused(te){return this.focusedItemId===this.getItemId(te)}isItemGroup(te){return wn.BF.isNotEmpty(te.items)}onItemMouseEnter(te){if(this.autoDisplay){const{event:ne,processedItem:ie}=te;this.itemMouseEnter.emit({originalEvent:ne,processedItem:ie})}}onItemClick(te,ne){this.getItemProp(ne,"command",{originalEvent:te,item:ne.item}),this.itemClick.emit({originalEvent:te,processedItem:ne,isFocus:!0})}static ɵfac=function TieredMenuSub_Factory(te){return new(te||TieredMenuSub)(ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU((0,ce.Rfq)((()=>xn))))};static ɵcmp=ce.VBU({type:TieredMenuSub,selectors:[["p-tieredMenuSub"]],viewQuery:function TieredMenuSub_Query(te,ne){if(1&te&&ce.GBs(kn,7),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.sublistViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{items:"items",itemTemplate:"itemTemplate",root:[ce.Mj6.HasDecoratorInputTransform,"root","root",ce.L39],autoDisplay:[ce.Mj6.HasDecoratorInputTransform,"autoDisplay","autoDisplay",ce.L39],autoZIndex:[ce.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",ce.L39],baseZIndex:[ce.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",ce.Udg],popup:[ce.Mj6.HasDecoratorInputTransform,"popup","popup",ce.L39],menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:[ce.Mj6.HasDecoratorInputTransform,"level","level",ce.Udg],focusedItemId:"focusedItemId",activeItemPath:[ce.Mj6.SignalBased,"activeItemPath"],tabindex:[ce.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",ce.Udg]},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},features:[ce.GFd],decls:3,vars:12,consts:[["role","menu",3,"ngClass","id","tabindex","keydown","focus","blur"],["sublist",""],["ngFor","",3,"ngForOf"],["role","separator",3,"ngStyle","ngClass",4,"ngIf"],["role","menuitem",3,"ngStyle","ngClass","class","pTooltip","tooltipOptions",4,"ngIf"],["role","separator",3,"ngStyle","ngClass"],["role","menuitem",3,"ngStyle","ngClass","pTooltip","tooltipOptions"],["listItem",""],[1,"p-menuitem-content",3,"click","mouseenter"],[4,"ngIf"],[3,"items","itemTemplate","autoDisplay","menuId","activeItemPath","focusedItemId","ariaLabelledBy","level","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"items","itemTemplate","autoDisplay","menuId","activeItemPath","focusedItemId","ariaLabelledBy","level","itemClick","itemMouseEnter"]],template:function TieredMenuSub_Template(te,ne){1&te&&(ce.j41(0,"ul",0,1),ce.bIt("keydown",(function TieredMenuSub_Template_ul_keydown_0_listener(te){return ne.menuKeydown.emit(te)}))("focus",(function TieredMenuSub_Template_ul_focus_0_listener(te){return ne.menuFocus.emit(te)}))("blur",(function TieredMenuSub_Template_ul_blur_0_listener(te){return ne.menuBlur.emit(te)})),ce.DNE(2,TieredMenuSub_ng_template_2_Template,2,2,"ng-template",2),ce.k0s()),2&te&&(ce.Y8G("ngClass",ce.l_i(9,primeng_tieredmenu_c4,!ne.root,ne.root))("id",ne.menuId+"_list")("tabindex",ne.tabindex),ce.BMQ("aria-label",ne.ariaLabel)("aria-labelledBy",ne.ariaLabelledBy)("aria-activedescendant",ne.focusedItemId)("aria-orientation","vertical")("data-pc-section","menu"),ce.R7$(2),ce.Y8G("ngForOf",ne.items))},dependencies:()=>[le.YU,le.Sq,le.bT,le.T3,le.B3,fn.Wk,fn.wQ,yn.n,Vt.m,bn.D,TieredMenuSub],encapsulation:2})}return TieredMenuSub})(),xn=(()=>{class TieredMenu{document;platformId;el;renderer;cd;config;overlayService;set model(te){this._model=te,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}popup;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;autoDisplay=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";id;ariaLabel;ariaLabelledBy;disabled=!1;tabindex=0;onShow=new ce.bkB;onHide=new ce.bkB;templates;rootmenu;containerViewChild;submenuIconTemplate;itemTemplate;container;outsideClickListener;resizeListener;scrollHandler;target;relatedTarget;visible;relativeAlign;dirty=!1;focused=!1;activeItemPath=(0,ce.vPA)([]);number=(0,ce.vPA)(0);focusedItemInfo=(0,ce.vPA)({index:-1,level:0,parentKey:"",item:null});searchValue="";searchTimeout;_processedItems;_model;get visibleItems(){const te=this.activeItemPath().find((te=>te.key===this.focusedItemInfo().parentKey));return te?te.items:this.processedItems}get processedItems(){return this._processedItems&&this._processedItems.length||(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){const te=this.focusedItemInfo();return te.item?.id?te.item.id:-1!==te.index?`${this.id}${wn.BF.isNotEmpty(te.parentKey)?"_"+te.parentKey:""}_${te.index}`:null}constructor(te,ne,ie,re,le,de,ue){this.document=te,this.platformId=ne,this.el=ie,this.renderer=re,this.cd=le,this.config=de,this.overlayService=ue,(0,ce.QZP)((()=>{const te=this.activeItemPath();wn.BF.isNotEmpty(te)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener())}))}ngOnInit(){this.id=this.id||(0,wn._Y)()}ngAfterContentInit(){this.templates?.forEach((te=>{if("submenuicon"===te.getType())this.submenuIconTemplate=te.template;else this.itemTemplate=te.template}))}createProcessedItems(te,ne=0,ie={},re=""){const le=[];return te&&te.forEach(((te,ce)=>{const de=(""!==re?re+"_":"")+ce,ue={item:te,index:ce,level:ne,key:de,parent:ie,parentKey:re};ue.items=this.createProcessedItems(te.items,ne+1,ue,de),le.push(ue)})),le}getItemProp(te,ne){return te?wn.BF.getItemValue(te[ne]):void 0}getProccessedItemLabel(te){return te?this.getItemLabel(te.item):void 0}getItemLabel(te){return this.getItemProp(te,"label")}isProcessedItemGroup(te){return te&&wn.BF.isNotEmpty(te.items)}isSelected(te){return this.activeItemPath().some((ne=>ne.key===te.key))}isValidSelectedItem(te){return this.isValidItem(te)&&this.isSelected(te)}isValidItem(te){return!!te&&!this.isItemDisabled(te.item)&&!this.isItemSeparator(te.item)&&this.isItemVisible(te.item)}isItemDisabled(te){return this.getItemProp(te,"disabled")}isItemVisible(te){return!1!==this.getItemProp(te,"visible")}isItemSeparator(te){return this.getItemProp(te,"separator")}isItemMatched(te){return this.isValidItem(te)&&this.getProccessedItemLabel(te).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(te){return te&&wn.BF.isNotEmpty(te.items)}onOverlayClick(te){this.popup&&this.overlayService.add({originalEvent:te,target:this.el.nativeElement})}onItemClick(te){const{originalEvent:ne,processedItem:ie}=te,re=this.isProcessedItemGroup(ie),le=wn.BF.isEmpty(ie.parent);if(this.isSelected(ie)){const{index:te,key:ne,level:re,parentKey:le,item:ce}=ie;this.activeItemPath.set(this.activeItemPath().filter((te=>ne!==te.key&&ne.startsWith(te.key)))),this.focusedItemInfo.set({index:te,level:re,parentKey:le,item:ce}),this.dirty=!0,_n.D.focus(this.rootmenu.sublistViewChild.nativeElement)}else if(re)this.onItemChange(te);else{const te=le?ie:this.activeItemPath().find((te=>""===te.parentKey));this.hide(ne),this.changeFocusedItemIndex(ne,te?te.index:-1),_n.D.focus(this.rootmenu.sublistViewChild.nativeElement)}}onItemMouseEnter(te){_n.D.isTouchDevice()?this.onItemChange({event:te,processedItem:te.processedItem,focus:this.autoDisplay}):(this.autoDisplay&&(this.dirty=!0),this.dirty&&this.onItemChange(te))}onKeyDown(te){const ne=te.metaKey||te.ctrlKey;switch(te.code){case"ArrowDown":this.onArrowDownKey(te);break;case"ArrowUp":this.onArrowUpKey(te);break;case"ArrowLeft":this.onArrowLeftKey(te);break;case"ArrowRight":this.onArrowRightKey(te);break;case"Home":this.onHomeKey(te);break;case"End":this.onEndKey(te);break;case"Space":this.onSpaceKey(te);break;case"Enter":this.onEnterKey(te);break;case"Escape":this.onEscapeKey(te);break;case"Tab":this.onTabKey(te);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!ne&&wn.BF.isPrintableCharacter(te.key)&&this.searchItems(te,te.key)}}onArrowDownKey(te){const ne=-1!==this.focusedItemInfo().index?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(te,ne),te.preventDefault()}onArrowRightKey(te){const ne=this.visibleItems[this.focusedItemInfo().index],ie=this.isProccessedItemGroup(ne),re=ne?.item;ie&&(this.onItemChange({originalEvent:te,processedItem:ne}),this.focusedItemInfo.set({index:-1,parentKey:ne.key,item:re}),this.searchValue="",this.onArrowDownKey(te)),te.preventDefault()}onArrowUpKey(te){if(te.altKey){if(-1!==this.focusedItemInfo().index){const ne=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(ne)&&this.onItemChange({originalEvent:te,processedItem:ne})}this.popup&&this.hide(te,!0),te.preventDefault()}else{const ne=-1!==this.focusedItemInfo().index?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(te,ne),te.preventDefault()}}onArrowLeftKey(te){const ne=this.visibleItems[this.focusedItemInfo().index],ie=this.activeItemPath().find((te=>te.key===ne.parentKey));wn.BF.isEmpty(ne.parent)||(this.focusedItemInfo.set({index:-1,parentKey:ie?ie.parentKey:"",item:ne.item}),this.searchValue="",this.onArrowDownKey(te));const re=this.activeItemPath().filter((te=>te.parentKey!==this.focusedItemInfo().parentKey));this.activeItemPath.set(re),te.preventDefault()}onHomeKey(te){this.changeFocusedItemIndex(te,this.findFirstItemIndex()),te.preventDefault()}onEndKey(te){this.changeFocusedItemIndex(te,this.findLastItemIndex()),te.preventDefault()}onSpaceKey(te){this.onEnterKey(te)}onEscapeKey(te){this.hide(te,!0),this.focusedItemInfo().index=this.findFirstFocusedItemIndex(),te.preventDefault()}onTabKey(te){if(-1!==this.focusedItemInfo().index){const ne=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(ne)&&this.onItemChange({originalEvent:te,processedItem:ne})}this.hide()}onEnterKey(te){if(-1!==this.focusedItemInfo().index){const te=_n.D.findSingle(this.rootmenu.el.nativeElement,`li[id="${this.focusedItemId}"]`),ne=te&&_n.D.findSingle(te,'a[data-pc-section="action"]');if(ne?ne.click():te&&te.click(),!this.popup){const te=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(te)&&(this.focusedItemInfo().index=this.findFirstFocusedItemIndex())}}te.preventDefault()}onItemChange(te){const{processedItem:ne,isFocus:ie}=te;if(wn.BF.isEmpty(ne))return;const{index:re,key:le,level:ce,parentKey:de,items:ue,item:me}=ne,ge=wn.BF.isNotEmpty(ue),fe=this.activeItemPath().filter((te=>te.parentKey!==de&&te.parentKey!==le));ge&&fe.push(ne),this.focusedItemInfo.set({index:re,level:ce,parentKey:de,item:me}),this.activeItemPath.set(fe),ge&&(this.dirty=!0),ie&&_n.D.focus(this.rootmenu.sublistViewChild.nativeElement)}onMenuFocus(te){this.focused=!0,-1===this.focusedItemInfo().index&&this.popup}onMenuBlur(te){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue="",this.dirty=!1}onOverlayAnimationStart(te){switch(te.toState){case"visible":this.popup&&(this.container=te.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindOutsideClickListener(),this.bindResizeListener(),this.bindScrollListener(),_n.D.focus(this.rootmenu.sublistViewChild.nativeElement),this.scrollInView());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}alignOverlay(){this.relativeAlign?_n.D.relativePosition(this.container,this.target):_n.D.absolutePosition(this.container,this.target)}onOverlayAnimationEnd(te){if("void"===te.toState)wn.Q$.clear(te.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):_n.D.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}moveOnTop(){this.autoZIndex&&wn.Q$.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(te,ne){this.popup&&(this.onHide.emit({}),this.visible=!1),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:""}),ne&&_n.D.focus(this.relatedTarget||this.target||this.rootmenu.sublistViewChild.nativeElement),this.dirty=!1}toggle(te){this.visible?this.hide(te,!0):this.show(te)}show(te,ne){this.popup&&(this.visible=!0,this.target=this.target||te.currentTarget,this.relatedTarget=te.relatedTarget||null,this.relativeAlign=te?.relativeAlign||null),this.focusedItemInfo.set({index:-1,level:0,parentKey:""}),ne&&_n.D.focus(this.rootmenu.sublistViewChild.nativeElement),this.cd.markForCheck()}searchItems(te,ne){this.searchValue=(this.searchValue||"")+ne;let ie=-1,re=!1;return-1!==this.focusedItemInfo().index?(ie=this.visibleItems.slice(this.focusedItemInfo().index).findIndex((te=>this.isItemMatched(te))),ie=-1===ie?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex((te=>this.isItemMatched(te))):ie+this.focusedItemInfo().index):ie=this.visibleItems.findIndex((te=>this.isItemMatched(te))),-1!==ie&&(re=!0),-1===ie&&-1===this.focusedItemInfo().index&&(ie=this.findFirstFocusedItemIndex()),-1!==ie&&this.changeFocusedItemIndex(te,ie),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((()=>{this.searchValue="",this.searchTimeout=null}),500),re}findLastFocusedItemIndex(){const te=this.findSelectedItemIndex();return te<0?this.findLastItemIndex():te}findLastItemIndex(){return wn.BF.findLastIndex(this.visibleItems,(te=>this.isValidItem(te)))}findPrevItemIndex(te){const ne=te>0?wn.BF.findLastIndex(this.visibleItems.slice(0,te),(te=>this.isValidItem(te))):-1;return ne>-1?ne:te}findNextItemIndex(te){const ne=te<this.visibleItems.length-1?this.visibleItems.slice(te+1).findIndex((te=>this.isValidItem(te))):-1;return ne>-1?ne+te+1:te}findFirstFocusedItemIndex(){const te=this.findSelectedItemIndex();return te<0?this.findFirstItemIndex():te}findFirstItemIndex(){return this.visibleItems.findIndex((te=>this.isValidItem(te)))}findSelectedItemIndex(){return this.visibleItems.findIndex((te=>this.isValidSelectedItem(te)))}changeFocusedItemIndex(te,ne){if(this.focusedItemInfo().index!==ne){const te=this.focusedItemInfo();this.focusedItemInfo.set({...te,item:this.visibleItems[ne].item,index:ne}),this.scrollInView()}}scrollInView(te=-1){const ne=-1!==te?`${this.id}_${te}`:this.focusedItemId,ie=_n.D.findSingle(this.rootmenu.el.nativeElement,`li[id="${ne}"]`);ie&&ie.scrollIntoView&&ie.scrollIntoView({block:"nearest",inline:"nearest"})}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new _n.b(this.target,(te=>{this.visible&&this.hide(te,!0)}))),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&(this.scrollHandler.unbindScrollListener(),this.scrollHandler=null)}bindResizeListener(){(0,le.UE)(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",(te=>{_n.D.isTouchDevice()||this.hide(te,!0)}))))}bindOutsideClickListener(){(0,le.UE)(this.platformId)&&(this.outsideClickListener||(this.outsideClickListener=this.renderer.listen(this.document,"click",(te=>{const ne=this.containerViewChild&&!this.containerViewChild.nativeElement.contains(te.target),ie=!this.popup||!(this.target&&(this.target===te.target||this.target.contains(te.target)));ne&&ie&&this.hide()}))))}unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}onOverlayHide(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindScrollListener(),this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&wn.Q$.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}static ɵfac=function TieredMenu_Factory(te){return new(te||TieredMenu)(ce.rXU(le.qQ),ce.rXU(ce.Agw),ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(ce.gRc),ce.rXU(de.r1),ce.rXU(de.si))};static ɵcmp=ce.VBU({type:TieredMenu,selectors:[["p-tieredMenu"]],contentQueries:function TieredMenu_ContentQueries(te,ne,ie){if(1&te&&ce.wni(ie,de.Ei,4),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.templates=te)}},viewQuery:function TieredMenu_Query(te,ne){if(1&te&&(ce.GBs(In,5),ce.GBs(Tn,5)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.rootmenu=te.first),ce.mGM(te=ce.lsd())&&(ne.containerViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:[ce.Mj6.HasDecoratorInputTransform,"popup","popup",ce.L39],style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:[ce.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",ce.L39],baseZIndex:[ce.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",ce.Udg],autoDisplay:[ce.Mj6.HasDecoratorInputTransform,"autoDisplay","autoDisplay",ce.L39],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:[ce.Mj6.HasDecoratorInputTransform,"disabled","disabled",ce.L39],tabindex:[ce.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",ce.Udg]},outputs:{onShow:"onShow",onHide:"onHide"},features:[ce.GFd],decls:1,vars:1,consts:[[3,"id","ngClass","class","ngStyle","click",4,"ngIf"],[3,"id","ngClass","ngStyle","click"],["container",""],[3,"root","items","itemTemplate","menuId","tabindex","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","autoDisplay","popup","focusedItemId","activeItemPath","itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter"],["rootmenu",""]],template:function TieredMenu_Template(te,ne){1&te&&ce.DNE(0,TieredMenu_div_0_Template,4,29,"div",0),2&te&&ce.Y8G("ngIf",!ne.popup||ne.visible)},dependencies:[le.YU,le.bT,le.B3,Dn],styles:["@layer primeng{.p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu ul{margin:0;padding:0;list-style:none}.p-tieredmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}.p-tieredmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu .p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-tieredmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}}\n"],encapsulation:2,data:{animation:[(0,re.hZ)("overlayAnimation",[(0,re.kY)(":enter",[(0,re.iF)({opacity:0,transform:"scaleY(0.8)"}),(0,re.i0)("{{showTransitionParams}}")]),(0,re.kY)(":leave",[(0,re.i0)("{{hideTransitionParams}}",(0,re.iF)({opacity:0}))])])]},changeDetection:0})}return TieredMenu})(),En=(()=>{class TieredMenuModule{static ɵfac=function TieredMenuModule_Factory(te){return new(te||TieredMenuModule)};static ɵmod=ce.$C({type:TieredMenuModule});static ɵinj=ce.G2t({imports:[le.MD,fn.iI,yn.Z,Vt.S,bn.D,de.Gg,fn.iI,Vt.S,de.Gg]})}return TieredMenuModule})();function Toolbar_div_2_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function Toolbar_div_2_Template(te,ne){if(1&te&&(ce.j41(0,"div",4),ce.DNE(1,Toolbar_div_2_ng_container_1_Template,1,0,"ng-container",5),ce.k0s()),2&te){const te=ce.XpG();ce.BMQ("data-pc-section","start"),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.startTemplate)}}function Toolbar_div_3_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function Toolbar_div_3_Template(te,ne){if(1&te&&(ce.j41(0,"div",6),ce.DNE(1,Toolbar_div_3_ng_container_1_Template,1,0,"ng-container",5),ce.k0s()),2&te){const te=ce.XpG();ce.BMQ("data-pc-section","center"),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.centerTemplate)}}function Toolbar_div_4_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function Toolbar_div_4_Template(te,ne){if(1&te&&(ce.j41(0,"div",7),ce.DNE(1,Toolbar_div_4_ng_container_1_Template,1,0,"ng-container",5),ce.k0s()),2&te){const te=ce.XpG();ce.BMQ("data-pc-section","end"),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.endTemplate)}}const Rn=["*"];let Ln=(()=>{class Toolbar{el;style;styleClass;ariaLabelledBy;templates;startTemplate;endTemplate;centerTemplate;constructor(te){this.el=te}getBlockableElement(){return this.el.nativeElement.children[0]}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"start":case"left":this.startTemplate=te.template;break;case"end":case"right":this.endTemplate=te.template;break;case"center":this.centerTemplate=te.template}}))}static ɵfac=function Toolbar_Factory(te){return new(te||Toolbar)(ce.rXU(ce.aKT))};static ɵcmp=ce.VBU({type:Toolbar,selectors:[["p-toolbar"]],contentQueries:function Toolbar_ContentQueries(te,ne,ie){if(1&te&&ce.wni(ie,de.Ei,4),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy"},ngContentSelectors:Rn,decls:5,vars:9,consts:[["role","toolbar",3,"ngClass","ngStyle"],["class","p-toolbar-group-left p-toolbar-group-start",4,"ngIf"],["class","p-toolbar-group-center",4,"ngIf"],["class","p-toolbar-group-right p-toolbar-group-end",4,"ngIf"],[1,"p-toolbar-group-left","p-toolbar-group-start"],[4,"ngTemplateOutlet"],[1,"p-toolbar-group-center"],[1,"p-toolbar-group-right","p-toolbar-group-end"]],template:function Toolbar_Template(te,ne){1&te&&(ce.NAR(),ce.j41(0,"div",0),ce.SdG(1),ce.DNE(2,Toolbar_div_2_Template,2,2,"div",1)(3,Toolbar_div_3_Template,2,2,"div",2)(4,Toolbar_div_4_Template,2,2,"div",3),ce.k0s()),2&te&&(ce.HbH(ne.styleClass),ce.Y8G("ngClass","p-toolbar p-component")("ngStyle",ne.style),ce.BMQ("aria-labelledby",ne.ariaLabelledBy)("data-pc-name","toolbar"),ce.R7$(2),ce.Y8G("ngIf",ne.startTemplate),ce.R7$(),ce.Y8G("ngIf",ne.centerTemplate),ce.R7$(),ce.Y8G("ngIf",ne.endTemplate))},dependencies:[le.YU,le.bT,le.T3,le.B3],styles:["@layer primeng{.p-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.p-toolbar-group-start,.p-toolbar-group-center,.p-toolbar-group-end,.p-toolbar-group-left,.p-toolbar-group-right{display:flex;align-items:center}}\n"],encapsulation:2,changeDetection:0})}return Toolbar})(),On=(()=>{class ToolbarModule{static ɵfac=function ToolbarModule_Factory(te){return new(te||ToolbarModule)};static ɵmod=ce.$C({type:ToolbarModule});static ɵinj=ce.G2t({imports:[le.MD,de.Gg,de.Gg]})}return ToolbarModule})();var Pn=ie(605),Fn={version:"0.18.5"},jn=1200,Vn=1252,Gn=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],zn={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},set_ansi=function(te){-1!=Gn.indexOf(te)&&(Vn=zn[0]=te)};var set_cp=function(te){jn=te,set_ansi(te)};function reset_cp(){set_cp(1200),function reset_ansi(){set_ansi(1252)}()}function utf16beread(te){for(var ne=[],ie=0;ie<te.length>>1;++ie)ne[ie]=String.fromCharCode(te.charCodeAt(2*ie+1)+(te.charCodeAt(2*ie)<<8));return ne.join("")}var Hn,Un=function _gc1(te){return String.fromCharCode(te)},$n=function _ga1(te){return String.fromCharCode(te)};var qn=null,Yn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Base64_encode(te){for(var ne="",ie=0,re=0,le=0,ce=0,de=0,ue=0,me=0,ge=0;ge<te.length;)ce=(ie=te.charCodeAt(ge++))>>2,de=(3&ie)<<4|(re=te.charCodeAt(ge++))>>4,ue=(15&re)<<2|(le=te.charCodeAt(ge++))>>6,me=63&le,isNaN(re)?ue=me=64:isNaN(le)&&(me=64),ne+=Yn.charAt(ce)+Yn.charAt(de)+Yn.charAt(ue)+Yn.charAt(me);return ne}function Base64_decode(te){var ne="",ie=0,re=0,le=0,ce=0,de=0,ue=0;te=te.replace(/[^\w\+\/\=]/g,"");for(var me=0;me<te.length;)ie=Yn.indexOf(te.charAt(me++))<<2|(ce=Yn.indexOf(te.charAt(me++)))>>4,ne+=String.fromCharCode(ie),re=(15&ce)<<4|(de=Yn.indexOf(te.charAt(me++)))>>2,64!==de&&(ne+=String.fromCharCode(re)),le=(3&de)<<6|(ue=Yn.indexOf(te.charAt(me++))),64!==ue&&(ne+=String.fromCharCode(le));return ne}var Wn=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),Kn=function(){if("undefined"!=typeof Buffer){var te=!Buffer.from;if(!te)try{Buffer.from("foo","utf8")}catch(ne){te=!0}return te?function(te,ne){return ne?new Buffer(te,ne):new Buffer(te)}:Buffer.from.bind(Buffer)}return function(){}}();function new_raw_buf(te){return Wn?Buffer.alloc?Buffer.alloc(te):new Buffer(te):"undefined"!=typeof Uint8Array?new Uint8Array(te):new Array(te)}function new_unsafe_buf(te){return Wn?Buffer.allocUnsafe?Buffer.allocUnsafe(te):new Buffer(te):"undefined"!=typeof Uint8Array?new Uint8Array(te):new Array(te)}var Qn=function s2a(te){return Wn?Kn(te,"binary"):te.split("").map((function(te){return 255&te.charCodeAt(0)}))};function s2ab(te){if("undefined"==typeof ArrayBuffer)return Qn(te);for(var ne=new ArrayBuffer(te.length),ie=new Uint8Array(ne),re=0;re!=te.length;++re)ie[re]=255&te.charCodeAt(re);return ne}function a2s(te){if(Array.isArray(te))return te.map((function(te){return String.fromCharCode(te)})).join("");for(var ne=[],ie=0;ie<te.length;++ie)ne[ie]=String.fromCharCode(te[ie]);return ne.join("")}var Jn=Wn?function(te){return Buffer.concat(te.map((function(te){return Buffer.isBuffer(te)?te:Kn(te)})))}:function(te){if("undefined"!=typeof Uint8Array){var ne=0,ie=0;for(ne=0;ne<te.length;++ne)ie+=te[ne].length;var re=new Uint8Array(ie),le=0;for(ne=0,ie=0;ne<te.length;ie+=le,++ne)if(le=te[ne].length,te[ne]instanceof Uint8Array)re.set(te[ne],ie);else{if("string"==typeof te[ne])throw"wtf";re.set(new Uint8Array(te[ne]),ie)}return re}return[].concat.apply([],te.map((function(te){return Array.isArray(te)?te:[].slice.call(te)})))};var Zn=/\u0000/g,pi=/[\u0001-\u0006]/g;function _strrev(te){for(var ne="",ie=te.length-1;ie>=0;)ne+=te.charAt(ie--);return ne}function pad0(te,ne){var ie=""+te;return ie.length>=ne?ie:fill("0",ne-ie.length)+ie}function pad_(te,ne){var ie=""+te;return ie.length>=ne?ie:fill(" ",ne-ie.length)+ie}function rpad_(te,ne){var ie=""+te;return ie.length>=ne?ie:ie+fill(" ",ne-ie.length)}var gi=Math.pow(2,32);function pad0r(te,ne){return te>gi||te<-gi?function pad0r1(te,ne){var ie=""+Math.round(te);return ie.length>=ne?ie:fill("0",ne-ie.length)+ie}(te,ne):function pad0r2(te,ne){var ie=""+te;return ie.length>=ne?ie:fill("0",ne-ie.length)+ie}(Math.round(te),ne)}function SSF_isgeneral(te,ne){return ne=ne||0,te.length>=7+ne&&103==(32|te.charCodeAt(ne))&&101==(32|te.charCodeAt(ne+1))&&110==(32|te.charCodeAt(ne+2))&&101==(32|te.charCodeAt(ne+3))&&114==(32|te.charCodeAt(ne+4))&&97==(32|te.charCodeAt(ne+5))&&108==(32|te.charCodeAt(ne+6))}var fi=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],yi=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var ki={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Ri={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Pi={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function SSF_frac(te,ne,ie){for(var re=te<0?-1:1,le=te*re,ce=0,de=1,ue=0,me=1,ge=0,fe=0,_e=Math.floor(le);ge<ne&&(ue=(_e=Math.floor(le))*de+ce,fe=_e*ge+me,!(le-_e<5e-8));)le=1/(le-_e),ce=de,de=ue,me=ge,ge=fe;if(fe>ne&&(ge>ne?(fe=me,ue=ce):(fe=ge,ue=de)),!ie)return[0,re*ue,fe];var be=Math.floor(re*ue/fe);return[be,re*ue-be*fe,fe]}function SSF_parse_date_code(te,ne,ie){if(te>2958465||te<0)return null;var re=0|te,le=Math.floor(86400*(te-re)),ce=0,de=[],ue={D:re,T:le,u:86400*(te-re)-le,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(ue.u)<1e-6&&(ue.u=0),ne&&ne.date1904&&(re+=1462),ue.u>.9999&&(ue.u=0,86400==++le&&(ue.T=le=0,++re,++ue.D)),60===re)de=ie?[1317,10,29]:[1900,2,29],ce=3;else if(0===re)de=ie?[1317,8,29]:[1900,1,0],ce=6;else{re>60&&--re;var me=new Date(1900,0,1);me.setDate(me.getDate()+re-1),de=[me.getFullYear(),me.getMonth()+1,me.getDate()],ce=me.getDay(),re<60&&(ce=(ce+6)%7),ie&&(ce=function SSF_fix_hijri(te,ne){ne[0]-=581;var ie=te.getDay();te<60&&(ie=(ie+6)%7);return ie}(me,de))}return ue.y=de[0],ue.m=de[1],ue.d=de[2],ue.S=le%60,le=Math.floor(le/60),ue.M=le%60,le=Math.floor(le/60),ue.H=le,ue.q=ce,ue}var Fi=new Date(1899,11,31,0,0,0),ji=Fi.getTime(),Vi=new Date(1900,2,1,0,0,0);function datenum_local(te,ne){var ie=te.getTime();return ne?ie-=1262304e5:te>=Vi&&(ie+=864e5),(ie-(ji+6e4*(te.getTimezoneOffset()-Fi.getTimezoneOffset())))/864e5}function SSF_strip_decimal(te){return-1==te.indexOf(".")?te:te.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function SSF_general_num(te){var ne,ie=Math.floor(Math.log(Math.abs(te))*Math.LOG10E);return ne=ie>=-4&&ie<=-1?te.toPrecision(10+ie):Math.abs(ie)<=9?function SSF_small_exp(te){var ne=te<0?12:11,ie=SSF_strip_decimal(te.toFixed(12));return ie.length<=ne||(ie=te.toPrecision(10)).length<=ne?ie:te.toExponential(5)}(te):10===ie?te.toFixed(10).substr(0,12):function SSF_large_exp(te){var ne=SSF_strip_decimal(te.toFixed(11));return ne.length>(te<0?12:11)||"0"===ne||"-0"===ne?te.toPrecision(6):ne}(te),SSF_strip_decimal(function SSF_normalize_exp(te){return-1==te.indexOf("E")?te:te.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(ne.toUpperCase()))}function SSF_general(te,ne){switch(typeof te){case"string":return te;case"boolean":return te?"TRUE":"FALSE";case"number":return(0|te)===te?te.toString(10):SSF_general_num(te);case"undefined":return"";case"object":if(null==te)return"";if(te instanceof Date)return SSF_format(14,datenum_local(te,ne&&ne.date1904),ne)}throw new Error("unsupported value in General format: "+te)}function SSF_write_date(te,ne,ie,re){var le,ce="",de=0,ue=0,me=ie.y,ge=0;switch(te){case 98:me=ie.y+543;case 121:switch(ne.length){case 1:case 2:le=me%100,ge=2;break;default:le=me%1e4,ge=4}break;case 109:switch(ne.length){case 1:case 2:le=ie.m,ge=ne.length;break;case 3:return yi[ie.m-1][1];case 5:return yi[ie.m-1][0];default:return yi[ie.m-1][2]}break;case 100:switch(ne.length){case 1:case 2:le=ie.d,ge=ne.length;break;case 3:return fi[ie.q][0];default:return fi[ie.q][1]}break;case 104:switch(ne.length){case 1:case 2:le=1+(ie.H+11)%12,ge=ne.length;break;default:throw"bad hour format: "+ne}break;case 72:switch(ne.length){case 1:case 2:le=ie.H,ge=ne.length;break;default:throw"bad hour format: "+ne}break;case 77:switch(ne.length){case 1:case 2:le=ie.M,ge=ne.length;break;default:throw"bad minute format: "+ne}break;case 115:if("s"!=ne&&"ss"!=ne&&".0"!=ne&&".00"!=ne&&".000"!=ne)throw"bad second format: "+ne;return 0!==ie.u||"s"!=ne&&"ss"!=ne?(ue=re>=2?3===re?1e3:100:1===re?10:1,(de=Math.round(ue*(ie.S+ie.u)))>=60*ue&&(de=0),"s"===ne?0===de?"0":""+de/ue:(ce=pad0(de,2+re),"ss"===ne?ce.substr(0,2):"."+ce.substr(2,ne.length-1))):pad0(ie.S,ne.length);case 90:switch(ne){case"[h]":case"[hh]":le=24*ie.D+ie.H;break;case"[m]":case"[mm]":le=60*(24*ie.D+ie.H)+ie.M;break;case"[s]":case"[ss]":le=60*(60*(24*ie.D+ie.H)+ie.M)+Math.round(ie.S+ie.u);break;default:throw"bad abstime format: "+ne}ge=3===ne.length?1:2;break;case 101:le=me,ge=1}return ge>0?pad0(le,ge):""}function commaify(te){if(te.length<=3)return te;for(var ne=te.length%3,ie=te.substr(0,ne);ne!=te.length;ne+=3)ie+=(ie.length>0?",":"")+te.substr(ne,3);return ie}var eo=/%/g;function write_num_exp(te,ne){var ie,re=te.indexOf("E")-te.indexOf(".")-1;if(te.match(/^#+0.0E\+0$/)){if(0==ne)return"0.0E+0";if(ne<0)return"-"+write_num_exp(te,-ne);var le=te.indexOf(".");-1===le&&(le=te.indexOf("E"));var ce=Math.floor(Math.log(ne)*Math.LOG10E)%le;if(ce<0&&(ce+=le),-1===(ie=(ne/Math.pow(10,ce)).toPrecision(re+1+(le+ce)%le)).indexOf("e")){var de=Math.floor(Math.log(ne)*Math.LOG10E);for(-1===ie.indexOf(".")?ie=ie.charAt(0)+"."+ie.substr(1)+"E+"+(de-ie.length+ce):ie+="E+"+(de-ce);"0."===ie.substr(0,2);)ie=(ie=ie.charAt(0)+ie.substr(2,le)+"."+ie.substr(2+le)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");ie=ie.replace(/\+-/,"-")}ie=ie.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(te,ne,ie,re){return ne+ie+re.substr(0,(le+ce)%le)+"."+re.substr(ce)+"E"}))}else ie=ne.toExponential(re);return te.match(/E\+00$/)&&ie.match(/e[+-]\d$/)&&(ie=ie.substr(0,ie.length-1)+"0"+ie.charAt(ie.length-1)),te.match(/E\-/)&&ie.match(/e\+/)&&(ie=ie.replace(/e\+/,"e")),ie.replace("e","E")}var to=/# (\?+)( ?)\/( ?)(\d+)/;var no=/^#*0*\.([0#]+)/,io=/\).*[0#]/,oo=/\(###\) ###\\?-####/;function hashq(te){for(var ne,ie="",re=0;re!=te.length;++re)switch(ne=te.charCodeAt(re)){case 35:break;case 63:ie+=" ";break;case 48:ie+="0";break;default:ie+=String.fromCharCode(ne)}return ie}function rnd(te,ne){var ie=Math.pow(10,ne);return""+Math.round(te*ie)/ie}function dec(te,ne){var ie=te-Math.floor(te),re=Math.pow(10,ne);return ne<(""+Math.round(ie*re)).length?0:Math.round(ie*re)}function write_num_flt(te,ne,ie){if(40===te.charCodeAt(0)&&!ne.match(io)){var re=ne.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return ie>=0?write_num_flt("n",re,ie):"("+write_num_flt("n",re,-ie)+")"}if(44===ne.charCodeAt(ne.length-1))return function write_num_cm(te,ne,ie){for(var re=ne.length-1;44===ne.charCodeAt(re-1);)--re;return write_num(te,ne.substr(0,re),ie/Math.pow(10,3*(ne.length-re)))}(te,ne,ie);if(-1!==ne.indexOf("%"))return function write_num_pct(te,ne,ie){var re=ne.replace(eo,""),le=ne.length-re.length;return write_num(te,re,ie*Math.pow(10,2*le))+fill("%",le)}(te,ne,ie);if(-1!==ne.indexOf("E"))return write_num_exp(ne,ie);if(36===ne.charCodeAt(0))return"$"+write_num_flt(te,ne.substr(" "==ne.charAt(1)?2:1),ie);var le,ce,de,ue,me=Math.abs(ie),ge=ie<0?"-":"";if(ne.match(/^00+$/))return ge+pad0r(me,ne.length);if(ne.match(/^[#?]+$/))return"0"===(le=pad0r(ie,0))&&(le=""),le.length>ne.length?le:hashq(ne.substr(0,ne.length-le.length))+le;if(ce=ne.match(to))return function write_num_f1(te,ne,ie){var re=parseInt(te[4],10),le=Math.round(ne*re),ce=Math.floor(le/re),de=le-ce*re,ue=re;return ie+(0===ce?"":""+ce)+" "+(0===de?fill(" ",te[1].length+1+te[4].length):pad_(de,te[1].length)+te[2]+"/"+te[3]+pad0(ue,te[4].length))}(ce,me,ge);if(ne.match(/^#+0+$/))return ge+pad0r(me,ne.length-ne.indexOf("0"));if(ce=ne.match(no))return le=rnd(ie,ce[1].length).replace(/^([^\.]+)$/,"$1."+hashq(ce[1])).replace(/\.$/,"."+hashq(ce[1])).replace(/\.(\d*)$/,(function(te,ne){return"."+ne+fill("0",hashq(ce[1]).length-ne.length)})),-1!==ne.indexOf("0.")?le:le.replace(/^0\./,".");if(ne=ne.replace(/^#+([0.])/,"$1"),ce=ne.match(/^(0*)\.(#*)$/))return ge+rnd(me,ce[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,ce[1].length?"0.":".");if(ce=ne.match(/^#{1,3},##0(\.?)$/))return ge+commaify(pad0r(me,0));if(ce=ne.match(/^#,##0\.([#0]*0)$/))return ie<0?"-"+write_num_flt(te,ne,-ie):commaify(""+(Math.floor(ie)+function carry(te,ne){return ne<(""+Math.round((te-Math.floor(te))*Math.pow(10,ne))).length?1:0}(ie,ce[1].length)))+"."+pad0(dec(ie,ce[1].length),ce[1].length);if(ce=ne.match(/^#,#*,#0/))return write_num_flt(te,ne.replace(/^#,#*,/,""),ie);if(ce=ne.match(/^([0#]+)(\\?-([0#]+))+$/))return le=_strrev(write_num_flt(te,ne.replace(/[\\-]/g,""),ie)),de=0,_strrev(_strrev(ne.replace(/\\/g,"")).replace(/[0#]/g,(function(te){return de<le.length?le.charAt(de++):"0"===te?"0":""})));if(ne.match(oo))return"("+(le=write_num_flt(te,"##########",ie)).substr(0,3)+") "+le.substr(3,3)+"-"+le.substr(6);var fe="";if(ce=ne.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return de=Math.min(ce[4].length,7),ue=SSF_frac(me,Math.pow(10,de)-1,!1),le=""+ge," "==(fe=write_num("n",ce[1],ue[1])).charAt(fe.length-1)&&(fe=fe.substr(0,fe.length-1)+"0"),le+=fe+ce[2]+"/"+ce[3],(fe=rpad_(ue[2],de)).length<ce[4].length&&(fe=hashq(ce[4].substr(ce[4].length-fe.length))+fe),le+=fe;if(ce=ne.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return de=Math.min(Math.max(ce[1].length,ce[4].length),7),ge+((ue=SSF_frac(me,Math.pow(10,de)-1,!0))[0]||(ue[1]?"":"0"))+" "+(ue[1]?pad_(ue[1],de)+ce[2]+"/"+ce[3]+rpad_(ue[2],de):fill(" ",2*de+1+ce[2].length+ce[3].length));if(ce=ne.match(/^[#0?]+$/))return le=pad0r(ie,0),ne.length<=le.length?le:hashq(ne.substr(0,ne.length-le.length))+le;if(ce=ne.match(/^([#0?]+)\.([#0]+)$/)){le=""+ie.toFixed(Math.min(ce[2].length,10)).replace(/([^0])0+$/,"$1"),de=le.indexOf(".");var _e=ne.indexOf(".")-de,be=ne.length-le.length-_e;return hashq(ne.substr(0,_e)+le+ne.substr(ne.length-be))}if(ce=ne.match(/^00,000\.([#0]*0)$/))return de=dec(ie,ce[1].length),ie<0?"-"+write_num_flt(te,ne,-ie):commaify(function flr(te){return te<2147483647&&te>-2147483648?""+(te>=0?0|te:te-1|0):""+Math.floor(te)}(ie)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(te){return"00,"+(te.length<3?pad0(0,3-te.length):"")+te}))+"."+pad0(de,ce[1].length);switch(ne){case"###,##0.00":return write_num_flt(te,"#,##0.00",ie);case"###,###":case"##,###":case"#,###":var Ce=commaify(pad0r(me,0));return"0"!==Ce?ge+Ce:"";case"###,###.00":return write_num_flt(te,"###,##0.00",ie).replace(/^0\./,".");case"#,###.00":return write_num_flt(te,"#,##0.00",ie).replace(/^0\./,".")}throw new Error("unsupported format |"+ne+"|")}function write_num_exp2(te,ne){var ie,re=te.indexOf("E")-te.indexOf(".")-1;if(te.match(/^#+0.0E\+0$/)){if(0==ne)return"0.0E+0";if(ne<0)return"-"+write_num_exp2(te,-ne);var le=te.indexOf(".");-1===le&&(le=te.indexOf("E"));var ce=Math.floor(Math.log(ne)*Math.LOG10E)%le;if(ce<0&&(ce+=le),!(ie=(ne/Math.pow(10,ce)).toPrecision(re+1+(le+ce)%le)).match(/[Ee]/)){var de=Math.floor(Math.log(ne)*Math.LOG10E);-1===ie.indexOf(".")?ie=ie.charAt(0)+"."+ie.substr(1)+"E+"+(de-ie.length+ce):ie+="E+"+(de-ce),ie=ie.replace(/\+-/,"-")}ie=ie.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(te,ne,ie,re){return ne+ie+re.substr(0,(le+ce)%le)+"."+re.substr(ce)+"E"}))}else ie=ne.toExponential(re);return te.match(/E\+00$/)&&ie.match(/e[+-]\d$/)&&(ie=ie.substr(0,ie.length-1)+"0"+ie.charAt(ie.length-1)),te.match(/E\-/)&&ie.match(/e\+/)&&(ie=ie.replace(/e\+/,"e")),ie.replace("e","E")}function write_num_int(te,ne,ie){if(40===te.charCodeAt(0)&&!ne.match(io)){var re=ne.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return ie>=0?write_num_int("n",re,ie):"("+write_num_int("n",re,-ie)+")"}if(44===ne.charCodeAt(ne.length-1))return function write_num_cm2(te,ne,ie){for(var re=ne.length-1;44===ne.charCodeAt(re-1);)--re;return write_num(te,ne.substr(0,re),ie/Math.pow(10,3*(ne.length-re)))}(te,ne,ie);if(-1!==ne.indexOf("%"))return function write_num_pct2(te,ne,ie){var re=ne.replace(eo,""),le=ne.length-re.length;return write_num(te,re,ie*Math.pow(10,2*le))+fill("%",le)}(te,ne,ie);if(-1!==ne.indexOf("E"))return write_num_exp2(ne,ie);if(36===ne.charCodeAt(0))return"$"+write_num_int(te,ne.substr(" "==ne.charAt(1)?2:1),ie);var le,ce,de,ue,me=Math.abs(ie),ge=ie<0?"-":"";if(ne.match(/^00+$/))return ge+pad0(me,ne.length);if(ne.match(/^[#?]+$/))return le=""+ie,0===ie&&(le=""),le.length>ne.length?le:hashq(ne.substr(0,ne.length-le.length))+le;if(ce=ne.match(to))return function write_num_f2(te,ne,ie){return ie+(0===ne?"":""+ne)+fill(" ",te[1].length+2+te[4].length)}(ce,me,ge);if(ne.match(/^#+0+$/))return ge+pad0(me,ne.length-ne.indexOf("0"));if(ce=ne.match(no))return le=(le=(""+ie).replace(/^([^\.]+)$/,"$1."+hashq(ce[1])).replace(/\.$/,"."+hashq(ce[1]))).replace(/\.(\d*)$/,(function(te,ne){return"."+ne+fill("0",hashq(ce[1]).length-ne.length)})),-1!==ne.indexOf("0.")?le:le.replace(/^0\./,".");if(ne=ne.replace(/^#+([0.])/,"$1"),ce=ne.match(/^(0*)\.(#*)$/))return ge+(""+me).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,ce[1].length?"0.":".");if(ce=ne.match(/^#{1,3},##0(\.?)$/))return ge+commaify(""+me);if(ce=ne.match(/^#,##0\.([#0]*0)$/))return ie<0?"-"+write_num_int(te,ne,-ie):commaify(""+ie)+"."+fill("0",ce[1].length);if(ce=ne.match(/^#,#*,#0/))return write_num_int(te,ne.replace(/^#,#*,/,""),ie);if(ce=ne.match(/^([0#]+)(\\?-([0#]+))+$/))return le=_strrev(write_num_int(te,ne.replace(/[\\-]/g,""),ie)),de=0,_strrev(_strrev(ne.replace(/\\/g,"")).replace(/[0#]/g,(function(te){return de<le.length?le.charAt(de++):"0"===te?"0":""})));if(ne.match(oo))return"("+(le=write_num_int(te,"##########",ie)).substr(0,3)+") "+le.substr(3,3)+"-"+le.substr(6);var fe="";if(ce=ne.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return de=Math.min(ce[4].length,7),ue=SSF_frac(me,Math.pow(10,de)-1,!1),le=""+ge," "==(fe=write_num("n",ce[1],ue[1])).charAt(fe.length-1)&&(fe=fe.substr(0,fe.length-1)+"0"),le+=fe+ce[2]+"/"+ce[3],(fe=rpad_(ue[2],de)).length<ce[4].length&&(fe=hashq(ce[4].substr(ce[4].length-fe.length))+fe),le+=fe;if(ce=ne.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return de=Math.min(Math.max(ce[1].length,ce[4].length),7),ge+((ue=SSF_frac(me,Math.pow(10,de)-1,!0))[0]||(ue[1]?"":"0"))+" "+(ue[1]?pad_(ue[1],de)+ce[2]+"/"+ce[3]+rpad_(ue[2],de):fill(" ",2*de+1+ce[2].length+ce[3].length));if(ce=ne.match(/^[#0?]+$/))return le=""+ie,ne.length<=le.length?le:hashq(ne.substr(0,ne.length-le.length))+le;if(ce=ne.match(/^([#0]+)\.([#0]+)$/)){le=""+ie.toFixed(Math.min(ce[2].length,10)).replace(/([^0])0+$/,"$1"),de=le.indexOf(".");var _e=ne.indexOf(".")-de,be=ne.length-le.length-_e;return hashq(ne.substr(0,_e)+le+ne.substr(ne.length-be))}if(ce=ne.match(/^00,000\.([#0]*0)$/))return ie<0?"-"+write_num_int(te,ne,-ie):commaify(""+ie).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(te){return"00,"+(te.length<3?pad0(0,3-te.length):"")+te}))+"."+pad0(0,ce[1].length);switch(ne){case"###,###":case"##,###":case"#,###":var Ce=commaify(""+me);return"0"!==Ce?ge+Ce:"";default:if(ne.match(/\.[0#?]*$/))return write_num_int(te,ne.slice(0,ne.lastIndexOf(".")),ie)+hashq(ne.slice(ne.lastIndexOf(".")))}throw new Error("unsupported format |"+ne+"|")}function write_num(te,ne,ie){return(0|ie)===ie?write_num_int(te,ne,ie):write_num_flt(te,ne,ie)}var ro=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function fmt_is_date(te){for(var ne=0,ie="",re="";ne<te.length;)switch(ie=te.charAt(ne)){case"G":SSF_isgeneral(te,ne)&&(ne+=6),ne++;break;case'"':for(;34!==te.charCodeAt(++ne)&&ne<te.length;);++ne;break;case"\\":case"_":ne+=2;break;case"@":++ne;break;case"B":case"b":if("1"===te.charAt(ne+1)||"2"===te.charAt(ne+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===te.substr(ne,3).toUpperCase())return!0;if("AM/PM"===te.substr(ne,5).toUpperCase())return!0;if("上午/下午"===te.substr(ne,5).toUpperCase())return!0;++ne;break;case"[":for(re=ie;"]"!==te.charAt(ne++)&&ne<te.length;)re+=te.charAt(ne);if(re.match(ro))return!0;break;case".":case"0":case"#":for(;ne<te.length&&("0#?.,E+-%".indexOf(ie=te.charAt(++ne))>-1||"\\"==ie&&"-"==te.charAt(ne+1)&&"0#".indexOf(te.charAt(ne+2))>-1););break;case"?":for(;te.charAt(++ne)===ie;);break;case"*":++ne," "!=te.charAt(ne)&&"*"!=te.charAt(ne)||++ne;break;case"(":case")":++ne;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;ne<te.length&&"0123456789".indexOf(te.charAt(++ne))>-1;);break;default:++ne}return!1}var lo=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function chkcond(te,ne){if(null==ne)return!1;var ie=parseFloat(ne[2]);switch(ne[1]){case"=":if(te==ie)return!0;break;case">":if(te>ie)return!0;break;case"<":if(te<ie)return!0;break;case"<>":if(te!=ie)return!0;break;case">=":if(te>=ie)return!0;break;case"<=":if(te<=ie)return!0}return!1}function choose_fmt(te,ne){var ie=function SSF_split_fmt(te){for(var ne=[],ie=!1,re=0,le=0;re<te.length;++re)switch(te.charCodeAt(re)){case 34:ie=!ie;break;case 95:case 42:case 92:++re;break;case 59:ne[ne.length]=te.substr(le,re-le),le=re+1}if(ne[ne.length]=te.substr(le),!0===ie)throw new Error("Format |"+te+"| unterminated string ");return ne}(te),re=ie.length,le=ie[re-1].indexOf("@");if(re<4&&le>-1&&--re,ie.length>4)throw new Error("cannot find right format for |"+ie.join("|")+"|");if("number"!=typeof ne)return[4,4===ie.length||le>-1?ie[ie.length-1]:"@"];switch(ie.length){case 1:ie=le>-1?["General","General","General",ie[0]]:[ie[0],ie[0],ie[0],"@"];break;case 2:ie=le>-1?[ie[0],ie[0],ie[0],ie[1]]:[ie[0],ie[1],ie[0],"@"];break;case 3:ie=le>-1?[ie[0],ie[1],ie[0],ie[2]]:[ie[0],ie[1],ie[2],"@"]}var ce=ne>0?ie[0]:ne<0?ie[1]:ie[2];if(-1===ie[0].indexOf("[")&&-1===ie[1].indexOf("["))return[re,ce];if(null!=ie[0].match(/\[[=<>]/)||null!=ie[1].match(/\[[=<>]/)){var de=ie[0].match(lo),ue=ie[1].match(lo);return chkcond(ne,de)?[re,ie[0]]:chkcond(ne,ue)?[re,ie[1]]:[re,ie[null!=de&&null!=ue?2:1]]}return[re,ce]}function SSF_format(te,ne,ie){null==ie&&(ie={});var re="";switch(typeof te){case"string":re="m/d/yy"==te&&ie.dateNF?ie.dateNF:te;break;case"number":null==(re=14==te&&ie.dateNF?ie.dateNF:(null!=ie.table?ie.table:ki)[te])&&(re=ie.table&&ie.table[Ri[te]]||ki[Ri[te]]),null==re&&(re=Pi[te]||"General")}if(SSF_isgeneral(re,0))return SSF_general(ne,ie);ne instanceof Date&&(ne=datenum_local(ne,ie.date1904));var le=choose_fmt(re,ne);if(SSF_isgeneral(le[1]))return SSF_general(ne,ie);if(!0===ne)ne="TRUE";else if(!1===ne)ne="FALSE";else if(""===ne||null==ne)return"";return function eval_fmt(te,ne,ie,re){for(var le,ce,de,ue=[],me="",ge=0,fe="",_e="t",be="H";ge<te.length;)switch(fe=te.charAt(ge)){case"G":if(!SSF_isgeneral(te,ge))throw new Error("unrecognized character "+fe+" in "+te);ue[ue.length]={t:"G",v:"General"},ge+=7;break;case'"':for(me="";34!==(de=te.charCodeAt(++ge))&&ge<te.length;)me+=String.fromCharCode(de);ue[ue.length]={t:"t",v:me},++ge;break;case"\\":var Ce=te.charAt(++ge),ye="("===Ce||")"===Ce?Ce:"t";ue[ue.length]={t:ye,v:Ce},++ge;break;case"_":ue[ue.length]={t:"t",v:" "},ge+=2;break;case"@":ue[ue.length]={t:"T",v:ne},++ge;break;case"B":case"b":if("1"===te.charAt(ge+1)||"2"===te.charAt(ge+1)){if(null==le&&null==(le=SSF_parse_date_code(ne,ie,"2"===te.charAt(ge+1))))return"";ue[ue.length]={t:"X",v:te.substr(ge,2)},_e=fe,ge+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":fe=fe.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(ne<0)return"";if(null==le&&null==(le=SSF_parse_date_code(ne,ie)))return"";for(me=fe;++ge<te.length&&te.charAt(ge).toLowerCase()===fe;)me+=fe;"m"===fe&&"h"===_e.toLowerCase()&&(fe="M"),"h"===fe&&(fe=be),ue[ue.length]={t:fe,v:me},_e=fe;break;case"A":case"a":case"上":var we={t:fe,v:fe};if(null==le&&(le=SSF_parse_date_code(ne,ie)),"A/P"===te.substr(ge,3).toUpperCase()?(null!=le&&(we.v=le.H>=12?"P":"A"),we.t="T",be="h",ge+=3):"AM/PM"===te.substr(ge,5).toUpperCase()?(null!=le&&(we.v=le.H>=12?"PM":"AM"),we.t="T",ge+=5,be="h"):"上午/下午"===te.substr(ge,5).toUpperCase()?(null!=le&&(we.v=le.H>=12?"下午":"上午"),we.t="T",ge+=5,be="h"):(we.t="t",++ge),null==le&&"T"===we.t)return"";ue[ue.length]=we,_e=fe;break;case"[":for(me=fe;"]"!==te.charAt(ge++)&&ge<te.length;)me+=te.charAt(ge);if("]"!==me.slice(-1))throw'unterminated "[" block: |'+me+"|";if(me.match(ro)){if(null==le&&null==(le=SSF_parse_date_code(ne,ie)))return"";ue[ue.length]={t:"Z",v:me.toLowerCase()},_e=me.charAt(1)}else me.indexOf("$")>-1&&(me=(me.match(/\$([^-\[\]]*)/)||[])[1]||"$",fmt_is_date(te)||(ue[ue.length]={t:"t",v:me}));break;case".":if(null!=le){for(me=fe;++ge<te.length&&"0"===(fe=te.charAt(ge));)me+=fe;ue[ue.length]={t:"s",v:me};break}case"0":case"#":for(me=fe;++ge<te.length&&"0#?.,E+-%".indexOf(fe=te.charAt(ge))>-1;)me+=fe;ue[ue.length]={t:"n",v:me};break;case"?":for(me=fe;te.charAt(++ge)===fe;)me+=fe;ue[ue.length]={t:fe,v:me},_e=fe;break;case"*":++ge," "!=te.charAt(ge)&&"*"!=te.charAt(ge)||++ge;break;case"(":case")":ue[ue.length]={t:1===re?"t":fe,v:fe},++ge;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(me=fe;ge<te.length&&"0123456789".indexOf(te.charAt(++ge))>-1;)me+=te.charAt(ge);ue[ue.length]={t:"D",v:me};break;case" ":ue[ue.length]={t:fe,v:fe},++ge;break;case"$":ue[ue.length]={t:"t",v:"$"},++ge;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(fe))throw new Error("unrecognized character "+fe+" in "+te);ue[ue.length]={t:"t",v:fe},++ge}var ke,Se=0,xe=0;for(ge=ue.length-1,_e="t";ge>=0;--ge)switch(ue[ge].t){case"h":case"H":ue[ge].t=be,_e="h",Se<1&&(Se=1);break;case"s":(ke=ue[ge].v.match(/\.0+$/))&&(xe=Math.max(xe,ke[0].length-1)),Se<3&&(Se=3);case"d":case"y":case"M":case"e":_e=ue[ge].t;break;case"m":"s"===_e&&(ue[ge].t="M",Se<2&&(Se=2));break;case"X":break;case"Z":Se<1&&ue[ge].v.match(/[Hh]/)&&(Se=1),Se<2&&ue[ge].v.match(/[Mm]/)&&(Se=2),Se<3&&ue[ge].v.match(/[Ss]/)&&(Se=3)}switch(Se){case 0:break;case 1:le.u>=.5&&(le.u=0,++le.S),le.S>=60&&(le.S=0,++le.M),le.M>=60&&(le.M=0,++le.H);break;case 2:le.u>=.5&&(le.u=0,++le.S),le.S>=60&&(le.S=0,++le.M)}var Ee,Me="";for(ge=0;ge<ue.length;++ge)switch(ue[ge].t){case"t":case"T":case" ":case"D":break;case"X":ue[ge].v="",ue[ge].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":ue[ge].v=SSF_write_date(ue[ge].t.charCodeAt(0),ue[ge].v,le,xe),ue[ge].t="t";break;case"n":case"?":for(Ee=ge+1;null!=ue[Ee]&&("?"===(fe=ue[Ee].t)||"D"===fe||(" "===fe||"t"===fe)&&null!=ue[Ee+1]&&("?"===ue[Ee+1].t||"t"===ue[Ee+1].t&&"/"===ue[Ee+1].v)||"("===ue[ge].t&&(" "===fe||"n"===fe||")"===fe)||"t"===fe&&("/"===ue[Ee].v||" "===ue[Ee].v&&null!=ue[Ee+1]&&"?"==ue[Ee+1].t));)ue[ge].v+=ue[Ee].v,ue[Ee]={v:"",t:";"},++Ee;Me+=ue[ge].v,ge=Ee-1;break;case"G":ue[ge].t="t",ue[ge].v=SSF_general(ne,ie)}var Ne,Re,Le="";if(Me.length>0){40==Me.charCodeAt(0)?(Ne=ne<0&&45===Me.charCodeAt(0)?-ne:ne,Re=write_num("n",Me,Ne)):(Re=write_num("n",Me,Ne=ne<0&&re>1?-ne:ne),Ne<0&&ue[0]&&"t"==ue[0].t&&(Re=Re.substr(1),ue[0].v="-"+ue[0].v)),Ee=Re.length-1;var Oe=ue.length;for(ge=0;ge<ue.length;++ge)if(null!=ue[ge]&&"t"!=ue[ge].t&&ue[ge].v.indexOf(".")>-1){Oe=ge;break}var Pe=ue.length;if(Oe===ue.length&&-1===Re.indexOf("E")){for(ge=ue.length-1;ge>=0;--ge)null!=ue[ge]&&-1!=="n?".indexOf(ue[ge].t)&&(Ee>=ue[ge].v.length-1?(Ee-=ue[ge].v.length,ue[ge].v=Re.substr(Ee+1,ue[ge].v.length)):Ee<0?ue[ge].v="":(ue[ge].v=Re.substr(0,Ee+1),Ee=-1),ue[ge].t="t",Pe=ge);Ee>=0&&Pe<ue.length&&(ue[Pe].v=Re.substr(0,Ee+1)+ue[Pe].v)}else if(Oe!==ue.length&&-1===Re.indexOf("E")){for(Ee=Re.indexOf(".")-1,ge=Oe;ge>=0;--ge)if(null!=ue[ge]&&-1!=="n?".indexOf(ue[ge].t)){for(ce=ue[ge].v.indexOf(".")>-1&&ge===Oe?ue[ge].v.indexOf(".")-1:ue[ge].v.length-1,Le=ue[ge].v.substr(ce+1);ce>=0;--ce)Ee>=0&&("0"===ue[ge].v.charAt(ce)||"#"===ue[ge].v.charAt(ce))&&(Le=Re.charAt(Ee--)+Le);ue[ge].v=Le,ue[ge].t="t",Pe=ge}for(Ee>=0&&Pe<ue.length&&(ue[Pe].v=Re.substr(0,Ee+1)+ue[Pe].v),Ee=Re.indexOf(".")+1,ge=Oe;ge<ue.length;++ge)if(null!=ue[ge]&&(-1!=="n?(".indexOf(ue[ge].t)||ge===Oe)){for(ce=ue[ge].v.indexOf(".")>-1&&ge===Oe?ue[ge].v.indexOf(".")+1:0,Le=ue[ge].v.substr(0,ce);ce<ue[ge].v.length;++ce)Ee<Re.length&&(Le+=Re.charAt(Ee++));ue[ge].v=Le,ue[ge].t="t",Pe=ge}}}for(ge=0;ge<ue.length;++ge)null!=ue[ge]&&"n?".indexOf(ue[ge].t)>-1&&(Ne=re>1&&ne<0&&ge>0&&"-"===ue[ge-1].v?-ne:ne,ue[ge].v=write_num(ue[ge].t,ue[ge].v,Ne),ue[ge].t="t");var Fe="";for(ge=0;ge!==ue.length;++ge)null!=ue[ge]&&(Fe+=ue[ge].v);return Fe}(le[1],ne,ie,le[0])}function SSF_load(te,ne){if("number"!=typeof ne){ne=+ne||-1;for(var ie=0;ie<392;++ie)if(null!=ki[ie]){if(ki[ie]==te){ne=ie;break}}else ne<0&&(ne=ie);ne<0&&(ne=391)}return ki[ne]=te,ne}function SSF_load_table(te){for(var ne=0;392!=ne;++ne)void 0!==te[ne]&&SSF_load(te[ne],ne)}function make_ssf(){ki=function SSF_init_table(te){return te||(te={}),te[0]="General",te[1]="0",te[2]="0.00",te[3]="#,##0",te[4]="#,##0.00",te[9]="0%",te[10]="0.00%",te[11]="0.00E+00",te[12]="# ?/?",te[13]="# ??/??",te[14]="m/d/yy",te[15]="d-mmm-yy",te[16]="d-mmm",te[17]="mmm-yy",te[18]="h:mm AM/PM",te[19]="h:mm:ss AM/PM",te[20]="h:mm",te[21]="h:mm:ss",te[22]="m/d/yy h:mm",te[37]="#,##0 ;(#,##0)",te[38]="#,##0 ;[Red](#,##0)",te[39]="#,##0.00;(#,##0.00)",te[40]="#,##0.00;[Red](#,##0.00)",te[45]="mm:ss",te[46]="[h]:mm:ss",te[47]="mmss.0",te[48]="##0.0E+0",te[49]="@",te[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',te}()}var co=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var uo=function(){var te={};te.version="1.2.0";var ne=function signed_crc_table(){for(var te=0,ne=new Array(256),ie=0;256!=ie;++ie)te=1&(te=1&(te=1&(te=1&(te=1&(te=1&(te=1&(te=1&(te=ie)?-306674912^te>>>1:te>>>1)?-306674912^te>>>1:te>>>1)?-306674912^te>>>1:te>>>1)?-306674912^te>>>1:te>>>1)?-306674912^te>>>1:te>>>1)?-306674912^te>>>1:te>>>1)?-306674912^te>>>1:te>>>1)?-306674912^te>>>1:te>>>1,ne[ie]=te;return"undefined"!=typeof Int32Array?new Int32Array(ne):ne}();var ie=function slice_by_16_tables(te){var ne=0,ie=0,re=0,le="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(re=0;256!=re;++re)le[re]=te[re];for(re=0;256!=re;++re)for(ie=te[re],ne=256+re;ne<4096;ne+=256)ie=le[ne]=ie>>>8^te[255&ie];var ce=[];for(re=1;16!=re;++re)ce[re-1]="undefined"!=typeof Int32Array?le.subarray(256*re,256*re+256):le.slice(256*re,256*re+256);return ce}(ne),re=ie[0],le=ie[1],ce=ie[2],de=ie[3],ue=ie[4],me=ie[5],ge=ie[6],fe=ie[7],_e=ie[8],be=ie[9],Ce=ie[10],ye=ie[11],we=ie[12],ke=ie[13],Se=ie[14];return te.table=ne,te.bstr=function crc32_bstr(te,ie){for(var re=-1^ie,le=0,ce=te.length;le<ce;)re=re>>>8^ne[255&(re^te.charCodeAt(le++))];return~re},te.buf=function crc32_buf(te,ie){for(var xe=-1^ie,Ee=te.length-15,Me=0;Me<Ee;)xe=Se[te[Me++]^255&xe]^ke[te[Me++]^xe>>8&255]^we[te[Me++]^xe>>16&255]^ye[te[Me++]^xe>>>24]^Ce[te[Me++]]^be[te[Me++]]^_e[te[Me++]]^fe[te[Me++]]^ge[te[Me++]]^me[te[Me++]]^ue[te[Me++]]^de[te[Me++]]^ce[te[Me++]]^le[te[Me++]]^re[te[Me++]]^ne[te[Me++]];for(Ee+=15;Me<Ee;)xe=xe>>>8^ne[255&(xe^te[Me++])];return~xe},te.str=function crc32_str(te,ie){for(var re=-1^ie,le=0,ce=te.length,de=0,ue=0;le<ce;)(de=te.charCodeAt(le++))<128?re=re>>>8^ne[255&(re^de)]:de<2048?re=(re=re>>>8^ne[255&(re^(192|de>>6&31))])>>>8^ne[255&(re^(128|63&de))]:de>=55296&&de<57344?(de=64+(1023&de),ue=1023&te.charCodeAt(le++),re=(re=(re=(re=re>>>8^ne[255&(re^(240|de>>8&7))])>>>8^ne[255&(re^(128|de>>2&63))])>>>8^ne[255&(re^(128|ue>>6&15|(3&de)<<4))])>>>8^ne[255&(re^(128|63&ue))]):re=(re=(re=re>>>8^ne[255&(re^(224|de>>12&15))])>>>8^ne[255&(re^(128|de>>6&63))])>>>8^ne[255&(re^(128|63&de))];return~re},te}(),mo=function _CFB(){var te,ne={};function dirname(te){if("/"==te.charAt(te.length-1))return-1===te.slice(0,-1).indexOf("/")?te:dirname(te.slice(0,-1));var ne=te.lastIndexOf("/");return-1===ne?te:te.slice(0,ne+1)}function filename(te){if("/"==te.charAt(te.length-1))return filename(te.slice(0,-1));var ne=te.lastIndexOf("/");return-1===ne?te:te.slice(ne+1)}function write_dos_date(te,ne){"string"==typeof ne&&(ne=new Date(ne));var ie=ne.getHours();ie=(ie=ie<<6|ne.getMinutes())<<5|ne.getSeconds()>>>1,te.write_shift(2,ie);var re=ne.getFullYear()-1980;re=(re=re<<4|ne.getMonth()+1)<<5|ne.getDate(),te.write_shift(2,re)}function parse_extra_field(te){prep_blob(te,0);for(var ne={},ie=0;te.l<=te.length-4;){var re=te.read_shift(2),le=te.read_shift(2),ce=te.l+le,de={};if(21589===re)1&(ie=te.read_shift(1))&&(de.mtime=te.read_shift(4)),le>5&&(2&ie&&(de.atime=te.read_shift(4)),4&ie&&(de.ctime=te.read_shift(4))),de.mtime&&(de.mt=new Date(1e3*de.mtime));te.l=ce,ne[re]=de}return ne}function get_fs(){return te||(te={})}function parse(te,ne){if(80==te[0]&&75==te[1])return parse_zip(te,ne);if(109==(32|te[0])&&105==(32|te[1]))return function parse_mad(te,ne){if("mime-version:"!=a2s(te.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var ie=ne&&ne.root||"",re=(Wn&&Buffer.isBuffer(te)?te.toString("binary"):a2s(te)).split("\r\n"),le=0,ce="";for(le=0;le<re.length;++le)if(ce=re[le],/^Content-Location:/i.test(ce)&&(ce=ce.slice(ce.indexOf("file")),ie||(ie=ce.slice(0,ce.lastIndexOf("/")+1)),ce.slice(0,ie.length)!=ie))for(;ie.length>0&&(ie=(ie=ie.slice(0,ie.length-1)).slice(0,ie.lastIndexOf("/")+1),ce.slice(0,ie.length)!=ie););var de=(re[1]||"").match(/boundary="(.*?)"/);if(!de)throw new Error("MAD cannot find boundary");var ue="--"+(de[1]||""),me=[],ge=[],fe={FileIndex:me,FullPaths:ge};init_cfb(fe);var _e,be=0;for(le=0;le<re.length;++le){var Ce=re[le];Ce!==ue&&Ce!==ue+"--"||(be++&&parse_mime(fe,re.slice(_e,le),ie),_e=le)}return fe}(te,ne);if(te.length<512)throw new Error("CFB file size "+te.length+" < 512");var ie,re,de,ue,me,ge,fe=512,_e=[],be=te.slice(0,512);prep_blob(be,0);var Ce=function check_get_mver(te){if(80==te[te.l]&&75==te[te.l+1])return[0,0];te.chk(ce,"Header Signature: "),te.l+=16;var ne=te.read_shift(2,"u");return[te.read_shift(2,"u"),ne]}(be);switch(ie=Ce[0]){case 3:fe=512;break;case 4:fe=4096;break;case 0:if(0==Ce[1])return parse_zip(te,ne);default:throw new Error("Major Version: Expected 3 or 4 saw "+ie)}512!==fe&&prep_blob(be=te.slice(0,fe),28);var ye=te.slice(0,fe);!function check_shifts(te,ne){var ie=9;switch(te.l+=2,ie=te.read_shift(2)){case 9:if(3!=ne)throw new Error("Sector Shift: Expected 9 saw "+ie);break;case 12:if(4!=ne)throw new Error("Sector Shift: Expected 12 saw "+ie);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ie)}te.chk("0600","Mini Sector Shift: "),te.chk("000000000000","Reserved: ")}(be,ie);var we=be.read_shift(4,"i");if(3===ie&&0!==we)throw new Error("# Directory Sectors: Expected 0 saw "+we);be.l+=4,ue=be.read_shift(4,"i"),be.l+=4,be.chk("00100000","Mini Stream Cutoff Size: "),me=be.read_shift(4,"i"),re=be.read_shift(4,"i"),ge=be.read_shift(4,"i"),de=be.read_shift(4,"i");for(var ke=-1,Se=0;Se<109&&!((ke=be.read_shift(4,"i"))<0);++Se)_e[Se]=ke;var xe=function sectorify(te,ne){for(var ie=Math.ceil(te.length/ne)-1,re=[],le=1;le<ie;++le)re[le-1]=te.slice(le*ne,(le+1)*ne);return re[ie-1]=te.slice(ie*ne),re}(te,fe);sleuth_fat(ge,de,xe,fe,_e);var Ee=function make_sector_list(te,ne,ie,re){var le=te.length,ce=[],de=[],ue=[],me=[],ge=re-1,fe=0,_e=0,be=0,Ce=0;for(fe=0;fe<le;++fe)if(ue=[],(be=fe+ne)>=le&&(be-=le),!de[be]){me=[];var ye=[];for(_e=be;_e>=0;){ye[_e]=!0,de[_e]=!0,ue[ue.length]=_e,me.push(te[_e]);var we=ie[Math.floor(4*_e/re)];if(re<4+(Ce=4*_e&ge))throw new Error("FAT boundary crossed: "+_e+" 4 "+re);if(!te[we])break;if(ye[_e=__readInt32LE(te[we],Ce)])break}ce[be]={nodes:ue,data:Ir([me])}}return ce}(xe,ue,_e,fe);Ee[ue].name="!Directory",re>0&&me!==le&&(Ee[me].name="!MiniFAT"),Ee[_e[0]].name="!FAT",Ee.fat_addrs=_e,Ee.ssz=fe;var Me=[],Ne=[],Re=[];!function read_directory(te,ne,ie,re,ce,de,ue,me){for(var ge,fe=0,_e=re.length?2:0,be=ne[te].data,Ce=0,ye=0;Ce<be.length;Ce+=128){var we=be.slice(Ce,Ce+128);prep_blob(we,64),ye=we.read_shift(2),ge=Mr(we,0,ye-_e),re.push(ge);var ke={name:ge,type:we.read_shift(1),color:we.read_shift(1),L:we.read_shift(4,"i"),R:we.read_shift(4,"i"),C:we.read_shift(4,"i"),clsid:we.read_shift(16),state:we.read_shift(4,"i"),start:0,size:0};0!==we.read_shift(2)+we.read_shift(2)+we.read_shift(2)+we.read_shift(2)&&(ke.ct=read_date(we,we.l-8)),0!==we.read_shift(2)+we.read_shift(2)+we.read_shift(2)+we.read_shift(2)&&(ke.mt=read_date(we,we.l-8)),ke.start=we.read_shift(4,"i"),ke.size=we.read_shift(4,"i"),ke.size<0&&ke.start<0&&(ke.size=ke.type=0,ke.start=le,ke.name=""),5===ke.type?(fe=ke.start,ce>0&&fe!==le&&(ne[fe].name="!StreamData")):ke.size>=4096?(ke.storage="fat",void 0===ne[ke.start]&&(ne[ke.start]=get_sector_list(ie,ke.start,ne.fat_addrs,ne.ssz)),ne[ke.start].name=ke.name,ke.content=ne[ke.start].data.slice(0,ke.size)):(ke.storage="minifat",ke.size<0?ke.size=0:fe!==le&&ke.start!==le&&ne[fe]&&(ke.content=get_mfat_entry(ke,ne[fe].data,(ne[me]||{}).data))),ke.content&&prep_blob(ke.content,0),de[ge]=ke,ue.push(ke)}}(ue,Ee,xe,Me,re,{},Ne,me),function build_full_paths(te,ne,ie){for(var re=0,le=0,ce=0,de=0,ue=0,me=ie.length,ge=[],fe=[];re<me;++re)ge[re]=fe[re]=re,ne[re]=ie[re];for(;ue<fe.length;++ue)le=te[re=fe[ue]].L,ce=te[re].R,de=te[re].C,ge[re]===re&&(-1!==le&&ge[le]!==le&&(ge[re]=ge[le]),-1!==ce&&ge[ce]!==ce&&(ge[re]=ge[ce])),-1!==de&&(ge[de]=re),-1!==le&&re!=ge[re]&&(ge[le]=ge[re],fe.lastIndexOf(le)<ue&&fe.push(le)),-1!==ce&&re!=ge[re]&&(ge[ce]=ge[re],fe.lastIndexOf(ce)<ue&&fe.push(ce));for(re=1;re<me;++re)ge[re]===re&&(-1!==ce&&ge[ce]!==ce?ge[re]=ge[ce]:-1!==le&&ge[le]!==le&&(ge[re]=ge[le]));for(re=1;re<me;++re)if(0!==te[re].type){if((ue=re)!=ge[ue])do{ue=ge[ue],ne[re]=ne[ue]+"/"+ne[re]}while(0!==ue&&-1!==ge[ue]&&ue!=ge[ue]);ge[re]=-1}for(ne[0]+="/",re=1;re<me;++re)2!==te[re].type&&(ne[re]+="/")}(Ne,Re,Me),Me.shift();var Le={FileIndex:Ne,FullPaths:Re};return ne&&ne.raw&&(Le.raw={header:ye,sectors:xe}),Le}function get_mfat_entry(te,ne,ie){for(var le=te.start,ce=te.size,de=[],ue=le;ie&&ce>0&&ue>=0;)de.push(ne.slice(ue*re,ue*re+re)),ce-=re,ue=__readInt32LE(ie,4*ue);return 0===de.length?new_buf(0):Jn(de).slice(0,te.size)}function sleuth_fat(te,ne,ie,re,ce){var de=le;if(te===le){if(0!==ne)throw new Error("DIFAT chain shorter than expected")}else if(-1!==te){var ue=ie[te],me=(re>>>2)-1;if(!ue)return;for(var ge=0;ge<me&&(de=__readInt32LE(ue,4*ge))!==le;++ge)ce.push(de);sleuth_fat(__readInt32LE(ue,re-4),ne-1,ie,re,ce)}}function get_sector_list(te,ne,ie,re,le){var ce=[],de=[];le||(le=[]);var ue=re-1,me=0,ge=0;for(me=ne;me>=0;){le[me]=!0,ce[ce.length]=me,de.push(te[me]);var fe=ie[Math.floor(4*me/re)];if(re<4+(ge=4*me&ue))throw new Error("FAT boundary crossed: "+me+" 4 "+re);if(!te[fe])break;me=__readInt32LE(te[fe],ge)}return{nodes:ce,data:Ir([de])}}function read_date(te,ne){return new Date(1e3*(__readUInt32LE(te,ne+4)/1e7*Math.pow(2,32)+__readUInt32LE(te,ne)/1e7-11644473600))}function init_cfb(te,ne){var ie=ne||{},re=ie.root||"Root Entry";if(te.FullPaths||(te.FullPaths=[]),te.FileIndex||(te.FileIndex=[]),te.FullPaths.length!==te.FileIndex.length)throw new Error("inconsistent CFB structure");0===te.FullPaths.length&&(te.FullPaths[0]=re+"/",te.FileIndex[0]={name:re,type:5}),ie.CLSID&&(te.FileIndex[0].clsid=ie.CLSID),function seed_cfb(te){var ne="Sh33tJ5";if(mo.find(te,"/"+ne))return;var ie=new_buf(4);ie[0]=55,ie[1]=ie[3]=50,ie[2]=54,te.FileIndex.push({name:ne,type:2,content:ie,size:4,L:69,R:69,C:69}),te.FullPaths.push(te.FullPaths[0]+ne),rebuild_cfb(te)}(te)}function rebuild_cfb(te,ne){init_cfb(te);for(var ie=!1,re=!1,le=te.FullPaths.length-1;le>=0;--le){var ce=te.FileIndex[le];switch(ce.type){case 0:re?ie=!0:(te.FileIndex.pop(),te.FullPaths.pop());break;case 1:case 2:case 5:re=!0,isNaN(ce.R*ce.L*ce.C)&&(ie=!0),ce.R>-1&&ce.L>-1&&ce.R==ce.L&&(ie=!0);break;default:ie=!0}}if(ie||ne){var de=new Date(1987,1,19),me=0,ge=Object.create?Object.create(null):{},fe=[];for(le=0;le<te.FullPaths.length;++le)ge[te.FullPaths[le]]=!0,0!==te.FileIndex[le].type&&fe.push([te.FullPaths[le],te.FileIndex[le]]);for(le=0;le<fe.length;++le){var _e=dirname(fe[le][0]);(re=ge[_e])||(fe.push([_e,{name:filename(_e).replace("/",""),type:1,clsid:ue,ct:de,mt:de,content:null}]),ge[_e]=!0)}for(fe.sort((function(te,ne){return function namecmp(te,ne){for(var ie=te.split("/"),re=ne.split("/"),le=0,ce=0,de=Math.min(ie.length,re.length);le<de;++le){if(ce=ie[le].length-re[le].length)return ce;if(ie[le]!=re[le])return ie[le]<re[le]?-1:1}return ie.length-re.length}(te[0],ne[0])})),te.FullPaths=[],te.FileIndex=[],le=0;le<fe.length;++le)te.FullPaths[le]=fe[le][0],te.FileIndex[le]=fe[le][1];for(le=0;le<fe.length;++le){var be=te.FileIndex[le],Ce=te.FullPaths[le];if(be.name=filename(Ce).replace("/",""),be.L=be.R=be.C=-(be.color=1),be.size=be.content?be.content.length:0,be.start=0,be.clsid=be.clsid||ue,0===le)be.C=fe.length>1?1:-1,be.size=0,be.type=5;else if("/"==Ce.slice(-1)){for(me=le+1;me<fe.length&&dirname(te.FullPaths[me])!=Ce;++me);for(be.C=me>=fe.length?-1:me,me=le+1;me<fe.length&&dirname(te.FullPaths[me])!=dirname(Ce);++me);be.R=me>=fe.length?-1:me,be.type=1}else dirname(te.FullPaths[le+1]||"")==dirname(Ce)&&(be.R=le+1),be.type=2}}}function _write(te,ne){var ie=ne||{};if("mad"==ie.fileType)return function write_mad(te,ne){for(var ie=ne||{},re=ie.boundary||"SheetJS",le=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(re="------="+re).slice(2)+'"',"","",""],ce=te.FullPaths[0],de=ce,ue=te.FileIndex[0],me=1;me<te.FullPaths.length;++me)if(de=te.FullPaths[me].slice(ce.length),(ue=te.FileIndex[me]).size&&ue.content&&"Sh33tJ5"!=de){de=de.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(te){return"_x"+te.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(te){return"_u"+te.charCodeAt(0).toString(16)+"_"}));for(var ge=ue.content,fe=Wn&&Buffer.isBuffer(ge)?ge.toString("binary"):a2s(ge),_e=0,be=Math.min(1024,fe.length),Ce=0,ye=0;ye<=be;++ye)(Ce=fe.charCodeAt(ye))>=32&&Ce<128&&++_e;var we=_e>=4*be/5;le.push(re),le.push("Content-Location: "+(ie.root||"file:///C:/SheetJS/")+de),le.push("Content-Transfer-Encoding: "+(we?"quoted-printable":"base64")),le.push("Content-Type: "+get_content_type(ue,de)),le.push(""),le.push(we?write_quoted_printable(fe):write_base64_76(fe))}return le.push(re+"--\r\n"),le.join("\r\n")}(te,ie);if(rebuild_cfb(te),"zip"===ie.fileType)return function write_zip(te,ne){var ie=ne||{},re=[],le=[],ce=new_buf(1),de=ie.compression?8:0,ue=0;0;var me=0,ge=0,fe=0,_e=0,be=te.FullPaths[0],Ce=be,ye=te.FileIndex[0],we=[],ke=0;for(me=1;me<te.FullPaths.length;++me)if(Ce=te.FullPaths[me].slice(be.length),(ye=te.FileIndex[me]).size&&ye.content&&"Sh33tJ5"!=Ce){var Se=fe,xe=new_buf(Ce.length);for(ge=0;ge<Ce.length;++ge)xe.write_shift(1,127&Ce.charCodeAt(ge));xe=xe.slice(0,xe.l),we[_e]=uo.buf(ye.content,0);var Ee=ye.content;8==de&&(Ee=_deflateRawSync(Ee)),(ce=new_buf(30)).write_shift(4,67324752),ce.write_shift(2,20),ce.write_shift(2,ue),ce.write_shift(2,de),ye.mt?write_dos_date(ce,ye.mt):ce.write_shift(4,0),ce.write_shift(-4,8&ue?0:we[_e]),ce.write_shift(4,8&ue?0:Ee.length),ce.write_shift(4,8&ue?0:ye.content.length),ce.write_shift(2,xe.length),ce.write_shift(2,0),fe+=ce.length,re.push(ce),fe+=xe.length,re.push(xe),fe+=Ee.length,re.push(Ee),8&ue&&((ce=new_buf(12)).write_shift(-4,we[_e]),ce.write_shift(4,Ee.length),ce.write_shift(4,ye.content.length),fe+=ce.l,re.push(ce)),(ce=new_buf(46)).write_shift(4,33639248),ce.write_shift(2,0),ce.write_shift(2,20),ce.write_shift(2,ue),ce.write_shift(2,de),ce.write_shift(4,0),ce.write_shift(-4,we[_e]),ce.write_shift(4,Ee.length),ce.write_shift(4,ye.content.length),ce.write_shift(2,xe.length),ce.write_shift(2,0),ce.write_shift(2,0),ce.write_shift(2,0),ce.write_shift(2,0),ce.write_shift(4,0),ce.write_shift(4,Se),ke+=ce.l,le.push(ce),ke+=xe.length,le.push(xe),++_e}return ce=new_buf(22),ce.write_shift(4,101010256),ce.write_shift(2,0),ce.write_shift(2,0),ce.write_shift(2,_e),ce.write_shift(2,_e),ce.write_shift(4,ke),ce.write_shift(4,fe),ce.write_shift(2,0),Jn([Jn(re),Jn(le),ce])}(te,ie);var re=function(te){for(var ne=0,ie=0,re=0;re<te.FileIndex.length;++re){var le=te.FileIndex[re];if(le.content){var ce=le.content.length;ce>0&&(ce<4096?ne+=ce+63>>6:ie+=ce+511>>9)}}for(var de=te.FullPaths.length+3>>2,ue=ne+127>>7,me=(ne+7>>3)+ie+de+ue,ge=me+127>>7,fe=ge<=109?0:Math.ceil((ge-109)/127);me+ge+fe+127>>7>ge;)fe=++ge<=109?0:Math.ceil((ge-109)/127);var _e=[1,fe,ge,ue,de,ie,ne,0];return te.FileIndex[0].size=ne<<6,_e[7]=(te.FileIndex[0].start=_e[0]+_e[1]+_e[2]+_e[3]+_e[4]+_e[5])+(_e[6]+7>>3),_e}(te),ce=new_buf(re[7]<<9),ue=0,ge=0;for(ue=0;ue<8;++ue)ce.write_shift(1,de[ue]);for(ue=0;ue<8;++ue)ce.write_shift(2,0);for(ce.write_shift(2,62),ce.write_shift(2,3),ce.write_shift(2,65534),ce.write_shift(2,9),ce.write_shift(2,6),ue=0;ue<3;++ue)ce.write_shift(2,0);for(ce.write_shift(4,0),ce.write_shift(4,re[2]),ce.write_shift(4,re[0]+re[1]+re[2]+re[3]-1),ce.write_shift(4,0),ce.write_shift(4,4096),ce.write_shift(4,re[3]?re[0]+re[1]+re[2]-1:le),ce.write_shift(4,re[3]),ce.write_shift(-4,re[1]?re[0]-1:le),ce.write_shift(4,re[1]),ue=0;ue<109;++ue)ce.write_shift(-4,ue<re[2]?re[1]+ue:-1);if(re[1])for(ge=0;ge<re[1];++ge){for(;ue<236+127*ge;++ue)ce.write_shift(-4,ue<re[2]?re[1]+ue:-1);ce.write_shift(-4,ge===re[1]-1?le:ge+1)}var chainit=function(te){for(ge+=te;ue<ge-1;++ue)ce.write_shift(-4,ue+1);te&&(++ue,ce.write_shift(-4,le))};for(ge=ue=0,ge+=re[1];ue<ge;++ue)ce.write_shift(-4,me.DIFSECT);for(ge+=re[2];ue<ge;++ue)ce.write_shift(-4,me.FATSECT);chainit(re[3]),chainit(re[4]);for(var fe=0,_e=0,be=te.FileIndex[0];fe<te.FileIndex.length;++fe)(be=te.FileIndex[fe]).content&&((_e=be.content.length)<4096||(be.start=ge,chainit(_e+511>>9)));for(chainit(re[6]+7>>3);511&ce.l;)ce.write_shift(-4,me.ENDOFCHAIN);for(ge=ue=0,fe=0;fe<te.FileIndex.length;++fe)(be=te.FileIndex[fe]).content&&(!(_e=be.content.length)||_e>=4096||(be.start=ge,chainit(_e+63>>6)));for(;511&ce.l;)ce.write_shift(-4,me.ENDOFCHAIN);for(ue=0;ue<re[4]<<2;++ue){var Ce=te.FullPaths[ue];if(Ce&&0!==Ce.length){be=te.FileIndex[ue],0===ue&&(be.start=be.size?be.start-1:le);var ye=0===ue&&ie.root||be.name;if(_e=2*(ye.length+1),ce.write_shift(64,ye,"utf16le"),ce.write_shift(2,_e),ce.write_shift(1,be.type),ce.write_shift(1,be.color),ce.write_shift(-4,be.L),ce.write_shift(-4,be.R),ce.write_shift(-4,be.C),be.clsid)ce.write_shift(16,be.clsid,"hex");else for(fe=0;fe<4;++fe)ce.write_shift(4,0);ce.write_shift(4,be.state||0),ce.write_shift(4,0),ce.write_shift(4,0),ce.write_shift(4,0),ce.write_shift(4,0),ce.write_shift(4,be.start),ce.write_shift(4,be.size),ce.write_shift(4,0)}else{for(fe=0;fe<17;++fe)ce.write_shift(4,0);for(fe=0;fe<3;++fe)ce.write_shift(4,-1);for(fe=0;fe<12;++fe)ce.write_shift(4,0)}}for(ue=1;ue<te.FileIndex.length;++ue)if((be=te.FileIndex[ue]).size>=4096)if(ce.l=be.start+1<<9,Wn&&Buffer.isBuffer(be.content))be.content.copy(ce,ce.l,0,be.size),ce.l+=be.size+511&-512;else{for(fe=0;fe<be.size;++fe)ce.write_shift(1,be.content[fe]);for(;511&fe;++fe)ce.write_shift(1,0)}for(ue=1;ue<te.FileIndex.length;++ue)if((be=te.FileIndex[ue]).size>0&&be.size<4096)if(Wn&&Buffer.isBuffer(be.content))be.content.copy(ce,ce.l,0,be.size),ce.l+=be.size+63&-64;else{for(fe=0;fe<be.size;++fe)ce.write_shift(1,be.content[fe]);for(;63&fe;++fe)ce.write_shift(1,0)}if(Wn)ce.l=ce.length;else for(;ce.l<ce.length;)ce.write_shift(1,0);return ce}ne.version="1.2.1";var ie,re=64,le=-2,ce="d0cf11e0a1b11ae1",de=[208,207,17,224,161,177,26,225],ue="00000000000000000000000000000000",me={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:le,FREESECT:-1,HEADER_SIGNATURE:ce,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:ue,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function a2s(te){for(var ne=new Array(te.length),ie=0;ie<te.length;++ie)ne[ie]=String.fromCharCode(te[ie]);return ne.join("")}function _deflateRawSync(te){return ie?ie.deflateRawSync(te):_deflate(te)}var ge=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fe=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],_e=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];for(var be,Ce,ye="undefined"!=typeof Uint8Array,we=ye?new Uint8Array(256):[],ke=0;ke<256;++ke)we[ke]=(Ce=void 0,255&((Ce=139536&((be=ke)<<1|be<<11)|558144&(be<<5|be<<15))>>16|Ce>>8|Ce));function bit_swap_n(te,ne){var ie=we[255&te];return ne<=8?ie>>>8-ne:(ie=ie<<8|we[te>>8&255],ne<=16?ie>>>16-ne:(ie=ie<<8|we[te>>16&255])>>>24-ne)}function read_bits_2(te,ne){var ie=7&ne,re=ne>>>3;return(te[re]|(ie<=6?0:te[re+1]<<8))>>>ie&3}function read_bits_3(te,ne){var ie=7&ne,re=ne>>>3;return(te[re]|(ie<=5?0:te[re+1]<<8))>>>ie&7}function read_bits_5(te,ne){var ie=7&ne,re=ne>>>3;return(te[re]|(ie<=3?0:te[re+1]<<8))>>>ie&31}function read_bits_7(te,ne){var ie=7&ne,re=ne>>>3;return(te[re]|(ie<=1?0:te[re+1]<<8))>>>ie&127}function read_bits_n(te,ne,ie){var re=7&ne,le=ne>>>3,ce=(1<<ie)-1,de=te[le]>>>re;return ie<8-re?de&ce:(de|=te[le+1]<<8-re,ie<16-re?de&ce:(de|=te[le+2]<<16-re,ie<24-re?de&ce:(de|=te[le+3]<<24-re)&ce))}function write_bits_3(te,ne,ie){var re=7&ne,le=ne>>>3;return re<=5?te[le]|=(7&ie)<<re:(te[le]|=ie<<re&255,te[le+1]=(7&ie)>>8-re),ne+3}function write_bits_1(te,ne,ie){return ie=(1&ie)<<(7&ne),te[ne>>>3]|=ie,ne+1}function write_bits_8(te,ne,ie){var re=ne>>>3;return ie<<=7&ne,te[re]|=255&ie,ie>>>=8,te[re+1]=ie,ne+8}function write_bits_16(te,ne,ie){var re=ne>>>3;return ie<<=7&ne,te[re]|=255&ie,ie>>>=8,te[re+1]=255&ie,te[re+2]=ie>>>8,ne+16}function realloc(te,ne){var ie=te.length,re=2*ie>ne?2*ie:ne+5,le=0;if(ie>=ne)return te;if(Wn){var ce=new_unsafe_buf(re);if(te.copy)te.copy(ce);else for(;le<te.length;++le)ce[le]=te[le];return ce}if(ye){var de=new Uint8Array(re);if(de.set)de.set(te);else for(;le<ie;++le)de[le]=te[le];return de}return te.length=re,te}function zero_fill_array(te){for(var ne=new Array(te),ie=0;ie<te;++ie)ne[ie]=0;return ne}function build_tree(te,ne,ie){var re=1,le=0,ce=0,de=0,ue=0,me=te.length,ge=ye?new Uint16Array(32):zero_fill_array(32);for(ce=0;ce<32;++ce)ge[ce]=0;for(ce=me;ce<ie;++ce)te[ce]=0;me=te.length;var fe=ye?new Uint16Array(me):zero_fill_array(me);for(ce=0;ce<me;++ce)ge[le=te[ce]]++,re<le&&(re=le),fe[ce]=0;for(ge[0]=0,ce=1;ce<=re;++ce)ge[ce+16]=ue=ue+ge[ce-1]<<1;for(ce=0;ce<me;++ce)0!=(ue=te[ce])&&(fe[ce]=ge[ue+16]++);var _e=0;for(ce=0;ce<me;++ce)if(0!=(_e=te[ce]))for(ue=bit_swap_n(fe[ce],re)>>re-_e,de=(1<<re+4-_e)-1;de>=0;--de)ne[ue|de<<_e]=15&_e|ce<<4;return re}var Se=ye?new Uint16Array(512):zero_fill_array(512),xe=ye?new Uint16Array(32):zero_fill_array(32);if(!ye){for(var Ee=0;Ee<512;++Ee)Se[Ee]=0;for(Ee=0;Ee<32;++Ee)xe[Ee]=0}!function(){for(var te=[],ne=0;ne<32;ne++)te.push(5);build_tree(te,xe,32);var ie=[];for(ne=0;ne<=143;ne++)ie.push(8);for(;ne<=255;ne++)ie.push(9);for(;ne<=279;ne++)ie.push(7);for(;ne<=287;ne++)ie.push(8);build_tree(ie,Se,288)}();var Me=function _deflateRawIIFE(){for(var te=ye?new Uint8Array(32768):[],ne=0,ie=0;ne<_e.length-1;++ne)for(;ie<_e[ne+1];++ie)te[ie]=ne;for(;ie<32768;++ie)te[ie]=29;var re=ye?new Uint8Array(259):[];for(ne=0,ie=0;ne<fe.length-1;++ne)for(;ie<fe[ne+1];++ie)re[ie]=ne;return function _deflateRaw(ne,ie){return ne.length<8?function write_stored(te,ne){for(var ie=0;ie<te.length;){var re=Math.min(65535,te.length-ie),le=ie+re==te.length;for(ne.write_shift(1,+le),ne.write_shift(2,re),ne.write_shift(2,65535&~re);re-- >0;)ne[ne.l++]=te[ie++]}return ne.l}(ne,ie):function write_huff_fixed(ne,ie){for(var le=0,ce=0,de=ye?new Uint16Array(32768):[];ce<ne.length;){var ue=Math.min(65535,ne.length-ce);if(ue<10){for(7&(le=write_bits_3(ie,le,+!(ce+ue!=ne.length)))&&(le+=8-(7&le)),ie.l=le/8|0,ie.write_shift(2,ue),ie.write_shift(2,65535&~ue);ue-- >0;)ie[ie.l++]=ne[ce++];le=8*ie.l}else{le=write_bits_3(ie,le,+!(ce+ue!=ne.length)+2);for(var me=0;ue-- >0;){var ge=ne[ce],be=-1,Ce=0;if((be=de[me=32767&(me<<5^ge)])&&((be|=-32768&ce)>ce&&(be-=32768),be<ce))for(;ne[be+Ce]==ne[ce+Ce]&&Ce<250;)++Ce;if(Ce>2){(ge=re[Ce])<=22?le=write_bits_8(ie,le,we[ge+1]>>1)-1:(write_bits_8(ie,le,3),write_bits_8(ie,le+=5,we[ge-23]>>5),le+=3);var ke=ge<8?0:ge-4>>2;ke>0&&(write_bits_16(ie,le,Ce-fe[ge]),le+=ke),ge=te[ce-be],le=write_bits_8(ie,le,we[ge]>>3),le-=3;var Se=ge<4?0:ge-2>>1;Se>0&&(write_bits_16(ie,le,ce-be-_e[ge]),le+=Se);for(var xe=0;xe<Ce;++xe)de[me]=32767&ce,me=32767&(me<<5^ne[ce]),++ce;ue-=Ce-1}else ge<=143?ge+=48:le=write_bits_1(ie,le,1),le=write_bits_8(ie,le,we[ge]),de[me]=32767&ce,++ce}le=write_bits_8(ie,le,0)-1}}return ie.l=(le+7)/8|0,ie.l}(ne,ie)}}();function _deflate(te){var ne=new_buf(50+Math.floor(1.1*te.length)),ie=Me(te,ne);return ne.slice(0,ie)}var Ne=ye?new Uint16Array(32768):zero_fill_array(32768),Re=ye?new Uint16Array(32768):zero_fill_array(32768),Le=ye?new Uint16Array(128):zero_fill_array(128),Oe=1,Pe=1;function dyn(te,ne){var ie=read_bits_5(te,ne)+257,re=read_bits_5(te,ne+=5)+1,le=function read_bits_4(te,ne){var ie=7&ne,re=ne>>>3;return(te[re]|(ie<=4?0:te[re+1]<<8))>>>ie&15}(te,ne+=5)+4;ne+=4;for(var ce=0,de=ye?new Uint8Array(19):zero_fill_array(19),ue=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],me=1,fe=ye?new Uint8Array(8):zero_fill_array(8),_e=ye?new Uint8Array(8):zero_fill_array(8),be=de.length,Ce=0;Ce<le;++Ce)de[ge[Ce]]=ce=read_bits_3(te,ne),me<ce&&(me=ce),fe[ce]++,ne+=3;var ke=0;for(fe[0]=0,Ce=1;Ce<=me;++Ce)_e[Ce]=ke=ke+fe[Ce-1]<<1;for(Ce=0;Ce<be;++Ce)0!=(ke=de[Ce])&&(ue[Ce]=_e[ke]++);var Se=0;for(Ce=0;Ce<be;++Ce)if(0!=(Se=de[Ce])){ke=we[ue[Ce]]>>8-Se;for(var xe=(1<<7-Se)-1;xe>=0;--xe)Le[ke|xe<<Se]=7&Se|Ce<<3}var Ee=[];for(me=1;Ee.length<ie+re;)switch(ne+=7&(ke=Le[read_bits_7(te,ne)]),ke>>>=3){case 16:for(ce=3+read_bits_2(te,ne),ne+=2,ke=Ee[Ee.length-1];ce-- >0;)Ee.push(ke);break;case 17:for(ce=3+read_bits_3(te,ne),ne+=3;ce-- >0;)Ee.push(0);break;case 18:for(ce=11+read_bits_7(te,ne),ne+=7;ce-- >0;)Ee.push(0);break;default:Ee.push(ke),me<ke&&(me=ke)}var Me=Ee.slice(0,ie),Fe=Ee.slice(ie);for(Ce=ie;Ce<286;++Ce)Me[Ce]=0;for(Ce=re;Ce<30;++Ce)Fe[Ce]=0;return Oe=build_tree(Me,Ne,286),Pe=build_tree(Fe,Re,30),ne}function _inflate(te,ne){var ie=function inflate(te,ne){if(3==te[0]&&!(3&te[1]))return[new_raw_buf(ne),2];for(var ie=0,re=0,le=new_unsafe_buf(ne||1<<18),ce=0,de=le.length>>>0,ue=0,me=0;0==(1&re);)if(re=read_bits_3(te,ie),ie+=3,re>>>1!=0)for(re>>1==1?(ue=9,me=5):(ie=dyn(te,ie),ue=Oe,me=Pe);;){!ne&&de<ce+32767&&(de=(le=realloc(le,ce+32767)).length);var ge=read_bits_n(te,ie,ue),be=re>>>1==1?Se[ge]:Ne[ge];if(ie+=15&be,0==((be>>>=4)>>>8&255))le[ce++]=be;else{if(256==be)break;var Ce=(be-=257)<8?0:be-4>>2;Ce>5&&(Ce=0);var ye=ce+fe[be];Ce>0&&(ye+=read_bits_n(te,ie,Ce),ie+=Ce),ge=read_bits_n(te,ie,me),ie+=15&(be=re>>>1==1?xe[ge]:Re[ge]);var we=(be>>>=4)<4?0:be-2>>1,ke=_e[be];for(we>0&&(ke+=read_bits_n(te,ie,we),ie+=we),!ne&&de<ye&&(de=(le=realloc(le,ye+100)).length);ce<ye;)le[ce]=le[ce-ke],++ce}}else{7&ie&&(ie+=8-(7&ie));var Ee=te[ie>>>3]|te[1+(ie>>>3)]<<8;if(ie+=32,Ee>0)for(!ne&&de<ce+Ee&&(de=(le=realloc(le,ce+Ee)).length);Ee-- >0;)le[ce++]=te[ie>>>3],ie+=8}return ne?[le,ie+7>>>3]:[le.slice(0,ce),ie+7>>>3]}(te.slice(te.l||0),ne);return te.l+=ie[1],ie[0]}function warn_or_throw(te,ne){if(!te)throw new Error(ne);"undefined"!=typeof console&&console.error(ne)}function parse_zip(te,ne){var ie=te;prep_blob(ie,0);var re={FileIndex:[],FullPaths:[]};init_cfb(re,{root:ne.root});for(var le=ie.length-4;(80!=ie[le]||75!=ie[le+1]||5!=ie[le+2]||6!=ie[le+3])&&le>=0;)--le;ie.l=le+4,ie.l+=4;var ce=ie.read_shift(2);ie.l+=6;var de=ie.read_shift(4);for(ie.l=de,le=0;le<ce;++le){ie.l+=20;var ue=ie.read_shift(4),me=ie.read_shift(4),ge=ie.read_shift(2),fe=ie.read_shift(2),_e=ie.read_shift(2);ie.l+=8;var be=ie.read_shift(4),Ce=parse_extra_field(ie.slice(ie.l+ge,ie.l+ge+fe));ie.l+=ge+fe+_e;var ye=ie.l;ie.l=be+4,parse_local_file(ie,ue,me,re,Ce),ie.l=ye}return re}function parse_local_file(te,ne,re,le,ce){te.l+=2;var de=te.read_shift(2),ue=te.read_shift(2),me=function parse_dos_date(te){var ne=65535&te.read_shift(2),ie=65535&te.read_shift(2),re=new Date,le=31&ie,ce=15&(ie>>>=5);ie>>>=4,re.setMilliseconds(0),re.setFullYear(ie+1980),re.setMonth(ce-1),re.setDate(le);var de=31&ne,ue=63&(ne>>>=5);return ne>>>=6,re.setHours(ne),re.setMinutes(ue),re.setSeconds(de<<1),re}(te);if(8257&de)throw new Error("Unsupported ZIP encryption");te.read_shift(4);for(var ge=te.read_shift(4),fe=te.read_shift(4),_e=te.read_shift(2),be=te.read_shift(2),Ce="",ye=0;ye<_e;++ye)Ce+=String.fromCharCode(te[te.l++]);if(be){var we=parse_extra_field(te.slice(te.l,te.l+be));(we[21589]||{}).mt&&(me=we[21589].mt),((ce||{})[21589]||{}).mt&&(me=ce[21589].mt)}te.l+=be;var ke=te.slice(te.l,te.l+ge);switch(ue){case 8:ke=function _inflateRawSync(te,ne){if(!ie)return _inflate(te,ne);var re=new(0,ie.InflateRaw),le=re._processChunk(te.slice(te.l),re._finishFlushFlag);return te.l+=re.bytesRead,le}(te,fe);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+ue)}var Se=!1;8&de&&(134695760==te.read_shift(4)&&(te.read_shift(4),Se=!0),ge=te.read_shift(4),fe=te.read_shift(4)),ge!=ne&&warn_or_throw(Se,"Bad compressed size: "+ne+" != "+ge),fe!=re&&warn_or_throw(Se,"Bad uncompressed size: "+re+" != "+fe),cfb_add(le,Ce,ke,{unsafe:!0,mt:me})}var Fe={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function get_content_type(te,ne){if(te.ctype)return te.ctype;var ie=te.name||"",re=ie.match(/\.([^\.]+)$/);return re&&Fe[re[1]]||ne&&(re=(ie=ne).match(/[\.\\]([^\.\\])+$/))&&Fe[re[1]]?Fe[re[1]]:"application/octet-stream"}function write_base64_76(te){for(var ne=Base64_encode(te),ie=[],re=0;re<ne.length;re+=76)ie.push(ne.slice(re,re+76));return ie.join("\r\n")+"\r\n"}function write_quoted_printable(te){var ne=te.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(te){var ne=te.charCodeAt(0).toString(16).toUpperCase();return"="+(1==ne.length?"0"+ne:ne)}));"\n"==(ne=ne.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(ne="=0D"+ne.slice(1));for(var ie=[],re=(ne=ne.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),le=0;le<re.length;++le){var ce=re[le];if(0!=ce.length)for(var de=0;de<ce.length;){var ue=76,me=ce.slice(de,de+ue);"="==me.charAt(ue-1)?ue--:"="==me.charAt(ue-2)?ue-=2:"="==me.charAt(ue-3)&&(ue-=3),me=ce.slice(de,de+ue),(de+=ue)<ce.length&&(me+="="),ie.push(me)}else ie.push("")}return ie.join("\r\n")}function parse_mime(te,ne,ie){for(var re,le="",ce="",de="",ue=0;ue<10;++ue){var me=ne[ue];if(!me||me.match(/^\s*$/))break;var ge=me.match(/^(.*?):\s*([^\s].*)$/);if(ge)switch(ge[1].toLowerCase()){case"content-location":le=ge[2].trim();break;case"content-type":de=ge[2].trim();break;case"content-transfer-encoding":ce=ge[2].trim()}}switch(++ue,ce.toLowerCase()){case"base64":re=Qn(Base64_decode(ne.slice(ue).join("")));break;case"quoted-printable":re=function parse_quoted_printable(te){for(var ne=[],ie=0;ie<te.length;++ie){for(var re=te[ie];ie<=te.length&&"="==re.charAt(re.length-1);)re=re.slice(0,re.length-1)+te[++ie];ne.push(re)}for(var le=0;le<ne.length;++le)ne[le]=ne[le].replace(/[=][0-9A-Fa-f]{2}/g,(function(te){return String.fromCharCode(parseInt(te.slice(1),16))}));return Qn(ne.join("\r\n"))}(ne.slice(ue));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+ce)}var fe=cfb_add(te,le.slice(ie.length),re,{unsafe:!0});de&&(fe.ctype=de)}function cfb_add(te,ne,ie,re){var le=re&&re.unsafe;le||init_cfb(te);var ce=!le&&mo.find(te,ne);if(!ce){var de=te.FullPaths[0];ne.slice(0,de.length)==de?de=ne:("/"!=de.slice(-1)&&(de+="/"),de=(de+ne).replace("//","/")),ce={name:filename(ne),type:2},te.FileIndex.push(ce),te.FullPaths.push(de),le||mo.utils.cfb_gc(te)}return ce.content=ie,ce.size=ie?ie.length:0,re&&(re.CLSID&&(ce.clsid=re.CLSID),re.mt&&(ce.mt=re.mt),re.ct&&(ce.ct=re.ct)),ce}return ne.find=function find(te,ne){var ie=te.FullPaths.map((function(te){return te.toUpperCase()})),re=ie.map((function(te){var ne=te.split("/");return ne[ne.length-("/"==te.slice(-1)?2:1)]})),le=!1;47===ne.charCodeAt(0)?(le=!0,ne=ie[0].slice(0,-1)+ne):le=-1!==ne.indexOf("/");var ce=ne.toUpperCase(),de=!0===le?ie.indexOf(ce):re.indexOf(ce);if(-1!==de)return te.FileIndex[de];var ue=!ce.match(pi);for(ce=ce.replace(Zn,""),ue&&(ce=ce.replace(pi,"!")),de=0;de<ie.length;++de){if((ue?ie[de].replace(pi,"!"):ie[de]).replace(Zn,"")==ce)return te.FileIndex[de];if((ue?re[de].replace(pi,"!"):re[de]).replace(Zn,"")==ce)return te.FileIndex[de]}return null},ne.read=function read(ne,ie){var re=ie&&ie.type;switch(re||Wn&&Buffer.isBuffer(ne)&&(re="buffer"),re||"base64"){case"file":return function read_file(ne,ie){return get_fs(),parse(te.readFileSync(ne),ie)}(ne,ie);case"base64":return parse(Qn(Base64_decode(ne)),ie);case"binary":return parse(Qn(ne),ie)}return parse(ne,ie)},ne.parse=parse,ne.write=function write(ne,ie){var re=_write(ne,ie);switch(ie&&ie.type||"buffer"){case"file":return get_fs(),te.writeFileSync(ie.filename,re),re;case"binary":return"string"==typeof re?re:a2s(re);case"base64":return Base64_encode("string"==typeof re?re:a2s(re));case"buffer":if(Wn)return Buffer.isBuffer(re)?re:Kn(re);case"array":return"string"==typeof re?Qn(re):re}return re},ne.writeFile=function write_file(ne,ie,re){get_fs();var le=_write(ne,re);te.writeFileSync(ie,le)},ne.utils={cfb_new:function cfb_new(te){var ne={};return init_cfb(ne,te),ne},cfb_add,cfb_del:function cfb_del(te,ne){init_cfb(te);var ie=mo.find(te,ne);if(ie)for(var re=0;re<te.FileIndex.length;++re)if(te.FileIndex[re]==ie)return te.FileIndex.splice(re,1),te.FullPaths.splice(re,1),!0;return!1},cfb_mov:function cfb_mov(te,ne,ie){init_cfb(te);var re=mo.find(te,ne);if(re)for(var le=0;le<te.FileIndex.length;++le)if(te.FileIndex[le]==re)return te.FileIndex[le].name=filename(ie),te.FullPaths[le]=ie,!0;return!1},cfb_gc:function cfb_gc(te){rebuild_cfb(te,!0)},ReadShift,CheckField,prep_blob,bconcat:Jn,use_zlib:function use_zlib(te){try{var ne=new(0,te.InflateRaw);if(ne._processChunk(new Uint8Array([3,0]),ne._finishFlushFlag),!ne.bytesRead)throw new Error("zlib does not expose bytesRead");ie=te}catch(te){console.error("cannot use native zlib: "+(te.message||te))}},_deflateRaw:_deflate,_inflateRaw:_inflate,consts:me},ne}();let go;function blobify(te){return"string"==typeof te?s2ab(te):Array.isArray(te)?function a2u(te){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(te)}(te):te}function write_dl(te,ne,ie){if(void 0!==go&&go.writeFileSync)return ie?go.writeFileSync(te,ne,ie):go.writeFileSync(te,ne);if("undefined"!=typeof Deno){if(ie&&"string"==typeof ne)switch(ie){case"utf8":ne=new TextEncoder(ie).encode(ne);break;case"binary":ne=s2ab(ne);break;default:throw new Error("Unsupported encoding "+ie)}return Deno.writeFileSync(te,ne)}var re="utf8"==ie?_r(ne):ne;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(re,te);if("undefined"!=typeof Blob){var le=new Blob([blobify(re)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(le,te);if("undefined"!=typeof saveAs)return saveAs(le,te);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var ce=URL.createObjectURL(le);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(ce)}),6e4),chrome.downloads.download({url:ce,filename:te,saveAs:!0});var de=document.createElement("a");if(null!=de.download)return de.download=te,de.href=ce,document.body.appendChild(de),de.click(),document.body.removeChild(de),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(ce)}),6e4),ce}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var ue=File(te);return ue.open("w"),ue.encoding="binary",Array.isArray(ne)&&(ne=a2s(ne)),ue.write(ne),ue.close(),ne}catch(te){if(!te.message||!te.message.match(/onstruct/))throw te}throw new Error("cannot save file "+te)}function keys(te){for(var ne=Object.keys(te),ie=[],re=0;re<ne.length;++re)Object.prototype.hasOwnProperty.call(te,ne[re])&&ie.push(ne[re]);return ie}function evert_key(te,ne){for(var ie=[],re=keys(te),le=0;le!==re.length;++le)null==ie[te[re[le]][ne]]&&(ie[te[re[le]][ne]]=re[le]);return ie}function evert(te){for(var ne=[],ie=keys(te),re=0;re!==ie.length;++re)ne[te[ie[re]]]=ie[re];return ne}function evert_num(te){for(var ne=[],ie=keys(te),re=0;re!==ie.length;++re)ne[te[ie[re]]]=parseInt(ie[re],10);return ne}var fo=new Date(1899,11,30,0,0,0);function datenum(te,ne){var ie=te.getTime();return ne&&(ie-=1263168e5),(ie-(fo.getTime()+6e4*(te.getTimezoneOffset()-fo.getTimezoneOffset())))/864e5}var _o=new Date,bo=fo.getTime()+6e4*(_o.getTimezoneOffset()-fo.getTimezoneOffset()),Co=_o.getTimezoneOffset();function numdate(te){var ne=new Date;return ne.setTime(24*te*60*60*1e3+bo),ne.getTimezoneOffset()!==Co&&ne.setTime(ne.getTime()+6e4*(ne.getTimezoneOffset()-Co)),ne}var wo=new Date("2017-02-19T19:06:09.000Z"),Ao=isNaN(wo.getFullYear())?new Date("2/19/17"):wo,ko=2017==Ao.getFullYear();function parseDate(te,ne){var ie=new Date(te);if(ko)return ne>0?ie.setTime(ie.getTime()+60*ie.getTimezoneOffset()*1e3):ne<0&&ie.setTime(ie.getTime()-60*ie.getTimezoneOffset()*1e3),ie;if(te instanceof Date)return te;if(1917==Ao.getFullYear()&&!isNaN(ie.getFullYear())){var re=ie.getFullYear();return te.indexOf(""+re)>-1||ie.setFullYear(ie.getFullYear()+100),ie}var le=te.match(/\d+/g)||["2017","2","19","0","0","0"],ce=new Date(+le[0],+le[1]-1,+le[2],+le[3]||0,+le[4]||0,+le[5]||0);return te.indexOf("Z")>-1&&(ce=new Date(ce.getTime()-60*ce.getTimezoneOffset()*1e3)),ce}function cc2str(te,ne){if(Wn&&Buffer.isBuffer(te)){if(ne){if(255==te[0]&&254==te[1])return _r(te.slice(2).toString("utf16le"));if(254==te[1]&&255==te[2])return _r(utf16beread(te.slice(2).toString("binary")))}return te.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(ne){if(255==te[0]&&254==te[1])return _r(new TextDecoder("utf-16le").decode(te.slice(2)));if(254==te[0]&&255==te[1])return _r(new TextDecoder("utf-16be").decode(te.slice(2)))}var ie={"€":"","‚":"",ƒ:"","„":"","…":"","†":"","‡":"",ˆ:"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(te)&&(te=new Uint8Array(te)),new TextDecoder("latin1").decode(te).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(te){return ie[te]||te}))}catch(te){}for(var re=[],le=0;le!=te.length;++le)re.push(String.fromCharCode(te[le]));return re.join("")}function dup(te){if("undefined"!=typeof JSON&&!Array.isArray(te))return JSON.parse(JSON.stringify(te));if("object"!=typeof te||null==te)return te;if(te instanceof Date)return new Date(te.getTime());var ne={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&(ne[ie]=dup(te[ie]));return ne}function fill(te,ne){for(var ie="";ie.length<ne;)ie+=te;return ie}function fuzzynum(te){var ne=Number(te);if(!isNaN(ne))return isFinite(ne)?ne:NaN;if(!/\d/.test(te))return ne;var ie=1,re=te.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return ie*=100,""}));return isNaN(ne=Number(re))?(re=re.replace(/[(](.*)[)]/,(function(te,ne){return ie=-ie,ne})),isNaN(ne=Number(re))?ne:ne/ie):ne/ie}var Io=["january","february","march","april","may","june","july","august","september","october","november","december"];function fuzzydate(te){var ne=new Date(te),ie=new Date(NaN),re=ne.getYear(),le=ne.getMonth(),ce=ne.getDate();if(isNaN(ce))return ie;var de=te.toLowerCase();if(de.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((de=de.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Io.indexOf(de))return ie}else if(de.match(/[a-z]/))return ie;return re<0||re>8099?ie:(le>0||ce>1)&&101!=re?ne:te.match(/[^-0-9:,\/\\]/)?ie:ne}function zip_add_file(te,ne,ie){if(te.FullPaths){var re;if("string"==typeof ie)return re=Wn?Kn(ie):function utf8decode(te){for(var ne=[],ie=0,re=te.length+250,le=new_raw_buf(te.length+255),ce=0;ce<te.length;++ce){var de=te.charCodeAt(ce);if(de<128)le[ie++]=de;else if(de<2048)le[ie++]=192|de>>6&31,le[ie++]=128|63&de;else if(de>=55296&&de<57344){de=64+(1023&de);var ue=1023&te.charCodeAt(++ce);le[ie++]=240|de>>8&7,le[ie++]=128|de>>2&63,le[ie++]=128|ue>>6&15|(3&de)<<4,le[ie++]=128|63&ue}else le[ie++]=224|de>>12&15,le[ie++]=128|de>>6&63,le[ie++]=128|63&de;ie>re&&(ne.push(le.slice(0,ie)),ie=0,le=new_raw_buf(65535),re=65530)}return ne.push(le.slice(0,ie)),Jn(ne)}(ie),mo.utils.cfb_add(te,ne,re);mo.utils.cfb_add(te,ne,ie)}else te.file(ne,ie)}function zip_new(){return mo.utils.cfb_new()}var Po='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';var Fo={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},zo=evert(Fo),Zo=/[&<>'"]/g,ur=/[\u0000-\u0008\u000b-\u001f]/g;function escapexml(te){return(te+"").replace(Zo,(function(te){return zo[te]})).replace(ur,(function(te){return"_x"+("000"+te.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function escapexmltag(te){return escapexml(te).replace(/ /g,"_x0020_")}var hr=/[\u0000-\u001f]/g;function escapehtml(te){return(te+"").replace(Zo,(function(te){return zo[te]})).replace(/\n/g,"<br/>").replace(hr,(function(te){return"&#x"+("000"+te.charCodeAt(0).toString(16)).slice(-4)+";"}))}function parsexmlbool(te){switch(te){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function utf8reada(te){for(var ne="",ie=0,re=0,le=0,ce=0,de=0,ue=0;ie<te.length;)(re=te.charCodeAt(ie++))<128?ne+=String.fromCharCode(re):(le=te.charCodeAt(ie++),re>191&&re<224?(de=(31&re)<<6,de|=63&le,ne+=String.fromCharCode(de)):(ce=te.charCodeAt(ie++),re<240?ne+=String.fromCharCode((15&re)<<12|(63&le)<<6|63&ce):(ue=((7&re)<<18|(63&le)<<12|(63&ce)<<6|63&(de=te.charCodeAt(ie++)))-65536,ne+=String.fromCharCode(55296+(ue>>>10&1023)),ne+=String.fromCharCode(56320+(1023&ue)))));return ne}function utf8readb(te){var ne,ie,re,le=new_raw_buf(2*te.length),ce=1,de=0,ue=0;for(ie=0;ie<te.length;ie+=ce)ce=1,(re=te.charCodeAt(ie))<128?ne=re:re<224?(ne=64*(31&re)+(63&te.charCodeAt(ie+1)),ce=2):re<240?(ne=4096*(15&re)+64*(63&te.charCodeAt(ie+1))+(63&te.charCodeAt(ie+2)),ce=3):(ce=4,ne=262144*(7&re)+4096*(63&te.charCodeAt(ie+1))+64*(63&te.charCodeAt(ie+2))+(63&te.charCodeAt(ie+3)),ue=55296+((ne-=65536)>>>10&1023),ne=56320+(1023&ne)),0!==ue&&(le[de++]=255&ue,le[de++]=ue>>>8,ue=0),le[de++]=ne%256,le[de++]=ne>>>8;return le.slice(0,de).toString("ucs2")}function utf8readc(te){return Kn(te,"binary").toString("utf8")}var gr="foo bar bazâð£",fr=Wn&&(utf8readc(gr)==utf8reada(gr)&&utf8readc||utf8readb(gr)==utf8reada(gr)&&utf8readb)||utf8reada,_r=Wn?function(te){return Kn(te,"utf8").toString("binary")}:function(te){for(var ne=[],ie=0,re=0,le=0;ie<te.length;)switch(re=te.charCodeAt(ie++),!0){case re<128:ne.push(String.fromCharCode(re));break;case re<2048:ne.push(String.fromCharCode(192+(re>>6))),ne.push(String.fromCharCode(128+(63&re)));break;case re>=55296&&re<57344:re-=55296,le=te.charCodeAt(ie++)-56320+(re<<10),ne.push(String.fromCharCode(240+(le>>18&7))),ne.push(String.fromCharCode(144+(le>>12&63))),ne.push(String.fromCharCode(128+(le>>6&63))),ne.push(String.fromCharCode(128+(63&le)));break;default:ne.push(String.fromCharCode(224+(re>>12))),ne.push(String.fromCharCode(128+(re>>6&63))),ne.push(String.fromCharCode(128+(63&re)))}return ne.join("")},vr=function(){var te=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(te){return[new RegExp("&"+te[0]+";","ig"),te[1]]}));return function htmldecode(ne){for(var ie=ne.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),re=0;re<te.length;++re)ie=ie.replace(te[re][0],te[re][1]);return ie}}();var yr=/(^\s|\s$|\n)/;function writetag(te,ne){return"<"+te+(ne.match(yr)?' xml:space="preserve"':"")+">"+ne+"</"+te+">"}function wxt_helper(te){return keys(te).map((function(ne){return" "+ne+'="'+te[ne]+'"'})).join("")}function writextag(te,ne,ie){return"<"+te+(null!=ie?wxt_helper(ie):"")+(null!=ne?(ne.match(yr)?' xml:space="preserve"':"")+">"+ne+"</"+te:"/")+">"}function write_w3cdtf(te,ne){try{return te.toISOString().replace(/\.\d*/,"")}catch(te){if(ne)throw te}return""}var wr={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ar=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],kr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};var ___toBuffer=function(te){for(var ne=[],ie=0;ie<te[0].length;++ie)if(te[0][ie])for(var re=0,le=te[0][ie].length;re<le;re+=10240)ne.push.apply(ne,te[0][ie].slice(re,re+10240));return ne},Ir=Wn?function(te){return te[0].length>0&&Buffer.isBuffer(te[0][0])?Buffer.concat(te[0].map((function(te){return Buffer.isBuffer(te)?te:Kn(te)}))):___toBuffer(te)}:___toBuffer,___utf16le=function(te,ne,ie){for(var re=[],le=ne;le<ie;le+=2)re.push(String.fromCharCode(__readUInt16LE(te,le)));return re.join("").replace(Zn,"")},Mr=Wn?function(te,ne,ie){return Buffer.isBuffer(te)?te.toString("utf16le",ne,ie).replace(Zn,""):___utf16le(te,ne,ie)}:___utf16le,___hexlify=function(te,ne,ie){for(var re=[],le=ne;le<ne+ie;++le)re.push(("0"+te[le].toString(16)).slice(-2));return re.join("")},Nr=Wn?function(te,ne,ie){return Buffer.isBuffer(te)?te.toString("hex",ne,ne+ie):___hexlify(te,ne,ie)}:___hexlify,___utf8=function(te,ne,ie){for(var re=[],le=ne;le<ie;le++)re.push(String.fromCharCode(__readUInt8(te,le)));return re.join("")},Lr=Wn?function utf8_b(te,ne,ie){return Buffer.isBuffer(te)?te.toString("utf8",ne,ie):___utf8(te,ne,ie)}:___utf8,___lpstr=function(te,ne){var ie=__readUInt32LE(te,ne);return ie>0?Lr(te,ne+4,ne+4+ie-1):""},Or=___lpstr,___cpstr=function(te,ne){var ie=__readUInt32LE(te,ne);return ie>0?Lr(te,ne+4,ne+4+ie-1):""},Pr=___cpstr,___lpwstr=function(te,ne){var ie=2*__readUInt32LE(te,ne);return ie>0?Lr(te,ne+4,ne+4+ie-1):""},jr=___lpwstr,Hr=function lpp4_(te,ne){var ie=__readUInt32LE(te,ne);return ie>0?Mr(te,ne+4,ne+4+ie):""},Ur=Hr,___8lpp4=function(te,ne){var ie=__readUInt32LE(te,ne);return ie>0?Lr(te,ne+4,ne+4+ie):""},$r=___8lpp4,___double=function(te,ne){return function read_double_le(te,ne){for(var ie=1-2*(te[ne+7]>>>7),re=((127&te[ne+7])<<4)+(te[ne+6]>>>4&15),le=15&te[ne+6],ce=5;ce>=0;--ce)le=256*le+te[ne+ce];return 2047==re?0==le?ie*(1/0):NaN:(0==re?re=-1022:(re-=1023,le+=Math.pow(2,52)),ie*Math.pow(2,re-52)*le)}(te,ne)},qr=___double,Kr=function is_buf_a(te){return Array.isArray(te)||"undefined"!=typeof Uint8Array&&te instanceof Uint8Array};function cpdoit(){Mr=function(te,ne,ie){return Hn.utils.decode(1200,te.slice(ne,ie)).replace(Zn,"")},Lr=function(te,ne,ie){return Hn.utils.decode(65001,te.slice(ne,ie))},Or=function(te,ne){var ie=__readUInt32LE(te,ne);return ie>0?Hn.utils.decode(Vn,te.slice(ne+4,ne+4+ie-1)):""},Pr=function(te,ne){var ie=__readUInt32LE(te,ne);return ie>0?Hn.utils.decode(jn,te.slice(ne+4,ne+4+ie-1)):""},jr=function(te,ne){var ie=2*__readUInt32LE(te,ne);return ie>0?Hn.utils.decode(1200,te.slice(ne+4,ne+4+ie-1)):""},Ur=function(te,ne){var ie=__readUInt32LE(te,ne);return ie>0?Hn.utils.decode(1200,te.slice(ne+4,ne+4+ie)):""},$r=function(te,ne){var ie=__readUInt32LE(te,ne);return ie>0?Hn.utils.decode(65001,te.slice(ne+4,ne+4+ie)):""}}Wn&&(Or=function lpstr_b(te,ne){if(!Buffer.isBuffer(te))return ___lpstr(te,ne);var ie=te.readUInt32LE(ne);return ie>0?te.toString("utf8",ne+4,ne+4+ie-1):""},Pr=function cpstr_b(te,ne){if(!Buffer.isBuffer(te))return ___cpstr(te,ne);var ie=te.readUInt32LE(ne);return ie>0?te.toString("utf8",ne+4,ne+4+ie-1):""},jr=function lpwstr_b(te,ne){if(!Buffer.isBuffer(te))return ___lpwstr(te,ne);var ie=2*te.readUInt32LE(ne);return te.toString("utf16le",ne+4,ne+4+ie-1)},Ur=function lpp4_b(te,ne){if(!Buffer.isBuffer(te))return Hr(te,ne);var ie=te.readUInt32LE(ne);return te.toString("utf16le",ne+4,ne+4+ie)},$r=function lpp4_8b(te,ne){if(!Buffer.isBuffer(te))return ___8lpp4(te,ne);var ie=te.readUInt32LE(ne);return te.toString("utf8",ne+4,ne+4+ie)},qr=function double_(te,ne){return Buffer.isBuffer(te)?te.readDoubleLE(ne):___double(te,ne)},Kr=function is_buf_b(te){return Buffer.isBuffer(te)||Array.isArray(te)||"undefined"!=typeof Uint8Array&&te instanceof Uint8Array}),void 0!==Hn&&cpdoit();var __readUInt8=function(te,ne){return te[ne]},__readUInt16LE=function(te,ne){return 256*te[ne+1]+te[ne]},__readInt16LE=function(te,ne){var ie=256*te[ne+1]+te[ne];return ie<32768?ie:-1*(65535-ie+1)},__readUInt32LE=function(te,ne){return te[ne+3]*(1<<24)+(te[ne+2]<<16)+(te[ne+1]<<8)+te[ne]},__readInt32LE=function(te,ne){return te[ne+3]<<24|te[ne+2]<<16|te[ne+1]<<8|te[ne]},__readInt32BE=function(te,ne){return te[ne]<<24|te[ne+1]<<16|te[ne+2]<<8|te[ne+3]};function ReadShift(te,ne){var ie,re,le,ce,de,ue,me="",ge=[];switch(ne){case"dbcs":if(ue=this.l,Wn&&Buffer.isBuffer(this))me=this.slice(this.l,this.l+2*te).toString("utf16le");else for(de=0;de<te;++de)me+=String.fromCharCode(__readUInt16LE(this,ue)),ue+=2;te*=2;break;case"utf8":me=Lr(this,this.l,this.l+te);break;case"utf16le":te*=2,me=Mr(this,this.l,this.l+te);break;case"wstr":if(void 0===Hn)return ReadShift.call(this,te,"dbcs");me=Hn.utils.decode(jn,this.slice(this.l,this.l+2*te)),te*=2;break;case"lpstr-ansi":me=Or(this,this.l),te=4+__readUInt32LE(this,this.l);break;case"lpstr-cp":me=Pr(this,this.l),te=4+__readUInt32LE(this,this.l);break;case"lpwstr":me=jr(this,this.l),te=4+2*__readUInt32LE(this,this.l);break;case"lpp4":te=4+__readUInt32LE(this,this.l),me=Ur(this,this.l),2&te&&(te+=2);break;case"8lpp4":te=4+__readUInt32LE(this,this.l),me=$r(this,this.l),3&te&&(te+=4-(3&te));break;case"cstr":for(te=0,me="";0!==(le=__readUInt8(this,this.l+te++));)ge.push(Un(le));me=ge.join("");break;case"_wstr":for(te=0,me="";0!==(le=__readUInt16LE(this,this.l+te));)ge.push(Un(le)),te+=2;te+=2,me=ge.join("");break;case"dbcs-cont":for(me="",ue=this.l,de=0;de<te;++de){if(this.lens&&-1!==this.lens.indexOf(ue))return le=__readUInt8(this,ue),this.l=ue+1,ce=ReadShift.call(this,te-de,le?"dbcs-cont":"sbcs-cont"),ge.join("")+ce;ge.push(Un(__readUInt16LE(this,ue))),ue+=2}me=ge.join(""),te*=2;break;case"cpstr":if(void 0!==Hn){me=Hn.utils.decode(jn,this.slice(this.l,this.l+te));break}case"sbcs-cont":for(me="",ue=this.l,de=0;de!=te;++de){if(this.lens&&-1!==this.lens.indexOf(ue))return le=__readUInt8(this,ue),this.l=ue+1,ce=ReadShift.call(this,te-de,le?"dbcs-cont":"sbcs-cont"),ge.join("")+ce;ge.push(Un(__readUInt8(this,ue))),ue+=1}me=ge.join("");break;default:switch(te){case 1:return ie=__readUInt8(this,this.l),this.l++,ie;case 2:return ie=("i"===ne?__readInt16LE:__readUInt16LE)(this,this.l),this.l+=2,ie;case 4:case-4:return"i"===ne||0==(128&this[this.l+3])?(ie=(te>0?__readInt32LE:__readInt32BE)(this,this.l),this.l+=4,ie):(re=__readUInt32LE(this,this.l),this.l+=4,re);case 8:case-8:if("f"===ne)return re=8==te?qr(this,this.l):qr([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,re;te=8;case 16:me=Nr(this,this.l,te)}}return this.l+=te,me}var __writeUInt32LE=function(te,ne,ie){te[ie]=255&ne,te[ie+1]=ne>>>8&255,te[ie+2]=ne>>>16&255,te[ie+3]=ne>>>24&255},__writeInt32LE=function(te,ne,ie){te[ie]=255&ne,te[ie+1]=ne>>8&255,te[ie+2]=ne>>16&255,te[ie+3]=ne>>24&255},__writeUInt16LE=function(te,ne,ie){te[ie]=255&ne,te[ie+1]=ne>>>8&255};function WriteShift(te,ne,ie){var re=0,le=0;if("dbcs"===ie){for(le=0;le!=ne.length;++le)__writeUInt16LE(this,ne.charCodeAt(le),this.l+2*le);re=2*ne.length}else if("sbcs"===ie){if(void 0!==Hn&&874==Vn)for(le=0;le!=ne.length;++le){var ce=Hn.utils.encode(Vn,ne.charAt(le));this[this.l+le]=ce[0]}else for(ne=ne.replace(/[^\x00-\x7F]/g,"_"),le=0;le!=ne.length;++le)this[this.l+le]=255&ne.charCodeAt(le);re=ne.length}else{if("hex"===ie){for(;le<te;++le)this[this.l++]=parseInt(ne.slice(2*le,2*le+2),16)||0;return this}if("utf16le"===ie){var de=Math.min(this.l+te,this.length);for(le=0;le<Math.min(ne.length,te);++le){var ue=ne.charCodeAt(le);this[this.l++]=255&ue,this[this.l++]=ue>>8}for(;this.l<de;)this[this.l++]=0;return this}switch(te){case 1:re=1,this[this.l]=255&ne;break;case 2:re=2,this[this.l]=255&ne,ne>>>=8,this[this.l+1]=255&ne;break;case 3:re=3,this[this.l]=255&ne,ne>>>=8,this[this.l+1]=255&ne,ne>>>=8,this[this.l+2]=255&ne;break;case 4:re=4,__writeUInt32LE(this,ne,this.l);break;case 8:if(re=8,"f"===ie){!function write_double_le(te,ne,ie){var re=(ne<0||1/ne==-1/0?1:0)<<7,le=0,ce=0,de=re?-ne:ne;isFinite(de)?0==de?le=ce=0:(le=Math.floor(Math.log(de)/Math.LN2),ce=de*Math.pow(2,52-le),le<=-1023&&(!isFinite(ce)||ce<Math.pow(2,52))?le=-1022:(ce-=Math.pow(2,52),le+=1023)):(le=2047,ce=isNaN(ne)?26985:0);for(var ue=0;ue<=5;++ue,ce/=256)te[ie+ue]=255&ce;te[ie+6]=(15&le)<<4|15&ce,te[ie+7]=le>>4|re}(this,ne,this.l);break}case 16:break;case-4:re=4,__writeInt32LE(this,ne,this.l)}}return this.l+=re,this}function CheckField(te,ne){var ie=Nr(this,this.l,te.length>>1);if(ie!==te)throw new Error(ne+"Expected "+te+" saw "+ie);this.l+=te.length>>1}function prep_blob(te,ne){te.l=ne,te.read_shift=ReadShift,te.chk=CheckField,te.write_shift=WriteShift}function parsenoop(te,ne){te.l+=ne}function new_buf(te){var ne=new_raw_buf(te);return prep_blob(ne,0),ne}function buf_array(){var te=[],ne=Wn?256:2048,ie=function ba_newblk(te){var ne=new_buf(te);return prep_blob(ne,0),ne},re=ie(ne),le=function ba_endbuf(){re&&(re.length>re.l&&((re=re.slice(0,re.l)).l=re.length),re.length>0&&te.push(re),re=null)},ce=function ba_next(te){return re&&te<re.length-re.l?re:(le(),re=ie(Math.max(te+1,ne)))};return{next:ce,push:function ba_push(te){le(),null==(re=te).l&&(re.l=re.length),ce(ne)},end:function ba_end(){return le(),Jn(te)},_bufs:te}}function write_record(te,ne,ie,re){var le,ce=+ne;if(!isNaN(ce)){re||(re=Oc[ce].p||(ie||[]).length||0),le=1+(ce>=128?1:0)+1,re>=128&&++le,re>=16384&&++le,re>=2097152&&++le;var de=te.next(le);ce<=127?de.write_shift(1,ce):(de.write_shift(1,128+(127&ce)),de.write_shift(1,ce>>7));for(var ue=0;4!=ue;++ue){if(!(re>=128)){de.write_shift(1,re);break}de.write_shift(1,128+(127&re)),re>>=7}re>0&&Kr(ie)&&te.push(ie)}}function shift_cell_xls(te,ne,ie){var re=dup(te);if(ne.s?(re.cRel&&(re.c+=ne.s.c),re.rRel&&(re.r+=ne.s.r)):(re.cRel&&(re.c+=ne.c),re.rRel&&(re.r+=ne.r)),!ie||ie.biff<12){for(;re.c>=256;)re.c-=256;for(;re.r>=65536;)re.r-=65536}return re}function shift_range_xls(te,ne,ie){var re=dup(te);return re.s=shift_cell_xls(re.s,ne.s,ie),re.e=shift_cell_xls(re.e,ne.s,ie),re}function encode_cell_xls(te,ne){if(te.cRel&&te.c<0)for(te=dup(te);te.c<0;)te.c+=ne>8?16384:256;if(te.rRel&&te.r<0)for(te=dup(te);te.r<0;)te.r+=ne>8?1048576:ne>5?65536:16384;var ie=encode_cell(te);return te.cRel||null==te.cRel||(ie=function fix_col(te){return te.replace(/^([A-Z])/,"$$$1")}(ie)),te.rRel||null==te.rRel||(ie=function fix_row(te){return te.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(ie)),ie}function encode_range_xls(te,ne){return 0!=te.s.r||te.s.rRel||te.e.r!=(ne.biff>=12?1048575:ne.biff>=8?65536:16384)||te.e.rRel?0!=te.s.c||te.s.cRel||te.e.c!=(ne.biff>=12?16383:255)||te.e.cRel?encode_cell_xls(te.s,ne.biff)+":"+encode_cell_xls(te.e,ne.biff):(te.s.rRel?"":"$")+encode_row(te.s.r)+":"+(te.e.rRel?"":"$")+encode_row(te.e.r):(te.s.cRel?"":"$")+encode_col(te.s.c)+":"+(te.e.cRel?"":"$")+encode_col(te.e.c)}function decode_row(te){return parseInt(function unfix_row(te){return te.replace(/\$(\d+)$/,"$1")}(te),10)-1}function encode_row(te){return""+(te+1)}function decode_col(te){for(var ne=function unfix_col(te){return te.replace(/^\$([A-Z])/,"$1")}(te),ie=0,re=0;re!==ne.length;++re)ie=26*ie+ne.charCodeAt(re)-64;return ie-1}function encode_col(te){if(te<0)throw new Error("invalid column "+te);var ne="";for(++te;te;te=Math.floor((te-1)/26))ne=String.fromCharCode((te-1)%26+65)+ne;return ne}function decode_cell(te){for(var ne=0,ie=0,re=0;re<te.length;++re){var le=te.charCodeAt(re);le>=48&&le<=57?ne=10*ne+(le-48):le>=65&&le<=90&&(ie=26*ie+(le-64))}return{c:ie-1,r:ne-1}}function encode_cell(te){for(var ne=te.c+1,ie="";ne;ne=(ne-1)/26|0)ie=String.fromCharCode((ne-1)%26+65)+ie;return ie+(te.r+1)}function decode_range(te){var ne=te.indexOf(":");return-1==ne?{s:decode_cell(te),e:decode_cell(te)}:{s:decode_cell(te.slice(0,ne)),e:decode_cell(te.slice(ne+1))}}function encode_range(te,ne){return void 0===ne||"number"==typeof ne?encode_range(te.s,te.e):("string"!=typeof te&&(te=encode_cell(te)),"string"!=typeof ne&&(ne=encode_cell(ne)),te==ne?te:te+":"+ne)}function safe_decode_range(te){var ne={s:{c:0,r:0},e:{c:0,r:0}},ie=0,re=0,le=0,ce=te.length;for(ie=0;re<ce&&!((le=te.charCodeAt(re)-64)<1||le>26);++re)ie=26*ie+le;for(ne.s.c=--ie,ie=0;re<ce&&!((le=te.charCodeAt(re)-48)<0||le>9);++re)ie=10*ie+le;if(ne.s.r=--ie,re===ce||10!=le)return ne.e.c=ne.s.c,ne.e.r=ne.s.r,ne;for(++re,ie=0;re!=ce&&!((le=te.charCodeAt(re)-64)<1||le>26);++re)ie=26*ie+le;for(ne.e.c=--ie,ie=0;re!=ce&&!((le=te.charCodeAt(re)-48)<0||le>9);++re)ie=10*ie+le;return ne.e.r=--ie,ne}function safe_format_cell(te,ne){var ie="d"==te.t&&ne instanceof Date;if(null!=te.z)try{return te.w=SSF_format(te.z,ie?datenum(ne):ne)}catch(te){}try{return te.w=SSF_format((te.XF||{}).numFmtId||(ie?14:0),ie?datenum(ne):ne)}catch(te){return""+ne}}function format_cell(te,ne,ie){return null==te||null==te.t||"z"==te.t?"":void 0!==te.w?te.w:("d"==te.t&&!te.z&&ie&&ie.dateNF&&(te.z=ie.dateNF),"e"==te.t?ha[te.v]||te.v:safe_format_cell(te,null==ne?te.v:ne))}function sheet_to_workbook(te,ne){var ie=ne&&ne.sheet?ne.sheet:"Sheet1",re={};return re[ie]=te,{SheetNames:[ie],Sheets:re}}function sheet_add_aoa(te,ne,ie){var re=ie||{},le=te?Array.isArray(te):re.dense;null!=qn&&null==le&&(le=qn);var ce=te||(le?[]:{}),de=0,ue=0;if(ce&&null!=re.origin){if("number"==typeof re.origin)de=re.origin;else{var me="string"==typeof re.origin?decode_cell(re.origin):re.origin;de=me.r,ue=me.c}ce["!ref"]||(ce["!ref"]="A1:A1")}var ge={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(ce["!ref"]){var fe=safe_decode_range(ce["!ref"]);ge.s.c=fe.s.c,ge.s.r=fe.s.r,ge.e.c=Math.max(ge.e.c,fe.e.c),ge.e.r=Math.max(ge.e.r,fe.e.r),-1==de&&(ge.e.r=de=fe.e.r+1)}for(var _e=0;_e!=ne.length;++_e)if(ne[_e]){if(!Array.isArray(ne[_e]))throw new Error("aoa_to_sheet expects an array of arrays");for(var be=0;be!=ne[_e].length;++be)if(void 0!==ne[_e][be]){var Ce={v:ne[_e][be]},ye=de+_e,we=ue+be;if(ge.s.r>ye&&(ge.s.r=ye),ge.s.c>we&&(ge.s.c=we),ge.e.r<ye&&(ge.e.r=ye),ge.e.c<we&&(ge.e.c=we),!ne[_e][be]||"object"!=typeof ne[_e][be]||Array.isArray(ne[_e][be])||ne[_e][be]instanceof Date)if(Array.isArray(Ce.v)&&(Ce.f=ne[_e][be][1],Ce.v=Ce.v[0]),null===Ce.v)if(Ce.f)Ce.t="n";else if(re.nullError)Ce.t="e",Ce.v=0;else{if(!re.sheetStubs)continue;Ce.t="z"}else"number"==typeof Ce.v?Ce.t="n":"boolean"==typeof Ce.v?Ce.t="b":Ce.v instanceof Date?(Ce.z=re.dateNF||ki[14],re.cellDates?(Ce.t="d",Ce.w=SSF_format(Ce.z,datenum(Ce.v))):(Ce.t="n",Ce.v=datenum(Ce.v),Ce.w=SSF_format(Ce.z,Ce.v))):Ce.t="s";else Ce=ne[_e][be];if(le)ce[ye]||(ce[ye]=[]),ce[ye][we]&&ce[ye][we].z&&(Ce.z=ce[ye][we].z),ce[ye][we]=Ce;else{var ke=encode_cell({c:we,r:ye});ce[ke]&&ce[ke].z&&(Ce.z=ce[ke].z),ce[ke]=Ce}}}return ge.s.c<1e7&&(ce["!ref"]=encode_range(ge)),ce}function aoa_to_sheet(te,ne){return sheet_add_aoa(null,te,ne)}function write_UInt32LE(te,ne){return ne||(ne=new_buf(4)),ne.write_shift(4,te),ne}function parse_XLWideString(te){var ne=te.read_shift(4);return 0===ne?"":te.read_shift(ne,"dbcs")}function write_XLWideString(te,ne){var ie=!1;return null==ne&&(ie=!0,ne=new_buf(4+2*te.length)),ne.write_shift(4,te.length),te.length>0&&ne.write_shift(0,te,"dbcs"),ie?ne.slice(0,ne.l):ne}function parse_StrRun(te){return{ich:te.read_shift(2),ifnt:te.read_shift(2)}}function parse_RichStr(te,ne){var ie=te.l,re=te.read_shift(1),le=parse_XLWideString(te),ce=[],de={t:le,h:le};if(0!=(1&re)){for(var ue=te.read_shift(4),me=0;me!=ue;++me)ce.push(parse_StrRun(te));de.r=ce}else de.r=[{ich:0,ifnt:0}];return te.l=ie+ne,de}var Qr=parse_RichStr;function write_BrtCommentText(te,ne){var ie=!1;return null==ne&&(ie=!0,ne=new_buf(23+4*te.t.length)),ne.write_shift(1,1),write_XLWideString(te.t,ne),ne.write_shift(4,1),function write_StrRun(te,ne){return ne||(ne=new_buf(4)),ne.write_shift(2,te.ich||0),ne.write_shift(2,te.ifnt||0),ne}({ich:0,ifnt:0},ne),ie?ne.slice(0,ne.l):ne}function parse_XLSBCell(te){var ne=te.read_shift(4),ie=te.read_shift(2);return ie+=te.read_shift(1)<<16,te.l++,{c:ne,iStyleRef:ie}}function write_XLSBCell(te,ne){return null==ne&&(ne=new_buf(8)),ne.write_shift(-4,te.c),ne.write_shift(3,te.iStyleRef||te.s),ne.write_shift(1,0),ne}function parse_XLSBShortCell(te){var ne=te.read_shift(2);return ne+=te.read_shift(1)<<16,te.l++,{c:-1,iStyleRef:ne}}function write_XLSBShortCell(te,ne){return null==ne&&(ne=new_buf(4)),ne.write_shift(3,te.iStyleRef||te.s),ne.write_shift(1,0),ne}var Jr=parse_XLWideString,Zr=write_XLWideString;function parse_XLNullableWideString(te){var ne=te.read_shift(4);return 0===ne||4294967295===ne?"":te.read_shift(ne,"dbcs")}function write_XLNullableWideString(te,ne){var ie=!1;return null==ne&&(ie=!0,ne=new_buf(127)),ne.write_shift(4,te.length>0?te.length:4294967295),te.length>0&&ne.write_shift(0,te,"dbcs"),ie?ne.slice(0,ne.l):ne}var ea=parse_XLWideString,ta=parse_XLNullableWideString,ia=write_XLNullableWideString;function parse_RkNumber(te){var ne=te.slice(te.l,te.l+4),ie=1&ne[0],re=2&ne[0];te.l+=4;var le=0===re?qr([0,0,0,0,252&ne[0],ne[1],ne[2],ne[3]],0):__readInt32LE(ne,0)>>2;return ie?le/100:le}function write_RkNumber(te,ne){null==ne&&(ne=new_buf(4));var ie=0,re=0,le=100*te;if(te==(0|te)&&te>=-(1<<29)&&te<1<<29?re=1:le==(0|le)&&le>=-(1<<29)&&le<1<<29&&(re=1,ie=1),!re)throw new Error("unsupported RkNumber "+te);ne.write_shift(-4,((ie?le:te)<<2)+(ie+2))}function parse_RfX(te){var ne={s:{},e:{}};return ne.s.r=te.read_shift(4),ne.e.r=te.read_shift(4),ne.s.c=te.read_shift(4),ne.e.c=te.read_shift(4),ne}var oa=parse_RfX,ra=function write_RfX(te,ne){return ne||(ne=new_buf(16)),ne.write_shift(4,te.s.r),ne.write_shift(4,te.e.r),ne.write_shift(4,te.s.c),ne.write_shift(4,te.e.c),ne};function parse_Xnum(te){if(te.length-te.l<8)throw"XLS Xnum Buffer underflow";return te.read_shift(8,"f")}function write_Xnum(te,ne){return(ne||new_buf(8)).write_shift(8,te,"f")}function write_BrtColor(te,ne){if(ne||(ne=new_buf(8)),!te||te.auto)return ne.write_shift(4,0),ne.write_shift(4,0),ne;null!=te.index?(ne.write_shift(1,2),ne.write_shift(1,te.index)):null!=te.theme?(ne.write_shift(1,6),ne.write_shift(1,te.theme)):(ne.write_shift(1,5),ne.write_shift(1,0));var ie=te.tint||0;if(ie>0?ie*=32767:ie<0&&(ie*=32768),ne.write_shift(2,ie),te.rgb&&null==te.theme){var re=te.rgb||"FFFFFF";"number"==typeof re&&(re=("000000"+re.toString(16)).slice(-6)),ne.write_shift(1,parseInt(re.slice(0,2),16)),ne.write_shift(1,parseInt(re.slice(2,4),16)),ne.write_shift(1,parseInt(re.slice(4,6),16)),ne.write_shift(1,255)}else ne.write_shift(2,0),ne.write_shift(1,0),ne.write_shift(1,0);return ne}var aa=2,sa=3,la=80,da={1:{n:"CodePage",t:aa},2:{n:"Category",t:la},3:{n:"PresentationFormat",t:la},4:{n:"ByteCount",t:sa},5:{n:"LineCount",t:sa},6:{n:"ParagraphCount",t:sa},7:{n:"SlideCount",t:sa},8:{n:"NoteCount",t:sa},9:{n:"HiddenCount",t:sa},10:{n:"MultimediaClipCount",t:sa},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:la},15:{n:"Company",t:la},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:sa},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:sa,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:la},27:{n:"ContentStatus",t:la},28:{n:"Language",t:la},29:{n:"Version",t:la},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},ua={1:{n:"CodePage",t:aa},2:{n:"Title",t:la},3:{n:"Subject",t:la},4:{n:"Author",t:la},5:{n:"Keywords",t:la},6:{n:"Comments",t:la},7:{n:"Template",t:la},8:{n:"LastAuthor",t:la},9:{n:"RevNumber",t:la},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:sa},15:{n:"WordCount",t:sa},16:{n:"CharCount",t:sa},17:{n:"Thumbnail",t:71},18:{n:"Application",t:la},19:{n:"DocSecurity",t:sa},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function rgbify(te){return te.map((function(te){return[te>>16&255,te>>8&255,255&te]}))}var pa=dup(rgbify([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),ha={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Ca={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},wa={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function write_ct(te,ne){var ie,re=function evert_arr(te){for(var ne=[],ie=keys(te),re=0;re!==ie.length;++re)null==ne[te[ie[re]]]&&(ne[te[ie[re]]]=[]),ne[te[ie[re]]].push(ie[re]);return ne}(Ca),le=[];le[le.length]=Po,le[le.length]=writextag("Types",null,{xmlns:wr.CT,"xmlns:xsd":wr.xsd,"xmlns:xsi":wr.xsi}),le=le.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(te){return writextag("Default",null,{Extension:te[0],ContentType:te[1]})})));var f1=function(re){te[re]&&te[re].length>0&&(ie=te[re][0],le[le.length]=writextag("Override",null,{PartName:("/"==ie[0]?"":"/")+ie,ContentType:wa[re][ne.bookType]||wa[re].xlsx}))},f2=function(ie){(te[ie]||[]).forEach((function(te){le[le.length]=writextag("Override",null,{PartName:("/"==te[0]?"":"/")+te,ContentType:wa[ie][ne.bookType]||wa[ie].xlsx})}))},f3=function(ne){(te[ne]||[]).forEach((function(te){le[le.length]=writextag("Override",null,{PartName:("/"==te[0]?"":"/")+te,ContentType:re[ne][0]})}))};return f1("workbooks"),f2("sheets"),f2("charts"),f3("themes"),["strs","styles"].forEach(f1),["coreprops","extprops","custprops"].forEach(f3),f3("vba"),f3("comments"),f3("threadedcomments"),f3("drawings"),f2("metadata"),f3("people"),le.length>2&&(le[le.length]="</Types>",le[1]=le[1].replace("/>",">")),le.join("")}var Ta={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function get_rels_path(te){var ne=te.lastIndexOf("/");return te.slice(0,ne+1)+"_rels/"+te.slice(ne+1)+".rels"}function write_rels(te){var ne=[Po,writextag("Relationships",null,{xmlns:wr.RELS})];return keys(te["!id"]).forEach((function(ie){ne[ne.length]=writextag("Relationship",null,te["!id"][ie])})),ne.length>2&&(ne[ne.length]="</Relationships>",ne[1]=ne[1].replace("/>",">")),ne.join("")}function add_rels(te,ne,ie,re,le,ce){if(le||(le={}),te["!id"]||(te["!id"]={}),te["!idx"]||(te["!idx"]=1),ne<0)for(ne=te["!idx"];te["!id"]["rId"+ne];++ne);if(te["!idx"]=ne+1,le.Id="rId"+ne,le.Type=re,le.Target=ie,ce?le.TargetMode=ce:[Ta.HLINK,Ta.XPATH,Ta.XMISS].indexOf(le.Type)>-1&&(le.TargetMode="External"),te["!id"][le.Id])throw new Error("Cannot rewrite rId "+ne);return te["!id"][le.Id]=le,te[("/"+le.Target).replace("//","/")]=le,ne}function write_rdf_type(te,ne,ie){return['  <rdf:Description rdf:about="'+te+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(ie||"odf")+"#"+ne+'"/>\n',"  </rdf:Description>\n"].join("")}function write_meta_ods(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Fn.version+"</meta:generator></office:meta></office:document-meta>"}var Da=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function cp_doit(te,ne,ie,re,le){null==le[te]&&null!=ne&&""!==ne&&(le[te]=ne,ne=escapexml(ne),re[re.length]=ie?writextag(te,ne,ie):writetag(te,ne))}function write_core_props(te,ne){var ie=ne||{},re=[Po,writextag("cp:coreProperties",null,{"xmlns:cp":wr.CORE_PROPS,"xmlns:dc":wr.dc,"xmlns:dcterms":wr.dcterms,"xmlns:dcmitype":wr.dcmitype,"xmlns:xsi":wr.xsi})],le={};if(!te&&!ie.Props)return re.join("");te&&(null!=te.CreatedDate&&cp_doit("dcterms:created","string"==typeof te.CreatedDate?te.CreatedDate:write_w3cdtf(te.CreatedDate,ie.WTF),{"xsi:type":"dcterms:W3CDTF"},re,le),null!=te.ModifiedDate&&cp_doit("dcterms:modified","string"==typeof te.ModifiedDate?te.ModifiedDate:write_w3cdtf(te.ModifiedDate,ie.WTF),{"xsi:type":"dcterms:W3CDTF"},re,le));for(var ce=0;ce!=Da.length;++ce){var de=Da[ce],ue=ie.Props&&null!=ie.Props[de[1]]?ie.Props[de[1]]:te?te[de[1]]:null;!0===ue?ue="1":!1===ue?ue="0":"number"==typeof ue&&(ue=String(ue)),null!=ue&&cp_doit(de[0],ue,null,re,le)}return re.length>2&&(re[re.length]="</cp:coreProperties>",re[1]=re[1].replace("/>",">")),re.join("")}var xa=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Ma=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function write_ext_props(te){var ne=[],ie=writextag;return te||(te={}),te.Application="SheetJS",ne[ne.length]=Po,ne[ne.length]=writextag("Properties",null,{xmlns:wr.EXT_PROPS,"xmlns:vt":wr.vt}),xa.forEach((function(re){if(void 0!==te[re[1]]){var le;switch(re[2]){case"string":le=escapexml(String(te[re[1]]));break;case"bool":le=te[re[1]]?"true":"false"}void 0!==le&&(ne[ne.length]=ie(re[0],le))}})),ne[ne.length]=ie("HeadingPairs",ie("vt:vector",ie("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+ie("vt:variant",ie("vt:i4",String(te.Worksheets))),{size:2,baseType:"variant"})),ne[ne.length]=ie("TitlesOfParts",ie("vt:vector",te.SheetNames.map((function(te){return"<vt:lpstr>"+escapexml(te)+"</vt:lpstr>"})).join(""),{size:te.Worksheets,baseType:"lpstr"})),ne.length>2&&(ne[ne.length]="</Properties>",ne[1]=ne[1].replace("/>",">")),ne.join("")}function write_cust_props(te){var ne=[Po,writextag("Properties",null,{xmlns:wr.CUST_PROPS,"xmlns:vt":wr.vt})];if(!te)return ne.join("");var ie=1;return keys(te).forEach((function custprop(re){++ie,ne[ne.length]=writextag("property",function write_vt(te,ne){switch(typeof te){case"string":var ie=writextag("vt:lpwstr",escapexml(te));return ne&&(ie=ie.replace(/&quot;/g,"_x0022_")),ie;case"number":return writextag((0|te)==te?"vt:i4":"vt:r8",escapexml(String(te)));case"boolean":return writextag("vt:bool",te?"true":"false")}if(te instanceof Date)return writextag("vt:filetime",write_w3cdtf(te));throw new Error("Unable to serialize "+te)}(te[re],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:ie,name:escapexml(re)})})),ne.length>2&&(ne[ne.length]="</Properties>",ne[1]=ne[1].replace("/>",">")),ne.join("")}var Na={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function write_TypedPropertyValue(te,ne){var ie=new_buf(4),re=new_buf(4);switch(ie.write_shift(4,80==te?31:te),te){case 3:re.write_shift(-4,ne);break;case 5:(re=new_buf(8)).write_shift(8,ne,"f");break;case 11:re.write_shift(4,ne?1:0);break;case 64:re=function write_FILETIME(te){var ne=("string"==typeof te?new Date(Date.parse(te)):te).getTime()/1e3+11644473600,ie=ne%Math.pow(2,32),re=(ne-ie)/Math.pow(2,32);re*=1e7;var le=(ie*=1e7)/Math.pow(2,32)|0;le>0&&(ie%=Math.pow(2,32),re+=le);var ce=new_buf(8);return ce.write_shift(4,ie),ce.write_shift(4,re),ce}(ne);break;case 31:case 80:for((re=new_buf(4+2*(ne.length+1)+(ne.length%2?0:2))).write_shift(4,ne.length+1),re.write_shift(0,ne,"dbcs");re.l!=re.length;)re.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+te+" "+ne)}return Jn([ie,re])}var Ra=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function guess_property_type(te){switch(typeof te){case"boolean":return 11;case"number":return(0|te)==te?3:5;case"string":return 31;case"object":if(te instanceof Date)return 64}return-1}function write_PropertySet(te,ne,ie){var re=new_buf(8),le=[],ce=[],de=8,ue=0,me=new_buf(8),ge=new_buf(8);if(me.write_shift(4,2),me.write_shift(4,1200),ge.write_shift(4,1),ce.push(me),le.push(ge),de+=8+me.length,!ne){(ge=new_buf(8)).write_shift(4,0),le.unshift(ge);var fe=[new_buf(4)];for(fe[0].write_shift(4,te.length),ue=0;ue<te.length;++ue){var _e=te[ue][0];for((me=new_buf(8+2*(_e.length+1)+(_e.length%2?0:2))).write_shift(4,ue+2),me.write_shift(4,_e.length+1),me.write_shift(0,_e,"dbcs");me.l!=me.length;)me.write_shift(1,0);fe.push(me)}me=Jn(fe),ce.unshift(me),de+=8+me.length}for(ue=0;ue<te.length;++ue)if((!ne||ne[te[ue][0]])&&!(Ra.indexOf(te[ue][0])>-1||Ma.indexOf(te[ue][0])>-1)&&null!=te[ue][1]){var be=te[ue][1],Ce=0;if(ne){var ye=ie[Ce=+ne[te[ue][0]]];if("version"==ye.p&&"string"==typeof be){var we=be.split(".");be=(+we[0]<<16)+(+we[1]||0)}me=write_TypedPropertyValue(ye.t,be)}else{var ke=guess_property_type(be);-1==ke&&(ke=31,be=String(be)),me=write_TypedPropertyValue(ke,be)}ce.push(me),(ge=new_buf(8)).write_shift(4,ne?Ce:2+ue),le.push(ge),de+=8+me.length}var Se=8*(ce.length+1);for(ue=0;ue<ce.length;++ue)le[ue].write_shift(4,Se),Se+=ce[ue].length;return re.write_shift(4,de),re.write_shift(4,ce.length),Jn([re].concat(le).concat(ce))}function write_PropertySetStream(te,ne,ie,re,le,ce){var de=new_buf(le?68:48),ue=[de];de.write_shift(2,65534),de.write_shift(2,0),de.write_shift(4,842412599),de.write_shift(16,mo.utils.consts.HEADER_CLSID,"hex"),de.write_shift(4,le?2:1),de.write_shift(16,ne,"hex"),de.write_shift(4,le?68:48);var me=write_PropertySet(te,ie,re);if(ue.push(me),le){var ge=write_PropertySet(le,null,null);de.write_shift(16,ce,"hex"),de.write_shift(4,68+me.length),ue.push(ge)}return Jn(ue)}function parsebool(te,ne){return 1===te.read_shift(ne)}function writebool(te,ne){return ne||(ne=new_buf(2)),ne.write_shift(2,+!!te),ne}function parseuint16(te){return te.read_shift(2,"u")}function writeuint16(te,ne){return ne||(ne=new_buf(2)),ne.write_shift(2,te),ne}function write_Bes(te,ne,ie){return ie||(ie=new_buf(2)),ie.write_shift(1,"e"==ne?+te:+!!te),ie.write_shift(1,"e"==ne?1:0),ie}function parse_ShortXLUnicodeString(te,ne,ie){var re=te.read_shift(ie&&ie.biff>=12?2:1),le="sbcs-cont",ce=jn;(ie&&ie.biff>=8&&(jn=1200),ie&&8!=ie.biff)?12==ie.biff&&(le="wstr"):te.read_shift(1)&&(le="dbcs-cont");ie.biff>=2&&ie.biff<=5&&(le="cpstr");var de=re?te.read_shift(re,le):"";return jn=ce,de}function write_XLUnicodeRichExtendedString(te){var ne=te.t||"",ie=new_buf(3);ie.write_shift(2,ne.length),ie.write_shift(1,1);var re=new_buf(2*ne.length);return re.write_shift(2*ne.length,ne,"utf16le"),Jn([ie,re])}function parse_XLUnicodeStringNoCch(te,ne,ie){if(ie){if(ie.biff>=2&&ie.biff<=5)return te.read_shift(ne,"cpstr");if(ie.biff>=12)return te.read_shift(ne,"dbcs-cont")}return 0===te.read_shift(1)?te.read_shift(ne,"sbcs-cont"):te.read_shift(ne,"dbcs-cont")}function parse_XLUnicodeString(te,ne,ie){var re=te.read_shift(ie&&2==ie.biff?1:2);return 0===re?(te.l++,""):parse_XLUnicodeStringNoCch(te,re,ie)}function parse_XLUnicodeString2(te,ne,ie){if(ie.biff>5)return parse_XLUnicodeString(te,0,ie);var re=te.read_shift(1);return 0===re?(te.l++,""):te.read_shift(re,ie.biff<=4||!te.lens?"cpstr":"sbcs-cont")}function write_XLUnicodeString(te,ne,ie){return ie||(ie=new_buf(3+2*te.length)),ie.write_shift(2,te.length),ie.write_shift(1,1),ie.write_shift(31,te,"utf16le"),ie}function write_HyperlinkString(te,ne){ne||(ne=new_buf(6+2*te.length)),ne.write_shift(4,1+te.length);for(var ie=0;ie<te.length;++ie)ne.write_shift(2,te.charCodeAt(ie));return ne.write_shift(2,0),ne}function write_Hyperlink(te){var ne=new_buf(512),ie=0,re=te.Target;"file://"==re.slice(0,7)&&(re=re.slice(7));var le=re.indexOf("#"),ce=le>-1?31:23;switch(re.charAt(0)){case"#":ce=28;break;case".":ce&=-3}ne.write_shift(4,2),ne.write_shift(4,ce);var de=[8,6815827,6619237,4849780,83];for(ie=0;ie<de.length;++ie)ne.write_shift(4,de[ie]);if(28==ce)write_HyperlinkString(re=re.slice(1),ne);else if(2&ce){for(de="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),ie=0;ie<de.length;++ie)ne.write_shift(1,parseInt(de[ie],16));var ue=le>-1?re.slice(0,le):re;for(ne.write_shift(4,2*(ue.length+1)),ie=0;ie<ue.length;++ie)ne.write_shift(2,ue.charCodeAt(ie));ne.write_shift(2,0),8&ce&&write_HyperlinkString(le>-1?re.slice(le+1):"",ne)}else{for(de="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),ie=0;ie<de.length;++ie)ne.write_shift(1,parseInt(de[ie],16));for(var me=0;"../"==re.slice(3*me,3*me+3)||"..\\"==re.slice(3*me,3*me+3);)++me;for(ne.write_shift(2,me),ne.write_shift(4,re.length-3*me+1),ie=0;ie<re.length-3*me;++ie)ne.write_shift(1,255&re.charCodeAt(ie+3*me));for(ne.write_shift(1,0),ne.write_shift(2,65535),ne.write_shift(2,57005),ie=0;ie<6;++ie)ne.write_shift(4,0)}return ne.slice(0,ne.l)}function write_XLSCell(te,ne,ie,re){return re||(re=new_buf(6)),re.write_shift(2,te),re.write_shift(2,ne),re.write_shift(2,ie||0),re}function parse_XTI(te,ne,ie){var re=ie.biff>8?4:2;return[te.read_shift(re),te.read_shift(re,"i"),te.read_shift(re,"i")]}function parse_Ref8U(te){var ne=te.read_shift(2),ie=te.read_shift(2);return{s:{c:te.read_shift(2),r:ne},e:{c:te.read_shift(2),r:ie}}}function write_Ref8U(te,ne){return ne||(ne=new_buf(8)),ne.write_shift(2,te.s.r),ne.write_shift(2,te.e.r),ne.write_shift(2,te.s.c),ne.write_shift(2,te.e.c),ne}function write_BOF(te,ne,ie){var re=1536,le=16;switch(ie.bookType){case"biff8":case"xla":break;case"biff5":re=1280,le=8;break;case"biff4":re=4,le=6;break;case"biff3":re=3,le=6;break;case"biff2":re=2,le=4;break;default:throw new Error("unsupported BIFF version")}var ce=new_buf(le);return ce.write_shift(2,re),ce.write_shift(2,ne),le>4&&ce.write_shift(2,29282),le>6&&ce.write_shift(2,1997),le>8&&(ce.write_shift(2,49161),ce.write_shift(2,1),ce.write_shift(2,1798),ce.write_shift(2,0)),ce}function write_BoundSheet8(te,ne){var ie=!ne||ne.biff>=8?2:1,re=new_buf(8+ie*te.name.length);re.write_shift(4,te.pos),re.write_shift(1,te.hs||0),re.write_shift(1,te.dt),re.write_shift(1,te.name.length),ne.biff>=8&&re.write_shift(1,1),re.write_shift(ie*te.name.length,te.name,ne.biff<8?"sbcs":"utf16le");var le=re.slice(0,re.l);return le.l=re.l,le}function write_Format(te,ne,ie,re){var le=ie&&5==ie.biff;re||(re=new_buf(le?3+ne.length:5+2*ne.length)),re.write_shift(2,te),re.write_shift(le?1:2,ne.length),le||re.write_shift(1,1),re.write_shift((le?1:2)*ne.length,ne,le?"sbcs":"utf16le");var ce=re.length>re.l?re.slice(0,re.l):re;return null==ce.l&&(ce.l=ce.length),ce}function write_XF(te,ne,ie,re){var le=ie&&5==ie.biff;re||(re=new_buf(le?16:20)),re.write_shift(2,0),te.style?(re.write_shift(2,te.numFmtId||0),re.write_shift(2,65524)):(re.write_shift(2,te.numFmtId||0),re.write_shift(2,ne<<4));var ce=0;return te.numFmtId>0&&le&&(ce|=1024),re.write_shift(4,ce),re.write_shift(4,0),le||re.write_shift(4,0),re.write_shift(2,0),re}function parse_ExternSheet(te,ne,ie){if(ie.biff<8)return function parse_BIFF5ExternSheet(te,ne,ie){3==te[te.l+1]&&te[te.l]++;var re=parse_ShortXLUnicodeString(te,0,ie);return 3==re.charCodeAt(0)?re.slice(1):re}(te,0,ie);for(var re=[],le=te.l+ne,ce=te.read_shift(ie.biff>8?4:2);0!=ce--;)re.push(parse_XTI(te,ie.biff,ie));if(te.l!=le)throw new Error("Bad ExternSheet: "+te.l+" != "+le);return re}function write_HLink(te){var ne=new_buf(24),ie=decode_cell(te[0]);ne.write_shift(2,ie.r),ne.write_shift(2,ie.r),ne.write_shift(2,ie.c),ne.write_shift(2,ie.c);for(var re="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),le=0;le<16;++le)ne.write_shift(1,parseInt(re[le],16));return Jn([ne,write_Hyperlink(te[1])])}function write_HLinkTooltip(te){var ne=te[1].Tooltip,ie=new_buf(10+2*(ne.length+1));ie.write_shift(2,2048);var re=decode_cell(te[0]);ie.write_shift(2,re.r),ie.write_shift(2,re.r),ie.write_shift(2,re.c),ie.write_shift(2,re.c);for(var le=0;le<ne.length;++le)ie.write_shift(2,ne.charCodeAt(le));return ie.write_shift(2,0),ie}function parse_ColInfo(te,ne,ie){if(!ie.cellStyles)return parsenoop(te,ne);var re=ie&&ie.biff>=12?4:2,le=te.read_shift(re),ce=te.read_shift(re),de=te.read_shift(re),ue=te.read_shift(re),me=te.read_shift(2);2==re&&(te.l+=2);var ge={s:le,e:ce,w:de,ixfe:ue,flags:me};return(ie.biff>=5||!ie.biff)&&(ge.level=me>>8&7),ge}var La=function(){var te={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},ne=evert({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function dbf_to_sheet(ne,ie){var re=ie||{};re.dateNF||(re.dateNF="yyyymmdd");var le=aoa_to_sheet(function dbf_to_aoa(ne,ie){var re=[],le=new_raw_buf(1);switch(ie.type){case"base64":le=Qn(Base64_decode(ne));break;case"binary":le=Qn(ne);break;case"buffer":case"array":le=ne}prep_blob(le,0);var ce=le.read_shift(1),de=!!(136&ce),ue=!1,me=!1;switch(ce){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:ue=!0,de=!0;break;case 140:me=!0;break;default:throw new Error("DBF Unsupported Version: "+ce.toString(16))}var ge=0,fe=521;2==ce&&(ge=le.read_shift(2)),le.l+=3,2!=ce&&(ge=le.read_shift(4)),ge>1048576&&(ge=1e6),2!=ce&&(fe=le.read_shift(2));var _e=le.read_shift(2),be=ie.codepage||1252;2!=ce&&(le.l+=16,le.read_shift(1),0!==le[le.l]&&(be=te[le[le.l]]),le.l+=1,le.l+=2),me&&(le.l+=36);for(var Ce=[],ye={},we=Math.min(le.length,2==ce?521:fe-10-(ue?264:0)),ke=me?32:11;le.l<we&&13!=le[le.l];)switch((ye={}).name=Hn.utils.decode(be,le.slice(le.l,le.l+ke)).replace(/[\u0000\r\n].*$/g,""),le.l+=ke,ye.type=String.fromCharCode(le.read_shift(1)),2==ce||me||(ye.offset=le.read_shift(4)),ye.len=le.read_shift(1),2==ce&&(ye.offset=le.read_shift(2)),ye.dec=le.read_shift(1),ye.name.length&&Ce.push(ye),2!=ce&&(le.l+=me?13:14),ye.type){case"B":ue&&8==ye.len||!ie.WTF||console.log("Skipping "+ye.name+":"+ye.type);break;case"G":case"P":ie.WTF&&console.log("Skipping "+ye.name+":"+ye.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+ye.type)}if(13!==le[le.l]&&(le.l=fe-1),13!==le.read_shift(1))throw new Error("DBF Terminator not found "+le.l+" "+le[le.l]);le.l=fe;var Se=0,xe=0;for(re[0]=[],xe=0;xe!=Ce.length;++xe)re[0][xe]=Ce[xe].name;for(;ge-- >0;)if(42!==le[le.l])for(++le.l,re[++Se]=[],xe=0,xe=0;xe!=Ce.length;++xe){var Ee=le.slice(le.l,le.l+Ce[xe].len);le.l+=Ce[xe].len,prep_blob(Ee,0);var Me=Hn.utils.decode(be,Ee);switch(Ce[xe].type){case"C":Me.trim().length&&(re[Se][xe]=Me.replace(/\s+$/,""));break;case"D":8===Me.length?re[Se][xe]=new Date(+Me.slice(0,4),+Me.slice(4,6)-1,+Me.slice(6,8)):re[Se][xe]=Me;break;case"F":re[Se][xe]=parseFloat(Me.trim());break;case"+":case"I":re[Se][xe]=me?2147483648^Ee.read_shift(-4,"i"):Ee.read_shift(4,"i");break;case"L":switch(Me.trim().toUpperCase()){case"Y":case"T":re[Se][xe]=!0;break;case"N":case"F":re[Se][xe]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+Me+"|")}break;case"M":if(!de)throw new Error("DBF Unexpected MEMO for type "+ce.toString(16));re[Se][xe]="##MEMO##"+(me?parseInt(Me.trim(),10):Ee.read_shift(4));break;case"N":(Me=Me.replace(/\u0000/g,"").trim())&&"."!=Me&&(re[Se][xe]=+Me||0);break;case"@":re[Se][xe]=new Date(Ee.read_shift(-8,"f")-621356832e5);break;case"T":re[Se][xe]=new Date(864e5*(Ee.read_shift(4)-2440588)+Ee.read_shift(4));break;case"Y":re[Se][xe]=Ee.read_shift(4,"i")/1e4+Ee.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":re[Se][xe]=-Ee.read_shift(-8,"f");break;case"B":if(ue&&8==Ce[xe].len){re[Se][xe]=Ee.read_shift(8,"f");break}case"G":case"P":Ee.l+=Ce[xe].len;break;case"0":if("_NullFlags"===Ce[xe].name)break;default:throw new Error("DBF Unsupported data type "+Ce[xe].type)}}else le.l+=_e;if(2!=ce&&le.l<le.length&&26!=le[le.l++])throw new Error("DBF EOF Marker missing "+(le.l-1)+" of "+le.length+" "+le[le.l-1].toString(16));return ie&&ie.sheetRows&&(re=re.slice(0,ie.sheetRows)),ie.DBF=Ce,re}(ne,re),re);return le["!cols"]=re.DBF.map((function(te){return{wch:te.len,DBF:te}})),delete re.DBF,le}var ie={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function dbf_to_workbook(te,ne){try{return sheet_to_workbook(dbf_to_sheet(te,ne),ne)}catch(te){if(ne&&ne.WTF)throw te}return{SheetNames:[],Sheets:{}}},to_sheet:dbf_to_sheet,from_sheet:function sheet_to_dbf(te,re){var le=re||{};if(+le.codepage>=0&&set_cp(+le.codepage),"string"==le.type)throw new Error("Cannot write DBF to JS string");var ce=buf_array(),de=sheet_to_json(te,{header:1,raw:!0,cellDates:!0}),ue=de[0],me=de.slice(1),ge=te["!cols"]||[],fe=0,_e=0,be=0,Ce=1;for(fe=0;fe<ue.length;++fe)if(((ge[fe]||{}).DBF||{}).name)ue[fe]=ge[fe].DBF.name,++be;else if(null!=ue[fe]){if(++be,"number"==typeof ue[fe]&&(ue[fe]=ue[fe].toString(10)),"string"!=typeof ue[fe])throw new Error("DBF Invalid column name "+ue[fe]+" |"+typeof ue[fe]+"|");if(ue.indexOf(ue[fe])!==fe)for(_e=0;_e<1024;++_e)if(-1==ue.indexOf(ue[fe]+"_"+_e)){ue[fe]+="_"+_e;break}}var ye=safe_decode_range(te["!ref"]),we=[],ke=[],Se=[];for(fe=0;fe<=ye.e.c-ye.s.c;++fe){var xe="",Ee="",Me=0,Ne=[];for(_e=0;_e<me.length;++_e)null!=me[_e][fe]&&Ne.push(me[_e][fe]);if(0!=Ne.length&&null!=ue[fe]){for(_e=0;_e<Ne.length;++_e){switch(typeof Ne[_e]){case"number":Ee="B";break;case"string":default:Ee="C";break;case"boolean":Ee="L";break;case"object":Ee=Ne[_e]instanceof Date?"D":"C"}Me=Math.max(Me,String(Ne[_e]).length),xe=xe&&xe!=Ee?"C":Ee}Me>250&&(Me=250),"C"==(Ee=((ge[fe]||{}).DBF||{}).type)&&ge[fe].DBF.len>Me&&(Me=ge[fe].DBF.len),"B"==xe&&"N"==Ee&&(xe="N",Se[fe]=ge[fe].DBF.dec,Me=ge[fe].DBF.len),ke[fe]="C"==xe||"N"==Ee?Me:ie[xe]||0,Ce+=ke[fe],we[fe]=xe}else we[fe]="?"}var Re=ce.next(32);for(Re.write_shift(4,318902576),Re.write_shift(4,me.length),Re.write_shift(2,296+32*be),Re.write_shift(2,Ce),fe=0;fe<4;++fe)Re.write_shift(4,0);for(Re.write_shift(4,0|(+ne[Vn]||3)<<8),fe=0,_e=0;fe<ue.length;++fe)if(null!=ue[fe]){var Le=ce.next(32),Oe=(ue[fe].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);Le.write_shift(1,Oe,"sbcs"),Le.write_shift(1,"?"==we[fe]?"C":we[fe],"sbcs"),Le.write_shift(4,_e),Le.write_shift(1,ke[fe]||ie[we[fe]]||0),Le.write_shift(1,Se[fe]||0),Le.write_shift(1,2),Le.write_shift(4,0),Le.write_shift(1,0),Le.write_shift(4,0),Le.write_shift(4,0),_e+=ke[fe]||ie[we[fe]]||0}var Pe=ce.next(264);for(Pe.write_shift(4,13),fe=0;fe<65;++fe)Pe.write_shift(4,0);for(fe=0;fe<me.length;++fe){var Fe=ce.next(Ce);for(Fe.write_shift(1,0),_e=0;_e<ue.length;++_e)if(null!=ue[_e])switch(we[_e]){case"L":Fe.write_shift(1,null==me[fe][_e]?63:me[fe][_e]?84:70);break;case"B":Fe.write_shift(8,me[fe][_e]||0,"f");break;case"N":var je="0";for("number"==typeof me[fe][_e]&&(je=me[fe][_e].toFixed(Se[_e]||0)),be=0;be<ke[_e]-je.length;++be)Fe.write_shift(1,32);Fe.write_shift(1,je,"sbcs");break;case"D":me[fe][_e]?(Fe.write_shift(4,("0000"+me[fe][_e].getFullYear()).slice(-4),"sbcs"),Fe.write_shift(2,("00"+(me[fe][_e].getMonth()+1)).slice(-2),"sbcs"),Fe.write_shift(2,("00"+me[fe][_e].getDate()).slice(-2),"sbcs")):Fe.write_shift(8,"00000000","sbcs");break;case"C":var Ve=String(null!=me[fe][_e]?me[fe][_e]:"").slice(0,ke[_e]);for(Fe.write_shift(1,Ve,"sbcs"),be=0;be<ke[_e]-Ve.length;++be)Fe.write_shift(1,32)}}return ce.next(1).write_shift(1,26),ce.end()}}}(),Oa=function(){var te={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},ne=new RegExp("N("+keys(te).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),sylk_char_fn=function(ne,ie){var re=te[ie];return"number"==typeof re?$n(re):re},decode_sylk_char=function(te,ne,ie){var re=ne.charCodeAt(0)-32<<4|ie.charCodeAt(0)-48;return 59==re?te:$n(re)};function sylk_to_aoa_str(te,ie){var re,le=te.split(/[\n\r]+/),ce=-1,de=-1,ue=0,me=0,ge=[],fe=[],_e=null,be={},Ce=[],ye=[],we=[],ke=0;for(+ie.codepage>=0&&set_cp(+ie.codepage);ue!==le.length;++ue){ke=0;var Se,xe=le[ue].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,decode_sylk_char).replace(ne,sylk_char_fn),Ee=xe.replace(/;;/g,"\0").split(";").map((function(te){return te.replace(/\u0000/g,";")})),Me=Ee[0];if(xe.length>0)switch(Me){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==Ee[1].charAt(0)&&fe.push(xe.slice(3).replace(/;;/g,";"));break;case"C":var Ne=!1,Re=!1,Le=!1,Oe=!1,Pe=-1,Fe=-1;for(me=1;me<Ee.length;++me)switch(Ee[me].charAt(0)){case"A":case"G":break;case"X":de=parseInt(Ee[me].slice(1))-1,Re=!0;break;case"Y":for(ce=parseInt(Ee[me].slice(1))-1,Re||(de=0),re=ge.length;re<=ce;++re)ge[re]=[];break;case"K":'"'===(Se=Ee[me].slice(1)).charAt(0)?Se=Se.slice(1,Se.length-1):"TRUE"===Se?Se=!0:"FALSE"===Se?Se=!1:isNaN(fuzzynum(Se))?isNaN(fuzzydate(Se).getDate())||(Se=parseDate(Se)):(Se=fuzzynum(Se),null!==_e&&fmt_is_date(_e)&&(Se=numdate(Se))),void 0!==Hn&&"string"==typeof Se&&"string"!=(ie||{}).type&&(ie||{}).codepage&&(Se=Hn.utils.decode(ie.codepage,Se)),Ne=!0;break;case"E":Oe=!0;var je=Os(Ee[me].slice(1),{r:ce,c:de});ge[ce][de]=[ge[ce][de],je];break;case"S":Le=!0,ge[ce][de]=[ge[ce][de],"S5S"];break;case"R":Pe=parseInt(Ee[me].slice(1))-1;break;case"C":Fe=parseInt(Ee[me].slice(1))-1;break;default:if(ie&&ie.WTF)throw new Error("SYLK bad record "+xe)}if(Ne&&(ge[ce][de]&&2==ge[ce][de].length?ge[ce][de][0]=Se:ge[ce][de]=Se,_e=null),Le){if(Oe)throw new Error("SYLK shared formula cannot have own formula");var Ve=Pe>-1&&ge[Pe][Fe];if(!Ve||!Ve[1])throw new Error("SYLK shared formula cannot find base");ge[ce][de][1]=shift_formula_str(Ve[1],{r:ce-Pe,c:de-Fe})}break;case"F":var Ge=0;for(me=1;me<Ee.length;++me)switch(Ee[me].charAt(0)){case"X":de=parseInt(Ee[me].slice(1))-1,++Ge;break;case"Y":for(ce=parseInt(Ee[me].slice(1))-1,re=ge.length;re<=ce;++re)ge[re]=[];break;case"M":ke=parseInt(Ee[me].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":_e=fe[parseInt(Ee[me].slice(1))];break;case"W":for(we=Ee[me].slice(1).split(" "),re=parseInt(we[0],10);re<=parseInt(we[1],10);++re)ke=parseInt(we[2],10),ye[re-1]=0===ke?{hidden:!0}:{wch:ke},process_col(ye[re-1]);break;case"C":ye[de=parseInt(Ee[me].slice(1))-1]||(ye[de]={});break;case"R":Ce[ce=parseInt(Ee[me].slice(1))-1]||(Ce[ce]={}),ke>0?(Ce[ce].hpt=ke,Ce[ce].hpx=pt2px(ke)):0===ke&&(Ce[ce].hidden=!0);break;default:if(ie&&ie.WTF)throw new Error("SYLK bad record "+xe)}Ge<1&&(_e=null);break;default:if(ie&&ie.WTF)throw new Error("SYLK bad record "+xe)}}return Ce.length>0&&(be["!rows"]=Ce),ye.length>0&&(be["!cols"]=ye),ie&&ie.sheetRows&&(ge=ge.slice(0,ie.sheetRows)),[ge,be]}function sylk_to_sheet(te,ne){var ie=function sylk_to_aoa(te,ne){switch(ne.type){case"base64":return sylk_to_aoa_str(Base64_decode(te),ne);case"binary":return sylk_to_aoa_str(te,ne);case"buffer":return sylk_to_aoa_str(Wn&&Buffer.isBuffer(te)?te.toString("binary"):a2s(te),ne);case"array":return sylk_to_aoa_str(cc2str(te),ne)}throw new Error("Unrecognized type "+ne.type)}(te,ne),re=ie[0],le=ie[1],ce=aoa_to_sheet(re,ne);return keys(le).forEach((function(te){ce[te]=le[te]})),ce}function write_ws_cell_sylk(te,ne,ie,re){var le="C;Y"+(ie+1)+";X"+(re+1)+";K";switch(te.t){case"n":le+=te.v||0,te.f&&!te.F&&(le+=";E"+zs(te.f,{r:ie,c:re}));break;case"b":le+=te.v?"TRUE":"FALSE";break;case"e":le+=te.w||te.v;break;case"d":le+='"'+(te.w||te.v)+'"';break;case"s":le+='"'+te.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return le}return te["|"]=254,{to_workbook:function sylk_to_workbook(te,ne){return sheet_to_workbook(sylk_to_sheet(te,ne),ne)},to_sheet:sylk_to_sheet,from_sheet:function sheet_to_sylk(te,ne){var ie,re=["ID;PWXL;N;E"],le=[],ce=safe_decode_range(te["!ref"]),de=Array.isArray(te),ue="\r\n";re.push("P;PGeneral"),re.push("F;P0;DG0G8;M255"),te["!cols"]&&function write_ws_cols_sylk(te,ne){ne.forEach((function(ne,ie){var re="F;W"+(ie+1)+" "+(ie+1)+" ";ne.hidden?re+="0":("number"!=typeof ne.width||ne.wpx||(ne.wpx=width2px(ne.width)),"number"!=typeof ne.wpx||ne.wch||(ne.wch=px2char(ne.wpx)),"number"==typeof ne.wch&&(re+=Math.round(ne.wch)))," "!=re.charAt(re.length-1)&&te.push(re)}))}(re,te["!cols"]),te["!rows"]&&function write_ws_rows_sylk(te,ne){ne.forEach((function(ne,ie){var re="F;";ne.hidden?re+="M0;":ne.hpt?re+="M"+20*ne.hpt+";":ne.hpx&&(re+="M"+20*px2pt(ne.hpx)+";"),re.length>2&&te.push(re+"R"+(ie+1))}))}(re,te["!rows"]),re.push("B;Y"+(ce.e.r-ce.s.r+1)+";X"+(ce.e.c-ce.s.c+1)+";D"+[ce.s.c,ce.s.r,ce.e.c,ce.e.r].join(" "));for(var me=ce.s.r;me<=ce.e.r;++me)for(var ge=ce.s.c;ge<=ce.e.c;++ge){var fe=encode_cell({r:me,c:ge});(ie=de?(te[me]||[])[ge]:te[fe])&&(null!=ie.v||ie.f&&!ie.F)&&le.push(write_ws_cell_sylk(ie,0,me,ge))}return re.join(ue)+ue+le.join(ue)+ue+"E"+ue}}}(),Pa=function(){function dif_to_aoa_str(te,ne){for(var ie=te.split("\n"),re=-1,le=-1,ce=0,de=[];ce!==ie.length;++ce)if("BOT"!==ie[ce].trim()){if(!(re<0)){for(var ue=ie[ce].trim().split(","),me=ue[0],ge=ue[1],fe=ie[++ce]||"";1&(fe.match(/["]/g)||[]).length&&ce<ie.length-1;)fe+="\n"+ie[++ce];switch(fe=fe.trim(),+me){case-1:if("BOT"===fe){de[++re]=[],le=0;continue}if("EOD"!==fe)throw new Error("Unrecognized DIF special command "+fe);break;case 0:"TRUE"===fe?de[re][le]=!0:"FALSE"===fe?de[re][le]=!1:isNaN(fuzzynum(ge))?isNaN(fuzzydate(ge).getDate())?de[re][le]=ge:de[re][le]=parseDate(ge):de[re][le]=fuzzynum(ge),++le;break;case 1:(fe=(fe=fe.slice(1,fe.length-1)).replace(/""/g,'"'))&&fe.match(/^=".*"$/)&&(fe=fe.slice(2,-1)),de[re][le++]=""!==fe?fe:null}if("EOD"===fe)break}}else de[++re]=[],le=0;return ne&&ne.sheetRows&&(de=de.slice(0,ne.sheetRows)),de}function dif_to_sheet(te,ne){return aoa_to_sheet(function dif_to_aoa(te,ne){switch(ne.type){case"base64":return dif_to_aoa_str(Base64_decode(te),ne);case"binary":return dif_to_aoa_str(te,ne);case"buffer":return dif_to_aoa_str(Wn&&Buffer.isBuffer(te)?te.toString("binary"):a2s(te),ne);case"array":return dif_to_aoa_str(cc2str(te),ne)}throw new Error("Unrecognized type "+ne.type)}(te,ne),ne)}var te=function(){var te=function pf(te,ne,ie,re,le){te.push(ne),te.push(ie+","+re),te.push('"'+le.replace(/"/g,'""')+'"')},ne=function po(te,ne,ie,re){te.push(ne+","+ie),te.push(1==ne?'"'+re.replace(/"/g,'""')+'"':re)};return function sheet_to_dif(ie){var re,le=[],ce=safe_decode_range(ie["!ref"]),de=Array.isArray(ie);te(le,"TABLE",0,1,"sheetjs"),te(le,"VECTORS",0,ce.e.r-ce.s.r+1,""),te(le,"TUPLES",0,ce.e.c-ce.s.c+1,""),te(le,"DATA",0,0,"");for(var ue=ce.s.r;ue<=ce.e.r;++ue){ne(le,-1,0,"BOT");for(var me=ce.s.c;me<=ce.e.c;++me){var ge=encode_cell({r:ue,c:me});if(re=de?(ie[ue]||[])[me]:ie[ge])switch(re.t){case"n":var fe=re.w;fe||null==re.v||(fe=re.v),null==fe?re.f&&!re.F?ne(le,1,0,"="+re.f):ne(le,1,0,""):ne(le,0,fe,"V");break;case"b":ne(le,0,re.v?1:0,re.v?"TRUE":"FALSE");break;case"s":ne(le,1,0,isNaN(re.v)?re.v:'="'+re.v+'"');break;case"d":re.w||(re.w=SSF_format(re.z||ki[14],datenum(parseDate(re.v)))),ne(le,0,re.w,"V");break;default:ne(le,1,0,"")}else ne(le,1,0,"")}}ne(le,-1,0,"EOD");return le.join("\r\n")}}();return{to_workbook:function dif_to_workbook(te,ne){return sheet_to_workbook(dif_to_sheet(te,ne),ne)},to_sheet:dif_to_sheet,from_sheet:te}}(),Fa=function(){function encode(te){return te.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function eth_to_sheet(te,ne){return aoa_to_sheet(function eth_to_aoa(te,ne){for(var ie=te.split("\n"),re=-1,le=-1,ce=0,de=[];ce!==ie.length;++ce){var ue=ie[ce].trim().split(":");if("cell"===ue[0]){var me=decode_cell(ue[1]);if(de.length<=me.r)for(re=de.length;re<=me.r;++re)de[re]||(de[re]=[]);switch(re=me.r,le=me.c,ue[2]){case"t":de[re][le]=ue[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n");break;case"v":de[re][le]=+ue[3];break;case"vtf":var ge=ue[ue.length-1];case"vtc":"nl"===ue[3]?de[re][le]=!!+ue[4]:de[re][le]=+ue[4],"vtf"==ue[2]&&(de[re][le]=[de[re][le],ge])}}}return ne&&ne.sheetRows&&(de=de.slice(0,ne.sheetRows)),de}(te,ne),ne)}var te=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),ne=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",ie=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),re="--SocialCalcSpreadsheetControlSave--";function sheet_to_eth_data(te){if(!te||!te["!ref"])return"";for(var ne,ie=[],re=[],le="",ce=decode_range(te["!ref"]),de=Array.isArray(te),ue=ce.s.r;ue<=ce.e.r;++ue)for(var me=ce.s.c;me<=ce.e.c;++me)if(le=encode_cell({r:ue,c:me}),(ne=de?(te[ue]||[])[me]:te[le])&&null!=ne.v&&"z"!==ne.t){switch(re=["cell",le,"t"],ne.t){case"s":case"str":re.push(encode(ne.v));break;case"n":ne.f?(re[2]="vtf",re[3]="n",re[4]=ne.v,re[5]=encode(ne.f)):(re[2]="v",re[3]=ne.v);break;case"b":re[2]="vt"+(ne.f?"f":"c"),re[3]="nl",re[4]=ne.v?"1":"0",re[5]=encode(ne.f||(ne.v?"TRUE":"FALSE"));break;case"d":var ge=datenum(parseDate(ne.v));re[2]="vtc",re[3]="nd",re[4]=""+ge,re[5]=ne.w||SSF_format(ne.z||ki[14],ge);break;case"e":continue}ie.push(re.join(":"))}return ie.push("sheet:c:"+(ce.e.c-ce.s.c+1)+":r:"+(ce.e.r-ce.s.r+1)+":tvf:1"),ie.push("valueformat:1:text-wiki"),ie.join("\n")}return{to_workbook:function eth_to_workbook(te,ne){return sheet_to_workbook(eth_to_sheet(te,ne),ne)},to_sheet:eth_to_sheet,from_sheet:function sheet_to_eth(le){return[te,ne,ie,ne,sheet_to_eth_data(le),re].join("\n")}}}(),Ba=function(){function set_text_arr(te,ne,ie,re,le){le.raw?ne[ie][re]=te:""===te||("TRUE"===te?ne[ie][re]=!0:"FALSE"===te?ne[ie][re]=!1:isNaN(fuzzynum(te))?isNaN(fuzzydate(te).getDate())?ne[ie][re]=te:ne[ie][re]=parseDate(te):ne[ie][re]=fuzzynum(te))}var te={44:",",9:"\t",59:";",124:"|"},ne={44:3,9:2,59:1,124:0};function guess_sep(ie){for(var re={},le=!1,ce=0,de=0;ce<ie.length;++ce)34==(de=ie.charCodeAt(ce))?le=!le:!le&&de in te&&(re[de]=(re[de]||0)+1);for(ce in de=[],re)Object.prototype.hasOwnProperty.call(re,ce)&&de.push([re[ce],ce]);if(!de.length)for(ce in re=ne)Object.prototype.hasOwnProperty.call(re,ce)&&de.push([re[ce],ce]);return de.sort((function(te,ie){return te[0]-ie[0]||ne[te[1]]-ne[ie[1]]})),te[de.pop()[1]]||44}function dsv_to_sheet_str(te,ne){var ie=ne||{},re="";null!=qn&&null==ie.dense&&(ie.dense=qn);var le=ie.dense?[]:{},ce={s:{c:0,r:0},e:{c:0,r:0}};"sep="==te.slice(0,4)?13==te.charCodeAt(5)&&10==te.charCodeAt(6)?(re=te.charAt(4),te=te.slice(7)):13==te.charCodeAt(5)||10==te.charCodeAt(5)?(re=te.charAt(4),te=te.slice(6)):re=guess_sep(te.slice(0,1024)):re=ie&&ie.FS?ie.FS:guess_sep(te.slice(0,1024));var de=0,ue=0,me=0,ge=0,fe=0,_e=re.charCodeAt(0),be=!1,Ce=0,ye=te.charCodeAt(0);te=te.replace(/\r\n/gm,"\n");var we=null!=ie.dateNF?function dateNF_regex(te){var ne="number"==typeof te?ki[te]:te;return ne=ne.replace(co,"(\\d+)"),new RegExp("^"+ne+"$")}(ie.dateNF):null;function finish_cell(){var ne=te.slice(ge,fe),re={};if('"'==ne.charAt(0)&&'"'==ne.charAt(ne.length-1)&&(ne=ne.slice(1,-1).replace(/""/g,'"')),0===ne.length)re.t="z";else if(ie.raw)re.t="s",re.v=ne;else if(0===ne.trim().length)re.t="s",re.v=ne;else if(61==ne.charCodeAt(0))34==ne.charCodeAt(1)&&34==ne.charCodeAt(ne.length-1)?(re.t="s",re.v=ne.slice(2,-1).replace(/""/g,'"')):!function fuzzyfmla(te){return 1!=te.length}(ne)?(re.t="s",re.v=ne):(re.t="n",re.f=ne.slice(1));else if("TRUE"==ne)re.t="b",re.v=!0;else if("FALSE"==ne)re.t="b",re.v=!1;else if(isNaN(me=fuzzynum(ne)))if(!isNaN(fuzzydate(ne).getDate())||we&&ne.match(we)){re.z=ie.dateNF||ki[14];var be=0;we&&ne.match(we)&&(ne=function dateNF_fix(te,ne,ie){var re=-1,le=-1,ce=-1,de=-1,ue=-1,me=-1;(ne.match(co)||[]).forEach((function(te,ne){var ge=parseInt(ie[ne+1],10);switch(te.toLowerCase().charAt(0)){case"y":re=ge;break;case"d":ce=ge;break;case"h":de=ge;break;case"s":me=ge;break;case"m":de>=0?ue=ge:le=ge}})),me>=0&&-1==ue&&le>=0&&(ue=le,le=-1);var ge=(""+(re>=0?re:(new Date).getFullYear())).slice(-4)+"-"+("00"+(le>=1?le:1)).slice(-2)+"-"+("00"+(ce>=1?ce:1)).slice(-2);7==ge.length&&(ge="0"+ge),8==ge.length&&(ge="20"+ge);var fe=("00"+(de>=0?de:0)).slice(-2)+":"+("00"+(ue>=0?ue:0)).slice(-2)+":"+("00"+(me>=0?me:0)).slice(-2);return-1==de&&-1==ue&&-1==me?ge:-1==re&&-1==le&&-1==ce?fe:ge+"T"+fe}(0,ie.dateNF,ne.match(we)||[]),be=1),ie.cellDates?(re.t="d",re.v=parseDate(ne,be)):(re.t="n",re.v=datenum(parseDate(ne,be))),!1!==ie.cellText&&(re.w=SSF_format(re.z,re.v instanceof Date?datenum(re.v):re.v)),ie.cellNF||delete re.z}else re.t="s",re.v=ne;else re.t="n",!1!==ie.cellText&&(re.w=ne),re.v=me;if("z"==re.t||(ie.dense?(le[de]||(le[de]=[]),le[de][ue]=re):le[encode_cell({c:ue,r:de})]=re),ge=fe+1,ye=te.charCodeAt(ge),ce.e.c<ue&&(ce.e.c=ue),ce.e.r<de&&(ce.e.r=de),Ce==_e)++ue;else if(ue=0,++de,ie.sheetRows&&ie.sheetRows<=de)return!0}e:for(;fe<te.length;++fe)switch(Ce=te.charCodeAt(fe)){case 34:34===ye&&(be=!be);break;case _e:case 10:case 13:if(!be&&finish_cell())break e}return fe-ge>0&&finish_cell(),le["!ref"]=encode_range(ce),le}function prn_to_sheet_str(te,ne){return ne&&ne.PRN?ne.FS||"sep="==te.slice(0,4)||te.indexOf("\t")>=0||te.indexOf(",")>=0||te.indexOf(";")>=0?dsv_to_sheet_str(te,ne):aoa_to_sheet(function prn_to_aoa_str(te,ne){var ie=ne||{},re=[];if(!te||0===te.length)return re;for(var le=te.split(/[\r\n]/),ce=le.length-1;ce>=0&&0===le[ce].length;)--ce;for(var de=10,ue=0,me=0;me<=ce;++me)-1==(ue=le[me].indexOf(" "))?ue=le[me].length:ue++,de=Math.max(de,ue);for(me=0;me<=ce;++me){re[me]=[];var ge=0;for(set_text_arr(le[me].slice(0,de).trim(),re,me,ge,ie),ge=1;ge<=(le[me].length-de)/10+1;++ge)set_text_arr(le[me].slice(de+10*(ge-1),de+10*ge).trim(),re,me,ge,ie)}return ie.sheetRows&&(re=re.slice(0,ie.sheetRows)),re}(te,ne),ne):dsv_to_sheet_str(te,ne)}function prn_to_sheet(te,ne){var ie="",re="string"==ne.type?[0,0,0,0]:firstbyte(te,ne);switch(ne.type){case"base64":ie=Base64_decode(te);break;case"binary":case"string":ie=te;break;case"buffer":ie=65001==ne.codepage?te.toString("utf8"):ne.codepage&&void 0!==Hn?Hn.utils.decode(ne.codepage,te):Wn&&Buffer.isBuffer(te)?te.toString("binary"):a2s(te);break;case"array":ie=cc2str(te);break;default:throw new Error("Unrecognized type "+ne.type)}return 239==re[0]&&187==re[1]&&191==re[2]?ie=fr(ie.slice(3)):"string"!=ne.type&&"buffer"!=ne.type&&65001==ne.codepage?ie=fr(ie):"binary"==ne.type&&void 0!==Hn&&ne.codepage&&(ie=Hn.utils.decode(ne.codepage,Hn.utils.encode(28591,ie))),"socialcalc:version:"==ie.slice(0,19)?Fa.to_sheet("string"==ne.type?ie:fr(ie),ne):prn_to_sheet_str(ie,ne)}return{to_workbook:function prn_to_workbook(te,ne){return sheet_to_workbook(prn_to_sheet(te,ne),ne)},to_sheet:prn_to_sheet,from_sheet:function sheet_to_prn(te){for(var ne,ie=[],re=safe_decode_range(te["!ref"]),le=Array.isArray(te),ce=re.s.r;ce<=re.e.r;++ce){for(var de=[],ue=re.s.c;ue<=re.e.c;++ue){var me=encode_cell({r:ce,c:ue});if((ne=le?(te[ce]||[])[ue]:te[me])&&null!=ne.v){for(var ge=(ne.w||(format_cell(ne),ne.w)||"").slice(0,10);ge.length<10;)ge+=" ";de.push(ge+(0===ue?" ":""))}else de.push("          ")}ie.push(de.join(""))}return ie.join("\n")}}}();var Ha=function(){function lotushopper(te,ne,re){if(te){prep_blob(te,te.l||0);for(var le=re.Enum||ie;te.l<te.length;){var ce=te.read_shift(2),de=le[ce]||le[65535],ue=te.read_shift(2),me=te.l+ue,ge=de.f&&de.f(te,ue,re);if(te.l=me,ne(ge,de,ce))return}}}function lotus_to_workbook_buf(te,ne){if(!te)return te;var le=ne||{};null!=qn&&null==le.dense&&(le.dense=qn);var ce=le.dense?[]:{},de="Sheet1",ue="",me=0,ge={},fe=[],_e=[],be={s:{r:0,c:0},e:{r:0,c:0}},Ce=le.sheetRows||0;if(0==te[2]&&(8==te[3]||9==te[3])&&te.length>=16&&5==te[14]&&108===te[15])throw new Error("Unsupported Works 3 for Mac file");if(2==te[2])le.Enum=ie,lotushopper(te,(function(te,ne,ie){switch(ie){case 0:le.vers=te,te>=4096&&(le.qpro=!0);break;case 6:be=te;break;case 204:te&&(ue=te);break;case 222:ue=te;break;case 15:case 51:le.qpro||(te[1].v=te[1].v.slice(1));case 13:case 14:case 16:14==ie&&112==(112&te[2])&&(15&te[2])>1&&(15&te[2])<15&&(te[1].z=le.dateNF||ki[14],le.cellDates&&(te[1].t="d",te[1].v=numdate(te[1].v))),le.qpro&&te[3]>me&&(ce["!ref"]=encode_range(be),ge[de]=ce,fe.push(de),ce=le.dense?[]:{},be={s:{r:0,c:0},e:{r:0,c:0}},me=te[3],de=ue||"Sheet"+(me+1),ue="");var re=le.dense?(ce[te[0].r]||[])[te[0].c]:ce[encode_cell(te[0])];if(re){re.t=te[1].t,re.v=te[1].v,null!=te[1].z&&(re.z=te[1].z),null!=te[1].f&&(re.f=te[1].f);break}le.dense?(ce[te[0].r]||(ce[te[0].r]=[]),ce[te[0].r][te[0].c]=te[1]):ce[encode_cell(te[0])]=te[1]}}),le);else{if(26!=te[2]&&14!=te[2])throw new Error("Unrecognized LOTUS BOF "+te[2]);le.Enum=re,14==te[2]&&(le.qpro=!0,te.l=0),lotushopper(te,(function(te,ne,ie){switch(ie){case 204:de=te;break;case 22:te[1].v=te[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(te[3]>me&&(ce["!ref"]=encode_range(be),ge[de]=ce,fe.push(de),ce=le.dense?[]:{},be={s:{r:0,c:0},e:{r:0,c:0}},me=te[3],de="Sheet"+(me+1)),Ce>0&&te[0].r>=Ce)break;le.dense?(ce[te[0].r]||(ce[te[0].r]=[]),ce[te[0].r][te[0].c]=te[1]):ce[encode_cell(te[0])]=te[1],be.e.c<te[0].c&&(be.e.c=te[0].c),be.e.r<te[0].r&&(be.e.r=te[0].r);break;case 27:te[14e3]&&(_e[te[14e3][0]]=te[14e3][1]);break;case 1537:_e[te[0]]=te[1],te[0]==me&&(de=te[1])}}),le)}if(ce["!ref"]=encode_range(be),ge[ue||de]=ce,fe.push(ue||de),!_e.length)return{SheetNames:fe,Sheets:ge};for(var ye={},we=[],ke=0;ke<_e.length;++ke)ge[fe[ke]]?(we.push(_e[ke]||fe[ke]),ye[_e[ke]]=ge[_e[ke]]||ge[fe[ke]]):(we.push(_e[ke]),ye[_e[ke]]={"!ref":"A1"});return{SheetNames:we,Sheets:ye}}function parse_cell(te,ne,ie){var re=[{c:0,r:0},{t:"n",v:0},0,0];return ie.qpro&&20768!=ie.vers?(re[0].c=te.read_shift(1),re[3]=te.read_shift(1),re[0].r=te.read_shift(2),te.l+=2):(re[2]=te.read_shift(1),re[0].c=te.read_shift(2),re[0].r=te.read_shift(2)),re}function parse_LABEL(te,ne,ie){var re=te.l+ne,le=parse_cell(te,0,ie);if(le[1].t="s",20768==ie.vers){te.l++;var ce=te.read_shift(1);return le[1].v=te.read_shift(ce,"utf8"),le}return ie.qpro&&te.l++,le[1].v=te.read_shift(re-te.l,"cstr"),le}function write_LABEL(te,ne,ie){var re=new_buf(7+ie.length);re.write_shift(1,255),re.write_shift(2,ne),re.write_shift(2,te),re.write_shift(1,39);for(var le=0;le<re.length;++le){var ce=ie.charCodeAt(le);re.write_shift(1,ce>=128?95:ce)}return re.write_shift(1,0),re}function write_INTEGER(te,ne,ie){var re=new_buf(7);return re.write_shift(1,255),re.write_shift(2,ne),re.write_shift(2,te),re.write_shift(2,ie,"i"),re}function write_NUMBER(te,ne,ie){var re=new_buf(13);return re.write_shift(1,255),re.write_shift(2,ne),re.write_shift(2,te),re.write_shift(8,ie,"f"),re}function wk1_parse_rc(te,ne,ie){var re=32768&ne;return ne=(re?te:0)+((ne&=-32769)>=8192?ne-16384:ne),(re?"":"$")+(ie?encode_col(ne):encode_row(ne))}var te={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},ne=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function parse_cell_3(te){var ne=[{c:0,r:0},{t:"n",v:0},0];return ne[0].r=te.read_shift(2),ne[3]=te[te.l++],ne[0].c=te[te.l++],ne}function write_LABEL_16(te,ne,ie,re){var le=new_buf(6+re.length);le.write_shift(2,te),le.write_shift(1,ie),le.write_shift(1,ne),le.write_shift(1,39);for(var ce=0;ce<re.length;++ce){var de=re.charCodeAt(ce);le.write_shift(1,de>=128?95:de)}return le.write_shift(1,0),le}function parse_NUMBER_17(te,ne){var ie=parse_cell_3(te),re=te.read_shift(4),le=te.read_shift(4),ce=te.read_shift(2);if(65535==ce)return 0===re&&3221225472===le?(ie[1].t="e",ie[1].v=15):0===re&&3489660928===le?(ie[1].t="e",ie[1].v=42):ie[1].v=0,ie;var de=32768&ce;return ce=(32767&ce)-16446,ie[1].v=(1-2*de)*(le*Math.pow(2,ce+32)+re*Math.pow(2,ce)),ie}function write_NUMBER_17(te,ne,ie,re){var le=new_buf(14);if(le.write_shift(2,te),le.write_shift(1,ie),le.write_shift(1,ne),0==re)return le.write_shift(4,0),le.write_shift(4,0),le.write_shift(2,65535),le;var ce,de=0,ue=0,me=0;return re<0&&(de=1,re=-re),ue=0|Math.log2(re),0==(2147483648&(me=(re/=Math.pow(2,ue-31))>>>0))&&(++ue,me=(re/=2)>>>0),re-=me,me|=2147483648,me>>>=0,ce=(re*=Math.pow(2,32))>>>0,le.write_shift(4,ce),le.write_shift(4,me),ue+=16383+(de?32768:0),le.write_shift(2,ue),le}function parse_NUMBER_27(te,ne){var ie=parse_cell_3(te),re=te.read_shift(8,"f");return ie[1].v=re,ie}function parse_SHEETNAMECS(te,ne){return 0==te[te.l+ne-1]?te.read_shift(ne,"cstr"):""}function write_XFORMAT_SHEETNAME(te,ne){var ie=new_buf(5+te.length);ie.write_shift(2,14e3),ie.write_shift(2,ne);for(var re=0;re<te.length;++re){var le=te.charCodeAt(re);ie[ie.l++]=le>127?95:le}return ie[ie.l++]=0,ie}var ie={0:{n:"BOF",f:parseuint16},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function parse_RANGE(te,ne,ie){var re={s:{c:0,r:0},e:{c:0,r:0}};return 8==ne&&ie.qpro?(re.s.c=te.read_shift(1),te.l++,re.s.r=te.read_shift(2),re.e.c=te.read_shift(1),te.l++,re.e.r=te.read_shift(2),re):(re.s.c=te.read_shift(2),re.s.r=te.read_shift(2),12==ne&&ie.qpro&&(te.l+=2),re.e.c=te.read_shift(2),re.e.r=te.read_shift(2),12==ne&&ie.qpro&&(te.l+=2),65535==re.s.c&&(re.s.c=re.e.c=re.s.r=re.e.r=0),re)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function parse_INTEGER(te,ne,ie){var re=parse_cell(te,0,ie);return re[1].v=te.read_shift(2,"i"),re}},14:{n:"NUMBER",f:function parse_NUMBER(te,ne,ie){var re=parse_cell(te,0,ie);return re[1].v=te.read_shift(8,"f"),re}},15:{n:"LABEL",f:parse_LABEL},16:{n:"FORMULA",f:function parse_FORMULA(ie,re,le){var ce=ie.l+re,de=parse_cell(ie,0,le);if(de[1].v=ie.read_shift(8,"f"),le.qpro)ie.l=ce;else{var ue=ie.read_shift(2);!function wk1_fmla_to_csf(ie,re){prep_blob(ie,0);var le=[],ce=0,de="",ue="",me="",ge="";for(;ie.l<ie.length;){var fe=ie[ie.l++];switch(fe){case 0:le.push(ie.read_shift(8,"f"));break;case 1:ue=wk1_parse_rc(re[0].c,ie.read_shift(2),!0),de=wk1_parse_rc(re[0].r,ie.read_shift(2),!1),le.push(ue+de);break;case 2:var _e=wk1_parse_rc(re[0].c,ie.read_shift(2),!0),be=wk1_parse_rc(re[0].r,ie.read_shift(2),!1);ue=wk1_parse_rc(re[0].c,ie.read_shift(2),!0),de=wk1_parse_rc(re[0].r,ie.read_shift(2),!1),le.push(_e+be+":"+ue+de);break;case 3:if(ie.l<ie.length)return void console.error("WK1 premature formula end");break;case 4:le.push("("+le.pop()+")");break;case 5:le.push(ie.read_shift(2));break;case 6:for(var Ce="";fe=ie[ie.l++];)Ce+=String.fromCharCode(fe);le.push('"'+Ce.replace(/"/g,'""')+'"');break;case 8:le.push("-"+le.pop());break;case 23:le.push("+"+le.pop());break;case 22:le.push("NOT("+le.pop()+")");break;case 20:case 21:ge=le.pop(),me=le.pop(),le.push(["AND","OR"][fe-20]+"("+me+","+ge+")");break;default:if(fe<32&&ne[fe])ge=le.pop(),me=le.pop(),le.push(me+ne[fe]+ge);else{if(!te[fe])return fe<=7?console.error("WK1 invalid opcode "+fe.toString(16)):fe<=24?console.error("WK1 unsupported op "+fe.toString(16)):fe<=30?console.error("WK1 invalid opcode "+fe.toString(16)):fe<=115?console.error("WK1 unsupported function opcode "+fe.toString(16)):console.error("WK1 unrecognized opcode "+fe.toString(16));if(69==(ce=te[fe][1])&&(ce=ie[ie.l++]),ce>le.length)return void console.error("WK1 bad formula parse 0x"+fe.toString(16)+":|"+le.join("|")+"|");var ye=le.slice(-ce);le.length-=ce,le.push(te[fe][0]+"("+ye.join(",")+")")}}}1==le.length?re[1].f=""+le[0]:console.error("WK1 bad formula parse |"+le.join("|")+"|")}(ie.slice(ie.l,ie.l+ue),de),ie.l+=ue}return de}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:parse_LABEL},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:parse_SHEETNAMECS},222:{n:"SHEETNAMELP",f:function parse_SHEETNAMELP(te,ne){var ie=te[te.l++];ie>ne-1&&(ie=ne-1);for(var re="";re.length<ie;)re+=String.fromCharCode(te[te.l++]);return re}},65535:{n:""}},re={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function parse_LABEL_16(te,ne){var ie=parse_cell_3(te);return ie[1].t="s",ie[1].v=te.read_shift(ne-4,"cstr"),ie}},23:{n:"NUMBER17",f:parse_NUMBER_17},24:{n:"NUMBER18",f:function parse_NUMBER_18(te,ne){var ie=parse_cell_3(te);ie[1].v=te.read_shift(2);var re=ie[1].v>>1;if(1&ie[1].v)switch(7&re){case 0:re=5e3*(re>>3);break;case 1:re=500*(re>>3);break;case 2:re=(re>>3)/20;break;case 3:re=(re>>3)/200;break;case 4:re=(re>>3)/2e3;break;case 5:re=(re>>3)/2e4;break;case 6:re=(re>>3)/16;break;case 7:re=(re>>3)/64}return ie[1].v=re,ie}},25:{n:"FORMULA19",f:function parse_FORMULA_19(te,ne){var ie=parse_NUMBER_17(te);return te.l+=ne-14,ie}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function parse_XFORMAT(te,ne){for(var ie={},re=te.l+ne;te.l<re;){var le=te.read_shift(2);if(14e3==le){for(ie[le]=[0,""],ie[le][0]=te.read_shift(2);te[te.l];)ie[le][1]+=String.fromCharCode(te[te.l]),te.l++;te.l++}}return ie}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function parse_NUMBER_25(te,ne){var ie=parse_cell_3(te),re=te.read_shift(4);return ie[1].v=re>>6,ie}},38:{n:"??"},39:{n:"NUMBER27",f:parse_NUMBER_27},40:{n:"FORMULA28",f:function parse_FORMULA_28(te,ne){var ie=parse_NUMBER_27(te);return te.l+=ne-10,ie}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:parse_SHEETNAMECS},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function parse_SHEETINFOQP(te,ne,ie){if(ie.qpro&&!(ne<21)){var re=te.read_shift(1);return te.l+=17,te.l+=1,te.l+=2,[re,te.read_shift(ne-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function sheet_to_wk1(te,ne){var ie=ne||{};if(+ie.codepage>=0&&set_cp(+ie.codepage),"string"==ie.type)throw new Error("Cannot write WK1 to JS string");var re=buf_array(),le=safe_decode_range(te["!ref"]),ce=Array.isArray(te),de=[];write_biff_rec(re,0,function write_BOF_WK1(te){var ne=new_buf(2);return ne.write_shift(2,te),ne}(1030)),write_biff_rec(re,6,function write_RANGE(te){var ne=new_buf(8);return ne.write_shift(2,te.s.c),ne.write_shift(2,te.s.r),ne.write_shift(2,te.e.c),ne.write_shift(2,te.e.r),ne}(le));for(var ue=Math.min(le.e.r,8191),me=le.s.r;me<=ue;++me)for(var ge=encode_row(me),fe=le.s.c;fe<=le.e.c;++fe){me===le.s.r&&(de[fe]=encode_col(fe));var _e=de[fe]+ge,be=ce?(te[me]||[])[fe]:te[_e];if(be&&"z"!=be.t)if("n"==be.t)(0|be.v)==be.v&&be.v>=-32768&&be.v<=32767?write_biff_rec(re,13,write_INTEGER(me,fe,be.v)):write_biff_rec(re,14,write_NUMBER(me,fe,be.v));else write_biff_rec(re,15,write_LABEL(me,fe,format_cell(be).slice(0,239)))}return write_biff_rec(re,1),re.end()},book_to_wk3:function book_to_wk3(te,ne){var ie=ne||{};if(+ie.codepage>=0&&set_cp(+ie.codepage),"string"==ie.type)throw new Error("Cannot write WK3 to JS string");var re=buf_array();write_biff_rec(re,0,function write_BOF_WK3(te){var ne=new_buf(26);ne.write_shift(2,4096),ne.write_shift(2,4),ne.write_shift(4,0);for(var ie=0,re=0,le=0,ce=0;ce<te.SheetNames.length;++ce){var de=te.SheetNames[ce],ue=te.Sheets[de];if(ue&&ue["!ref"]){++le;var me=decode_range(ue["!ref"]);ie<me.e.r&&(ie=me.e.r),re<me.e.c&&(re=me.e.c)}}ie>8191&&(ie=8191);return ne.write_shift(2,ie),ne.write_shift(1,le),ne.write_shift(1,re),ne.write_shift(2,0),ne.write_shift(2,0),ne.write_shift(1,1),ne.write_shift(1,2),ne.write_shift(4,0),ne.write_shift(4,0),ne}(te));for(var le=0,ce=0;le<te.SheetNames.length;++le)(te.Sheets[te.SheetNames[le]]||{})["!ref"]&&write_biff_rec(re,27,write_XFORMAT_SHEETNAME(te.SheetNames[le],ce++));var de=0;for(le=0;le<te.SheetNames.length;++le){var ue=te.Sheets[te.SheetNames[le]];if(ue&&ue["!ref"]){for(var me=safe_decode_range(ue["!ref"]),ge=Array.isArray(ue),fe=[],_e=Math.min(me.e.r,8191),be=me.s.r;be<=_e;++be)for(var Ce=encode_row(be),ye=me.s.c;ye<=me.e.c;++ye){be===me.s.r&&(fe[ye]=encode_col(ye));var we=fe[ye]+Ce,ke=ge?(ue[be]||[])[ye]:ue[we];if(ke&&"z"!=ke.t)if("n"==ke.t)write_biff_rec(re,23,write_NUMBER_17(be,ye,de,ke.v));else write_biff_rec(re,22,write_LABEL_16(be,ye,de,format_cell(ke).slice(0,239)))}++de}}return write_biff_rec(re,1),re.end()},to_workbook:function lotus_to_workbook(te,ne){switch(ne.type){case"base64":return lotus_to_workbook_buf(Qn(Base64_decode(te)),ne);case"binary":return lotus_to_workbook_buf(Qn(te),ne);case"buffer":case"array":return lotus_to_workbook_buf(te,ne)}throw"Unsupported type "+ne.type}}}();var Ua=/^\s|\s$|[\t\n\r]/;function write_sst_xml(te,ne){if(!ne.bookSST)return"";var ie=[Po];ie[ie.length]=writextag("sst",null,{xmlns:Ar[0],count:te.Count,uniqueCount:te.Unique});for(var re=0;re!=te.length;++re)if(null!=te[re]){var le=te[re],ce="<si>";le.r?ce+=le.r:(ce+="<t",le.t||(le.t=""),le.t.match(Ua)&&(ce+=' xml:space="preserve"'),ce+=">"+escapexml(le.t)+"</t>"),ce+="</si>",ie[ie.length]=ce}return ie.length>2&&(ie[ie.length]="</sst>",ie[1]=ie[1].replace("/>",">")),ie.join("")}var es=function write_RichStr(te,ne){var ie=!1;return null==ne&&(ie=!0,ne=new_buf(15+4*te.t.length)),ne.write_shift(1,0),write_XLWideString(te.t,ne),ie?ne.slice(0,ne.l):ne};function write_sst_bin(te){var ne=buf_array();write_record(ne,159,function write_BrtBeginSst(te,ne){return ne||(ne=new_buf(8)),ne.write_shift(4,te.Count),ne.write_shift(4,te.Unique),ne}(te));for(var ie=0;ie<te.length;++ie)write_record(ne,19,es(te[ie]));return write_record(ne,160),ne.end()}function _JS2ANSI(te){if(void 0!==Hn)return Hn.utils.encode(Vn,te);for(var ne=[],ie=te.split(""),re=0;re<ie.length;++re)ne[re]=ie[re].charCodeAt(0);return ne}function crypto_CreatePasswordVerifier_Method1(te){var ne,ie,re=0,le=_JS2ANSI(te),ce=le.length+1;for((ne=new_raw_buf(ce))[0]=le.length,ie=1;ie!=ce;++ie)ne[ie]=le[ie-1];for(ie=ce-1;ie>=0;--ie)re=((0==(16384&re)?0:1)|re<<1&32767)^ne[ie];return 52811^re}var ts=function(){function rtf_to_sheet(te,ne){switch(ne.type){case"base64":return rtf_to_sheet_str(Base64_decode(te),ne);case"binary":return rtf_to_sheet_str(te,ne);case"buffer":return rtf_to_sheet_str(Wn&&Buffer.isBuffer(te)?te.toString("binary"):a2s(te),ne);case"array":return rtf_to_sheet_str(cc2str(te),ne)}throw new Error("Unrecognized type "+ne.type)}function rtf_to_sheet_str(te,ne){var ie=(ne||{}).dense?[]:{},re=te.match(/\\trowd.*?\\row\b/g);if(!re.length)throw new Error("RTF missing table");var le={s:{c:0,r:0},e:{c:0,r:re.length-1}};return re.forEach((function(te,ne){Array.isArray(ie)&&(ie[ne]=[]);for(var re,ce=/\\\w+\b/g,de=0,ue=-1;re=ce.exec(te);){if("\\cell"===re[0]){var me=te.slice(de,ce.lastIndex-re[0].length);if(" "==me[0]&&(me=me.slice(1)),++ue,me.length){var ge={v:me,t:"s"};Array.isArray(ie)?ie[ne][ue]=ge:ie[encode_cell({r:ne,c:ue})]=ge}}de=ce.lastIndex}ue>le.e.c&&(le.e.c=ue)})),ie["!ref"]=encode_range(le),ie}return{to_workbook:function rtf_to_workbook(te,ne){return sheet_to_workbook(rtf_to_sheet(te,ne),ne)},to_sheet:rtf_to_sheet,from_sheet:function sheet_to_rtf(te){for(var ne,ie=["{\\rtf1\\ansi"],re=safe_decode_range(te["!ref"]),le=Array.isArray(te),ce=re.s.r;ce<=re.e.r;++ce){ie.push("\\trowd\\trautofit1");for(var de=re.s.c;de<=re.e.c;++de)ie.push("\\cellx"+(de+1));for(ie.push("\\pard\\intbl"),de=re.s.c;de<=re.e.c;++de){var ue=encode_cell({r:ce,c:de});(ne=le?(te[ce]||[])[de]:te[ue])&&(null!=ne.v||ne.f&&!ne.F)&&(ie.push(" "+(ne.w||(format_cell(ne),ne.w))),ie.push("\\cell"))}ie.push("\\pard\\intbl\\row")}return ie.join("")+"}"}}}();function rgb2Hex(te){for(var ne=0,ie=1;3!=ne;++ne)ie=256*ie+(te[ne]>255?255:te[ne]<0?0:te[ne]);return ie.toString(16).toUpperCase().slice(1)}var is=6,os=is;function width2px(te){return Math.floor((te+Math.round(128/os)/256)*os)}function px2char(te){return Math.floor((te-5)/os*100+.5)/100}function char2width(te){return Math.round((te*os+5)/os*256)/256}function process_col(te){te.width?(te.wpx=width2px(te.width),te.wch=px2char(te.wpx),te.MDW=os):te.wpx?(te.wch=px2char(te.wpx),te.width=char2width(te.wch),te.MDW=os):"number"==typeof te.wch&&(te.width=char2width(te.wch),te.wpx=width2px(te.width),te.MDW=os),te.customWidth&&delete te.customWidth}var as=96;function px2pt(te){return 96*te/as}function pt2px(te){return te*as/96}function write_sty_xml(te,ne){var ie,re=[Po,writextag("styleSheet",null,{xmlns:Ar[0],"xmlns:vt":wr.vt})];return te.SSF&&null!=(ie=function write_numFmts(te){var ne=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(ie){for(var re=ie[0];re<=ie[1];++re)null!=te[re]&&(ne[ne.length]=writextag("numFmt",null,{numFmtId:re,formatCode:escapexml(te[re])}))})),1===ne.length?"":(ne[ne.length]="</numFmts>",ne[0]=writextag("numFmts",null,{count:ne.length-2}).replace("/>",">"),ne.join(""))}(te.SSF))&&(re[re.length]=ie),re[re.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',re[re.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',re[re.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',re[re.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(ie=function write_cellXfs(te){var ne=[];return ne[ne.length]=writextag("cellXfs",null),te.forEach((function(te){ne[ne.length]=writextag("xf",null,te)})),ne[ne.length]="</cellXfs>",2===ne.length?"":(ne[0]=writextag("cellXfs",null,{count:ne.length-2}).replace("/>",">"),ne.join(""))}(ne.cellXfs))&&(re[re.length]=ie),re[re.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',re[re.length]='<dxfs count="0"/>',re[re.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',re.length>2&&(re[re.length]="</styleSheet>",re[1]=re[1].replace("/>",">")),re.join("")}function write_BrtFmt(te,ne,ie){ie||(ie=new_buf(6+4*ne.length)),ie.write_shift(2,te),write_XLWideString(ne,ie);var re=ie.length>ie.l?ie.slice(0,ie.l):ie;return null==ie.l&&(ie.l=ie.length),re}function write_BrtFont(te,ne){ne||(ne=new_buf(153)),ne.write_shift(2,20*te.sz),function write_FontFlags(te,ne){ne||(ne=new_buf(2));var ie=(te.italic?2:0)|(te.strike?8:0)|(te.outline?16:0)|(te.shadow?32:0)|(te.condense?64:0)|(te.extend?128:0);return ne.write_shift(1,ie),ne.write_shift(1,0),ne}(te,ne),ne.write_shift(2,te.bold?700:400);var ie=0;"superscript"==te.vertAlign?ie=1:"subscript"==te.vertAlign&&(ie=2),ne.write_shift(2,ie),ne.write_shift(1,te.underline||0),ne.write_shift(1,te.family||0),ne.write_shift(1,te.charset||0),ne.write_shift(1,0),write_BrtColor(te.color,ne);var re=0;return"major"==te.scheme&&(re=1),"minor"==te.scheme&&(re=2),ne.write_shift(1,re),write_XLWideString(te.name,ne),ne.length>ne.l?ne.slice(0,ne.l):ne}var ls,us=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],ps=parsenoop;function write_BrtFill(te,ne){ne||(ne=new_buf(84)),ls||(ls=evert(us));var ie=ls[te.patternType];null==ie&&(ie=40),ne.write_shift(4,ie);var re=0;if(40!=ie)for(write_BrtColor({auto:1},ne),write_BrtColor({auto:1},ne);re<12;++re)ne.write_shift(4,0);else{for(;re<4;++re)ne.write_shift(4,0);for(;re<12;++re)ne.write_shift(4,0)}return ne.length>ne.l?ne.slice(0,ne.l):ne}function write_BrtXF(te,ne,ie){ie||(ie=new_buf(16)),ie.write_shift(2,ne||0),ie.write_shift(2,te.numFmtId||0),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(1,0),ie.write_shift(1,0);return ie.write_shift(1,0),ie.write_shift(1,0),ie.write_shift(1,0),ie.write_shift(1,0),ie}function write_Blxf(te,ne){return ne||(ne=new_buf(10)),ne.write_shift(1,0),ne.write_shift(1,0),ne.write_shift(4,0),ne.write_shift(4,0),ne}var ms=parsenoop;function write_BORDERS_bin(te){write_record(te,613,write_UInt32LE(1)),write_record(te,46,function write_BrtBorder(te,ne){return ne||(ne=new_buf(51)),ne.write_shift(1,0),write_Blxf(0,ne),write_Blxf(0,ne),write_Blxf(0,ne),write_Blxf(0,ne),write_Blxf(0,ne),ne.length>ne.l?ne.slice(0,ne.l):ne}()),write_record(te,614)}function write_STYLES_bin(te){write_record(te,619,write_UInt32LE(1)),write_record(te,48,function write_BrtStyle(te,ne){return ne||(ne=new_buf(52)),ne.write_shift(4,te.xfId),ne.write_shift(2,1),ne.write_shift(1,+te.builtinId),ne.write_shift(1,0),write_XLNullableWideString(te.name||"",ne),ne.length>ne.l?ne.slice(0,ne.l):ne}({xfId:0,builtinId:0,name:"Normal"})),write_record(te,620)}function write_TABLESTYLES_bin(te){write_record(te,508,function write_BrtBeginTableStyles(te,ne,ie){var re=new_buf(2052);return re.write_shift(4,te),write_XLNullableWideString(ne,re),write_XLNullableWideString(ie,re),re.length>re.l?re.slice(0,re.l):re}(0,"TableStyleMedium9","PivotStyleMedium4")),write_record(te,509)}function write_sty_bin(te,ne){var ie=buf_array();return write_record(ie,278),function write_FMTS_bin(te,ne){if(ne){var ie=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(te){for(var re=te[0];re<=te[1];++re)null!=ne[re]&&++ie})),0!=ie&&(write_record(te,615,write_UInt32LE(ie)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(ie){for(var re=ie[0];re<=ie[1];++re)null!=ne[re]&&write_record(te,44,write_BrtFmt(re,ne[re]))})),write_record(te,616))}}(ie,te.SSF),function write_FONTS_bin(te){write_record(te,611,write_UInt32LE(1)),write_record(te,43,write_BrtFont({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),write_record(te,612)}(ie),function write_FILLS_bin(te){write_record(te,603,write_UInt32LE(2)),write_record(te,45,write_BrtFill({patternType:"none"})),write_record(te,45,write_BrtFill({patternType:"gray125"})),write_record(te,604)}(ie),write_BORDERS_bin(ie),function write_CELLSTYLEXFS_bin(te){write_record(te,626,write_UInt32LE(1)),write_record(te,47,write_BrtXF({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),write_record(te,627)}(ie),function write_CELLXFS_bin(te,ne){write_record(te,617,write_UInt32LE(ne.length)),ne.forEach((function(ne){write_record(te,47,write_BrtXF(ne,0))})),write_record(te,618)}(ie,ne.cellXfs),write_STYLES_bin(ie),function write_DXFS_bin(te){write_record(te,505,write_UInt32LE(0)),write_record(te,506)}(ie),write_TABLESTYLES_bin(ie),write_record(ie,279),ie.end()}function write_theme(te,ne){if(ne&&ne.themeXLSX)return ne.themeXLSX;if(te&&"string"==typeof te.raw)return te.raw;var ie=[Po];return ie[ie.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',ie[ie.length]="<a:themeElements>",ie[ie.length]='<a:clrScheme name="Office">',ie[ie.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',ie[ie.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',ie[ie.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',ie[ie.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',ie[ie.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',ie[ie.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',ie[ie.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',ie[ie.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',ie[ie.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',ie[ie.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',ie[ie.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',ie[ie.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',ie[ie.length]="</a:clrScheme>",ie[ie.length]='<a:fontScheme name="Office">',ie[ie.length]="<a:majorFont>",ie[ie.length]='<a:latin typeface="Cambria"/>',ie[ie.length]='<a:ea typeface=""/>',ie[ie.length]='<a:cs typeface=""/>',ie[ie.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',ie[ie.length]='<a:font script="Hang" typeface="맑은 고딕"/>',ie[ie.length]='<a:font script="Hans" typeface="宋体"/>',ie[ie.length]='<a:font script="Hant" typeface="新細明體"/>',ie[ie.length]='<a:font script="Arab" typeface="Times New Roman"/>',ie[ie.length]='<a:font script="Hebr" typeface="Times New Roman"/>',ie[ie.length]='<a:font script="Thai" typeface="Tahoma"/>',ie[ie.length]='<a:font script="Ethi" typeface="Nyala"/>',ie[ie.length]='<a:font script="Beng" typeface="Vrinda"/>',ie[ie.length]='<a:font script="Gujr" typeface="Shruti"/>',ie[ie.length]='<a:font script="Khmr" typeface="MoolBoran"/>',ie[ie.length]='<a:font script="Knda" typeface="Tunga"/>',ie[ie.length]='<a:font script="Guru" typeface="Raavi"/>',ie[ie.length]='<a:font script="Cans" typeface="Euphemia"/>',ie[ie.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',ie[ie.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',ie[ie.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',ie[ie.length]='<a:font script="Thaa" typeface="MV Boli"/>',ie[ie.length]='<a:font script="Deva" typeface="Mangal"/>',ie[ie.length]='<a:font script="Telu" typeface="Gautami"/>',ie[ie.length]='<a:font script="Taml" typeface="Latha"/>',ie[ie.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',ie[ie.length]='<a:font script="Orya" typeface="Kalinga"/>',ie[ie.length]='<a:font script="Mlym" typeface="Kartika"/>',ie[ie.length]='<a:font script="Laoo" typeface="DokChampa"/>',ie[ie.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',ie[ie.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',ie[ie.length]='<a:font script="Viet" typeface="Times New Roman"/>',ie[ie.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',ie[ie.length]='<a:font script="Geor" typeface="Sylfaen"/>',ie[ie.length]="</a:majorFont>",ie[ie.length]="<a:minorFont>",ie[ie.length]='<a:latin typeface="Calibri"/>',ie[ie.length]='<a:ea typeface=""/>',ie[ie.length]='<a:cs typeface=""/>',ie[ie.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',ie[ie.length]='<a:font script="Hang" typeface="맑은 고딕"/>',ie[ie.length]='<a:font script="Hans" typeface="宋体"/>',ie[ie.length]='<a:font script="Hant" typeface="新細明體"/>',ie[ie.length]='<a:font script="Arab" typeface="Arial"/>',ie[ie.length]='<a:font script="Hebr" typeface="Arial"/>',ie[ie.length]='<a:font script="Thai" typeface="Tahoma"/>',ie[ie.length]='<a:font script="Ethi" typeface="Nyala"/>',ie[ie.length]='<a:font script="Beng" typeface="Vrinda"/>',ie[ie.length]='<a:font script="Gujr" typeface="Shruti"/>',ie[ie.length]='<a:font script="Khmr" typeface="DaunPenh"/>',ie[ie.length]='<a:font script="Knda" typeface="Tunga"/>',ie[ie.length]='<a:font script="Guru" typeface="Raavi"/>',ie[ie.length]='<a:font script="Cans" typeface="Euphemia"/>',ie[ie.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',ie[ie.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',ie[ie.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',ie[ie.length]='<a:font script="Thaa" typeface="MV Boli"/>',ie[ie.length]='<a:font script="Deva" typeface="Mangal"/>',ie[ie.length]='<a:font script="Telu" typeface="Gautami"/>',ie[ie.length]='<a:font script="Taml" typeface="Latha"/>',ie[ie.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',ie[ie.length]='<a:font script="Orya" typeface="Kalinga"/>',ie[ie.length]='<a:font script="Mlym" typeface="Kartika"/>',ie[ie.length]='<a:font script="Laoo" typeface="DokChampa"/>',ie[ie.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',ie[ie.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',ie[ie.length]='<a:font script="Viet" typeface="Arial"/>',ie[ie.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',ie[ie.length]='<a:font script="Geor" typeface="Sylfaen"/>',ie[ie.length]="</a:minorFont>",ie[ie.length]="</a:fontScheme>",ie[ie.length]='<a:fmtScheme name="Office">',ie[ie.length]="<a:fillStyleLst>",ie[ie.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',ie[ie.length]='<a:gradFill rotWithShape="1">',ie[ie.length]="<a:gsLst>",ie[ie.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',ie[ie.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',ie[ie.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',ie[ie.length]="</a:gsLst>",ie[ie.length]='<a:lin ang="16200000" scaled="1"/>',ie[ie.length]="</a:gradFill>",ie[ie.length]='<a:gradFill rotWithShape="1">',ie[ie.length]="<a:gsLst>",ie[ie.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',ie[ie.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',ie[ie.length]="</a:gsLst>",ie[ie.length]='<a:lin ang="16200000" scaled="0"/>',ie[ie.length]="</a:gradFill>",ie[ie.length]="</a:fillStyleLst>",ie[ie.length]="<a:lnStyleLst>",ie[ie.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',ie[ie.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',ie[ie.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',ie[ie.length]="</a:lnStyleLst>",ie[ie.length]="<a:effectStyleLst>",ie[ie.length]="<a:effectStyle>",ie[ie.length]="<a:effectLst>",ie[ie.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',ie[ie.length]="</a:effectLst>",ie[ie.length]="</a:effectStyle>",ie[ie.length]="<a:effectStyle>",ie[ie.length]="<a:effectLst>",ie[ie.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',ie[ie.length]="</a:effectLst>",ie[ie.length]="</a:effectStyle>",ie[ie.length]="<a:effectStyle>",ie[ie.length]="<a:effectLst>",ie[ie.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',ie[ie.length]="</a:effectLst>",ie[ie.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',ie[ie.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',ie[ie.length]="</a:effectStyle>",ie[ie.length]="</a:effectStyleLst>",ie[ie.length]="<a:bgFillStyleLst>",ie[ie.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',ie[ie.length]='<a:gradFill rotWithShape="1">',ie[ie.length]="<a:gsLst>",ie[ie.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',ie[ie.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',ie[ie.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',ie[ie.length]="</a:gsLst>",ie[ie.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',ie[ie.length]="</a:gradFill>",ie[ie.length]='<a:gradFill rotWithShape="1">',ie[ie.length]="<a:gsLst>",ie[ie.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',ie[ie.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',ie[ie.length]="</a:gsLst>",ie[ie.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',ie[ie.length]="</a:gradFill>",ie[ie.length]="</a:bgFillStyleLst>",ie[ie.length]="</a:fmtScheme>",ie[ie.length]="</a:themeElements>",ie[ie.length]="<a:objectDefaults>",ie[ie.length]="<a:spDef>",ie[ie.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',ie[ie.length]="</a:spDef>",ie[ie.length]="<a:lnDef>",ie[ie.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',ie[ie.length]="</a:lnDef>",ie[ie.length]="</a:objectDefaults>",ie[ie.length]="<a:extraClrSchemeLst/>",ie[ie.length]="</a:theme>",ie.join("")}function write_xlmeta_bin(){var te=buf_array();return write_record(te,332),write_record(te,334,write_UInt32LE(1)),write_record(te,335,function write_BrtMdtinfo(te){var ne=new_buf(12+2*te.name.length);return ne.write_shift(4,te.flags),ne.write_shift(4,te.version),write_XLWideString(te.name,ne),ne.slice(0,ne.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),write_record(te,336),write_record(te,339,function write_BrtBeginEsfmd(te,ne){var ie=new_buf(8+2*ne.length);return ie.write_shift(4,te),write_XLWideString(ne,ie),ie.slice(0,ie.l)}(1,"XLDAPR")),write_record(te,52),write_record(te,35,write_UInt32LE(514)),write_record(te,4096,write_UInt32LE(0)),write_record(te,4097,writeuint16(1)),write_record(te,36),write_record(te,53),write_record(te,340),write_record(te,337,function write_BrtBeginEsmdb(te,ne){var ie=new_buf(8);return ie.write_shift(4,te),ie.write_shift(4,ne?1:0),ie}(1,!0)),write_record(te,51,function write_BrtMdb(te){var ne=new_buf(4+8*te.length);ne.write_shift(4,te.length);for(var ie=0;ie<te.length;++ie)ne.write_shift(4,te[ie][0]),ne.write_shift(4,te[ie][1]);return ne}([[1,0]])),write_record(te,338),write_record(te,333),te.end()}function write_xlmeta_xml(){var te=[Po];return te.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),te.join("")}var fs=1024;function write_comments_vml(te,ne){for(var ie=[21600,21600],re=["m0,0l0",ie[1],ie[0],ie[1],ie[0],"0xe"].join(","),le=[writextag("xml",null,{"xmlns:v":kr.v,"xmlns:o":kr.o,"xmlns:x":kr.x,"xmlns:mv":kr.mv}).replace(/\/>/,">"),writextag("o:shapelayout",writextag("o:idmap",null,{"v:ext":"edit",data:te}),{"v:ext":"edit"}),writextag("v:shapetype",[writextag("v:stroke",null,{joinstyle:"miter"}),writextag("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:ie.join(","),path:re})];fs<1e3*te;)fs+=1e3;return ne.forEach((function(te){var ne=decode_cell(te[0]),ie={color2:"#BEFF82",type:"gradient"};"gradient"==ie.type&&(ie.angle="-180");var re="gradient"==ie.type?writextag("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,ce=writextag("v:fill",re,ie);++fs,le=le.concat(["<v:shape"+wxt_helper({id:"_x0000_s"+fs,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(te[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",ce,writextag("v:shadow",null,{on:"t",obscured:"t"}),writextag("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",writetag("x:Anchor",[ne.c+1,0,ne.r+1,0,ne.c+3,20,ne.r+5,20].join(",")),writetag("x:AutoFill","False"),writetag("x:Row",String(ne.r)),writetag("x:Column",String(ne.c)),te[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),le.push("</xml>"),le.join("")}function write_comments_xml(te){var ne=[Po,writextag("comments",null,{xmlns:Ar[0]})],ie=[];return ne.push("<authors>"),te.forEach((function(te){te[1].forEach((function(te){var re=escapexml(te.a);-1==ie.indexOf(re)&&(ie.push(re),ne.push("<author>"+re+"</author>")),te.T&&te.ID&&-1==ie.indexOf("tc="+te.ID)&&(ie.push("tc="+te.ID),ne.push("<author>tc="+te.ID+"</author>"))}))})),0==ie.length&&(ie.push("SheetJ5"),ne.push("<author>SheetJ5</author>")),ne.push("</authors>"),ne.push("<commentList>"),te.forEach((function(te){var re=0,le=[];if(te[1][0]&&te[1][0].T&&te[1][0].ID?re=ie.indexOf("tc="+te[1][0].ID):te[1].forEach((function(te){te.a&&(re=ie.indexOf(escapexml(te.a))),le.push(te.t||"")})),ne.push('<comment ref="'+te[0]+'" authorId="'+re+'"><text>'),le.length<=1)ne.push(writetag("t",escapexml(le[0]||"")));else{for(var ce="Comment:\n    "+le[0]+"\n",de=1;de<le.length;++de)ce+="Reply:\n    "+le[de]+"\n";ne.push(writetag("t",escapexml(ce)))}ne.push("</text></comment>")})),ne.push("</commentList>"),ne.length>2&&(ne[ne.length]="</comments>",ne[1]=ne[1].replace("/>",">")),ne.join("")}function write_tcmnt_xml(te,ne,ie){var re=[Po,writextag("ThreadedComments",null,{xmlns:wr.TCMNT}).replace(/[\/]>/,">")];return te.forEach((function(te){var le="";(te[1]||[]).forEach((function(ce,de){if(ce.T){ce.a&&-1==ne.indexOf(ce.a)&&ne.push(ce.a);var ue={ref:te[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+ie.tcid++).slice(-12)+"}"};0==de?le=ue.id:ue.parentId=le,ce.ID=ue.id,ce.a&&(ue.personId="{54EE7950-7262-4200-6969-"+("000000000000"+ne.indexOf(ce.a)).slice(-12)+"}"),re.push(writextag("threadedComment",writetag("text",ce.t||""),ue))}else delete ce.ID}))})),re.push("</ThreadedComments>"),re.join("")}var bs=parse_XLWideString;function write_comments_bin(te){var ne=buf_array(),ie=[];return write_record(ne,628),write_record(ne,630),te.forEach((function(te){te[1].forEach((function(te){ie.indexOf(te.a)>-1||(ie.push(te.a.slice(0,54)),write_record(ne,632,function write_BrtCommentAuthor(te){return write_XLWideString(te.slice(0,54))}(te.a)))}))})),write_record(ne,631),write_record(ne,633),te.forEach((function(te){te[1].forEach((function(re){re.iauthor=ie.indexOf(re.a);var le={s:decode_cell(te[0]),e:decode_cell(te[0])};write_record(ne,635,function write_BrtBeginComment(te,ne){return null==ne&&(ne=new_buf(36)),ne.write_shift(4,te[1].iauthor),ra(te[0],ne),ne.write_shift(4,0),ne.write_shift(4,0),ne.write_shift(4,0),ne.write_shift(4,0),ne}([le,re])),re.t&&re.t.length>0&&write_record(ne,637,write_BrtCommentText(re)),write_record(ne,636),delete re.iauthor}))})),write_record(ne,634),write_record(ne,629),ne.end()}var Ls=["xlsb","xlsm","xlam","biff8","xla"];var Os=function(){var te=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,ne={r:0,c:0};function rcfunc(te,ie,re,le){var ce=!1,de=!1;0==re.length?de=!0:"["==re.charAt(0)&&(de=!0,re=re.slice(1,-1)),0==le.length?ce=!0:"["==le.charAt(0)&&(ce=!0,le=le.slice(1,-1));var ue=re.length>0?0|parseInt(re,10):0,me=le.length>0?0|parseInt(le,10):0;return ce?me+=ne.c:--me,de?ue+=ne.r:--ue,ie+(ce?"":"$")+encode_col(me)+(de?"":"$")+encode_row(ue)}return function rc_to_a1(ie,re){return ne=re,ie.replace(te,rcfunc)}}(),Ps=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,zs=function(){return function a1_to_rc(te,ne){return te.replace(Ps,(function(te,ie,re,le,ce,de){var ue=decode_col(le)-(re?0:ne.c),me=decode_row(de)-(ce?0:ne.r);return ie+"R"+(0==me?"":ce?me+1:"["+me+"]")+"C"+(0==ue?"":re?ue+1:"["+ue+"]")}))}}();function shift_formula_str(te,ne){return te.replace(Ps,(function(te,ie,re,le,ce,de){return ie+("$"==re?re+le:encode_col(decode_col(le)+ne.c))+("$"==ce?ce+de:encode_row(decode_row(de)+ne.r))}))}function parseread1(te){te.l+=1}function parse_ColRelU(te,ne){var ie=te.read_shift(1==ne?1:2);return[16383&ie,ie>>14&1,ie>>15&1]}function parse_RgceArea(te,ne,ie){var re=2;if(ie){if(ie.biff>=2&&ie.biff<=5)return parse_RgceArea_BIFF2(te);12==ie.biff&&(re=4)}var le=te.read_shift(re),ce=te.read_shift(re),de=parse_ColRelU(te,2),ue=parse_ColRelU(te,2);return{s:{r:le,c:de[0],cRel:de[1],rRel:de[2]},e:{r:ce,c:ue[0],cRel:ue[1],rRel:ue[2]}}}function parse_RgceArea_BIFF2(te){var ne=parse_ColRelU(te,2),ie=parse_ColRelU(te,2),re=te.read_shift(1),le=te.read_shift(1);return{s:{r:ne[0],c:re,cRel:ne[1],rRel:ne[2]},e:{r:ie[0],c:le,cRel:ie[1],rRel:ie[2]}}}function parse_RgceLoc(te,ne,ie){if(ie&&ie.biff>=2&&ie.biff<=5)return function parse_RgceLoc_BIFF2(te){var ne=parse_ColRelU(te,2),ie=te.read_shift(1);return{r:ne[0],c:ie,cRel:ne[1],rRel:ne[2]}}(te);var re=te.read_shift(ie&&12==ie.biff?4:2),le=parse_ColRelU(te,2);return{r:re,c:le[0],cRel:le[1],rRel:le[2]}}function parse_RgceElfLoc(te){var ne=te.read_shift(2),ie=te.read_shift(2);return{r:ne,c:255&ie,fQuoted:!!(16384&ie),cRel:ie>>15,rRel:ie>>15}}function parse_PtgAttrBaxcel(te){var ne=1&te[te.l+1];return te.l+=4,[ne,1]}function parse_PtgAttrSpaceType(te){return[te.read_shift(1),te.read_shift(1)]}function parse_SerAr(te,ne){var ie=[te.read_shift(1)];if(12==ne)switch(ie[0]){case 2:ie[0]=4;break;case 4:ie[0]=16;break;case 0:ie[0]=1;break;case 1:ie[0]=2}switch(ie[0]){case 4:ie[1]=parsebool(te,1)?"TRUE":"FALSE",12!=ne&&(te.l+=7);break;case 37:case 16:ie[1]=ha[te[te.l]],te.l+=12==ne?4:8;break;case 0:te.l+=8;break;case 1:ie[1]=parse_Xnum(te);break;case 2:ie[1]=parse_XLUnicodeString2(te,0,{biff:ne>0&&ne<8?2:ne});break;default:throw new Error("Bad SerAr: "+ie[0])}return ie}function parse_PtgExtraMem(te,ne,ie){for(var re=te.read_shift(12==ie.biff?4:2),le=[],ce=0;ce!=re;++ce)le.push((12==ie.biff?oa:parse_Ref8U)(te,8));return le}function parse_PtgExtraArray(te,ne,ie){var re=0,le=0;12==ie.biff?(re=te.read_shift(4),le=te.read_shift(4)):(le=1+te.read_shift(1),re=1+te.read_shift(2)),ie.biff>=2&&ie.biff<8&&(--re,0==--le&&(le=256));for(var ce=0,de=[];ce!=re&&(de[ce]=[]);++ce)for(var ue=0;ue!=le;++ue)de[ce][ue]=parse_SerAr(te,ie.biff);return de}function parse_PtgElfLoc(te,ne,ie){return te.l+=2,[parse_RgceElfLoc(te)]}function parse_PtgElfNoop(te){return te.l+=6,[]}function parse_PtgElfLel(te){return te.l+=2,[parseuint16(te),1&te.read_shift(2)]}var Xs=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var tl={1:{n:"PtgExp",f:function parse_PtgExp(te,ne,ie){return te.l++,ie&&12==ie.biff?[te.read_shift(4,"i"),0]:[te.read_shift(2),te.read_shift(ie&&2==ie.biff?1:2)]}},2:{n:"PtgTbl",f:parsenoop},3:{n:"PtgAdd",f:parseread1},4:{n:"PtgSub",f:parseread1},5:{n:"PtgMul",f:parseread1},6:{n:"PtgDiv",f:parseread1},7:{n:"PtgPower",f:parseread1},8:{n:"PtgConcat",f:parseread1},9:{n:"PtgLt",f:parseread1},10:{n:"PtgLe",f:parseread1},11:{n:"PtgEq",f:parseread1},12:{n:"PtgGe",f:parseread1},13:{n:"PtgGt",f:parseread1},14:{n:"PtgNe",f:parseread1},15:{n:"PtgIsect",f:parseread1},16:{n:"PtgUnion",f:parseread1},17:{n:"PtgRange",f:parseread1},18:{n:"PtgUplus",f:parseread1},19:{n:"PtgUminus",f:parseread1},20:{n:"PtgPercent",f:parseread1},21:{n:"PtgParen",f:parseread1},22:{n:"PtgMissArg",f:parseread1},23:{n:"PtgStr",f:function parse_PtgStr(te,ne,ie){return te.l++,parse_ShortXLUnicodeString(te,0,ie)}},26:{n:"PtgSheet",f:function parse_PtgSheet(te,ne,ie){return te.l+=5,te.l+=2,te.l+=2==ie.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function parse_PtgEndSheet(te,ne,ie){return te.l+=2==ie.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function parse_PtgErr(te){return te.l++,ha[te.read_shift(1)]}},29:{n:"PtgBool",f:function parse_PtgBool(te){return te.l++,0!==te.read_shift(1)}},30:{n:"PtgInt",f:function parse_PtgInt(te){return te.l++,te.read_shift(2)}},31:{n:"PtgNum",f:function parse_PtgNum(te){return te.l++,parse_Xnum(te)}},32:{n:"PtgArray",f:function parse_PtgArray(te,ne,ie){var re=(96&te[te.l++])>>5;return te.l+=2==ie.biff?6:12==ie.biff?14:7,[re]}},33:{n:"PtgFunc",f:function parse_PtgFunc(te,ne,ie){var re=(96&te[te.l])>>5;te.l+=1;var le=te.read_shift(ie&&ie.biff<=3?1:2);return[rc[le],oc[le],re]}},34:{n:"PtgFuncVar",f:function parse_PtgFuncVar(te,ne,ie){var re=te[te.l++],le=te.read_shift(1),ce=ie&&ie.biff<=3?[88==re?-1:0,te.read_shift(1)]:function parsetab(te){return[te[te.l+1]>>7,32767&te.read_shift(2)]}(te);return[le,(0===ce[0]?oc:ic)[ce[1]]]}},35:{n:"PtgName",f:function parse_PtgName(te,ne,ie){var re=te.read_shift(1)>>>5&3,le=!ie||ie.biff>=8?4:2,ce=te.read_shift(le);switch(ie.biff){case 2:te.l+=5;break;case 3:case 4:te.l+=8;break;case 5:te.l+=12}return[re,0,ce]}},36:{n:"PtgRef",f:function parse_PtgRef(te,ne,ie){var re=(96&te[te.l])>>5;return te.l+=1,[re,parse_RgceLoc(te,0,ie)]}},37:{n:"PtgArea",f:function parse_PtgArea(te,ne,ie){return[(96&te[te.l++])>>5,parse_RgceArea(te,ie.biff>=2&&ie.biff,ie)]}},38:{n:"PtgMemArea",f:function parse_PtgMemArea(te,ne,ie){var re=te.read_shift(1)>>>5&3;return te.l+=ie&&2==ie.biff?3:4,[re,te.read_shift(ie&&2==ie.biff?1:2)]}},39:{n:"PtgMemErr",f:parsenoop},40:{n:"PtgMemNoMem",f:parsenoop},41:{n:"PtgMemFunc",f:function parse_PtgMemFunc(te,ne,ie){return[te.read_shift(1)>>>5&3,te.read_shift(ie&&2==ie.biff?1:2)]}},42:{n:"PtgRefErr",f:function parse_PtgRefErr(te,ne,ie){var re=te.read_shift(1)>>>5&3;return te.l+=4,ie.biff<8&&te.l--,12==ie.biff&&(te.l+=2),[re]}},43:{n:"PtgAreaErr",f:function parse_PtgAreaErr(te,ne,ie){var re=(96&te[te.l++])>>5;return te.l+=ie&&ie.biff>8?12:ie.biff<8?6:8,[re]}},44:{n:"PtgRefN",f:function parse_PtgRefN(te,ne,ie){var re=(96&te[te.l])>>5;te.l+=1;var le=function parse_RgceLocRel(te,ne,ie){var re=ie&&ie.biff?ie.biff:8;if(re>=2&&re<=5)return function parse_RgceLocRel_BIFF2(te){var ne=te.read_shift(2),ie=te.read_shift(1),re=(32768&ne)>>15,le=(16384&ne)>>14;return ne&=16383,1==re&&ne>=8192&&(ne-=16384),1==le&&ie>=128&&(ie-=256),{r:ne,c:ie,cRel:le,rRel:re}}(te);var le=te.read_shift(re>=12?4:2),ce=te.read_shift(2),de=(16384&ce)>>14,ue=(32768&ce)>>15;if(ce&=16383,1==ue)for(;le>524287;)le-=1048576;if(1==de)for(;ce>8191;)ce-=16384;return{r:le,c:ce,cRel:de,rRel:ue}}(te,0,ie);return[re,le]}},45:{n:"PtgAreaN",f:function parse_PtgAreaN(te,ne,ie){var re=(96&te[te.l++])>>5,le=function parse_RgceAreaRel(te,ne,ie){if(ie.biff<8)return parse_RgceArea_BIFF2(te);var re=te.read_shift(12==ie.biff?4:2),le=te.read_shift(12==ie.biff?4:2),ce=parse_ColRelU(te,2),de=parse_ColRelU(te,2);return{s:{r:re,c:ce[0],cRel:ce[1],rRel:ce[2]},e:{r:le,c:de[0],cRel:de[1],rRel:de[2]}}}(te,0,ie);return[re,le]}},46:{n:"PtgMemAreaN",f:function parse_PtgMemAreaN(te){return[te.read_shift(1)>>>5&3,te.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function parse_PtgMemNoMemN(te){return[te.read_shift(1)>>>5&3,te.read_shift(2)]}},57:{n:"PtgNameX",f:function parse_PtgNameX(te,ne,ie){return 5==ie.biff?function parse_PtgNameX_BIFF5(te){var ne=te.read_shift(1)>>>5&3,ie=te.read_shift(2,"i");te.l+=8;var re=te.read_shift(2);return te.l+=12,[ne,ie,re]}(te):[te.read_shift(1)>>>5&3,te.read_shift(2),te.read_shift(4)]}},58:{n:"PtgRef3d",f:function parse_PtgRef3d(te,ne,ie){var re=(96&te[te.l])>>5;te.l+=1;var le=te.read_shift(2);return ie&&5==ie.biff&&(te.l+=12),[re,le,parse_RgceLoc(te,0,ie)]}},59:{n:"PtgArea3d",f:function parse_PtgArea3d(te,ne,ie){var re=(96&te[te.l++])>>5,le=te.read_shift(2,"i");if(ie)switch(ie.biff){case 5:te.l+=12,6;break;case 12:12}return[re,le,parse_RgceArea(te,0,ie)]}},60:{n:"PtgRefErr3d",f:function parse_PtgRefErr3d(te,ne,ie){var re=(96&te[te.l++])>>5,le=te.read_shift(2),ce=4;if(ie)switch(ie.biff){case 5:ce=15;break;case 12:ce=6}return te.l+=ce,[re,le]}},61:{n:"PtgAreaErr3d",f:function parse_PtgAreaErr3d(te,ne,ie){var re=(96&te[te.l++])>>5,le=te.read_shift(2),ce=8;if(ie)switch(ie.biff){case 5:te.l+=12,ce=6;break;case 12:ce=12}return te.l+=ce,[re,le]}},255:{}},cl={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},kl={1:{n:"PtgElfLel",f:parse_PtgElfLel},2:{n:"PtgElfRw",f:parse_PtgElfLoc},3:{n:"PtgElfCol",f:parse_PtgElfLoc},6:{n:"PtgElfRwV",f:parse_PtgElfLoc},7:{n:"PtgElfColV",f:parse_PtgElfLoc},10:{n:"PtgElfRadical",f:parse_PtgElfLoc},11:{n:"PtgElfRadicalS",f:parse_PtgElfNoop},13:{n:"PtgElfColS",f:parse_PtgElfNoop},15:{n:"PtgElfColSV",f:parse_PtgElfNoop},16:{n:"PtgElfRadicalLel",f:parse_PtgElfLel},25:{n:"PtgList",f:function parse_PtgList(te){te.l+=2;var ne=te.read_shift(2),ie=te.read_shift(2),re=te.read_shift(4),le=te.read_shift(2),ce=te.read_shift(2);return{ixti:ne,coltype:3&ie,rt:Xs[ie>>2&31],idx:re,c:le,C:ce}}},29:{n:"PtgSxName",f:function parse_PtgSxName(te){return te.l+=2,[te.read_shift(4)]}},255:{}},zl={0:{n:"PtgAttrNoop",f:function parse_PtgAttrNoop(te){return te.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function parse_PtgAttrSemi(te,ne,ie){var re=255&te[te.l+1]?1:0;return te.l+=ie&&2==ie.biff?3:4,[re]}},2:{n:"PtgAttrIf",f:function parse_PtgAttrIf(te,ne,ie){var re=255&te[te.l+1]?1:0;return te.l+=2,[re,te.read_shift(ie&&2==ie.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function parse_PtgAttrChoose(te,ne,ie){te.l+=2;for(var re=te.read_shift(ie&&2==ie.biff?1:2),le=[],ce=0;ce<=re;++ce)le.push(te.read_shift(ie&&2==ie.biff?1:2));return le}},8:{n:"PtgAttrGoto",f:function parse_PtgAttrGoto(te,ne,ie){var re=255&te[te.l+1]?1:0;return te.l+=2,[re,te.read_shift(ie&&2==ie.biff?1:2)]}},16:{n:"PtgAttrSum",f:function parse_PtgAttrSum(te,ne,ie){te.l+=ie&&2==ie.biff?3:4}},32:{n:"PtgAttrBaxcel",f:parse_PtgAttrBaxcel},33:{n:"PtgAttrBaxcel",f:parse_PtgAttrBaxcel},64:{n:"PtgAttrSpace",f:function parse_PtgAttrSpace(te){return te.read_shift(2),parse_PtgAttrSpaceType(te)}},65:{n:"PtgAttrSpaceSemi",f:function parse_PtgAttrSpaceSemi(te){return te.read_shift(2),parse_PtgAttrSpaceType(te)}},128:{n:"PtgAttrIfError",f:function parse_PtgAttrIfError(te){var ne=255&te[te.l+1]?1:0;return te.l+=2,[ne,te.read_shift(2)]}},255:{}};function parse_RgbExtra(te,ne,ie,re){if(re.biff<8)return parsenoop(te,ne);for(var le=te.l+ne,ce=[],de=0;de!==ie.length;++de)switch(ie[de][0]){case"PtgArray":ie[de][1]=parse_PtgExtraArray(te,0,re),ce.push(ie[de][1]);break;case"PtgMemArea":ie[de][2]=parse_PtgExtraMem(te,ie[de][1],re),ce.push(ie[de][2]);break;case"PtgExp":re&&12==re.biff&&(ie[de][1][1]=te.read_shift(4),ce.push(ie[de][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+ie[de][0]}return 0!==(ne=le-te.l)&&ce.push(parsenoop(te,ne)),ce}function parse_Rgce(te,ne,ie){for(var re,le,ce=te.l+ne,de=[];ce!=te.l;)ne=ce-te.l,le=te[te.l],re=tl[le]||tl[cl[le]],24!==le&&25!==le||(re=(24===le?kl:zl)[te[te.l+1]]),re&&re.f?de.push([re.n,re.f(te,ne,ie)]):parsenoop(te,ne);return de}function stringify_array(te){for(var ne=[],ie=0;ie<te.length;++ie){for(var re=te[ie],le=[],ce=0;ce<re.length;++ce){var de=re[ce];if(de)if(2===de[0])le.push('"'+de[1].replace(/"/g,'""')+'"');else le.push(de[1]);else le.push("")}ne.push(le.join(","))}return ne.join(";")}var Hl={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function get_ixti_raw(te,ne,ie){if(!te)return"SH33TJSERR0";if(ie.biff>8&&(!te.XTI||!te.XTI[ne]))return te.SheetNames[ne];if(!te.XTI)return"SH33TJSERR6";var re=te.XTI[ne];if(ie.biff<8)return ne>1e4&&(ne-=65536),ne<0&&(ne=-ne),0==ne?"":te.XTI[ne-1];if(!re)return"SH33TJSERR1";var le="";if(ie.biff>8)switch(te[re[0]][0]){case 357:return le=-1==re[1]?"#REF":te.SheetNames[re[1]],re[1]==re[2]?le:le+":"+te.SheetNames[re[2]];case 358:return null!=ie.SID?te.SheetNames[ie.SID]:"SH33TJSSAME"+te[re[0]][0];default:return"SH33TJSSRC"+te[re[0]][0]}switch(te[re[0]][0][0]){case 1025:return le=-1==re[1]?"#REF":te.SheetNames[re[1]]||"SH33TJSERR3",re[1]==re[2]?le:le+":"+te.SheetNames[re[2]];case 14849:return te[re[0]].slice(1).map((function(te){return te.Name})).join(";;");default:return te[re[0]][0][3]?(le=-1==re[1]?"#REF":te[re[0]][0][3][re[1]]||"SH33TJSERR4",re[1]==re[2]?le:le+":"+te[re[0]][0][3][re[2]]):"SH33TJSERR2"}}function get_ixti(te,ne,ie){var re=get_ixti_raw(te,ne,ie);return"#REF"==re?re:function formula_quote_sheet_name(te,ne){if(!(te||ne&&ne.biff<=5&&ne.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(te)?"'"+te+"'":te}(re,ie)}function stringify_formula(te,ne,ie,re,le){var ce,de,ue,me,ge=le&&le.biff||8,fe={s:{c:0,r:0},e:{c:0,r:0}},_e=[],be=0,Ce=0,ye="";if(!te[0]||!te[0][0])return"";for(var we=-1,ke="",Se=0,xe=te[0].length;Se<xe;++Se){var Ee=te[0][Se];switch(Ee[0]){case"PtgUminus":_e.push("-"+_e.pop());break;case"PtgUplus":_e.push("+"+_e.pop());break;case"PtgPercent":_e.push(_e.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(ce=_e.pop(),de=_e.pop(),we>=0){switch(te[0][we][1][0]){case 0:ke=fill(" ",te[0][we][1][1]);break;case 1:ke=fill("\r",te[0][we][1][1]);break;default:if(ke="",le.WTF)throw new Error("Unexpected PtgAttrSpaceType "+te[0][we][1][0])}de+=ke,we=-1}_e.push(de+Hl[Ee[0]]+ce);break;case"PtgIsect":ce=_e.pop(),de=_e.pop(),_e.push(de+" "+ce);break;case"PtgUnion":ce=_e.pop(),de=_e.pop(),_e.push(de+","+ce);break;case"PtgRange":ce=_e.pop(),de=_e.pop(),_e.push(de+":"+ce);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":ue=shift_cell_xls(Ee[1][1],fe,le),_e.push(encode_cell_xls(ue,ge));break;case"PtgRefN":ue=ie?shift_cell_xls(Ee[1][1],ie,le):Ee[1][1],_e.push(encode_cell_xls(ue,ge));break;case"PtgRef3d":be=Ee[1][1],ue=shift_cell_xls(Ee[1][2],fe,le);ye=get_ixti(re,be,le);_e.push(ye+"!"+encode_cell_xls(ue,ge));break;case"PtgFunc":case"PtgFuncVar":var Me=Ee[1][0],Ne=Ee[1][1];Me||(Me=0);var Re=0==(Me&=127)?[]:_e.slice(-Me);_e.length-=Me,"User"===Ne&&(Ne=Re.shift()),_e.push(Ne+"("+Re.join(",")+")");break;case"PtgBool":_e.push(Ee[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":_e.push(Ee[1]);break;case"PtgNum":_e.push(String(Ee[1]));break;case"PtgStr":_e.push('"'+Ee[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":me=shift_range_xls(Ee[1][1],ie?{s:ie}:fe,le),_e.push(encode_range_xls(me,le));break;case"PtgArea":me=shift_range_xls(Ee[1][1],fe,le),_e.push(encode_range_xls(me,le));break;case"PtgArea3d":be=Ee[1][1],me=Ee[1][2],ye=get_ixti(re,be,le),_e.push(ye+"!"+encode_range_xls(me,le));break;case"PtgAttrSum":_e.push("SUM("+_e.pop()+")");break;case"PtgName":Ce=Ee[1][2];var Le=(re.names||[])[Ce-1]||(re[0]||[])[Ce],Oe=Le?Le.Name:"SH33TJSNAME"+String(Ce);Oe&&"_xlfn."==Oe.slice(0,6)&&!le.xlfn&&(Oe=Oe.slice(6)),_e.push(Oe);break;case"PtgNameX":var Pe,Fe=Ee[1][1];if(Ce=Ee[1][2],!(le.biff<=5)){var je="";if(14849==((re[Fe]||[])[0]||[])[0]||(1025==((re[Fe]||[])[0]||[])[0]?re[Fe][Ce]&&re[Fe][Ce].itab>0&&(je=re.SheetNames[re[Fe][Ce].itab-1]+"!"):je=re.SheetNames[Ce-1]+"!"),re[Fe]&&re[Fe][Ce])je+=re[Fe][Ce].Name;else if(re[0]&&re[0][Ce])je+=re[0][Ce].Name;else{var Ve=(get_ixti_raw(re,Fe,le)||"").split(";;");Ve[Ce-1]?je=Ve[Ce-1]:je+="SH33TJSERRX"}_e.push(je);break}Fe<0&&(Fe=-Fe),re[Fe]&&(Pe=re[Fe][Ce]),Pe||(Pe={Name:"SH33TJSERRY"}),_e.push(Pe.Name);break;case"PtgParen":var Ge="(",ze=")";if(we>=0){switch(ke="",te[0][we][1][0]){case 2:Ge=fill(" ",te[0][we][1][1])+Ge;break;case 3:Ge=fill("\r",te[0][we][1][1])+Ge;break;case 4:ze=fill(" ",te[0][we][1][1])+ze;break;case 5:ze=fill("\r",te[0][we][1][1])+ze;break;default:if(le.WTF)throw new Error("Unexpected PtgAttrSpaceType "+te[0][we][1][0])}we=-1}_e.push(Ge+_e.pop()+ze);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":_e.push("#REF!");break;case"PtgExp":ue={c:Ee[1][1],r:Ee[1][0]};var He={c:ie.c,r:ie.r};if(re.sharedf[encode_cell(ue)]){var $e=re.sharedf[encode_cell(ue)];_e.push(stringify_formula($e,fe,He,re,le))}else{var qe=!1;for(ce=0;ce!=re.arrayf.length;++ce)if(de=re.arrayf[ce],!(ue.c<de[0].s.c||ue.c>de[0].e.c||ue.r<de[0].s.r||ue.r>de[0].e.r)){_e.push(stringify_formula(de[1],fe,He,re,le)),qe=!0;break}qe||_e.push(Ee[1])}break;case"PtgArray":_e.push("{"+stringify_array(Ee[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":we=Se;break;case"PtgMissArg":_e.push("");break;case"PtgList":_e.push("Table"+Ee[1].idx+"[#"+Ee[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(Ee))}if(3!=le.biff&&we>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(te[0][Se][0])){var Ye=!0;switch((Ee=te[0][we])[1][0]){case 4:Ye=!1;case 0:ke=fill(" ",Ee[1][1]);break;case 5:Ye=!1;case 1:ke=fill("\r",Ee[1][1]);break;default:if(ke="",le.WTF)throw new Error("Unexpected PtgAttrSpaceType "+Ee[1][0])}_e.push((Ye?ke:"")+_e.pop()+(Ye?"":ke)),we=-1}}if(_e.length>1&&le.WTF)throw new Error("bad formula stack");return _e[0]}function write_Formula(te,ne,ie,re,le){var ce=write_XLSCell(ne,ie,le),de=function write_FormulaValue(te){if(null==te){var ne=new_buf(8);return ne.write_shift(1,3),ne.write_shift(1,0),ne.write_shift(2,0),ne.write_shift(2,0),ne.write_shift(2,65535),ne}return write_Xnum("number"==typeof te?te:0)}(te.v),ue=new_buf(6);ue.write_shift(2,33),ue.write_shift(4,0);for(var me=new_buf(te.bf.length),ge=0;ge<te.bf.length;++ge)me[ge]=te.bf[ge];return Jn([ce,de,ue,me])}function parse_XLSBParsedFormula(te,ne,ie){var re=te.read_shift(4),le=parse_Rgce(te,re,ie),ce=te.read_shift(4);return[le,ce>0?parse_RgbExtra(te,ce,le,ie):null]}var Ul=parse_XLSBParsedFormula,$l=parse_XLSBParsedFormula,Kl=parse_XLSBParsedFormula,nc=parse_XLSBParsedFormula,ic={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},oc={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},rc={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};var sc="undefined"!=typeof Map;function get_sst_id(te,ne,ie){var re=0,le=te.length;if(ie){if(sc?ie.has(ne):Object.prototype.hasOwnProperty.call(ie,ne))for(var ce=sc?ie.get(ne):ie[ne];re<ce.length;++re)if(te[ce[re]].t===ne)return te.Count++,ce[re]}else for(;re<le;++re)if(te[re].t===ne)return te.Count++,re;return te[le]={t:ne},te.Count++,te.Unique++,ie&&(sc?(ie.has(ne)||ie.set(ne,[]),ie.get(ne).push(le)):(Object.prototype.hasOwnProperty.call(ie,ne)||(ie[ne]=[]),ie[ne].push(le))),le}function col_obj_w(te,ne){var ie={min:te+1,max:te+1},re=-1;return ne.MDW&&(os=ne.MDW),null!=ne.width?ie.customWidth=1:null!=ne.wpx?re=px2char(ne.wpx):null!=ne.wch&&(re=ne.wch),re>-1?(ie.width=char2width(re),ie.customWidth=1):null!=ne.width&&(ie.width=ne.width),ne.hidden&&(ie.hidden=!0),null!=ne.level&&(ie.outlineLevel=ie.level=ne.level),ie}function default_margins(te,ne){if(te){var ie=[.7,.7,.75,.75,.3,.3];"xlml"==ne&&(ie=[1,1,1,1,.5,.5]),null==te.left&&(te.left=ie[0]),null==te.right&&(te.right=ie[1]),null==te.top&&(te.top=ie[2]),null==te.bottom&&(te.bottom=ie[3]),null==te.header&&(te.header=ie[4]),null==te.footer&&(te.footer=ie[5])}}function get_cell_style(te,ne,ie){var re=ie.revssf[null!=ne.z?ne.z:"General"],le=60,ce=te.length;if(null==re&&ie.ssf)for(;le<392;++le)if(null==ie.ssf[le]){SSF_load(ne.z,le),ie.ssf[le]=ne.z,ie.revssf[ne.z]=re=le;break}for(le=0;le!=ce;++le)if(te[le].numFmtId===re)return le;return te[ce]={numFmtId:re,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},ce}function check_ws(te,ne,ie){if(te&&te["!ref"]){var re=safe_decode_range(te["!ref"]);if(re.e.c<re.s.c||re.e.r<re.s.r)throw new Error("Bad range ("+ie+"): "+te["!ref"])}}var mc=["objects","scenarios","selectLockedCells","selectUnlockedCells"],bc=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function write_ws_xml_cell(te,ne,ie,re){if(te.c&&ie["!comments"].push([ne,te.c]),void 0===te.v&&"string"!=typeof te.f||"z"===te.t&&!te.f)return"";var le="",ce=te.t,de=te.v;if("z"!==te.t)switch(te.t){case"b":le=te.v?"1":"0";break;case"n":le=""+te.v;break;case"e":le=ha[te.v];break;case"d":re&&re.cellDates?le=parseDate(te.v,-1).toISOString():((te=dup(te)).t="n",le=""+(te.v=datenum(parseDate(te.v)))),void 0===te.z&&(te.z=ki[14]);break;default:le=te.v}var ue=writetag("v",escapexml(le)),me={r:ne},ge=get_cell_style(re.cellXfs,te,re);switch(0!==ge&&(me.s=ge),te.t){case"n":case"z":break;case"d":me.t="d";break;case"b":me.t="b";break;case"e":me.t="e";break;default:if(null==te.v){delete te.t;break}if(te.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(re&&re.bookSST){ue=writetag("v",""+get_sst_id(re.Strings,te.v,re.revStrings)),me.t="s";break}me.t="str"}if(te.t!=ce&&(te.t=ce,te.v=de),"string"==typeof te.f&&te.f){var fe=te.F&&te.F.slice(0,ne.length)==ne?{t:"array",ref:te.F}:null;ue=writextag("f",escapexml(te.f),fe)+(null!=te.v?ue:"")}return te.l&&ie["!links"].push([ne,te.l]),te.D&&(me.cm=1),writextag("c",ue,me)}function write_ws_xml(te,ne,ie,re){var le,ce=[Po,writextag("worksheet",null,{xmlns:Ar[0],"xmlns:r":wr.r})],de=ie.SheetNames[te],ue="",me=ie.Sheets[de];null==me&&(me={});var ge=me["!ref"]||"A1",fe=safe_decode_range(ge);if(fe.e.c>16383||fe.e.r>1048575){if(ne.WTF)throw new Error("Range "+ge+" exceeds format limit A1:XFD1048576");fe.e.c=Math.min(fe.e.c,16383),fe.e.r=Math.min(fe.e.c,1048575),ge=encode_range(fe)}re||(re={}),me["!comments"]=[];var _e=[];!function write_ws_xml_sheetpr(te,ne,ie,re,le){var ce=!1,de={},ue=null;if("xlsx"!==re.bookType&&ne.vbaraw){var me=ne.SheetNames[ie];try{ne.Workbook&&(me=ne.Workbook.Sheets[ie].CodeName||me)}catch(te){}ce=!0,de.codeName=_r(escapexml(me))}if(te&&te["!outline"]){var ge={summaryBelow:1,summaryRight:1};te["!outline"].above&&(ge.summaryBelow=0),te["!outline"].left&&(ge.summaryRight=0),ue=(ue||"")+writextag("outlinePr",null,ge)}(ce||ue)&&(le[le.length]=writextag("sheetPr",ue,de))}(me,ie,te,ne,ce),ce[ce.length]=writextag("dimension",null,{ref:ge}),ce[ce.length]=function write_ws_xml_sheetviews(te,ne,ie,re){var le={workbookViewId:"0"};return(((re||{}).Workbook||{}).Views||[])[0]&&(le.rightToLeft=re.Workbook.Views[0].RTL?"1":"0"),writextag("sheetViews",writextag("sheetView",null,le),{})}(0,0,0,ie),ne.sheetFormat&&(ce[ce.length]=writextag("sheetFormatPr",null,{defaultRowHeight:ne.sheetFormat.defaultRowHeight||"16",baseColWidth:ne.sheetFormat.baseColWidth||"10",outlineLevelRow:ne.sheetFormat.outlineLevelRow||"7"})),null!=me["!cols"]&&me["!cols"].length>0&&(ce[ce.length]=function write_ws_xml_cols(te,ne){for(var ie,re=["<cols>"],le=0;le!=ne.length;++le)(ie=ne[le])&&(re[re.length]=writextag("col",null,col_obj_w(le,ie)));return re[re.length]="</cols>",re.join("")}(0,me["!cols"])),ce[le=ce.length]="<sheetData/>",me["!links"]=[],null!=me["!ref"]&&(ue=function write_ws_xml_data(te,ne,ie,re){var le,ce,de=[],ue=[],me=safe_decode_range(te["!ref"]),ge="",fe="",_e=[],be=0,Ce=0,ye=te["!rows"],we=Array.isArray(te),ke={r:fe},Se=-1;for(Ce=me.s.c;Ce<=me.e.c;++Ce)_e[Ce]=encode_col(Ce);for(be=me.s.r;be<=me.e.r;++be){for(ue=[],fe=encode_row(be),Ce=me.s.c;Ce<=me.e.c;++Ce){le=_e[Ce]+fe;var xe=we?(te[be]||[])[Ce]:te[le];void 0!==xe&&null!=(ge=write_ws_xml_cell(xe,le,te,ne))&&ue.push(ge)}(ue.length>0||ye&&ye[be])&&(ke={r:fe},ye&&ye[be]&&((ce=ye[be]).hidden&&(ke.hidden=1),Se=-1,ce.hpx?Se=px2pt(ce.hpx):ce.hpt&&(Se=ce.hpt),Se>-1&&(ke.ht=Se,ke.customHeight=1),ce.level&&(ke.outlineLevel=ce.level)),de[de.length]=writextag("row",ue.join(""),ke))}if(ye)for(;be<ye.length;++be)ye&&ye[be]&&(ke={r:be+1},(ce=ye[be]).hidden&&(ke.hidden=1),Se=-1,ce.hpx?Se=px2pt(ce.hpx):ce.hpt&&(Se=ce.hpt),Se>-1&&(ke.ht=Se,ke.customHeight=1),ce.level&&(ke.outlineLevel=ce.level),de[de.length]=writextag("row","",ke));return de.join("")}(me,ne,0,0),ue.length>0&&(ce[ce.length]=ue)),ce.length>le+1&&(ce[ce.length]="</sheetData>",ce[le]=ce[le].replace("/>",">")),me["!protect"]&&(ce[ce.length]=function write_ws_xml_protection(te){var ne={sheet:1};return mc.forEach((function(ie){null!=te[ie]&&te[ie]&&(ne[ie]="1")})),bc.forEach((function(ie){null==te[ie]||te[ie]||(ne[ie]="0")})),te.password&&(ne.password=crypto_CreatePasswordVerifier_Method1(te.password).toString(16).toUpperCase()),writextag("sheetProtection",null,ne)}(me["!protect"])),null!=me["!autofilter"]&&(ce[ce.length]=function write_ws_xml_autofilter(te,ne,ie,re){var le="string"==typeof te.ref?te.ref:encode_range(te.ref);ie.Workbook||(ie.Workbook={Sheets:[]}),ie.Workbook.Names||(ie.Workbook.Names=[]);var ce=ie.Workbook.Names,de=decode_range(le);de.s.r==de.e.r&&(de.e.r=decode_range(ne["!ref"]).e.r,le=encode_range(de));for(var ue=0;ue<ce.length;++ue){var me=ce[ue];if("_xlnm._FilterDatabase"==me.Name&&me.Sheet==re){me.Ref="'"+ie.SheetNames[re]+"'!"+le;break}}return ue==ce.length&&ce.push({Name:"_xlnm._FilterDatabase",Sheet:re,Ref:"'"+ie.SheetNames[re]+"'!"+le}),writextag("autoFilter",null,{ref:le})}(me["!autofilter"],me,ie,te)),null!=me["!merges"]&&me["!merges"].length>0&&(ce[ce.length]=function write_ws_xml_merges(te){if(0===te.length)return"";for(var ne='<mergeCells count="'+te.length+'">',ie=0;ie!=te.length;++ie)ne+='<mergeCell ref="'+encode_range(te[ie])+'"/>';return ne+"</mergeCells>"}(me["!merges"]));var be,Ce=-1,ye=-1;return me["!links"].length>0&&(ce[ce.length]="<hyperlinks>",me["!links"].forEach((function(te){te[1].Target&&(be={ref:te[0]},"#"!=te[1].Target.charAt(0)&&(ye=add_rels(re,-1,escapexml(te[1].Target).replace(/#.*$/,""),Ta.HLINK),be["r:id"]="rId"+ye),(Ce=te[1].Target.indexOf("#"))>-1&&(be.location=escapexml(te[1].Target.slice(Ce+1))),te[1].Tooltip&&(be.tooltip=escapexml(te[1].Tooltip)),ce[ce.length]=writextag("hyperlink",null,be))})),ce[ce.length]="</hyperlinks>"),delete me["!links"],null!=me["!margins"]&&(ce[ce.length]=function write_ws_xml_margins(te){return default_margins(te),writextag("pageMargins",null,te)}(me["!margins"])),ne&&!ne.ignoreEC&&null!=ne.ignoreEC||(ce[ce.length]=writetag("ignoredErrors",writextag("ignoredError",null,{numberStoredAsText:1,sqref:ge}))),_e.length>0&&(ye=add_rels(re,-1,"../drawings/drawing"+(te+1)+".xml",Ta.DRAW),ce[ce.length]=writextag("drawing",null,{"r:id":"rId"+ye}),me["!drawing"]=_e),me["!comments"].length>0&&(ye=add_rels(re,-1,"../drawings/vmlDrawing"+(te+1)+".vml",Ta.VML),ce[ce.length]=writextag("legacyDrawing",null,{"r:id":"rId"+ye}),me["!legacy"]=ye),ce.length>1&&(ce[ce.length]="</worksheet>",ce[1]=ce[1].replace("/>",">")),ce.join("")}function write_row_header(te,ne,ie,re){var le=function write_BrtRowHdr(te,ne,ie){var re=new_buf(145),le=(ie["!rows"]||[])[te]||{};re.write_shift(4,te),re.write_shift(4,0);var ce=320;le.hpx?ce=20*px2pt(le.hpx):le.hpt&&(ce=20*le.hpt),re.write_shift(2,ce),re.write_shift(1,0);var de=0;le.level&&(de|=le.level),le.hidden&&(de|=16),(le.hpx||le.hpt)&&(de|=32),re.write_shift(1,de),re.write_shift(1,0);var ue=0,me=re.l;re.l+=4;for(var ge={r:te,c:0},fe=0;fe<16;++fe)if(!(ne.s.c>fe+1<<10||ne.e.c<fe<<10)){for(var _e=-1,be=-1,Ce=fe<<10;Ce<fe+1<<10;++Ce)ge.c=Ce,(Array.isArray(ie)?(ie[ge.r]||[])[ge.c]:ie[encode_cell(ge)])&&(_e<0&&(_e=Ce),be=Ce);_e<0||(++ue,re.write_shift(4,_e),re.write_shift(4,be))}var ye=re.l;return re.l=me,re.write_shift(4,ue),re.l=ye,re.length>re.l?re.slice(0,re.l):re}(re,ie,ne);(le.length>17||(ne["!rows"]||[])[re])&&write_record(te,0,le)}var Cc=oa,wc=ra;function parse_BrtShortReal(te){return[parse_XLSBShortCell(te),parse_Xnum(te),"n"]}var Ic=oa,Sc=ra;var Tc=["left","right","top","bottom","header","footer"];function write_ws_bin_cell(te,ne,ie,re,le,ce,de){if(void 0===ne.v)return!1;var ue="";switch(ne.t){case"b":ue=ne.v?"1":"0";break;case"d":(ne=dup(ne)).z=ne.z||ki[14],ne.v=datenum(parseDate(ne.v)),ne.t="n";break;case"n":case"e":ue=""+ne.v;break;default:ue=ne.v}var me={r:ie,c:re};switch(me.s=get_cell_style(le.cellXfs,ne,le),ne.l&&ce["!links"].push([encode_cell(me),ne.l]),ne.c&&ce["!comments"].push([encode_cell(me),ne.c]),ne.t){case"s":case"str":return le.bookSST?(ue=get_sst_id(le.Strings,ne.v,le.revStrings),me.t="s",me.v=ue,de?write_record(te,18,function write_BrtShortIsst(te,ne,ie){return null==ie&&(ie=new_buf(8)),write_XLSBShortCell(ne,ie),ie.write_shift(4,ne.v),ie}(0,me)):write_record(te,7,function write_BrtCellIsst(te,ne,ie){return null==ie&&(ie=new_buf(12)),write_XLSBCell(ne,ie),ie.write_shift(4,ne.v),ie}(0,me))):(me.t="str",de?write_record(te,17,function write_BrtShortSt(te,ne,ie){return null==ie&&(ie=new_buf(8+4*te.v.length)),write_XLSBShortCell(ne,ie),write_XLWideString(te.v,ie),ie.length>ie.l?ie.slice(0,ie.l):ie}(ne,me)):write_record(te,6,function write_BrtCellSt(te,ne,ie){return null==ie&&(ie=new_buf(12+4*te.v.length)),write_XLSBCell(ne,ie),write_XLWideString(te.v,ie),ie.length>ie.l?ie.slice(0,ie.l):ie}(ne,me))),!0;case"n":return ne.v==(0|ne.v)&&ne.v>-1e3&&ne.v<1e3?de?write_record(te,13,function write_BrtShortRk(te,ne,ie){return null==ie&&(ie=new_buf(8)),write_XLSBShortCell(ne,ie),write_RkNumber(te.v,ie),ie}(ne,me)):write_record(te,2,function write_BrtCellRk(te,ne,ie){return null==ie&&(ie=new_buf(12)),write_XLSBCell(ne,ie),write_RkNumber(te.v,ie),ie}(ne,me)):de?write_record(te,16,function write_BrtShortReal(te,ne,ie){return null==ie&&(ie=new_buf(12)),write_XLSBShortCell(ne,ie),write_Xnum(te.v,ie),ie}(ne,me)):write_record(te,5,function write_BrtCellReal(te,ne,ie){return null==ie&&(ie=new_buf(16)),write_XLSBCell(ne,ie),write_Xnum(te.v,ie),ie}(ne,me)),!0;case"b":return me.t="b",de?write_record(te,15,function write_BrtShortBool(te,ne,ie){return null==ie&&(ie=new_buf(5)),write_XLSBShortCell(ne,ie),ie.write_shift(1,te.v?1:0),ie}(ne,me)):write_record(te,4,function write_BrtCellBool(te,ne,ie){return null==ie&&(ie=new_buf(9)),write_XLSBCell(ne,ie),ie.write_shift(1,te.v?1:0),ie}(ne,me)),!0;case"e":return me.t="e",de?write_record(te,14,function write_BrtShortError(te,ne,ie){return null==ie&&(ie=new_buf(8)),write_XLSBShortCell(ne,ie),ie.write_shift(1,te.v),ie.write_shift(2,0),ie.write_shift(1,0),ie}(ne,me)):write_record(te,3,function write_BrtCellError(te,ne,ie){return null==ie&&(ie=new_buf(9)),write_XLSBCell(ne,ie),ie.write_shift(1,te.v),ie}(ne,me)),!0}return de?write_record(te,12,function write_BrtShortBlank(te,ne,ie){return null==ie&&(ie=new_buf(4)),write_XLSBShortCell(ne,ie)}(0,me)):write_record(te,1,function write_BrtCellBlank(te,ne,ie){return null==ie&&(ie=new_buf(8)),write_XLSBCell(ne,ie)}(0,me)),!0}function write_MERGECELLS(te,ne){ne&&ne["!merges"]&&(write_record(te,177,function write_BrtBeginMergeCells(te,ne){return null==ne&&(ne=new_buf(4)),ne.write_shift(4,te),ne}(ne["!merges"].length)),ne["!merges"].forEach((function(ne){write_record(te,176,Sc(ne))})),write_record(te,178))}function write_COLINFOS(te,ne){ne&&ne["!cols"]&&(write_record(te,390),ne["!cols"].forEach((function(ne,ie){ne&&write_record(te,60,function write_BrtColInfo(te,ne,ie){null==ie&&(ie=new_buf(18));var re=col_obj_w(te,ne);ie.write_shift(-4,te),ie.write_shift(-4,te),ie.write_shift(4,256*(re.width||10)),ie.write_shift(4,0);var le=0;return ne.hidden&&(le|=1),"number"==typeof re.width&&(le|=2),ne.level&&(le|=ne.level<<8),ie.write_shift(2,le),ie}(ie,ne))})),write_record(te,391))}function write_IGNOREECS(te,ne){ne&&ne["!ref"]&&(write_record(te,648),write_record(te,649,function write_BrtCellIgnoreEC(te){var ne=new_buf(24);return ne.write_shift(4,4),ne.write_shift(4,1),ra(te,ne),ne}(safe_decode_range(ne["!ref"]))),write_record(te,650))}function write_HLINKS(te,ne,ie){ne["!links"].forEach((function(ne){if(ne[1].Target){var re=add_rels(ie,-1,ne[1].Target.replace(/#.*$/,""),Ta.HLINK);write_record(te,494,function write_BrtHLink(te,ne){var ie=new_buf(50+4*(te[1].Target.length+(te[1].Tooltip||"").length));ra({s:decode_cell(te[0]),e:decode_cell(te[0])},ie),ia("rId"+ne,ie);var re=te[1].Target.indexOf("#");return write_XLWideString((-1==re?"":te[1].Target.slice(re+1))||"",ie),write_XLWideString(te[1].Tooltip||"",ie),write_XLWideString("",ie),ie.slice(0,ie.l)}(ne,re))}})),delete ne["!links"]}function write_WSVIEWS2(te,ne,ie){write_record(te,133),write_record(te,137,function write_BrtBeginWsView(te,ne,ie){null==ie&&(ie=new_buf(30));var re=924;return(((ne||{}).Views||[])[0]||{}).RTL&&(re|=32),ie.write_shift(2,re),ie.write_shift(4,0),ie.write_shift(4,0),ie.write_shift(4,0),ie.write_shift(1,0),ie.write_shift(1,0),ie.write_shift(2,0),ie.write_shift(2,100),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(4,0),ie}(0,ie)),write_record(te,138),write_record(te,134)}function write_SHEETPROTECT(te,ne){ne["!protect"]&&write_record(te,535,function write_BrtSheetProtection(te,ne){return null==ne&&(ne=new_buf(66)),ne.write_shift(2,te.password?crypto_CreatePasswordVerifier_Method1(te.password):0),ne.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(ie){ie[1]?ne.write_shift(4,null==te[ie[0]]||te[ie[0]]?0:1):ne.write_shift(4,null!=te[ie[0]]&&te[ie[0]]?0:1)})),ne}(ne["!protect"]))}function write_ws_bin(te,ne,ie,re){var le=buf_array(),ce=ie.SheetNames[te],de=ie.Sheets[ce]||{},ue=ce;try{ie&&ie.Workbook&&(ue=ie.Workbook.Sheets[te].CodeName||ue)}catch(te){}var me=safe_decode_range(de["!ref"]||"A1");if(me.e.c>16383||me.e.r>1048575){if(ne.WTF)throw new Error("Range "+(de["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");me.e.c=Math.min(me.e.c,16383),me.e.r=Math.min(me.e.c,1048575)}return de["!links"]=[],de["!comments"]=[],write_record(le,129),(ie.vbaraw||de["!outline"])&&write_record(le,147,function write_BrtWsProp(te,ne,ie){null==ie&&(ie=new_buf(84+4*te.length));var re=192;ne&&(ne.above&&(re&=-65),ne.left&&(re&=-129)),ie.write_shift(1,re);for(var le=1;le<3;++le)ie.write_shift(1,0);return write_BrtColor({auto:1},ie),ie.write_shift(-4,-1),ie.write_shift(-4,-1),Zr(te,ie),ie.slice(0,ie.l)}(ue,de["!outline"])),write_record(le,148,wc(me)),write_WSVIEWS2(le,0,ie.Workbook),write_COLINFOS(le,de),function write_CELLTABLE(te,ne,ie,re){var le,ce=safe_decode_range(ne["!ref"]||"A1"),de="",ue=[];write_record(te,145);var me=Array.isArray(ne),ge=ce.e.r;ne["!rows"]&&(ge=Math.max(ce.e.r,ne["!rows"].length-1));for(var fe=ce.s.r;fe<=ge;++fe){de=encode_row(fe),write_row_header(te,ne,ce,fe);var _e=!1;if(fe<=ce.e.r)for(var be=ce.s.c;be<=ce.e.c;++be){fe===ce.s.r&&(ue[be]=encode_col(be)),le=ue[be]+de;var Ce=me?(ne[fe]||[])[be]:ne[le];_e=!!Ce&&write_ws_bin_cell(te,Ce,fe,be,re,ne,_e)}}write_record(te,146)}(le,de,0,ne),write_SHEETPROTECT(le,de),function write_AUTOFILTER(te,ne,ie,re){if(ne["!autofilter"]){var le=ne["!autofilter"],ce="string"==typeof le.ref?le.ref:encode_range(le.ref);ie.Workbook||(ie.Workbook={Sheets:[]}),ie.Workbook.Names||(ie.Workbook.Names=[]);var de=ie.Workbook.Names,ue=decode_range(ce);ue.s.r==ue.e.r&&(ue.e.r=decode_range(ne["!ref"]).e.r,ce=encode_range(ue));for(var me=0;me<de.length;++me){var ge=de[me];if("_xlnm._FilterDatabase"==ge.Name&&ge.Sheet==re){ge.Ref="'"+ie.SheetNames[re]+"'!"+ce;break}}me==de.length&&de.push({Name:"_xlnm._FilterDatabase",Sheet:re,Ref:"'"+ie.SheetNames[re]+"'!"+ce}),write_record(te,161,ra(safe_decode_range(ce))),write_record(te,162)}}(le,de,ie,te),write_MERGECELLS(le,de),write_HLINKS(le,de,re),de["!margins"]&&write_record(le,476,function write_BrtMargins(te,ne){return null==ne&&(ne=new_buf(48)),default_margins(te),Tc.forEach((function(ie){write_Xnum(te[ie],ne)})),ne}(de["!margins"])),ne&&!ne.ignoreEC&&null!=ne.ignoreEC||write_IGNOREECS(le,de),function write_LEGACYDRAWING(te,ne,ie,re){if(ne["!comments"].length>0){var le=add_rels(re,-1,"../drawings/vmlDrawing"+(ie+1)+".vml",Ta.VML);write_record(te,551,ia("rId"+le)),ne["!legacy"]=le}}(le,de,te,re),write_record(le,130),le.end()}var Dc=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];var Mc="][*?/\\".split("");function check_ws_name(te,ne){if(te.length>31){if(ne)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var ie=!0;return Mc.forEach((function(re){if(-1!=te.indexOf(re)){if(!ne)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");ie=!1}})),ie}function check_wb(te){if(!te||!te.SheetNames||!te.Sheets)throw new Error("Invalid Workbook");if(!te.SheetNames.length)throw new Error("Workbook is empty");var ne=te.Workbook&&te.Workbook.Sheets||[];!function check_wb_names(te,ne,ie){te.forEach((function(re,le){check_ws_name(re);for(var ce=0;ce<le;++ce)if(re==te[ce])throw new Error("Duplicate Sheet Name: "+re);if(ie){var de=ne&&ne[le]&&ne[le].CodeName||re;if(95==de.charCodeAt(0)&&de.length>22)throw new Error("Bad Code Name: Worksheet"+de)}}))}(te.SheetNames,ne,!!te.vbaraw);for(var ie=0;ie<te.SheetNames.length;++ie)check_ws(te.Sheets[te.SheetNames[ie]],te.SheetNames[ie],ie)}function write_wb_xml(te){var ne=[Po];ne[ne.length]=writextag("workbook",null,{xmlns:Ar[0],"xmlns:r":wr.r});var ie=te.Workbook&&(te.Workbook.Names||[]).length>0,re={codeName:"ThisWorkbook"};te.Workbook&&te.Workbook.WBProps&&(Dc.forEach((function(ne){null!=te.Workbook.WBProps[ne[0]]&&te.Workbook.WBProps[ne[0]]!=ne[1]&&(re[ne[0]]=te.Workbook.WBProps[ne[0]])})),te.Workbook.WBProps.CodeName&&(re.codeName=te.Workbook.WBProps.CodeName,delete re.CodeName)),ne[ne.length]=writextag("workbookPr",null,re);var le=te.Workbook&&te.Workbook.Sheets||[],ce=0;if(le&&le[0]&&le[0].Hidden){for(ne[ne.length]="<bookViews>",ce=0;ce!=te.SheetNames.length&&le[ce]&&le[ce].Hidden;++ce);ce==te.SheetNames.length&&(ce=0),ne[ne.length]='<workbookView firstSheet="'+ce+'" activeTab="'+ce+'"/>',ne[ne.length]="</bookViews>"}for(ne[ne.length]="<sheets>",ce=0;ce!=te.SheetNames.length;++ce){var de={name:escapexml(te.SheetNames[ce].slice(0,31))};if(de.sheetId=""+(ce+1),de["r:id"]="rId"+(ce+1),le[ce])switch(le[ce].Hidden){case 1:de.state="hidden";break;case 2:de.state="veryHidden"}ne[ne.length]=writextag("sheet",null,de)}return ne[ne.length]="</sheets>",ie&&(ne[ne.length]="<definedNames>",te.Workbook&&te.Workbook.Names&&te.Workbook.Names.forEach((function(te){var ie={name:te.Name};te.Comment&&(ie.comment=te.Comment),null!=te.Sheet&&(ie.localSheetId=""+te.Sheet),te.Hidden&&(ie.hidden="1"),te.Ref&&(ne[ne.length]=writextag("definedName",escapexml(te.Ref),ie))})),ne[ne.length]="</definedNames>"),ne.length>2&&(ne[ne.length]="</workbook>",ne[1]=ne[1].replace("/>",">")),ne.join("")}function write_BOOKVIEWS(te,ne){if(ne.Workbook&&ne.Workbook.Sheets){for(var ie=ne.Workbook.Sheets,re=0,le=-1,ce=-1;re<ie.length;++re)!ie[re]||!ie[re].Hidden&&-1==le?le=re:1==ie[re].Hidden&&-1==ce&&(ce=re);ce>le||(write_record(te,135),write_record(te,158,function write_BrtBookView(te,ne){return ne||(ne=new_buf(29)),ne.write_shift(-4,0),ne.write_shift(-4,460),ne.write_shift(4,28800),ne.write_shift(4,17600),ne.write_shift(4,500),ne.write_shift(4,te),ne.write_shift(4,te),ne.write_shift(1,120),ne.length>ne.l?ne.slice(0,ne.l):ne}(le)),write_record(te,136))}}function write_wb_bin(te,ne){var ie=buf_array();return write_record(ie,131),write_record(ie,128,function write_BrtFileVersion(te,ne){ne||(ne=new_buf(127));for(var ie=0;4!=ie;++ie)ne.write_shift(4,0);return write_XLWideString("SheetJS",ne),write_XLWideString(Fn.version,ne),write_XLWideString(Fn.version,ne),write_XLWideString("7262",ne),ne.length>ne.l?ne.slice(0,ne.l):ne}()),write_record(ie,153,function write_BrtWbProp(te,ne){ne||(ne=new_buf(72));var ie=0;return te&&te.filterPrivacy&&(ie|=8),ne.write_shift(4,ie),ne.write_shift(4,0),Zr(te&&te.CodeName||"ThisWorkbook",ne),ne.slice(0,ne.l)}(te.Workbook&&te.Workbook.WBProps||null)),write_BOOKVIEWS(ie,te),function write_BUNDLESHS(te,ne){write_record(te,143);for(var ie=0;ie!=ne.SheetNames.length;++ie){write_record(te,156,(re={Hidden:ne.Workbook&&ne.Workbook.Sheets&&ne.Workbook.Sheets[ie]&&ne.Workbook.Sheets[ie].Hidden||0,iTabID:ie+1,strRelID:"rId"+(ie+1),name:ne.SheetNames[ie]},(le=void 0)||(le=new_buf(127)),le.write_shift(4,re.Hidden),le.write_shift(4,re.iTabID),ia(re.strRelID,le),write_XLWideString(re.name.slice(0,31),le),le.length>le.l?le.slice(0,le.l):le))}var re,le;write_record(te,144)}(ie,te),write_record(ie,132),ie.end()}function write_ws(te,ne,ie,re,le){return(".bin"===ne.slice(-4)?write_ws_bin:write_ws_xml)(te,ie,re,le)}function write_cmnt(te,ne,ie){return(".bin"===ne.slice(-4)?write_comments_bin:write_comments_xml)(te,ie)}function write_props_xlml(te,ne){var ie=[];return te.Props&&ie.push(function xlml_write_docprops(te,ne){var ie=[];return keys(Na).map((function(te){for(var ne=0;ne<Da.length;++ne)if(Da[ne][1]==te)return Da[ne];for(ne=0;ne<xa.length;++ne)if(xa[ne][1]==te)return xa[ne];throw te})).forEach((function(re){if(null!=te[re[1]]){var le=ne&&ne.Props&&null!=ne.Props[re[1]]?ne.Props[re[1]]:te[re[1]];"date"===re[2]&&(le=new Date(le).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof le?le=String(le):!0===le||!1===le?le=le?"1":"0":le instanceof Date&&(le=new Date(le).toISOString().replace(/\.\d*Z/,"")),ie.push(writetag(Na[re[1]]||re[1],le))}})),writextag("DocumentProperties",ie.join(""),{xmlns:kr.o})}(te.Props,ne)),te.Custprops&&ie.push(function xlml_write_custprops(te,ne){var ie=["Worksheets","SheetNames"],re="CustomDocumentProperties",le=[];return te&&keys(te).forEach((function(ne){if(Object.prototype.hasOwnProperty.call(te,ne)){for(var re=0;re<Da.length;++re)if(ne==Da[re][1])return;for(re=0;re<xa.length;++re)if(ne==xa[re][1])return;for(re=0;re<ie.length;++re)if(ne==ie[re])return;var ce=te[ne],de="string";"number"==typeof ce?(de="float",ce=String(ce)):!0===ce||!1===ce?(de="boolean",ce=ce?"1":"0"):ce=String(ce),le.push(writextag(escapexmltag(ne),ce,{"dt:dt":de}))}})),ne&&keys(ne).forEach((function(ie){if(Object.prototype.hasOwnProperty.call(ne,ie)&&(!te||!Object.prototype.hasOwnProperty.call(te,ie))){var re=ne[ie],ce="string";"number"==typeof re?(ce="float",re=String(re)):!0===re||!1===re?(ce="boolean",re=re?"1":"0"):re instanceof Date?(ce="dateTime.tz",re=re.toISOString()):re=String(re),le.push(writextag(escapexmltag(ie),re,{"dt:dt":ce}))}})),"<"+re+' xmlns="'+kr.o+'">'+le.join("")+"</"+re+">"}(te.Props,te.Custprops)),ie.join("")}function write_name_xlml(te){return writextag("NamedRange",null,{"ss:Name":te.Name,"ss:RefersTo":"="+zs(te.Ref,{r:0,c:0})})}function write_ws_xlml_cell(te,ne,ie,re,le,ce,de){if(!te||null==te.v&&null==te.f)return"";var ue={};if(te.f&&(ue["ss:Formula"]="="+escapexml(zs(te.f,de))),te.F&&te.F.slice(0,ne.length)==ne){var me=decode_cell(te.F.slice(ne.length+1));ue["ss:ArrayRange"]="RC:R"+(me.r==de.r?"":"["+(me.r-de.r)+"]")+"C"+(me.c==de.c?"":"["+(me.c-de.c)+"]")}if(te.l&&te.l.Target&&(ue["ss:HRef"]=escapexml(te.l.Target),te.l.Tooltip&&(ue["x:HRefScreenTip"]=escapexml(te.l.Tooltip))),ie["!merges"])for(var ge=ie["!merges"],fe=0;fe!=ge.length;++fe)ge[fe].s.c==de.c&&ge[fe].s.r==de.r&&(ge[fe].e.c>ge[fe].s.c&&(ue["ss:MergeAcross"]=ge[fe].e.c-ge[fe].s.c),ge[fe].e.r>ge[fe].s.r&&(ue["ss:MergeDown"]=ge[fe].e.r-ge[fe].s.r));var _e="",be="";switch(te.t){case"z":if(!re.sheetStubs)return"";break;case"n":_e="Number",be=String(te.v);break;case"b":_e="Boolean",be=te.v?"1":"0";break;case"e":_e="Error",be=ha[te.v];break;case"d":_e="DateTime",be=new Date(te.v).toISOString(),null==te.z&&(te.z=te.z||ki[14]);break;case"s":_e="String",be=function escapexlml(te){return(te+"").replace(Zo,(function(te){return zo[te]})).replace(hr,(function(te){return"&#x"+te.charCodeAt(0).toString(16).toUpperCase()+";"}))}(te.v||"")}var Ce=get_cell_style(re.cellXfs,te,re);ue["ss:StyleID"]="s"+(21+Ce),ue["ss:Index"]=de.c+1;var ye=null!=te.v?be:"",we="z"==te.t?"":'<Data ss:Type="'+_e+'">'+ye+"</Data>";return(te.c||[]).length>0&&(we+=function write_ws_xlml_comment(te){return te.map((function(te){var ne=writextag("ss:Data",function xlml_unfixstr(te){return te.replace(/(\r\n|[\r\n])/g,"&#10;")}(te.t||""),{xmlns:"http://www.w3.org/TR/REC-html40"});return writextag("Comment",ne,{"ss:Author":te.a})})).join("")}(te.c)),writextag("Cell",we,ue)}function write_ws_xlml_row(te,ne){var ie='<Row ss:Index="'+(te+1)+'"';return ne&&(ne.hpt&&!ne.hpx&&(ne.hpx=pt2px(ne.hpt)),ne.hpx&&(ie+=' ss:AutoFitHeight="0" ss:Height="'+ne.hpx+'"'),ne.hidden&&(ie+=' ss:Hidden="1"')),ie+">"}function write_ws_xlml(te,ne,ie){var re=[],le=ie.SheetNames[te],ce=ie.Sheets[le],de=ce?function write_ws_xlml_names(te,ne,ie,re){if(!te)return"";if(!((re||{}).Workbook||{}).Names)return"";for(var le=re.Workbook.Names,ce=[],de=0;de<le.length;++de){var ue=le[de];ue.Sheet==ie&&(ue.Name.match(/^_xlfn\./)||ce.push(write_name_xlml(ue)))}return ce.join("")}(ce,0,te,ie):"";return de.length>0&&re.push("<Names>"+de+"</Names>"),de=ce?function write_ws_xlml_table(te,ne,ie,re){if(!te["!ref"])return"";var le=safe_decode_range(te["!ref"]),ce=te["!merges"]||[],de=0,ue=[];te["!cols"]&&te["!cols"].forEach((function(te,ne){process_col(te);var ie=!!te.width,re=col_obj_w(ne,te),le={"ss:Index":ne+1};ie&&(le["ss:Width"]=width2px(re.width)),te.hidden&&(le["ss:Hidden"]="1"),ue.push(writextag("Column",null,le))}));for(var me=Array.isArray(te),ge=le.s.r;ge<=le.e.r;++ge){for(var fe=[write_ws_xlml_row(ge,(te["!rows"]||[])[ge])],_e=le.s.c;_e<=le.e.c;++_e){var be=!1;for(de=0;de!=ce.length;++de)if(!(ce[de].s.c>_e||ce[de].s.r>ge||ce[de].e.c<_e||ce[de].e.r<ge)){ce[de].s.c==_e&&ce[de].s.r==ge||(be=!0);break}if(!be){var Ce={r:ge,c:_e},ye=encode_cell(Ce),we=me?(te[ge]||[])[_e]:te[ye];fe.push(write_ws_xlml_cell(we,ye,te,ne,0,0,Ce))}}fe.push("</Row>"),fe.length>2&&ue.push(fe.join(""))}return ue.join("")}(ce,ne):"",de.length>0&&re.push("<Table>"+de+"</Table>"),re.push(function write_ws_xlml_wsopts(te,ne,ie,re){if(!te)return"";var le=[];if(te["!margins"]&&(le.push("<PageSetup>"),te["!margins"].header&&le.push(writextag("Header",null,{"x:Margin":te["!margins"].header})),te["!margins"].footer&&le.push(writextag("Footer",null,{"x:Margin":te["!margins"].footer})),le.push(writextag("PageMargins",null,{"x:Bottom":te["!margins"].bottom||"0.75","x:Left":te["!margins"].left||"0.7","x:Right":te["!margins"].right||"0.7","x:Top":te["!margins"].top||"0.75"})),le.push("</PageSetup>")),re&&re.Workbook&&re.Workbook.Sheets&&re.Workbook.Sheets[ie])if(re.Workbook.Sheets[ie].Hidden)le.push(writextag("Visible",1==re.Workbook.Sheets[ie].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var ce=0;ce<ie&&(!re.Workbook.Sheets[ce]||re.Workbook.Sheets[ce].Hidden);++ce);ce==ie&&le.push("<Selected/>")}return((((re||{}).Workbook||{}).Views||[])[0]||{}).RTL&&le.push("<DisplayRightToLeft/>"),te["!protect"]&&(le.push(writetag("ProtectContents","True")),te["!protect"].objects&&le.push(writetag("ProtectObjects","True")),te["!protect"].scenarios&&le.push(writetag("ProtectScenarios","True")),null==te["!protect"].selectLockedCells||te["!protect"].selectLockedCells?null==te["!protect"].selectUnlockedCells||te["!protect"].selectUnlockedCells||le.push(writetag("EnableSelection","UnlockedCells")):le.push(writetag("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(ne){te["!protect"][ne[0]]&&le.push("<"+ne[1]+"/>")}))),0==le.length?"":writextag("WorksheetOptions",le.join(""),{xmlns:kr.x})}(ce,0,te,ie)),re.join("")}function write_xlml(te,ne){ne||(ne={}),te.SSF||(te.SSF=dup(ki)),te.SSF&&(make_ssf(),SSF_load_table(te.SSF),ne.revssf=evert_num(te.SSF),ne.revssf[te.SSF[65535]]=0,ne.ssf=te.SSF,ne.cellXfs=[],get_cell_style(ne.cellXfs,{},{revssf:{General:0}}));var ie=[];ie.push(write_props_xlml(te,ne)),ie.push(""),ie.push(""),ie.push("");for(var re=0;re<te.SheetNames.length;++re)ie.push(writextag("Worksheet",write_ws_xlml(re,ne,te),{"ss:Name":escapexml(te.SheetNames[re])}));return ie[2]=function write_sty_xlml(te,ne){var ie=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return ne.cellXfs.forEach((function(te,ne){var re=[];re.push(writextag("NumberFormat",null,{"ss:Format":escapexml(ki[te.numFmtId])}));var le={"ss:ID":"s"+(21+ne)};ie.push(writextag("Style",re.join(""),le))})),writextag("Styles",ie.join(""))}(0,ne),ie[3]=function write_names_xlml(te){if(!((te||{}).Workbook||{}).Names)return"";for(var ne=te.Workbook.Names,ie=[],re=0;re<ne.length;++re){var le=ne[re];null==le.Sheet&&(le.Name.match(/^_xlfn\./)||ie.push(write_name_xlml(le)))}return writextag("Names",ie.join(""))}(te),Po+writextag("Workbook",ie.join(""),{xmlns:kr.ss,"xmlns:o":kr.o,"xmlns:x":kr.x,"xmlns:ss":kr.ss,"xmlns:dt":kr.dt,"xmlns:html":kr.html})}var Nc={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function write_xlscfb(te,ne){var ie=ne||{},re=mo.utils.cfb_new({root:"R"}),le="/Workbook";switch(ie.bookType||"xls"){case"xls":ie.bookType="biff8";case"xla":ie.bookType||(ie.bookType="xla");case"biff8":le="/Workbook",ie.biff=8;break;case"biff5":le="/Book",ie.biff=5;break;default:throw new Error("invalid type "+ie.bookType+" for XLS CFB")}return mo.utils.cfb_add(re,le,write_biff_buf(te,ie)),8==ie.biff&&(te.Props||te.Custprops)&&function write_xls_props(te,ne){var ie,re=[],le=[],ce=[],de=0,ue=evert_key(da,"n"),me=evert_key(ua,"n");if(te.Props)for(ie=keys(te.Props),de=0;de<ie.length;++de)(Object.prototype.hasOwnProperty.call(ue,ie[de])?re:Object.prototype.hasOwnProperty.call(me,ie[de])?le:ce).push([ie[de],te.Props[ie[de]]]);if(te.Custprops)for(ie=keys(te.Custprops),de=0;de<ie.length;++de)Object.prototype.hasOwnProperty.call(te.Props||{},ie[de])||(Object.prototype.hasOwnProperty.call(ue,ie[de])?re:Object.prototype.hasOwnProperty.call(me,ie[de])?le:ce).push([ie[de],te.Custprops[ie[de]]]);var ge=[];for(de=0;de<ce.length;++de)Ra.indexOf(ce[de][0])>-1||Ma.indexOf(ce[de][0])>-1||null!=ce[de][1]&&ge.push(ce[de]);le.length&&mo.utils.cfb_add(ne,"/SummaryInformation",write_PropertySetStream(le,Nc.SI,me,ua)),(re.length||ge.length)&&mo.utils.cfb_add(ne,"/DocumentSummaryInformation",write_PropertySetStream(re,Nc.DSI,ue,da,ge.length?ge:null,Nc.UDI))}(te,re),8==ie.biff&&te.vbaraw&&function fill_vba_xls(te,ne){ne.FullPaths.forEach((function(ie,re){if(0!=re){var le=ie.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==le.slice(-1)&&mo.utils.cfb_add(te,le,ne.FileIndex[re].content)}}))}(re,mo.read(te.vbaraw,{type:"string"==typeof te.vbaraw?"binary":"buffer"})),re}var Oc={0:{f:function parse_BrtRowHdr(te,ne){var ie={},re=te.l+ne;ie.r=te.read_shift(4),te.l+=4;var le=te.read_shift(2);te.l+=1;var ce=te.read_shift(1);return te.l=re,7&ce&&(ie.level=7&ce),16&ce&&(ie.hidden=!0),32&ce&&(ie.hpt=le/20),ie}},1:{f:function parse_BrtCellBlank(te){return[parse_XLSBCell(te)]}},2:{f:function parse_BrtCellRk(te){return[parse_XLSBCell(te),parse_RkNumber(te),"n"]}},3:{f:function parse_BrtCellError(te){return[parse_XLSBCell(te),te.read_shift(1),"e"]}},4:{f:function parse_BrtCellBool(te){return[parse_XLSBCell(te),te.read_shift(1),"b"]}},5:{f:function parse_BrtCellReal(te){return[parse_XLSBCell(te),parse_Xnum(te),"n"]}},6:{f:function parse_BrtCellSt(te){return[parse_XLSBCell(te),parse_XLWideString(te),"str"]}},7:{f:function parse_BrtCellIsst(te){return[parse_XLSBCell(te),te.read_shift(4),"s"]}},8:{f:function parse_BrtFmlaString(te,ne,ie){var re=te.l+ne,le=parse_XLSBCell(te);le.r=ie["!row"];var ce=[le,parse_XLWideString(te),"str"];if(ie.cellFormula){te.l+=2;var de=$l(te,re-te.l,ie);ce[3]=stringify_formula(de,0,le,ie.supbooks,ie)}else te.l=re;return ce}},9:{f:function parse_BrtFmlaNum(te,ne,ie){var re=te.l+ne,le=parse_XLSBCell(te);le.r=ie["!row"];var ce=[le,parse_Xnum(te),"n"];if(ie.cellFormula){te.l+=2;var de=$l(te,re-te.l,ie);ce[3]=stringify_formula(de,0,le,ie.supbooks,ie)}else te.l=re;return ce}},10:{f:function parse_BrtFmlaBool(te,ne,ie){var re=te.l+ne,le=parse_XLSBCell(te);le.r=ie["!row"];var ce=[le,te.read_shift(1),"b"];if(ie.cellFormula){te.l+=2;var de=$l(te,re-te.l,ie);ce[3]=stringify_formula(de,0,le,ie.supbooks,ie)}else te.l=re;return ce}},11:{f:function parse_BrtFmlaError(te,ne,ie){var re=te.l+ne,le=parse_XLSBCell(te);le.r=ie["!row"];var ce=[le,te.read_shift(1),"e"];if(ie.cellFormula){te.l+=2;var de=$l(te,re-te.l,ie);ce[3]=stringify_formula(de,0,le,ie.supbooks,ie)}else te.l=re;return ce}},12:{f:function parse_BrtShortBlank(te){return[parse_XLSBShortCell(te)]}},13:{f:function parse_BrtShortRk(te){return[parse_XLSBShortCell(te),parse_RkNumber(te),"n"]}},14:{f:function parse_BrtShortError(te){return[parse_XLSBShortCell(te),te.read_shift(1),"e"]}},15:{f:function parse_BrtShortBool(te){return[parse_XLSBShortCell(te),te.read_shift(1),"b"]}},16:{f:parse_BrtShortReal},17:{f:function parse_BrtShortSt(te){return[parse_XLSBShortCell(te),parse_XLWideString(te),"str"]}},18:{f:function parse_BrtShortIsst(te){return[parse_XLSBShortCell(te),te.read_shift(4),"s"]}},19:{f:parse_RichStr},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function parse_BrtName(te,ne,ie){var re=te.l+ne;te.l+=4,te.l+=1;var le=te.read_shift(4),ce=ea(te),de=Kl(te,0,ie),ue=parse_XLNullableWideString(te);te.l=re;var me={Name:ce,Ptg:de};return le<268435455&&(me.Sheet=le),ue&&(me.Comment=ue),me}},40:{},42:{},43:{f:function parse_BrtFont(te,ne,ie){var re={};re.sz=te.read_shift(2)/20;var le=function parse_FontFlags(te){var ne=te.read_shift(1);return te.l++,{fBold:1&ne,fItalic:2&ne,fUnderline:4&ne,fStrikeout:8&ne,fOutline:16&ne,fShadow:32&ne,fCondense:64&ne,fExtend:128&ne}}(te);switch(le.fItalic&&(re.italic=1),le.fCondense&&(re.condense=1),le.fExtend&&(re.extend=1),le.fShadow&&(re.shadow=1),le.fOutline&&(re.outline=1),le.fStrikeout&&(re.strike=1),700===te.read_shift(2)&&(re.bold=1),te.read_shift(2)){case 1:re.vertAlign="superscript";break;case 2:re.vertAlign="subscript"}var ce=te.read_shift(1);0!=ce&&(re.underline=ce);var de=te.read_shift(1);de>0&&(re.family=de);var ue=te.read_shift(1);switch(ue>0&&(re.charset=ue),te.l++,re.color=function parse_BrtColor(te){var ne={},ie=te.read_shift(1)>>>1,re=te.read_shift(1),le=te.read_shift(2,"i"),ce=te.read_shift(1),de=te.read_shift(1),ue=te.read_shift(1);switch(te.l++,ie){case 0:ne.auto=1;break;case 1:ne.index=re;var me=pa[re];me&&(ne.rgb=rgb2Hex(me));break;case 2:ne.rgb=rgb2Hex([ce,de,ue]);break;case 3:ne.theme=re}return 0!=le&&(ne.tint=le>0?le/32767:le/32768),ne}(te),te.read_shift(1)){case 1:re.scheme="major";break;case 2:re.scheme="minor"}return re.name=parse_XLWideString(te),re}},44:{f:function parse_BrtFmt(te,ne){return[te.read_shift(2),parse_XLWideString(te)]}},45:{f:ps},46:{f:ms},47:{f:function parse_BrtXF(te,ne){var ie=te.l+ne,re=te.read_shift(2),le=te.read_shift(2);return te.l=ie,{ixfe:re,numFmtId:le}}},48:{},49:{f:function parse_Int32LE(te){return te.read_shift(4,"i")}},50:{},51:{f:function parse_BrtMdb(te){for(var ne=[],ie=te.read_shift(4);ie-- >0;)ne.push([te.read_shift(4),te.read_shift(4)]);return ne}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:parse_ColInfo},62:{f:function parse_BrtCellRString(te){return[parse_XLSBCell(te),parse_RichStr(te),"is"]}},63:{f:function parse_BrtCalcChainItem$(te){var ne={};ne.i=te.read_shift(4);var ie={};ie.r=te.read_shift(4),ie.c=te.read_shift(4),ne.r=encode_cell(ie);var re=te.read_shift(1);return 2&re&&(ne.l="1"),8&re&&(ne.a="1"),ne}},64:{f:function parse_BrtDVal(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:parsenoop,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function parse_BrtBeginWsView(te){var ne=te.read_shift(2);return te.l+=28,{RTL:32&ne}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function parse_BrtWsProp(te,ne){var ie={},re=te[te.l];return++te.l,ie.above=!(64&re),ie.left=!(128&re),te.l+=18,ie.name=Jr(te,ne-19),ie}},148:{f:Cc,p:16},151:{f:function parse_BrtPane(){}},152:{},153:{f:function parse_BrtWbProp(te,ne){var ie={},re=te.read_shift(4);ie.defaultThemeVersion=te.read_shift(4);var le=ne>8?parse_XLWideString(te):"";return le.length>0&&(ie.CodeName=le),ie.autoCompressPictures=!!(65536&re),ie.backupFile=!!(64&re),ie.checkCompatibility=!!(4096&re),ie.date1904=!!(1&re),ie.filterPrivacy=!!(8&re),ie.hidePivotFieldList=!!(1024&re),ie.promptedSolutions=!!(16&re),ie.publishItems=!!(2048&re),ie.refreshAllConnections=!!(262144&re),ie.saveExternalLinkValues=!!(128&re),ie.showBorderUnselectedTables=!!(4&re),ie.showInkAnnotation=!!(32&re),ie.showObjects=["all","placeholders","none"][re>>13&3],ie.showPivotChartFilter=!!(32768&re),ie.updateLinks=["userSet","never","always"][re>>8&3],ie}},154:{},155:{},156:{f:function parse_BrtBundleSh(te,ne){var ie={};return ie.Hidden=te.read_shift(4),ie.iTabID=te.read_shift(4),ie.strRelID=ta(te,ne-8),ie.name=parse_XLWideString(te),ie}},157:{},158:{},159:{T:1,f:function parse_BrtBeginSst(te){return[te.read_shift(4),te.read_shift(4)]}},160:{T:-1},161:{T:1,f:oa},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Ic},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function parse_BrtMdtinfo(te,ne){return{flags:te.read_shift(4),version:te.read_shift(4),name:parse_XLWideString(te)}}},336:{T:-1},337:{f:function parse_BrtBeginEsmdb(te){return te.l+=4,0!=te.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:ta},357:{},358:{},359:{},360:{T:1},361:{},362:{f:parse_ExternSheet},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function parse_BrtArrFmla(te,ne,ie){var re=te.l+ne,le=parse_RfX(te),ce=te.read_shift(1),de=[le];if(de[2]=ce,ie.cellFormula){var ue=Ul(te,re-te.l,ie);de[1]=ue}else te.l=re;return de}},427:{f:function parse_BrtShrFmla(te,ne,ie){var re=te.l+ne,le=[oa(te,16)];if(ie.cellFormula){var ce=nc(te,re-te.l,ie);le[1]=ce,te.l=re}else te.l=re;return le}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function parse_BrtMargins(te){var ne={};return Tc.forEach((function(ie){ne[ie]=parse_Xnum(te)})),ne}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function parse_BrtWsFmtInfo(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function parse_BrtHLink(te,ne){var ie=te.l+ne,re=oa(te,16),le=parse_XLNullableWideString(te),ce=parse_XLWideString(te),de=parse_XLWideString(te),ue=parse_XLWideString(te);te.l=ie;var me={rfx:re,relId:le,loc:ce,display:ue};return de&&(me.Tooltip=de),me}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:ta},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:bs},633:{T:1},634:{T:-1},635:{T:1,f:function parse_BrtBeginComment(te){var ne={};ne.iauthor=te.read_shift(4);var ie=oa(te,16);return ne.rfx=ie.s,ne.ref=encode_cell(ie.s),te.l+=16,ne}},636:{T:-1},637:{f:Qr},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function parse_BrtCsProp(te,ne){return te.l+=10,{name:parse_XLWideString(te)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function parse_BrtDVal14(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function write_biff_rec(te,ne,ie,re){var le=ne;if(!isNaN(le)){var ce=re||(ie||[]).length||0,de=te.next(4);de.write_shift(2,le),de.write_shift(2,ce),ce>0&&Kr(ie)&&te.push(ie)}}function write_BIFF2Cell(te,ne,ie){return te||(te=new_buf(7)),te.write_shift(2,ne),te.write_shift(2,ie),te.write_shift(2,0),te.write_shift(1,0),te}function write_ws_biff2_cell(te,ne,ie,re){if(null!=ne.v)switch(ne.t){case"d":case"n":var le="d"==ne.t?datenum(parseDate(ne.v)):ne.v;return void(le==(0|le)&&le>=0&&le<65536?write_biff_rec(te,2,function write_BIFF2INT(te,ne,ie){var re=new_buf(9);return write_BIFF2Cell(re,te,ne),re.write_shift(2,ie),re}(ie,re,le)):write_biff_rec(te,3,function write_BIFF2NUM(te,ne,ie){var re=new_buf(15);return write_BIFF2Cell(re,te,ne),re.write_shift(8,ie,"f"),re}(ie,re,le)));case"b":case"e":return void write_biff_rec(te,5,function write_BIFF2BERR(te,ne,ie,re){var le=new_buf(9);return write_BIFF2Cell(le,te,ne),write_Bes(ie,re||"b",le),le}(ie,re,ne.v,ne.t));case"s":case"str":return void write_biff_rec(te,4,function write_BIFF2LABEL(te,ne,ie){var re=new_buf(8+2*ie.length);return write_BIFF2Cell(re,te,ne),re.write_shift(1,ie.length),re.write_shift(ie.length,ie,"sbcs"),re.l<re.length?re.slice(0,re.l):re}(ie,re,(ne.v||"").slice(0,255)))}write_biff_rec(te,1,write_BIFF2Cell(null,ie,re))}function write_biff2_buf(te,ne){var ie=ne||{};null!=qn&&null==ie.dense&&(ie.dense=qn);for(var re=buf_array(),le=0,ce=0;ce<te.SheetNames.length;++ce)te.SheetNames[ce]==ie.sheet&&(le=ce);if(0==le&&ie.sheet&&te.SheetNames[0]!=ie.sheet)throw new Error("Sheet not found: "+ie.sheet);return write_biff_rec(re,4==ie.biff?1033:3==ie.biff?521:9,write_BOF(0,16,ie)),function write_ws_biff2(te,ne,ie,re){var le,ce=Array.isArray(ne),de=safe_decode_range(ne["!ref"]||"A1"),ue="",me=[];if(de.e.c>255||de.e.r>16383){if(re.WTF)throw new Error("Range "+(ne["!ref"]||"A1")+" exceeds format limit A1:IV16384");de.e.c=Math.min(de.e.c,255),de.e.r=Math.min(de.e.c,16383),le=encode_range(de)}for(var ge=de.s.r;ge<=de.e.r;++ge){ue=encode_row(ge);for(var fe=de.s.c;fe<=de.e.c;++fe){ge===de.s.r&&(me[fe]=encode_col(fe)),le=me[fe]+ue;var _e=ce?(ne[ge]||[])[fe]:ne[le];_e&&write_ws_biff2_cell(te,_e,ge,fe)}}}(re,te.Sheets[te.SheetNames[le]],0,ie),write_biff_rec(re,10),re.end()}function write_FONTS_biff8(te,ne,ie){write_biff_rec(te,49,function write_Font(te,ne){var ie=te.name||"Arial",re=ne&&5==ne.biff,le=new_buf(re?15+ie.length:16+2*ie.length);return le.write_shift(2,20*(te.sz||12)),le.write_shift(4,0),le.write_shift(2,400),le.write_shift(4,0),le.write_shift(2,0),le.write_shift(1,ie.length),re||le.write_shift(1,1),le.write_shift((re?1:2)*ie.length,ie,re?"sbcs":"utf16le"),le}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},ie))}function write_ws_cols_biff8(te,ne){if(ne){var ie=0;ne.forEach((function(ne,re){++ie<=256&&ne&&write_biff_rec(te,125,function write_ColInfo(te,ne){var ie=new_buf(12);ie.write_shift(2,ne),ie.write_shift(2,ne),ie.write_shift(2,256*te.width),ie.write_shift(2,0);var re=0;return te.hidden&&(re|=1),ie.write_shift(1,re),re=te.level||0,ie.write_shift(1,re),ie.write_shift(2,0),ie}(col_obj_w(re,ne),re))}))}}function write_ws_biff8_cell(te,ne,ie,re,le){var ce=16+get_cell_style(le.cellXfs,ne,le);if(null!=ne.v||ne.bf)if(ne.bf)write_biff_rec(te,6,write_Formula(ne,ie,re,0,ce));else switch(ne.t){case"d":case"n":write_biff_rec(te,515,function write_Number(te,ne,ie,re){var le=new_buf(14);return write_XLSCell(te,ne,re,le),write_Xnum(ie,le),le}(ie,re,"d"==ne.t?datenum(parseDate(ne.v)):ne.v,ce));break;case"b":case"e":write_biff_rec(te,517,function write_BoolErr(te,ne,ie,re,le,ce){var de=new_buf(8);return write_XLSCell(te,ne,re,de),write_Bes(ie,ce,de),de}(ie,re,ne.v,ce,0,ne.t));break;case"s":case"str":if(le.bookSST)write_biff_rec(te,253,function write_LabelSst(te,ne,ie,re){var le=new_buf(10);return write_XLSCell(te,ne,re,le),le.write_shift(4,ie),le}(ie,re,get_sst_id(le.Strings,ne.v,le.revStrings),ce));else write_biff_rec(te,516,function write_Label(te,ne,ie,re,le){var ce=!le||8==le.biff,de=new_buf(+ce+8+(1+ce)*ie.length);return write_XLSCell(te,ne,re,de),de.write_shift(2,ie.length),ce&&de.write_shift(1,1),de.write_shift((1+ce)*ie.length,ie,ce?"utf16le":"sbcs"),de}(ie,re,(ne.v||"").slice(0,255),ce,le));break;default:write_biff_rec(te,513,write_XLSCell(ie,re,ce))}else write_biff_rec(te,513,write_XLSCell(ie,re,ce))}function write_ws_biff8(te,ne,ie){var re,le=buf_array(),ce=ie.SheetNames[te],de=ie.Sheets[ce]||{},ue=(ie||{}).Workbook||{},me=(ue.Sheets||[])[te]||{},ge=Array.isArray(de),fe=8==ne.biff,_e="",be=[],Ce=safe_decode_range(de["!ref"]||"A1"),ye=fe?65536:16384;if(Ce.e.c>255||Ce.e.r>=ye){if(ne.WTF)throw new Error("Range "+(de["!ref"]||"A1")+" exceeds format limit A1:IV16384");Ce.e.c=Math.min(Ce.e.c,255),Ce.e.r=Math.min(Ce.e.c,ye-1)}write_biff_rec(le,2057,write_BOF(0,16,ne)),write_biff_rec(le,13,writeuint16(1)),write_biff_rec(le,12,writeuint16(100)),write_biff_rec(le,15,writebool(!0)),write_biff_rec(le,17,writebool(!1)),write_biff_rec(le,16,write_Xnum(.001)),write_biff_rec(le,95,writebool(!0)),write_biff_rec(le,42,writebool(!1)),write_biff_rec(le,43,writebool(!1)),write_biff_rec(le,130,writeuint16(1)),write_biff_rec(le,128,function write_Guts(te){var ne=new_buf(8);return ne.write_shift(4,0),ne.write_shift(2,te[0]?te[0]+1:0),ne.write_shift(2,te[1]?te[1]+1:0),ne}([0,0])),write_biff_rec(le,131,writebool(!1)),write_biff_rec(le,132,writebool(!1)),fe&&write_ws_cols_biff8(le,de["!cols"]),write_biff_rec(le,512,function write_Dimensions(te,ne){var ie=8!=ne.biff&&ne.biff?2:4,re=new_buf(2*ie+6);return re.write_shift(ie,te.s.r),re.write_shift(ie,te.e.r+1),re.write_shift(2,te.s.c),re.write_shift(2,te.e.c+1),re.write_shift(2,0),re}(Ce,ne)),fe&&(de["!links"]=[]);for(var we=Ce.s.r;we<=Ce.e.r;++we){_e=encode_row(we);for(var ke=Ce.s.c;ke<=Ce.e.c;++ke){we===Ce.s.r&&(be[ke]=encode_col(ke)),re=be[ke]+_e;var Se=ge?(de[we]||[])[ke]:de[re];Se&&(write_ws_biff8_cell(le,Se,we,ke,ne),fe&&Se.l&&de["!links"].push([re,Se.l]))}}var xe=me.CodeName||me.name||ce;return fe&&write_biff_rec(le,574,function write_Window2(te){var ne=new_buf(18),ie=1718;return te&&te.RTL&&(ie|=64),ne.write_shift(2,ie),ne.write_shift(4,0),ne.write_shift(4,64),ne.write_shift(4,0),ne.write_shift(4,0),ne}((ue.Views||[])[0])),fe&&(de["!merges"]||[]).length&&write_biff_rec(le,229,function write_MergeCells(te){var ne=new_buf(2+8*te.length);ne.write_shift(2,te.length);for(var ie=0;ie<te.length;++ie)write_Ref8U(te[ie],ne);return ne}(de["!merges"])),fe&&function write_ws_biff8_hlinks(te,ne){for(var ie=0;ie<ne["!links"].length;++ie){var re=ne["!links"][ie];write_biff_rec(te,440,write_HLink(re)),re[1].Tooltip&&write_biff_rec(te,2048,write_HLinkTooltip(re))}delete ne["!links"]}(le,de),write_biff_rec(le,442,write_XLUnicodeString(xe)),fe&&function write_FEAT(te,ne){var ie=new_buf(19);ie.write_shift(4,2151),ie.write_shift(4,0),ie.write_shift(4,0),ie.write_shift(2,3),ie.write_shift(1,1),ie.write_shift(4,0),write_biff_rec(te,2151,ie),(ie=new_buf(39)).write_shift(4,2152),ie.write_shift(4,0),ie.write_shift(4,0),ie.write_shift(2,3),ie.write_shift(1,0),ie.write_shift(4,0),ie.write_shift(2,1),ie.write_shift(4,4),ie.write_shift(2,0),write_Ref8U(safe_decode_range(ne["!ref"]||"A1"),ie),ie.write_shift(4,4),write_biff_rec(te,2152,ie)}(le,de),write_biff_rec(le,10),le.end()}function write_biff8_global(te,ne,ie){var re=buf_array(),le=(te||{}).Workbook||{},ce=le.Sheets||[],de=le.WBProps||{},ue=8==ie.biff,me=5==ie.biff;(write_biff_rec(re,2057,write_BOF(0,5,ie)),"xla"==ie.bookType&&write_biff_rec(re,135),write_biff_rec(re,225,ue?writeuint16(1200):null),write_biff_rec(re,193,function writezeroes(te,ne){ne||(ne=new_buf(te));for(var ie=0;ie<te;++ie)ne.write_shift(1,0);return ne}(2)),me&&write_biff_rec(re,191),me&&write_biff_rec(re,192),write_biff_rec(re,226),write_biff_rec(re,92,function write_WriteAccess(te,ne){var ie=!ne||8==ne.biff,re=new_buf(ie?112:54);for(re.write_shift(8==ne.biff?2:1,7),ie&&re.write_shift(1,0),re.write_shift(4,859007059),re.write_shift(4,5458548|(ie?0:536870912));re.l<re.length;)re.write_shift(1,ie?0:32);return re}(0,ie)),write_biff_rec(re,66,writeuint16(ue?1200:1252)),ue&&write_biff_rec(re,353,writeuint16(0)),ue&&write_biff_rec(re,448),write_biff_rec(re,317,function write_RRTabId(te){for(var ne=new_buf(2*te),ie=0;ie<te;++ie)ne.write_shift(2,ie+1);return ne}(te.SheetNames.length)),ue&&te.vbaraw&&write_biff_rec(re,211),ue&&te.vbaraw)&&write_biff_rec(re,442,write_XLUnicodeString(de.CodeName||"ThisWorkbook"));write_biff_rec(re,156,writeuint16(17)),write_biff_rec(re,25,writebool(!1)),write_biff_rec(re,18,writebool(!1)),write_biff_rec(re,19,writeuint16(0)),ue&&write_biff_rec(re,431,writebool(!1)),ue&&write_biff_rec(re,444,writeuint16(0)),write_biff_rec(re,61,function write_Window1(){var te=new_buf(18);return te.write_shift(2,0),te.write_shift(2,0),te.write_shift(2,29280),te.write_shift(2,17600),te.write_shift(2,56),te.write_shift(2,0),te.write_shift(2,0),te.write_shift(2,1),te.write_shift(2,500),te}()),write_biff_rec(re,64,writebool(!1)),write_biff_rec(re,141,writeuint16(0)),write_biff_rec(re,34,writebool("true"==function safe1904(te){return te.Workbook&&te.Workbook.WBProps&&parsexmlbool(te.Workbook.WBProps.date1904)?"true":"false"}(te))),write_biff_rec(re,14,writebool(!0)),ue&&write_biff_rec(re,439,writebool(!1)),write_biff_rec(re,218,writeuint16(0)),write_FONTS_biff8(re,0,ie),function write_FMTS_biff8(te,ne,ie){ne&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(re){for(var le=re[0];le<=re[1];++le)null!=ne[le]&&write_biff_rec(te,1054,write_Format(le,ne[le],ie))}))}(re,te.SSF,ie),function write_CELLXFS_biff8(te,ne){for(var ie=0;ie<16;++ie)write_biff_rec(te,224,write_XF({numFmtId:0,style:!0},0,ne));ne.cellXfs.forEach((function(ie){write_biff_rec(te,224,write_XF(ie,0,ne))}))}(re,ie),ue&&write_biff_rec(re,352,writebool(!1));var ge=re.end(),fe=buf_array();ue&&write_biff_rec(fe,140,function write_Country(te){return te||(te=new_buf(4)),te.write_shift(2,1),te.write_shift(2,1),te}()),ue&&ie.Strings&&function write_biff_continue(te,ne,ie,re){var le=re||(ie||[]).length||0;if(le<=8224)return write_biff_rec(te,ne,ie,le);var ce=ne;if(!isNaN(ce)){for(var de=ie.parts||[],ue=0,me=0,ge=0;ge+(de[ue]||8224)<=8224;)ge+=de[ue]||8224,ue++;var fe=te.next(4);for(fe.write_shift(2,ce),fe.write_shift(2,ge),te.push(ie.slice(me,me+ge)),me+=ge;me<le;){for((fe=te.next(4)).write_shift(2,60),ge=0;ge+(de[ue]||8224)<=8224;)ge+=de[ue]||8224,ue++;fe.write_shift(2,ge),te.push(ie.slice(me,me+ge)),me+=ge}}}(fe,252,function write_SST(te,ne){var ie=new_buf(8);ie.write_shift(4,te.Count),ie.write_shift(4,te.Unique);for(var re=[],le=0;le<te.length;++le)re[le]=write_XLUnicodeRichExtendedString(te[le]);var ce=Jn([ie].concat(re));return ce.parts=[ie.length].concat(re.map((function(te){return te.length}))),ce}(ie.Strings)),write_biff_rec(fe,10);var _e=fe.end(),be=buf_array(),Ce=0,ye=0;for(ye=0;ye<te.SheetNames.length;++ye)Ce+=(ue?12:11)+(ue?2:1)*te.SheetNames[ye].length;var we=ge.length+Ce+_e.length;for(ye=0;ye<te.SheetNames.length;++ye){write_biff_rec(be,133,write_BoundSheet8({pos:we,hs:(ce[ye]||{}).Hidden||0,dt:0,name:te.SheetNames[ye]},ie)),we+=ne[ye].length}var ke=be.end();if(Ce!=ke.length)throw new Error("BS8 "+Ce+" != "+ke.length);var Se=[];return ge.length&&Se.push(ge),ke.length&&Se.push(ke),_e.length&&Se.push(_e),Jn(Se)}function write_biff_buf(te,ne){for(var ie=0;ie<=te.SheetNames.length;++ie){var re=te.Sheets[te.SheetNames[ie]];if(re&&re["!ref"])decode_range(re["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+te.SheetNames[ie]+"' extends beyond column IV (255).  Data may be lost.")}var le=ne||{};switch(le.biff||2){case 8:case 5:return function write_biff8_buf(te,ne){var ie=ne||{},re=[];te&&!te.SSF&&(te.SSF=dup(ki)),te&&te.SSF&&(make_ssf(),SSF_load_table(te.SSF),ie.revssf=evert_num(te.SSF),ie.revssf[te.SSF[65535]]=0,ie.ssf=te.SSF),ie.Strings=[],ie.Strings.Count=0,ie.Strings.Unique=0,fix_write_opts(ie),ie.cellXfs=[],get_cell_style(ie.cellXfs,{},{revssf:{General:0}}),te.Props||(te.Props={});for(var le=0;le<te.SheetNames.length;++le)re[re.length]=write_ws_biff8(le,ie,te);return re.unshift(write_biff8_global(te,re,ie)),Jn(re)}(te,ne);case 4:case 3:case 2:return write_biff2_buf(te,ne)}throw new Error("invalid type "+le.bookType+" for BIFF")}function make_html_row(te,ne,ie,re){for(var le=te["!merges"]||[],ce=[],de=ne.s.c;de<=ne.e.c;++de){for(var ue=0,me=0,ge=0;ge<le.length;++ge)if(!(le[ge].s.r>ie||le[ge].s.c>de||le[ge].e.r<ie||le[ge].e.c<de)){if(le[ge].s.r<ie||le[ge].s.c<de){ue=-1;break}ue=le[ge].e.r-le[ge].s.r+1,me=le[ge].e.c-le[ge].s.c+1;break}if(!(ue<0)){var fe=encode_cell({r:ie,c:de}),_e=re.dense?(te[ie]||[])[de]:te[fe],be=_e&&null!=_e.v&&(_e.h||escapehtml(_e.w||(format_cell(_e),_e.w)||""))||"",Ce={};ue>1&&(Ce.rowspan=ue),me>1&&(Ce.colspan=me),re.editable?be='<span contenteditable="true">'+be+"</span>":_e&&(Ce["data-t"]=_e&&_e.t||"z",null!=_e.v&&(Ce["data-v"]=_e.v),null!=_e.z&&(Ce["data-z"]=_e.z),_e.l&&"#"!=(_e.l.Target||"#").charAt(0)&&(be='<a href="'+_e.l.Target+'">'+be+"</a>")),Ce.id=(re.id||"sjs")+"-"+fe,ce.push(writextag("td",be,Ce))}}return"<tr>"+ce.join("")+"</tr>"}var Pc='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Bc="</body></html>";function make_html_preamble(te,ne,ie){return[].join("")+"<table"+(ie&&ie.id?' id="'+ie.id+'"':"")+">"}function sheet_to_html(te,ne){var ie=ne||{},re=null!=ie.header?ie.header:Pc,le=null!=ie.footer?ie.footer:Bc,ce=[re],de=decode_range(te["!ref"]);ie.dense=Array.isArray(te),ce.push(make_html_preamble(0,0,ie));for(var ue=de.s.r;ue<=de.e.r;++ue)ce.push(make_html_row(te,de,ue,ie));return ce.push("</table>"+le),ce.join("")}function sheet_add_dom(te,ne,ie){var re=ie||{};null!=qn&&(re.dense=qn);var le=0,ce=0;if(null!=re.origin)if("number"==typeof re.origin)le=re.origin;else{var de="string"==typeof re.origin?decode_cell(re.origin):re.origin;le=de.r,ce=de.c}var ue=ne.getElementsByTagName("tr"),me=Math.min(re.sheetRows||1e7,ue.length),ge={s:{r:0,c:0},e:{r:le,c:ce}};if(te["!ref"]){var fe=decode_range(te["!ref"]);ge.s.r=Math.min(ge.s.r,fe.s.r),ge.s.c=Math.min(ge.s.c,fe.s.c),ge.e.r=Math.max(ge.e.r,fe.e.r),ge.e.c=Math.max(ge.e.c,fe.e.c),-1==le&&(ge.e.r=le=fe.e.r+1)}var _e=[],be=0,Ce=te["!rows"]||(te["!rows"]=[]),ye=0,we=0,ke=0,Se=0,xe=0,Ee=0;for(te["!cols"]||(te["!cols"]=[]);ye<ue.length&&we<me;++ye){var Me=ue[ye];if(is_dom_element_hidden(Me)){if(re.display)continue;Ce[we]={hidden:!0}}var Ne=Me.children;for(ke=Se=0;ke<Ne.length;++ke){var Re=Ne[ke];if(!re.display||!is_dom_element_hidden(Re)){var Le=Re.hasAttribute("data-v")?Re.getAttribute("data-v"):Re.hasAttribute("v")?Re.getAttribute("v"):vr(Re.innerHTML),Oe=Re.getAttribute("data-z")||Re.getAttribute("z");for(be=0;be<_e.length;++be){var Pe=_e[be];Pe.s.c==Se+ce&&Pe.s.r<we+le&&we+le<=Pe.e.r&&(Se=Pe.e.c+1-ce,be=-1)}Ee=+Re.getAttribute("colspan")||1,((xe=+Re.getAttribute("rowspan")||1)>1||Ee>1)&&_e.push({s:{r:we+le,c:Se+ce},e:{r:we+le+(xe||1)-1,c:Se+ce+(Ee||1)-1}});var Fe={t:"s",v:Le},je=Re.getAttribute("data-t")||Re.getAttribute("t")||"";null!=Le&&(0==Le.length?Fe.t=je||"z":re.raw||0==Le.trim().length||"s"==je||("TRUE"===Le?Fe={t:"b",v:!0}:"FALSE"===Le?Fe={t:"b",v:!1}:isNaN(fuzzynum(Le))?isNaN(fuzzydate(Le).getDate())||(Fe={t:"d",v:parseDate(Le)},re.cellDates||(Fe={t:"n",v:datenum(Fe.v)}),Fe.z=re.dateNF||ki[14]):Fe={t:"n",v:fuzzynum(Le)})),void 0===Fe.z&&null!=Oe&&(Fe.z=Oe);var Ve="",Ge=Re.getElementsByTagName("A");if(Ge&&Ge.length)for(var ze=0;ze<Ge.length&&(!Ge[ze].hasAttribute("href")||"#"==(Ve=Ge[ze].getAttribute("href")).charAt(0));++ze);Ve&&"#"!=Ve.charAt(0)&&(Fe.l={Target:Ve}),re.dense?(te[we+le]||(te[we+le]=[]),te[we+le][Se+ce]=Fe):te[encode_cell({c:Se+ce,r:we+le})]=Fe,ge.e.c<Se+ce&&(ge.e.c=Se+ce),Se+=Ee}}++we}return _e.length&&(te["!merges"]=(te["!merges"]||[]).concat(_e)),ge.e.r=Math.max(ge.e.r,we-1+le),te["!ref"]=encode_range(ge),we>=me&&(te["!fullref"]=encode_range((ge.e.r=ue.length-ye+we-1+le,ge))),te}function parse_dom_table(te,ne){return sheet_add_dom((ne||{}).dense?[]:{},te,ne)}function is_dom_element_hidden(te){var ne="",ie=function get_get_computed_style_function(te){return te.ownerDocument.defaultView&&"function"==typeof te.ownerDocument.defaultView.getComputedStyle?te.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(te);return ie&&(ne=ie(te).getPropertyValue("display")),ne||(ne=te.style&&te.style.display),"none"===ne}var zc=function(){var te=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),ne="<office:document-styles "+wxt_helper({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+te+"</office:document-styles>";return function wso(){return Po+ne}}(),Sd=function(){var te="          <table:table-cell />\n",write_ws=function(ne,ie,re){var le=[];le.push('      <table:table table:name="'+escapexml(ie.SheetNames[re])+'" table:style-name="ta1">\n');var ce=0,de=0,ue=decode_range(ne["!ref"]||"A1"),me=ne["!merges"]||[],ge=0,fe=Array.isArray(ne);if(ne["!cols"])for(de=0;de<=ue.e.c;++de)le.push("        <table:table-column"+(ne["!cols"][de]?' table:style-name="co'+ne["!cols"][de].ods+'"':"")+"></table:table-column>\n");var _e="",be=ne["!rows"]||[];for(ce=0;ce<ue.s.r;++ce)_e=be[ce]?' table:style-name="ro'+be[ce].ods+'"':"",le.push("        <table:table-row"+_e+"></table:table-row>\n");for(;ce<=ue.e.r;++ce){for(_e=be[ce]?' table:style-name="ro'+be[ce].ods+'"':"",le.push("        <table:table-row"+_e+">\n"),de=0;de<ue.s.c;++de)le.push(te);for(;de<=ue.e.c;++de){var Ce=!1,ye={},we="";for(ge=0;ge!=me.length;++ge)if(!(me[ge].s.c>de||me[ge].s.r>ce||me[ge].e.c<de||me[ge].e.r<ce)){me[ge].s.c==de&&me[ge].s.r==ce||(Ce=!0),ye["table:number-columns-spanned"]=me[ge].e.c-me[ge].s.c+1,ye["table:number-rows-spanned"]=me[ge].e.r-me[ge].s.r+1;break}if(Ce)le.push("          <table:covered-table-cell/>\n");else{var ke=encode_cell({r:ce,c:de}),Se=fe?(ne[ce]||[])[de]:ne[ke];if(Se&&Se.f&&(ye["table:formula"]=escapexml(("of:="+Se.f.replace(Ps,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),Se.F&&Se.F.slice(0,ke.length)==ke)){var xe=decode_range(Se.F);ye["table:number-matrix-columns-spanned"]=xe.e.c-xe.s.c+1,ye["table:number-matrix-rows-spanned"]=xe.e.r-xe.s.r+1}if(Se){switch(Se.t){case"b":we=Se.v?"TRUE":"FALSE",ye["office:value-type"]="boolean",ye["office:boolean-value"]=Se.v?"true":"false";break;case"n":we=Se.w||String(Se.v||0),ye["office:value-type"]="float",ye["office:value"]=Se.v||0;break;case"s":case"str":we=null==Se.v?"":Se.v,ye["office:value-type"]="string";break;case"d":we=Se.w||parseDate(Se.v).toISOString(),ye["office:value-type"]="date",ye["office:date-value"]=parseDate(Se.v).toISOString(),ye["table:style-name"]="ce1";break;default:le.push(te);continue}var Ee=escapexml(we).replace(/  +/g,(function(te){return'<text:s text:c="'+te.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(Se.l&&Se.l.Target){var Me=Se.l.Target;"#"==(Me="#"==Me.charAt(0)?"#"+Me.slice(1).replace(/\./,"!"):Me).charAt(0)||Me.match(/^\w+:/)||(Me="../"+Me),Ee=writextag("text:a",Ee,{"xlink:href":Me.replace(/&/g,"&amp;")})}le.push("          "+writextag("table:table-cell",writextag("text:p",Ee,{}),ye)+"\n")}else le.push(te)}}le.push("        </table:table-row>\n")}return le.push("      </table:table>\n"),le.join("")};return function wcx(te,ne){var ie=[Po],re=wxt_helper({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),le=wxt_helper({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==ne.bookType?(ie.push("<office:document"+re+le+">\n"),ie.push(write_meta_ods().replace(/office:document-meta/g,"office:meta"))):ie.push("<office:document-content"+re+">\n"),function(te,ne){te.push(" <office:automatic-styles>\n"),te.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),te.push('   <number:month number:style="long"/>\n'),te.push("   <number:text>/</number:text>\n"),te.push('   <number:day number:style="long"/>\n'),te.push("   <number:text>/</number:text>\n"),te.push("   <number:year/>\n"),te.push("  </number:date-style>\n");var ie=0;ne.SheetNames.map((function(te){return ne.Sheets[te]})).forEach((function(ne){if(ne&&ne["!cols"])for(var re=0;re<ne["!cols"].length;++re)if(ne["!cols"][re]){var le=ne["!cols"][re];if(null==le.width&&null==le.wpx&&null==le.wch)continue;process_col(le),le.ods=ie;var ce=ne["!cols"][re].wpx+"px";te.push('  <style:style style:name="co'+ie+'" style:family="table-column">\n'),te.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+ce+'"/>\n'),te.push("  </style:style>\n"),++ie}}));var re=0;ne.SheetNames.map((function(te){return ne.Sheets[te]})).forEach((function(ne){if(ne&&ne["!rows"])for(var ie=0;ie<ne["!rows"].length;++ie)if(ne["!rows"][ie]){ne["!rows"][ie].ods=re;var le=ne["!rows"][ie].hpx+"px";te.push('  <style:style style:name="ro'+re+'" style:family="table-row">\n'),te.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+le+'"/>\n'),te.push("  </style:style>\n"),++re}})),te.push('  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),te.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),te.push("  </style:style>\n"),te.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),te.push(" </office:automatic-styles>\n")}(ie,te),ie.push("  <office:body>\n"),ie.push("    <office:spreadsheet>\n");for(var ce=0;ce!=te.SheetNames.length;++ce)ie.push(write_ws(te.Sheets[te.SheetNames[ce]],te,ce));return ie.push("    </office:spreadsheet>\n"),ie.push("  </office:body>\n"),"fods"==ne.bookType?ie.push("</office:document>"):ie.push("</office:document-content>"),ie.join("")}}();function write_ods(te,ne){if("fods"==ne.bookType)return Sd(te,ne);var ie=zip_new(),re="",le=[],ce=[];return zip_add_file(ie,re="mimetype","application/vnd.oasis.opendocument.spreadsheet"),zip_add_file(ie,re="content.xml",Sd(te,ne)),le.push([re,"text/xml"]),ce.push([re,"ContentFile"]),zip_add_file(ie,re="styles.xml",zc(te,ne)),le.push([re,"text/xml"]),ce.push([re,"StylesFile"]),zip_add_file(ie,re="meta.xml",Po+write_meta_ods()),le.push([re,"text/xml"]),ce.push([re,"MetadataFile"]),zip_add_file(ie,re="manifest.rdf",function write_rdf(te){var ne,ie,re=[Po];re.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var le=0;le!=te.length;++le)re.push(write_rdf_type(te[le][0],te[le][1])),re.push((ne="",ie=te[le][0],['  <rdf:Description rdf:about="'+ne+'">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+ie+'"/>\n',"  </rdf:Description>\n"].join("")));return re.push(write_rdf_type("","Document","pkg")),re.push("</rdf:RDF>"),re.join("")}(ce)),le.push([re,"application/rdf+xml"]),zip_add_file(ie,re="META-INF/manifest.xml",function write_manifest(te){var ne=[Po];ne.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),ne.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var ie=0;ie<te.length;++ie)ne.push('  <manifest:file-entry manifest:full-path="'+te[ie][0]+'" manifest:media-type="'+te[ie][1]+'"/>\n');return ne.push("</manifest:manifest>"),ne.join("")}(le)),ie}function u8_to_dataview(te){return new DataView(te.buffer,te.byteOffset,te.byteLength)}function stru8(te){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(te):Qn(_r(te))}function u8concat(te){var ne=te.reduce((function(te,ne){return te+ne.length}),0),ie=new Uint8Array(ne),re=0;return te.forEach((function(te){ie.set(te,re),re+=te.length})),ie}function parse_varint49(te,ne){var ie=ne?ne[0]:0,re=127&te[ie];e:if(te[ie++]>=128){if(re|=(127&te[ie])<<7,te[ie++]<128)break e;if(re|=(127&te[ie])<<14,te[ie++]<128)break e;if(re|=(127&te[ie])<<21,te[ie++]<128)break e;if(re+=(127&te[ie])*Math.pow(2,28),++ie,te[ie++]<128)break e;if(re+=(127&te[ie])*Math.pow(2,35),++ie,te[ie++]<128)break e;if(re+=(127&te[ie])*Math.pow(2,42),++ie,te[ie++]<128)break e}return ne&&(ne[0]=ie),re}function write_varint49(te){var ne=new Uint8Array(7);ne[0]=127&te;var ie=1;e:if(te>127){if(ne[ie-1]|=128,ne[ie]=te>>7&127,++ie,te<=16383)break e;if(ne[ie-1]|=128,ne[ie]=te>>14&127,++ie,te<=2097151)break e;if(ne[ie-1]|=128,ne[ie]=te>>21&127,++ie,te<=268435455)break e;if(ne[ie-1]|=128,ne[ie]=te/256>>>21&127,++ie,te<=34359738367)break e;if(ne[ie-1]|=128,ne[ie]=te/65536>>>21&127,++ie,te<=4398046511103)break e;ne[ie-1]|=128,ne[ie]=te/16777216>>>21&127,++ie}return ne.slice(0,ie)}function varint_to_i32(te){var ne=0,ie=127&te[ne];e:if(te[ne++]>=128){if(ie|=(127&te[ne])<<7,te[ne++]<128)break e;if(ie|=(127&te[ne])<<14,te[ne++]<128)break e;if(ie|=(127&te[ne])<<21,te[ne++]<128)break e;ie|=(127&te[ne])<<28}return ie}function parse_shallow(te){for(var ne=[],ie=[0];ie[0]<te.length;){var re,le=ie[0],ce=parse_varint49(te,ie),de=7&ce,ue=0;if(0==(ce=Math.floor(ce/8)))break;switch(de){case 0:for(var me=ie[0];te[ie[0]++]>=128;);re=te.slice(me,ie[0]);break;case 5:ue=4,re=te.slice(ie[0],ie[0]+ue),ie[0]+=ue;break;case 1:ue=8,re=te.slice(ie[0],ie[0]+ue),ie[0]+=ue;break;case 2:ue=parse_varint49(te,ie),re=te.slice(ie[0],ie[0]+ue),ie[0]+=ue;break;default:throw new Error("PB Type ".concat(de," for Field ").concat(ce," at offset ").concat(le))}var ge={data:re,type:de};null==ne[ce]?ne[ce]=[ge]:ne[ce].push(ge)}return ne}function write_shallow(te){var ne=[];return te.forEach((function(te,ie){te.forEach((function(te){te.data&&(ne.push(write_varint49(8*ie+te.type)),2==te.type&&ne.push(write_varint49(te.data.length)),ne.push(te.data))}))})),u8concat(ne)}function parse_iwa_file(te){for(var ne,ie=[],re=[0];re[0]<te.length;){var le=parse_varint49(te,re),ce=parse_shallow(te.slice(re[0],re[0]+le));re[0]+=le;var de={id:varint_to_i32(ce[1][0].data),messages:[]};ce[2].forEach((function(ne){var ie=parse_shallow(ne.data),le=varint_to_i32(ie[3][0].data);de.messages.push({meta:ie,data:te.slice(re[0],re[0]+le)}),re[0]+=le})),(null==(ne=ce[3])?void 0:ne[0])&&(de.merge=varint_to_i32(ce[3][0].data)>>>0>0),ie.push(de)}return ie}function write_iwa_file(te){var ne=[];return te.forEach((function(te){var ie=[];ie[1]=[{data:write_varint49(te.id),type:0}],ie[2]=[],null!=te.merge&&(ie[3]=[{data:write_varint49(+!!te.merge),type:0}]);var re=[];te.messages.forEach((function(te){re.push(te.data),te.meta[3]=[{type:0,data:write_varint49(te.data.length)}],ie[2].push({data:write_shallow(te.meta),type:2})}));var le=write_shallow(ie);ne.push(write_varint49(le.length)),ne.push(le),re.forEach((function(te){return ne.push(te)}))})),u8concat(ne)}function parse_snappy_chunk(te,ne){if(0!=te)throw new Error("Unexpected Snappy chunk type ".concat(te));for(var ie=[0],re=parse_varint49(ne,ie),le=[];ie[0]<ne.length;){var ce=3&ne[ie[0]];if(0!=ce){var de=0,ue=0;if(1==ce?(ue=4+(ne[ie[0]]>>2&7),de=(224&ne[ie[0]++])<<3,de|=ne[ie[0]++]):(ue=1+(ne[ie[0]++]>>2),2==ce?(de=ne[ie[0]]|ne[ie[0]+1]<<8,ie[0]+=2):(de=(ne[ie[0]]|ne[ie[0]+1]<<8|ne[ie[0]+2]<<16|ne[ie[0]+3]<<24)>>>0,ie[0]+=4)),le=[u8concat(le)],0==de)throw new Error("Invalid offset 0");if(de>le[0].length)throw new Error("Invalid offset beyond length");if(ue>=de)for(le.push(le[0].slice(-de)),ue-=de;ue>=le[le.length-1].length;)le.push(le[le.length-1]),ue-=le[le.length-1].length;le.push(le[0].slice(-de,-de+ue))}else{var me=ne[ie[0]++]>>2;if(me<60)++me;else{var ge=me-59;me=ne[ie[0]],ge>1&&(me|=ne[ie[0]+1]<<8),ge>2&&(me|=ne[ie[0]+2]<<16),ge>3&&(me|=ne[ie[0]+3]<<24),me>>>=0,me++,ie[0]+=ge}le.push(ne.slice(ie[0],ie[0]+me)),ie[0]+=me}}var fe=u8concat(le);if(fe.length!=re)throw new Error("Unexpected length: ".concat(fe.length," != ").concat(re));return fe}function decompress_iwa_file(te){for(var ne=[],ie=0;ie<te.length;){var re=te[ie++],le=te[ie]|te[ie+1]<<8|te[ie+2]<<16;ie+=3,ne.push(parse_snappy_chunk(re,te.slice(ie,ie+le))),ie+=le}if(ie!==te.length)throw new Error("data is not a valid framed stream!");return u8concat(ne)}function compress_iwa_file(te){for(var ne=[],ie=0;ie<te.length;){var re=Math.min(te.length-ie,268435455),le=new Uint8Array(4);ne.push(le);var ce=write_varint49(re),de=ce.length;ne.push(ce),re<=60?(de++,ne.push(new Uint8Array([re-1<<2]))):re<=256?(de+=2,ne.push(new Uint8Array([240,re-1&255]))):re<=65536?(de+=3,ne.push(new Uint8Array([244,re-1&255,re-1>>8&255]))):re<=16777216?(de+=4,ne.push(new Uint8Array([248,re-1&255,re-1>>8&255,re-1>>16&255]))):re<=4294967296&&(de+=5,ne.push(new Uint8Array([252,re-1&255,re-1>>8&255,re-1>>16&255,re-1>>>24&255]))),ne.push(te.slice(ie,ie+re)),de+=re,le[0]=0,le[1]=255&de,le[2]=de>>8&255,le[3]=de>>16&255,ie+=re}return u8concat(ne)}function write_new_storage(te,ne){var ie=new Uint8Array(32),re=u8_to_dataview(ie),le=12,ce=0;switch(ie[0]=5,te.t){case"n":ie[1]=2,function writeDecimal128LE(te,ne,ie){var re=Math.floor(0==ie?0:Math.LOG10E*Math.log(Math.abs(ie)))+6176-20,le=ie/Math.pow(10,re-6176);te[ne+15]|=re>>7,te[ne+14]|=(127&re)<<1;for(var ce=0;le>=1;++ce,le/=256)te[ne+ce]=255&le;te[ne+15]|=ie>=0?0:128}(ie,le,te.v),ce|=1,le+=16;break;case"b":ie[1]=6,re.setFloat64(le,te.v?1:0,!0),ce|=2,le+=8;break;case"s":if(-1==ne.indexOf(te.v))throw new Error("Value ".concat(te.v," missing from SST!"));ie[1]=3,re.setUint32(le,ne.indexOf(te.v),!0),ce|=8,le+=4;break;default:throw"unsupported cell type "+te.t}return re.setUint32(8,ce,!0),ie.slice(0,le)}function write_old_storage(te,ne){var ie=new Uint8Array(32),re=u8_to_dataview(ie),le=12,ce=0;switch(ie[0]=3,te.t){case"n":ie[2]=2,re.setFloat64(le,te.v,!0),ce|=32,le+=8;break;case"b":ie[2]=6,re.setFloat64(le,te.v?1:0,!0),ce|=32,le+=8;break;case"s":if(-1==ne.indexOf(te.v))throw new Error("Value ".concat(te.v," missing from SST!"));ie[2]=3,re.setUint32(le,ne.indexOf(te.v),!0),ce|=16,le+=4;break;default:throw"unsupported cell type "+te.t}return re.setUint32(4,ce,!0),ie.slice(0,le)}function parse_TSP_Reference(te){return parse_varint49(parse_shallow(te)[1][0].data)}function write_tile_row(te,ne,ie){var re,le,ce,de;if(!(null==(re=te[6])?void 0:re[0])||!(null==(le=te[7])?void 0:le[0]))throw"Mutation only works on post-BNC storages!";if((null==(de=null==(ce=te[8])?void 0:ce[0])?void 0:de.data)&&varint_to_i32(te[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var ue=0,me=u8_to_dataview(te[7][0].data),ge=0,fe=[],_e=u8_to_dataview(te[4][0].data),be=0,Ce=[],ye=0;ye<ne.length;++ye)if(null!=ne[ye]){var we,ke;switch(me.setUint16(2*ye,ge,!0),_e.setUint16(2*ye,be,!0),typeof ne[ye]){case"string":we=write_new_storage({t:"s",v:ne[ye]},ie),ke=write_old_storage({t:"s",v:ne[ye]},ie);break;case"number":we=write_new_storage({t:"n",v:ne[ye]},ie),ke=write_old_storage({t:"n",v:ne[ye]},ie);break;case"boolean":we=write_new_storage({t:"b",v:ne[ye]},ie),ke=write_old_storage({t:"b",v:ne[ye]},ie);break;default:throw new Error("Unsupported value "+ne[ye])}fe.push(we),ge+=we.length,Ce.push(ke),be+=ke.length,++ue}else me.setUint16(2*ye,65535,!0),_e.setUint16(2*ye,65535);for(te[2][0].data=write_varint49(ue);ye<te[7][0].data.length/2;++ye)me.setUint16(2*ye,65535,!0),_e.setUint16(2*ye,65535,!0);return te[6][0].data=u8concat(fe),te[3][0].data=u8concat(Ce),ue}function fix_opts_func(te){return function fix_opts(ne){for(var ie=0;ie!=te.length;++ie){var re=te[ie];void 0===ne[re[0]]&&(ne[re[0]]=re[1]),"n"===re[2]&&(ne[re[0]]=Number(ne[re[0]]))}}}function fix_write_opts(te){fix_opts_func([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(te)}function write_zip(te,ne){return"ods"==ne.bookType?write_ods(te,ne):"numbers"==ne.bookType?function write_numbers_iwa(te,ne){if(!ne||!ne.numbers)throw new Error("Must pass a `numbers` option -- check the README");var ie=te.Sheets[te.SheetNames[0]];te.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var re=decode_range(ie["!ref"]);re.s.r=re.s.c=0;var le=!1;re.e.c>9&&(le=!0,re.e.c=9),re.e.r>49&&(le=!0,re.e.r=49),le&&console.error("The Numbers writer is currently limited to ".concat(encode_range(re)));var ce=sheet_to_json(ie,{range:re,header:1}),de=["~Sh33tJ5~"];ce.forEach((function(te){return te.forEach((function(te){"string"==typeof te&&de.push(te)}))}));var ue={},me=[],ge=mo.read(ne.numbers,{type:"base64"});ge.FileIndex.map((function(te,ne){return[te,ge.FullPaths[ne]]})).forEach((function(te){var ne=te[0],ie=te[1];2==ne.type&&ne.name.match(/\.iwa/)&&parse_iwa_file(decompress_iwa_file(ne.content)).forEach((function(te){me.push(te.id),ue[te.id]={deps:[],location:ie,type:varint_to_i32(te.messages[0].meta[1][0].data)}}))})),me.sort((function(te,ne){return te-ne}));var fe=me.filter((function(te){return te>1})).map((function(te){return[te,write_varint49(te)]}));ge.FileIndex.map((function(te,ne){return[te,ge.FullPaths[ne]]})).forEach((function(te){var ne=te[0];te[1],ne.name.match(/\.iwa/)&&parse_iwa_file(decompress_iwa_file(ne.content)).forEach((function(te){te.messages.forEach((function(ne){fe.forEach((function(ne){te.messages.some((function(te){return 11006!=varint_to_i32(te.meta[1][0].data)&&function u8contains(te,ne){e:for(var ie=0;ie<=te.length-ne.length;++ie){for(var re=0;re<ne.length;++re)if(te[ie+re]!=ne[re])continue e;return!0}return!1}(te.data,ne[1])}))&&ue[ne[0]].deps.push(te.id)}))}))}))}));for(var _e,be=mo.find(ge,ue[1].location),Ce=parse_iwa_file(decompress_iwa_file(be.content)),ye=0;ye<Ce.length;++ye){var we=Ce[ye];1==we.id&&(_e=we)}var ke=parse_TSP_Reference(parse_shallow(_e.messages[0].data)[1][0].data);for(Ce=parse_iwa_file(decompress_iwa_file((be=mo.find(ge,ue[ke].location)).content)),ye=0;ye<Ce.length;++ye)(we=Ce[ye]).id==ke&&(_e=we);for(ke=parse_TSP_Reference(parse_shallow(_e.messages[0].data)[2][0].data),Ce=parse_iwa_file(decompress_iwa_file((be=mo.find(ge,ue[ke].location)).content)),ye=0;ye<Ce.length;++ye)(we=Ce[ye]).id==ke&&(_e=we);for(ke=parse_TSP_Reference(parse_shallow(_e.messages[0].data)[2][0].data),Ce=parse_iwa_file(decompress_iwa_file((be=mo.find(ge,ue[ke].location)).content)),ye=0;ye<Ce.length;++ye)(we=Ce[ye]).id==ke&&(_e=we);var Se=parse_shallow(_e.messages[0].data);Se[6][0].data=write_varint49(re.e.r+1),Se[7][0].data=write_varint49(re.e.c+1);for(var xe=parse_TSP_Reference(Se[46][0].data),Ee=mo.find(ge,ue[xe].location),Me=parse_iwa_file(decompress_iwa_file(Ee.content)),Ne=0;Ne<Me.length&&Me[Ne].id!=xe;++Ne);if(Me[Ne].id!=xe)throw"Bad ColumnRowUIDMapArchive";var Re=parse_shallow(Me[Ne].messages[0].data);Re[1]=[],Re[2]=[],Re[3]=[];for(var Le=0;Le<=re.e.c;++Le){var Oe=[];Oe[1]=Oe[2]=[{type:0,data:write_varint49(Le+420690)}],Re[1].push({type:2,data:write_shallow(Oe)}),Re[2].push({type:0,data:write_varint49(Le)}),Re[3].push({type:0,data:write_varint49(Le)})}Re[4]=[],Re[5]=[],Re[6]=[];for(var Pe=0;Pe<=re.e.r;++Pe)(Oe=[])[1]=Oe[2]=[{type:0,data:write_varint49(Pe+726270)}],Re[4].push({type:2,data:write_shallow(Oe)}),Re[5].push({type:0,data:write_varint49(Pe)}),Re[6].push({type:0,data:write_varint49(Pe)});Me[Ne].messages[0].data=write_shallow(Re),Ee.content=compress_iwa_file(write_iwa_file(Me)),Ee.size=Ee.content.length,delete Se[46];var Fe=parse_shallow(Se[4][0].data);Fe[7][0].data=write_varint49(re.e.r+1);var je=parse_TSP_Reference(parse_shallow(Fe[1][0].data)[2][0].data);if((Me=parse_iwa_file(decompress_iwa_file((Ee=mo.find(ge,ue[je].location)).content)))[0].id!=je)throw"Bad HeaderStorageBucket";var Ve=parse_shallow(Me[0].messages[0].data);for(Pe=0;Pe<ce.length;++Pe){var Ge=parse_shallow(Ve[2][0].data);Ge[1][0].data=write_varint49(Pe),Ge[4][0].data=write_varint49(ce[Pe].length),Ve[2][Pe]={type:Ve[2][0].type,data:write_shallow(Ge)}}Me[0].messages[0].data=write_shallow(Ve),Ee.content=compress_iwa_file(write_iwa_file(Me)),Ee.size=Ee.content.length;var ze=parse_TSP_Reference(Fe[2][0].data);if((Me=parse_iwa_file(decompress_iwa_file((Ee=mo.find(ge,ue[ze].location)).content)))[0].id!=ze)throw"Bad HeaderStorageBucket";for(Ve=parse_shallow(Me[0].messages[0].data),Le=0;Le<=re.e.c;++Le)(Ge=parse_shallow(Ve[2][0].data))[1][0].data=write_varint49(Le),Ge[4][0].data=write_varint49(re.e.r+1),Ve[2][Le]={type:Ve[2][0].type,data:write_shallow(Ge)};Me[0].messages[0].data=write_shallow(Ve),Ee.content=compress_iwa_file(write_iwa_file(Me)),Ee.size=Ee.content.length;var He=parse_TSP_Reference(Fe[4][0].data);!function(){for(var te,ne=mo.find(ge,ue[He].location),ie=parse_iwa_file(decompress_iwa_file(ne.content)),re=0;re<ie.length;++re){var le=ie[re];le.id==He&&(te=le)}var ce=parse_shallow(te.messages[0].data);ce[3]=[];var me=[];de.forEach((function(te,ne){me[1]=[{type:0,data:write_varint49(ne)}],me[2]=[{type:0,data:write_varint49(1)}],me[3]=[{type:2,data:stru8(te)}],ce[3].push({type:2,data:write_shallow(me)})})),te.messages[0].data=write_shallow(ce);var fe=compress_iwa_file(write_iwa_file(ie));ne.content=fe,ne.size=ne.content.length}();var $e=parse_shallow(Fe[3][0].data),qe=$e[1][0];delete $e[2];var Ye=parse_shallow(qe.data),Xe=parse_TSP_Reference(Ye[2][0].data);!function(){for(var te,ne=mo.find(ge,ue[Xe].location),ie=parse_iwa_file(decompress_iwa_file(ne.content)),le=0;le<ie.length;++le){var me=ie[le];me.id==Xe&&(te=me)}var fe=parse_shallow(te.messages[0].data);delete fe[6],delete $e[7];var _e=new Uint8Array(fe[5][0].data);fe[5]=[];for(var be=0,Ce=0;Ce<=re.e.r;++Ce){var ye=parse_shallow(_e);be+=write_tile_row(ye,ce[Ce],de),ye[1][0].data=write_varint49(Ce),fe[5].push({data:write_shallow(ye),type:2})}fe[1]=[{type:0,data:write_varint49(re.e.c+1)}],fe[2]=[{type:0,data:write_varint49(re.e.r+1)}],fe[3]=[{type:0,data:write_varint49(be)}],fe[4]=[{type:0,data:write_varint49(re.e.r+1)}],te.messages[0].data=write_shallow(fe);var we=compress_iwa_file(write_iwa_file(ie));ne.content=we,ne.size=ne.content.length}(),qe.data=write_shallow(Ye),Fe[3][0].data=write_shallow($e),Se[4][0].data=write_shallow(Fe),_e.messages[0].data=write_shallow(Se);var Ke=compress_iwa_file(write_iwa_file(Ce));return be.content=Ke,be.size=be.content.length,ge}(te,ne):"xlsb"==ne.bookType?function write_zip_xlsxb(te,ne){fs=1024,te&&!te.SSF&&(te.SSF=dup(ki));te&&te.SSF&&(make_ssf(),SSF_load_table(te.SSF),ne.revssf=evert_num(te.SSF),ne.revssf[te.SSF[65535]]=0,ne.ssf=te.SSF);ne.rels={},ne.wbrels={},ne.Strings=[],ne.Strings.Count=0,ne.Strings.Unique=0,sc?ne.revStrings=new Map:(ne.revStrings={},ne.revStrings.foo=[],delete ne.revStrings.foo);var ie="xlsb"==ne.bookType?"bin":"xml",re=Ls.indexOf(ne.bookType)>-1,le={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};fix_write_opts(ne=ne||{});var ce=zip_new(),de="",ue=0;ne.cellXfs=[],get_cell_style(ne.cellXfs,{},{revssf:{General:0}}),te.Props||(te.Props={});if(zip_add_file(ce,de="docProps/core.xml",write_core_props(te.Props,ne)),le.coreprops.push(de),add_rels(ne.rels,2,de,Ta.CORE_PROPS),de="docProps/app.xml",te.Props&&te.Props.SheetNames);else if(te.Workbook&&te.Workbook.Sheets){for(var me=[],ge=0;ge<te.SheetNames.length;++ge)2!=(te.Workbook.Sheets[ge]||{}).Hidden&&me.push(te.SheetNames[ge]);te.Props.SheetNames=me}else te.Props.SheetNames=te.SheetNames;te.Props.Worksheets=te.Props.SheetNames.length,zip_add_file(ce,de,write_ext_props(te.Props)),le.extprops.push(de),add_rels(ne.rels,3,de,Ta.EXT_PROPS),te.Custprops!==te.Props&&keys(te.Custprops||{}).length>0&&(zip_add_file(ce,de="docProps/custom.xml",write_cust_props(te.Custprops)),le.custprops.push(de),add_rels(ne.rels,4,de,Ta.CUST_PROPS));for(ue=1;ue<=te.SheetNames.length;++ue){var fe={"!id":{}},_e=te.Sheets[te.SheetNames[ue-1]];(_e||{})["!type"];if(zip_add_file(ce,de="xl/worksheets/sheet"+ue+"."+ie,write_ws(ue-1,de,ne,te,fe)),le.sheets.push(de),add_rels(ne.wbrels,-1,"worksheets/sheet"+ue+"."+ie,Ta.WS[0]),_e){var be=_e["!comments"],Ce=!1,ye="";be&&be.length>0&&(zip_add_file(ce,ye="xl/comments"+ue+"."+ie,write_cmnt(be,ye,ne)),le.comments.push(ye),add_rels(fe,-1,"../comments"+ue+"."+ie,Ta.CMNT),Ce=!0),_e["!legacy"]&&Ce&&zip_add_file(ce,"xl/drawings/vmlDrawing"+ue+".vml",write_comments_vml(ue,_e["!comments"])),delete _e["!comments"],delete _e["!legacy"]}fe["!id"].rId1&&zip_add_file(ce,get_rels_path(de),write_rels(fe))}null!=ne.Strings&&ne.Strings.length>0&&(zip_add_file(ce,de="xl/sharedStrings."+ie,function write_sst(te,ne,ie){return(".bin"===ne.slice(-4)?write_sst_bin:write_sst_xml)(te,ie)}(ne.Strings,de,ne)),le.strs.push(de),add_rels(ne.wbrels,-1,"sharedStrings."+ie,Ta.SST));zip_add_file(ce,de="xl/workbook."+ie,function write_wb(te,ne,ie){return(".bin"===ne.slice(-4)?write_wb_bin:write_wb_xml)(te,ie)}(te,de,ne)),le.workbooks.push(de),add_rels(ne.rels,1,de,Ta.WB),zip_add_file(ce,de="xl/theme/theme1.xml",write_theme(te.Themes,ne)),le.themes.push(de),add_rels(ne.wbrels,-1,"theme/theme1.xml",Ta.THEME),zip_add_file(ce,de="xl/styles."+ie,function write_sty(te,ne,ie){return(".bin"===ne.slice(-4)?write_sty_bin:write_sty_xml)(te,ie)}(te,de,ne)),le.styles.push(de),add_rels(ne.wbrels,-1,"styles."+ie,Ta.STY),te.vbaraw&&re&&(zip_add_file(ce,de="xl/vbaProject.bin",te.vbaraw),le.vba.push(de),add_rels(ne.wbrels,-1,"vbaProject.bin",Ta.VBA));return zip_add_file(ce,de="xl/metadata."+ie,function write_xlmeta(te){return(".bin"===te.slice(-4)?write_xlmeta_bin:write_xlmeta_xml)()}(de)),le.metadata.push(de),add_rels(ne.wbrels,-1,"metadata."+ie,Ta.XLMETA),zip_add_file(ce,"[Content_Types].xml",write_ct(le,ne)),zip_add_file(ce,"_rels/.rels",write_rels(ne.rels)),zip_add_file(ce,"xl/_rels/workbook."+ie+".rels",write_rels(ne.wbrels)),delete ne.revssf,delete ne.ssf,ce}(te,ne):write_zip_xlsx(te,ne)}function write_zip_xlsx(te,ne){fs=1024,te&&!te.SSF&&(te.SSF=dup(ki)),te&&te.SSF&&(make_ssf(),SSF_load_table(te.SSF),ne.revssf=evert_num(te.SSF),ne.revssf[te.SSF[65535]]=0,ne.ssf=te.SSF),ne.rels={},ne.wbrels={},ne.Strings=[],ne.Strings.Count=0,ne.Strings.Unique=0,sc?ne.revStrings=new Map:(ne.revStrings={},ne.revStrings.foo=[],delete ne.revStrings.foo);var ie="xml",re=Ls.indexOf(ne.bookType)>-1,le={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};fix_write_opts(ne=ne||{});var ce=zip_new(),de="",ue=0;if(ne.cellXfs=[],get_cell_style(ne.cellXfs,{},{revssf:{General:0}}),te.Props||(te.Props={}),zip_add_file(ce,de="docProps/core.xml",write_core_props(te.Props,ne)),le.coreprops.push(de),add_rels(ne.rels,2,de,Ta.CORE_PROPS),de="docProps/app.xml",te.Props&&te.Props.SheetNames);else if(te.Workbook&&te.Workbook.Sheets){for(var me=[],ge=0;ge<te.SheetNames.length;++ge)2!=(te.Workbook.Sheets[ge]||{}).Hidden&&me.push(te.SheetNames[ge]);te.Props.SheetNames=me}else te.Props.SheetNames=te.SheetNames;te.Props.Worksheets=te.Props.SheetNames.length,zip_add_file(ce,de,write_ext_props(te.Props)),le.extprops.push(de),add_rels(ne.rels,3,de,Ta.EXT_PROPS),te.Custprops!==te.Props&&keys(te.Custprops||{}).length>0&&(zip_add_file(ce,de="docProps/custom.xml",write_cust_props(te.Custprops)),le.custprops.push(de),add_rels(ne.rels,4,de,Ta.CUST_PROPS));var fe=["SheetJ5"];for(ne.tcid=0,ue=1;ue<=te.SheetNames.length;++ue){var _e={"!id":{}},be=te.Sheets[te.SheetNames[ue-1]];(be||{})["!type"];if(zip_add_file(ce,de="xl/worksheets/sheet"+ue+"."+ie,write_ws_xml(ue-1,ne,te,_e)),le.sheets.push(de),add_rels(ne.wbrels,-1,"worksheets/sheet"+ue+"."+ie,Ta.WS[0]),be){var Ce=be["!comments"],ye=!1,we="";if(Ce&&Ce.length>0){var ke=!1;Ce.forEach((function(te){te[1].forEach((function(te){1==te.T&&(ke=!0)}))})),ke&&(zip_add_file(ce,we="xl/threadedComments/threadedComment"+ue+"."+ie,write_tcmnt_xml(Ce,fe,ne)),le.threadedcomments.push(we),add_rels(_e,-1,"../threadedComments/threadedComment"+ue+"."+ie,Ta.TCMNT)),zip_add_file(ce,we="xl/comments"+ue+"."+ie,write_comments_xml(Ce)),le.comments.push(we),add_rels(_e,-1,"../comments"+ue+"."+ie,Ta.CMNT),ye=!0}be["!legacy"]&&ye&&zip_add_file(ce,"xl/drawings/vmlDrawing"+ue+".vml",write_comments_vml(ue,be["!comments"])),delete be["!comments"],delete be["!legacy"]}_e["!id"].rId1&&zip_add_file(ce,get_rels_path(de),write_rels(_e))}return null!=ne.Strings&&ne.Strings.length>0&&(zip_add_file(ce,de="xl/sharedStrings."+ie,write_sst_xml(ne.Strings,ne)),le.strs.push(de),add_rels(ne.wbrels,-1,"sharedStrings."+ie,Ta.SST)),zip_add_file(ce,de="xl/workbook."+ie,write_wb_xml(te)),le.workbooks.push(de),add_rels(ne.rels,1,de,Ta.WB),zip_add_file(ce,de="xl/theme/theme1.xml",write_theme(te.Themes,ne)),le.themes.push(de),add_rels(ne.wbrels,-1,"theme/theme1.xml",Ta.THEME),zip_add_file(ce,de="xl/styles."+ie,write_sty_xml(te,ne)),le.styles.push(de),add_rels(ne.wbrels,-1,"styles."+ie,Ta.STY),te.vbaraw&&re&&(zip_add_file(ce,de="xl/vbaProject.bin",te.vbaraw),le.vba.push(de),add_rels(ne.wbrels,-1,"vbaProject.bin",Ta.VBA)),zip_add_file(ce,de="xl/metadata."+ie,write_xlmeta_xml()),le.metadata.push(de),add_rels(ne.wbrels,-1,"metadata."+ie,Ta.XLMETA),fe.length>1&&(zip_add_file(ce,de="xl/persons/person.xml",function write_people_xml(te){var ne=[Po,writextag("personList",null,{xmlns:wr.TCMNT,"xmlns:x":Ar[0]}).replace(/[\/]>/,">")];return te.forEach((function(te,ie){ne.push(writextag("person",null,{displayName:te,id:"{54EE7950-7262-4200-6969-"+("000000000000"+ie).slice(-12)+"}",userId:te,providerId:"None"}))})),ne.push("</personList>"),ne.join("")}(fe)),le.people.push(de),add_rels(ne.wbrels,-1,"persons/person.xml",Ta.PEOPLE)),zip_add_file(ce,"[Content_Types].xml",write_ct(le,ne)),zip_add_file(ce,"_rels/.rels",write_rels(ne.rels)),zip_add_file(ce,"xl/_rels/workbook.xml.rels",write_rels(ne.wbrels)),delete ne.revssf,delete ne.ssf,ce}function firstbyte(te,ne){var ie="";switch((ne||{}).type||"base64"){case"buffer":case"array":return[te[0],te[1],te[2],te[3],te[4],te[5],te[6],te[7]];case"base64":ie=Base64_decode(te.slice(0,12));break;case"binary":ie=te;break;default:throw new Error("Unrecognized type "+(ne&&ne.type||"undefined"))}return[ie.charCodeAt(0),ie.charCodeAt(1),ie.charCodeAt(2),ie.charCodeAt(3),ie.charCodeAt(4),ie.charCodeAt(5),ie.charCodeAt(6),ie.charCodeAt(7)]}function write_cfb_ctr(te,ne){switch(ne.type){case"base64":case"binary":break;case"buffer":case"array":ne.type="";break;case"file":return write_dl(ne.file,mo.write(te,{type:Wn?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+ne.bookType+"' files");default:throw new Error("Unrecognized type "+ne.type)}return mo.write(te,ne)}function write_zip_denouement(te,ne){var ie={},re=Wn?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(ne.compression&&(ie.compression="DEFLATE"),ne.password)ie.type=re;else switch(ne.type){case"base64":ie.type="base64";break;case"binary":ie.type="string";break;case"string":throw new Error("'string' output type invalid for '"+ne.bookType+"' files");case"buffer":case"file":ie.type=re;break;default:throw new Error("Unrecognized type "+ne.type)}var le=te.FullPaths?mo.write(te,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[ie.type]||ie.type,compression:!!ne.compression}):te.generate(ie);if("undefined"!=typeof Deno&&"string"==typeof le){if("binary"==ne.type||"base64"==ne.type)return le;le=new Uint8Array(s2ab(le))}return ne.password&&"undefined"!=typeof encrypt_agile?write_cfb_ctr(encrypt_agile(le,ne.password),ne):"file"===ne.type?write_dl(ne.file,le):"string"==ne.type?fr(le):le}function write_string_type(te,ne,ie){ie||(ie="");var re=ie+te;switch(ne.type){case"base64":return Base64_encode(_r(re));case"binary":return _r(re);case"string":return te;case"file":return write_dl(ne.file,re,"utf8");case"buffer":return Wn?Kn(re,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(re):write_string_type(re,{type:"binary"}).split("").map((function(te){return te.charCodeAt(0)}))}throw new Error("Unrecognized type "+ne.type)}function write_binary_type(te,ne){switch(ne.type){case"string":case"base64":case"binary":for(var ie="",re=0;re<te.length;++re)ie+=String.fromCharCode(te[re]);return"base64"==ne.type?Base64_encode(ie):"string"==ne.type?fr(ie):ie;case"file":return write_dl(ne.file,te);case"buffer":return te;default:throw new Error("Unrecognized type "+ne.type)}}function writeSync(te,ne){reset_cp(),check_wb(te);var ie=dup(ne||{});if(ie.cellStyles&&(ie.cellNF=!0,ie.sheetStubs=!0),"array"==ie.type){ie.type="binary";var re=writeSync(te,ie);return ie.type="array",s2ab(re)}var le=0;if(ie.sheet&&(le="number"==typeof ie.sheet?ie.sheet:te.SheetNames.indexOf(ie.sheet),!te.SheetNames[le]))throw new Error("Sheet not found: "+ie.sheet+" : "+typeof ie.sheet);switch(ie.bookType||"xlsb"){case"xml":case"xlml":return write_string_type(write_xlml(te,ie),ie);case"slk":case"sylk":return write_string_type(Oa.from_sheet(te.Sheets[te.SheetNames[le]],ie),ie);case"htm":case"html":return write_string_type(sheet_to_html(te.Sheets[te.SheetNames[le]],ie),ie);case"txt":return function write_stxt_type(te,ne){switch(ne.type){case"base64":return Base64_encode(te);case"binary":case"string":return te;case"file":return write_dl(ne.file,te,"binary");case"buffer":return Wn?Kn(te,"binary"):te.split("").map((function(te){return te.charCodeAt(0)}))}throw new Error("Unrecognized type "+ne.type)}(sheet_to_txt(te.Sheets[te.SheetNames[le]],ie),ie);case"csv":return write_string_type(sheet_to_csv(te.Sheets[te.SheetNames[le]],ie),ie,"\ufeff");case"dif":return write_string_type(Pa.from_sheet(te.Sheets[te.SheetNames[le]],ie),ie);case"dbf":return write_binary_type(La.from_sheet(te.Sheets[te.SheetNames[le]],ie),ie);case"prn":return write_string_type(Ba.from_sheet(te.Sheets[te.SheetNames[le]],ie),ie);case"rtf":return write_string_type(ts.from_sheet(te.Sheets[te.SheetNames[le]],ie),ie);case"eth":return write_string_type(Fa.from_sheet(te.Sheets[te.SheetNames[le]],ie),ie);case"fods":return write_string_type(write_ods(te,ie),ie);case"wk1":return write_binary_type(Ha.sheet_to_wk1(te.Sheets[te.SheetNames[le]],ie),ie);case"wk3":return write_binary_type(Ha.book_to_wk3(te,ie),ie);case"biff2":ie.biff||(ie.biff=2);case"biff3":ie.biff||(ie.biff=3);case"biff4":return ie.biff||(ie.biff=4),write_binary_type(write_biff_buf(te,ie),ie);case"biff5":ie.biff||(ie.biff=5);case"biff8":case"xla":case"xls":return ie.biff||(ie.biff=8),function write_cfb_type(te,ne){var ie=ne||{};return write_cfb_ctr(write_xlscfb(te,ie),ie)}(te,ie);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function write_zip_type(te,ne){var ie=dup(ne||{});return write_zip_denouement(write_zip(te,ie),ie)}(te,ie);default:throw new Error("Unrecognized bookType |"+ie.bookType+"|")}}function make_json_row(te,ne,ie,re,le,ce,de,ue){var me=encode_row(ie),ge=ue.defval,fe=ue.raw||!Object.prototype.hasOwnProperty.call(ue,"raw"),_e=!0,be=1===le?[]:{};if(1!==le)if(Object.defineProperty)try{Object.defineProperty(be,"__rowNum__",{value:ie,enumerable:!1})}catch(te){be.__rowNum__=ie}else be.__rowNum__=ie;if(!de||te[ie])for(var Ce=ne.s.c;Ce<=ne.e.c;++Ce){var ye=de?te[ie][Ce]:te[re[Ce]+me];if(void 0!==ye&&void 0!==ye.t){var we=ye.v;switch(ye.t){case"z":if(null==we)break;continue;case"e":we=0==we?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+ye.t)}if(null!=ce[Ce]){if(null==we)if("e"==ye.t&&null===we)be[ce[Ce]]=null;else if(void 0!==ge)be[ce[Ce]]=ge;else{if(!fe||null!==we)continue;be[ce[Ce]]=null}else be[ce[Ce]]=fe&&("n"!==ye.t||"n"===ye.t&&!1!==ue.rawNumbers)?we:format_cell(ye,we,ue);null!=we&&(_e=!1)}}else{if(void 0===ge)continue;null!=ce[Ce]&&(be[ce[Ce]]=ge)}}return{row:be,isempty:_e}}function sheet_to_json(te,ne){if(null==te||null==te["!ref"])return[];var ie={t:"n",v:0},re=0,le=1,ce=[],de=0,ue="",me={s:{r:0,c:0},e:{r:0,c:0}},ge=ne||{},fe=null!=ge.range?ge.range:te["!ref"];switch(1===ge.header?re=1:"A"===ge.header?re=2:Array.isArray(ge.header)?re=3:null==ge.header&&(re=0),typeof fe){case"string":me=safe_decode_range(fe);break;case"number":(me=safe_decode_range(te["!ref"])).s.r=fe;break;default:me=fe}re>0&&(le=0);var _e=encode_row(me.s.r),be=[],Ce=[],ye=0,we=0,ke=Array.isArray(te),Se=me.s.r,xe=0,Ee={};ke&&!te[Se]&&(te[Se]=[]);var Me=ge.skipHidden&&te["!cols"]||[],Ne=ge.skipHidden&&te["!rows"]||[];for(xe=me.s.c;xe<=me.e.c;++xe)if(!(Me[xe]||{}).hidden)switch(be[xe]=encode_col(xe),ie=ke?te[Se][xe]:te[be[xe]+_e],re){case 1:ce[xe]=xe-me.s.c;break;case 2:ce[xe]=be[xe];break;case 3:ce[xe]=ge.header[xe-me.s.c];break;default:if(null==ie&&(ie={w:"__EMPTY",t:"s"}),ue=de=format_cell(ie,null,ge),we=Ee[de]||0){do{ue=de+"_"+we++}while(Ee[ue]);Ee[de]=we,Ee[ue]=1}else Ee[de]=1;ce[xe]=ue}for(Se=me.s.r+le;Se<=me.e.r;++Se)if(!(Ne[Se]||{}).hidden){var Re=make_json_row(te,me,Se,be,re,ce,ke,ge);(!1===Re.isempty||(1===re?!1!==ge.blankrows:ge.blankrows))&&(Ce[ye++]=Re.row)}return Ce.length=ye,Ce}var Au=/"/g;function make_csv_row(te,ne,ie,re,le,ce,de,ue){for(var me=!0,ge=[],fe="",_e=encode_row(ie),be=ne.s.c;be<=ne.e.c;++be)if(re[be]){var Ce=ue.dense?(te[ie]||[])[be]:te[re[be]+_e];if(null==Ce)fe="";else if(null!=Ce.v){me=!1,fe=""+(ue.rawNumbers&&"n"==Ce.t?Ce.v:format_cell(Ce,null,ue));for(var ye=0,we=0;ye!==fe.length;++ye)if((we=fe.charCodeAt(ye))===le||we===ce||34===we||ue.forceQuotes){fe='"'+fe.replace(Au,'""')+'"';break}"ID"==fe&&(fe='"ID"')}else null==Ce.f||Ce.F?fe="":(me=!1,(fe="="+Ce.f).indexOf(",")>=0&&(fe='"'+fe.replace(Au,'""')+'"'));ge.push(fe)}return!1===ue.blankrows&&me?null:ge.join(de)}function sheet_to_csv(te,ne){var ie=[],re=null==ne?{}:ne;if(null==te||null==te["!ref"])return"";var le=safe_decode_range(te["!ref"]),ce=void 0!==re.FS?re.FS:",",de=ce.charCodeAt(0),ue=void 0!==re.RS?re.RS:"\n",me=ue.charCodeAt(0),ge=new RegExp(("|"==ce?"\\|":ce)+"+$"),fe="",_e=[];re.dense=Array.isArray(te);for(var be=re.skipHidden&&te["!cols"]||[],Ce=re.skipHidden&&te["!rows"]||[],ye=le.s.c;ye<=le.e.c;++ye)(be[ye]||{}).hidden||(_e[ye]=encode_col(ye));for(var we=0,ke=le.s.r;ke<=le.e.r;++ke)(Ce[ke]||{}).hidden||null!=(fe=make_csv_row(te,le,ke,_e,de,me,ce,re))&&(re.strip&&(fe=fe.replace(ge,"")),(fe||!1!==re.blankrows)&&ie.push((we++?ue:"")+fe));return delete re.dense,ie.join("")}function sheet_to_txt(te,ne){ne||(ne={}),ne.FS="\t",ne.RS="\n";var ie=sheet_to_csv(te,ne);if(void 0===Hn||"string"==ne.type)return ie;var re=Hn.utils.encode(1200,ie,"str");return String.fromCharCode(255)+String.fromCharCode(254)+re}function sheet_add_json(te,ne,ie){var re,le=ie||{},ce=+!le.skipHeader,de=te||{},ue=0,me=0;if(de&&null!=le.origin)if("number"==typeof le.origin)ue=le.origin;else{var ge="string"==typeof le.origin?decode_cell(le.origin):le.origin;ue=ge.r,me=ge.c}var fe={s:{c:0,r:0},e:{c:me,r:ue+ne.length-1+ce}};if(de["!ref"]){var _e=safe_decode_range(de["!ref"]);fe.e.c=Math.max(fe.e.c,_e.e.c),fe.e.r=Math.max(fe.e.r,_e.e.r),-1==ue&&(ue=_e.e.r+1,fe.e.r=ue+ne.length-1+ce)}else-1==ue&&(ue=0,fe.e.r=ne.length-1+ce);var be=le.header||[],Ce=0;ne.forEach((function(te,ne){keys(te).forEach((function(ie){-1==(Ce=be.indexOf(ie))&&(be[Ce=be.length]=ie);var ge=te[ie],fe="z",_e="",ye=encode_cell({c:me+Ce,r:ue+ne+ce});re=ws_get_cell_stub(de,ye),!ge||"object"!=typeof ge||ge instanceof Date?("number"==typeof ge?fe="n":"boolean"==typeof ge?fe="b":"string"==typeof ge?fe="s":ge instanceof Date?(fe="d",le.cellDates||(fe="n",ge=datenum(ge)),_e=le.dateNF||ki[14]):null===ge&&le.nullError&&(fe="e",ge=0),re?(re.t=fe,re.v=ge,delete re.w,delete re.R,_e&&(re.z=_e)):de[ye]=re={t:fe,v:ge},_e&&(re.z=_e)):de[ye]=ge}))})),fe.e.c=Math.max(fe.e.c,me+be.length-1);var ye=encode_row(ue);if(ce)for(Ce=0;Ce<be.length;++Ce)de[encode_col(Ce+me)+ye]={t:"s",v:be[Ce]};return de["!ref"]=encode_range(fe),de}function ws_get_cell_stub(te,ne,ie){if("string"==typeof ne){if(Array.isArray(te)){var re=decode_cell(ne);return te[re.r]||(te[re.r]=[]),te[re.r][re.c]||(te[re.r][re.c]={t:"z"})}return te[ne]||(te[ne]={t:"z"})}return ws_get_cell_stub(te,encode_cell("number"!=typeof ne?ne:{r:ne,c:ie||0}))}function book_new(){return{SheetNames:[],Sheets:{}}}function book_append_sheet(te,ne,ie,re){var le=1;if(!ie)for(;le<=65535&&-1!=te.SheetNames.indexOf(ie="Sheet"+le);++le,ie=void 0);if(!ie||te.SheetNames.length>=65535)throw new Error("Too many worksheets");if(re&&te.SheetNames.indexOf(ie)>=0){var ce=ie.match(/(^.*?)(\d+)$/);le=ce&&+ce[2]||0;var de=ce&&ce[1]||ie;for(++le;le<=65535&&-1!=te.SheetNames.indexOf(ie=de+le);++le);}if(check_ws_name(ie),te.SheetNames.indexOf(ie)>=0)throw new Error("Worksheet with name |"+ie+"| already exists!");return te.SheetNames.push(ie),te.Sheets[ie]=ne,ie}function cell_set_hyperlink(te,ne,ie){return ne?(te.l={Target:ne},ie&&(te.l.Tooltip=ie)):delete te.l,te}var Hu={encode_col,encode_row,encode_cell,encode_range,decode_col,decode_row,split_cell:function split_cell(te){return te.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell,decode_range,format_cell,sheet_add_aoa,sheet_add_json,sheet_add_dom,aoa_to_sheet,json_to_sheet:function json_to_sheet(te,ne){return sheet_add_json(null,te,ne)},table_to_sheet:parse_dom_table,table_to_book:function table_to_book(te,ne){return sheet_to_workbook(parse_dom_table(te,ne),ne)},sheet_to_csv,sheet_to_txt,sheet_to_json,sheet_to_html,sheet_to_formulae:function sheet_to_formulae(te){var ne,ie="",re="";if(null==te||null==te["!ref"])return[];var le,ce=safe_decode_range(te["!ref"]),de="",ue=[],me=[],ge=Array.isArray(te);for(le=ce.s.c;le<=ce.e.c;++le)ue[le]=encode_col(le);for(var fe=ce.s.r;fe<=ce.e.r;++fe)for(de=encode_row(fe),le=ce.s.c;le<=ce.e.c;++le)if(ie=ue[le]+de,re="",void 0!==(ne=ge?(te[fe]||[])[le]:te[ie])){if(null!=ne.F){if(ie=ne.F,!ne.f)continue;re=ne.f,-1==ie.indexOf(":")&&(ie=ie+":"+ie)}if(null!=ne.f)re=ne.f;else{if("z"==ne.t)continue;if("n"==ne.t&&null!=ne.v)re=""+ne.v;else if("b"==ne.t)re=ne.v?"TRUE":"FALSE";else if(void 0!==ne.w)re="'"+ne.w;else{if(void 0===ne.v)continue;re="s"==ne.t?"'"+ne.v:""+ne.v}}me[me.length]=ie+"="+re}return me},sheet_to_row_object_array:sheet_to_json,sheet_get_cell:ws_get_cell_stub,book_new,book_append_sheet,book_set_sheet_visibility:function book_set_sheet_visibility(te,ne,ie){te.Workbook||(te.Workbook={}),te.Workbook.Sheets||(te.Workbook.Sheets=[]);var re=function wb_sheet_idx(te,ne){if("number"==typeof ne){if(ne>=0&&te.SheetNames.length>ne)return ne;throw new Error("Cannot find sheet # "+ne)}if("string"==typeof ne){var ie=te.SheetNames.indexOf(ne);if(ie>-1)return ie;throw new Error("Cannot find sheet name |"+ne+"|")}throw new Error("Cannot find sheet |"+ne+"|")}(te,ne);switch(te.Workbook.Sheets[re]||(te.Workbook.Sheets[re]={}),ie){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+ie)}te.Workbook.Sheets[re].Hidden=ie},cell_set_number_format:function cell_set_number_format(te,ne){return te.z=ne,te},cell_set_hyperlink,cell_set_internal_link:function cell_set_internal_link(te,ne,ie){return cell_set_hyperlink(te,"#"+ne,ie)},cell_add_comment:function cell_add_comment(te,ne,ie){te.c||(te.c=[]),te.c.push({t:ne,a:ie||"SheetJS"})},sheet_set_array_formula:function sheet_set_array_formula(te,ne,ie,re){for(var le="string"!=typeof ne?ne:safe_decode_range(ne),ce="string"==typeof ne?ne:encode_range(ne),de=le.s.r;de<=le.e.r;++de)for(var ue=le.s.c;ue<=le.e.c;++ue){var me=ws_get_cell_stub(te,de,ue);me.t="n",me.F=ce,delete me.v,de==le.s.r&&ue==le.s.c&&(me.f=ie,re&&(me.D=!0))}return te},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};Fn.version;const Xu=["popupColunas"];function BrListToolbarComponent_ng_template_18_ng_container_0_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"a",26),ce.bIt("click",(function BrListToolbarComponent_ng_template_18_ng_container_0_Template_a_click_1_listener(ne){ce.eBV(te);const ie=ce.XpG().$implicit;return ce.Njj(ie.command(ne))})),ce.j41(2,"span",27),ce.nrm(3,"i",28),ce.j41(4,"input",29),ce.mxI("ngModelChange",(function BrListToolbarComponent_ng_template_18_ng_container_0_Template_input_ngModelChange_4_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.DH7(ie.searchColumnValue,ne)||(ie.searchColumnValue=ne),ce.Njj(ne)})),ce.bIt("input",(function BrListToolbarComponent_ng_template_18_ng_container_0_Template_input_input_4_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.onSearchColumnInput())}))("keydown.enter",(function BrListToolbarComponent_ng_template_18_ng_container_0_Template_input_keydown_enter_4_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.montaColunasMenu())})),ce.k0s()()(),ce.bVm()}if(2&te){const te=ce.XpG(2);ce.R7$(4),ce.R50("ngModel",te.searchColumnValue),ce.Y8G("autofocus",!0)}}function BrListToolbarComponent_ng_template_18_ng_container_1_span_2_Template(te,ne){if(1&te&&ce.nrm(0,"span",33),2&te){const te=ce.XpG(2).$implicit;ce.HbH(te.icon),ce.Y8G("id","icon;"+te.id)}}function BrListToolbarComponent_ng_template_18_ng_container_1_i_5_Template(te,ne){1&te&&ce.nrm(0,"i",34)}function BrListToolbarComponent_ng_template_18_ng_container_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"a",30),ce.bIt("click",(function BrListToolbarComponent_ng_template_18_ng_container_1_Template_a_click_1_listener(ne){ce.eBV(te);const ie=ce.XpG(),re=ie.hasSubmenu,le=ie.$implicit;return ce.Njj(re?void 0:le.command(ne))})),ce.DNE(2,BrListToolbarComponent_ng_template_18_ng_container_1_span_2_Template,1,3,"span",31),ce.j41(3,"span"),ce.EFF(4),ce.k0s(),ce.DNE(5,BrListToolbarComponent_ng_template_18_ng_container_1_i_5_Template,1,0,"i",32),ce.k0s(),ce.bVm()}if(2&te){const te=ce.XpG(),ne=te.$implicit,ie=te.hasSubmenu;ce.R7$(2),ce.Y8G("ngIf",ne.icon),ce.R7$(2),ce.JRh(ne.label),ce.R7$(),ce.Y8G("ngIf",ie)}}function BrListToolbarComponent_ng_template_18_Template(te,ne){if(1&te&&ce.DNE(0,BrListToolbarComponent_ng_template_18_ng_container_0_Template,5,2,"ng-container",25)(1,BrListToolbarComponent_ng_template_18_ng_container_1_Template,6,3,"ng-container",25),2&te){const te=ne.$implicit;ce.Y8G("ngIf","search-colunas"===te.id),ce.R7$(),ce.Y8G("ngIf","search-colunas"!==te.id)}}function BrListToolbarComponent_ng_template_23_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",37),2&te){const te=ce.XpG().$implicit;ce.HbH(te.icon)}}function BrListToolbarComponent_ng_template_23_i_4_Template(te,ne){1&te&&ce.nrm(0,"i",34)}function BrListToolbarComponent_ng_template_23_Template(te,ne){if(1&te&&(ce.j41(0,"a",35),ce.DNE(1,BrListToolbarComponent_ng_template_23_span_1_Template,1,2,"span",36),ce.j41(2,"span"),ce.EFF(3),ce.k0s(),ce.DNE(4,BrListToolbarComponent_ng_template_23_i_4_Template,1,0,"i",32),ce.k0s()),2&te){const te=ne.$implicit,ie=ne.hasSubmenu;ce.R7$(),ce.Y8G("ngIf",te.icon),ce.R7$(2),ce.JRh(te.label),ce.R7$(),ce.Y8G("ngIf",ie)}}function BrListToolbarComponent_ng_template_28_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",37),2&te){const te=ce.XpG().$implicit;ce.HbH(te.icon)}}function BrListToolbarComponent_ng_template_28_i_4_Template(te,ne){1&te&&ce.nrm(0,"i",34)}function BrListToolbarComponent_ng_template_28_Template(te,ne){if(1&te&&(ce.j41(0,"a",35),ce.DNE(1,BrListToolbarComponent_ng_template_28_span_1_Template,1,2,"span",36),ce.j41(2,"span"),ce.EFF(3),ce.k0s(),ce.DNE(4,BrListToolbarComponent_ng_template_28_i_4_Template,1,0,"i",32),ce.k0s()),2&te){const te=ne.$implicit,ie=ne.hasSubmenu;ce.R7$(),ce.Y8G("ngIf",te.icon),ce.R7$(2),ce.JRh(te.label),ce.R7$(),ce.Y8G("ngIf",ie)}}function BrListToolbarComponent_p_button_29_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-button",38),ce.bIt("onClick",(function BrListToolbarComponent_p_button_29_Template_p_button_onClick_0_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.onClose())})),ce.nrm(1,"i",39),ce.k0s()}if(2&te){const te=ce.XpG();ce.Y8G("pTooltip",te.vertical||(null==te.brListElementRef?null:te.brListElementRef.nativeElement.offsetWidth)<1080?"Fechar":"")("disabled",te.isLoading)}}const br_list_toolbar_component_c1=(te,ne,ie)=>({small:te,vertical:ne,"button-icon-only":ie});ie(5734);var Ju=function(te){return te[te.EXCEL=0]="EXCEL",te[te.CSV=1]="CSV",te[te.PDF=2]="PDF",te}(Ju||{});let ap=(()=>{class BrListToolbarComponent{constructor(){this.tabRef=(0,ce.WQX)(Me.l,{optional:!0}),this.confirmationService=(0,ce.WQX)(de.td),this.document=(0,ce.WQX)(le.qQ),this.renderer=(0,ce.WQX)(ce.sFG),this.tabService=(0,ce.WQX)(Xe.r),this.logAcessoService=(0,ce.WQX)(Pn.C),this.brMessageService=(0,ce.WQX)(Ne.h),this.vertical=!1,this.menuFerramentas=[],this.menuColunas=[]}get brListState(){return this.brListService.state}get brListElementRef(){return this.brListService.brListElementRef}get selectedRows(){return this.brListService.selectedRows}get recordPkName(){return this.brListService.recordPkName}get columns(){return this.brListService.columns}get everyBrFormControl(){return this.brListService.everyBrFormControl}get columnAgrupamento(){return this.brListService.columnAgrupamento}get isIntegrado(){return this.brListService.state.isIntegrado}get menuMais(){return this.brListService.menuMais||[]}get filters(){return{...this.brListService.appliedFilters,...this.brListService.fixedFilters}}get isLoading(){return this.brListService.state.isLoading}set isLoading(te){this.brListService.state.isLoading=te}get isReadOnly(){return this.brListService.state.isReadOnly}ngOnInit(){this.montaColunasMenu(),this.menuFerramentas=[{label:"Histórico",icon:"pi pi-history",command:()=>this.openLogDb()},{label:"Exportar",icon:"pi pi-share-alt",items:[{label:"PDF",icon:"pi pi-file-pdf",command:()=>this.exportFile(Ju.PDF)},{label:"CSV",icon:"pi pi-file",command:()=>this.exportFile(Ju.CSV)},{label:"Excel",icon:"pi pi-file-excel",command:()=>this.exportFile(Ju.EXCEL)}]},{label:"Ativar/Desativar",icon:"pi pi-power-off",command:()=>{if(0===this.selectedRows?.length)return void this.brMessageService.info("É necessário selecionar algum registro antes");if(this.isLoading)return;const te=this.selectedRows.map((te=>te[this.recordPkName]));this.isLoading=!0,this.brListService.toggleStatusRegistro(te).pipe((0,Ce.W)((()=>(this.brMessageService.error(),ye.w))),(0,we.M)((()=>this.brMessageService.success())),(0,ke.n)((()=>this.brListService.refreshData())),(0,Se.j)((()=>this.isLoading=!1))).subscribe()}}]}onNew(){(0,Ke.eo)(this.brListService.formDetails),this.brListService.openDetails()}onEdit(){(0,Ke.eo)(this.brListService.formDetails),this.brListService.openDetails(this.selectedRows[0][this.recordPkName])}onView(){(0,Ke.LL)(this.brListService.formDetails),this.brListService.openDetails(this.selectedRows[0][this.recordPkName])}onRefresh(){this.brListService.refreshData().subscribe()}onFilter(){this.brListState.isFilterLoading=!0,this.brListState.isFilterOpen=!0}onDelete(){const te=this.selectedRows.map((te=>`<strong>${te[this.recordPkName]}</strong>`)),ne=this.confirmationService.confirm({header:"Apagando registros",message:te.length>1?`Tem certeza que deseja apagar os registros ${te.join(", ")}?`:`Tem certeza que deseja apagar o registro ${te.join(", ")}?`,icon:de.EE.EXCLAMATION_TRIANGLE,rejectLabel:"Cancelar",acceptLabel:"Apagar",rejectIcon:"pi pi-times mr-2",acceptIcon:"pi pi-trash mr-2",acceptButtonStyleClass:"p-button-danger",rejectButtonStyleClass:"p-button-danger p-button-outlined",key:this.keyConfirmDialog,accept:()=>this.deleteSelectedRows(),reject:()=>ne.close()})}onClose(){this.tabRef?.close()}montaColunasMenu(){clearTimeout(this.inputTimeout);let te=this.columns;this.searchColumnValue&&(te=te.filter((te=>(0,Oe.S)(te.label??this.brListService.getColumnLabelFromBrControl(te.formControlName)).includes((0,Oe.S)(this.searchColumnValue))))),this.menuColunas=[{label:"Agrupar por",icon:"pi pi-bars",items:[{label:"Input de busca das colunas",id:"search-colunas",command:te=>{te.stopPropagation()}},{disabled:!this.columnAgrupamento,label:"Nenhum",command:te=>{this.brListService.onAgrupamento(void 0),this.montaColunasMenu(),te.stopPropagation()}},...te.map((te=>({disabled:!0===te.groupBy||!te.brFormControl,label:te.label??this.brListService.getColumnLabelFromBrControl(te.formControlName),command:ne=>{this.brListService.onAgrupamento(te),this.montaColunasMenu(),ne.stopPropagation()}})))]},{label:"Visualizar",icon:"pi pi-eye",items:[{label:"Input de busca das colunas",id:"search-colunas",command:te=>{te.stopPropagation()}},...te.map((te=>({label:te.label??this.brListService.getColumnLabelFromBrControl(te.formControlName),id:te.fieldPath,icon:!1!==te.visible?"pi pi-check":"pi pi-times",command:ne=>{this.brListService.toggleColumnVisibility(te),this.changeColumnVisibilityIcon(te.fieldPath),ne.stopPropagation()}})))]}]}onSearchColumnInput(){clearTimeout(this.inputTimeout),this.inputTimeout=setTimeout((()=>{this.montaColunasMenu()}),200)}exportFile(te){switch(te){case Ju.CSV:this.exportCSV();break;case Ju.PDF:this.exportPdf();break;case Ju.EXCEL:this.exportExcel()}}openColunasMenu(te){this.montaColunasMenu(),this.popupColunas.onKeyDown=()=>{},this.popupColunas.toggle(te)}changeColumnVisibilityIcon(te){const ne=this.document.getElementById(`icon;${te}`);ne?.classList.contains("pi-times")?(this.renderer.removeClass(ne,"pi-times"),this.renderer.addClass(ne,"pi-check")):ne?.classList.contains("pi-check")&&(this.renderer.removeClass(ne,"pi-check"),this.renderer.addClass(ne,"pi-times"))}deleteSelectedRows(){const te=this.selectedRows.map((te=>te[this.recordPkName]));this.brListService.idRowDetails&&te.includes(this.brListService.idRowDetails)&&(this.brListService.state.isDetailsOpen=!1);(this.selectedRows.length>1?this.brListService.multipleDelete(te):this.brListService.singleDelete(te[0])).subscribe((()=>this.onRefresh()))}exportPdf(){this.brListService.state.isLoading=!0;const te={...this.filters,pageSize:"all"};this.brListService.filterRecords(te).pipe((0,Se.j)((()=>this.brListService.state.isLoading=!1))).subscribe((ne=>{this.logAcessoService.addEvento(Pn.X.GerarRelatorioPdf,{descricao:JSON.stringify(te),registrarRotinaMenu:!0});const ie=new(hn())({orientation:"landscape",unit:"px"});ie.autoTable(this.columns.map((te=>({title:te.label??this.brListService.getColumnLabelFromBrControl(te.formControlName),dataKey:te.fieldPath}))),ne.data.map((te=>(0,dn.B)(te)))),ie.save("tabela.pdf")}))}exportExcel(){const te=new le.vh("en-US");this.brListService.state.isLoading=!0;const ne={...this.filters,pageSize:"all"};this.brListService.filterRecords(ne).pipe((0,Se.j)((()=>this.brListService.state.isLoading=!1))).subscribe((ie=>{this.logAcessoService.addEvento(Pn.X.GerarRelatorioXlsx,{descricao:JSON.stringify(ne),registrarRotinaMenu:!0});const re=writeSync({Sheets:{data:Hu.json_to_sheet(ie.data.map((ne=>{const ie={};for(const re of this.columns){if(!re.fieldPath)continue;let le=dt.get(ne,re.fieldPath);re.typeColumn===$e.Ii.Date&&(le=te.transform(le,"dd/MM/yyyy")),ie[re.label??this.brListService.getColumnLabelFromBrControl(re.formControlName)]=le}return ie})))},SheetNames:["data"]},{bookType:"xlsx",type:"array"}),le=new Blob([re],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});un.saveAs(le,"dados_export_"+(new Date).getTime()+".xlsx")}))}exportCSV(){this.brListService.state.isLoading=!0;const te={...this.filters,pageSize:"all"};this.brListService.filterRecords(te).pipe((0,Se.j)((()=>this.brListService.state.isLoading=!1))).subscribe((ne=>{this.logAcessoService.addEvento(Pn.X.GerarRelatorioCsv,{descricao:JSON.stringify(te),registrarRotinaMenu:!0});const ie=Y({filename:"dados",columnHeaders:this.columns.map((te=>({displayLabel:te.label??this.brListService.getColumnLabelFromBrControl(te.formControlName),key:te.fieldPath||""})))}),re=Gx(ie)(ne.data.map((te=>(0,dn.B)(te))));var le;(le=ie,te=>{if(!window)throw new output_$("Downloading only supported in a browser environment.");const ne=Y(le),ie=te,re=ne.useTextFile?"plain":"csv",ce=ne.useTextFile?"txt":"csv";let de=new Blob([ie],{type:`text/${re};charset=utf8;`}),ue=document.createElement("a");ue.download=`${ne.filename}.${ce}`,ue.href=URL.createObjectURL(de),ue.setAttribute("visibility","hidden"),document.body.appendChild(ue),ue.click(),document.body.removeChild(ue)})(re)}))}openLogDb(){const te=this.selectedRows.map((te=>te[this.recordPkName])),ne=ie(5433).G;this.tabService.open({header:"Histórico",icon:"pi pi-user-edit",component:ne,data:{appliedFilters:{chaveRegistro:te,nomeService:this.brListService.classeIncorp}}})}static#e=this.ɵfac=function BrListToolbarComponent_Factory(te){return new(te||BrListToolbarComponent)};static#t=this.ɵcmp=ce.VBU({type:BrListToolbarComponent,selectors:[["br-list-toolbar"]],viewQuery:function BrListToolbarComponent_Query(te,ne){if(1&te&&ce.GBs(Xu,5),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.popupColunas=te.first)}},inputs:{brListService:"brListService",keyConfirmDialog:"keyConfirmDialog",vertical:"vertical"},standalone:!0,features:[ce.aNF],decls:30,vars:35,consts:[["styleClass","p-3"],[1,"p-toolbar-group-start",2,"cursor","not-allowed",3,"ngClass"],["label","Novo","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick"],[1,"pi","pi-plus"],["label","Alterar","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick"],[1,"pi","pi-pencil"],["label","Visualizar","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick"],[1,"pi","pi-eye"],["label","Apagar","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick"],[1,"pi","pi-trash"],["label","Atualizar","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick"],["label","Filtros","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick"],[1,"pi","pi-filter"],["label","Colunas","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick"],[1,"pi","pi-bars","rotate-90"],["appendTo","body",3,"model","popup","autoDisplay"],["popupColunas",""],["pTemplate","item"],["label","Mais","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick"],[1,"pi","pi-ellipsis-h"],["popupMais",""],["label","Ferramentas","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick"],[1,"pi","pi-wrench"],["popupTools",""],["label","Fechar","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick",4,"ngIf"],[4,"ngIf"],[1,"flex","align-items-center","cursor-auto","p-2",3,"click"],[1,"p-input-icon-left","w-full"],[1,"pi","pi-search"],["type","text","brInputText","","pAutoFocus","","placeholder","Buscar",1,"py-2","pr-2","w-full",3,"ngModel","autofocus","ngModelChange","input","keydown.enter"],[1,"flex","align-items-center","p-menuitem-link",2,"height","35px",3,"click"],["class","p-menuitem-icon mr-2",3,"id","class",4,"ngIf"],["class","pi pi-angle-right ml-auto","style","font-size: 0.875rem; width: 0.875rem; height: 0.875rem",4,"ngIf"],[1,"p-menuitem-icon","mr-2",3,"id"],[1,"pi","pi-angle-right","ml-auto",2,"font-size","0.875rem","width","0.875rem","height","0.875rem"],[1,"flex","align-items-center","p-menuitem-link",2,"height","35px"],["class","p-menuitem-icon mr-2",3,"class",4,"ngIf"],[1,"p-menuitem-icon","mr-2"],["label","Fechar","styleClass","flex flex-column justify-content-center",3,"pTooltip","disabled","onClick"],[1,"pi","pi-times"]],template:function BrListToolbarComponent_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-toolbar",0)(1,"div",1)(2,"p-button",2),ce.bIt("onClick",(function BrListToolbarComponent_Template_p_button_onClick_2_listener(){return ne.onNew()})),ce.nrm(3,"i",3),ce.k0s(),ce.j41(4,"p-button",4),ce.bIt("onClick",(function BrListToolbarComponent_Template_p_button_onClick_4_listener(){return ne.onEdit()})),ce.nrm(5,"i",5),ce.k0s(),ce.j41(6,"p-button",6),ce.bIt("onClick",(function BrListToolbarComponent_Template_p_button_onClick_6_listener(){return ne.onView()})),ce.nrm(7,"i",7),ce.k0s(),ce.j41(8,"p-button",8),ce.bIt("onClick",(function BrListToolbarComponent_Template_p_button_onClick_8_listener(){return ne.onDelete()})),ce.nrm(9,"i",9),ce.k0s(),ce.j41(10,"p-button",10),ce.bIt("onClick",(function BrListToolbarComponent_Template_p_button_onClick_10_listener(){return ne.onRefresh()})),ce.nrm(11,"i"),ce.k0s(),ce.j41(12,"p-button",11),ce.bIt("onClick",(function BrListToolbarComponent_Template_p_button_onClick_12_listener(){return ne.onFilter()})),ce.nrm(13,"i",12),ce.k0s(),ce.j41(14,"p-button",13),ce.bIt("onClick",(function BrListToolbarComponent_Template_p_button_onClick_14_listener(te){return ne.openColunasMenu(te)})),ce.nrm(15,"i",14),ce.k0s(),ce.j41(16,"p-tieredMenu",15,16),ce.DNE(18,BrListToolbarComponent_ng_template_18_Template,2,2,"ng-template",17),ce.k0s(),ce.j41(19,"p-button",18),ce.bIt("onClick",(function BrListToolbarComponent_Template_p_button_onClick_19_listener(ne){ce.eBV(te);const ie=ce.sdS(22);return ce.Njj(ie.toggle(ne))})),ce.nrm(20,"i",19),ce.k0s(),ce.j41(21,"p-tieredMenu",15,20),ce.DNE(23,BrListToolbarComponent_ng_template_23_Template,5,3,"ng-template",17),ce.k0s(),ce.j41(24,"p-button",21),ce.bIt("onClick",(function BrListToolbarComponent_Template_p_button_onClick_24_listener(ne){ce.eBV(te);const ie=ce.sdS(27);return ce.Njj(ie.toggle(ne))})),ce.nrm(25,"i",22),ce.k0s(),ce.j41(26,"p-tieredMenu",15,23),ce.DNE(28,BrListToolbarComponent_ng_template_28_Template,5,3,"ng-template",17),ce.k0s(),ce.DNE(29,BrListToolbarComponent_p_button_29_Template,2,2,"p-button",24),ce.k0s()()}2&te&&(ce.R7$(),ce.Y8G("ngClass",ce.sMw(31,br_list_toolbar_component_c1,(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1250,ne.vertical,(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1080)),ce.R7$(),ce.Y8G("pTooltip",ne.vertical||(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1080?"Novo":"")("disabled",ne.isLoading||!ne.brListState.podeInserir),ce.R7$(2),ce.Y8G("pTooltip",ne.vertical||(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1080?"Alterar":"")("disabled",ne.isLoading||!(1===ne.selectedRows.length)||!ne.brListState.podeAlterar),ce.R7$(2),ce.Y8G("pTooltip",ne.vertical||(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1080?"Visualizar":"")("disabled",ne.isLoading||!(1===ne.selectedRows.length)||!ne.brListState.podeVer),ce.R7$(2),ce.Y8G("pTooltip",ne.vertical||(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1080?"Apagar":"")("disabled",ne.isLoading||!ne.selectedRows.length||!ne.brListState.podeApagar),ce.R7$(2),ce.Y8G("pTooltip",ne.vertical||(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1080?"Atualizar":"")("disabled",ne.isLoading),ce.R7$(),ce.HbH("pi pi-refresh "+(ne.isLoading?"pi-spin":"")),ce.R7$(),ce.Y8G("pTooltip",ne.vertical||(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1080?"Filtros":"")("disabled",ne.isLoading),ce.R7$(2),ce.Y8G("pTooltip",ne.vertical||(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1080?"Colunas":"")("disabled",ne.isLoading||!ne.columns.length),ce.R7$(2),ce.Y8G("model",ne.menuColunas)("popup",!0)("autoDisplay",!1),ce.R7$(3),ce.Y8G("pTooltip",ne.vertical||(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1080?"Mais":"")("disabled",ne.isLoading||!ne.menuMais.length),ce.R7$(2),ce.Y8G("model",ne.menuMais)("popup",!0)("autoDisplay",!1),ce.R7$(3),ce.Y8G("pTooltip",ne.vertical||(null==ne.brListElementRef?null:ne.brListElementRef.nativeElement.offsetWidth)<1080?"Ferramentas":"")("disabled",ne.isLoading||!ne.menuFerramentas.length),ce.R7$(2),ce.Y8G("model",ne.menuFerramentas)("popup",!0)("autoDisplay",!1),ce.R7$(3),ce.Y8G("ngIf",!ne.isIntegrado))},dependencies:[le.MD,le.YU,le.bT,ze.YN,ze.me,ze.BC,ze.vS,On,Ln,de.Ei,Fe.tm,Fe.$n,En,xn,Vt.m,Gt.B,Vt.S],styles:["[_nghost-%COMP%]     p-toolbar .p-toolbar{background-color:var(--primary-color);border-radius:1rem;border:0!important;padding:0!important}[_nghost-%COMP%]     p-toolbar .p-toolbar p-button .p-button{border-radius:0%;padding:.75rem 1rem;border:none;transition:opacity .3s,background-color .3s}[_nghost-%COMP%]     p-toolbar .p-toolbar p-button .p-button .p-button-label{font-weight:500}[_nghost-%COMP%]     p-toolbar .p-toolbar p-button:first-of-type, [_nghost-%COMP%]     p-toolbar .p-toolbar p-button:first-of-type .p-button{border-bottom-left-radius:1rem;border-top-left-radius:1rem}[_nghost-%COMP%]     p-toolbar .p-toolbar p-button:last-of-type, [_nghost-%COMP%]     p-toolbar .p-toolbar p-button:last-of-type .p-button{border-bottom-right-radius:1rem;border-top-right-radius:1rem}[_nghost-%COMP%]     p-toolbar .p-toolbar .p-button:enabled:hover{background-color:var(--menu-profundidade-1)!important;color:var(--primary-color-text)!important}[_nghost-%COMP%]     p-toolbar .p-toolbar .p-button:focus{box-shadow:none!important}[_nghost-%COMP%]     p-toolbar .p-toolbar .small p-button .p-button{padding:.75rem}[_nghost-%COMP%]     p-toolbar .p-toolbar .small p-button .p-button i{font-size:.9rem}[_nghost-%COMP%]     p-toolbar .p-toolbar .button-icon-only p-button .p-button i{font-size:1rem}[_nghost-%COMP%]     p-toolbar .p-toolbar .button-icon-only p-button .p-button .p-button-label{display:none}[_nghost-%COMP%]     p-toolbar .p-toolbar:has(.vertical){width:-moz-fit-content;width:fit-content}[_nghost-%COMP%]     p-toolbar .p-toolbar:has(.vertical) .vertical{flex-direction:column}[_nghost-%COMP%]     p-toolbar .p-toolbar:has(.vertical) .vertical p-button .p-button i{font-size:1rem}[_nghost-%COMP%]     p-toolbar .p-toolbar:has(.vertical) .vertical p-button .p-button .p-button-label{display:none}[_nghost-%COMP%]     p-toolbar .p-toolbar:has(.vertical) .vertical p-button .p-button:first-of-type, [_nghost-%COMP%]     p-toolbar .p-toolbar:has(.vertical) .vertical p-button .p-button:first-of-type .p-button{border-top-right-radius:1rem;border-top-left-radius:1rem}[_nghost-%COMP%]     p-toolbar .p-toolbar:has(.vertical) .vertical p-button .p-button:last-of-type, [_nghost-%COMP%]     p-toolbar .p-toolbar:has(.vertical) .vertical p-button .p-button:last-of-type .p-button{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}[_nghost-%COMP%]     .submenu-brtoolbar .p-submenu-header{display:none}[_nghost-%COMP%]     .submenu-brtoolbar .p-menu.p-menu-overlay{top:50px!important}[_nghost-%COMP%]     .menu-close-mask{height:100vw;width:100vw;position:fixed;z-index:4;top:0;left:0}"]})}return BrListToolbarComponent})();const sp=["toolbar"],dp=["toolbarVertical"],pp=["table"],hp=["details"],fp=["novo"],_p=["alterar"],bp=["visualizar"],vp=["filtro"],yp=["brlist"],wp=["columnTh"];function BrListComponent_ng_container_3_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function BrListComponent_ng_container_3_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListComponent_ng_container_3_ng_container_1_Template,1,0,"ng-container",10),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngTemplateOutlet",te.toolbarVerticalTemplate)}}function BrListComponent_ng_template_4_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.nrm(1,"br-list-toolbar",12),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("brListService",te.brListService)("keyConfirmDialog",te.keyConfirmDialog)("vertical",!0)}}function BrListComponent_ng_template_4_Template(te,ne){if(1&te&&ce.DNE(0,BrListComponent_ng_template_4_ng_container_0_Template,2,3,"ng-container",11),2&te){ce.XpG();const te=ce.sdS(1);ce.Y8G("ngIf",te.offsetWidth<1235)}}function BrListComponent_ng_container_6_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function BrListComponent_ng_container_6_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListComponent_ng_container_6_ng_container_1_Template,1,0,"ng-container",10),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngTemplateOutlet",te.toolbarTemplate)}}function BrListComponent_ng_template_7_p_chip_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-chip",21),ce.bIt("click",(function BrListComponent_ng_template_7_p_chip_2_Template_p_chip_click_0_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.onLeftChipClick())})),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.Y8G("@fade",void 0)("icon",te.leftChipIcon)("label",te.leftChipLabel)("removable",!1)("styleClass",te.leftChipClass)}}function BrListComponent_ng_template_7_p_chip_3_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-chip",22),ce.bIt("click",(function BrListComponent_ng_template_7_p_chip_3_Template_p_chip_click_0_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.onClearFiltersClick())})),ce.k0s()}2&te&&ce.Y8G("@fade",void 0)("removable",!1)}function BrListComponent_ng_template_7_div_4_Template(te,ne){if(1&te&&(ce.j41(0,"div",23),ce.nrm(1,"br-list-toolbar",24),ce.k0s()),2&te){const te=ce.XpG(2);ce.Y8G("@fade",void 0),ce.R7$(),ce.Y8G("brListService",te.brListService)("keyConfirmDialog",te.keyConfirmDialog)}}function BrListComponent_ng_template_7_div_5_ng_container_1_p_chip_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-chip",28),ce.bIt("onRemove",(function BrListComponent_ng_template_7_div_5_ng_container_1_p_chip_1_Template_p_chip_onRemove_0_listener(){ce.eBV(te);const ne=ce.XpG().$implicit,ie=ce.XpG(3);return ce.Njj(ie.onFilterChipRemove(ne))})),ce.k0s()}if(2&te){const te=ce.XpG().$implicit;ce.Y8G("label",te.text)("removable",te.isRemovable)}}function BrListComponent_ng_template_7_div_5_ng_container_1_ng_container_2_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function BrListComponent_ng_template_7_div_5_ng_container_1_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListComponent_ng_template_7_div_5_ng_container_1_ng_container_2_ng_container_1_Template,1,0,"ng-container",29),ce.bVm()),2&te){const te=ce.XpG().$implicit;ce.R7$(),ce.Y8G("ngComponentOutlet",te.component)("ngComponentOutletInputs",te.componentInputs)}}function BrListComponent_ng_template_7_div_5_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListComponent_ng_template_7_div_5_ng_container_1_p_chip_1_Template,1,2,"p-chip",27)(2,BrListComponent_ng_template_7_div_5_ng_container_1_ng_container_2_Template,2,2,"ng-container",11),ce.bVm()),2&te){const te=ne.$implicit;ce.R7$(),ce.Y8G("ngIf",!te.component),ce.R7$(),ce.Y8G("ngIf",te.component)}}function BrListComponent_ng_template_7_div_5_Template(te,ne){if(1&te&&(ce.j41(0,"div",25),ce.DNE(1,BrListComponent_ng_template_7_div_5_ng_container_1_Template,3,2,"ng-container",26),ce.k0s()),2&te){const te=ce.XpG(2);ce.Y8G("@fade",void 0),ce.R7$(),ce.Y8G("ngForOf",te.brChipList)}}function BrListComponent_ng_template_7_p_chip_6_Template(te,ne){if(1&te&&(ce.nrm(0,"p-chip",30),ce.nI1(1,"number")),2&te){const te=ce.XpG(2);ce.FCK("label","Total de ",te.brListNamePlural,": ",ce.bMT(1,4,null==te.brListService.pagination?null:te.brListService.pagination.totalCount)||0,""),ce.Y8G("@fade",void 0)("removable",!1)}}function BrListComponent_ng_template_7_p_chip_7_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-chip",31),ce.bIt("onRemove",(function BrListComponent_ng_template_7_p_chip_7_Template_p_chip_onRemove_0_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.selectedRows.length=0)})),ce.nI1(1,"number"),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.Mz_("label","Total selecionados: ",ce.bMT(1,3,te.selectedRows.length)||0,""),ce.Y8G("@fade",void 0)("removable",!0)}}function BrListComponent_ng_template_7_Template(te,ne){if(1&te&&(ce.j41(0,"div",13,14),ce.DNE(2,BrListComponent_ng_template_7_p_chip_2_Template,1,5,"p-chip",15)(3,BrListComponent_ng_template_7_p_chip_3_Template,1,2,"p-chip",16)(4,BrListComponent_ng_template_7_div_4_Template,2,3,"div",17)(5,BrListComponent_ng_template_7_div_5_Template,2,2,"div",18)(6,BrListComponent_ng_template_7_p_chip_6_Template,2,6,"p-chip",19)(7,BrListComponent_ng_template_7_p_chip_7_Template,2,5,"p-chip",20),ce.k0s()),2&te){const te=ce.XpG(),ne=ce.sdS(1);ce.R7$(2),ce.Y8G("ngIf",te.isLeftChipVisible),ce.R7$(),ce.Y8G("ngIf",te.brListState.isBrChipsOpen),ce.R7$(),ce.Y8G("ngIf",!te.brListState.isBrChipsOpen&&ne.offsetWidth>1235),ce.R7$(),ce.Y8G("ngIf",te.brListState.isBrChipsOpen),ce.R7$(),ce.Y8G("ngIf",!te.brListState.isBrChipsOpen&&0===te.selectedRows.length),ce.R7$(),ce.Y8G("ngIf",!te.brListState.isBrChipsOpen&&te.selectedRows.length>0)}}function BrListComponent_ng_container_9_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function BrListComponent_ng_container_9_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListComponent_ng_container_9_ng_container_1_Template,1,0,"ng-container",10),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngTemplateOutlet",te.tableTemplate)}}function BrListComponent_ng_template_10_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",32,33),ce.bIt("mouseenter",(function BrListComponent_ng_template_10_Template_div_mouseenter_0_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.brListState.isDetailsHovered=!1)})),ce.nrm(2,"br-list-table",34),ce.k0s()}if(2&te){const te=ce.XpG(),ne=ce.sdS(1);ce.Aen(ne.offsetWidth<1235?"margin-left: 40px;":""),ce.Y8G("@fade",void 0),ce.R7$(2),ce.Y8G("brListService",te.brListService)}}function BrListComponent_ng_container_12_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function BrListComponent_ng_container_12_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListComponent_ng_container_12_ng_container_1_Template,1,0,"ng-container",10),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngTemplateOutlet",te.detailsTemplate)}}function BrListComponent_ng_template_13_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",35,36),ce.bIt("mouseenter",(function BrListComponent_ng_template_13_Template_div_mouseenter_0_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.brListState.isDetailsHovered=!0)})),ce.nrm(2,"br-list-details",37,38),ce.k0s()}if(2&te){const te=ce.XpG();ce.R7$(2),ce.Y8G("brListService",te.brListService)("novoTemplate",te.novoTemplate)("alterarTemplate",te.alterarTemplate)("visualizarTemplate",te.visualizarTemplate)}}function BrListComponent_ng_container_16_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function BrListComponent_ng_container_16_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrListComponent_ng_container_16_ng_container_1_Template,1,0,"ng-container",10),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngTemplateOutlet",te.filtroTemplate)}}function BrListComponent_ng_template_17_Template(te,ne){if(1&te&&ce.nrm(0,"br-list-filter",24,39),2&te){const te=ce.XpG();ce.Y8G("brListService",te.brListService)("keyConfirmDialog",te.keyConfirmDialog)}}let Ip=(()=>{class BrListComponent{constructor(){this.layoutService=(0,ce.WQX)(Re.Y),this.tabRef=(0,ce.WQX)(Me.l,{optional:!0}),this.brMessageService=(0,ce.WQX)(Ne.h),this.dynamicDialogConfig=(0,ce.WQX)(be.sb),this.integrado=!1,this.keyConfirmDialog=(0,xe.A)(),this.isLeftChipVisible=!0}get selectedRows(){return this.brListService.selectedRows}set selectedRows(te){this.brListService.selectedRows=te}get dataList(){return this.brListService.dataList}get brChipList(){return this.brListService.brChipList}set brChipList(te){this.brListService.brChipList=te}get appliedFilters(){return this.brListService.appliedFilters}get brListState(){return this.brListService.state}get leftChipClass(){return this.brChipList.length?this.brListState.isBrChipsOpen?"tag-voltar cursor-pointer":"cursor-pointer":void 0}get leftChipLabel(){return 0===this.brChipList.length?"Nenhum filtro aplicado":this.brListState.isBrChipsOpen?"Voltar":"Visualizar filtros aplicados"}get leftChipIcon(){return this.brListState.isBrChipsOpen?"pi pi-arrow-left":void 0}get columns(){return this.brListService.columns}get everyBrFormControl(){return this.brListService.everyBrFormControl}get brListName(){return(0,Oe.Z)(this.brListService.brListName)}get brListNamePlural(){return(0,Oe.Z)(this.brListService.brListNamePlural)}get isMenuAnchored(){return this.layoutService.state.anchored}ngOnInit(){this.brListService.brListPaiService=this.brListPaiService,this.brListService.configPermissoes(),this.brListService.state.isIntegrado=this.integrado;const te=this.integrado?this.tabRef?.data?this.tabRef?.data[this.brListService.brListName]:void 0:this.tabRef?.data;this.columns.forEach((te=>te.brFormControl=this.getColumnBrFormControl(te.formControlName))),this.brListService.configComponente(!!te?.appliedFilters).pipe((0,Ce.W)((te=>(console.error(te),this.brMessageService.error(),ye.w))),(0,we.M)((()=>{te?.appliedFilters&&(this.brListService.appliedFilters={...this.brListService.appliedFilters,...te.appliedFilters}),te?.fixedFilters&&(this.brListService.fixedFilters={...this.brListService.fixedFilters,...te.fixedFilters}),te?.menuMais&&(this.brListService.menuMais={...this.brListService.menuMais,...te.menuMais}),te?.defaultDetailsValue&&(this.brListService.defaultDetailsValue={...this.brListService.defaultDetailsValue,...te.defaultDetailsValue}),te?.defaultFiltersValue&&(this.brListService.defaultFiltersValue={...this.brListService.defaultFiltersValue,...te.defaultFiltersValue}),te?.brListState&&(this.brListService.state={...this.brListService.state,...te.brListState}),te?.idRowDetails&&(this.brListService.idRowDetails=te.idRowDetails),this.dynamicDialogConfig?.data?.appliedFilters&&(this.brListService.appliedFilters={...this.brListService.appliedFilters,...this.dynamicDialogConfig.data.appliedFilters}),this.dynamicDialogConfig?.data?.fixedFilters&&(this.brListService.fixedFilters={...this.brListService.fixedFilters,...this.dynamicDialogConfig.data.fixedFilters}),this.dynamicDialogConfig?.data?.menuMais&&(this.brListService.menuMais={...this.brListService.menuMais,...this.dynamicDialogConfig.data.menuMais}),this.dynamicDialogConfig?.data?.defaultDetailsValue&&(this.brListService.defaultDetailsValue={...this.brListService.defaultDetailsValue,...this.dynamicDialogConfig.data.defaultDetailsValue}),this.dynamicDialogConfig?.data?.defaultFiltersValue&&(this.brListService.defaultFiltersValue={...this.brListService.defaultFiltersValue,...this.dynamicDialogConfig.data.defaultFiltersValue}),this.dynamicDialogConfig?.data?.brListState&&(this.brListService.state={...this.brListService.state,...this.dynamicDialogConfig.data.brListState}),this.dynamicDialogConfig?.data?.idRowDetails&&(this.brListService.idRowDetails=this.dynamicDialogConfig.data.idRowDetails)})),(0,ke.n)((()=>this.brListService.refreshData().pipe((0,Ce.W)((te=>(console.error(te),this.brMessageService.error(),ye.w))),(0,Se.j)((()=>this.brListService.createChipsList())))))).subscribe()}ngAfterViewInit(){this.brListService.brListPaiElementRef=this.brListPaiElementRef,this.brListService.brListElementRef=this.brListElementRef,this.brListService.tableElementRef=this.tableElementRef,this.brListService.toolbarElementRef=this.toolbarElementRef,this.brListService.detailsElementRef=this.detailsElementRef,this.brListService.filtroElementRef=this.filtroElementRef}onLeftChipClick(){this.toggleContainerChips()}onClearFiltersClick(){this.brListService.brChipList.forEach((te=>this.onFilterChipRemove(te,!0))),this.toggleContainerChips(),this.brListService.saveBrListConfig().subscribe(),this.brListService.refreshData().subscribe()}onFilterChipRemove(te,ne){if(!te.isRemovable)return;delete this.appliedFilters[te.fieldPath],this.brChipList=this.brChipList.filter((ne=>ne.fieldPath!==te.fieldPath||!1===ne.isRemovable)),this.brChipList.length||(this.isLeftChipVisible=!1,setTimeout((()=>{this.isLeftChipVisible=!0}),50),this.toggleContainerChips());const ie=this.columns.find((ne=>ne.fieldPath===te.fieldPath||ne.formControlName===te.fieldPath));ie&&(ie.searchValue=void 0),ne||(this.brListService.saveBrListConfig().subscribe(),this.brListService.refreshData().subscribe())}toggleContainerChips(){this.brChipList.length?(this.isLeftChipVisible=!1,setTimeout((()=>{this.isLeftChipVisible=!0}),50),this.brListState.isBrChipsOpen?this.brListState.isBrChipsOpen=!1:this.brListState.isBrChipsOpen=!0):this.brListState.isBrChipsOpen=!1}getColumnBrFormControl(te){return this.everyBrFormControl.find((ne=>ne.formControlName===te))}static#e=this.ɵfac=function BrListComponent_Factory(te){return new(te||BrListComponent)};static#t=this.ɵcmp=ce.VBU({type:BrListComponent,selectors:[["br-list"]],contentQueries:function BrListComponent_ContentQueries(te,ne,ie){if(1&te&&(ce.wni(ie,sp,5),ce.wni(ie,dp,5),ce.wni(ie,pp,5),ce.wni(ie,hp,5),ce.wni(ie,fp,5),ce.wni(ie,_p,5),ce.wni(ie,bp,5),ce.wni(ie,vp,5)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.toolbarTemplate=te.first),ce.mGM(te=ce.lsd())&&(ne.toolbarVerticalTemplate=te.first),ce.mGM(te=ce.lsd())&&(ne.tableTemplate=te.first),ce.mGM(te=ce.lsd())&&(ne.detailsTemplate=te.first),ce.mGM(te=ce.lsd())&&(ne.novoTemplate=te.first),ce.mGM(te=ce.lsd())&&(ne.alterarTemplate=te.first),ce.mGM(te=ce.lsd())&&(ne.visualizarTemplate=te.first),ce.mGM(te=ce.lsd())&&(ne.filtroTemplate=te.first)}},viewQuery:function BrListComponent_Query(te,ne){if(1&te&&(ce.GBs(yp,5),ce.GBs(pp,5),ce.GBs(sp,5),ce.GBs(hp,5),ce.GBs(vp,5),ce.GBs(wp,5)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.brListElementRef=te.first),ce.mGM(te=ce.lsd())&&(ne.tableElementRef=te.first),ce.mGM(te=ce.lsd())&&(ne.toolbarElementRef=te.first),ce.mGM(te=ce.lsd())&&(ne.detailsElementRef=te.first),ce.mGM(te=ce.lsd())&&(ne.filtroElementRef=te.first),ce.mGM(te=ce.lsd())&&(ne.columnsThElements=te)}},inputs:{brListService:"brListService",brListPaiService:"brListPaiService",integrado:"integrado",brListPaiElementRef:"brListPaiElementRef"},standalone:!0,features:[ce.Jv_([Le.E,be.sb]),ce.aNF],decls:19,vars:15,consts:[[1,"container-br-list"],["brlist",""],[1,"w-full","h-full","z-5","absolute","pointer-events-none",2,"background-color","black"],[4,"ngIf","ngIfElse"],["brToolbarVertical",""],["brToolbar",""],["brTable",""],["brDetails",""],[3,"closable","key","appendTo","maskStyleClass"],["brFilter",""],[4,"ngTemplateOutlet"],[4,"ngIf"],[1,"absolute",2,"margin-left","6px","margin-top","60px",3,"brListService","keyConfirmDialog","vertical"],[1,"container-toolbar","flex","align-items-center","relative","mx-2",2,"height","60px"],["toolbar",""],["class","absolute z-1",3,"icon","label","removable","styleClass","click",4,"ngIf"],["icon","pi pi-trash","label","Limpar filtros","class","absolute cursor-pointer left-90px z-1","styleClass","tag-clear",3,"removable","click",4,"ngIf"],["class","flex justify-content-center align-items-center w-full",4,"ngIf"],["class","flex align-items-center h-full overflow-x-auto absolute","style","gap: 10px; margin-left: 227px; width: calc(100% - 227px)",4,"ngIf"],["class","absolute z-1 right-0",3,"label","removable",4,"ngIf"],["class","absolute z-1 right-0",3,"label","removable","onRemove",4,"ngIf"],[1,"absolute","z-1",3,"icon","label","removable","styleClass","click"],["icon","pi pi-trash","label","Limpar filtros","styleClass","tag-clear",1,"absolute","cursor-pointer","left-90px","z-1",3,"removable","click"],[1,"flex","justify-content-center","align-items-center","w-full"],[3,"brListService","keyConfirmDialog"],[1,"flex","align-items-center","h-full","overflow-x-auto","absolute",2,"gap","10px","margin-left","227px","width","calc(100% - 227px)"],[4,"ngFor","ngForOf"],["class","cursor-auto",3,"label","removable","onRemove",4,"ngIf"],[1,"cursor-auto",3,"label","removable","onRemove"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[1,"absolute","z-1","right-0",3,"label","removable"],[1,"absolute","z-1","right-0",3,"label","removable","onRemove"],[1,"container-table",3,"mouseenter"],["table",""],[3,"brListService"],[1,"container-details",3,"mouseenter"],["details",""],[3,"brListService","novoTemplate","alterarTemplate","visualizarTemplate"],["brListDetailsComponent",""],["filtro",""]],template:function BrListComponent_Template(te,ne){if(1&te&&(ce.j41(0,"div",0,1),ce.nrm(2,"div",2),ce.DNE(3,BrListComponent_ng_container_3_Template,2,1,"ng-container",3)(4,BrListComponent_ng_template_4_Template,1,1,"ng-template",null,4,ce.C5r)(6,BrListComponent_ng_container_6_Template,2,1,"ng-container",3)(7,BrListComponent_ng_template_7_Template,8,6,"ng-template",null,5,ce.C5r)(9,BrListComponent_ng_container_9_Template,2,1,"ng-container",3)(10,BrListComponent_ng_template_10_Template,3,4,"ng-template",null,6,ce.C5r)(12,BrListComponent_ng_container_12_Template,2,1,"ng-container",3)(13,BrListComponent_ng_template_13_Template,4,4,"ng-template",null,7,ce.C5r),ce.nrm(15,"p-confirmDialog",8),ce.k0s(),ce.DNE(16,BrListComponent_ng_container_16_Template,2,1,"ng-container",3)(17,BrListComponent_ng_template_17_Template,2,2,"ng-template",null,9,ce.C5r)),2&te){const te=ce.sdS(1),ie=ce.sdS(5),re=ce.sdS(8),le=ce.sdS(11),de=ce.sdS(14),ue=ce.sdS(18);ce.R7$(2),ce.Y8G("@modal-animation",ne.brListState.isDetailsHovered?"show":"hide"),ce.R7$(),ce.Y8G("ngIf",ne.toolbarVerticalTemplate)("ngIfElse",ie),ce.R7$(3),ce.Y8G("ngIf",ne.toolbarTemplate)("ngIfElse",re),ce.R7$(3),ce.Y8G("ngIf",ne.tableTemplate)("ngIfElse",le),ce.R7$(3),ce.Y8G("ngIf",ne.detailsTemplate)("ngIfElse",de),ce.R7$(3),ce.Y8G("closable",!1)("key",ne.keyConfirmDialog)("appendTo",te)("maskStyleClass",ne.isMenuAnchored?"dialog-on-menu-anchored":"dialog-on-menu-not-anchored"),ce.R7$(),ce.Y8G("ngIf",ne.filtroTemplate)("ngIfElse",ue)}},dependencies:[le.MD,le.OI,le.Sq,le.bT,le.T3,le.QX,ap,Zt,Pe.M,Qe,fe,ge,_e.F,_e.T],styles:[".container-br-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;min-height:380px;height:100%;width:100%}.container-table[_ngcontent-%COMP%]{display:block;height:calc(100% - 60px);padding-left:.5rem;padding-right:.5rem;padding-bottom:1rem;transition:margin-left .2s ease-in-out}[_nghost-%COMP%]     .tag-voltar{background-color:var(--surface-ground);color:var(--primary-color);border:1px solid;border-color:var(--primary-color);transition:color .2s ease,background-color .2s ease,border-color .2s ease}[_nghost-%COMP%]     .tag-voltar:hover{background-color:var(--surface-100)}[_nghost-%COMP%]     .tag-clear{background-color:#ef4444;border:1px solid;border-color:#ef4444;transition:background-color .2s ease,border-color .2s ease}[_nghost-%COMP%]     .tag-clear:hover{background-color:#d43a3a;border-color:#d43a3a}[_nghost-%COMP%]     .left-90px{left:90px}[_nghost-%COMP%]     .drag-scroll-content{width:100%!important}"],data:{animation:[(0,re.hZ)("modal-animation",[(0,re.wk)("hide",(0,re.iF)({opacity:0})),(0,re.wk)("show",(0,re.iF)({opacity:.25})),(0,re.kY)("hide => show",[(0,re.i0)("200ms ease-in")]),(0,re.kY)("show => hide",[(0,re.i0)("200ms ease-out")])]),Ee.r]}})}return BrListComponent})()},2817:(te,ne,ie)=>{"use strict";ie.d(ne,{a:()=>be});var re=ie(4460),le=ie(936),ce=ie(2583),de=ie(30),ue=ie(5708),me=ie(7069),ge=ie(7538),fe=ie(9509),_e=ie(3107);const _c0=()=>({"min-width":"100%"}),_c1=te=>({"min-width":te});let be=(()=>{class BrDateComponent extends fe.V{constructor(te){super(te),this.mostraHora=!1}writeValue(te){if(te){const ne=(0,ge.ZW)(te),ie=new Date(ne);this.calendarModel=ie}else this.calendarModel=void 0;super.writeValue(te)}onModelChanges(){this.calendarModel?this.onValueChange((0,ge.hk)(this.calendarModel)):this.onValueChange(null)}static#e=this.ɵfac=function BrDateComponent_Factory(te){return new(te||BrDateComponent)(_e.rXU(le.vO,10))};static#t=this.ɵcmp=_e.VBU({type:BrDateComponent,selectors:[["br-date"]],inputs:{mostraHora:"mostraHora"},standalone:!0,features:[_e.Vt3,_e.aNF],decls:4,vars:16,consts:[["dateMask","","pAutoFocus","","appendTo","body",3,"id","inputStyle","ngModel","autofocus","showIcon","showClear","showOnFocus","showTime","disabled","ngModelChange"],[3,"for"]],template:function BrDateComponent_Template(te,ne){1&te&&(_e.j41(0,"p-floatLabel")(1,"p-calendar",0),_e.mxI("ngModelChange",(function BrDateComponent_Template_p_calendar_ngModelChange_1_listener(te){return _e.DH7(ne.calendarModel,te)||(ne.calendarModel=te),te})),_e.bIt("ngModelChange",(function BrDateComponent_Template_p_calendar_ngModelChange_1_listener(){return ne.onModelChanges()})),_e.k0s(),_e.j41(2,"label",1),_e.EFF(3),_e.k0s()()),2&te&&(_e.R7$(),_e.Aen(_e.lJ4(13,_c0)),_e.Y8G("id",ne.label)("inputStyle",_e.eq3(14,_c1,ne.size)),_e.R50("ngModel",ne.calendarModel),_e.Y8G("autofocus",ne.autoFocus)("showIcon",!0)("showClear",!0)("showOnFocus",!1)("showTime",ne.mostraHora)("disabled",ne.disabled),_e.R7$(),_e.Y8G("for",ne.label),_e.R7$(),_e.JRh(ne.label))},dependencies:[re.MD,le.YN,le.BC,le.vS,de.rO,de.Vv,ue.f,ue.V,ce.u,ce.q,me.Y]})}return BrDateComponent})()},1683:(te,ne,ie)=>{"use strict";ie.d(ne,{E:()=>ce});var re=ie(3107),le=ie(6388);let ce=(()=>{class BrEditorViewComponent{constructor(te){this.sanitizer=te,this.height="100%"}ngOnChanges(){this.textoSanitized=this.sanitizer.bypassSecurityTrustHtml(this.texto)}static#e=this.ɵfac=function BrEditorViewComponent_Factory(te){return new(te||BrEditorViewComponent)(re.rXU(le.up))};static#t=this.ɵcmp=re.VBU({type:BrEditorViewComponent,selectors:[["br-editor-view"]],inputs:{texto:"texto",height:"height"},standalone:!0,features:[re.OA$,re.aNF],decls:2,vars:3,consts:[[1,"ck-content",2,"word-break","break-word",3,"innerHTML"]],template:function BrEditorViewComponent_Template(te,ne){1&te&&(re.j41(0,"div"),re.nrm(1,"span",0),re.k0s()),2&te&&(re.Aen("height:"+ne.height),re.R7$(),re.Y8G("innerHTML",ne.textoSanitized,re.npT))},styles:['[_ngcontent-%COMP%]:root{--ck-color-image-caption-background: hsl(0, 0%, 97%);--ck-color-image-caption-text: hsl(0, 0%, 20%);--ck-color-mention-background: hsla(341, 100%, 30%, .1);--ck-color-mention-text: hsl(341, 100%, 30%);--ck-color-selector-caption-background: hsl(0, 0%, 97%);--ck-color-selector-caption-text: hsl(0, 0%, 20%);--ck-highlight-marker-blue: hsl(201, 97%, 72%);--ck-highlight-marker-green: hsl(120, 93%, 68%);--ck-highlight-marker-pink: hsl(345, 96%, 73%);--ck-highlight-marker-yellow: hsl(60, 97%, 73%);--ck-highlight-pen-green: hsl(112, 100%, 27%);--ck-highlight-pen-red: hsl(0, 85%, 49%);--ck-image-style-spacing: 1.5em;--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);--ck-todo-list-checkmark-size: 16px}.ck-content[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   .ck-table-resized[_ngcontent-%COMP%]{table-layout:fixed}.ck-content[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{overflow:hidden}.ck-content[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .ck-content[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{overflow-wrap:break-word;position:relative}.ck-content[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%] > figcaption[_ngcontent-%COMP%]{display:table-caption;caption-side:top;word-break:break-word;text-align:center;color:var(--ck-color-selector-caption-text);background-color:var(--ck-color-selector-caption-background);padding:.6em;font-size:.75em;outline-offset:-1px}.ck-content[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]{margin:.9em auto;display:table}.ck-content[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double hsl(0,0%,70%)}.ck-content[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .ck-content[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{min-width:2em;padding:.4em;border:1px solid hsl(0,0%,75%)}.ck-content[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:700;background:#0000000d}.ck-content[dir=rtl][_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{text-align:right}.ck-content[dir=ltr][_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{text-align:left}.ck-content[_ngcontent-%COMP%]   .page-break[_ngcontent-%COMP%]{position:relative;clear:both;padding:5px 0;display:flex;align-items:center;justify-content:center}.ck-content[_ngcontent-%COMP%]   .page-break[_ngcontent-%COMP%]:after{content:"";position:absolute;border-bottom:2px dashed hsl(0,0%,77%);width:100%}.ck-content[_ngcontent-%COMP%]   .page-break__label[_ngcontent-%COMP%]{position:relative;z-index:1;padding:.3em .6em;display:block;text-transform:uppercase;border:1px solid hsl(0,0%,77%);border-radius:2px;font-family:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;font-size:.75em;font-weight:700;color:#333;background:#fff;box-shadow:2px 2px 1px #00000026;-webkit-user-select:none;user-select:none}.ck-content[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]{clear:both;margin:.9em 0;display:block;min-width:15em}.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]{list-style:none}.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;margin-bottom:5px}.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]{margin-top:5px}.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{-webkit-appearance:none;display:inline-block;position:relative;width:var(--ck-todo-list-checkmark-size);height:var(--ck-todo-list-checkmark-size);vertical-align:middle;border:0;left:-25px;margin-right:-15px;right:0;margin-left:0}.ck-content[dir=rtl][_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{left:0;margin-right:0;right:-25px;margin-left:-15px}.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:before{display:block;position:absolute;box-sizing:border-box;content:"";width:100%;height:100%;border:1px solid hsl(0,0%,20%);border-radius:2px;transition:.25s ease-in-out box-shadow}.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:after{display:block;position:absolute;box-sizing:content-box;pointer-events:none;content:"";left:calc(var(--ck-todo-list-checkmark-size) / 3);top:calc(var(--ck-todo-list-checkmark-size) / 5.3);width:calc(var(--ck-todo-list-checkmark-size) / 5.3);height:calc(var(--ck-todo-list-checkmark-size) / 2.6);border-style:solid;border-color:transparent;border-width:0 calc(var(--ck-todo-list-checkmark-size) / 8) calc(var(--ck-todo-list-checkmark-size) / 8) 0;transform:rotate(45deg)}.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > input[checked][_ngcontent-%COMP%]:before{background:#26ab33;border-color:#26ab33}.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > input[checked][_ngcontent-%COMP%]:after{border-color:#fff}.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%]   .todo-list__label__description[_ngcontent-%COMP%]{vertical-align:middle}.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label.todo-list__label_without-description[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{position:absolute}.ck-editor__editable.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .ck-editor__editable.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > span[contenteditable=false][_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{cursor:pointer}.ck-editor__editable.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:hover:before, .ck-editor__editable.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > span[contenteditable=false][_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:hover:before{box-shadow:0 0 0 5px #0000001a}.ck-editor__editable.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > span[contenteditable=false][_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{-webkit-appearance:none;display:inline-block;position:relative;width:var(--ck-todo-list-checkmark-size);height:var(--ck-todo-list-checkmark-size);vertical-align:middle;border:0;left:-25px;margin-right:-15px;right:0;margin-left:0}.ck-editor__editable.ck-content[dir=rtl][_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > span[contenteditable=false][_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{left:0;margin-right:0;right:-25px;margin-left:-15px}.ck-editor__editable.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > span[contenteditable=false][_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:before{display:block;position:absolute;box-sizing:border-box;content:"";width:100%;height:100%;border:1px solid hsl(0,0%,20%);border-radius:2px;transition:.25s ease-in-out box-shadow}.ck-editor__editable.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > span[contenteditable=false][_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:after{display:block;position:absolute;box-sizing:content-box;pointer-events:none;content:"";left:calc(var(--ck-todo-list-checkmark-size) / 3);top:calc(var(--ck-todo-list-checkmark-size) / 5.3);width:calc(var(--ck-todo-list-checkmark-size) / 5.3);height:calc(var(--ck-todo-list-checkmark-size) / 2.6);border-style:solid;border-color:transparent;border-width:0 calc(var(--ck-todo-list-checkmark-size) / 8) calc(var(--ck-todo-list-checkmark-size) / 8) 0;transform:rotate(45deg)}.ck-editor__editable.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > span[contenteditable=false][_ngcontent-%COMP%] > input[checked][_ngcontent-%COMP%]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label[_ngcontent-%COMP%] > span[contenteditable=false][_ngcontent-%COMP%] > input[checked][_ngcontent-%COMP%]:after{border-color:#fff}.ck-editor__editable.ck-content[_ngcontent-%COMP%]   .todo-list[_ngcontent-%COMP%]   .todo-list__label.todo-list__label_without-description[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{position:absolute}.ck-content[_ngcontent-%COMP%]   img.image_resized[_ngcontent-%COMP%]{height:auto}.ck-content[_ngcontent-%COMP%]   .image.image_resized[_ngcontent-%COMP%]{max-width:100%;display:block;box-sizing:border-box}.ck-content[_ngcontent-%COMP%]   .image.image_resized[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.ck-content[_ngcontent-%COMP%]   .image.image_resized[_ngcontent-%COMP%] > figcaption[_ngcontent-%COMP%]{display:block}.ck-content[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{display:table;clear:both;text-align:center;margin:.9em auto;min-width:50px}.ck-content[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;margin:0 auto;max-width:100%;min-width:100%;height:auto}.ck-content[_ngcontent-%COMP%]   .image-inline[_ngcontent-%COMP%]{display:inline-flex;max-width:100%;align-items:flex-start}.ck-content[_ngcontent-%COMP%]   .image-inline[_ngcontent-%COMP%]   picture[_ngcontent-%COMP%]{display:flex}.ck-content[_ngcontent-%COMP%]   .image-inline[_ngcontent-%COMP%]   picture[_ngcontent-%COMP%], .ck-content[_ngcontent-%COMP%]   .image-inline[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{flex-grow:1;flex-shrink:1;max-width:100%}.ck-content[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%] > figcaption[_ngcontent-%COMP%]{display:table-caption;caption-side:bottom;word-break:break-word;color:var(--ck-color-image-caption-text);background-color:var(--ck-color-image-caption-background);padding:.6em;font-size:.75em;outline-offset:-1px}.ck-content[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{list-style-type:decimal}.ck-content[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{list-style-type:lower-latin}.ck-content[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{list-style-type:lower-roman}.ck-content[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{list-style-type:upper-latin}.ck-content[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{list-style-type:upper-roman}.ck-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:disc}.ck-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:circle}.ck-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .ck-content[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:square}.ck-content[_ngcontent-%COMP%]   .image-style-block-align-left[_ngcontent-%COMP%], .ck-content[_ngcontent-%COMP%]   .image-style-block-align-right[_ngcontent-%COMP%]{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content[_ngcontent-%COMP%]   .image-style-align-left[_ngcontent-%COMP%], .ck-content[_ngcontent-%COMP%]   .image-style-align-right[_ngcontent-%COMP%]{clear:none}.ck-content[_ngcontent-%COMP%]   .image-style-side[_ngcontent-%COMP%]{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content[_ngcontent-%COMP%]   .image-style-align-left[_ngcontent-%COMP%]{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content[_ngcontent-%COMP%]   .image-style-align-center[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ck-content[_ngcontent-%COMP%]   .image-style-align-right[_ngcontent-%COMP%]{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content[_ngcontent-%COMP%]   .image-style-block-align-right[_ngcontent-%COMP%]{margin-right:0;margin-left:auto}.ck-content[_ngcontent-%COMP%]   .image-style-block-align-left[_ngcontent-%COMP%]{margin-left:0;margin-right:auto}.ck-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] + .image-style-align-left[_ngcontent-%COMP%], .ck-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] + .image-style-align-right[_ngcontent-%COMP%], .ck-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] + .image-style-side[_ngcontent-%COMP%]{margin-top:0}.ck-content[_ngcontent-%COMP%]   .image-inline.image-style-align-left[_ngcontent-%COMP%], .ck-content[_ngcontent-%COMP%]   .image-inline.image-style-align-right[_ngcontent-%COMP%]{margin-top:var(--ck-inline-image-style-spacing);margin-bottom:var(--ck-inline-image-style-spacing)}.ck-content[_ngcontent-%COMP%]   .image-inline.image-style-align-left[_ngcontent-%COMP%]{margin-right:var(--ck-inline-image-style-spacing)}.ck-content[_ngcontent-%COMP%]   .image-inline.image-style-align-right[_ngcontent-%COMP%]{margin-left:var(--ck-inline-image-style-spacing)}.ck-content[_ngcontent-%COMP%]   .marker-yellow[_ngcontent-%COMP%]{background-color:var(--ck-highlight-marker-yellow)}.ck-content[_ngcontent-%COMP%]   .marker-green[_ngcontent-%COMP%]{background-color:var(--ck-highlight-marker-green)}.ck-content[_ngcontent-%COMP%]   .marker-pink[_ngcontent-%COMP%]{background-color:var(--ck-highlight-marker-pink)}.ck-content[_ngcontent-%COMP%]   .marker-blue[_ngcontent-%COMP%]{background-color:var(--ck-highlight-marker-blue)}.ck-content[_ngcontent-%COMP%]   .pen-red[_ngcontent-%COMP%]{color:var(--ck-highlight-pen-red);background-color:transparent}.ck-content[_ngcontent-%COMP%]   .pen-green[_ngcontent-%COMP%]{color:var(--ck-highlight-pen-green);background-color:transparent}.ck-content[_ngcontent-%COMP%]   blockquote[_ngcontent-%COMP%]{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:solid 5px hsl(0,0%,80%)}.ck-content[dir=rtl][_ngcontent-%COMP%]   blockquote[_ngcontent-%COMP%]{border-left:0;border-right:solid 5px hsl(0,0%,80%)}.ck-content[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{background-color:#c7c7c74d;padding:.15em;border-radius:2px}.ck-content[_ngcontent-%COMP%]   .text-tiny[_ngcontent-%COMP%]{font-size:.7em}.ck-content[_ngcontent-%COMP%]   .text-small[_ngcontent-%COMP%]{font-size:.85em}.ck-content[_ngcontent-%COMP%]   .text-big[_ngcontent-%COMP%]{font-size:1.4em}.ck-content[_ngcontent-%COMP%]   .text-huge[_ngcontent-%COMP%]{font-size:1.8em}.ck-content[_ngcontent-%COMP%]   .mention[_ngcontent-%COMP%]{background:var(--ck-color-mention-background);color:var(--ck-color-mention-text)}.ck-content[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{margin:15px 0;height:4px;background:#dedede;border:0}.ck-content[_ngcontent-%COMP%]   pre[_ngcontent-%COMP%]{padding:1em;color:#353535;background:#c7c7c74d;border:1px solid hsl(0,0%,77%);border-radius:2px;text-align:left;direction:ltr;tab-size:4;white-space:pre-wrap;font-style:normal;min-width:200px}.ck-content[_ngcontent-%COMP%]   pre[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{background:unset;padding:0;border-radius:0}@media print{.ck-content[_ngcontent-%COMP%]   .page-break[_ngcontent-%COMP%]{padding:0}.ck-content[_ngcontent-%COMP%]   .page-break[_ngcontent-%COMP%]:after{display:none}}']})}return BrEditorViewComponent})()},1492:(te,ne,ie)=>{"use strict";ie.d(ne,{P:()=>$l});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(3014);class Watchdog{constructor(te){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof te.crashNumberLimit?te.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof te.minimumNonErrorTimePeriod?te.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=te=>{const ne="error"in te?te.error:te.reason;ne instanceof Error&&this._handleError(ne,te)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(te,ne){this._listeners[te]||(this._listeners[te]=[]),this._listeners[te].push(ne)}off(te,ne){this._listeners[te]=this._listeners[te].filter((te=>te!==ne))}_fire(te,...ne){const ie=this._listeners[te]||[];for(const te of ie)te.apply(this,[null,...ne])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(te,ne){if(this._shouldReactToError(te)){this.crashes.push({message:te.message,stack:te.stack,filename:ne instanceof ErrorEvent?ne.filename:void 0,lineno:ne instanceof ErrorEvent?ne.lineno:void 0,colno:ne instanceof ErrorEvent?ne.colno:void 0,date:this._now()});const ie=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:te,causesRestart:ie}),ie?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(te){return te.is&&te.is("CKEditorError")&&void 0!==te.context&&null!==te.context&&"ready"===this.state&&this._isErrorComingFromThisItem(te)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;return(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function getsubnodes_getSubNodes(te,ne=new Set){const ie=[te],re=new Set;let le=0;for(;ie.length>le;){const te=ie[le++];if(!re.has(te)&&shouldNodeBeIncluded(te)&&!ne.has(te))if(re.add(te),Symbol.iterator in te)try{for(const ne of te)ie.push(ne)}catch(te){}else for(const ne in te)"defaultValue"!==ne&&ie.push(te[ne])}return re}function shouldNodeBeIncluded(te){const ne=Object.prototype.toString.call(te),ie=typeof te;return!("number"===ie||"boolean"===ie||"string"===ie||"symbol"===ie||"function"===ie||"[object Date]"===ne||"[object RegExp]"===ne||"[object Module]"===ne||null==te||te._watchdogExcluded||te instanceof EventTarget||te instanceof Event)}function areConnectedThroughProperties(te,ne,ie=new Set){if(te===ne&&function isObject(te){return"object"==typeof te&&null!==te}(te))return!0;const re=getsubnodes_getSubNodes(te,ie),le=getsubnodes_getSubNodes(ne,ie);for(const te of re)if(le.has(te))return!0;return!1}const ue=function isObject_isObject(te){var ne=typeof te;return null!=te&&("object"==ne||"function"==ne)};const me="object"==typeof global&&global&&global.Object===Object&&global;var ge="object"==typeof self&&self&&self.Object===Object&&self;const fe=me||ge||Function("return this")();const lodash_es_now=function(){return fe.Date.now()};var _e=/\s/;const be=function trimmedEndIndex(te){for(var ne=te.length;ne--&&_e.test(te.charAt(ne)););return ne};var Ce=/^\s+/;const ye=function baseTrim(te){return te?te.slice(0,be(te)+1).replace(Ce,""):te};const we=fe.Symbol;var ke=Object.prototype,Se=ke.hasOwnProperty,xe=ke.toString,Ee=we?we.toStringTag:void 0;const Me=function getRawTag(te){var ne=Se.call(te,Ee),ie=te[Ee];try{te[Ee]=void 0;var re=!0}catch(te){}var le=xe.call(te);return re&&(ne?te[Ee]=ie:delete te[Ee]),le};var Ne=Object.prototype.toString;const Re=function objectToString(te){return Ne.call(te)};var Le=we?we.toStringTag:void 0;const Oe=function baseGetTag(te){return null==te?void 0===te?"[object Undefined]":"[object Null]":Le&&Le in Object(te)?Me(te):Re(te)};const Pe=function isObjectLike(te){return null!=te&&"object"==typeof te};const Fe=function isSymbol(te){return"symbol"==typeof te||Pe(te)&&"[object Symbol]"==Oe(te)};var je=/^[-+]0x[0-9a-f]+$/i,Ve=/^0b[01]+$/i,Ge=/^0o[0-7]+$/i,ze=parseInt;const He=function toNumber(te){if("number"==typeof te)return te;if(Fe(te))return NaN;if(ue(te)){var ne="function"==typeof te.valueOf?te.valueOf():te;te=ue(ne)?ne+"":ne}if("string"!=typeof te)return 0===te?te:+te;te=ye(te);var ie=Ve.test(te);return ie||Ge.test(te)?ze(te.slice(2),ie?2:8):je.test(te)?NaN:+te};var $e=Math.max,qe=Math.min;const Ye=function debounce(te,ne,ie){var re,le,ce,de,me,ge,fe=0,_e=!1,be=!1,Ce=!0;if("function"!=typeof te)throw new TypeError("Expected a function");function invokeFunc(ne){var ie=re,ce=le;return re=le=void 0,fe=ne,de=te.apply(ce,ie)}function shouldInvoke(te){var ie=te-ge;return void 0===ge||ie>=ne||ie<0||be&&te-fe>=ce}function timerExpired(){var te=lodash_es_now();if(shouldInvoke(te))return trailingEdge(te);me=setTimeout(timerExpired,function remainingWait(te){var ie=ne-(te-ge);return be?qe(ie,ce-(te-fe)):ie}(te))}function trailingEdge(te){return me=void 0,Ce&&re?invokeFunc(te):(re=le=void 0,de)}function debounced(){var te=lodash_es_now(),ie=shouldInvoke(te);if(re=arguments,le=this,ge=te,ie){if(void 0===me)return function leadingEdge(te){return fe=te,me=setTimeout(timerExpired,ne),_e?invokeFunc(te):de}(ge);if(be)return clearTimeout(me),me=setTimeout(timerExpired,ne),invokeFunc(ge)}return void 0===me&&(me=setTimeout(timerExpired,ne)),de}return ne=He(ne)||0,ue(ie)&&(_e=!!ie.leading,ce=(be="maxWait"in ie)?$e(He(ie.maxWait)||0,ne):ce,Ce="trailing"in ie?!!ie.trailing:Ce),debounced.cancel=function cancel(){void 0!==me&&clearTimeout(me),fe=0,re=ge=le=me=void 0},debounced.flush=function flush(){return void 0===me?de:trailingEdge(lodash_es_now())},debounced};const Xe=function throttle(te,ne,ie){var re=!0,le=!0;if("function"!=typeof te)throw new TypeError("Expected a function");return ue(ie)&&(re="leading"in ie?!!ie.leading:re,le="trailing"in ie?!!ie.trailing:le),Ye(te,ne,{leading:re,maxWait:ne,trailing:le})};const Ke=function overArg(te,ne){return function(ie){return te(ne(ie))}};const Qe=Ke(Object.getPrototypeOf,Object);var Je=Function.prototype,dt=Object.prototype,pt=Je.toString,Ct=dt.hasOwnProperty,vt=pt.call(Object);const It=function isPlainObject(te){if(!Pe(te)||"[object Object]"!=Oe(te))return!1;var ne=Qe(te);if(null===ne)return!0;var ie=Ct.call(ne,"constructor")&&ne.constructor;return"function"==typeof ie&&ie instanceof ie&&pt.call(ie)==vt};const Dt=function isElement(te){return Pe(te)&&1===te.nodeType&&!It(te)};const Mt=function listCacheClear(){this.__data__=[],this.size=0};const Nt=function eq(te,ne){return te===ne||te!=te&&ne!=ne};const Rt=function assocIndexOf(te,ne){for(var ie=te.length;ie--;)if(Nt(te[ie][0],ne))return ie;return-1};var Ot=Array.prototype.splice;const Vt=function listCacheDelete(te){var ne=this.__data__,ie=Rt(ne,te);return!(ie<0)&&(ie==ne.length-1?ne.pop():Ot.call(ne,ie,1),--this.size,!0)};const Gt=function listCacheGet(te){var ne=this.__data__,ie=Rt(ne,te);return ie<0?void 0:ne[ie][1]};const zt=function listCacheHas(te){return Rt(this.__data__,te)>-1};const Ht=function listCacheSet(te,ne){var ie=this.__data__,re=Rt(ie,te);return re<0?(++this.size,ie.push([te,ne])):ie[re][1]=ne,this};function ListCache(te){var ne=-1,ie=null==te?0:te.length;for(this.clear();++ne<ie;){var re=te[ne];this.set(re[0],re[1])}}ListCache.prototype.clear=Mt,ListCache.prototype.delete=Vt,ListCache.prototype.get=Gt,ListCache.prototype.has=zt,ListCache.prototype.set=Ht;const Ut=ListCache;const $t=function stackClear(){this.__data__=new Ut,this.size=0};const Yt=function stackDelete(te){var ne=this.__data__,ie=ne.delete(te);return this.size=ne.size,ie};const Wt=function stackGet(te){return this.__data__.get(te)};const Kt=function stackHas(te){return this.__data__.has(te)};const Qt=function isFunction(te){if(!ue(te))return!1;var ne=Oe(te);return"[object Function]"==ne||"[object GeneratorFunction]"==ne||"[object AsyncFunction]"==ne||"[object Proxy]"==ne};const Jt=fe["__core-js_shared__"];var Zt=function(){var te=/[^.]+$/.exec(Jt&&Jt.keys&&Jt.keys.IE_PROTO||"");return te?"Symbol(src)_1."+te:""}();const tn=function isMasked(te){return!!Zt&&Zt in te};var nn=Function.prototype.toString;const rn=function toSource(te){if(null!=te){try{return nn.call(te)}catch(te){}try{return te+""}catch(te){}}return""};var an=/^\[object .+?Constructor\]$/,sn=Function.prototype,dn=Object.prototype,un=sn.toString,pn=dn.hasOwnProperty,hn=RegExp("^"+un.call(pn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const fn=function baseIsNative(te){return!(!ue(te)||tn(te))&&(Qt(te)?hn:an).test(rn(te))};const _n=function getValue(te,ne){return null==te?void 0:te[ne]};const bn=function getNative(te,ne){var ie=_n(te,ne);return fn(ie)?ie:void 0};const yn=bn(fe,"Map");const wn=bn(Object,"create");const kn=function hashClear(){this.__data__=wn?wn(null):{},this.size=0};const In=function hashDelete(te){var ne=this.has(te)&&delete this.__data__[te];return this.size-=ne?1:0,ne};var Tn=Object.prototype.hasOwnProperty;const Dn=function hashGet(te){var ne=this.__data__;if(wn){var ie=ne[te];return"__lodash_hash_undefined__"===ie?void 0:ie}return Tn.call(ne,te)?ne[te]:void 0};var xn=Object.prototype.hasOwnProperty;const En=function hashHas(te){var ne=this.__data__;return wn?void 0!==ne[te]:xn.call(ne,te)};const Rn=function hashSet(te,ne){var ie=this.__data__;return this.size+=this.has(te)?0:1,ie[te]=wn&&void 0===ne?"__lodash_hash_undefined__":ne,this};function Hash(te){var ne=-1,ie=null==te?0:te.length;for(this.clear();++ne<ie;){var re=te[ne];this.set(re[0],re[1])}}Hash.prototype.clear=kn,Hash.prototype.delete=In,Hash.prototype.get=Dn,Hash.prototype.has=En,Hash.prototype.set=Rn;const Ln=Hash;const On=function mapCacheClear(){this.size=0,this.__data__={hash:new Ln,map:new(yn||Ut),string:new Ln}};const Pn=function isKeyable(te){var ne=typeof te;return"string"==ne||"number"==ne||"symbol"==ne||"boolean"==ne?"__proto__"!==te:null===te};const Fn=function getMapData(te,ne){var ie=te.__data__;return Pn(ne)?ie["string"==typeof ne?"string":"hash"]:ie.map};const jn=function mapCacheDelete(te){var ne=Fn(this,te).delete(te);return this.size-=ne?1:0,ne};const Vn=function mapCacheGet(te){return Fn(this,te).get(te)};const Gn=function mapCacheHas(te){return Fn(this,te).has(te)};const zn=function mapCacheSet(te,ne){var ie=Fn(this,te),re=ie.size;return ie.set(te,ne),this.size+=ie.size==re?0:1,this};function MapCache(te){var ne=-1,ie=null==te?0:te.length;for(this.clear();++ne<ie;){var re=te[ne];this.set(re[0],re[1])}}MapCache.prototype.clear=On,MapCache.prototype.delete=jn,MapCache.prototype.get=Vn,MapCache.prototype.has=Gn,MapCache.prototype.set=zn;const Hn=MapCache;const Un=function stackSet(te,ne){var ie=this.__data__;if(ie instanceof Ut){var re=ie.__data__;if(!yn||re.length<199)return re.push([te,ne]),this.size=++ie.size,this;ie=this.__data__=new Hn(re)}return ie.set(te,ne),this.size=ie.size,this};function Stack(te){var ne=this.__data__=new Ut(te);this.size=ne.size}Stack.prototype.clear=$t,Stack.prototype.delete=Yt,Stack.prototype.get=Wt,Stack.prototype.has=Kt,Stack.prototype.set=Un;const $n=Stack;const qn=function arrayEach(te,ne){for(var ie=-1,re=null==te?0:te.length;++ie<re&&!1!==ne(te[ie],ie,te););return te};const Yn=function(){try{var te=bn(Object,"defineProperty");return te({},"",{}),te}catch(te){}}();const Wn=function baseAssignValue(te,ne,ie){"__proto__"==ne&&Yn?Yn(te,ne,{configurable:!0,enumerable:!0,value:ie,writable:!0}):te[ne]=ie};var Kn=Object.prototype.hasOwnProperty;const Qn=function assignValue(te,ne,ie){var re=te[ne];Kn.call(te,ne)&&Nt(re,ie)&&(void 0!==ie||ne in te)||Wn(te,ne,ie)};const Jn=function copyObject(te,ne,ie,re){var le=!ie;ie||(ie={});for(var ce=-1,de=ne.length;++ce<de;){var ue=ne[ce],me=re?re(ie[ue],te[ue],ue,ie,te):void 0;void 0===me&&(me=te[ue]),le?Wn(ie,ue,me):Qn(ie,ue,me)}return ie};const Zn=function baseTimes(te,ne){for(var ie=-1,re=Array(te);++ie<te;)re[ie]=ne(ie);return re};const pi=function baseIsArguments(te){return Pe(te)&&"[object Arguments]"==Oe(te)};var gi=Object.prototype,fi=gi.hasOwnProperty,yi=gi.propertyIsEnumerable;const ki=pi(function(){return arguments}())?pi:function(te){return Pe(te)&&fi.call(te,"callee")&&!yi.call(te,"callee")};const Ri=Array.isArray;const Pi=function stubFalse(){return!1};var Fi="object"==typeof exports&&exports&&!exports.nodeType&&exports,ji=Fi&&"object"==typeof module&&module&&!module.nodeType&&module,Vi=ji&&ji.exports===Fi?fe.Buffer:void 0;const eo=(Vi?Vi.isBuffer:void 0)||Pi;var to=/^(?:0|[1-9]\d*)$/;const no=function isIndex(te,ne){var ie=typeof te;return!!(ne=null==ne?9007199254740991:ne)&&("number"==ie||"symbol"!=ie&&to.test(te))&&te>-1&&te%1==0&&te<ne};const io=function isLength(te){return"number"==typeof te&&te>-1&&te%1==0&&te<=9007199254740991};var oo={};oo["[object Float32Array]"]=oo["[object Float64Array]"]=oo["[object Int8Array]"]=oo["[object Int16Array]"]=oo["[object Int32Array]"]=oo["[object Uint8Array]"]=oo["[object Uint8ClampedArray]"]=oo["[object Uint16Array]"]=oo["[object Uint32Array]"]=!0,oo["[object Arguments]"]=oo["[object Array]"]=oo["[object ArrayBuffer]"]=oo["[object Boolean]"]=oo["[object DataView]"]=oo["[object Date]"]=oo["[object Error]"]=oo["[object Function]"]=oo["[object Map]"]=oo["[object Number]"]=oo["[object Object]"]=oo["[object RegExp]"]=oo["[object Set]"]=oo["[object String]"]=oo["[object WeakMap]"]=!1;const ro=function baseIsTypedArray(te){return Pe(te)&&io(te.length)&&!!oo[Oe(te)]};const lo=function baseUnary(te){return function(ne){return te(ne)}};var co="object"==typeof exports&&exports&&!exports.nodeType&&exports,uo=co&&"object"==typeof module&&module&&!module.nodeType&&module,mo=uo&&uo.exports===co&&me.process;const go=function(){try{var te=uo&&uo.require&&uo.require("util").types;return te||mo&&mo.binding&&mo.binding("util")}catch(te){}}();var fo=go&&go.isTypedArray;const _o=fo?lo(fo):ro;var bo=Object.prototype.hasOwnProperty;const Co=function arrayLikeKeys(te,ne){var ie=Ri(te),re=!ie&&ki(te),le=!ie&&!re&&eo(te),ce=!ie&&!re&&!le&&_o(te),de=ie||re||le||ce,ue=de?Zn(te.length,String):[],me=ue.length;for(var ge in te)!ne&&!bo.call(te,ge)||de&&("length"==ge||le&&("offset"==ge||"parent"==ge)||ce&&("buffer"==ge||"byteLength"==ge||"byteOffset"==ge)||no(ge,me))||ue.push(ge);return ue};var wo=Object.prototype;const Ao=function isPrototype(te){var ne=te&&te.constructor;return te===("function"==typeof ne&&ne.prototype||wo)};const ko=Ke(Object.keys,Object);var Io=Object.prototype.hasOwnProperty;const Po=function baseKeys(te){if(!Ao(te))return ko(te);var ne=[];for(var ie in Object(te))Io.call(te,ie)&&"constructor"!=ie&&ne.push(ie);return ne};const Fo=function isArrayLike(te){return null!=te&&io(te.length)&&!Qt(te)};const zo=function keys(te){return Fo(te)?Co(te):Po(te)};const Zo=function baseAssign(te,ne){return te&&Jn(ne,zo(ne),te)};const ur=function nativeKeysIn(te){var ne=[];if(null!=te)for(var ie in Object(te))ne.push(ie);return ne};var hr=Object.prototype.hasOwnProperty;const gr=function baseKeysIn(te){if(!ue(te))return ur(te);var ne=Ao(te),ie=[];for(var re in te)("constructor"!=re||!ne&&hr.call(te,re))&&ie.push(re);return ie};const fr=function keysIn(te){return Fo(te)?Co(te,!0):gr(te)};const _r=function baseAssignIn(te,ne){return te&&Jn(ne,fr(ne),te)};var vr="object"==typeof exports&&exports&&!exports.nodeType&&exports,yr=vr&&"object"==typeof module&&module&&!module.nodeType&&module,wr=yr&&yr.exports===vr?fe.Buffer:void 0,Ar=wr?wr.allocUnsafe:void 0;const kr=function cloneBuffer(te,ne){if(ne)return te.slice();var ie=te.length,re=Ar?Ar(ie):new te.constructor(ie);return te.copy(re),re};const Ir=function copyArray(te,ne){var ie=-1,re=te.length;for(ne||(ne=Array(re));++ie<re;)ne[ie]=te[ie];return ne};const Mr=function arrayFilter(te,ne){for(var ie=-1,re=null==te?0:te.length,le=0,ce=[];++ie<re;){var de=te[ie];ne(de,ie,te)&&(ce[le++]=de)}return ce};const Nr=function stubArray(){return[]};var Lr=Object.prototype.propertyIsEnumerable,Or=Object.getOwnPropertySymbols;const Pr=Or?function(te){return null==te?[]:(te=Object(te),Mr(Or(te),(function(ne){return Lr.call(te,ne)})))}:Nr;const jr=function copySymbols(te,ne){return Jn(te,Pr(te),ne)};const Hr=function arrayPush(te,ne){for(var ie=-1,re=ne.length,le=te.length;++ie<re;)te[le+ie]=ne[ie];return te};const Ur=Object.getOwnPropertySymbols?function(te){for(var ne=[];te;)Hr(ne,Pr(te)),te=Qe(te);return ne}:Nr;const $r=function copySymbolsIn(te,ne){return Jn(te,Ur(te),ne)};const qr=function baseGetAllKeys(te,ne,ie){var re=ne(te);return Ri(te)?re:Hr(re,ie(te))};const Kr=function getAllKeys(te){return qr(te,zo,Pr)};const Qr=function getAllKeysIn(te){return qr(te,fr,Ur)};const Jr=bn(fe,"DataView");const Zr=bn(fe,"Promise");const ea=bn(fe,"Set");const ta=bn(fe,"WeakMap");var ia="[object Map]",oa="[object Promise]",ra="[object Set]",aa="[object WeakMap]",sa="[object DataView]",la=rn(Jr),da=rn(yn),ua=rn(Zr),pa=rn(ea),ha=rn(ta),Ca=Oe;(Jr&&Ca(new Jr(new ArrayBuffer(1)))!=sa||yn&&Ca(new yn)!=ia||Zr&&Ca(Zr.resolve())!=oa||ea&&Ca(new ea)!=ra||ta&&Ca(new ta)!=aa)&&(Ca=function(te){var ne=Oe(te),ie="[object Object]"==ne?te.constructor:void 0,re=ie?rn(ie):"";if(re)switch(re){case la:return sa;case da:return ia;case ua:return oa;case pa:return ra;case ha:return aa}return ne});const wa=Ca;var Ta=Object.prototype.hasOwnProperty;const Da=function initCloneArray(te){var ne=te.length,ie=new te.constructor(ne);return ne&&"string"==typeof te[0]&&Ta.call(te,"index")&&(ie.index=te.index,ie.input=te.input),ie};const xa=fe.Uint8Array;const Ma=function cloneArrayBuffer(te){var ne=new te.constructor(te.byteLength);return new xa(ne).set(new xa(te)),ne};const Na=function cloneDataView(te,ne){var ie=ne?Ma(te.buffer):te.buffer;return new te.constructor(ie,te.byteOffset,te.byteLength)};var Ra=/\w*$/;const La=function cloneRegExp(te){var ne=new te.constructor(te.source,Ra.exec(te));return ne.lastIndex=te.lastIndex,ne};var Oa=we?we.prototype:void 0,Pa=Oa?Oa.valueOf:void 0;const Fa=function cloneSymbol(te){return Pa?Object(Pa.call(te)):{}};const Ba=function cloneTypedArray(te,ne){var ie=ne?Ma(te.buffer):te.buffer;return new te.constructor(ie,te.byteOffset,te.length)};const Ha=function initCloneByTag(te,ne,ie){var re=te.constructor;switch(ne){case"[object ArrayBuffer]":return Ma(te);case"[object Boolean]":case"[object Date]":return new re(+te);case"[object DataView]":return Na(te,ie);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ba(te,ie);case"[object Map]":case"[object Set]":return new re;case"[object Number]":case"[object String]":return new re(te);case"[object RegExp]":return La(te);case"[object Symbol]":return Fa(te)}};var Ua=Object.create;const es=function(){function object(){}return function(te){if(!ue(te))return{};if(Ua)return Ua(te);object.prototype=te;var ne=new object;return object.prototype=void 0,ne}}();const ts=function initCloneObject(te){return"function"!=typeof te.constructor||Ao(te)?{}:es(Qe(te))};const is=function baseIsMap(te){return Pe(te)&&"[object Map]"==wa(te)};var os=go&&go.isMap;const as=os?lo(os):is;const ls=function baseIsSet(te){return Pe(te)&&"[object Set]"==wa(te)};var us=go&&go.isSet;const ps=us?lo(us):ls;var ms="[object Arguments]",fs="[object Function]",bs="[object Object]",Ls={};Ls[ms]=Ls["[object Array]"]=Ls["[object ArrayBuffer]"]=Ls["[object DataView]"]=Ls["[object Boolean]"]=Ls["[object Date]"]=Ls["[object Float32Array]"]=Ls["[object Float64Array]"]=Ls["[object Int8Array]"]=Ls["[object Int16Array]"]=Ls["[object Int32Array]"]=Ls["[object Map]"]=Ls["[object Number]"]=Ls[bs]=Ls["[object RegExp]"]=Ls["[object Set]"]=Ls["[object String]"]=Ls["[object Symbol]"]=Ls["[object Uint8Array]"]=Ls["[object Uint8ClampedArray]"]=Ls["[object Uint16Array]"]=Ls["[object Uint32Array]"]=!0,Ls["[object Error]"]=Ls[fs]=Ls["[object WeakMap]"]=!1;const Os=function baseClone(te,ne,ie,re,le,ce){var de,me=1&ne,ge=2&ne,fe=4&ne;if(ie&&(de=le?ie(te,re,le,ce):ie(te)),void 0!==de)return de;if(!ue(te))return te;var _e=Ri(te);if(_e){if(de=Da(te),!me)return Ir(te,de)}else{var be=wa(te),Ce=be==fs||"[object GeneratorFunction]"==be;if(eo(te))return kr(te,me);if(be==bs||be==ms||Ce&&!le){if(de=ge||Ce?{}:ts(te),!me)return ge?$r(te,_r(de,te)):jr(te,Zo(de,te))}else{if(!Ls[be])return le?te:{};de=Ha(te,be,me)}}ce||(ce=new $n);var ye=ce.get(te);if(ye)return ye;ce.set(te,de),ps(te)?te.forEach((function(re){de.add(baseClone(re,ne,ie,re,te,ce))})):as(te)&&te.forEach((function(re,le){de.set(le,baseClone(re,ne,ie,le,te,ce))}));var we=_e?void 0:(fe?ge?Qr:Kr:ge?fr:zo)(te);return qn(we||te,(function(re,le){we&&(re=te[le=re]),Qn(de,le,baseClone(re,ne,ie,le,te,ce))})),de};const Ps=function cloneDeepWith(te,ne){return Os(te,5,ne="function"==typeof ne?ne:void 0)};class EditorWatchdog extends Watchdog{constructor(te,ne={}){super(ne),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Xe(this._save.bind(this),"number"==typeof ne.saveInterval?ne.saveInterval:5e3),te&&(this._creator=(ne,ie)=>te.create(ne,ie)),this._destructor=te=>te.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(te){this._creator=te}setDestructor(te){this._destructor=te}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((te=>{console.error("An error happened during the editor destroying.",te)})).then((()=>{const te={},ne=[],ie=this._config.rootsAttributes||{},re={};for(const[le,ce]of Object.entries(this._data.roots))ce.isLoaded?(te[le]="",re[le]=ie[le]||{}):ne.push(le);const le={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:ne,rootsAttributes:re,_watchdogInitialData:this._data};return delete le.initialData,le.extraPlugins.push(EditorWatchdogInitPlugin),this._initUsingData?this.create(te,le,le.context):Dt(this._elementOrData)?this.create(this._elementOrData,le,le.context):this.create(this._editables,le,le.context)})).then((()=>{this._fire("restart")}))}create(te=this._elementOrData,ne=this._config,ie){return Promise.resolve().then((()=>(super._startErrorHandling(),this._elementOrData=te,this._initUsingData="string"==typeof te||Object.keys(te).length>0&&"string"==typeof Object.values(te)[0],this._config=this._cloneEditorConfiguration(ne)||{},this._config.context=ie,this._creator(te,this._config)))).then((te=>{this._editor=te,te.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=te.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")}))}destroy(){return Promise.resolve().then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling(),this._throttledSave.cancel();const te=this._editor;return this._editor=null,te.model.document.off("change:data",this._throttledSave),this._destructor(te)}))}_save(){const te=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=te}catch(te){console.error(te,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(te){this._excludedProps=te}_getData(){const te=this._editor,ne=te.model.document.roots.filter((te=>te.isAttached()&&"$graveyard"!=te.rootName)),{plugins:ie}=te,re=ie.has("CommentsRepository")&&ie.get("CommentsRepository"),le=ie.has("TrackChanges")&&ie.get("TrackChanges"),ce={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};ne.forEach((te=>{ce.roots[te.rootName]={content:JSON.stringify(Array.from(te.getChildren())),attributes:JSON.stringify(Array.from(te.getAttributes())),isLoaded:te._isLoaded}}));for(const ne of te.model.markers)ne._affectsData&&(ce.markers[ne.name]={rangeJSON:ne.getRange().toJSON(),usingOperation:ne._managedUsingOperations,affectsData:ne._affectsData});return re&&(ce.commentThreads=JSON.stringify(re.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),le&&(ce.suggestions=JSON.stringify(le.getSuggestions({toJSON:!0,skipNotAttached:!0}))),ce}_getEditables(){const te={};for(const ne of this.editor.model.document.getRootNames()){const ie=this.editor.ui.getEditableElement(ne);ie&&(te[ne]=ie)}return te}_isErrorComingFromThisItem(te){return areConnectedThroughProperties(this._editor,te.context,this._excludedProps)}_cloneEditorConfiguration(te){return Ps(te,((te,ne)=>Dt(te)||"context"===ne?te:void 0))}}class EditorWatchdogInitPlugin{constructor(te){this.editor=te,this._data=te.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",(te=>{te.stop(),this.editor.model.enqueueChange({isUndoable:!1},(te=>{this._restoreCollaborationData(),this._restoreEditorData(te)})),this.editor.data.fire("ready")}),{priority:999})}_createNode(te,ne){if("name"in ne){const ie=te.createElement(ne.name,ne.attributes);if(ne.children)for(const re of ne.children)ie._appendChild(this._createNode(te,re));return ie}return te.createText(ne.data,ne.attributes)}_restoreEditorData(te){const ne=this.editor;Object.entries(this._data.roots).forEach((([ie,{content:re,attributes:le}])=>{const ce=JSON.parse(re),de=JSON.parse(le),ue=ne.model.document.getRoot(ie);for(const[ne,ie]of de)te.setAttribute(ne,ie,ue);for(const ne of ce){const ie=this._createNode(te,ne);te.insert(ie,ue,"end")}})),Object.entries(this._data.markers).forEach((([ie,re])=>{const{document:le}=ne.model,{rangeJSON:{start:ce,end:de},...ue}=re,me=le.getRoot(ce.root),ge=te.createPositionFromPath(me,ce.path,ce.stickiness),fe=te.createPositionFromPath(me,de.path,de.stickiness),_e=te.createRange(ge,fe);te.addMarker(ie,{range:_e,...ue})}))}_restoreCollaborationData(){const te=JSON.parse(this._data.commentThreads),ne=JSON.parse(this._data.suggestions);te.forEach((te=>{const ne=this.editor.config.get("collaboration.channelId"),ie=this.editor.plugins.get("CommentsRepository");if(ie.hasCommentThread(te.threadId)){ie.getCommentThread(te.threadId).remove()}ie.addCommentThread({channelId:ne,...te})})),ne.forEach((te=>{const ne=this.editor.plugins.get("TrackChangesEditing");if(ne.hasSuggestion(te.id)){ne.getSuggestion(te.id).attributes=te.attributes}else ne.addSuggestionData(te)}))}}Symbol("MainQueueId");var zs=ie(1703);function CKEditorComponent_ng_template_0_Template(te,ne){}const Xs=new Array(256).fill(0).map(((te,ne)=>("0"+ne.toString(16)).slice(-2)));const tl="Lock from Angular integration (@ckeditor/ckeditor5-angular)";let cl=(()=>{class CKEditorComponent{constructor(te,ne){this.config={},this.data="",this.tagName="div",this.disableTwoWayDataBinding=!1,this.ready=new le.bkB,this.change=new le.bkB,this.blur=new le.bkB,this.focus=new le.bkB,this.error=new le.bkB,this.initiallyDisabled=!1,this.isEditorSettingData=!1,this.id=function uid(){const te=4294967296*Math.random()>>>0,ne=4294967296*Math.random()>>>0,ie=4294967296*Math.random()>>>0,re=4294967296*Math.random()>>>0;return"e"+Xs[te>>0&255]+Xs[te>>8&255]+Xs[te>>16&255]+Xs[te>>24&255]+Xs[ne>>0&255]+Xs[ne>>8&255]+Xs[ne>>16&255]+Xs[ne>>24&255]+Xs[ie>>0&255]+Xs[ie>>8&255]+Xs[ie>>16&255]+Xs[ie>>24&255]+Xs[re>>0&255]+Xs[re>>8&255]+Xs[re>>16&255]+Xs[re>>24&255]}(),this.ngZone=ne,this.elementRef=te;const{CKEDITOR_VERSION:ie}=window;if(ie){const[te]=ie.split(".").map(Number);te<37&&console.warn("The <CKEditor> component requires using CKEditor 5 in version 37 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')}set disabled(te){this.setDisabledState(te)}get disabled(){return this.editorInstance?this.editorInstance.isReadOnly:this.initiallyDisabled}get editorInstance(){let te=this.editorWatchdog;return this.watchdog&&(te=this.watchdog._watchdogs.get(this.id)),te?te.editor:null}getId(){return this.id}ngOnChanges(te){Object.prototype.hasOwnProperty.call(te,"data")&&te.data&&!te.data.isFirstChange()&&this.writeValue(te.data.currentValue)}ngAfterViewInit(){this.attachToWatchdog()}ngOnDestroy(){var te=this;return(0,de.A)((function*(){te.watchdog?yield te.watchdog.remove(te.id):te.editorWatchdog&&te.editorWatchdog.editor&&(yield te.editorWatchdog.destroy(),te.editorWatchdog=void 0)}))()}writeValue(te){null===te&&(te=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.data.set(te),this.isEditorSettingData=!1):(this.data=te,this.ready.pipe((0,zs.$)()).subscribe((te=>{te.data.set(this.data)})))}registerOnChange(te){this.cvaOnChange=te}registerOnTouched(te){this.cvaOnTouched=te}setDisabledState(te){this.editorInstance&&(te?this.editorInstance.enableReadOnlyMode(tl):this.editorInstance.disableReadOnlyMode(tl)),this.initiallyDisabled=te}attachToWatchdog(){var te=this;const creator=(ne,ie)=>this.ngZone.runOutsideAngular((0,de.A)((function*(){te.elementRef.nativeElement.appendChild(ne);const re=yield te.editor.create(ne,ie);return te.initiallyDisabled&&re.enableReadOnlyMode(tl),te.ngZone.run((()=>{te.ready.emit(re)})),te.setUpEditorEvents(re),re}))),ne=function(){var ne=(0,de.A)((function*(ne){yield ne.destroy(),te.elementRef.nativeElement.removeChild(te.editorElement)}));return function destructor(te){return ne.apply(this,arguments)}}(),emitError=te=>{(function hasObservers(te){return te.observed||te.observers.length>0})(this.error)&&this.ngZone.run((()=>this.error.emit(te)))},ie=document.createElement(this.tagName),re=this.getConfig();if(this.editorElement=ie,this.watchdog)this.watchdog.add({id:this.id,type:"editor",creator,destructor:ne,sourceElementOrData:ie,config:re}).catch((te=>{emitError(te)})),this.watchdog.on("itemError",((te,{itemId:ne})=>{ne===this.id&&emitError()}));else{const te=new EditorWatchdog(this.editor,this.editorWatchdogConfig);te.setCreator(creator),te.setDestructor(ne),te.on("error",emitError),this.editorWatchdog=te,this.ngZone.runOutsideAngular((()=>{te.create(ie,re).catch((te=>{emitError(te)}))}))}}getConfig(){if(this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");const te={...this.config},ne=this.config.initialData||this.data;return ne&&(te.initialData=ne),te}setUpEditorEvents(te){const ne=te.model.document,ie=te.editing.view.document;ne.on("change:data",(ne=>{this.ngZone.run((()=>{if(!this.disableTwoWayDataBinding){if(this.cvaOnChange&&!this.isEditorSettingData){const ne=te.data.get();this.cvaOnChange(ne)}this.change.emit({event:ne,editor:te})}}))})),ie.on("focus",(ne=>{this.ngZone.run((()=>{this.focus.emit({event:ne,editor:te})}))})),ie.on("blur",(ne=>{this.ngZone.run((()=>{this.cvaOnTouched&&this.cvaOnTouched(),this.blur.emit({event:ne,editor:te})}))}))}}return CKEditorComponent.ɵfac=function CKEditorComponent_Factory(te){return new(te||CKEditorComponent)(le.rXU(le.aKT),le.rXU(le.SKi))},CKEditorComponent.ɵcmp=le.VBU({type:CKEditorComponent,selectors:[["ckeditor"]],inputs:{editor:"editor",config:"config",data:"data",tagName:"tagName",watchdog:"watchdog",editorWatchdogConfig:"editorWatchdogConfig",disableTwoWayDataBinding:"disableTwoWayDataBinding",disabled:"disabled"},outputs:{ready:"ready",change:"change",blur:"blur",focus:"focus",error:"error"},features:[le.Jv_([{provide:ce.kq,useExisting:(0,le.Rfq)((()=>CKEditorComponent)),multi:!0}]),le.OA$],decls:1,vars:0,template:function CKEditorComponent_Template(te,ne){1&te&&le.DNE(0,CKEditorComponent_ng_template_0_Template,0,0,"ng-template")},encapsulation:2}),CKEditorComponent})();let kl=(()=>{class CKEditorModule{}return CKEditorModule.ɵfac=function CKEditorModule_Factory(te){return new(te||CKEditorModule)},CKEditorModule.ɵmod=le.$C({type:CKEditorModule}),CKEditorModule.ɵinj=le.G2t({imports:[[ce.YN,re.MD]]}),CKEditorModule})();var zl=ie(1943);let Hl=(()=>{class AutoFocusDirective{constructor(te){this.el=te,this.focus=!0}ngOnInit(){this.focus&&window.setTimeout((()=>{this.el.nativeElement.focus()}))}set brAutoFocus(te){this.focus=!1!==te}static#e=this.ɵfac=function AutoFocusDirective_Factory(te){return new(te||AutoFocusDirective)(le.rXU(le.aKT))};static#t=this.ɵdir=le.FsC({type:AutoFocusDirective,selectors:[["","brAutoFocus",""]],inputs:{brAutoFocus:"brAutoFocus"},standalone:!0})}return AutoFocusDirective})();var Ul=ie(9509);function BrEditorComponent_label_1_Template(te,ne){if(1&te&&(le.j41(0,"label",3),le.EFF(1),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.JRh(te.label)}}const _c0=te=>({minHeight:te}),_c1=te=>({"ng-invalid ng-dirty":te});let $l=(()=>{class BrEditorComponent extends Ul.V{constructor(){super(...arguments),this.placeholder="",this.Editor=zl,this.brEditorRef=(0,le.WQX)(le.aKT)}ngAfterViewInit(){this.brEditorRef.nativeElement.style.setProperty("--height",this.altura)}getConfig(){const te={language:"pt-br",placeholder:this.placeholder};return this.disabled&&(te.toolbar=[]),te}static#e=this.ɵfac=(()=>{let te;return function BrEditorComponent_Factory(ne){return(te||(te=le.xGo(BrEditorComponent)))(ne||BrEditorComponent)}})();static#t=this.ɵcmp=le.VBU({type:BrEditorComponent,selectors:[["br-editor"]],inputs:{altura:"altura",removerToolbar:"removerToolbar",placeholder:"placeholder"},standalone:!0,features:[le.Vt3,le.aNF],decls:3,vars:14,consts:[[1,"p-float-label"],["class","label",4,"ngIf"],[3,"ngModel","ariaLabel","disabled","ngClass","brAutoFocus","editor","config","focusout","ngModelChange"],[1,"label"]],template:function BrEditorComponent_Template(te,ne){1&te&&(le.j41(0,"span",0),le.DNE(1,BrEditorComponent_label_1_Template,2,1,"label",1),le.j41(2,"ckeditor",2),le.bIt("focusout",(function BrEditorComponent_Template_ckeditor_focusout_2_listener(){return ne.markAsTouched()}))("ngModelChange",(function BrEditorComponent_Template_ckeditor_ngModelChange_2_listener(te){return ne.onValueChange(te)})),le.k0s()()),2&te&&(le.R7$(),le.Y8G("ngIf",ne.label),le.R7$(),le.Aen(le.eq3(10,_c0,ne.altura)),le.Y8G("ngModel",ne.value)("ariaLabel",ne.label)("disabled",ne.disabled)("ngClass",le.eq3(12,_c1,ne.showError))("brAutoFocus",ne.autoFocus)("editor",ne.Editor)("config",ne.getConfig()))},dependencies:[kl,cl,re.MD,re.YU,re.bT,ce.YN,ce.BC,ce.vS,Hl],styles:["[_nghost-%COMP%]     .ck-editor__editable_inline,   .ck-source-editing-area{min-height:var(--height);max-height:60vh}[_nghost-%COMP%]     .ck-source-editing-area textarea{overflow:auto}[_nghost-%COMP%]     .ck-powered-by-balloon>div{display:none!important}.label[_ngcontent-%COMP%]{top:-.75rem;font-size:12px;position:absolute;margin-top:-.5rem;line-height:1;left:.75rem;color:var(--text-color);opacity:.8}"]})}return BrEditorComponent})()},6630:(te,ne,ie)=>{"use strict";ie.d(ne,{r:()=>Ge});var re=ie(4460),le=ie(7691),ce=ie(3107),de=ie(6388),ue=ie(2653),me=ie(7178),ge=ie(3016),fe=ie(2040),_e=ie(6564),be=ie(1787),Ce=ie(7947),ye=ie(4574),we=ie(888),ke=ie(3972),Se=ie(6612);function tipoDeArquivoPermitido(te,ne){for(const ie of ne){if("any"===ie)return!0;if(te.startsWith(ie.replace("*","")))return!0}return!1}var xe=ie(3828),Ee=ie(7280),Me=ie(9568),Ne=ie(3511),Re=ie(4613),Le=ie(4320),Oe=ie(2623);function BrFileListComponent_div_0_section_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"section",5)(1,"span",6),ce.EFF(2),ce.k0s(),ce.j41(3,"p-button",7),ce.bIt("onClick",(function BrFileListComponent_div_0_section_1_Template_p_button_onClick_3_listener(){const ne=ce.eBV(te).$implicit,ie=ce.XpG(2);return ce.Njj(ie.viewFile(ne))})),ce.k0s(),ce.j41(4,"p-button",8),ce.bIt("onClick",(function BrFileListComponent_div_0_section_1_Template_p_button_onClick_4_listener(){const ne=ce.eBV(te).$implicit,ie=ce.XpG(2);return ce.Njj(ie.downloadFile(ne))})),ce.k0s(),ce.j41(5,"p-button",9),ce.bIt("onClick",(function BrFileListComponent_div_0_section_1_Template_p_button_onClick_5_listener(){const ne=ce.eBV(te).$implicit,ie=ce.XpG(2);return ce.Njj(ie.removeFile(ne))})),ce.k0s()()}if(2&te){const te=ne.$implicit;ce.R7$(2),ce.JRh(te.name)}}function BrFileListComponent_div_0_Template(te,ne){if(1&te&&(ce.j41(0,"div",3),ce.DNE(1,BrFileListComponent_div_0_section_1_Template,6,1,"section",4),ce.k0s()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngForOf",te.brFileSanitizedList)}}function BrFileListComponent_ng_template_1_Template(te,ne){1&te&&(ce.j41(0,"span"),ce.EFF(1,"Nenhum arquivo encontrado."),ce.k0s())}let Pe=(()=>{class BrFileListComponent{constructor(){this.sanitizer=(0,ce.WQX)(de.up),this.dialogConfig=(0,ce.WQX)(Ne.sb),this.brDialogService=(0,ce.WQX)(we.i),this.dialogRef=(0,ce.WQX)(Ne.Pw),this.confirmationService=(0,ce.WQX)(xe.td),this.keyConfirmDialog=(0,Le.A)(),this.brFileSanitizedList=[],this.arquivosRemovidos=[],this.brFileList=[]}ngOnInit(){this.dialogConfig&&(this.brFileList=this.dialogConfig.data.brFileList,this.sanitizeFiles(),this.dialogConfig.data.onFecharEmitter.subscribe((()=>{this.dialogConfig.data.onFechar(this.arquivosRemovidos),this.dialogRef.close()})))}ngOnChanges(){this.sanitizeFiles()}sanitizeFiles(){this.brFileSanitizedList=this.brFileList.map((te=>({name:te.name,urlOriginal:te.url,url:this.sanitizer.bypassSecurityTrustResourceUrl(te.url),urlDownload:this.sanitizer.bypassSecurityTrustResourceUrl(te.url)})))}viewFile(te){this.brDialogService.open(Oe.e,{header:`${te.name}`,width:"50vw",modal:!1,draggable:!0,resizable:!0,duplicate:!0,contentStyle:{height:"50vh",overflow:"hidden"},data:{brFileSanitized:te}})}downloadFile(te){const ne=document.createElement("a");ne.href=this.brFileList.find((ne=>ne.name===te.name)).urlDownload,ne.download=te.name,ne.click()}removeFile(te){this.confirmationService.confirm({message:`Você tem certeza que deseja remover o arquivo <strong>${te.name}</strong> ?`,header:"Aviso",icon:xe.EE.EXCLAMATION_TRIANGLE,dismissableMask:!0,acceptButtonStyleClass:"p-button-danger",key:this.keyConfirmDialog,accept:()=>{const ne=this.brFileList.findIndex((ne=>ne.url===te.urlOriginal));this.arquivosRemovidos.push(ne);const ie=this.brFileSanitizedList.findIndex((ne=>ne.url===te.url)),re=[...this.brFileSanitizedList];re.splice(ie,1),this.brFileSanitizedList=re}})}static#e=this.ɵfac=function BrFileListComponent_Factory(te){return new(te||BrFileListComponent)};static#t=this.ɵcmp=ce.VBU({type:BrFileListComponent,selectors:[["br-file-list"]],inputs:{brFileList:"brFileList"},standalone:!0,features:[ce.Jv_([we.i,Ne.o3]),ce.OA$,ce.aNF],decls:4,vars:3,consts:[["class","flex flex-column gap-3",4,"ngIf","ngIfElse"],["noFiles",""],[3,"key"],[1,"flex","flex-column","gap-3"],["class","file-card",4,"ngFor","ngForOf"],[1,"file-card"],[1,"title"],["pTooltip","Visualizar","tooltipPosition","top","icon","pi pi-eye","styleClass","p-button-rounded p-button-info",3,"onClick"],["pTooltip","Baixar","icon","pi pi-download","tooltipPosition","top","styleClass","p-button-rounded p-button-success",3,"onClick"],["pTooltip","Remover","icon","pi pi-trash","tooltipPosition","top","styleClass","p-button-rounded p-button-danger",3,"onClick"]],template:function BrFileListComponent_Template(te,ne){if(1&te&&(ce.DNE(0,BrFileListComponent_div_0_Template,2,1,"div",0)(1,BrFileListComponent_ng_template_1_Template,2,0,"ng-template",null,1,ce.C5r),ce.nrm(3,"p-confirmDialog",2)),2&te){const te=ce.sdS(2);ce.Y8G("ngIf",ne.brFileList.length>=1)("ngIfElse",te),ce.R7$(3),ce.Y8G("key",ne.keyConfirmDialog)}},dependencies:[re.MD,re.Sq,re.bT,Ee.tm,Ee.$n,Re.S,Re.m,Me.F,Me.T],styles:["[_nghost-%COMP%]     .file-card{width:100%;padding:.5rem;border:1px solid var(--primary-color);border-radius:1rem;display:flex;align-items:center;gap:.5rem;min-width:30vw}[_nghost-%COMP%]     .file-card .title{flex-grow:1;margin-left:.5rem}[_nghost-%COMP%]     .file-card .p-button{padding:.5rem .75rem}[_nghost-%COMP%]     .file-card .p-button .p-button-label{font-weight:500}"]})}return BrFileListComponent})();var Fe=ie(9509),je=ie(936);const Ve=["input"];function BrFileUploadComponent_span_6_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"span",8),ce.bIt("click",(function BrFileUploadComponent_span_6_Template_span_click_0_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.viewFiles())})),ce.EFF(1),ce.nrm(2,"i",9),ce.k0s()}if(2&te){const te=ce.XpG();ce.R7$(),ce.SpI(" ",te.contentLabel," ")}}function BrFileUploadComponent_i_7_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"i",10),ce.bIt("click",(function BrFileUploadComponent_i_7_Template_i_click_0_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.resetValue())})),ce.k0s()}}const _c1=(te,ne)=>({"mouse-hovered":te,"p-disabled":ne}),_c2=te=>({"has-value":te});let Ge=(()=>{class BrFileUploadComponent extends Fe.V{get contentLabel(){return this.value&&Array.isArray(this.value)?this.value.every((te=>"number"==typeof te))?`${this.value.length} arquivo${this.value.length>1?"s":""} `:this.value.length>1?`${this.value.length} arquivos `:`${this.value[0].name}`:"Nenhum arquivo enviado"}constructor(te){super(te),this.brMessageService=(0,ce.WQX)(ke.h),this.http=(0,ce.WQX)(le.Qq),this.environmentService=(0,ce.WQX)(Se.v),this.brDialogService=(0,ce.WQX)(we.i),this.arquivosService=(0,ce.WQX)(ye.I),this.sanitizer=(0,ce.WQX)(de.up),this.isMouseHovered=!1,this.avoidWriteValue=!1,this.isPublic=!1,this.multiple=!1,this.fileLimit=1,this.accept=["any"],this.maxFileSize=1e7}writeValue(te){Array.isArray(te)&&te.every((te=>"number"==typeof te))&&!this.avoidWriteValue?(0,ue.p)(te.map((te=>this.http.get(`${this.environmentService.environment.serverUrl}/doc-empresa/${te}`).pipe((0,me.W)((te=>(console.error(te),this.brMessageService.error(`Falha ao buscar arquivo de "${this.label}"`),(0,ge.of)(null)))))))).pipe((0,fe.M)((te=>{const ne=te.filter((te=>null!==te));this.value=this.value?.length?[...this.value,...ne.map((te=>({id:te.codDocEmpresa,name:te.tituloDoc,url:te.url,urlDownload:te.urlDownload})))]:ne.map((te=>({id:te.codDocEmpresa,name:te.tituloDoc,url:te.url,urlDownload:te.urlDownload})))}))).subscribe():"number"==typeof te?this.http.get(`${this.environmentService.environment.serverUrl}/doc-empresa/${te}`).pipe((0,me.W)((te=>(console.error(te),this.brMessageService.error(`Falha ao buscar arquivo de "${this.label}"`),_e.w))),(0,fe.M)((te=>{this.value=[{id:te.codDocEmpresa,name:te.tituloDoc,url:te.url,urlDownload:te.urlDownload}]}))).subscribe():super.writeValue(te)}ngOnInit(){this.acceptedFiles=this.accept.join(","),this.fileLimit>1&&(this.multiple=!0),!0===this.multiple&&1===this.fileLimit&&(this.fileLimit=10)}onFileSelected(){this.control.control.markAsDirty();for(const te of this.inputElement?.nativeElement.files){if(this.inputElement?.nativeElement.files.length>this.fileLimit)return this.inputElement.nativeElement.value="",this.brMessageService.error(`O limite de ${this.fileLimit} arquivos foi excedido.`);if(!tipoDeArquivoPermitido(te.type,this.accept))return this.inputElement.nativeElement.value="",this.brMessageService.error(`O tipo de arquivo ".${te.name.split(".")[1]}" não é permitido.`);if(te.size>this.maxFileSize)return this.inputElement.nativeElement.value="",this.brMessageService.error(`O arquivo enviado excedeu o limite de tamanho permitido. (${this.maxFileSize/1e6}MB)`);const ne={name:te.name,url:URL.createObjectURL(te),urlDownload:URL.createObjectURL(te)};this.multiple?this.onValueChange(this.value?[...this.value,ne]:[ne]):this.onValueChange([ne])}}viewFiles(){if(this.value&&Array.isArray(this.value)&&this.value.length)if(this.value.length>1)this.brDialogService.open(Pe,{header:`Visualizando arquivos de "${this.label}"`,data:{brFileList:this.value},onFechar:te=>{for(const ne of te)this.value?.splice(ne,1),this.inputElement.nativeElement.value=""}});else{const te=this.value[0];this.brDialogService.open(Oe.e,{header:`${te.name}`,width:"50vw",modal:!1,draggable:!0,resizable:!0,duplicate:!0,contentStyle:{height:"50vh",overflow:"hidden"},data:{brFileSanitized:{url:this.sanitizer.bypassSecurityTrustResourceUrl(te.url),urlDownload:this.sanitizer.bypassSecurityTrustResourceUrl(te.urlDownload),name:te.name}}})}}resetValue(){this.onValueChange(null),this.inputElement&&(this.inputElement.nativeElement.value="")}uploadFiles(){if(!this.value)return this.control.control?.setValue(null),(0,ge.of)(void 0);const te=this.value.filter((te=>"number"!=typeof te&&!te.id)).map((te=>this.isPublic?(0,be.H)(this.arquivosService.uploadPublico({name:te.name,url:te.url})).pipe((0,fe.M)((ne=>te.id=ne[0]))):(0,be.H)(this.arquivosService.uploadPrivado({name:te.name,url:te.url})).pipe((0,fe.M)((ne=>te.id=ne[0])))));return 0===te.length?(0,ge.of)(void 0):(0,ue.p)(te).pipe((0,fe.M)((()=>{const te=this.value.map((te=>te.id));this.avoidWriteValue=!0,this.control.control?.setValue(this.multiple?te:te[0])})),(0,Ce.T)((()=>{})))}static#e=this.ɵfac=function BrFileUploadComponent_Factory(te){return new(te||BrFileUploadComponent)(ce.rXU(je.vO,10))};static#t=this.ɵcmp=ce.VBU({type:BrFileUploadComponent,selectors:[["br-file-upload"]],viewQuery:function BrFileUploadComponent_Query(te,ne){if(1&te&&ce.GBs(Ve,5),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.inputElement=te.first)}},inputs:{isPublic:"isPublic",multiple:"multiple",fileLimit:"fileLimit",accept:"accept",maxFileSize:"maxFileSize"},standalone:!0,features:[ce.Jv_([we.i]),ce.Vt3,ce.aNF],decls:9,vars:13,consts:[[1,"w-full","h-full","relative","br-file-upload",2,"min-height","44px","min-width","250px",3,"ngClass"],["type","file",3,"accept","multiple","disabled","change","mouseenter","mouseleave"],["input",""],[1,"upload-mask",3,"ngClass"],[1,"float-label"],["class","content-label fadein animation-duration-200 z-3",3,"click",4,"ngIf"],["class","pi pi-times icon z-3",3,"click",4,"ngIf"],[1,"pi","pi-upload","icon"],[1,"content-label","fadein","animation-duration-200","z-3",3,"click"],[1,"pi","pi-eye"],[1,"pi","pi-times","icon","z-3",3,"click"]],template:function BrFileUploadComponent_Template(te,ne){1&te&&(ce.j41(0,"div",0)(1,"input",1,2),ce.bIt("change",(function BrFileUploadComponent_Template_input_change_1_listener(){return ne.onFileSelected()}))("mouseenter",(function BrFileUploadComponent_Template_input_mouseenter_1_listener(){return ne.isMouseHovered=!0}))("mouseleave",(function BrFileUploadComponent_Template_input_mouseleave_1_listener(){return ne.isMouseHovered=!1})),ce.k0s(),ce.j41(3,"span",3)(4,"label",4),ce.EFF(5),ce.k0s()(),ce.DNE(6,BrFileUploadComponent_span_6_Template,3,1,"span",5)(7,BrFileUploadComponent_i_7_Template,1,0,"i",6),ce.nrm(8,"i",7),ce.k0s()),2&te&&(ce.Y8G("ngClass",ce.l_i(8,_c1,ne.isMouseHovered,ne.disabled)),ce.R7$(),ce.Y8G("accept",ne.acceptedFiles)("multiple",ne.multiple)("disabled",ne.disabled),ce.R7$(2),ce.Y8G("ngClass",ce.eq3(11,_c2,ne.value)),ce.R7$(2),ce.JRh(ne.label),ce.R7$(),ce.Y8G("ngIf",ne.value),ce.R7$(),ce.Y8G("ngIf",ne.value))},dependencies:[re.MD,re.YU,re.bT],styles:["[_nghost-%COMP%]   input[_ngcontent-%COMP%]{width:100%;height:100%;opacity:0;position:absolute;z-index:2;cursor:pointer}[_nghost-%COMP%]   .upload-mask[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;border:1px solid;border-color:#d3dbe3;border-bottom-width:medium;border-radius:6px;transition:all .2s ease-in-out;position:absolute;z-index:1;background:#fff}[_nghost-%COMP%]   .float-label[_ngcontent-%COMP%]{position:absolute;white-space:nowrap;font-size:1rem;top:50%;margin-top:-.5rem;line-height:1;left:.75rem;color:var(--text-color);opacity:.8;transition:all .2s ease-in-out}[_nghost-%COMP%]   .content-label[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center;position:absolute;white-space:nowrap;font-size:1rem;top:50%;margin-top:-.5rem;line-height:1;left:.75rem;color:var(--text-color);max-width:calc(100% - 5.75rem);text-overflow:ellipsis;overflow:hidden;cursor:pointer;transition:all .2s ease-in-out;opacity:.75}[_nghost-%COMP%]   .content-label[_ngcontent-%COMP%]:hover{opacity:1}[_nghost-%COMP%]   .content-label[_ngcontent-%COMP%]   .pi-download[_ngcontent-%COMP%]{margin-left:.25rem;font-size:.85rem}[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;margin-top:-.5rem;margin-right:12px;opacity:.5;z-index:1;transition:opacity .2s ease-in-out;cursor:pointer}[_nghost-%COMP%]   .icon.pi-info-circle[_ngcontent-%COMP%]{margin-right:5rem}[_nghost-%COMP%]   .icon.pi-info-circle[_ngcontent-%COMP%]:hover{opacity:1}[_nghost-%COMP%]   .icon.pi-times[_ngcontent-%COMP%]{margin-right:3rem}[_nghost-%COMP%]   .icon.pi-times[_ngcontent-%COMP%]:hover{opacity:1}[_nghost-%COMP%]   .has-value[_ngcontent-%COMP%]   .float-label[_ngcontent-%COMP%]{top:-20px;font-size:12px;margin-top:0}[_nghost-%COMP%]   .mouse-hovered[_ngcontent-%COMP%]   .upload-mask[_ngcontent-%COMP%]{border-color:var(--secondary-color)!important}  .br-file-upload-files-list{display:flex;flex-direction:column;gap:.5rem}"]})}return BrFileUploadComponent})()},2623:(te,ne,ie)=>{"use strict";ie.d(ne,{e:()=>me});var re=ie(4460),le=ie(3107),ce=ie(7280),de=ie(3511),ue=ie(888);function BrFileViewerComponent_iframe_0_Template(te,ne){if(1&te&&le.nrm(0,"iframe",1),2&te){const te=le.XpG();le.Y8G("src",te.brFileSanitized.url,le.f$h)}}let me=(()=>{class BrFileViewerComponent{constructor(){this.dialogConfig=(0,le.WQX)(de.sb),this.brFileSanitized=null}ngOnInit(){this.brFileSanitized=this.dialogConfig.data.brFileSanitized}static#e=this.ɵfac=function BrFileViewerComponent_Factory(te){return new(te||BrFileViewerComponent)};static#t=this.ɵcmp=le.VBU({type:BrFileViewerComponent,selectors:[["br-file-viewer"]],standalone:!0,features:[le.Jv_([ue.i,de.o3]),le.aNF],decls:1,vars:1,consts:[["frameborder","0",3,"src",4,"ngIf"],["frameborder","0",3,"src"]],template:function BrFileViewerComponent_Template(te,ne){1&te&&le.DNE(0,BrFileViewerComponent_iframe_0_Template,1,1,"iframe",0),2&te&&le.Y8G("ngIf",ne.brFileSanitized)},dependencies:[re.MD,re.bT,ce.tm],styles:["[_nghost-%COMP%]     .file-card{width:100%;padding:.5rem;border:1px solid var(--primary-color);border-radius:1rem;display:flex;align-items:center;gap:.5rem;min-width:30vw}[_nghost-%COMP%]     .file-card .title{flex-grow:1;margin-left:.5rem}[_nghost-%COMP%]     .file-card .p-button{padding:.5rem .75rem}[_nghost-%COMP%]     .file-card .p-button .p-button-label{font-weight:500}iframe[_ngcontent-%COMP%]{width:100%;height:100%}"]})}return BrFileViewerComponent})()},9335:(te,ne,ie)=>{"use strict";ie.d(ne,{i:()=>ye,v:()=>Ce});var re=ie(4460),le=ie(936),ce=ie(30),de=ie(208),ue=ie(1782),me=ie(7069),ge=ie(7538),fe=ie(9509),_e=ie(3107),be=ie(7280);function BrFilterDateComponent_label_2_Template(te,ne){if(1&te&&(_e.j41(0,"label",8),_e.EFF(1),_e.k0s()),2&te){const te=_e.XpG();_e.R7$(),_e.JRh(te.label)}}var Ce=function(te){return te[te.Hoje=0]="Hoje",te[te.SeteDias=7]="SeteDias",te[te.QuinzeDias=15]="QuinzeDias",te.MesAtual="mes-atual",te[te.UmMes=30]="UmMes",te[te.TresMeses=90]="TresMeses",te[te.SeisMeses=180]="SeisMeses",te[te.UmAno=365]="UmAno",te[te.Outro=-1]="Outro",te}(Ce||{});let ye=(()=>{class BrFilterDateComponent extends fe.V{constructor(te){super(te),this.periodoOptions=[{label:"Hoje",value:Ce.Hoje},{label:"Últimos 7 dias",value:Ce.SeteDias},{label:"Últimos 15 dias",value:Ce.QuinzeDias},{label:"Mês atual",value:Ce.MesAtual},{label:"Último mês",value:Ce.UmMes},{label:"Últimos 3 meses",value:Ce.TresMeses},{label:"Últimos 6 meses",value:Ce.SeisMeses},{label:"Último ano",value:Ce.UmAno},{label:"Outro",value:Ce.Outro}],this.periodoValue=null,this.rangeDates=null,this.mostraHora=!1}get buttonLabel(){const te=this.periodoOptions.find((te=>te.value===this.periodoValue));if(this.rangeDates?.length&&te){const ne=this.rangeDates[0],ie=this.rangeDates[1];return te.value===Ce.Outro?`${ne?.toLocaleDateString("pt-br")} até ${ie?.toLocaleDateString("pt-br")}`:te.label}return this.label}writeValue(te){if(te)if(te.periodo.value===Ce.Outro)this.periodoValue=te.periodo.value,this.rangeDates=[new Date(te.dataInicial),new Date(te.dataFinal)];else if(te.periodo.value===Ce.MesAtual){const ne=new Date;ne.setDate(1),ne.setHours(0,0,0,0);const ie=new Date;ie.setMonth(ie.getMonth()+1),ie.setDate(0),ie.setHours(23,59,59),this.periodoValue=te.periodo.value,this.rangeDates=[ne,ie],this.onValueChange({periodo:this.periodoOptions.find((te=>te.value===this.periodoValue)),dataInicial:(0,ge.hk)(ne),dataFinal:(0,ge.hk)(ie)})}else{const ne=new Date(Date.now()-864e5*te.periodo.value),ie=new Date;ne.setHours(0,0,0),ie.setHours(23,59,59),this.periodoValue=te.periodo.value,this.rangeDates=[ne,ie],this.onValueChange({periodo:this.periodoOptions.find((te=>te.value===this.periodoValue)),dataInicial:(0,ge.hk)(ne),dataFinal:(0,ge.hk)(ie)})}else this.rangeDates=null,this.periodoValue=null;super.writeValue(te)}onValueChange(te){te?te.dataInicial&&te.dataFinal&&(this.rangeDates=[new Date(te.dataInicial),new Date(te.dataFinal)]):(this.rangeDates=null,this.periodoValue=null),super.onValueChange(te)}onPeriodoClear(){this.onValueChange(null)}onPeriodoChange(){if(null!==this.periodoValue){if(this.periodoValue===Ce.Outro)return;if(this.periodoValue===Ce.MesAtual){const te=new Date;te.setDate(1),te.setHours(0,0,0,0);const ne=new Date;ne.setMonth(ne.getMonth()+1),ne.setDate(0),ne.setHours(23,59,59),this.rangeDates=[te,ne],this.onValueChange({periodo:this.periodoOptions.find((te=>te.value===this.periodoValue)),dataInicial:(0,ge.hk)(te),dataFinal:(0,ge.hk)(ne)})}else{const te=new Date(Date.now()-864e5*this.periodoValue),ne=new Date;te.setHours(0,0,0),ne.setHours(23,59,59),this.rangeDates=[te,ne],this.onValueChange({periodo:this.periodoOptions.find((te=>te.value===this.periodoValue)),dataInicial:(0,ge.hk)(te),dataFinal:(0,ge.hk)(ne)})}}}onDateClear(){this.periodoValue=null}onDateFocus(){this.periodoValue=Ce.Outro}onDateBlur(){if(this.rangeDates){const te=new Date(this.rangeDates[0]),ne=new Date(this.rangeDates[1]);this.mostraHora||(te.setHours(0,0,0),ne.setHours(23,59,59)),this.onValueChange({periodo:this.periodoOptions.find((te=>te.value===this.periodoValue)),dataInicial:(0,ge.hk)(te),dataFinal:(0,ge.hk)(ne)})}else this.onValueChange(null)}static#e=this.ɵfac=function BrFilterDateComponent_Factory(te){return new(te||BrFilterDateComponent)(_e.rXU(le.vO,10))};static#t=this.ɵcmp=_e.VBU({type:BrFilterDateComponent,selectors:[["br-filter-date"]],inputs:{mostraHora:"mostraHora"},standalone:!0,features:[_e.Vt3,_e.aNF],decls:8,vars:15,consts:[[1,"w-full","h-full","relative"],["styleClass","p-button-outlined",3,"label","disabled","onClick"],["class","float-label fadein animation-duration-200",4,"ngIf"],["appendTo","body"],["op",""],[1,"flex","flex-wrap","gap-2"],["placeholder","Período",3,"ariaLabel","options","ngModel","showClear","ngModelChange","onChange","onClear"],["dateMask","","selectionMode","range","rangeSeparator","-","dateFormat","dd/mm/yy",3,"ariaLabel","ngModel","inputStyleClass","showIcon","showOnFocus","showClear","ngModelChange","onBlur","onClear","onFocus"],[1,"float-label","fadein","animation-duration-200"]],template:function BrFilterDateComponent_Template(te,ne){if(1&te){const te=_e.RV6();_e.j41(0,"div",0)(1,"p-button",1),_e.bIt("onClick",(function BrFilterDateComponent_Template_p_button_onClick_1_listener(ne){_e.eBV(te);const ie=_e.sdS(4);return _e.Njj(ie.toggle(ne))})),_e.k0s(),_e.DNE(2,BrFilterDateComponent_label_2_Template,2,1,"label",2),_e.k0s(),_e.j41(3,"p-overlayPanel",3,4)(5,"div",5)(6,"p-dropdown",6),_e.mxI("ngModelChange",(function BrFilterDateComponent_Template_p_dropdown_ngModelChange_6_listener(te){return _e.DH7(ne.periodoValue,te)||(ne.periodoValue=te),te})),_e.bIt("onChange",(function BrFilterDateComponent_Template_p_dropdown_onChange_6_listener(){return ne.onPeriodoChange()}))("onClear",(function BrFilterDateComponent_Template_p_dropdown_onClear_6_listener(){return ne.onPeriodoClear()})),_e.k0s(),_e.j41(7,"p-calendar",7),_e.mxI("ngModelChange",(function BrFilterDateComponent_Template_p_calendar_ngModelChange_7_listener(te){return _e.DH7(ne.rangeDates,te)||(ne.rangeDates=te),te})),_e.bIt("onBlur",(function BrFilterDateComponent_Template_p_calendar_onBlur_7_listener(){return ne.onDateBlur()}))("onClear",(function BrFilterDateComponent_Template_p_calendar_onClear_7_listener(){return ne.onDateClear()}))("onFocus",(function BrFilterDateComponent_Template_p_calendar_onFocus_7_listener(){return ne.onDateFocus()})),_e.k0s()()()}2&te&&(_e.R7$(),_e.HbH(null!=ne.rangeDates&&ne.rangeDates.length?"has-date-label":""),_e.Y8G("label",ne.buttonLabel)("disabled",ne.disabled),_e.R7$(),_e.Y8G("ngIf",null==ne.rangeDates?null:ne.rangeDates.length),_e.R7$(4),_e.Mz_("ariaLabel","Período de ",ne.label,""),_e.Y8G("options",ne.periodoOptions),_e.R50("ngModel",ne.periodoValue),_e.Y8G("showClear",!0),_e.R7$(),_e.Mz_("ariaLabel","Datas de ",ne.label,""),_e.R50("ngModel",ne.rangeDates),_e.Y8G("inputStyleClass",ne.mostraHora?"w-22rem":"")("showIcon",!0)("showOnFocus",!1)("showClear",!0))},dependencies:[re.MD,re.bT,le.YN,le.BC,le.vS,ue.d,ue.j,ce.rO,ce.Vv,be.$n,de.kr,de.ms,me.Y],styles:["[_nghost-%COMP%]     .p-button-outlined{border:1px solid #d3dbe3!important;border-bottom-width:medium!important;background-color:#fff!important;width:100%;padding-left:.75rem}[_nghost-%COMP%]     .p-button-outlined .p-button-label{color:var(--text-color);opacity:.85;font-weight:400;width:auto;text-align:left}[_nghost-%COMP%]     .p-button-outlined:hover{border:1px solid var(--secondary-color)!important;border-bottom-width:medium!important}[_nghost-%COMP%]     .has-date-label .button-label{color:var(--text-color)!important}[_nghost-%COMP%]     .p-calendar{width:100%}[_nghost-%COMP%]     .hide-clear-button .p-calendar-clear-icon{display:none}[_nghost-%COMP%]     .p-inputtext{border-radius:6px 0 0 6px}[_nghost-%COMP%]     .p-dropdown{min-width:15rem}.float-label[_ngcontent-%COMP%]{position:absolute;white-space:nowrap;top:-20px;font-size:12px;left:.75rem;color:var(--text-color);opacity:.8}"]})}return BrFilterDateComponent})()},4358:(te,ne,ie)=>{"use strict";ie.d(ne,{L:()=>zt});var re=ie(4460),le=ie(7691),ce=ie(3107),de=ie(936),ue=ie(336),me=ie(2583),ge=ie(7280),fe=ie(403),_e=ie(208),be=ie(5708),Ce=ie(3828),ye=ie(5724),we=ie(1080),ke=ie(1646),Se=ie(3934),xe=ie(4613),Ee=ie(1939),Me=ie(7825),Ne=ie(9935),Re=ie(8471),Le=ie(239),Oe=ie(60),Pe=ie(6253);function MultiSelectItem_ng_container_3_CheckIcon_1_Template(te,ne){1&te&&ce.nrm(0,"CheckIcon",7),2&te&&(ce.Y8G("styleClass","p-checkbox-icon"),ce.BMQ("aria-hidden",!0))}function MultiSelectItem_ng_container_3_span_2_1_ng_template_0_Template(te,ne){}function MultiSelectItem_ng_container_3_span_2_1_Template(te,ne){1&te&&ce.DNE(0,MultiSelectItem_ng_container_3_span_2_1_ng_template_0_Template,0,0,"ng-template")}function MultiSelectItem_ng_container_3_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",8),ce.DNE(1,MultiSelectItem_ng_container_3_span_2_1_Template,1,0,null,9),ce.k0s()),2&te){const te=ce.XpG(2);ce.BMQ("aria-hidden",!0),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.checkIconTemplate)}}function MultiSelectItem_ng_container_3_span_3_1_ng_template_0_Template(te,ne){}function MultiSelectItem_ng_container_3_span_3_1_Template(te,ne){1&te&&ce.DNE(0,MultiSelectItem_ng_container_3_span_3_1_ng_template_0_Template,0,0,"ng-template")}const _c0=te=>({$implicit:te});function MultiSelectItem_ng_container_3_span_3_Template(te,ne){if(1&te&&(ce.j41(0,"span",8),ce.DNE(1,MultiSelectItem_ng_container_3_span_3_1_Template,1,0,null,4),ce.k0s()),2&te){const te=ce.XpG(2);ce.BMQ("aria-hidden",!0),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.itemCheckboxIconTemplate)("ngTemplateOutletContext",ce.eq3(3,_c0,te.selected))}}function MultiSelectItem_ng_container_3_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelectItem_ng_container_3_CheckIcon_1_Template,1,2,"CheckIcon",5)(2,MultiSelectItem_ng_container_3_span_2_Template,2,2,"span",6)(3,MultiSelectItem_ng_container_3_span_3_Template,2,5,"span",6),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngIf",!te.checkIconTemplate&&!te.itemCheckboxIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.checkIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.itemCheckboxIconTemplate)}}function MultiSelectItem_span_4_Template(te,ne){if(1&te&&(ce.j41(0,"span"),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG();let ne;ce.R7$(),ce.JRh(null!==(ne=te.label)&&void 0!==ne?ne:"empty")}}function MultiSelectItem_ng_container_5_Template(te,ne){1&te&&ce.eu8(0)}const _c1=te=>({height:te}),_c2=(te,ne)=>({"p-multiselect-item":!0,"p-disabled":te,"p-focus":ne}),_c3=te=>({"p-variant-filled":te}),_c4=te=>({"p-highlight":te}),Fe=["container"],je=["overlay"],Ve=["filterInput"],Ge=["focusInput"],ze=["items"],He=["scroller"],$e=["lastHiddenFocusableEl"],qe=["firstHiddenFocusableEl"],Ye=["headerCheckbox"];function MultiSelect_ng_container_7_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.EFF(1),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.JRh(te.label()||"empty")}}const _c14=te=>({"p-disabled":te});function MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_TimesCircleIcon_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"TimesCircleIcon",21),ce.bIt("click",(function MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_TimesCircleIcon_1_Template_TimesCircleIcon_click_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(3);return ce.Njj(ie.removeOption(ne,ie.event))})),ce.k0s()}if(2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG(3);ce.Y8G("ngClass",ce.eq3(4,_c14,ne.isOptionDisabled(te)))("styleClass","p-multiselect-token-icon"),ce.BMQ("data-pc-section","clearicon")("aria-hidden",!0)}}function MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"span",22),ce.bIt("click",(function MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_Template_span_click_0_listener(){ce.eBV(te);const ne=ce.XpG(2).$implicit,ie=ce.XpG(3);return ce.Njj(ie.removeOption(ne,ie.event))})),ce.DNE(1,MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_ng_container_1_Template,1,0,"ng-container",23),ce.k0s()}if(2&te){const te=ce.XpG(5);ce.BMQ("data-pc-section","clearicon")("aria-hidden",!0),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.removeTokenIconTemplate)}}function MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_TimesCircleIcon_1_Template,1,6,"TimesCircleIcon",19)(2,MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_Template,2,3,"span",20),ce.bVm()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngIf",!te.removeTokenIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.removeTokenIconTemplate)}}function MultiSelect_ng_container_7_ng_container_2_div_1_Template(te,ne){if(1&te&&(ce.j41(0,"div",16,17)(2,"span",18),ce.EFF(3),ce.k0s(),ce.DNE(4,MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_Template,3,2,"ng-container",7),ce.k0s()),2&te){const te=ne.$implicit,ie=ce.XpG(3);ce.R7$(3),ce.JRh(ie.getLabelByValue(te)),ce.R7$(),ce.Y8G("ngIf",!ie.disabled)}}function MultiSelect_ng_container_7_ng_container_2_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.EFF(1),ce.bVm()),2&te){const te=ce.XpG(3);ce.R7$(),ce.JRh(te.placeholder()||te.defaultLabel||"empty")}}function MultiSelect_ng_container_7_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_container_7_ng_container_2_div_1_Template,5,2,"div",15)(2,MultiSelect_ng_container_7_ng_container_2_ng_container_2_Template,2,1,"ng-container",7),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("ngForOf",te.chipSelectedItems()),ce.R7$(),ce.Y8G("ngIf",!te.modelValue()||0===te.modelValue().length)}}function MultiSelect_ng_container_7_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_container_7_ng_container_1_Template,2,1,"ng-container",7)(2,MultiSelect_ng_container_7_ng_container_2_Template,3,2,"ng-container",7),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngIf","comma"===te.display),ce.R7$(),ce.Y8G("ngIf","chip"===te.display)}}function MultiSelect_ng_container_8_Template(te,ne){1&te&&ce.eu8(0)}function MultiSelect_ng_container_9_TimesIcon_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"TimesIcon",26),ce.bIt("click",(function MultiSelect_ng_container_9_TimesIcon_1_Template_TimesIcon_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.clear(ne))})),ce.k0s()}2&te&&(ce.Y8G("styleClass","p-multiselect-clear-icon"),ce.BMQ("data-pc-section","clearicon")("aria-hidden",!0))}function MultiSelect_ng_container_9_span_2_1_ng_template_0_Template(te,ne){}function MultiSelect_ng_container_9_span_2_1_Template(te,ne){1&te&&ce.DNE(0,MultiSelect_ng_container_9_span_2_1_ng_template_0_Template,0,0,"ng-template")}function MultiSelect_ng_container_9_span_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"span",27),ce.bIt("click",(function MultiSelect_ng_container_9_span_2_Template_span_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.clear(ne))})),ce.DNE(1,MultiSelect_ng_container_9_span_2_1_Template,1,0,null,23),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.BMQ("data-pc-section","clearicon")("aria-hidden",!0),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.clearIconTemplate)}}function MultiSelect_ng_container_9_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_container_9_TimesIcon_1_Template,1,3,"TimesIcon",24)(2,MultiSelect_ng_container_9_span_2_Template,2,3,"span",25),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngIf",!te.clearIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.clearIconTemplate)}}function MultiSelect_ng_container_11_ng_container_1_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function MultiSelect_ng_container_11_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_container_11_ng_container_1_ng_container_1_Template,1,0,"ng-container",23),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.loadingIconTemplate)}}function MultiSelect_ng_container_11_ng_container_2_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",30),2&te){const te=ce.XpG(3);ce.Y8G("ngClass","p-multiselect-trigger-icon pi-spin "+te.loadingIcon)}}function MultiSelect_ng_container_11_ng_container_2_span_2_Template(te,ne){1&te&&ce.nrm(0,"span",31),2&te&&ce.HbH("p-multiselect-trigger-icon pi pi-spinner pi-spin")}function MultiSelect_ng_container_11_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_container_11_ng_container_2_span_1_Template,1,1,"span",28)(2,MultiSelect_ng_container_11_ng_container_2_span_2_Template,1,2,"span",29),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("ngIf",te.loadingIcon),ce.R7$(),ce.Y8G("ngIf",!te.loadingIcon)}}function MultiSelect_ng_container_11_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_container_11_ng_container_1_Template,2,1,"ng-container",7)(2,MultiSelect_ng_container_11_ng_container_2_Template,3,2,"ng-container",7),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngIf",te.loadingIconTemplate),ce.R7$(),ce.Y8G("ngIf",!te.loadingIconTemplate)}}function MultiSelect_ng_template_12_ng_container_0_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",35),2&te){const te=ce.XpG(3);ce.Y8G("ngClass",te.dropdownIcon),ce.BMQ("data-pc-section","triggericon")("aria-hidden",!0)}}function MultiSelect_ng_template_12_ng_container_0_ChevronDownIcon_2_Template(te,ne){1&te&&ce.nrm(0,"ChevronDownIcon",36),2&te&&(ce.Y8G("styleClass","p-multiselect-trigger-icon"),ce.BMQ("data-pc-section","triggericon")("aria-hidden",!0))}function MultiSelect_ng_template_12_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_template_12_ng_container_0_span_1_Template,1,3,"span",33)(2,MultiSelect_ng_template_12_ng_container_0_ChevronDownIcon_2_Template,1,3,"ChevronDownIcon",34),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("ngIf",te.dropdownIcon),ce.R7$(),ce.Y8G("ngIf",!te.dropdownIcon)}}function MultiSelect_ng_template_12_span_1_1_ng_template_0_Template(te,ne){}function MultiSelect_ng_template_12_span_1_1_Template(te,ne){1&te&&ce.DNE(0,MultiSelect_ng_template_12_span_1_1_ng_template_0_Template,0,0,"ng-template")}function MultiSelect_ng_template_12_span_1_Template(te,ne){if(1&te&&(ce.j41(0,"span",37),ce.DNE(1,MultiSelect_ng_template_12_span_1_1_Template,1,0,null,23),ce.k0s()),2&te){const te=ce.XpG(2);ce.BMQ("data-pc-section","triggericon")("aria-hidden",!0),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.dropdownIconTemplate)}}function MultiSelect_ng_template_12_Template(te,ne){if(1&te&&ce.DNE(0,MultiSelect_ng_template_12_ng_container_0_Template,3,2,"ng-container",7)(1,MultiSelect_ng_template_12_span_1_Template,2,3,"span",32),2&te){const te=ce.XpG();ce.Y8G("ngIf",!te.dropdownIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.dropdownIconTemplate)}}function MultiSelect_ng_template_16_div_3_ng_container_2_Template(te,ne){1&te&&ce.eu8(0)}function MultiSelect_ng_template_16_div_3_ng_container_3_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}const _c15=te=>({options:te});function MultiSelect_ng_template_16_div_3_ng_container_3_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_template_16_div_3_ng_container_3_ng_container_1_Template,1,0,"ng-container",8),ce.bVm()),2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.filterTemplate)("ngTemplateOutletContext",ce.eq3(2,_c15,te.filterOptions))}}function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_ng_container_1_CheckIcon_1_Template(te,ne){1&te&&ce.nrm(0,"CheckIcon",36),2&te&&(ce.Y8G("styleClass","p-checkbox-icon"),ce.BMQ("aria-hidden",!0))}function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_ng_container_1_CheckIcon_1_Template,1,2,"CheckIcon",34),ce.bVm()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngIf",te.allSelected())}}function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_1_ng_template_0_Template(te,ne){}function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_1_Template(te,ne){1&te&&ce.DNE(0,MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_1_ng_template_0_Template,0,0,"ng-template")}function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",58),ce.DNE(1,MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_1_Template,1,0,null,8),ce.k0s()),2&te){const te=ce.XpG(6);ce.BMQ("aria-hidden",!0),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.checkIconTemplate)("ngTemplateOutletContext",ce.eq3(3,_c0,te.allSelected()))}}function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_1_ng_template_0_Template(te,ne){}function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_1_Template(te,ne){1&te&&ce.DNE(0,MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_1_ng_template_0_Template,0,0,"ng-template")}const _c16=(te,ne)=>({$implicit:te,partialSelected:ne});function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_Template(te,ne){if(1&te&&(ce.j41(0,"span",58),ce.DNE(1,MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_1_Template,1,0,null,8),ce.k0s()),2&te){const te=ce.XpG(6);ce.BMQ("aria-hidden",!0),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.headerCheckboxIconTemplate)("ngTemplateOutletContext",ce.l_i(3,_c16,te.allSelected(),te.partialSelected()))}}function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_ng_container_1_Template,2,1,"ng-container",7)(2,MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_Template,2,5,"span",57)(3,MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_Template,2,6,"span",57),ce.bVm()),2&te){const te=ce.XpG(5);ce.R7$(),ce.Y8G("ngIf",!te.checkIconTemplate&&!te.headerCheckboxIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.checkIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.headerCheckboxIconTemplate)}}const _c17=(te,ne)=>({"p-variant-filled":te,"p-checkbox-disabled":ne}),_c18=(te,ne,ie)=>({"p-highlight":te,"p-focus":ne,"p-disabled":ie});function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",53),ce.bIt("click",(function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template_div_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onToggleAll(ne))}))("keydown",(function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template_div_keydown_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onHeaderCheckboxKeyDown(ne))})),ce.j41(1,"div",2)(2,"input",54,55),ce.bIt("focus",(function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template_input_focus_2_listener(){ce.eBV(te);const ne=ce.XpG(4);return ce.Njj(ne.onHeaderCheckboxFocus())}))("blur",(function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template_input_blur_2_listener(){ce.eBV(te);const ne=ce.XpG(4);return ce.Njj(ne.onHeaderCheckboxBlur())})),ce.k0s()(),ce.j41(4,"div",56),ce.DNE(5,MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_Template,4,3,"ng-container",7),ce.k0s()()}if(2&te){const te=ce.XpG(4);ce.Y8G("ngClass",ce.l_i(10,_c17,"filled"===te.variant||"filled"===te.config.inputStyle(),te.disabled||te.toggleAllDisabled)),ce.R7$(),ce.BMQ("data-p-hidden-accessible",!0),ce.R7$(),ce.Y8G("readonly",te.readonly)("disabled",te.disabled||te.toggleAllDisabled),ce.BMQ("checked",te.allSelected())("aria-label",te.toggleAllAriaLabel),ce.R7$(2),ce.Y8G("ngClass",ce.sMw(13,_c18,te.allSelected(),te.headerCheckboxFocus,te.disabled||te.toggleAllDisabled)),ce.BMQ("aria-label",te.toggleAllAriaLabel)("aria-checked",te.allSelected()),ce.R7$(),ce.Y8G("ngIf",te.allSelected()||te.partialSelected())}}function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_SearchIcon_3_Template(te,ne){1&te&&ce.nrm(0,"SearchIcon",36),2&te&&ce.Y8G("styleClass","p-multiselect-filter-icon")}function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_1_ng_template_0_Template(te,ne){}function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_1_Template(te,ne){1&te&&ce.DNE(0,MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_1_ng_template_0_Template,0,0,"ng-template")}function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_Template(te,ne){if(1&te&&(ce.j41(0,"span",63),ce.DNE(1,MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_1_Template,1,0,null,23),ce.k0s()),2&te){const te=ce.XpG(5);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.filterIconTemplate)}}function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",59)(1,"input",60,61),ce.bIt("input",(function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template_input_input_1_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onFilterInputChange(ne))}))("keydown",(function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template_input_keydown_1_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onFilterKeyDown(ne))}))("click",(function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template_input_click_1_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onInputClick(ne))}))("blur",(function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template_input_blur_1_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onFilterBlur(ne))})),ce.k0s(),ce.DNE(3,MultiSelect_ng_template_16_div_3_ng_template_4_div_1_SearchIcon_3_Template,1,1,"SearchIcon",34)(4,MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_Template,2,1,"span",62),ce.k0s()}if(2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("value",te._filterValue()||"")("disabled",te.disabled),ce.BMQ("autocomplete",te.autocomplete)("placeholder",te.filterPlaceHolder)("aria-owns",te.id+"_list")("aria-activedescendant",te.focusedOptionId)("placeholder",te.filterPlaceHolder)("aria-label",te.ariaFilterLabel),ce.R7$(2),ce.Y8G("ngIf",!te.filterIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.filterIconTemplate)}}function MultiSelect_ng_template_16_div_3_ng_template_4_TimesIcon_3_Template(te,ne){1&te&&ce.nrm(0,"TimesIcon",36),2&te&&ce.Y8G("styleClass","p-multiselect-close-icon")}function MultiSelect_ng_template_16_div_3_ng_template_4_span_4_1_ng_template_0_Template(te,ne){}function MultiSelect_ng_template_16_div_3_ng_template_4_span_4_1_Template(te,ne){1&te&&ce.DNE(0,MultiSelect_ng_template_16_div_3_ng_template_4_span_4_1_ng_template_0_Template,0,0,"ng-template")}function MultiSelect_ng_template_16_div_3_ng_template_4_span_4_Template(te,ne){if(1&te&&(ce.j41(0,"span",64),ce.DNE(1,MultiSelect_ng_template_16_div_3_ng_template_4_span_4_1_Template,1,0,null,23),ce.k0s()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.closeIconTemplate)}}function MultiSelect_ng_template_16_div_3_ng_template_4_Template(te,ne){if(1&te){const te=ce.RV6();ce.DNE(0,MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template,6,17,"div",49)(1,MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template,5,10,"div",50),ce.j41(2,"button",51),ce.bIt("click",(function MultiSelect_ng_template_16_div_3_ng_template_4_Template_button_click_2_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.close(ne))})),ce.DNE(3,MultiSelect_ng_template_16_div_3_ng_template_4_TimesIcon_3_Template,1,1,"TimesIcon",34)(4,MultiSelect_ng_template_16_div_3_ng_template_4_span_4_Template,2,1,"span",52),ce.k0s()}if(2&te){const te=ce.XpG(3);ce.Y8G("ngIf",te.isSelectionAllDisabled()),ce.R7$(),ce.Y8G("ngIf",te.filter),ce.R7$(),ce.BMQ("aria-label",te.closeAriaLabel),ce.R7$(),ce.Y8G("ngIf",!te.closeIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.closeIconTemplate)}}function MultiSelect_ng_template_16_div_3_Template(te,ne){if(1&te&&(ce.j41(0,"div",47),ce.SdG(1),ce.DNE(2,MultiSelect_ng_template_16_div_3_ng_container_2_Template,1,0,"ng-container",23)(3,MultiSelect_ng_template_16_div_3_ng_container_3_Template,2,4,"ng-container",10)(4,MultiSelect_ng_template_16_div_3_ng_template_4_Template,5,5,"ng-template",null,48,ce.C5r),ce.k0s()),2&te){const te=ce.sdS(5),ne=ce.XpG(2);ce.R7$(2),ce.Y8G("ngTemplateOutlet",ne.headerTemplate),ce.R7$(),ce.Y8G("ngIf",ne.filterTemplate)("ngIfElse",te)}}function MultiSelect_ng_template_16_p_scroller_5_ng_template_2_ng_container_0_Template(te,ne){1&te&&ce.eu8(0)}const _c19=(te,ne)=>({$implicit:te,options:ne});function MultiSelect_ng_template_16_p_scroller_5_ng_template_2_Template(te,ne){if(1&te&&ce.DNE(0,MultiSelect_ng_template_16_p_scroller_5_ng_template_2_ng_container_0_Template,1,0,"ng-container",8),2&te){const te=ne.$implicit,ie=ne.options;ce.XpG(2);const re=ce.sdS(8);ce.Y8G("ngTemplateOutlet",re)("ngTemplateOutletContext",ce.l_i(2,_c19,te,ie))}}function MultiSelect_ng_template_16_p_scroller_5_ng_container_3_ng_template_1_ng_container_0_Template(te,ne){1&te&&ce.eu8(0)}function MultiSelect_ng_template_16_p_scroller_5_ng_container_3_ng_template_1_Template(te,ne){if(1&te&&ce.DNE(0,MultiSelect_ng_template_16_p_scroller_5_ng_container_3_ng_template_1_ng_container_0_Template,1,0,"ng-container",8),2&te){const te=ne.options,ie=ce.XpG(4);ce.Y8G("ngTemplateOutlet",ie.loaderTemplate)("ngTemplateOutletContext",ce.eq3(2,_c15,te))}}function MultiSelect_ng_template_16_p_scroller_5_ng_container_3_Template(te,ne){1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_template_16_p_scroller_5_ng_container_3_ng_template_1_Template,1,4,"ng-template",67),ce.bVm())}function MultiSelect_ng_template_16_p_scroller_5_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-scroller",65,66),ce.bIt("onLazyLoad",(function MultiSelect_ng_template_16_p_scroller_5_Template_p_scroller_onLazyLoad_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onLazyLoad.emit(ne))})),ce.DNE(2,MultiSelect_ng_template_16_p_scroller_5_ng_template_2_Template,1,5,"ng-template",14)(3,MultiSelect_ng_template_16_p_scroller_5_ng_container_3_Template,2,0,"ng-container",7),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.Aen(ce.eq3(9,_c1,te.scrollHeight)),ce.Y8G("items",te.visibleOptions())("itemSize",te.virtualScrollItemSize||te._itemSize)("autoSize",!0)("tabindex",-1)("lazy",te.lazy)("options",te.virtualScrollOptions),ce.R7$(3),ce.Y8G("ngIf",te.loaderTemplate)}}function MultiSelect_ng_template_16_ng_container_6_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}const _c20=()=>({});function MultiSelect_ng_template_16_ng_container_6_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,MultiSelect_ng_template_16_ng_container_6_ng_container_1_Template,1,0,"ng-container",8),ce.bVm()),2&te){ce.XpG();const te=ce.sdS(8),ne=ce.XpG();ce.R7$(),ce.Y8G("ngTemplateOutlet",te)("ngTemplateOutletContext",ce.l_i(3,_c19,ne.visibleOptions(),ce.lJ4(2,_c20)))}}function MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span"),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG(3);ce.R7$(),ce.JRh(ne.getOptionGroupLabel(te.optionGroup))}}function MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"li",72),ce.DNE(2,MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_span_2_Template,2,1,"span",7)(3,MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_ng_container_3_Template,1,0,"ng-container",8),ce.k0s(),ce.bVm()),2&te){const te=ce.XpG(),ne=te.index,ie=te.$implicit,re=ce.XpG().options,le=ce.XpG(2);ce.R7$(),ce.Y8G("ngStyle",ce.eq3(5,_c1,re.itemSize+"px")),ce.BMQ("id",le.id+"_"+le.getOptionIndex(ne,re)),ce.R7$(),ce.Y8G("ngIf",!le.groupTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",le.groupTemplate)("ngTemplateOutletContext",ce.eq3(7,_c0,ie.optionGroup))}}function MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"p-multiSelectItem",73),ce.bIt("onClick",(function MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_1_Template_p_multiSelectItem_onClick_1_listener(ne){ce.eBV(te);const ie=ce.XpG().index,re=ce.XpG().options,le=ce.XpG(2);return ce.Njj(le.onOptionSelect(ne,!1,le.getOptionIndex(ie,re)))}))("onMouseEnter",(function MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_1_Template_p_multiSelectItem_onMouseEnter_1_listener(ne){ce.eBV(te);const ie=ce.XpG().index,re=ce.XpG().options,le=ce.XpG(2);return ce.Njj(le.onOptionMouseEnter(ne,le.getOptionIndex(ie,re)))})),ce.k0s(),ce.bVm()}if(2&te){const te=ce.XpG(),ne=te.index,ie=te.$implicit,re=ce.XpG().options,le=ce.XpG(2);ce.R7$(),ce.Y8G("id",le.id+"_"+le.getOptionIndex(ne,re))("option",ie)("selected",le.isSelected(ie))("label",le.getOptionLabel(ie))("disabled",le.isOptionDisabled(ie))("template",le.itemTemplate)("checkIconTemplate",le.checkIconTemplate)("itemCheckboxIconTemplate",le.itemCheckboxIconTemplate)("itemSize",re.itemSize)("focused",le.focusedOptionIndex()===le.getOptionIndex(ne,re))("ariaPosInset",le.getAriaPosInset(le.getOptionIndex(ne,re)))("ariaSetSize",le.ariaSetSize)}}function MultiSelect_ng_template_16_ng_template_7_ng_template_2_Template(te,ne){if(1&te&&ce.DNE(0,MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_Template,4,9,"ng-container",7)(1,MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_1_Template,2,12,"ng-container",7),2&te){const te=ne.$implicit,ie=ce.XpG(3);ce.Y8G("ngIf",ie.isOptionGroup(te)),ce.R7$(),ce.Y8G("ngIf",!ie.isOptionGroup(te))}}function MultiSelect_ng_template_16_ng_template_7_li_3_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.EFF(1),ce.bVm()),2&te){const te=ce.XpG(4);ce.R7$(),ce.SpI(" ",te.emptyFilterMessageLabel," ")}}function MultiSelect_ng_template_16_ng_template_7_li_3_ng_container_2_Template(te,ne){1&te&&ce.eu8(0,null,75)}function MultiSelect_ng_template_16_ng_template_7_li_3_Template(te,ne){if(1&te&&(ce.j41(0,"li",74),ce.DNE(1,MultiSelect_ng_template_16_ng_template_7_li_3_ng_container_1_Template,2,1,"ng-container",10)(2,MultiSelect_ng_template_16_ng_template_7_li_3_ng_container_2_Template,2,0,"ng-container",23),ce.k0s()),2&te){const te=ce.XpG().options,ne=ce.XpG(2);ce.Y8G("ngStyle",ce.eq3(4,_c1,te.itemSize+"px")),ce.R7$(),ce.Y8G("ngIf",!ne.emptyFilterTemplate&&!ne.emptyTemplate)("ngIfElse",ne.emptyFilter),ce.R7$(),ce.Y8G("ngTemplateOutlet",ne.emptyFilterTemplate||ne.emptyTemplate)}}function MultiSelect_ng_template_16_ng_template_7_li_4_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.EFF(1),ce.bVm()),2&te){const te=ce.XpG(4);ce.R7$(),ce.SpI(" ",te.emptyMessageLabel," ")}}function MultiSelect_ng_template_16_ng_template_7_li_4_ng_container_2_Template(te,ne){1&te&&ce.eu8(0,null,76)}function MultiSelect_ng_template_16_ng_template_7_li_4_Template(te,ne){if(1&te&&(ce.j41(0,"li",74),ce.DNE(1,MultiSelect_ng_template_16_ng_template_7_li_4_ng_container_1_Template,2,1,"ng-container",10)(2,MultiSelect_ng_template_16_ng_template_7_li_4_ng_container_2_Template,2,0,"ng-container",23),ce.k0s()),2&te){const te=ce.XpG().options,ne=ce.XpG(2);ce.Y8G("ngStyle",ce.eq3(4,_c1,te.itemSize+"px")),ce.R7$(),ce.Y8G("ngIf",!ne.emptyTemplate)("ngIfElse",ne.empty),ce.R7$(),ce.Y8G("ngTemplateOutlet",ne.emptyTemplate)}}function MultiSelect_ng_template_16_ng_template_7_Template(te,ne){if(1&te&&(ce.j41(0,"ul",68,69),ce.DNE(2,MultiSelect_ng_template_16_ng_template_7_ng_template_2_Template,2,2,"ng-template",70)(3,MultiSelect_ng_template_16_ng_template_7_li_3_Template,3,6,"li",71)(4,MultiSelect_ng_template_16_ng_template_7_li_4_Template,3,6,"li",71),ce.k0s()),2&te){const te=ne.$implicit,ie=ne.options,re=ce.XpG(2);ce.Y8G("ngClass",ie.contentStyleClass)("ngStyle",ie.contentStyle),ce.BMQ("aria-label",re.listLabel),ce.R7$(2),ce.Y8G("ngForOf",te),ce.R7$(),ce.Y8G("ngIf",re.hasFilter()&&re.isEmpty()),ce.R7$(),ce.Y8G("ngIf",!re.hasFilter()&&re.isEmpty())}}function MultiSelect_ng_template_16_div_9_ng_container_2_Template(te,ne){1&te&&ce.eu8(0)}function MultiSelect_ng_template_16_div_9_Template(te,ne){if(1&te&&(ce.j41(0,"div",77),ce.SdG(1,1),ce.DNE(2,MultiSelect_ng_template_16_div_9_ng_container_2_Template,1,0,"ng-container",23),ce.k0s()),2&te){const te=ce.XpG(2);ce.R7$(2),ce.Y8G("ngTemplateOutlet",te.footerTemplate)}}const _c21=te=>({"max-height":te});function MultiSelect_ng_template_16_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",38)(1,"span",39,40),ce.bIt("focus",(function MultiSelect_ng_template_16_Template_span_focus_1_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onFirstHiddenFocus(ne))})),ce.k0s(),ce.DNE(3,MultiSelect_ng_template_16_div_3_Template,6,3,"div",41),ce.j41(4,"div",42),ce.DNE(5,MultiSelect_ng_template_16_p_scroller_5_Template,4,11,"p-scroller",43)(6,MultiSelect_ng_template_16_ng_container_6_Template,2,6,"ng-container",7)(7,MultiSelect_ng_template_16_ng_template_7_Template,5,6,"ng-template",null,44,ce.C5r),ce.k0s(),ce.DNE(9,MultiSelect_ng_template_16_div_9_Template,3,1,"div",45),ce.j41(10,"span",39,46),ce.bIt("focus",(function MultiSelect_ng_template_16_Template_span_focus_10_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onLastHiddenFocus(ne))})),ce.k0s()()}if(2&te){const te=ce.XpG();ce.HbH(te.panelStyleClass),ce.Y8G("ngClass","p-multiselect-panel p-component")("ngStyle",te.panelStyle),ce.BMQ("id",te.id+"_list"),ce.R7$(),ce.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),ce.R7$(2),ce.Y8G("ngIf",te.showHeader),ce.R7$(),ce.Y8G("ngStyle",ce.eq3(16,_c21,te.virtualScroll?"auto":te.scrollHeight||"auto")),ce.R7$(),ce.Y8G("ngIf",te.virtualScroll),ce.R7$(),ce.Y8G("ngIf",!te.virtualScroll),ce.R7$(3),ce.Y8G("ngIf",te.footerFacet||te.footerTemplate),ce.R7$(),ce.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const Xe=[[["p-header"]],[["p-footer"]]],_c23=(te,ne)=>({$implicit:te,removeChip:ne}),Ke=["p-header","p-footer"],Qe={provide:de.kq,useExisting:(0,ce.Rfq)((()=>dt)),multi:!0};let Je=(()=>{class MultiSelectItem{config;id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;template;checkIconTemplate;itemCheckboxIconTemplate;onClick=new ce.bkB;onMouseEnter=new ce.bkB;constructor(te){this.config=te}onOptionClick(te){this.onClick.emit({originalEvent:te,option:this.option,selected:this.selected}),te.stopPropagation()}onOptionMouseEnter(te){this.onMouseEnter.emit({originalEvent:te,option:this.option,selected:this.selected})}static ɵfac=function MultiSelectItem_Factory(te){return new(te||MultiSelectItem)(ce.rXU(Ce.r1))};static ɵcmp=ce.VBU({type:MultiSelectItem,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:[ce.Mj6.HasDecoratorInputTransform,"selected","selected",ce.L39],label:"label",disabled:[ce.Mj6.HasDecoratorInputTransform,"disabled","disabled",ce.L39],itemSize:[ce.Mj6.HasDecoratorInputTransform,"itemSize","itemSize",ce.Udg],focused:[ce.Mj6.HasDecoratorInputTransform,"focused","focused",ce.L39],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[ce.GFd],decls:6,vars:28,consts:[["pRipple","","role","option",1,"p-multiselect-item",3,"ngStyle","ngClass","id","click","mouseenter"],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"]],template:function MultiSelectItem_Template(te,ne){1&te&&(ce.j41(0,"li",0),ce.bIt("click",(function MultiSelectItem_Template_li_click_0_listener(te){return ne.onOptionClick(te)}))("mouseenter",(function MultiSelectItem_Template_li_mouseenter_0_listener(te){return ne.onOptionMouseEnter(te)})),ce.j41(1,"div",1)(2,"div",2),ce.DNE(3,MultiSelectItem_ng_container_3_Template,4,3,"ng-container",3),ce.k0s()(),ce.DNE(4,MultiSelectItem_span_4_Template,2,1,"span",3)(5,MultiSelectItem_ng_container_5_Template,1,0,"ng-container",4),ce.k0s()),2&te&&(ce.Y8G("ngStyle",ce.eq3(17,_c1,ne.itemSize+"px"))("ngClass",ce.l_i(19,_c2,ne.disabled,ne.focused))("id",ne.id),ce.BMQ("aria-label",ne.label)("aria-setsize",ne.ariaSetSize)("aria-posinset",ne.ariaPosInset)("aria-selected",ne.selected)("data-p-focused",ne.focused)("data-p-highlight",ne.selected)("data-p-disabled",ne.disabled)("aria-checked",ne.selected),ce.R7$(),ce.Y8G("ngClass",ce.eq3(22,_c3,"filled"===ne.config.inputStyle())),ce.R7$(),ce.Y8G("ngClass",ce.eq3(24,_c4,ne.selected)),ce.R7$(),ce.Y8G("ngIf",ne.selected),ce.R7$(),ce.Y8G("ngIf",!ne.template),ce.R7$(),ce.Y8G("ngTemplateOutlet",ne.template)("ngTemplateOutletContext",ce.eq3(26,_c0,ne.option)))},dependencies:()=>[re.YU,re.bT,re.T3,re.B3,ke.n,Me.S],encapsulation:2})}return MultiSelectItem})(),dt=(()=>{class MultiSelect{el;renderer;cd;zone;filterService;config;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;variant="outlined";appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(te){this._displaySelectedLabel=te}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(te){this._maxSelectedLabels=te}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;display="comma";autocomplete="off";showClear=!1;autofocus;get autoZIndex(){return this._autoZIndex}set autoZIndex(te){this._autoZIndex=te,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(te){this._baseZIndex=te,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(te){this._showTransitionOptions=te,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(te){this._hideTransitionOptions=te,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(te){this._defaultLabel=te,console.warn("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(te){this._placeholder.set(te)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(te){Ee.BF.deepEquals(this._options(),te)||this._options.set(te)}get filterValue(){return this._filterValue()}set filterValue(te){this._filterValue.set(te)}get itemSize(){return this._itemSize}set itemSize(te){this._itemSize=te,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(te){this._selectAll=te}focusOnHover=!1;filterFields;selectOnFocus=!1;autoOptionFocus=!0;onChange=new ce.bkB;onFilter=new ce.bkB;onFocus=new ce.bkB;onBlur=new ce.bkB;onClick=new ce.bkB;onClear=new ce.bkB;onPanelShow=new ce.bkB;onPanelHide=new ce.bkB;onLazyLoad=new ce.bkB;onRemove=new ce.bkB;onSelectAllChange=new ce.bkB;containerViewChild;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;templates;searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder=(0,ce.vPA)(void 0);_itemSize;_selectionLimit;_disableTooltip=!1;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;closeIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;headerCheckboxFocus;filterOptions;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=(0,ce.vPA)(null);_filterValue=(0,ce.vPA)(null);_options=(0,ce.vPA)(null);startRangeIndex=(0,ce.vPA)(-1);focusedOptionIndex=(0,ce.vPA)(-1);selectedOptions;clickInProgress=!1;get containerClass(){return{"p-multiselect p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-multiselect-clearable":this.showClear&&!this.disabled,"p-multiselect-chip":"chip"===this.display,"p-focus":this.focused,"p-variant-filled":"filled"===this.variant||"filled"===this.config.inputStyle()}}get inputClass(){return{"p-multiselect-label p-inputtext":!0,"p-placeholder":(this.placeholder()||this.defaultLabel)&&(this.label()===this.placeholder()||this.label()===this.defaultLabel),"p-multiselect-label-empty":!this.selectedItemsTemplate&&("p-emptylabel"===this.label()||0===this.label().length)}}get panelClass(){return{"p-multiselect-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle(),"p-ripple-disabled":!1===this.config.ripple}}get labelClass(){return{"p-multiselect-label":!0,"p-placeholder":this.label()===this.placeholder()||this.label()===this.defaultLabel,"p-multiselect-label-empty":!(this.placeholder()||this.defaultLabel||this.modelValue()&&0!==this.modelValue().length)}}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Ce.Yj.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Ce.Yj.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():Ee.BF.isNotEmpty(this.modelValue())}get isVisibleClearIcon(){return null!=this.modelValue()&&""!==this.modelValue()&&Ee.BF.isNotEmpty(this.modelValue())&&this.showClear&&!this.disabled&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}get listLabel(){return this.config.getTranslation(Ce.Yj.ARIA).listLabel}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=(0,ce.EWP)((()=>{const te=this.getAllVisibleAndNonVisibleOptions(),ne=Ee.BF.isArray(te)&&Ee.BF.isObject(te[0]);if(this._filterValue()){let ie;if(ie=ne?this.filterService.filter(te,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):te.filter((te=>te.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase()))),this.group){const te=this.options||[],ne=[];return te.forEach((te=>{const re=this.getOptionGroupChildren(te).filter((te=>ie.includes(te)));re.length>0&&ne.push({...te,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...re]})})),this.flatOptions(ne)}return ie}return te}));label=(0,ce.EWP)((()=>{let te;const ne=this.modelValue();if(ne&&ne.length&&this.displaySelectedLabel){if(Ee.BF.isNotEmpty(this.maxSelectedLabels)&&ne.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();te="";for(let ie=0;ie<ne.length;ie++)0!==ie&&(te+=", "),te+=this.getLabelByValue(ne[ie])}else te=this.placeholder()||this.defaultLabel||"";return te}));chipSelectedItems=(0,ce.EWP)((()=>Ee.BF.isNotEmpty(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue()));constructor(te,ne,ie,re,le,de,ue){this.el=te,this.renderer=ne,this.cd=ie,this.zone=re,this.filterService=le,this.config=de,this.overlayService=ue,(0,ce.QZP)((()=>{const te=this.modelValue(),ne=this.visibleOptions();ne&&Ee.BF.isNotEmpty(ne)&&(this.optionValue&&this.optionLabel&&te?this.selectedOptions=ne.filter((ne=>te.includes(ne[this.optionLabel])||te.includes(ne[this.optionValue]))):this.selectedOptions=te,this.cd.markForCheck())}))}ngOnInit(){this.id=this.id||(0,Ee._Y)(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:te=>this.onFilterInputChange(te),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return Ee.BF.isNotEmpty(this.selectionLimit)&&this.modelValue()&&this.modelValue().length===this.selectionLimit}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"item":default:this.itemTemplate=te.template;break;case"group":this.groupTemplate=te.template;break;case"selectedItems":this.selectedItemsTemplate=te.template;break;case"header":this.headerTemplate=te.template;break;case"filter":this.filterTemplate=te.template;break;case"emptyfilter":this.emptyFilterTemplate=te.template;break;case"empty":this.emptyTemplate=te.template;break;case"footer":this.footerTemplate=te.template;break;case"loader":this.loaderTemplate=te.template;break;case"checkicon":this.checkIconTemplate=te.template,console.warn("checkicon is deprecated and will removed in v18. Use itemcheckboxicon or headercheckboxicon templates instead.");break;case"headercheckboxicon":this.headerCheckboxIconTemplate=te.template;break;case"loadingicon":this.loadingIconTemplate=te.template;break;case"filtericon":this.filterIconTemplate=te.template;break;case"removetokenicon":this.removeTokenIconTemplate=te.template;break;case"closeicon":this.closeIconTemplate=te.template;break;case"clearicon":this.clearIconTemplate=te.template;break;case"dropdownicon":this.dropdownIconTemplate=te.template;break;case"itemcheckboxicon":this.itemCheckboxIconTemplate=te.template}}))}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular((()=>{setTimeout((()=>{this.overlayViewChild?.alignOverlay()}),1)})),this.filtered=!1)}flatOptions(te){return(te||[]).reduce(((te,ne,ie)=>{te.push({optionGroup:ne,group:!0,index:ie});const re=this.getOptionGroupChildren(ne);return re&&re.forEach((ne=>te.push(ne))),te}),[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());const te=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[te]})}}updateModel(te,ne){this.value=te,this.onModelChange(te),this.modelValue.set(te)}onInputClick(te){te.stopPropagation(),te.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(te,ne=!1,ie=-1){const{originalEvent:re,option:le}=te;if(this.disabled||this.isOptionDisabled(le))return;let ce=null;this.isSelected(le)?(ce=this.modelValue().filter((te=>!Ee.BF.equals(te,this.getOptionValue(le),this.equalityKey()))),this.onRemove.emit({newValue:this.value,removed:this.getOptionValue(le)})):ce=[...this.modelValue()||[],this.getOptionValue(le)],this.updateModel(ce,re),-1!==ie&&this.focusedOptionIndex.set(ie),ne&&ye.D.focus(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:{...te,selected:!te.selected},value:ce,itemValue:le})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex((te=>this.isValidSelectedOption(te))):-1}onOptionSelectRange(te,ne=-1,ie=-1){if(-1===ne&&(ne=this.findNearestSelectedOptionIndex(ie,!0)),-1===ie&&(ie=this.findNearestSelectedOptionIndex(ne)),-1!==ne&&-1!==ie){const re=Math.min(ne,ie),le=Math.max(ne,ie),ce=this.visibleOptions().slice(re,le+1).filter((te=>this.isValidOption(te))).map((te=>this.getOptionValue(te)));this.updateModel(ce,te)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(te,ne=!1){let ie=-1;return this.hasSelectedOption()&&(ne?(ie=this.findPrevSelectedOptionIndex(te),ie=-1===ie?this.findNextSelectedOptionIndex(te):ie):(ie=this.findNextSelectedOptionIndex(te),ie=-1===ie?this.findPrevSelectedOptionIndex(te):ie)),ie>-1?ie:te}findPrevSelectedOptionIndex(te){const ne=this.hasSelectedOption()&&te>0?Ee.BF.findLastIndex(this.visibleOptions().slice(0,te),(te=>this.isValidSelectedOption(te))):-1;return ne>-1?ne:-1}findFirstFocusedOptionIndex(){const te=this.findFirstSelectedOptionIndex();return te<0?this.findFirstOptionIndex():te}findFirstOptionIndex(){return this.visibleOptions().findIndex((te=>this.isValidOption(te)))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex((te=>this.isValidSelectedOption(te))):-1}findNextSelectedOptionIndex(te){const ne=this.hasSelectedOption()&&te<this.visibleOptions().length-1?this.visibleOptions().slice(te+1).findIndex((te=>this.isValidSelectedOption(te))):-1;return ne>-1?ne+te+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return Ee.BF.isNotEmpty(this.modelValue())}isSelectionAllDisabled(){return this.showToggleAll&&Ee.BF.isEmpty(this.selectionLimit)}isValidSelectedOption(te){return this.isValidOption(te)&&this.isSelected(te)}isOptionGroup(te){return(this.group||this.optionGroupLabel)&&te.optionGroup&&te.group}isValidOption(te){return te&&!(this.isOptionDisabled(te)||this.isOptionGroup(te))}isOptionDisabled(te){return!(!this.maxSelectionLimitReached()||this.isSelected(te))||(this.optionDisabled?Ee.BF.resolveFieldData(te,this.optionDisabled):!(!te||void 0===te.disabled)&&te.disabled)}isSelected(te){const ne=this.getOptionValue(te);return(this.modelValue()||[]).some((te=>Ee.BF.equals(te,ne,this.equalityKey())))}isOptionMatched(te){return this.isValidOption(te)&&this.getOptionLabel(te).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&0===this.visibleOptions().length}getOptionIndex(te,ne){return this.virtualScrollerDisabled?te:ne&&ne.getItemOptions(te).index}getAriaPosInset(te){return(this.optionGroupLabel?te-this.visibleOptions().slice(0,te).filter((te=>this.isOptionGroup(te))).length:te)+1}get ariaSetSize(){return this.visibleOptions().filter((te=>!this.isOptionGroup(te))).length}getLabelByValue(te){const ne=(this.group?this.flatOptions(this._options()):this._options()||[]).find((ne=>!this.isOptionGroup(ne)&&Ee.BF.equals(this.getOptionValue(ne),te,this.equalityKey())));return ne?this.getOptionLabel(ne):null}getSelectedItemsLabel(){let te=/{(.*?)}/,ne=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(Ce.Yj.SELECTION_MESSAGE);return te.test(ne)?ne.replace(ne.match(te)[0],this.modelValue().length+""):ne}getOptionLabel(te){return this.optionLabel?Ee.BF.resolveFieldData(te,this.optionLabel):te&&null!=te.label?te.label:te}getOptionValue(te){return this.optionValue?Ee.BF.resolveFieldData(te,this.optionValue):!this.optionLabel&&te&&void 0!==te.value?te.value:te}getOptionGroupLabel(te){return this.optionGroupLabel?Ee.BF.resolveFieldData(te,this.optionGroupLabel):te&&null!=te.label?te.label:te}getOptionGroupChildren(te){return this.optionGroupChildren?Ee.BF.resolveFieldData(te,this.optionGroupChildren):te.items}onKeyDown(te){if(this.disabled)return void te.preventDefault();const ne=te.metaKey||te.ctrlKey;switch(te.code){case"ArrowDown":this.onArrowDownKey(te);break;case"ArrowUp":this.onArrowUpKey(te);break;case"Home":this.onHomeKey(te);break;case"End":this.onEndKey(te);break;case"PageDown":this.onPageDownKey(te);break;case"PageUp":this.onPageUpKey(te);break;case"Enter":case"Space":this.onEnterKey(te);break;case"Escape":this.onEscapeKey(te);break;case"Tab":this.onTabKey(te);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if("KeyA"===te.code&&ne){const ne=this.visibleOptions().filter((te=>this.isValidOption(te))).map((te=>this.getOptionValue(te)));this.updateModel(ne,te),te.preventDefault();break}!ne&&Ee.BF.isPrintableCharacter(te.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(te,te.key),te.preventDefault())}}onFilterKeyDown(te){switch(te.code){case"ArrowDown":this.onArrowDownKey(te);break;case"ArrowUp":this.onArrowUpKey(te,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(te,!0);break;case"Home":this.onHomeKey(te,!0);break;case"End":this.onEndKey(te,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(te);break;case"Escape":this.onEscapeKey(te);break;case"Tab":this.onTabKey(te,!0)}}onArrowLeftKey(te,ne=!1){ne&&this.focusedOptionIndex.set(-1)}onArrowDownKey(te){const ne=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();te.shiftKey&&this.onOptionSelectRange(te,this.startRangeIndex(),ne),this.changeFocusedOptionIndex(te,ne),!this.overlayVisible&&this.show(),te.preventDefault(),te.stopPropagation()}onArrowUpKey(te,ne=!1){if(te.altKey&&!ne)-1!==this.focusedOptionIndex()&&this.onOptionSelect(te,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),te.preventDefault();else{const ne=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();te.shiftKey&&this.onOptionSelectRange(te,ne,this.startRangeIndex()),this.changeFocusedOptionIndex(te,ne),!this.overlayVisible&&this.show(),te.preventDefault()}te.stopPropagation()}onHomeKey(te,ne=!1){const{currentTarget:ie}=te;if(ne){const ne=ie.value.length;ie.setSelectionRange(0,te.shiftKey?ne:0),this.focusedOptionIndex.set(-1)}else{let ne=te.metaKey||te.ctrlKey,ie=this.findFirstOptionIndex();te.shiftKey&&ne&&this.onOptionSelectRange(te,ie,this.startRangeIndex()),this.changeFocusedOptionIndex(te,ie),!this.overlayVisible&&this.show()}te.preventDefault()}onEndKey(te,ne=!1){const{currentTarget:ie}=te;if(ne){const ne=ie.value.length;ie.setSelectionRange(te.shiftKey?0:ne,ne),this.focusedOptionIndex.set(-1)}else{let ne=te.metaKey||te.ctrlKey,ie=this.findLastFocusedOptionIndex();te.shiftKey&&ne&&this.onOptionSelectRange(te,this.startRangeIndex(),ie),this.changeFocusedOptionIndex(te,ie),!this.overlayVisible&&this.show()}te.preventDefault()}onPageDownKey(te){this.scrollInView(this.visibleOptions().length-1),te.preventDefault()}onPageUpKey(te){this.scrollInView(0),te.preventDefault()}onEnterKey(te){this.overlayVisible?-1!==this.focusedOptionIndex()&&(te.shiftKey?this.onOptionSelectRange(te,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:te,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(te),te.preventDefault()}onEscapeKey(te){this.overlayVisible&&this.hide(!0),te.preventDefault()}onDeleteKey(te){this.showClear&&(this.clear(te),te.preventDefault())}onTabKey(te,ne=!1){ne||(this.overlayVisible&&this.hasFocusableElements()?(ye.D.focus(te.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),te.preventDefault()):(-1!==this.focusedOptionIndex()&&this.onOptionSelect({originalEvent:te,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(te){if(!(this.disabled||this.loading||this.readonly||te.target.isSameNode(this.focusInputViewChild?.nativeElement)))if("INPUT"===te.target.tagName||"clearicon"===te.target.getAttribute("data-pc-section")||te.target.closest('[data-pc-section="clearicon"]'))te.preventDefault();else{if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(te.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout((()=>{this.clickInProgress=!1}),150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(te),this.cd.detectChanges()}}onFirstHiddenFocus(te){const ne=te.relatedTarget===this.focusInputViewChild?.nativeElement?ye.D.getFirstFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;ye.D.focus(ne)}onInputFocus(te){this.focused=!0;const ne=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(ne),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:te})}onInputBlur(te){this.focused=!1,this.onBlur.emit({originalEvent:te}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(te){let ne=te.target.value;this._filterValue.set(ne),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:te,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout((()=>{this.overlayViewChild.alignOverlay()}))}onLastHiddenFocus(te){const ne=te.relatedTarget===this.focusInputViewChild?.nativeElement?ye.D.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;ye.D.focus(ne)}onOptionMouseEnter(te,ne){this.focusOnHover&&this.changeFocusedOptionIndex(te,ne)}onHeaderCheckboxKeyDown(te){if(this.disabled)te.preventDefault();else switch(te.code){case"Space":case"Enter":this.onToggleAll(te)}}onFilterBlur(te){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(te){if(!this.disabled&&!this.readonly){if(null!=this.selectAll)this.onSelectAllChange.emit({originalEvent:te,checked:!this.allSelected()});else{const ne=[...this.getAllVisibleAndNonVisibleOptions().filter((te=>this.isSelected(te)&&(this.optionDisabled?Ee.BF.resolveFieldData(te,this.optionDisabled):!(!te||void 0===te.disabled)&&te.disabled))),...this.allSelected()?this.visibleOptions().filter((te=>!this.isValidOption(te)&&this.isSelected(te))):this.visibleOptions().filter((te=>this.isSelected(te)||this.isValidOption(te)))].map((te=>this.getOptionValue(te))),ie=[...new Set(ne)];this.updateModel(ie,te),ie.length&&ie.length!==this.getAllVisibleAndNonVisibleOptions().length||this.onSelectAllChange.emit({originalEvent:te,checked:!!ie.length})}this.partialSelected()&&(this.selectedOptions=null,this.cd.markForCheck()),this.onChange.emit({originalEvent:te,value:this.value}),ye.D.focus(this.headerCheckboxViewChild?.nativeElement),this.headerCheckboxFocus=!0,te.preventDefault(),te.stopPropagation()}}changeFocusedOptionIndex(te,ne){this.focusedOptionIndex()!==ne&&(this.focusedOptionIndex.set(ne),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(te=-1){const ne=-1!==te?`${this.id}_${te}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const ie=ye.D.findSingle(this.itemsViewChild.nativeElement,`li[id="${ne}"]`);ie?ie.scrollIntoView&&ie.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout((()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==te?te:this.focusedOptionIndex())}),0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}writeValue(te){this.value=te,!Ee.BF.isEmpty(this.selectionLimit)&&Ee.BF.isEmpty(this.value)?this.modelValue.set([]):this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}allSelected(){return null!==this.selectAll?this.selectAll:Ee.BF.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every((te=>this.isOptionGroup(te)||this.isOptionDisabled(te)||this.isSelected(te)))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<this.options.length}show(te){this.overlayVisible=!0;const ne=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(ne),te&&ye.D.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(te){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),"modal"===this.overlayOptions?.mode&&ye.D.unblockBodyScroll(),te&&ye.D.focus(this.focusInputViewChild?.nativeElement),this.onPanelHide.emit(),this.cd.markForCheck()}onOverlayAnimationStart(te){switch(te.toState){case"visible":if(this.itemsWrapper=ye.D.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this._options()&&this._options().length)if(this.virtualScroll){const te=Ee.BF.isNotEmpty(this.modelValue())?this.focusedOptionIndex():-1;-1!==te&&this.scroller?.scrollToIndex(te)}else{let te=ye.D.findSingle(this.itemsWrapper,'[data-p-highlight="true"]');te&&te.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();case"void":this.itemsWrapper=null,this.onModelTouched()}}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(te){this.hide(),te.preventDefault(),te.stopPropagation()}clear(te){this.value=null,this.updateModel(null,te),this.selectedOptions=null,this.onClear.emit(),this._disableTooltip=!0,te.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(te,ne){let ie=this.modelValue().filter((ne=>!Ee.BF.equals(ne,te,this.equalityKey())));this.updateModel(ie,ne),this.onChange.emit({originalEvent:ne,value:ie,itemValue:te}),ne&&ne.stopPropagation()}findNextItem(te){let ne=te.nextElementSibling;return ne?ye.D.hasClass(ne.children[0],"p-disabled")||ye.D.isHidden(ne.children[0])||ye.D.hasClass(ne,"p-multiselect-item-group")?this.findNextItem(ne):ne.children[0]:null}findPrevItem(te){let ne=te.previousElementSibling;return ne?ye.D.hasClass(ne.children[0],"p-disabled")||ye.D.isHidden(ne.children[0])||ye.D.hasClass(ne,"p-multiselect-item-group")?this.findPrevItem(ne):ne.children[0]:null}findNextOptionIndex(te){const ne=te<this.visibleOptions().length-1?this.visibleOptions().slice(te+1).findIndex((te=>this.isValidOption(te))):-1;return ne>-1?ne+te+1:te}findPrevOptionIndex(te){const ne=te>0?Ee.BF.findLastIndex(this.visibleOptions().slice(0,te),(te=>this.isValidOption(te))):-1;return ne>-1?ne:te}findLastSelectedOptionIndex(){return this.hasSelectedOption()?Ee.BF.findLastIndex(this.visibleOptions(),(te=>this.isValidSelectedOption(te))):-1}findLastFocusedOptionIndex(){const te=this.findLastSelectedOptionIndex();return te<0?this.findLastOptionIndex():te}findLastOptionIndex(){return Ee.BF.findLastIndex(this.visibleOptions(),(te=>this.isValidOption(te)))}searchOptions(te,ne){this.searchValue=(this.searchValue||"")+ne;let ie=-1,re=!1;return-1!==this.focusedOptionIndex()?(ie=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex((te=>this.isOptionMatched(te))),ie=-1===ie?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex((te=>this.isOptionMatched(te))):ie+this.focusedOptionIndex()):ie=this.visibleOptions().findIndex((te=>this.isOptionMatched(te))),-1!==ie&&(re=!0),-1===ie&&-1===this.focusedOptionIndex()&&(ie=this.findFirstFocusedOptionIndex()),-1!==ie&&this.changeFocusedOptionIndex(te,ie),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((()=>{this.searchValue="",this.searchTimeout=null}),500),re}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let te=[];for(let ne of this.options){let ie=this.filterService.filter(this.getOptionGroupChildren(ne),this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);ie&&ie.length&&te.push({...ne,[this.optionGroupChildren]:ie})}this._filteredOptions=te}else this._filteredOptions=this.filterService.filter(this.options,this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);else this._filteredOptions=null}hasFocusableElements(){return ye.D.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static ɵfac=function MultiSelect_Factory(te){return new(te||MultiSelect)(ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(ce.gRc),ce.rXU(ce.SKi),ce.rXU(Ce.E),ce.rXU(Ce.r1),ce.rXU(Ce.si))};static ɵcmp=ce.VBU({type:MultiSelect,selectors:[["p-multiSelect"]],contentQueries:function MultiSelect_ContentQueries(te,ne,ie){if(1&te&&(ce.wni(ie,Ce.wi,5),ce.wni(ie,Ce.Y9,5),ce.wni(ie,Ce.Ei,4)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.footerFacet=te.first),ce.mGM(te=ce.lsd())&&(ne.headerFacet=te.first),ce.mGM(te=ce.lsd())&&(ne.templates=te)}},viewQuery:function MultiSelect_Query(te,ne){if(1&te&&(ce.GBs(Fe,5),ce.GBs(je,5),ce.GBs(Ve,5),ce.GBs(Ge,5),ce.GBs(ze,5),ce.GBs(He,5),ce.GBs($e,5),ce.GBs(qe,5),ce.GBs(Ye,5)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.containerViewChild=te.first),ce.mGM(te=ce.lsd())&&(ne.overlayViewChild=te.first),ce.mGM(te=ce.lsd())&&(ne.filterInputChild=te.first),ce.mGM(te=ce.lsd())&&(ne.focusInputViewChild=te.first),ce.mGM(te=ce.lsd())&&(ne.itemsViewChild=te.first),ce.mGM(te=ce.lsd())&&(ne.scroller=te.first),ce.mGM(te=ce.lsd())&&(ne.lastHiddenFocusableElementOnOverlay=te.first),ce.mGM(te=ce.lsd())&&(ne.firstHiddenFocusableElementOnOverlay=te.first),ce.mGM(te=ce.lsd())&&(ne.headerCheckboxViewChild=te.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function MultiSelect_HostBindings(te,ne){2&te&&ce.AVh("p-inputwrapper-focus",ne.focused||ne.overlayVisible)("p-inputwrapper-filled",ne.filled)},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:[ce.Mj6.HasDecoratorInputTransform,"disabled","disabled",ce.L39],readonly:[ce.Mj6.HasDecoratorInputTransform,"readonly","readonly",ce.L39],group:[ce.Mj6.HasDecoratorInputTransform,"group","group",ce.L39],filter:[ce.Mj6.HasDecoratorInputTransform,"filter","filter",ce.L39],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[ce.Mj6.HasDecoratorInputTransform,"overlayVisible","overlayVisible",ce.L39],tabindex:[ce.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",ce.Udg],variant:"variant",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[ce.Mj6.HasDecoratorInputTransform,"selectionLimit","selectionLimit",te=>(0,ce.Udg)(te,null)],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[ce.Mj6.HasDecoratorInputTransform,"showToggleAll","showToggleAll",ce.L39],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[ce.Mj6.HasDecoratorInputTransform,"resetFilterOnHide","resetFilterOnHide",ce.L39],dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[ce.Mj6.HasDecoratorInputTransform,"showHeader","showHeader",ce.L39],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[ce.Mj6.HasDecoratorInputTransform,"lazy","lazy",ce.L39],virtualScroll:[ce.Mj6.HasDecoratorInputTransform,"virtualScroll","virtualScroll",ce.L39],loading:[ce.Mj6.HasDecoratorInputTransform,"loading","loading",ce.L39],virtualScrollItemSize:[ce.Mj6.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",ce.Udg],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[ce.Mj6.HasDecoratorInputTransform,"autofocusFilter","autofocusFilter",ce.L39],display:"display",autocomplete:"autocomplete",showClear:[ce.Mj6.HasDecoratorInputTransform,"showClear","showClear",ce.L39],autofocus:[ce.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",ce.L39],autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:[ce.Mj6.HasDecoratorInputTransform,"focusOnHover","focusOnHover",ce.L39],filterFields:"filterFields",selectOnFocus:[ce.Mj6.HasDecoratorInputTransform,"selectOnFocus","selectOnFocus",ce.L39],autoOptionFocus:[ce.Mj6.HasDecoratorInputTransform,"autoOptionFocus","autoOptionFocus",ce.L39]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[ce.Jv_([Qe]),ce.GFd],ngContentSelectors:Ke,decls:17,vars:44,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["role","combobox","pAutoFocus","",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass","mouseleave"],[3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-multiselect-trigger"],[4,"ngIf","ngIfElse"],["elseBlock",""],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],[3,"ngClass","styleClass","click",4,"ngIf"],["class","p-multiselect-token-icon",3,"click",4,"ngIf"],[3,"ngClass","styleClass","click"],[1,"p-multiselect-token-icon",3,"click"],[4,"ngTemplateOutlet"],[3,"styleClass","click",4,"ngIf"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-multiselect-clear-icon",3,"click"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-multiselect-trigger-icon",4,"ngIf"],["class","p-multiselect-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper",3,"ngStyle"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["class","p-multiselect-footer",4,"ngIf"],["lastHiddenFocusableEl",""],[1,"p-multiselect-header"],["builtInFilterElement",""],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link","p-button-icon-only",3,"click"],["class","p-multiselect-close-icon",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],["type","checkbox",3,"readonly","disabled","focus","blur"],["headerCheckbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],["class","p-checkbox-icon",4,"ngIf"],[1,"p-checkbox-icon"],[1,"p-multiselect-filter-container"],["type","text","role","searchbox","role","searchbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input","keydown","click","blur"],["filterInput",""],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[1,"p-multiselect-close-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass","ngStyle"],["items",""],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","checkIconTemplate","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],["role","option",1,"p-multiselect-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""],[1,"p-multiselect-footer"]],template:function MultiSelect_Template(te,ne){if(1&te&&(ce.NAR(Xe),ce.j41(0,"div",0,1),ce.bIt("click",(function MultiSelect_Template_div_click_0_listener(te){return ne.onContainerClick(te)})),ce.j41(2,"div",2)(3,"input",3,4),ce.bIt("focus",(function MultiSelect_Template_input_focus_3_listener(te){return ne.onInputFocus(te)}))("blur",(function MultiSelect_Template_input_blur_3_listener(te){return ne.onInputBlur(te)}))("keydown",(function MultiSelect_Template_input_keydown_3_listener(te){return ne.onKeyDown(te)})),ce.k0s()(),ce.j41(5,"div",5),ce.bIt("mouseleave",(function MultiSelect_Template_div_mouseleave_5_listener(){return ne.labelContainerMouseLeave()})),ce.j41(6,"div",6),ce.DNE(7,MultiSelect_ng_container_7_Template,3,2,"ng-container",7)(8,MultiSelect_ng_container_8_Template,1,0,"ng-container",8),ce.k0s(),ce.DNE(9,MultiSelect_ng_container_9_Template,3,2,"ng-container",7),ce.k0s(),ce.j41(10,"div",9),ce.DNE(11,MultiSelect_ng_container_11_Template,3,2,"ng-container",10)(12,MultiSelect_ng_template_12_Template,2,2,"ng-template",null,11,ce.C5r),ce.k0s(),ce.j41(14,"p-overlay",12,13),ce.mxI("visibleChange",(function MultiSelect_Template_p_overlay_visibleChange_14_listener(te){return ce.DH7(ne.overlayVisible,te)||(ne.overlayVisible=te),te})),ce.bIt("onAnimationStart",(function MultiSelect_Template_p_overlay_onAnimationStart_14_listener(te){return ne.onOverlayAnimationStart(te)}))("onHide",(function MultiSelect_Template_p_overlay_onHide_14_listener(){return ne.hide()})),ce.DNE(16,MultiSelect_ng_template_16_Template,12,18,"ng-template",14),ce.k0s()()),2&te){const te=ce.sdS(13);let ie;ce.HbH(ne.styleClass),ce.Y8G("ngClass",ne.containerClass)("ngStyle",ne.style),ce.BMQ("id",ne.id),ce.R7$(2),ce.BMQ("data-p-hidden-accessible",!0),ce.R7$(),ce.Y8G("pTooltip",ne.tooltip)("tooltipPosition",ne.tooltipPosition)("positionStyle",ne.tooltipPositionStyle)("tooltipStyleClass",ne.tooltipStyleClass)("autofocus",ne.autofocus),ce.BMQ("aria-disabled",ne.disabled)("id",ne.inputId)("aria-label",ne.ariaLabel)("aria-labelledby",ne.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",null!==(ie=ne.overlayVisible)&&void 0!==ie&&ie)("aria-controls",ne.overlayVisible?ne.id+"_list":null)("tabindex",ne.disabled?-1:ne.tabindex)("aria-activedescendant",ne.focused?ne.focusedOptionId:void 0)("value",ne.label()||"empty"),ce.R7$(2),ce.Y8G("pTooltip",ne.tooltip)("tooltipDisabled",ne._disableTooltip)("tooltipPosition",ne.tooltipPosition)("positionStyle",ne.tooltipPositionStyle)("tooltipStyleClass",ne.tooltipStyleClass),ce.R7$(),ce.Y8G("ngClass",ne.labelClass),ce.R7$(),ce.Y8G("ngIf",!ne.selectedItemsTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",ne.selectedItemsTemplate)("ngTemplateOutletContext",ce.l_i(41,_c23,ne.selectedOptions,ne.removeOption.bind(ne))),ce.R7$(),ce.Y8G("ngIf",ne.isVisibleClearIcon),ce.R7$(2),ce.Y8G("ngIf",ne.loading)("ngIfElse",te),ce.R7$(3),ce.R50("visible",ne.overlayVisible),ce.Y8G("options",ne.overlayOptions)("target","@parent")("appendTo",ne.appendTo)("autoZIndex",ne.autoZIndex)("baseZIndex",ne.baseZIndex)("showTransitionOptions",ne.showTransitionOptions)("hideTransitionOptions",ne.hideTransitionOptions)}},dependencies:()=>[re.YU,re.Sq,re.bT,re.T3,re.B3,we.hJ,Ce.Ei,xe.m,ke.n,Se.H,me.q,Me.S,Ne.W,Re.I,Le.A,Oe.D,Je],styles:["@layer primeng{.p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer;display:flex}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return MultiSelect})(),pt=(()=>{class MultiSelectModule{static ɵfac=function MultiSelectModule_Factory(te){return new(te||MultiSelectModule)};static ɵmod=ce.$C({type:MultiSelectModule});static ɵinj=ce.G2t({imports:[re.MD,we.z_,Ce.Gg,xe.S,ke.Z,Se.h,me.u,Me.S,Ne.W,Re.I,Le.A,Oe.D,Me.S,Pe.Q,we.z_,Ce.Gg,Se.h]})}return MultiSelectModule})();var Ct=ie(2541),vt=ie(7178),It=ie(6564),Dt=ie(2040),Mt=ie(4447),Nt=ie(7137),Rt=ie(3972),Ot=ie(6612),Vt=ie(9509);const Gt=["autoComplete"];function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_1_label_2_Template(te,ne){if(1&te&&(ce.j41(0,"label",3),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(4);ce.Y8G("for",te.label),ce.R7$(),ce.JRh(te.label)}}const br_foreign_key_component_c1=te=>({width:te});function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-floatLabel")(1,"p-multiSelect",1),ce.mxI("ngModelChange",(function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_1_Template_p_multiSelect_ngModelChange_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.DH7(ie.selectedItems,ne)||(ie.selectedItems=ne),ce.Njj(ne)})),ce.bIt("onChange",(function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_1_Template_p_multiSelect_onChange_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onSelect(ne))}))("onClear",(function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_1_Template_p_multiSelect_onClear_1_listener(){ce.eBV(te);const ne=ce.XpG(3);return ce.Njj(ne.onClear())}))("onRemove",(function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_1_Template_p_multiSelect_onRemove_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onMultiSelectRemove(ne))})),ce.k0s(),ce.DNE(2,BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_1_label_2_Template,2,2,"label",2),ce.k0s()}if(2&te){const te=ce.XpG(3);ce.R7$(),ce.Aen(ce.eq3(19,br_foreign_key_component_c1,te.size)),ce.Y8G("id",te.label)("options",te.dataList),ce.R50("ngModel",te.selectedItems),ce.Y8G("autofocus",te.autoFocus)("showClear",!0)("optionLabel",te.optionLabel)("showClear",!0)("showHeader",te.dataList.length>5)("showToggleAll",!1)("filter",te.dataList.length>5)("disabled",te.disabled)("filterBy",te.filterBy||te.optionLabel)("maxSelectedLabels",te.dataList.length)("optionValue",te.optionValue)("dataKey",te.optionValue)("placeholder",te.placeholder),ce.R7$(),ce.Y8G("ngIf",te.label)}}function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_ng_template_2_p_button_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-button",9),ce.bIt("onClick",(function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_ng_template_2_p_button_1_Template_p_button_onClick_0_listener(ne){ce.eBV(te);const ie=ce.XpG(5);return ce.Njj(ie.onBotaoClick(ne,ie.selectedItem))})),ce.k0s()}if(2&te){const te=ce.XpG(5);ce.Y8G("rounded",!0)("icon",te.botaoIcon)("label",te.botaoLabel)}}function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_ng_template_2_Template(te,ne){if(1&te&&(ce.j41(0,"div",6),ce.DNE(1,BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_ng_template_2_p_button_1_Template,1,3,"p-button",7),ce.nrm(2,"i",8),ce.k0s()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngIf",te.botaoIcon&&te.botaoLabel&&te.selectedItem)}}function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_label_3_Template(te,ne){if(1&te&&(ce.j41(0,"label",3),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(4);ce.Y8G("for",te.label),ce.R7$(),ce.JRh(te.label)}}function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-floatLabel")(1,"p-dropdown",4),ce.mxI("ngModelChange",(function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_Template_p_dropdown_ngModelChange_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.DH7(ie.selectedItem,ne)||(ie.selectedItem=ne),ce.Njj(ne)})),ce.bIt("onChange",(function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_Template_p_dropdown_onChange_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onSelect(ne))}))("onClear",(function BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_Template_p_dropdown_onClear_1_listener(){ce.eBV(te);const ne=ce.XpG(3);return ce.Njj(ne.onClear())})),ce.DNE(2,BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_ng_template_2_Template,3,1,"ng-template",5),ce.k0s(),ce.DNE(3,BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_label_3_Template,2,2,"label",2),ce.k0s()}if(2&te){const te=ce.XpG(3);ce.R7$(),ce.Aen(ce.eq3(15,br_foreign_key_component_c1,te.size)),ce.Y8G("id",te.label)("options",te.dataList)("optionLabel",te.optionLabel),ce.R50("ngModel",te.selectedItem),ce.Y8G("placeholder",te.placeholder)("showClear",!0)("filter",te.dataList.length>5)("disabled",te.disabled)("optionValue",te.optionValue)("dataKey",te.optionValue)("filterBy",te.filterBy||te.optionLabel)("autofocus",te.autoFocus),ce.R7$(2),ce.Y8G("ngIf",te.label)}}function BrForeignKeyComponent_ng_container_0_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_1_Template,3,21,"p-floatLabel",0)(2,BrForeignKeyComponent_ng_container_0_ng_container_1_p_floatLabel_2_Template,4,17,"p-floatLabel",0),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("ngIf",!0===te.multiple),ce.R7$(),ce.Y8G("ngIf",!1===te.multiple)}}function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_3_ng_template_0_p_button_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-button",9),ce.bIt("onClick",(function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_3_ng_template_0_p_button_1_Template_p_button_onClick_0_listener(ne){ce.eBV(te);const ie=ce.XpG(5);return ce.Njj(ie.onBotaoClick(ne,ie.selectedItem))})),ce.k0s()}if(2&te){const te=ce.XpG(5);ce.Y8G("rounded",!0)("icon",te.botaoIcon)("label",te.botaoLabel)}}function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_3_ng_template_0_Template(te,ne){if(1&te&&(ce.j41(0,"div",6),ce.DNE(1,BrForeignKeyComponent_ng_container_0_p_floatLabel_2_3_ng_template_0_p_button_1_Template,1,3,"p-button",7),ce.nrm(2,"i",8),ce.k0s()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngIf",te.botaoIcon&&te.botaoLabel&&te.selectedItem)}}function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_3_Template(te,ne){1&te&&ce.DNE(0,BrForeignKeyComponent_ng_container_0_p_floatLabel_2_3_ng_template_0_Template,3,1,"ng-template",5)}function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_ng_container_1_p_checkbox_1_Template(te,ne){if(1&te&&ce.nrm(0,"p-checkbox",18),2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG(3);ce.Y8G("ngModel",ne.isItemSelected(te))("binary",!0)}}function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_ng_container_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.DNE(1,BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_ng_container_1_p_checkbox_1_Template,1,2,"p-checkbox",16),ce.j41(2,"span",17),ce.bIt("visible",(function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_ng_container_1_Template_span_visible_2_listener(){ce.eBV(te);const ne=ce.XpG(4);return ce.Njj(ne.addData())})),ce.EFF(3),ce.k0s(),ce.bVm()}if(2&te){const te=ce.XpG().$implicit,ne=ce.XpG(3);ce.R7$(),ce.Y8G("ngIf",ne.multiple),ce.R7$(2),ce.JRh(te[ne.optionLabel])}}function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_ng_template_2_p_checkbox_0_Template(te,ne){if(1&te&&ce.nrm(0,"p-checkbox",18),2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG(3);ce.Y8G("ngModel",ne.isItemSelected(te))("binary",!0)}}function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_ng_template_2_Template(te,ne){if(1&te&&(ce.DNE(0,BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_ng_template_2_p_checkbox_0_Template,1,2,"p-checkbox",16),ce.j41(1,"span"),ce.EFF(2),ce.k0s()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(3);ce.Y8G("ngIf",ne.multiple),ce.R7$(2),ce.JRh(te[ne.optionLabel])}}function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_Template(te,ne){if(1&te&&(ce.j41(0,"div",13),ce.DNE(1,BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_ng_container_1_Template,4,2,"ng-container",14)(2,BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_ng_template_2_Template,3,2,"ng-template",null,15,ce.C5r),ce.k0s()),2&te){const te=ne.index,ie=ce.sdS(3),re=ce.XpG(3);ce.R7$(),ce.Y8G("ngIf",te===re.dataList.length-1)("ngIfElse",ie)}}function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_label_5_Template(te,ne){if(1&te&&(ce.j41(0,"label",3),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(3);ce.Y8G("for",te.label),ce.R7$(),ce.JRh(te.label)}}const br_foreign_key_component_c2=()=>({width:"100%"});function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-floatLabel")(1,"p-autoComplete",10,11),ce.bIt("click",(function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_Template_p_autoComplete_click_1_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onAutoCompleteClick(ne))}))("onClear",(function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_Template_p_autoComplete_onClear_1_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.onClear())}))("completeMethod",(function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_Template_p_autoComplete_completeMethod_1_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.searchSuggestions(ne))}))("onUnselect",(function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_Template_p_autoComplete_onUnselect_1_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onAutoCompleteUnSelect(ne))}))("onSelect",(function BrForeignKeyComponent_ng_container_0_p_floatLabel_2_Template_p_autoComplete_onSelect_1_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onSuggestionClick(ne))})),ce.DNE(3,BrForeignKeyComponent_ng_container_0_p_floatLabel_2_3_Template,1,0,null,0)(4,BrForeignKeyComponent_ng_container_0_p_floatLabel_2_ng_template_4_Template,4,2,"ng-template",12),ce.k0s(),ce.DNE(5,BrForeignKeyComponent_ng_container_0_p_floatLabel_2_label_5_Template,2,2,"label",2),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.R7$(),ce.Aen(ce.eq3(20,br_foreign_key_component_c1,te.size)),ce.Y8G("id",te.label)("autofocus",te.autoFocus)("forceSelection",!0)("dropdown",!0)("placeholder",te.placeholder)("ngModel",te.multiple?te.selectedItems:te.selectedItem)("dataKey",te.optionValue)("dropdown",!0)("suggestions",te.dataList)("minLength",3)("showClear",!0)("optionLabel",te.optionLabel)("disabled",te.disabled)("multiple",te.multiple)("unique",!0)("inputStyle",ce.lJ4(22,br_foreign_key_component_c2)),ce.R7$(2),ce.Y8G("ngIf",!te.multiple),ce.R7$(2),ce.Y8G("ngIf",te.label)}}function BrForeignKeyComponent_ng_container_0_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,BrForeignKeyComponent_ng_container_0_ng_container_1_Template,3,2,"ng-container",0)(2,BrForeignKeyComponent_ng_container_0_p_floatLabel_2_Template,6,23,"p-floatLabel",0),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngIf",!te.isAutoComplete),ce.R7$(),ce.Y8G("ngIf",te.isAutoComplete)}}function BrForeignKeyComponent_ng_container_1_Template(te,ne){1&te&&(ce.qex(0),ce.nrm(1,"p-skeleton",19),ce.bVm())}let zt=(()=>{class BrForeignKeyComponent extends Vt.V{get isBrForeignKeyConfigurado(){return void 0!==this.isAutoComplete}constructor(te){super(te),this.http=(0,ce.WQX)(le.Qq),this.brMessageService=(0,ce.WQX)(Rt.h),this.environmentService=(0,ce.WQX)(Ot.v),this.multiple=!1,this.placeholder="",this.botaoCallback=new ce.bkB,this.isLoading=!1,this.dataList=[],this.autoCompleteQuery="",this.totalCount=0}writeValue(te){te?te!==this.value&&(this.isBrForeignKeyConfigurado?this.fetchValues(te):this.configBrForeignKey().subscribe((()=>this.fetchValues(te)))):(this.selectedItem=void 0,this.selectedItems=void 0,this.isBrForeignKeyConfigurado||this.configBrForeignKey().subscribe()),super.writeValue(te)}onValueChange(te){!te||Array.isArray(te)&&0===te.length?super.onValueChange(null):super.onValueChange(te)}configBrForeignKey(){return this.isLoading=!0,this.http.get(`${this.environmentService.environment.serverUrl}/${this.endpoint}/min?search=&${this.query?.toString()}`).pipe((0,vt.W)((te=>(console.error(te),this.brMessageService.error(),It.w))),(0,Dt.M)((te=>{if(this.dataList=te.data,this.isAutoComplete=te.totalCount>20,te.data&&1===te.data.length){const ne=te.data[0][this.optionValue];this.selectedItem=ne,this.selectedItems=[ne],this.onValueChange(this.multiple?[ne]:ne)}})),(0,Mt.j)((()=>{this.isLoading=!1})))}fetchValues(te){this.isBrForeignKeyConfigurado&&(this.isLoading=!0,!0===this.isAutoComplete?Array.isArray(te)?this.http.get(`${this.environmentService.environment.serverUrl}/${this.endpoint}/min?search=id-[${te.join(",")}]&${this.query?.toString()}`).pipe((0,vt.W)((te=>(console.error(te),this.brMessageService.error(),It.w))),(0,Mt.j)((()=>{this.isLoading=!1}))).subscribe((te=>{this.selectedItems=te.data})):this.http.get(`${this.environmentService.environment.serverUrl}/${this.endpoint}/min?search=id-[${te}]&${this.query?.toString()}`).pipe((0,vt.W)((te=>(console.error(te),this.brMessageService.error(),It.w))),(0,Mt.j)((()=>{this.isLoading=!1}))).subscribe((te=>{this.selectedItem=te.data[0]})):(this.dataList.map((te=>te[this.optionValue])).includes(te)?this.isLoading=!1:this.http.get(`${this.environmentService.environment.serverUrl}/${this.endpoint}/min?search=id-[${te}]&${this.query?.toString()}`).pipe((0,vt.W)((te=>(console.error(te),this.brMessageService.error(),It.w))),(0,Mt.j)((()=>{this.isLoading=!1}))).subscribe((te=>{this.dataList.push(te.data[0])})),this.selectedItems=Array.isArray(te)?te:[te],this.selectedItem=te))}onSelect(te){this.multiple?this.isAutoComplete?this.onValueChange(this.value?[...this.value,te.value[this.optionValue]]:[te.value[this.optionValue]]):this.onValueChange(te.value):this.isAutoComplete?this.onValueChange(te.value[this.optionValue]):this.onValueChange(te.value)}onClear(){this.onValueChange(null),this.selectedItems=void 0,this.selectedItem=void 0}onMultiSelectRemove(te){const ne=this.value.filter((ne=>ne!==Number(te.removed.id)));this.selectedItems=this.selectedItems.filter((ne=>ne[this.optionValue]!==Number(te.removed.id))),this.onValueChange(ne)}onAutoCompleteClick(te){this.disabled||this.autoCompleteComponent?.handleDropdownClick(te)}searchSuggestions(te){this.http.get(`${this.environmentService.environment.serverUrl}/${this.endpoint}/min?search=${te.query}&${this.query?.toString()}`).subscribe((ne=>{this.dataList=ne.data,this.totalCount=ne.totalCount,this.autoCompleteQuery=te.query}))}addData(){this.dataList.length!==this.totalCount&&this.http.get(`${this.environmentService.environment.serverUrl}/${this.endpoint}/min?search=${this.autoCompleteQuery}&skip=${this.dataList.length}&${this.query?.toString()}`).subscribe((te=>{this.dataList=this.dataList.concat(te.data)}))}onAutoCompleteUnSelect(te){const ne=this.value.filter((ne=>ne!==te.value[this.optionValue]));this.selectedItems=this.selectedItems.filter((ne=>ne[this.optionValue]!==te.value[this.optionValue])),this.onValueChange(ne)}onSuggestionClick(te){const ne=te.value;if(this.multiple){if(this.value?.includes(ne[this.optionValue]))return void this.onAutoCompleteUnSelect({value:ne});this.onSelect({value:ne}),this.selectedItems=this.selectedItems?[...this.selectedItems,ne]:[ne]}else this.onSelect({value:ne}),this.selectedItem=ne}isItemSelected(te){return this.value?.includes(te[this.optionValue])}onBotaoClick(te,ne){te.stopPropagation(),this.botaoCallback?.emit()}static#e=this.ɵfac=function BrForeignKeyComponent_Factory(te){return new(te||BrForeignKeyComponent)(ce.rXU(de.vO,10))};static#t=this.ɵcmp=ce.VBU({type:BrForeignKeyComponent,selectors:[["br-foreign-key"]],viewQuery:function BrForeignKeyComponent_Query(te,ne){if(1&te&&ce.GBs(Gt,5),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.autoCompleteComponent=te.first)}},inputs:{optionLabel:"optionLabel",optionValue:"optionValue",filterBy:"filterBy",multiple:"multiple",placeholder:"placeholder",endpoint:"endpoint",query:"query",botaoIcon:"botaoIcon",botaoLabel:"botaoLabel"},outputs:{botaoCallback:"botaoCallback"},standalone:!0,features:[ce.Vt3,ce.aNF],decls:2,vars:2,consts:[[4,"ngIf"],["pAutoFocus","","display","chip","appendTo","body",3,"id","options","ngModel","autofocus","showClear","optionLabel","showHeader","showToggleAll","filter","disabled","filterBy","maxSelectedLabels","optionValue","dataKey","placeholder","ngModelChange","onChange","onClear","onRemove"],[3,"for",4,"ngIf"],[3,"for"],["pAutoFocus","","appendTo","body",3,"id","options","optionLabel","ngModel","placeholder","showClear","filter","disabled","optionValue","dataKey","filterBy","autofocus","ngModelChange","onChange","onClear"],["pTemplate","clearicon"],[1,"flex","align-items-center","gap-2"],["styleClass","botao-custom",3,"rounded","icon","label","onClick",4,"ngIf"],[1,"pi","pi-times"],["styleClass","botao-custom",3,"rounded","icon","label","onClick"],["pAutoFocus","","appendTo","body",3,"id","autofocus","forceSelection","dropdown","placeholder","ngModel","dataKey","suggestions","minLength","showClear","optionLabel","disabled","multiple","unique","inputStyle","click","onClear","completeMethod","onUnselect","onSelect"],["autoComplete",""],["pTemplate","item"],[1,"flex","align-items-center","gap-2",2,"padding","0rem 0.75rem"],[4,"ngIf","ngIfElse"],["itemPadrao",""],[3,"ngModel","binary",4,"ngIf"],["observeVisibility","",3,"visible"],[3,"ngModel","binary"],["height","44px","width","100%"]],template:function BrForeignKeyComponent_Template(te,ne){1&te&&ce.DNE(0,BrForeignKeyComponent_ng_container_0_Template,3,2,"ng-container",0)(1,BrForeignKeyComponent_ng_container_1_Template,2,0,"ng-container",0),2&te&&(ce.Y8G("ngIf",!ne.isLoading),ce.R7$(),ce.Y8G("ngIf",ne.isLoading))},dependencies:[re.MD,re.bT,de.YN,de.BC,de.vS,_e.kr,_e.ms,Ce.Ei,me.u,me.q,be.f,be.V,pt,dt,ue.$$,ue.j9,Ct.k,Ct.E,fe.q4,fe.Sc,ge.tm,ge.$n,Nt.i,xe.S],styles:["[_nghost-%COMP%]     .botao-custom{padding:.25rem .5rem;font-size:.75rem}[_nghost-%COMP%]     .botao-custom .p-button-icon{font-size:.75rem;margin-right:.25rem}[_nghost-%COMP%]     .botao-custom .p-button-label{font-weight:600}"]})}return BrForeignKeyComponent})()},9509:(te,ne,ie)=>{"use strict";ie.d(ne,{V:()=>ce});var re=ie(3107),le=ie(936);let ce=(()=>{class InputForm{constructor(te){this.control=te,this.autoFocus=!1,this.label="",this.disabled=!1,this.touched=!1,this.onChange=te=>{},this.onTouched=()=>{},this.control&&(this.control.valueAccessor=this)}get invalid(){return!!this.control&&this.control.invalid}get showError(){if(!this.control)return!1;const{dirty:te,touched:ne}=this.control;return!!this.invalid&&(te||ne)}writeValue(te){this.value=te}markAsTouched(){this.touched||(this.onTouched(),this.touched=!0)}registerOnTouched(te){this.onTouched=te}setDisabledState(te){this.disabled=te}registerOnChange(te){this.onChange=te}onValueChange(te){this.markAsTouched(),this.disabled||(this.value=te,this.onChange(te))}static#e=this.ɵfac=function InputForm_Factory(te){return new(te||InputForm)(re.rXU(le.vO,10))};static#t=this.ɵdir=re.FsC({type:InputForm,inputs:{autoFocus:"autoFocus",label:"label",size:"size",disabled:"disabled"}})}return InputForm})()},8841:(te,ne,ie)=>{"use strict";ie.d(ne,{B:()=>ce});var re=ie(3107),le=ie(7721);let ce=(()=>{class BrInputTextDirective extends le.S{constructor(){super(...arguments),this.renderer=(0,re.WQX)(re.sFG)}ngOnInit(){this.clearButton=this.renderer.createElement("i"),this.renderer.setStyle(this.el.nativeElement,"padding-right","40px"),this.renderer.setStyle(this.clearButton,"display","none"),this.renderer.setStyle(this.clearButton,"cursor","pointer"),this.renderer.setStyle(this.clearButton,"position","absolute"),this.renderer.setStyle(this.clearButton,"right","15px"),this.renderer.setStyle(this.clearButton,"top","50%"),this.renderer.setStyle(this.clearButton,"transform","translateY(-50%)"),this.renderer.addClass(this.clearButton,"br-clear-icon"),this.renderer.addClass(this.clearButton,"pi"),this.renderer.addClass(this.clearButton,"pi-times");const te=this.el.nativeElement.parentElement;this.renderer.setStyle(te,"position","relative"),this.renderer.appendChild(te,this.clearButton),this.renderer.listen(this.clearButton,"click",(()=>{this.el.nativeElement.value="",this.renderer.setStyle(this.clearButton,"display","none"),this.el.nativeElement.dispatchEvent(new Event("input"))}))}ngAfterViewInit(){this.renderer.setStyle(this.clearButton,"display",this.el.nativeElement.value?"flex":"none"),(this.el.nativeElement.disabled||this.el.nativeElement.className.includes("p-disabled"))&&this.renderer.setStyle(this.clearButton,"display","none"),super.ngAfterViewInit()}onBrInput(){this.el.nativeElement.value?this.renderer.setStyle(this.clearButton,"display","flex"):this.renderer.setStyle(this.clearButton,"display","none")}static#e=this.ɵfac=(()=>{let te;return function BrInputTextDirective_Factory(ne){return(te||(te=re.xGo(BrInputTextDirective)))(ne||BrInputTextDirective)}})();static#t=this.ɵdir=re.FsC({type:BrInputTextDirective,selectors:[["","brInputText",""]],hostBindings:function BrInputTextDirective_HostBindings(te,ne){1&te&&re.bIt("input",(function BrInputTextDirective_input_HostBindingHandler(){return ne.onBrInput()}))},standalone:!0,features:[re.Vt3]})}return BrInputTextDirective})()},7069:(te,ne,ie)=>{"use strict";ie.d(ne,{Y:()=>ue});var re=ie(9812),le=ie.n(re),ce=ie(3107),de=ie(30);let ue=(()=>{class DateMaskDirective{constructor(te){this.primeCalendar=te}ngAfterViewInit(){const te=this.getHTMLInput(),ne=new(le())(this.getDateMask());ne.option({showMaskOnHover:!1,inputmode:"numeric"}),ne.mask(te)}getHTMLInput(){return this.primeCalendar.el.nativeElement.querySelector("input")}getDateMask(){return this.primeCalendar.isMultipleSelection()?this.primeCalendar.showTime?`99/99/9999 : 99:99 ${this.primeCalendar.multipleSeparator} 99/99/9999 99:99`:`99/99/9999 ${this.primeCalendar.multipleSeparator} 99/99/9999`:this.primeCalendar.isRangeSelection()?this.primeCalendar.showTime?`99/99/9999 : 99:99 ${this.primeCalendar.rangeSeparator} 99/99/9999 99:99`:`99/99/9999 ${this.primeCalendar.rangeSeparator} 99/99/9999`:this.primeCalendar.timeOnly?"99:99":this.primeCalendar.showTime?"99/99/9999 99:99":"99/99/9999"}static#e=this.ɵfac=function DateMaskDirective_Factory(te){return new(te||DateMaskDirective)(ce.rXU(de.Vv))};static#t=this.ɵdir=ce.FsC({type:DateMaskDirective,selectors:[["","dateMask",""]],standalone:!0})}return DateMaskDirective})()},7137:(te,ne,ie)=>{"use strict";ie.d(ne,{i:()=>le});var re=ie(3107);let le=(()=>{class VisibilityDirective{constructor(){this.visible=new re.bkB,this.element=(0,re.WQX)(re.aKT)}ngAfterViewInit(){this.intersectionObserver=new IntersectionObserver((te=>{te.forEach((te=>{te.isIntersecting&&(this.visible.emit(!0),this.intersectionObserver?.unobserve(this.element.nativeElement))}))})),this.intersectionObserver.observe(this.element.nativeElement)}ngOnDestroy(){this.intersectionObserver&&this.intersectionObserver.disconnect()}static#e=this.ɵfac=function VisibilityDirective_Factory(te){return new(te||VisibilityDirective)};static#t=this.ɵdir=re.FsC({type:VisibilityDirective,selectors:[["","observeVisibility",""]],outputs:{visible:"visible"},standalone:!0})}return VisibilityDirective})()},9746:(te,ne,ie)=>{"use strict";ie.d(ne,{l:()=>TabRef});var re=ie(8447),le=ie(4320);class TabRef{constructor(te){this._onClose=new re.B,this._id=(0,le.A)(),this._header="",this.onClose=this._onClose.asObservable(),this._header=te.header??te.component.prototype.header(),this._component=te.component,this._parentId=te.parentId,this._data=te.data,this._icon=te.icon??te.component.prototype.icon(),this._proibidoFechar=te.proibidoFechar}close(te){if(this.proibidoFechar)throw Error(`A aba '${this.header}' não pode ser fechada, pois possui o atributo 'proibidoFechar' como 'true'`);this._onClose.next(te),this._onClose.complete()}get header(){return this._header}get component(){return this._component}get data(){return this._data}get id(){return this._id}get parentId(){return this._parentId}get icon(){return this._icon}get proibidoFechar(){return this._proibidoFechar}}},9863:(te,ne,ie)=>{"use strict";ie.d(ne,{l:()=>le});var re=ie(3107);let le=(()=>{class CurrencyFormatPipe{transform(te,ne="",ie=2,re=".",le=",",ce=3){let de="\\d(?=(\\d{"+ce+"})+"+(ie>0?"\\D":"$")+")",ue=te.toFixed(Math.max(0,~~ie));return ne+(le?ue.replace(".",le):ue).replace(new RegExp(de,"g"),"$&"+re)}static#e=this.ɵfac=function CurrencyFormatPipe_Factory(te){return new(te||CurrencyFormatPipe)};static#t=this.ɵpipe=re.EJ8({name:"currencyFormat",type:CurrencyFormatPipe,pure:!0,standalone:!0})}return CurrencyFormatPipe})()},4574:(te,ne,ie)=>{"use strict";ie.d(ne,{I:()=>ue});var re=ie(3014),le=ie(3107),ce=ie(7691),de=ie(6612);let ue=(()=>{class ArquivosService{constructor(te,ne){this.http=te,this.environmentService=ne}uploadPublico(te){return this.upload(te,`${this.environmentService.environment.serverUrl}/arquivos/upload/publico`)}uploadPrivado(te){return this.upload(te,`${this.environmentService.environment.serverUrl}/arquivos/upload/privado`)}download(te){const ne=document.createElement("a");ne.href=te,document.body.appendChild(ne),ne.click(),document.body.removeChild(ne)}upload(te,ne){var ie=this;return(0,re.A)((function*(){const re=new FormData;if(Array.isArray(te))for(const ne of te){let te=yield fetch(ne.url).then((te=>te.blob()));re.append("arquivos",new File([te],ne.name))}else{let ne=yield fetch(te.url).then((te=>te.blob()));re.append("arquivos",new File([ne],te.name))}return new Promise(((te,le)=>{ie.http.post(ne,re).subscribe({next:ne=>{te(ne)},error:te=>{le(te)}})}))}))()}static#e=this.ɵfac=function ArquivosService_Factory(te){return new(te||ArquivosService)(le.KVO(ce.Qq),le.KVO(de.v))};static#t=this.ɵprov=le.jDH({token:ArquivosService,factory:ArquivosService.ɵfac,providedIn:"root"})}return ArquivosService})()},6830:(te,ne,ie)=>{"use strict";ie.d(ne,{u:()=>_e,N:()=>fe});var re=ie(3107);class InvalidTokenError extends Error{}function base64UrlDecode(te){let ne=te.replace(/-/g,"+").replace(/_/g,"/");switch(ne.length%4){case 0:break;case 2:ne+="==";break;case 3:ne+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function b64DecodeUnicode(te){return decodeURIComponent(atob(te).replace(/(.)/g,((te,ne)=>{let ie=ne.charCodeAt(0).toString(16).toUpperCase();return ie.length<2&&(ie="0"+ie),"%"+ie})))}(ne)}catch(te){return atob(ne)}}InvalidTokenError.prototype.name="InvalidTokenError";var le=ie(1217),ce=ie(2040),de=ie(2867),ue=ie(605),me=ie(7691),ge=ie(6612),fe=function(te){return te[te.Sistema=0]="Sistema",te[te.AreaRestrita=1]="AreaRestrita",te}(fe||{});let _e=(()=>{class AuthService{constructor(te,ne){this.http=te,this.environmentService=ne,this.logAcessoService=(0,re.WQX)(ue.C),this.usuarioSource=new le.t(null),this.usuario$=this.usuarioSource.asObservable()}getToken(){return localStorage.getItem("token")}setToken(te){te?localStorage.setItem("token",te):localStorage.removeItem("token")}get usuario(){return this.usuarioSource.getValue()}set usuario(te){this.usuarioSource.next({...this.usuario,...te})}getJwtClaims(){const te=this.getToken();return te?function jwtDecode(te,ne){if("string"!=typeof te)throw new InvalidTokenError("Invalid token specified: must be a string");ne||(ne={});const ie=!0===ne.header?0:1,re=te.split(".")[ie];if("string"!=typeof re)throw new InvalidTokenError(`Invalid token specified: missing part #${ie+1}`);let le;try{le=base64UrlDecode(re)}catch(te){throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${ie+1} (${te.message})`)}try{return JSON.parse(le)}catch(te){throw new InvalidTokenError(`Invalid token specified: invalid json for part #${ie+1} (${te.message})`)}}(te):null}login(te){return this.loginUser(te,`${this.environmentService.environment.serverUrl}/auth`).pipe((0,ce.M)((()=>this.logAcessoService.addEvento(ue.X.LoginSistema))))}loginAreaRestrita(te){return this.loginUser(te,`${this.environmentService.environment.serverUrl}/auth/area-restrita`).pipe((0,ce.M)((()=>this.logAcessoService.addEvento(ue.X.LoginAreaRestrita))))}loginUser(te,ne){return this.http.post(ne,te).pipe((0,ce.M)((({accessToken:te})=>this.setToken(te))),(0,de.n)((()=>this.getPerfilUsuario())),(0,ce.M)((te=>this.usuarioSource.next(te))))}getLogo(){return this.http.get(`${this.environmentService.environment.serverUrl}/config-geral/COD_DOC_EMPRESA_LOGO_LOGIN`)}solicitarResetSenha(te){return this.http.post(`${this.environmentService.environment.serverUrl}/lbr-usuario/solicitar-reset-senha`,{emailCpf:te})}validarResetSenhaToken(te,ne){return this.http.post(`${this.environmentService.environment.serverUrl}/lbr-usuario/reset-senha?token=${ne}`,{novaSenha:te})}validarResetSenhaIdLogin(te,ne){return this.http.post(`${this.environmentService.environment.serverUrl}/lbr-usuario/reset-senha?idLogin=${ne}`,{novaSenha:te})}getPerfilUsuario(){return this.http.get(`${this.environmentService.environment.serverUrl}/usuarios/me`)}logOutSistema(){this.logAcessoService.addEvento(ue.X.LogoutSistema),this.logOut()}LogOutAreaRestrita(){this.logAcessoService.addEvento(ue.X.LogoutAreaRestrita),this.logOut()}logOut(){this.setToken(null),this.usuarioSource.next(null)}loginAreaRestritaIdLogin(te){return this.http.get(`${this.environmentService.environment.serverUrl}/auth/area-restrita/id-login/${te}`).pipe((0,ce.M)((({accessToken:te})=>this.setToken(te))))}static#e=this.ɵfac=function AuthService_Factory(te){return new(te||AuthService)(re.KVO(me.Qq),re.KVO(ge.v))};static#t=this.ɵprov=re.jDH({token:AuthService,factory:AuthService.ɵfac,providedIn:"root"})}return AuthService})()},888:(te,ne,ie)=>{"use strict";ie.d(ne,{i:()=>ge});var re=ie(3107),le=ie(3511),ce=ie(4460),de=ie(7280);function BrDialogHeaderComponent_p_button_3_Template(te,ne){if(1&te){const te=re.RV6();re.j41(0,"p-button",4),re.bIt("onClick",(function BrDialogHeaderComponent_p_button_3_Template_p_button_onClick_0_listener(){re.eBV(te);const ne=re.XpG();return re.Njj(ne.onConfirmar())})),re.k0s()}}function BrDialogHeaderComponent_p_button_4_Template(te,ne){if(1&te){const te=re.RV6();re.j41(0,"p-button",5),re.bIt("onClick",(function BrDialogHeaderComponent_p_button_4_Template_p_button_onClick_0_listener(){re.eBV(te);const ne=re.XpG();return re.Njj(ne.onFechar())})),re.k0s()}}let ue=(()=>{class BrDialogHeaderComponent{constructor(){this.config=(0,re.WQX)(le.sb),this.dialogRef=(0,re.WQX)(le.Pw),this.header="",this.confirmarLabel=this.config.data?.confirmarLabel??"Confirmar",this.fecharLabel=this.config.data?.fecharLabel??"Fechar",this.header=this.config.header??""}get showConfirmar(){return this.config.data?.onConfirmar}get showFechar(){return this.config.closable??!0}onConfirmar(){this.config.data?.onConfirmarEmitter.emit()}onFechar(){if(!this.config.data?.onFechar)return this.dialogRef.close();this.config.data?.onFecharEmitter.emit()}static#e=this.ɵfac=function BrDialogHeaderComponent_Factory(te){return new(te||BrDialogHeaderComponent)};static#t=this.ɵcmp=re.VBU({type:BrDialogHeaderComponent,selectors:[["br-dialog-header"]],standalone:!0,features:[re.aNF],decls:5,vars:3,consts:[[1,"flex","align-items-center","gap-2"],[1,"p-dialog-title"],["label","Confirmar","icon","pi pi-check","styleClass","p-button-rounded p-button-success",3,"onClick",4,"ngIf"],["label","Fechar","icon","pi pi-times","styleClass","p-button-rounded p-button-danger",3,"onClick",4,"ngIf"],["label","Confirmar","icon","pi pi-check","styleClass","p-button-rounded p-button-success",3,"onClick"],["label","Fechar","icon","pi pi-times","styleClass","p-button-rounded p-button-danger",3,"onClick"]],template:function BrDialogHeaderComponent_Template(te,ne){1&te&&(re.j41(0,"div",0)(1,"span",1),re.EFF(2),re.k0s(),re.DNE(3,BrDialogHeaderComponent_p_button_3_Template,1,0,"p-button",2)(4,BrDialogHeaderComponent_p_button_4_Template,1,0,"p-button",3),re.k0s()),2&te&&(re.R7$(2),re.JRh(ne.header),re.R7$(),re.Y8G("ngIf",ne.showConfirmar),re.R7$(),re.Y8G("ngIf",ne.showFechar))},dependencies:[ce.MD,ce.bT,de.tm,de.$n]})}return BrDialogHeaderComponent})();var me=ie(2473);let ge=(()=>{class BrDialogService{constructor(){this.dialogService=(0,re.WQX)(le.o3),this.rendererFactory=(0,re.WQX)(re._9s),this.tabService=(0,re.WQX)(me.r),this.renderer=this.rendererFactory.createRenderer(null,null)}open(te,ne){const ie=this.tabService.getTabOpenElement();return this.dialogService.open(te,{modal:!0,draggable:!0,resizable:!0,appendTo:ie??"body",...ne,templates:{header:ue,...ne?.templates?ne.templates:void 0},data:{onConfirmar:ne?.onConfirmar,onFechar:ne?.onFechar,confirmarLabel:ne?.confirmarLabel||"Confirmar",fecharLabel:ne?.fecharLabel||"Fechar",onConfirmarEmitter:new re.bkB,onFecharEmitter:new re.bkB,...ne?.data?ne.data:void 0}})}static#e=this.ɵfac=function BrDialogService_Factory(te){return new(te||BrDialogService)};static#t=this.ɵprov=re.jDH({token:BrDialogService,factory:BrDialogService.ɵfac,providedIn:"root"})}return BrDialogService})()},3972:(te,ne,ie)=>{"use strict";ie.d(ne,{h:()=>de});var re=ie(3107),le=ie(3828),ce=ie(3500);let de=(()=>{class BrMessageService{constructor(){this.messageService=(0,re.WQX)(le.bg)}success(te){this.messageService.add({key:ce.x.BottomCenter,severity:"success",summary:"Sucesso",detail:te||"Operação realizada com sucesso",life:3e3,closable:!0})}error(te){let ne=te;"Internal server error"===ne&&(ne="Ocorreu um erro inesperado."),this.messageService.add({key:ce.x.BottomCenter,severity:"error",summary:"Erro",detail:ne||"Ocorreu um erro inesperado.",life:3e3,closable:!0})}info(te){this.messageService.add({key:ce.x.BottomCenter,severity:"info",summary:"Aviso",detail:te,life:3e3,closable:!0})}static#e=this.ɵfac=function BrMessageService_Factory(te){return new(te||BrMessageService)};static#t=this.ɵprov=re.jDH({token:BrMessageService,factory:BrMessageService.ɵfac,providedIn:"root"})}return BrMessageService})()},3969:(te,ne,ie)=>{"use strict";ie.d(ne,{q:()=>ue});var re=ie(3107),le=ie(1787),ce=ie(2040),de=ie(887);let ue=(()=>{class CaptionMembroService{constructor(){this.preferenciasService=(0,re.WQX)(de.v)}static set instancia(te){this._instancia||(this._instancia=te)}static get instancia(){return this._instancia}getCaptionMembro(){return(0,le.H)(this.preferenciasService.get("CAPTION_MEMBRO")).pipe((0,ce.M)((te=>this.captionMembro=te)))}transform(te){let ne=te.replace(new RegExp("membros","gi"),(te=>this.matchCase(this.captionMembro+"s",te)));return ne=te.replace(new RegExp("membro","gi"),(te=>this.matchCase(this.captionMembro,te))),ne}isLowerCase(te){return te===te.toLowerCase()&&te!==te.toUpperCase()}matchCase(te,ne){return this.isLowerCase(ne.charAt(0))?te.charAt(0).toLowerCase()+te.slice(1):te.charAt(0).toUpperCase()+te.slice(1)}static#e=this.ɵfac=function CaptionMembroService_Factory(te){return new(te||CaptionMembroService)};static#t=this.ɵprov=re.jDH({token:CaptionMembroService,factory:CaptionMembroService.ɵfac,providedIn:"root"})}return CaptionMembroService})()},3206:(te,ne,ie)=>{"use strict";ie.d(ne,{p:()=>Ce});var re=ie(3107),le=ie(3005),ce=ie(7947),de=ie(7178),ue=ie(6564),me=ie(2867),ge=ie(7538),fe=ie(6830),_e=ie(6612),be=ie(7691);let Ce=(()=>{class ConfigComponentService{constructor(te){this.http=te,this.authService=(0,re.WQX)(fe.u),this.environmentService=(0,re.WQX)(_e.v)}getConfig(te){return this.http.get(`${this.environmentService.environment.serverUrl}/nbr-config-componente/min`,{params:{search:te}}).pipe((0,ce.T)((te=>{if(te&&te.data.length>0){const ne=te.data[0];return{config:this.corrigeDados(JSON.parse(ne.jsonComponente)),codNbrConfigComponente:ne.codNbrConfigComponente}}})),(0,de.W)((te=>(console.error(te),ue.w))))}save(te,ne){return this.http.get(`${this.environmentService.environment.serverUrl}/nbr-config-componente/min`,{params:{search:te}}).pipe((0,me.n)((ie=>{if(ie&&ie.data.length>0){const re=ie.data[0].codNbrConfigComponente;return this.http.put(`${this.environmentService.environment.serverUrl}/nbr-config-componente/${re}`,{codLbrUsuario:this.authService.usuario.codLbrUsuario,nomeClasse:te,jsonComponente:JSON.stringify(ne)})}return this.http.post(`${this.environmentService.environment.serverUrl}/nbr-config-componente`,{codLbrUsuario:this.authService.usuario.codLbrUsuario,nomeClasse:te,jsonComponente:JSON.stringify(ne)})})),(0,de.W)((te=>(console.error(te),ue.w))))}corrigeDados(te){const ne=(0,le.B)(te);for(const te of Object.keys(ne))(0,ge.QN)(ne[te])&&(ne[te]=new Date(ne[te]));return(0,le.s)(ne)}updateConfig(te,ne){return this.http.put(`${this.environmentService.environment.serverUrl}/nbr-config-componente/${te}`,{jsonComponente:JSON.stringify(ne)})}createConfig(te,ne){return this.http.post(`${this.environmentService.environment.serverUrl}/nbr-config-componente`,{codLbrUsuario:this.authService.usuario.codLbrUsuario,nomeClasse:te,jsonComponente:JSON.stringify(ne)})}static#e=this.ɵfac=function ConfigComponentService_Factory(te){return new(te||ConfigComponentService)(re.KVO(be.Qq))};static#t=this.ɵprov=re.jDH({token:ConfigComponentService,factory:ConfigComponentService.ɵfac,providedIn:"root"})}return ConfigComponentService})()},4302:(te,ne,ie)=>{"use strict";ie.d(ne,{F:()=>me});var re=ie(7184),le=ie(7947),ce=ie(3107),de=ie(7691),ue=ie(6612);let me=(()=>{class ConfigGeralService{constructor(te,ne){this.http=te,this.environmentService=ne}get(te){return(0,re._)(this.http.get(`${this.environmentService.environment.serverUrl}/config-geral/${te}`).pipe((0,le.T)((te=>te.conteudo))))}getUrlPoliticaPrivacidade(){return this.http.get(`${this.environmentService.environment.serverUrl}/config-geral/url-lgpd`)}getCriterioSenha(){return this.http.get(`${this.environmentService.environment.serverUrl}/config-geral/criterio-senha`)}updateConfigGeral(te){return this.http.put(`${this.environmentService.environment.serverUrl}/config-geral`,te)}static#e=this.ɵfac=function ConfigGeralService_Factory(te){return new(te||ConfigGeralService)(ce.KVO(de.Qq),ce.KVO(ue.v))};static#t=this.ɵprov=ce.jDH({token:ConfigGeralService,factory:ConfigGeralService.ɵfac,providedIn:"root"})}return ConfigGeralService})()},6612:(te,ne,ie)=>{"use strict";ie.d(ne,{v:()=>de});var re=ie(2040),le=ie(3107),ce=ie(7691);let de=(()=>{class EnvironmentService{constructor(te){this.http=te}carregarConfiguracao(){return this.http.get("/assets/empresa/config.json").pipe((0,re.M)((te=>{this.envConfig=te})))}getVersaoProjeto(){return ie(8330).rE}get environment(){return this.envConfig}static#e=this.ɵfac=function EnvironmentService_Factory(te){return new(te||EnvironmentService)(le.KVO(ce.Qq))};static#t=this.ɵprov=le.jDH({token:EnvironmentService,factory:EnvironmentService.ɵfac,providedIn:"root"})}return EnvironmentService})()},2848:(te,ne,ie)=>{"use strict";ie.d(ne,{Y:()=>Se});var re=ie(7691),le=ie(3107),ce=ie(407),de=ie(1217),ue=ie(2867),me=ie(3016),ge=ie(2040),fe=ie(7178),_e=ie(6564),be=ie(7947),Ce=ie(6830),ye=ie(3972),we=ie(915),ke=ie(6612);let Se=(()=>{class LayoutService{constructor(){this.http=(0,le.WQX)(re.Qq),this.authService=(0,le.WQX)(Ce.u),this.brMessageService=(0,le.WQX)(ye.h),this.environmentService=(0,le.WQX)(ke.v),this.keyConfirmDialogRoot="keyConfirmDialogRoot",this.isInputFocused$=new de.t(!1),this.itensMenu=[],this.filteredMenu=[],this.state={menuActive:!1,anchored:!1}}get layoutStateClass(){return{"layout-menu-active":this.state.menuActive,"layout-menu-anchored":this.state.anchored}}get isInputFocused(){return this.isInputFocused$.getValue()}set isInputFocused(te){this.isInputFocused$.next(te)}toggleAnchorState(){this.state.anchored=!this.state.anchored}isDesktop(){return window.innerWidth>886}getItensMenuClone(){return ce.cloneDeep(this.itensMenu)}getItensMenuSemFavoritos(){return this.itensMenu[0].items.filter((te=>"favoritos"!==te.id))}isItemFavorito(te){return(this.itensMenu[0].items?.find((te=>"favoritos"===te.id))?.items??[]).map((te=>te.id)).includes(te.id)}resetFilteredMenu(){this.filteredMenu=this.itensMenu}montaMenu(te){const ne=[];if(this.authService.usuario?.isAdmin)ne.push(...te);else for(const ie of te){const te=this.processaMenuItem(ie);te&&te.items&&ne.push(te)}const ie=[];for(const ne of te){const te=this.processaFavoritosMenuItem(ne);te&&ie.push(...te)}ie.length>0&&(ie.forEach((te=>te.expanded=!0)),ne.unshift({label:"Favoritos",icon:"fa-light fa-fw fa-heart",id:"favoritos",expanded:!0,items:ie})),this.itensMenu=[{items:ne,styleClass:"root",expanded:!0,label:"",icon:""}],this.filteredMenu=this.itensMenu}toggleFavorito(te,ne){return this.http.get(`${this.environmentService.environment.serverUrl}/nbr-rotina-menu/min?search=${ne.id}`).pipe((0,ue.n)((te=>0===te.data.length?this.http.post(`${this.environmentService.environment.serverUrl}/nbr-rotina-menu`,{nomeNbrRotinaMenu:ne.label,classeIncorp:ne.id}):(0,me.of)(te.data[0].codNbrRotinaMenu))),(0,ue.n)((te=>this.http.get(`${this.environmentService.environment.serverUrl}/nbr-rotina-grupo-acesso/min?codNbrRotinaMenu=${te}&codGrupoAcesso=${this.authService.usuario?.nbrGrupoAcesso.codNbrGrupoAcesso}`).pipe((0,ue.n)((ne=>0===ne.data.length?this.http.post(`${this.environmentService.environment.serverUrl}/nbr-rotina-grupo-acesso`,{codNbrRotinaMenu:te,codNbrGrupoAcesso:this.authService.usuario?.nbrGrupoAcesso.codNbrGrupoAcesso,codNbrTipoAcesso:this.authService.usuario?.isAdmin?2:1}):(0,me.of)(ne.data[0].codNbrRotinaGrupoAcesso)))))),(0,ue.n)((ie=>this.http.put(`${this.environmentService.environment.serverUrl}/nbr-rotina-grupo-acesso/${ie}`,{tituloFavorito:te?ne.label:"",possuiFavorito:te?"V":"F"}))),(0,ue.n)((te=>this.http.get(`${this.environmentService.environment.serverUrl}/nbr-rotina-grupo-acesso/${te}`))),(0,ge.M)((te=>{const ne=this.authService.usuario.nbrRotinaGrupoAcesso.filter((ne=>ne.codNbrRotinaGrupoAcesso!==te.codNbrRotinaGrupoAcesso));this.authService.usuario={nbrRotinaGrupoAcesso:[...ne,te]}})),(0,fe.W)((te=>(console.error(te),this.brMessageService.error(te.error?.message),_e.w))))}renomearFavorito(te){return this.http.get(`${this.environmentService.environment.serverUrl}/nbr-rotina-menu/min?search=${te.id}`).pipe((0,be.T)((te=>te.data[0])),(0,ue.n)((te=>this.http.get(`${this.environmentService.environment.serverUrl}/nbr-rotina-grupo-acesso/min?codNbrRotinaMenu=${te.codNbrRotinaMenu}&codGrupoAcesso=${this.authService.usuario?.nbrGrupoAcesso.codNbrGrupoAcesso}`))),(0,be.T)((te=>te.data[0])),(0,ue.n)((ne=>this.http.put(`${this.environmentService.environment.serverUrl}/nbr-rotina-grupo-acesso/${ne.codNbrRotinaGrupoAcesso}`,{tituloFavorito:te.label}))),(0,ue.n)((te=>this.http.get(`${this.environmentService.environment.serverUrl}/nbr-rotina-grupo-acesso/${te}`))),(0,ge.M)((te=>{const ne=this.authService.usuario.nbrRotinaGrupoAcesso.map((ne=>ne.codNbrRotinaGrupoAcesso===te.codNbrRotinaGrupoAcesso?te:ne));this.authService.usuario={nbrRotinaGrupoAcesso:ne}})),(0,fe.W)((te=>(console.error(te),this.brMessageService.error(te.error?.message),_e.w))))}filterMenuBySearch(te,ne){return ne.reduce(((ne,ie)=>{const re=ie.label;if(this.labelContainsSearch((0,we.S)(re),(0,we.S)(te)))ie.expanded=!0,ne.push(ie);else if(ie.items){ie.expanded=!0;const re=this.filterMenuBySearch(te,ie.items);re.length>0&&ne.push({...ie,items:re})}return ne}),[])}processaFavoritosMenuItem(te){if(te.items){const ne=[];for(const ie of te.items){const te=this.processaFavoritosMenuItem(ie);te&&(Array.isArray(te)?ne.push(...te):ne.push(te))}if(ne.length>0)return ne}const ne=this.authService.usuario.nbrRotinaGrupoAcesso.filter((te=>"V"===te.possuiFavorito)).find((ne=>ne.nbrRotinaMenu.classeIncorp===te.id));if(ne){const ie={...te};return ie.label=ne.tituloFavorito??ie.label,[ie]}}processaMenuItem(te){if(te.items){const ne=[];for(const ie of te.items){const te=this.processaMenuItem(ie);te&&ne.push(te)}if(ne.length>0)return te.items=ne,te}const ne=this.authService.usuario.nbrRotinaGrupoAcesso.find((ne=>ne.nbrRotinaMenu.classeIncorp===te.id));if(ne){const ie={...te};return ie.label=ne.tituloMenu??te.label,ie}}labelContainsSearch(te,ne){const ie=te.split(" ");return ne.split(" ").every((te=>ie.filter((ne=>ne.includes(te))).length))}static#e=this.ɵfac=function LayoutService_Factory(te){return new(te||LayoutService)};static#t=this.ɵprov=le.jDH({token:LayoutService,factory:LayoutService.ɵfac,providedIn:"root"})}return LayoutService})()},6563:(te,ne,ie)=>{"use strict";ie.d(ne,{T:()=>ce});var re=ie(1217),le=ie(3107);let ce=(()=>{class TopLoadingService{constructor(){this.loadingSubject=new re.t(!1),this.loading$=this.loadingSubject.asObservable()}show(){this.loadingSubject.next(!0)}hide(){this.loadingSubject.next(!1)}static#e=this.ɵfac=function TopLoadingService_Factory(te){return new(te||TopLoadingService)};static#t=this.ɵprov=le.jDH({token:TopLoadingService,factory:TopLoadingService.ɵfac,providedIn:"root"})}return TopLoadingService})()},605:(te,ne,ie)=>{"use strict";ie.d(ne,{C:()=>ge,X:()=>me});var re=ie(7691),le=ie(3107),ce=ie(7184),de=ie(6612),ue=ie(2473),me=function(te){return te.LoginSistema="Login do Administrativo",te.LoginAreaRestrita="Login da Área Restrita",te.LogoutSistema="Logout do Administrativo",te.LogoutAreaRestrita="Logout da Área Restrita",te.GerarRelatorioPdf="Exportar Dados - Formato PDF",te.GerarRelatorioXlsx="Exportar Dados - Formato Excel",te.GerarRelatorioCsv="Exportar Dados - Formato CSV",te.ListaItensTabela="Gerenciar Registros",te.AcessoTela="Acessar Aba",te.VisualizaRelatorio="Visualiza Relatório",te}(me||{});let ge=(()=>{class LogAcessoService{constructor(){this.http=(0,le.WQX)(re.Qq),this.environmentService=(0,le.WQX)(de.v),this.injector=(0,le.WQX)(le.zZn)}addEvento(te,ne){let ie,re;if(ne?.registrarRotinaMenu){const te=this.injector.get(ue.r);ie=te?.abaAtual?.component.name,re=te?.abaAtual?.component.label}return(0,ce._)(this.http.post(`${this.environmentService.environment.serverUrl}/nbr-log-acesso`,{evento:te,descrNbrLogAcesso:ne?.descricao,classeIncorp:ie,nomeNbrRotinaMenu:re}))}static#e=this.ɵfac=function LogAcessoService_Factory(te){return new(te||LogAcessoService)};static#t=this.ɵprov=le.jDH({token:LogAcessoService,factory:LogAcessoService.ɵfac,providedIn:"root"})}return LogAcessoService})()},887:(te,ne,ie)=>{"use strict";ie.d(ne,{v:()=>be});var re=ie(3014),le=ie(7184),ce=ie(7178),de=ie(6564),ue=ie(7947),me=ie(3107),ge=ie(7691),fe=ie(6612),_e=ie(3972);let be=(()=>{class PreferenciasService{constructor(te,ne,ie){this.http=te,this.environmentService=ne,this.brMessageService=ie}get(te){var ne=this;return(0,re.A)((function*(){return yield(0,le._)(ne.http.get(`${ne.environmentService.environment.serverUrl}/lbr-pref/campo/${te}`).pipe((0,ce.W)((te=>(console.error(te),ne.brMessageService.error(),de.w))),(0,ue.T)((te=>te?.conteudo||""))))}))()}static#e=this.ɵfac=function PreferenciasService_Factory(te){return new(te||PreferenciasService)(me.KVO(ge.Qq),me.KVO(fe.v),me.KVO(_e.h))};static#t=this.ɵprov=me.jDH({token:PreferenciasService,factory:PreferenciasService.ɵfac,providedIn:"root"})}return PreferenciasService})()},2473:(te,ne,ie)=>{"use strict";ie.d(ne,{r:()=>me});var re=ie(3107),le=ie(407),ce=ie(1217),de=ie(4320),ue=ie(9746);let me=(()=>{class TabService{constructor(){this.rendererFactory=(0,re.WQX)(re._9s),this.renderer=this.rendererFactory.createRenderer(null,null),this.iniciar()}iniciar(){this._tabLayout={index:0,tabs:[]},this._tabLayout$=new ce.t(this._tabLayout)}get tabLayout$(){return this._tabLayout$.asObservable()}get tabLayout(){return this._tabLayout$.value}get abaAtual(){let te=this._tabLayout.tabs[this._tabLayout.index];return this.isInstanciaTabChildrenLayout(te)?te.children[te.childIndex]:te}getTabOpenComponentName(){const te=this._tabLayout.tabs[this._tabLayout.index];return te?te.component?.name||te.children[te.childIndex].component.name:""}getTabOpenElement(){let te=null;try{te=this.renderer.selectRootElement(".layout-content.br-tab.block",!0)}catch(te){}return te}open(te){return te.hasOwnProperty("component")||te.hasOwnProperty("child")?te.child?this.openTabWithChild(te):this.openTabWithoutChild(te):this.openTabWithoutChild({component:te})}openTabWithChild(te){const ne=this.checkTabWithChildOpen(te);if(ne)return this.goTo(ne.parentIndex,ne.childIndex),this._tabLayout.tabs[ne.parentIndex].children[ne.childIndex];const ie=(0,de.A)(),re=this.createNewTabClass(te.child,ie),le=this.add({id:ie,childIndex:0,header:te.header,proibidoFechar:te.proibidoFechar,icon:te.icon,data:te.data,crossChildFooterComponent:te.crossChildFooterComponent,children:[re]});return this.goTo(le),re}openTabWithoutChild(te){const ne=this.checkTabOpen(te);if(ne||0===ne)return this.goTo(ne),this._tabLayout.tabs[ne];const ie=this.createNewTabClass(te),re=this.add(ie);return this.goTo(re),ie}checkTabWithChildOpen(te){for(let ne=0;ne<this._tabLayout.tabs.length;ne++){const ie=this._tabLayout.tabs[ne];if(this.isInstanciaTabChildrenLayout(ie))for(let re=0;re<ie.children.length;re++){const ce=ie.children[re];if(ce.component.name===te.child.component.name&&(0,le.isEqual)(ce.data,te.data))return{parentIndex:ne,childIndex:re}}}}checkTabOpen(te){for(let ne=0;ne<this._tabLayout.tabs.length;ne++){const ie=this._tabLayout.tabs[ne];if(ie instanceof ue.l){const ce=(0,re.HJs)(ie.component),de=(0,re.HJs)(te.component);if(ce?.selector===de?.selector&&(0,le.isEqual)(ie.data,te.data))return ne}}}openChild(te){const ne=this._tabLayout.tabs.findIndex((ne=>ne.id===te.parentId));if(-1===ne)throw Error("Não existe uma aba pai com o parentId");const ie=this._tabLayout.tabs[ne];if(!this.isInstanciaTabChildrenLayout(ie))throw Error("Aba pai não pode conter filhos");const re=this.checkChildOpen(ie,te);if(re||0===re)return this.goTo(ne,re),ie.children[re];const le=this.createNewTabClass(te.child,ie.id),ce=this.addChild(ne,le);return this.goTo(ne,ce),le}checkChildOpen(te,ne){for(let ie=0;ie<te.children.length;ie++){const ce=te.children[ie],de=(0,re.HJs)(ce.component),ue=(0,re.HJs)(ne.child.component);if(de?.selector===ue?.selector&&(0,le.isEqual)(ce.data,ne.child.data))return ie}}closeTab(te,ne){const ie=this._tabLayout.tabs.findIndex((ne=>ne.id===te));if(-1===ie)return;const re=this._tabLayout.tabs[ie];if(!ne){if(re.proibidoFechar)throw Error(`A aba '${re.header??re.component?.prototype.header()}' não pode ser fechada, pois possui o atributo 'closable' como 'false'`);return this.removeParent(ie)}if(!this.isInstanciaTabChildrenLayout(re))return;const le=re.children.findIndex((te=>te.id===ne));if(-1===le)return;const ce=re.children[le];if(ce.proibidoFechar)throw Error(`A aba '${ce.header}' não pode ser fechada, pois possui o atributo 'proibidoFechar' como 'true'`);return 1===re.children.length?this.removeParent(ie):this.removeChild(ie,le)}removeParent(te){return this._tabLayout.tabs.splice(te,1),0===this._tabLayout.tabs.length?(this._tabLayout.index=0,this._tabLayout$.next(this._tabLayout)):(this._tabLayout.index===te?this._tabLayout.index=this._tabLayout.tabs.length>=te+1?te:te-1:this._tabLayout.index>te&&(this._tabLayout.index=this._tabLayout.index-1),this._tabLayout$.next(this._tabLayout))}removeChild(te,ne){const ie=this._tabLayout.tabs[te];return ie.children.splice(ne,1),ie.childIndex===ne?ie.childIndex=ie.children.length>=ne+1?ne:ne-1:ie.childIndex>ne&&(ie.childIndex=ie.childIndex-1),this._tabLayout$.next(this._tabLayout)}goTo(te,ne){if(this._tabLayout.tabs.length<te+1)return;this._tabLayout.index=te;const ie=this._tabLayout.tabs;if((ne||0===ne)&&this.isInstanciaTabChildrenLayout(ie[te])&&ie[te].children.length>=ne+1){ie[te].childIndex=ne}this._tabLayout$.next(this._tabLayout)}isInstanciaTabChildrenLayout(te){return!!te&&"children"in te}add(te){return this._tabLayout.tabs.push(te),this._tabLayout.tabs.length-1}addChild(te,ne){if(this._tabLayout.tabs.length<te+1||!this.isInstanciaTabChildrenLayout(this._tabLayout.tabs[te]))return;const ie=this._tabLayout.tabs[te];return ie.children.push(ne),ie.children.length-1}createNewTabClass(te,ne){const ie=new ue.l({...te,parentId:ne}),le=re.zZn.create({providers:[{provide:ue.l,useValue:ie}]});ie.injector=le;const ce=ie.onClose.subscribe((()=>{ce.unsubscribe(),ie.parentId?this.closeTab(ie.parentId,ie.id):this.closeTab(ie.id)}));return ie}fechaAbasLogout(){this.iniciar()}static#e=this.ɵfac=function TabService_Factory(te){return new(te||TabService)};static#t=this.ɵprov=re.jDH({token:TabService,factory:TabService.ɵfac,providedIn:"root"})}return TabService})()},4667:(te,ne,ie)=>{"use strict";ie.d(ne,{E:()=>ce});var re=ie(4460),le=ie(3107);let ce=(()=>{class ValidadorFormularioService{constructor(){this.document=(0,le.WQX)(re.qQ)}validaFormulario(te,ne){if(this.brControls=ne?.flatMap((te=>te.controls)),te.valid)return{valido:!0,mensagemErro:""};const ie=this.getFormValidationErrors(te);return{valido:!1,mensagemErro:this.buildMensagemFormInvalido(ie)}}getFormValidationErrors(te){const ne=[];for(const ie in te.controls){const re=te.get(ie).errors;if(null!==re)for(const te in re)ne.push({controlName:ie,controlError:te,errorDetails:re[te]??null})}if(null!==te.errors)for(const ie in te.errors)ne.push({errorDetails:te.errors[ie]??null,controlError:ie});return ne}buildMensagemFormInvalido(te){if(0===te.length)return"";const ne=te[0];switch(ne.controlError){case"required":return`${this.getControlLabel(ne.controlName)} é obrigatório.`;case"forbiddenDomain":return`O uso do domínio "${ne.errorDetails.forbiddenEmailDomain}" não é permitido no campo ${this.getControlLabel(ne.controlName)}.`;case"dataInicialMenorDataFinal":return`"${this.getControlLabel(ne.errorDetails.dataInicialControlName)}" deve ser anterior à "${this.getControlLabel(ne.errorDetails.dataFinalControlName)}".`;default:return"Formulário inválido"}}getMensagemErro(te){let ne="";for(const ie of Object.keys(te.controls)){const re=te.get(ie)?.errors;if(re){if(re.required){ne="Prencha os campos obrigatórios (borda vermelha)";break}if(re.forbiddenDomain){ne="Email não pode conter este conteúdo: "+re.forbiddenDomain.forbiddenEmailDomain;break}}}return ne}getControlLabel(te){let ne;if(this.brControls&&(ne=this.brControls.find((ne=>ne.formControlName===te))),ne)return ne.label;const ie=this.document.querySelector(`[formControlName=${te}]`);return ie?ie.getAttribute("label")??te:te}static#e=this.ɵfac=function ValidadorFormularioService_Factory(te){return new(te||ValidadorFormularioService)};static#t=this.ɵprov=le.jDH({token:ValidadorFormularioService,factory:ValidadorFormularioService.ɵfac,providedIn:"root"})}return ValidadorFormularioService})()},7538:(te,ne,ie)=>{"use strict";function isStringDate(te){if("string"==typeof te){let ne=/^(\d{4})(-(\d{2}))??(-(\d{2}))??(T(\d{2}):(\d{2})(:(\d{2}))??(\.(\d+))??(([\+\-]{1}\d{2}:\d{2})|Z)??)??$/.test(te);return ne&&(ne=te.indexOf("-")>0&&te.indexOf("T")>0),ne}return!1}function getDataTimeSemUTC(te){const ne=te?.replace("Z","");return ne}function convertToLocaleISOString(te){const ne=6e4*te.getTimezoneOffset();return new Date(te.getTime()-ne).toISOString().slice(0,-1)}ie.d(ne,{QN:()=>isStringDate,ZW:()=>getDataTimeSemUTC,hk:()=>convertToLocaleISOString})},7800:(te,ne,ie)=>{"use strict";ie.d(ne,{X:()=>re});const re=/^[0-9]{3}\.?[0-9]{3}\.?[0-9]{3}\-?[0-9]{2}$|^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/},8:(te,ne,ie)=>{"use strict";function enableForm(te){Object.keys(te.controls).forEach((ne=>{const ie=te.get(ne);ie?.enable()}))}function disableForm(te){Object.keys(te.controls).forEach((ne=>{const ie=te.get(ne);ie?.disable()}))}function markFormAsPristine(te){Object.keys(te.controls).forEach((ne=>{const ie=te.get(ne);ie?.markAsPristine()}))}function markFormAsDirty(te){Object.keys(te.controls).forEach((ne=>{const ie=te.get(ne);ie?.markAsDirty()}))}function resetForm(te){Object.keys(te.controls).forEach((ne=>{const ie=te.get(ne);ie?.reset()}))}function isFormDisabled(te){if(!te)return!1;let ne=!0;return Object.keys(te.controls).forEach((ie=>{const re=te.get(ie);re?.enabled&&(ne=!1)})),ne}ie.d(ne,{E2:()=>resetForm,LL:()=>disableForm,QE:()=>markFormAsDirty,QW:()=>markFormAsPristine,d7:()=>isFormDisabled,eo:()=>enableForm})},2383:(te,ne,ie)=>{"use strict";function formatNumber(te,ne){let[ie,re]=String(te).split(".");return ie=ie.replace(/\B(?=(\d{3})+(?!\d))/g,"."),re=re?`,${re}${1===re.length?"0":""}`:"",`${ne?"R$ ":""}${ie}${ne?`${re||",00"}`:`${re}`}`}ie.d(ne,{Z:()=>formatNumber})},915:(te,ne,ie)=>{"use strict";function capitalize(te){return te?te.charAt(0).toUpperCase()+te.slice(1).toLowerCase():te}function normalize(te){return te?te.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().trim():te}ie.d(ne,{S:()=>normalize,Z:()=>capitalize})},6838:(te,ne,ie)=>{"use strict";ie.d(ne,{u:()=>be});var re=ie(3107),le=ie(3016),ce=ie(9587),de=ie(1483),ue=ie(2867),me=ie(1787),ge=ie(7947),fe=ie(887),_e=ie(7800);let be=(()=>{class DominioEmailValidator{constructor(){this.preferenciaService=(0,re.WQX)(fe.v)}checarDominio(){return te=>{const ne=te.value;return ne?(0,ce.O)(300).pipe((0,de.p)((()=>_e.X.test(ne))),(0,ue.n)((()=>(0,me.H)(this.preferenciaService.get("BLOQUEAR_EMAIL_MEMBRO")))),(0,ge.T)((te=>te&&ne?.endsWith(te)?{forbiddenDomain:{email:ne,forbiddenEmailDomain:te}}:null))):(0,le.of)(null)}}static#e=this.ɵfac=function DominioEmailValidator_Factory(te){return new(te||DominioEmailValidator)};static#t=this.ɵprov=re.jDH({token:DominioEmailValidator,factory:DominioEmailValidator.ɵfac,providedIn:"root"})}return DominioEmailValidator})()},3944:(te,ne,ie)=>{"use strict";ie.d(ne,{c:()=>_e});var re=ie(936),le=ie(7178),ce=ie(6564),de=ie(2040),ue=ie(4447),me=ie(1217),ge=ie(2864),fe=ie(3107);let _e=(()=>{class LbrUsuarioService extends ge.O7{constructor(){super("lbr-usuario"),this.menuMais=[{label:"Enviar Email para Redefinir Senha",icon:"pi pi-send",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>te.codLbrUsuario));this.state.isLoading=!0,this.enviarEmailsRedefinicaoDeSenha(te).pipe((0,le.W)((te=>(console.error(te),this.brMessageService.error(),ce.w))),(0,de.M)((()=>this.brMessageService.success())),(0,ue.j)((()=>this.state.isLoading=!1))).subscribe()}else this.brMessageService.info("É necessário selecionar algum registro antes")}}],this.brListName="Usuário",this.brListNamePlural="Usuários",this.columns$=new me.t([{formControlName:"codLbrUsuario",fieldPath:"codLbrUsuario",label:"ID"},{label:"Nome",formControlName:"nomeUsuario",fieldPath:"nomeUsuario"},{label:"Tipo de usuário",formControlName:"codLbrTipoUsuario",fieldPath:"lbrTipoUsuario.nomeTipoUsuario"},{label:"Grupo de acesso",formControlName:"codNbrGrupoAcessoUltimo",fieldPath:"nbrGrupoAcessoLbrUsuarioCodNbrGrupoAcessoUltimoTonbrGrupoAcesso.nomeNbrGrupoAcesso"},{label:"Celular",formControlName:"celularFone",fieldPath:"celularFone"},{label:"E-mail",formControlName:"emailUsuario",fieldPath:"emailUsuario"},{label:"CPF",formControlName:"cpf",fieldPath:"cpf"},{label:"Acesso à área restrita",formControlName:"usuarioAreaRestrita",fieldPath:"usuarioAreaRestrita",typeColumn:ge.Ii.CheckBox},{label:"Ativo",formControlName:"registroAtivo",fieldPath:"registroAtivo",typeColumn:ge.Ii.CheckBox},{label:"Apto para Acessar App e Área Restria",formControlName:"brComuniqueAtivo",fieldPath:"brComuniqueAtivo",typeColumn:ge.Ii.CheckBox},{label:"Status de acesso",formControlName:"codStatusAcessoUsuario",fieldPath:"statusAcessoUsuario.nomeStatusAcessoUsuario"},{label:"Grupo pessoal",formControlName:"codGrupoPessoal",fieldPath:"grupoPessoalLbrUsuarioCodGrupoPessoalTogrupoPessoal.nomeGrupoPessoal"},{label:"Login",formControlName:"login",fieldPath:"login"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codLbrUsuario",control:new re.MJ(null),typeInput:ge.St.Text,showOnDetails:!1},{label:"Foto",formControlName:"codDocEmpresaFoto",control:new re.MJ(null),typeInput:ge.St.Upload,acceptedFiles:["image/*"]},{label:"Nome",formControlName:"nomeUsuario",control:new re.MJ(null,re.k0.required),typeInput:ge.St.Text},{label:"CPF",formControlName:"cpf",control:new re.MJ(null,re.k0.required),typeInput:ge.St.Mask,inputMask:"999.999.999-99"},{label:"Tipo de usuário",formControlName:"codLbrTipoUsuario",control:new re.MJ(null),typeInput:ge.St.ForeignKey,optionLabel:"nomeTipoUsuario",optionValue:"codLbrTipoUsuario",foreignEndpoint:"lbr-tipo-usuario"},{label:"Grupo pessoal",formControlName:"codGrupoPessoal",control:new re.MJ(null),typeInput:ge.St.ForeignKey,optionLabel:"nomeGrupoPessoal",optionValue:"codGrupoPessoal",foreignEndpoint:"grupo-pessoal"},{label:"Responsável pelo grupo pessoal",formControlName:"respGrupoPessoal",control:new re.MJ(null),typeInput:ge.St.CheckBox},{label:"Telefone celular",formControlName:"celularFone",control:new re.MJ(null),typeInput:ge.St.Mask,inputMask:"(99) 99999-9999"},{label:"E-mail",formControlName:"emailUsuario",control:new re.MJ(null),typeInput:ge.St.Text},{label:"Conta de email",formControlName:"codEmailConta",control:new re.MJ(null),typeInput:ge.St.ForeignKey,optionLabel:"nomeEmailConta",optionValue:"codEmailConta",foreignEndpoint:"email-conta"},{label:"Usuário responsável",formControlName:"codLbrUsuarioResp",control:new re.MJ(null),typeInput:ge.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",foreignEndpoint:"lbr-usuario"}]},{header:"Controle de Acesso",controls:[{label:"Login",formControlName:"login",control:new re.MJ(null,re.k0.required),typeInput:ge.St.Text},{label:"Grupo de acesso",formControlName:"codNbrGrupoAcessoUltimo",control:new re.MJ(null,re.k0.required),typeInput:ge.St.ForeignKey,optionLabel:"nomeNbrGrupoAcesso",optionValue:"codNbrGrupoAcesso",foreignEndpoint:"nbr-grupo-acesso"},{label:"Status de acesso",formControlName:"codStatusAcessoUsuario",control:new re.MJ(null,re.k0.required),typeInput:ge.St.ForeignKey,optionLabel:"nomeStatusAcessoUsuario",optionValue:"codStatusAcessoUsuario",foreignEndpoint:"status-acesso-usuario"},{label:"Acesso à área restrita",formControlName:"usuarioAreaRestrita",control:new re.MJ(null),typeInput:ge.St.CheckBox},{label:"Registro ativo",formControlName:"registroAtivo",control:new re.MJ(null),typeInput:ge.St.CheckBox},{label:"Apto para acessar app e área restria",formControlName:"brcomuniqueAtivo",control:new re.MJ(null),typeInput:ge.St.CheckBox}]}]}enviarEmailSolicitacaoSenha(te){return this.http.post(`${this.environmentService.environment.serverUrl}/lbr-usuario/solicitar-senha/area-restrita`,te)}resetSenha(te){return this.http.post(`${this.environmentService.environment.serverUrl}/lbr-usuario/reset-senha`,te)}atualizaStatusLgpd(te){return this.http.patch(`${this.environmentService.environment.serverUrl}/lbr-usuario/status-lgpd`,{codStatusLgpd:te})}enviarEmailsRedefinicaoDeSenha(te){return this.http.post(`${this.environmentService.environment.serverUrl}/lbr-usuario/enviar-emails-reset-senha`,{codsLbrUsuario:te})}aceitaTosForum(te){return this.http.patch(`${this.environmentService.environment.serverUrl}/lbr-usuario/aceita-tos-forum`,null,{headers:{Authorization:`Bearer ${te}`}})}static#e=this.ɵfac=function LbrUsuarioService_Factory(te){return new(te||LbrUsuarioService)};static#t=this.ɵprov=fe.jDH({token:LbrUsuarioService,factory:LbrUsuarioService.ɵfac,providedIn:"root"})}return LbrUsuarioService})()},5433:(te,ne,ie)=>{"use strict";ie.d(ne,{G:()=>we});var re=ie(3107),le=ie(564),ce=ie(4460),de=ie(7718),ue=ie(2867),me=ie(7538),ge=function(te){return te[te.INSERIR=1]="INSERIR",te[te.ALTERAR=2]="ALTERAR",te[te.APAGAR=3]="APAGAR",te}(ge||{}),fe=ie(936),_e=ie(1217),be=ie(2864);let Ce=(()=>{class LogDbService extends be.O7{constructor(){super("log-db"),this.brListName="Histórico",this.brListNamePlural="Históricos",this.state={...this.state,isReadOnly:!0},this.columns$=new _e.t([{label:"ID",formControlName:"codLogDb",fieldPath:"codLogDb"},{label:"Data/Hora de crição",formControlName:"dataCriacaoRegistro",fieldPath:"dataCriacaoRegistro",typeColumn:be.Ii.DateTime},{label:"Operação",formControlName:"codOperDb",fieldPath:"operDb.nomeOperDb"},{label:"Usuário",formControlName:"codUsuarioRegistro",fieldPath:"lbrUsuario.nomeUsuario"},{label:"Tabela",formControlName:"nomeTabela",fieldPath:"nomeTabela"},{label:"Chave do registro",formControlName:"chaveRegistro",fieldPath:"chaveRegistro"}]),this.brFormulario=[{header:"",controls:[{label:"ID",formControlName:"codLogDb",control:new fe.MJ,typeInput:be.St.Text},{label:"Data/Hora de crição",formControlName:"dataCriacaoRegistro",control:new fe.MJ,typeInput:be.St.Date},{label:"Operação",formControlName:"codOperDb",control:new fe.MJ,typeInput:be.St.ForeignKey,optionLabel:"nomeOperDb",optionValue:"codOperDb",foreignEndpoint:"oper-db",filterBy:"nomeOperDb"},{label:"Usuário",formControlName:"codUsuarioRegistro",control:new fe.MJ,typeInput:be.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",foreignEndpoint:"lbr-usuario",filterBy:"nomeUsuario"},{label:"Tabela",formControlName:"nomeTabela",control:new fe.MJ,typeInput:be.St.Text},{label:"Chave do registro",formControlName:"chaveRegistro",control:new fe.MJ,typeInput:be.St.Number}]}],this.menuMais=[]}static#e=this.ɵfac=function LogDbService_Factory(te){return new(te||LogDbService)};static#t=this.ɵprov=re.jDH({token:LogDbService,factory:LogDbService.ɵfac,providedIn:"root"})}return LogDbService})();function LogChangeComponent_ng_container_3_span_1_span_2_Template(te,ne){if(1&te&&(re.j41(0,"span",11),re.EFF(1),re.nI1(2,"date"),re.k0s()),2&te){const te=re.XpG().$implicit;re.R7$(),re.JRh(re.i5U(2,1,te.value.antigo,"dd/MM/yyyy"))}}function LogChangeComponent_ng_container_3_span_1_ng_template_3_Template(te,ne){if(1&te&&(re.j41(0,"span",11),re.EFF(1),re.k0s()),2&te){const te=re.XpG().$implicit;let ne;re.R7$(),re.JRh(null!==(ne=te.value.antigo)&&void 0!==ne?ne:"vazio")}}function LogChangeComponent_ng_container_3_span_1_span_6_Template(te,ne){if(1&te&&(re.j41(0,"span",12),re.EFF(1),re.nI1(2,"date"),re.k0s()),2&te){const te=re.XpG().$implicit;re.R7$(),re.JRh(re.i5U(2,1,te.value.novo,"dd/MM/yyyy"))}}function LogChangeComponent_ng_container_3_span_1_ng_template_7_Template(te,ne){if(1&te&&(re.j41(0,"span",12),re.EFF(1),re.k0s()),2&te){const te=re.XpG().$implicit;let ne;re.R7$(),re.JRh(null!==(ne=te.value.novo)&&void 0!==ne?ne:"vazio")}}function LogChangeComponent_ng_container_3_span_1_Template(te,ne){if(1&te&&(re.j41(0,"span",5),re.EFF(1),re.DNE(2,LogChangeComponent_ng_container_3_span_1_span_2_Template,3,4,"span",6)(3,LogChangeComponent_ng_container_3_span_1_ng_template_3_Template,2,1,"ng-template",null,7,re.C5r),re.nrm(5,"i",8),re.DNE(6,LogChangeComponent_ng_container_3_span_1_span_6_Template,3,4,"span",9)(7,LogChangeComponent_ng_container_3_span_1_ng_template_7_Template,2,1,"ng-template",null,10,re.C5r),re.k0s()),2&te){const te=ne.$implicit,ie=re.sdS(4),le=re.sdS(8),ce=re.XpG(2);re.R7$(),re.SpI(" ",te.key,": "),re.R7$(),re.Y8G("ngIf",ce.isDate(te.value.antigo))("ngIfElse",ie),re.R7$(4),re.Y8G("ngIf",ce.isDate(te.value.novo))("ngIfElse",le)}}function LogChangeComponent_ng_container_3_Template(te,ne){if(1&te&&(re.qex(0),re.DNE(1,LogChangeComponent_ng_container_3_span_1_Template,9,5,"span",4),re.nI1(2,"keyvalue"),re.bVm()),2&te){const te=re.XpG();re.R7$(),re.Y8G("ngForOf",re.bMT(2,1,te.conteudo))}}const _c0=(te,ne)=>({"text-red-600":te,"text-green-600":ne});function LogChangeComponent_ng_template_4_span_0_span_2_Template(te,ne){if(1&te&&(re.j41(0,"span",15),re.EFF(1),re.nI1(2,"date"),re.k0s()),2&te){const te=re.XpG().$implicit,ne=re.XpG(2);re.Y8G("ngClass",re.l_i(5,_c0,ne.operDb===ne.OperacaoDb.APAGAR,ne.operDb===ne.OperacaoDb.INSERIR)),re.R7$(),re.SpI(" ",re.i5U(2,2,te.value,"dd/MM/yyyy")," ")}}function LogChangeComponent_ng_template_4_span_0_ng_template_3_Template(te,ne){if(1&te&&(re.j41(0,"span",15),re.EFF(1),re.k0s()),2&te){const te=re.XpG().$implicit,ne=re.XpG(2);let ie;re.Y8G("ngClass",re.l_i(2,_c0,ne.operDb===ne.OperacaoDb.APAGAR,ne.operDb===ne.OperacaoDb.INSERIR)),re.R7$(),re.JRh(null!==(ie=te.value)&&void 0!==ie?ie:"vazio")}}function LogChangeComponent_ng_template_4_span_0_Template(te,ne){if(1&te&&(re.j41(0,"span",5),re.EFF(1),re.DNE(2,LogChangeComponent_ng_template_4_span_0_span_2_Template,3,8,"span",13)(3,LogChangeComponent_ng_template_4_span_0_ng_template_3_Template,2,5,"ng-template",null,14,re.C5r),re.k0s()),2&te){const te=ne.$implicit,ie=re.sdS(4),le=re.XpG(2);re.R7$(),re.SpI(" ",te.key,": "),re.R7$(),re.Y8G("ngIf",le.isDate(te.value))("ngIfElse",ie)}}function LogChangeComponent_ng_template_4_Template(te,ne){if(1&te&&(re.DNE(0,LogChangeComponent_ng_template_4_span_0_Template,5,3,"span",4),re.nI1(1,"keyvalue")),2&te){const te=re.XpG();re.Y8G("ngForOf",re.bMT(1,1,te.conteudo))}}let ye=(()=>{class LogChangeComponent{constructor(){this.OperacaoDb=ge,this.logDbService=(0,re.WQX)(Ce)}get header(){switch(this.operDb){case ge.INSERIR:return"Registro Novo";case ge.APAGAR:return"Removido";case ge.ALTERAR:return"Alteração"}}isDate(te){return(0,me.QN)(te)}transformConteudoUpdate(te){const ne=JSON.parse(te),ie={};for(const te in ne){const re=ne[te];if(Object.keys(re).length>0){const ne=re.split(", ");if(ne){const re=ne[0].replace("Antes: ",""),le=ne[1].replace("Depois: ","");ie[te]={antigo:re,novo:le}}}}return ie}ngOnInit(){this.logDbService.idRowDetails$.pipe((0,ue.n)((te=>this.logDbService.getRecord(te)))).subscribe((te=>{te&&(te.codOperDb===ge.ALTERAR?this.conteudo=this.transformConteudoUpdate(te.conteudo):this.conteudo=JSON.parse(te.conteudo),this.operDb=te.codOperDb)}))}static#e=this.ɵfac=function LogChangeComponent_Factory(te){return new(te||LogChangeComponent)};static#t=this.ɵcmp=re.VBU({type:LogChangeComponent,selectors:[["br-log-change"]],standalone:!0,features:[re.aNF],decls:6,vars:4,consts:[["toggler","header",1,"w-full",3,"toggleable","header"],[1,"flex","flex-column","flex-wrap","overflow-hidden","px-2"],[4,"ngIf","ngIfElse"],["elseBlock",""],["class","font-bold flex gap-2 align-items-center",4,"ngFor","ngForOf"],[1,"font-bold","flex","gap-2","align-items-center"],["class","text-red-600",4,"ngIf","ngIfElse"],["valorAntigoSemData",""],[1,"pi","pi-arrow-right","text-sm"],["class","text-green-600",4,"ngIf","ngIfElse"],["valorNovoSemData",""],[1,"text-red-600"],[1,"text-green-600"],[3,"ngClass",4,"ngIf","ngIfElse"],["deleteCreateSemData",""],[3,"ngClass"]],template:function LogChangeComponent_Template(te,ne){if(1&te&&(re.j41(0,"div")(1,"p-panel",0)(2,"div",1),re.DNE(3,LogChangeComponent_ng_container_3_Template,3,3,"ng-container",2)(4,LogChangeComponent_ng_template_4_Template,2,3,"ng-template",null,3,re.C5r),re.k0s()()()),2&te){const te=re.sdS(5);re.R7$(),re.Y8G("toggleable",!0)("header",ne.header),re.R7$(2),re.Y8G("ngIf",ne.operDb===ne.OperacaoDb.ALTERAR)("ngIfElse",te)}},dependencies:[ce.vh,de.b,de.Z,ce.bT,ce.YU,ce.pM,ce.lG]})}return LogChangeComponent})();function LogDbComponent_ng_template_1_Template(te,ne){1&te&&re.nrm(0,"br-log-change")}let we=(()=>{class LogDbComponent{constructor(){this.logDbService=(0,re.WQX)(Ce)}header(){return"Histórico de Banco de Dados"}icon(){return"pi pi-user-edit"}static#e=this.ɵfac=function LogDbComponent_Factory(te){return new(te||LogDbComponent)};static#t=this.ɵcmp=re.VBU({type:LogDbComponent,selectors:[["br-list-log-db"]],standalone:!0,features:[re.Jv_([Ce]),re.aNF],decls:3,vars:1,consts:[[3,"brListService"],["visualizar",""]],template:function LogDbComponent_Template(te,ne){1&te&&(re.j41(0,"br-list",0),re.DNE(1,LogDbComponent_ng_template_1_Template,1,0,"ng-template",null,1,re.C5r),re.k0s()),2&te&&re.Y8G("brListService",ne.logDbService)},dependencies:[le.K,ye]})}return LogDbComponent})()},4968:(te,ne,ie)=>{"use strict";ie.d(ne,{w:()=>ge});var re=ie(3107),le=ie(3511),ce=ie(564),de=ie(8482),ue=ie(2432),me=ie(6013);function HistoricoDemandaComponent_ng_template_2_Template(te,ne){if(1&te&&re.nrm(0,"demanda-linha-do-tempo",3),2&te){const te=re.XpG();re.Y8G("nbrDemandaService",te.isJuridico?te.nbrDemandaJuridicoService:te.nbrDemandaPsicologicoService)}}let ge=(()=>{class HistoricoDemandaComponent{constructor(){this.nbrDemandaJuridicoService=(0,re.WQX)(de.v),this.nbrDemandaPsicologicoService=(0,re.WQX)(ue.T),this.dynamicDialogConfig=(0,re.WQX)(le.sb),this.isJuridico=!1,this.dynamicDialogConfig.data.lbrUsuario?this.lbrUsuario=this.dynamicDialogConfig.data.lbrUsuario:this.dynamicDialogConfig.data.idUsuario&&(this.idUsuario=this.dynamicDialogConfig.data.idUsuario),this.nbrDemandaJuridicoService.fixedFilters={...this.nbrDemandaJuridicoService.fixedFilters,codLbrUsuario:[this.lbrUsuario?this.lbrUsuario.codLbrUsuario:this.idUsuario]},this.nbrDemandaPsicologicoService.fixedFilters={...this.nbrDemandaJuridicoService.fixedFilters,codLbrUsuario:[this.lbrUsuario?this.lbrUsuario.codLbrUsuario:this.idUsuario],codNbrTipoAtendimento:[2]},this.nbrDemandaJuridicoService.state.isReadOnly=!0,this.nbrDemandaPsicologicoService.state.isReadOnly=!0}ngOnInit(){this.isJuridico=this.dynamicDialogConfig.data.isJuridico}static#e=this.ɵfac=function HistoricoDemandaComponent_Factory(te){return new(te||HistoricoDemandaComponent)};static#t=this.ɵcmp=re.VBU({type:HistoricoDemandaComponent,selectors:[["ng-component"]],standalone:!0,features:[re.Jv_([de.v,ue.T]),re.aNF],decls:4,vars:2,consts:[[2,"height","50vh","width","80vw"],[3,"brListService","integrado"],["alterar",""],[3,"nbrDemandaService"]],template:function HistoricoDemandaComponent_Template(te,ne){1&te&&(re.j41(0,"div",0)(1,"br-list",1),re.DNE(2,HistoricoDemandaComponent_ng_template_2_Template,1,1,"ng-template",null,2,re.C5r),re.k0s()()),2&te&&(re.R7$(),re.Y8G("brListService",ne.isJuridico?ne.nbrDemandaJuridicoService:ne.nbrDemandaPsicologicoService)("integrado",!0))},dependencies:[ce.K,me.w],styles:["@media (max-width: 886px){[_nghost-%COMP%]     br-list-toolbar{display:none}[_nghost-%COMP%]     .container-table{margin-left:0}}@media (max-width: 452px){[_nghost-%COMP%]     .container-toolbar{display:none!important}}"]})}return HistoricoDemandaComponent})()},6013:(te,ne,ie)=>{"use strict";ie.d(ne,{w:()=>Rn});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(6388),ue=ie(3828),me=ie(7280),ge=ie(9568),fe=ie(1782),_e=ie(1196),be=ie(1939);let Ce=(()=>{class BanIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function BanIcon_Factory(ne){return(te||(te=le.xGo(BanIcon)))(ne||BanIcon)}})();static ɵcmp=le.VBU({type:BanIcon,selectors:[["BanIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7 0C5.61553 0 4.26215 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.00303296 5.6003 -0.13559 7.00776 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C14 5.14348 13.2625 3.36301 11.9497 2.05025C10.637 0.737498 8.85652 0 7 0ZM1.16667 7C1.16549 5.65478 1.63303 4.35118 2.48889 3.31333L10.6867 11.5111C9.83309 12.2112 8.79816 12.6544 7.70243 12.789C6.60669 12.9236 5.49527 12.744 4.49764 12.2713C3.50001 11.7986 2.65724 11.0521 2.06751 10.1188C1.47778 9.18558 1.16537 8.10397 1.16667 7ZM11.5111 10.6867L3.31334 2.48889C4.43144 1.57388 5.84966 1.10701 7.29265 1.1789C8.73565 1.2508 10.1004 1.85633 11.1221 2.87795C12.1437 3.89956 12.7492 5.26435 12.8211 6.70735C12.893 8.15034 12.4261 9.56856 11.5111 10.6867Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function BanIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1),le.k0s(),le.j41(3,"defs")(4,"clipPath",2),le.nrm(5,"rect",3),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(3),le.Y8G("id",ne.pathId))},encapsulation:2})}return BanIcon})(),ye=(()=>{class StarIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function StarIcon_Factory(ne){return(te||(te=le.xGo(StarIcon)))(ne||StarIcon)}})();static ɵcmp=le.VBU({type:StarIcon,selectors:[["StarIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.9741 13.6721C10.8806 13.6719 10.7886 13.6483 10.7066 13.6033L7.00002 11.6545L3.29345 13.6033C3.19926 13.6539 3.09281 13.6771 2.98612 13.6703C2.87943 13.6636 2.77676 13.6271 2.6897 13.5651C2.60277 13.5014 2.53529 13.4147 2.4948 13.3148C2.45431 13.215 2.44241 13.1058 2.46042 12.9995L3.17881 8.87264L0.167699 5.95324C0.0922333 5.8777 0.039368 5.78258 0.0150625 5.67861C-0.00924303 5.57463 -0.00402231 5.46594 0.030136 5.36477C0.0621323 5.26323 0.122141 5.17278 0.203259 5.10383C0.284377 5.03488 0.383311 4.99023 0.488681 4.97501L4.63087 4.37126L6.48797 0.618832C6.54083 0.530159 6.61581 0.456732 6.70556 0.405741C6.79532 0.35475 6.89678 0.327942 7.00002 0.327942C7.10325 0.327942 7.20471 0.35475 7.29447 0.405741C7.38422 0.456732 7.4592 0.530159 7.51206 0.618832L9.36916 4.37126L13.5114 4.97501C13.6167 4.99023 13.7157 5.03488 13.7968 5.10383C13.8779 5.17278 13.9379 5.26323 13.9699 5.36477C14.0041 5.46594 14.0093 5.57463 13.985 5.67861C13.9607 5.78258 13.9078 5.8777 13.8323 5.95324L10.8212 8.87264L11.532 12.9995C11.55 13.1058 11.5381 13.215 11.4976 13.3148C11.4571 13.4147 11.3896 13.5014 11.3027 13.5651C11.2059 13.632 11.0917 13.6692 10.9741 13.6721ZM7.00002 10.4393C7.09251 10.4404 7.18371 10.4613 7.2675 10.5005L10.2098 12.029L9.65193 8.75036C9.6368 8.6584 9.64343 8.56418 9.6713 8.47526C9.69918 8.38633 9.74751 8.30518 9.81242 8.23832L12.1969 5.94559L8.90298 5.45648C8.81188 5.44198 8.72555 5.406 8.65113 5.35152C8.57671 5.29703 8.51633 5.2256 8.475 5.14314L7.00002 2.1626L5.52503 5.15078C5.4837 5.23324 5.42332 5.30467 5.3489 5.35916C5.27448 5.41365 5.18815 5.44963 5.09705 5.46412L1.80318 5.94559L4.18761 8.23832C4.25252 8.30518 4.30085 8.38633 4.32873 8.47526C4.3566 8.56418 4.36323 8.6584 4.3481 8.75036L3.7902 12.0519L6.73253 10.5234C6.81451 10.4762 6.9058 10.4475 7.00002 10.4393Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function StarIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1),le.k0s(),le.j41(3,"defs")(4,"clipPath",2),le.nrm(5,"rect",3),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(3),le.Y8G("id",ne.pathId))},encapsulation:2})}return StarIcon})(),we=(()=>{class StarFillIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function StarFillIcon_Factory(ne){return(te||(te=le.xGo(StarFillIcon)))(ne||StarFillIcon)}})();static ɵcmp=le.VBU({type:StarFillIcon,selectors:[["StarFillIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.9718 5.36453C13.9398 5.26298 13.8798 5.17252 13.7986 5.10356C13.7175 5.0346 13.6186 4.98994 13.5132 4.97472L9.37043 4.37088L7.51307 0.617955C7.46021 0.529271 7.38522 0.455834 7.29545 0.404836C7.20568 0.353838 7.1042 0.327026 7.00096 0.327026C6.89771 0.327026 6.79624 0.353838 6.70647 0.404836C6.6167 0.455834 6.54171 0.529271 6.48885 0.617955L4.63149 4.37088L0.488746 4.97472C0.383363 4.98994 0.284416 5.0346 0.203286 5.10356C0.122157 5.17252 0.0621407 5.26298 0.03014 5.36453C-0.00402286 5.46571 -0.00924428 5.57442 0.0150645 5.67841C0.0393733 5.7824 0.0922457 5.87753 0.167722 5.95308L3.17924 8.87287L2.4684 13.0003C2.45038 13.1066 2.46229 13.2158 2.50278 13.3157C2.54328 13.4156 2.61077 13.5022 2.6977 13.5659C2.78477 13.628 2.88746 13.6644 2.99416 13.6712C3.10087 13.678 3.20733 13.6547 3.30153 13.6042L7.00096 11.6551L10.708 13.6042C10.79 13.6491 10.882 13.6728 10.9755 13.673C11.0958 13.6716 11.2129 13.6343 11.3119 13.5659C11.3988 13.5022 11.4663 13.4156 11.5068 13.3157C11.5473 13.2158 11.5592 13.1066 11.5412 13.0003L10.8227 8.87287L13.8266 5.95308C13.9033 5.87835 13.9577 5.7836 13.9833 5.67957C14.009 5.57554 14.005 5.4664 13.9718 5.36453Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function StarFillIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1),le.k0s(),le.j41(3,"defs")(4,"clipPath",2),le.nrm(5,"rect",3),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(3),le.Y8G("id",ne.pathId))},encapsulation:2})}return StarFillIcon})();var ke=ie(5724),Se=ie(2583);function Rating_ng_container_1_div_1_span_3_Template(te,ne){if(1&te&&le.nrm(0,"span",10),2&te){const te=le.XpG(3);le.Y8G("ngClass",te.iconCancelClass)("ngStyle",te.iconCancelStyle)}}function Rating_ng_container_1_div_1_BanIcon_4_Template(te,ne){if(1&te&&le.nrm(0,"BanIcon",11),2&te){const te=le.XpG(3);le.Y8G("styleClass","p-rating-icon p-rating-cancel")("ngStyle",te.iconCancelStyle),le.BMQ("data-pc-section","cancelIcon")}}const _c0=te=>({"p-focus":te});function Rating_ng_container_1_div_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",5),le.bIt("click",(function Rating_ng_container_1_div_1_Template_div_click_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.onOptionClick(ne,0))})),le.j41(1,"span",6)(2,"input",7),le.bIt("focus",(function Rating_ng_container_1_div_1_Template_input_focus_2_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.onInputFocus(ne,0))}))("blur",(function Rating_ng_container_1_div_1_Template_input_blur_2_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.onInputBlur(ne))}))("change",(function Rating_ng_container_1_div_1_Template_input_change_2_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.onChange(ne,0))})),le.k0s()(),le.DNE(3,Rating_ng_container_1_div_1_span_3_Template,1,2,"span",8)(4,Rating_ng_container_1_div_1_BanIcon_4_Template,1,3,"BanIcon",9),le.k0s()}if(2&te){const te=le.XpG(2);le.Y8G("ngClass",le.eq3(11,_c0,0===te.focusedOptionIndex()&&te.isFocusVisibleItem)),le.BMQ("data-pc-section","cancelItem"),le.R7$(),le.BMQ("data-p-hidden-accessible",!0),le.R7$(),le.Y8G("name",te.name)("checked",0===te.value)("disabled",te.disabled)("readonly",te.readonly)("autofocus",te.autofocus),le.BMQ("aria-label",te.cancelAriaLabel()),le.R7$(),le.Y8G("ngIf",te.iconCancelClass),le.R7$(),le.Y8G("ngIf",!te.iconCancelClass)}}function Rating_ng_container_1_ng_template_2_ng_container_3_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",16),2&te){const te=le.XpG(4);le.Y8G("ngStyle",te.iconOffStyle)("ngClass",te.iconOffClass),le.BMQ("data-pc-section","offIcon")}}function Rating_ng_container_1_ng_template_2_ng_container_3_StarIcon_2_Template(te,ne){if(1&te&&le.nrm(0,"StarIcon",17),2&te){const te=le.XpG(4);le.Y8G("ngStyle",te.iconOffStyle)("styleClass","p-rating-icon"),le.BMQ("data-pc-section","offIcon")}}function Rating_ng_container_1_ng_template_2_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Rating_ng_container_1_ng_template_2_ng_container_3_span_1_Template,1,3,"span",14)(2,Rating_ng_container_1_ng_template_2_ng_container_3_StarIcon_2_Template,1,3,"StarIcon",15),le.bVm()),2&te){const te=le.XpG(3);le.R7$(),le.Y8G("ngIf",te.iconOffClass),le.R7$(),le.Y8G("ngIf",!te.iconOffClass)}}function Rating_ng_container_1_ng_template_2_ng_container_4_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",19),2&te){const te=le.XpG(4);le.Y8G("ngStyle",te.iconOnStyle)("ngClass",te.iconOnClass),le.BMQ("data-pc-section","onIcon")}}function Rating_ng_container_1_ng_template_2_ng_container_4_StarFillIcon_2_Template(te,ne){if(1&te&&le.nrm(0,"StarFillIcon",17),2&te){const te=le.XpG(4);le.Y8G("ngStyle",te.iconOnStyle)("styleClass","p-rating-icon p-rating-icon-active"),le.BMQ("data-pc-section","onIcon")}}function Rating_ng_container_1_ng_template_2_ng_container_4_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Rating_ng_container_1_ng_template_2_ng_container_4_span_1_Template,1,3,"span",18)(2,Rating_ng_container_1_ng_template_2_ng_container_4_StarFillIcon_2_Template,1,3,"StarFillIcon",15),le.bVm()),2&te){const te=le.XpG(3);le.R7$(),le.Y8G("ngIf",te.iconOnClass),le.R7$(),le.Y8G("ngIf",!te.iconOnClass)}}const _c1=(te,ne)=>({"p-rating-item-active":te,"p-focus":ne});function Rating_ng_container_1_ng_template_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",12),le.bIt("click",(function Rating_ng_container_1_ng_template_2_Template_div_click_0_listener(ne){const ie=le.eBV(te).$implicit,re=le.XpG(2);return le.Njj(re.onOptionClick(ne,ie+1))})),le.j41(1,"span",6)(2,"input",7),le.bIt("focus",(function Rating_ng_container_1_ng_template_2_Template_input_focus_2_listener(ne){const ie=le.eBV(te).$implicit,re=le.XpG(2);return le.Njj(re.onInputFocus(ne,ie+1))}))("blur",(function Rating_ng_container_1_ng_template_2_Template_input_blur_2_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.onInputBlur(ne))}))("change",(function Rating_ng_container_1_ng_template_2_Template_input_change_2_listener(ne){const ie=le.eBV(te).$implicit,re=le.XpG(2);return le.Njj(re.onChange(ne,ie+1))})),le.k0s()(),le.DNE(3,Rating_ng_container_1_ng_template_2_ng_container_3_Template,3,2,"ng-container",13)(4,Rating_ng_container_1_ng_template_2_ng_container_4_Template,3,2,"ng-container",13),le.k0s()}if(2&te){const te=ne.$implicit,ie=ne.index,re=le.XpG(2);le.Y8G("ngClass",le.l_i(10,_c1,te+1<=re.value,te+1===re.focusedOptionIndex()&&re.isFocusVisibleItem)),le.R7$(),le.BMQ("data-p-hidden-accessible",!0),le.R7$(),le.Y8G("name",re.name)("checked",0===re.value)("disabled",re.disabled)("readonly",re.readonly)("autofocus",re.autofocus),le.BMQ("aria-label",re.starAriaLabel(te+1)),le.R7$(),le.Y8G("ngIf",!re.value||ie>=re.value),le.R7$(),le.Y8G("ngIf",re.value&&ie<re.value)}}function Rating_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Rating_ng_container_1_div_1_Template,5,13,"div",3)(2,Rating_ng_container_1_ng_template_2_Template,5,13,"ng-template",4),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.cancel),le.R7$(),le.Y8G("ngForOf",te.starsArray)}}function Rating_ng_template_2_span_0_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function Rating_ng_template_2_span_0_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"span",22),le.bIt("click",(function Rating_ng_template_2_span_0_Template_span_click_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.onOptionClick(ne,0))})),le.DNE(1,Rating_ng_template_2_span_0_ng_container_1_Template,1,0,"ng-container",23),le.k0s()}if(2&te){const te=le.XpG(2);le.Y8G("ngStyle",te.iconCancelStyle),le.BMQ("data-pc-section","cancelIcon"),le.R7$(),le.Y8G("ngTemplateOutlet",te.cancelIconTemplate)}}function Rating_ng_template_2_span_1_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function Rating_ng_template_2_span_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"span",24),le.bIt("click",(function Rating_ng_template_2_span_1_Template_span_click_0_listener(ne){const ie=le.eBV(te).$implicit,re=le.XpG(2);return le.Njj(re.onOptionClick(ne,ie+1))})),le.DNE(1,Rating_ng_template_2_span_1_ng_container_1_Template,1,0,"ng-container",23),le.k0s()}if(2&te){const te=ne.index,ie=le.XpG(2);le.BMQ("data-pc-section","onIcon"),le.R7$(),le.Y8G("ngTemplateOutlet",ie.getIconTemplate(te))}}function Rating_ng_template_2_Template(te,ne){if(1&te&&le.DNE(0,Rating_ng_template_2_span_0_Template,2,3,"span",20)(1,Rating_ng_template_2_span_1_Template,2,2,"span",21),2&te){const te=le.XpG();le.Y8G("ngIf",te.cancel),le.R7$(),le.Y8G("ngForOf",te.starsArray)}}const _c2=(te,ne)=>({"p-readonly":te,"p-disabled":ne}),xe={provide:ce.kq,useExisting:(0,le.Rfq)((()=>Ee)),multi:!0};let Ee=(()=>{class Rating{cd;config;disabled;readonly;stars=5;cancel=!0;iconOnClass;iconOnStyle;iconOffClass;iconOffStyle;iconCancelClass;iconCancelStyle;autofocus;onRate=new le.bkB;onCancel=new le.bkB;onFocus=new le.bkB;onBlur=new le.bkB;templates;onIconTemplate;offIconTemplate;cancelIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};starsArray;isFocusVisibleItem=!0;focusedOptionIndex=(0,le.vPA)(-1);name;constructor(te,ne){this.cd=te,this.config=ne}ngOnInit(){this.name=this.name||(0,be._Y)(),this.starsArray=[];for(let te=0;te<this.stars;te++)this.starsArray[te]=te}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"onicon":this.onIconTemplate=te.template;break;case"officon":this.offIconTemplate=te.template;break;case"cancelicon":this.cancelIconTemplate=te.template}}))}onOptionClick(te,ne){if(!this.readonly&&!this.disabled){this.onOptionSelect(te,ne),this.isFocusVisibleItem=!1;const ie=ke.D.getFirstFocusableElement(te.currentTarget,"");ie&&ke.D.focus(ie)}}onOptionSelect(te,ne){this.focusedOptionIndex.set(ne),this.updateModel(te,ne||null)}onChange(te,ne){this.onOptionSelect(te,ne),this.isFocusVisibleItem=!0}onInputBlur(te){this.focusedOptionIndex.set(-1),this.onBlur.emit(te)}onInputFocus(te,ne){this.focusedOptionIndex.set(ne),this.onFocus.emit(te)}updateModel(te,ne){this.value=ne,this.onModelChange(this.value),this.onModelTouched(),ne?this.onRate.emit({originalEvent:te,value:ne}):this.onCancel.emit()}cancelAriaLabel(){return this.config.translation.clear}starAriaLabel(te){return 1===te?this.config.translation.aria.star:this.config.translation.aria.stars.replace(/{star}/g,te)}getIconTemplate(te){return!this.value||te>=this.value?this.offIconTemplate:this.onIconTemplate}writeValue(te){this.value=te,this.cd.detectChanges()}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}get isCustomIcon(){return this.templates&&this.templates.length>0}static ɵfac=function Rating_Factory(te){return new(te||Rating)(le.rXU(le.gRc),le.rXU(ue.r1))};static ɵcmp=le.VBU({type:Rating,selectors:[["p-rating"]],contentQueries:function Rating_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,ue.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],readonly:[le.Mj6.HasDecoratorInputTransform,"readonly","readonly",le.L39],stars:[le.Mj6.HasDecoratorInputTransform,"stars","stars",le.Udg],cancel:[le.Mj6.HasDecoratorInputTransform,"cancel","cancel",le.L39],iconOnClass:"iconOnClass",iconOnStyle:"iconOnStyle",iconOffClass:"iconOffClass",iconOffStyle:"iconOffStyle",iconCancelClass:"iconCancelClass",iconCancelStyle:"iconCancelStyle",autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39]},outputs:{onRate:"onRate",onCancel:"onCancel",onFocus:"onFocus",onBlur:"onBlur"},features:[le.Jv_([xe]),le.GFd],decls:4,vars:8,consts:[[1,"p-rating",3,"ngClass"],[4,"ngIf","ngIfElse"],["customTemplate",""],["class","p-rating-item p-rating-cancel-item",3,"ngClass","click",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-rating-item","p-rating-cancel-item",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","radio","value","0","pAutoFocus","",3,"name","checked","disabled","readonly","autofocus","focus","blur","change"],["class","p-rating-icon p-rating-cancel",3,"ngClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle",4,"ngIf"],[1,"p-rating-icon","p-rating-cancel",3,"ngClass","ngStyle"],[3,"styleClass","ngStyle"],[1,"p-rating-item",3,"ngClass","click"],[4,"ngIf"],["class","p-rating-icon",3,"ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","styleClass",4,"ngIf"],[1,"p-rating-icon",3,"ngStyle","ngClass"],[3,"ngStyle","styleClass"],["class","p-rating-icon p-rating-icon-active",3,"ngStyle","ngClass",4,"ngIf"],[1,"p-rating-icon","p-rating-icon-active",3,"ngStyle","ngClass"],["class","p-rating-icon p-rating-cancel",3,"ngStyle","click",4,"ngIf"],["class","p-rating-icon",3,"click",4,"ngFor","ngForOf"],[1,"p-rating-icon","p-rating-cancel",3,"ngStyle","click"],[4,"ngTemplateOutlet"],[1,"p-rating-icon",3,"click"]],template:function Rating_Template(te,ne){if(1&te&&(le.j41(0,"div",0),le.DNE(1,Rating_ng_container_1_Template,3,2,"ng-container",1)(2,Rating_ng_template_2_Template,2,2,"ng-template",null,2,le.C5r),le.k0s()),2&te){const te=le.sdS(3);le.Y8G("ngClass",le.l_i(5,_c2,ne.readonly,ne.disabled)),le.BMQ("data-pc-name","rating")("data-pc-section","root"),le.R7$(),le.Y8G("ngIf",!ne.isCustomIcon)("ngIfElse",te)}},dependencies:()=>[re.YU,re.Sq,re.bT,re.T3,re.B3,Se.q,we,ye,Ce],styles:["@layer primeng{.p-rating{display:inline-flex;position:relative;align-items:center}.p-rating-icon{cursor:pointer}.p-rating.p-rating-readonly .p-rating-icon{cursor:default}}\n"],encapsulation:2,changeDetection:0})}return Rating})(),Me=(()=>{class RatingModule{static ɵfac=function RatingModule_Factory(te){return new(te||RatingModule)};static ɵmod=le.$C({type:RatingModule});static ɵinj=le.G2t({imports:[re.MD,Se.u,we,ye,Ce,ue.Gg]})}return RatingModule})();var Ne=ie(2541),Re=ie(7760),Le=ie(2653),Oe=ie(4447),Pe=ie(1804),Fe=ie(2764),je=ie(1683),Ve=ie(2623),Ge=ie(6830),ze=ie(888),He=ie(8),$e=ie(4320),qe=ie(5511),Ye=ie(7914),Xe=ie(5708),Ke=ie(2817),Qe=ie(1492),Je=ie(4358),dt=ie(8841),pt=ie(5670),Ct=ie(7178),vt=ie(6564),It=ie(7947),Dt=ie(6630),Mt=ie(4574),Nt=ie(3972),Rt=ie(6563),Ot=ie(4667),Vt=ie(8524);let Gt=(()=>{class AcoesComponentsBase{constructor(){this.keyDialog=(0,$e.A)(),this.formBuilder=(0,le.WQX)(ce.ok),this.statusDemandaService=(0,le.WQX)(Ye.U),this.demandaService=(0,le.WQX)(Vt.m),this.arquivosService=(0,le.WQX)(Mt.I),this.confirmationService=(0,le.WQX)(ue.td),this.brMessageService=(0,le.WQX)(Nt.h),this.validadorFormularioService=(0,le.WQX)(Ot.E),this.loadingService=(0,le.WQX)(Rt.T),this.salvaAcao=new le.bkB}ngOnInit(){this.nbrDemandaService.onSalvar=()=>{this.confirma()}}confirma(){this.loadingService.show();const te=this.validadorFormularioService.validaFormulario(this.form);if(!te.valido)return this.confirmationService.confirm({message:te.mensagemErro,header:"Aviso",icon:ue.EE.EXCLAMATION_TRIANGLE,dismissableMask:!0,rejectVisible:!1,acceptVisible:!1,key:this.keyDialog}),void this.loadingService.hide();const ne=this.brFileUploadComponentList.map((te=>te.uploadFiles()));(0,Le.p)(ne).pipe((0,pt.U)(null),(0,Ct.W)((te=>(console.error(te),this.brMessageService.error(),vt.w)))).subscribe({next:()=>{this._acaoDemanda(this.form.value)}})}_acaoDemanda(te){this.acaoDemanda(te).pipe((0,Ct.W)((te=>(this.apresentaMensagemErroServidor(te),vt.w))),(0,It.T)((()=>({foiAdicionadoNovoAndamento:!0}))),(0,Oe.j)((()=>this.loadingService.hide()))).subscribe((()=>this.salvaAcao.emit()))}apresentaMensagemErroServidor(te,ne){const ie=this.confirmationService.confirm({message:te.error.message??"Falha no servidor",header:"Aviso",icon:ue.EE.EXCLAMATION_TRIANGLE,acceptLabel:"Ok",key:this.keyDialog,accept:()=>{ie.close(),ne&&ne()},rejectVisible:!1})}static#e=this.ɵfac=function AcoesComponentsBase_Factory(te){return new(te||AcoesComponentsBase)};static#t=this.ɵdir=le.FsC({type:AcoesComponentsBase,viewQuery:function AcoesComponentsBase_Query(te,ne){if(1&te&&le.GBs(Dt.r,5),2&te){let te;le.mGM(te=le.lsd())&&(ne.brFileUploadComponentList=te)}},inputs:{nbrDemanda:"nbrDemanda",nbrDemandaService:"nbrDemandaService"},outputs:{salvaAcao:"salvaAcao"}})}return AcoesComponentsBase})();const agendar_demanda_component_c0=()=>({width:"50vw"});let zt=(()=>{class AgendarDemandaComponent extends Gt{ngOnInit(){super.ngOnInit(),this.queryStatusDeamanda=new URLSearchParams({agendamento:"V",codNbrTipoAtendimento:String(this.nbrDemanda.codNbrTipoAtendimento)}),this.form=this.formBuilder.group({descrAndamento:["Agendamento realizado.",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required],nomeSolicitante:[{value:this.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.nomeUsuario,disabled:!0}],dataHora:[null,ce.k0.required]})}acaoDemanda(te){return this.demandaService.agendaDemanda(this.nbrDemanda.codNbrDemanda,te)}static#e=this.ɵfac=(()=>{let te;return function AgendarDemandaComponent_Factory(ne){return(te||(te=le.xGo(AgendarDemandaComponent)))(ne||AgendarDemandaComponent)}})();static#t=this.ɵcmp=le.VBU({type:AgendarDemandaComponent,selectors:[["agendar-demanda"]],standalone:!0,features:[le.Vt3,le.aNF],decls:9,vars:7,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","nomeSolicitante","formControlName","nomeSolicitante","brInputText",""],["for","nomeSolicitante"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda",3,"query"],["label","Data/hora do agendamento","formControlName","dataHora",3,"mostraHora"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],[3,"key"]],template:function AgendarDemandaComponent_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.nrm(5,"br-foreign-key",3)(6,"br-date",4)(7,"br-editor",5),le.k0s(),le.nrm(8,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(5),le.Y8G("query",ne.queryStatusDeamanda),le.R7$(),le.Y8G("mostraHora",!0),le.R7$(2),le.Aen(le.lJ4(6,agendar_demanda_component_c0)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Je.L,Ke.a,dt.B],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}[_nghost-%COMP%]     .p-inputtext, [_nghost-%COMP%]     .p-dropdown{width:100%}"]})}return AgendarDemandaComponent})();var Ht=ie(6962);const cancelar_demanda_component_c0=()=>({width:"50vw"});let Ut=(()=>{class CancelarDemandaComponent extends Gt{ngOnInit(){super.ngOnInit(),this.queryStatusDeamanda=new URLSearchParams({cancelamento:"V",codNbrTipoAtendimento:String(this.nbrDemanda.codNbrTipoAtendimento)}),this.form=this.formBuilder.group({descrAndamento:["",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required]})}acaoDemanda(te){return this.demandaService.cancelaDemanda(this.nbrDemanda.codNbrDemanda,te)}static#e=this.ɵfac=(()=>{let te;return function CancelarDemandaComponent_Factory(ne){return(te||(te=le.xGo(CancelarDemandaComponent)))(ne||CancelarDemandaComponent)}})();static#t=this.ɵcmp=le.VBU({type:CancelarDemandaComponent,selectors:[["cancelar-demanda"]],standalone:!0,features:[le.Vt3,le.aNF],decls:8,vars:7,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda",3,"query"],["id","descrAndamento","pInputTextarea","","rows","1","formControlName","descrAndamento",3,"autoResize"],["for","descrAndamento"],[3,"key"]],template:function CancelarDemandaComponent_Template(te,ne){1&te&&(le.j41(0,"div",0),le.nrm(1,"br-foreign-key",1),le.j41(2,"p-floatLabel")(3,"textarea",2),le.EFF(4,"  "),le.k0s(),le.j41(5,"label",3),le.EFF(6,"Descrição"),le.k0s()()(),le.nrm(7,"p-confirmDialog",4)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(),le.Y8G("query",ne.queryStatusDeamanda),le.R7$(2),le.Y8G("autoResize",!0),le.R7$(4),le.Aen(le.lJ4(6,cancelar_demanda_component_c0)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,Xe.f,Xe.V,Je.L,Ht.f,Ht.Z],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}[_nghost-%COMP%]     .p-inputtext, [_nghost-%COMP%]     .p-dropdown{width:100%}"]})}return CancelarDemandaComponent})();const comunicacao_interna_component_c0=()=>["application/pdf","image/*"];function ComunicacaoInternaComponent_div_0_Template(te,ne){if(1&te&&(le.j41(0,"div")(1,"div",2)(2,"p-floatLabel"),le.nrm(3,"input",3),le.j41(4,"label",4),le.EFF(5,"Destinatário"),le.k0s()(),le.nrm(6,"br-foreign-key",5)(7,"br-editor",6)(8,"br-file-upload",7),le.k0s()()),2&te){const te=le.XpG();le.R7$(),le.Y8G("formGroup",te.form),le.R7$(5),le.Y8G("query",te.queryStatusDeamanda),le.R7$(2),le.Y8G("multiple",!0)("accept",le.lJ4(4,comunicacao_interna_component_c0))}}const comunicacao_interna_component_c1=()=>({width:"50vw"});let $t=(()=>{class ComunicacaoInternaComponent extends Gt{ngOnInit(){super.ngOnInit(),this.queryStatusDeamanda=new URLSearchParams({comunicacaoInterna:"V",codNbrTipoAtendimento:String(this.nbrDemanda.codNbrTipoAtendimento)}),this.demandaService.getUsuarioRespTipo(this.nbrDemanda.codNbrTipoAtendimento).subscribe({next:te=>{this.form=this.formBuilder.group({nomeResponsavelJuridico:[{value:te.nomeUsuario,disabled:!0}],descrAndamento:["",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required],codLbrUsuario:te.codLbrUsuario,codsDocEmpresa:[[]]})}})}acaoDemanda(te){return this.demandaService.comunicacaoInterna(this.nbrDemanda.codNbrDemanda,te)}static#e=this.ɵfac=(()=>{let te;return function ComunicacaoInternaComponent_Factory(ne){return(te||(te=le.xGo(ComunicacaoInternaComponent)))(ne||ComunicacaoInternaComponent)}})();static#t=this.ɵcmp=le.VBU({type:ComunicacaoInternaComponent,selectors:[["comunicacao-interna"]],standalone:!0,features:[le.Vt3,le.aNF],decls:2,vars:5,consts:[[4,"ngIf"],[3,"key"],[1,"container-corpo-acao-demanda",3,"formGroup"],["id","nomeResponsavelJuridico","formControlName","nomeResponsavelJuridico","brInputText",""],["for","nomeResponsavelJuridico"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda",3,"query"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],["formControlName","codsDocEmpresa","label","Documento(s)","size","100%",3,"multiple","accept"]],template:function ComunicacaoInternaComponent_Template(te,ne){1&te&&(le.DNE(0,ComunicacaoInternaComponent_div_0_Template,9,5,"div",0),le.nrm(1,"p-confirmDialog",1)),2&te&&(le.Y8G("ngIf",ne.form),le.R7$(),le.Aen(le.lJ4(4,comunicacao_interna_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,re.bT,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Je.L,Dt.r,dt.B],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}[_nghost-%COMP%]     .p-inputtext, [_nghost-%COMP%]     .p-dropdown{width:100%}"]})}return ComunicacaoInternaComponent})();const comunicar_solicitante_component_c0=()=>["application/pdf","image/*"],comunicar_solicitante_component_c1=()=>({width:"50vw"});let Yt=(()=>{class ComunicarSolicitanteComponent extends Gt{ngOnInit(){super.ngOnInit(),this.queryStatusDeamanda=new URLSearchParams({comunicarSolicitante:"V",codNbrTipoAtendimento:String(this.nbrDemanda.codNbrTipoAtendimento)}),this.form=this.formBuilder.group({nomeSolicitante:[{value:this.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.nomeUsuario,disabled:!0}],descrAndamento:["",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required],codsDocEmpresa:[[]]})}acaoDemanda(te){return this.demandaService.comunicaSolicitante(this.nbrDemanda.codNbrDemanda,te)}static#e=this.ɵfac=(()=>{let te;return function ComunicarSolicitanteComponent_Factory(ne){return(te||(te=le.xGo(ComunicarSolicitanteComponent)))(ne||ComunicarSolicitanteComponent)}})();static#t=this.ɵcmp=le.VBU({type:ComunicarSolicitanteComponent,selectors:[["comunicar-solicitante"]],standalone:!0,features:[le.Vt3,le.aNF],decls:9,vars:9,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","nomeSolicitante","formControlName","nomeSolicitante","brInputText",""],["for","nomeSolicitante"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda",3,"query"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],["formControlName","codsDocEmpresa","label","Documento(s)","size","100%",3,"multiple","accept"],[3,"key"]],template:function ComunicarSolicitanteComponent_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.nrm(5,"br-foreign-key",3)(6,"br-editor",4)(7,"br-file-upload",5),le.k0s(),le.nrm(8,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(5),le.Y8G("query",ne.queryStatusDeamanda),le.R7$(2),le.Y8G("multiple",!0)("accept",le.lJ4(7,comunicar_solicitante_component_c0)),le.R7$(),le.Aen(le.lJ4(8,comunicar_solicitante_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Je.L,Dt.r,dt.B],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}[_nghost-%COMP%]     .p-inputtext, [_nghost-%COMP%]     .p-dropdown{width:100%}"]})}return ComunicarSolicitanteComponent})();const criar_pos_encerramento_component_c0=()=>["application/pdf","image/*"],criar_pos_encerramento_component_c1=()=>({width:"50vw"});let Wt=(()=>{class CriarPosEncerramentoComponent extends Gt{ngOnInit(){super.ngOnInit(),this.queryStatusDeamanda=new URLSearchParams({posDemandaEncerrada:"V",codNbrTipoAtendimento:String(this.nbrDemanda.codNbrTipoAtendimento)}),this.form=this.formBuilder.group({nomeDestinatario:[{value:this.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.nomeUsuario,disabled:!0}],descrAndamento:["",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required],codsDocEmpresa:[[]]})}acaoDemanda(te){return this.demandaService.criarPosEncerramento(this.nbrDemanda.codNbrDemanda,te)}static#e=this.ɵfac=(()=>{let te;return function CriarPosEncerramentoComponent_Factory(ne){return(te||(te=le.xGo(CriarPosEncerramentoComponent)))(ne||CriarPosEncerramentoComponent)}})();static#t=this.ɵcmp=le.VBU({type:CriarPosEncerramentoComponent,selectors:[["criar-pos-encerramento"]],standalone:!0,features:[le.Vt3,le.aNF],decls:9,vars:9,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","nomeDestinatario","formControlName","nomeDestinatario","brInputText",""],["for","nomeDestinatario"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda",3,"query"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],["formControlName","codsDocEmpresa","label","Documento(s)","size","100%",3,"multiple","accept"],[3,"key"]],template:function CriarPosEncerramentoComponent_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.nrm(5,"br-foreign-key",3)(6,"br-editor",4)(7,"br-file-upload",5),le.k0s(),le.nrm(8,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(5),le.Y8G("query",ne.queryStatusDeamanda),le.R7$(2),le.Y8G("multiple",!0)("accept",le.lJ4(7,criar_pos_encerramento_component_c0)),le.R7$(),le.Aen(le.lJ4(8,criar_pos_encerramento_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Je.L,Dt.r,dt.B],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}[_nghost-%COMP%]     .p-inputtext, [_nghost-%COMP%]     .p-dropdown{width:100%}"]})}return CriarPosEncerramentoComponent})();var Kt=ie(208);const encaminhar_demanda_component_c0=()=>["application/pdf","image/*"],encaminhar_demanda_component_c1=()=>({width:"50vw"});let Qt=(()=>{class EncaminharDemandaComponent extends Gt{constructor(){super(...arguments),this.usuarios=[]}ngOnInit(){super.ngOnInit(),this.queryStatusDeamanda=new URLSearchParams({encaminhamento:"V",codNbrTipoAtendimento:String(this.nbrDemanda.codNbrTipoAtendimento)}),this.demandaService.getUsuariosEncaminhamento(this.nbrDemanda.codNbrDemanda).subscribe((te=>{this.usuarios=te})),this.form=this.formBuilder.group({codLbrDestinatario:[null,ce.k0.required],descrAndamento:["",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required],codsDocEmpresa:[[]]})}acaoDemanda(te){return this.demandaService.encaminhaDemanda(this.nbrDemanda.codNbrDemanda,te)}static#e=this.ɵfac=(()=>{let te;return function EncaminharDemandaComponent_Factory(ne){return(te||(te=le.xGo(EncaminharDemandaComponent)))(ne||EncaminharDemandaComponent)}})();static#t=this.ɵcmp=le.VBU({type:EncaminharDemandaComponent,selectors:[["encaminhar-demanda"]],standalone:!0,features:[le.Vt3,le.aNF],decls:9,vars:10,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","codLbrDestinatario","optionLabel","nomeUsuario","optionValue","codLbrUsuario","formControlName","codLbrDestinatario",3,"options"],["for","codLbrDestinatario"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda",3,"query"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],["formControlName","codsDocEmpresa","label","Documento(s)","size","100%",3,"multiple","accept"],[3,"key"]],template:function EncaminharDemandaComponent_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"p-dropdown",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.nrm(5,"br-foreign-key",3)(6,"br-editor",4)(7,"br-file-upload",5),le.k0s(),le.nrm(8,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(2),le.Y8G("options",ne.usuarios),le.R7$(3),le.Y8G("query",ne.queryStatusDeamanda),le.R7$(2),le.Y8G("multiple",!0)("accept",le.lJ4(8,encaminhar_demanda_component_c0)),le.R7$(),le.Aen(le.lJ4(9,encaminhar_demanda_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Je.L,Dt.r,Kt.kr,Kt.ms],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}[_nghost-%COMP%]     .p-inputtext, [_nghost-%COMP%]     .p-dropdown{width:100%}"]})}return EncaminharDemandaComponent})();const encerrar_demanda_component_c0=()=>["application/pdf","image/*"],encerrar_demanda_component_c1=()=>({width:"50vw"});let Jt=(()=>{class EncerrarDemandaComponent extends Gt{ngOnInit(){super.ngOnInit(),this.queryStatusDeamanda=new URLSearchParams({encerramento:"V",codNbrTipoAtendimento:String(this.nbrDemanda.codNbrTipoAtendimento)}),this.form=this.formBuilder.group({nomeSolicitante:[{value:this.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.nomeUsuario,disabled:!0}],descrAndamento:["...",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required],codsDocEmpresa:[[]]})}acaoDemanda(te){return this.demandaService.encerraDemanda(this.nbrDemanda.codNbrDemanda,te)}static#e=this.ɵfac=(()=>{let te;return function EncerrarDemandaComponent_Factory(ne){return(te||(te=le.xGo(EncerrarDemandaComponent)))(ne||EncerrarDemandaComponent)}})();static#t=this.ɵcmp=le.VBU({type:EncerrarDemandaComponent,selectors:[["encerrar-demanda"]],standalone:!0,features:[le.Vt3,le.aNF],decls:9,vars:9,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","nomeSolicitante","formControlName","nomeSolicitante","brInputText",""],["for","nomeSolicitante"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda",3,"query"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],["formControlName","codsDocEmpresa","label","Documento(s)","size","100%",3,"multiple","accept"],[3,"key"]],template:function EncerrarDemandaComponent_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.nrm(5,"br-foreign-key",3)(6,"br-editor",4)(7,"br-file-upload",5),le.k0s(),le.nrm(8,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(5),le.Y8G("query",ne.queryStatusDeamanda),le.R7$(2),le.Y8G("multiple",!0)("accept",le.lJ4(7,encerrar_demanda_component_c0)),le.R7$(),le.Aen(le.lJ4(8,encerrar_demanda_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Je.L,Dt.r,dt.B],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}[_nghost-%COMP%]     .p-inputtext, [_nghost-%COMP%]     .p-dropdown{width:100%}"]})}return EncerrarDemandaComponent})();const novo_andamento_component_c0=()=>["application/pdf","image/*"],novo_andamento_component_c1=()=>({width:"50vw"});let Zt=(()=>{class NovoAndamento extends Gt{ngOnInit(){super.ngOnInit(),this.queryStatusDeamanda=new URLSearchParams({novoAndamento:"V",codNbrTipoAtendimento:String(this.nbrDemanda.codNbrTipoAtendimento)}),this.form=this.formBuilder.group({nomeDestinatario:[{value:this.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.nomeUsuario,disabled:!0}],descrAndamento:["",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required],codsDocEmpresa:[[]]})}acaoDemanda(te){return this.demandaService.criarNovoAndamento(this.nbrDemanda.codNbrDemanda,te)}static#e=this.ɵfac=(()=>{let te;return function NovoAndamento_Factory(ne){return(te||(te=le.xGo(NovoAndamento)))(ne||NovoAndamento)}})();static#t=this.ɵcmp=le.VBU({type:NovoAndamento,selectors:[["novo-andamento"]],standalone:!0,features:[le.Vt3,le.aNF],decls:9,vars:9,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","nomeDestinatario","formControlName","nomeDestinatario","brInputText",""],["for","nomeDestinatario"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda",3,"query"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],["formControlName","codsDocEmpresa","label","Documento(s)","size","100%",3,"multiple","accept"],[3,"key"]],template:function NovoAndamento_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.nrm(5,"br-foreign-key",3)(6,"br-editor",4)(7,"br-file-upload",5),le.k0s(),le.nrm(8,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(5),le.Y8G("query",ne.queryStatusDeamanda),le.R7$(2),le.Y8G("multiple",!0)("accept",le.lJ4(7,novo_andamento_component_c0)),le.R7$(),le.Aen(le.lJ4(8,novo_andamento_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Je.L,Dt.r,dt.B],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}[_nghost-%COMP%]     .p-inputtext, [_nghost-%COMP%]     .p-dropdown{width:100%}"]})}return NovoAndamento})();var tn=ie(3511);let nn=(()=>{class AcoesModalBase{constructor(){this.keyDialog=(0,$e.A)(),this.formBuilder=(0,le.WQX)(ce.ok),this.statusDemandaService=(0,le.WQX)(Ye.U),this.demandaService=(0,le.WQX)(Vt.m),this.arquivosService=(0,le.WQX)(Mt.I),this.confirmationService=(0,le.WQX)(ue.td),this.dialogRef=(0,le.WQX)(tn.Pw),this.dialogConfig=(0,le.WQX)(tn.sb),this.brMessageService=(0,le.WQX)(Nt.h),this.validadorFormularioService=(0,le.WQX)(Ot.E),this.loadingService=(0,le.WQX)(Rt.T),this.dialogConfig?.data?.onConfirmarEmitter.subscribe({next:()=>{this.confirma()}})}confirma(){this.loadingService.show();const te=this.validadorFormularioService.validaFormulario(this.form);if(!te.valido)return this.confirmationService.confirm({message:te.mensagemErro,header:"Aviso",icon:ue.EE.EXCLAMATION_TRIANGLE,dismissableMask:!0,rejectVisible:!1,acceptVisible:!1,key:this.keyDialog}),void this.loadingService.hide();const ne=this.brFileUploadComponentList.map((te=>te.uploadFiles()));(0,Le.p)(ne).pipe((0,pt.U)(null),(0,Ct.W)((te=>(this.brMessageService.error(),vt.w))),(0,Oe.j)((()=>this.loadingService.hide()))).subscribe({next:()=>{this._acaoDemanda(this.form.value)}})}_acaoDemanda(te){this.acaoDemanda(te).pipe((0,Ct.W)((te=>(this.apresentaMensagemErroServidor(te),vt.w))),(0,It.T)((()=>({foiAdicionadoNovoAndamento:!0}))),(0,Oe.j)((()=>this.loadingService.hide()))).subscribe((te=>{this.dialogRef.close(),this.dialogConfig?.data?.onConfirmar(te)}))}apresentaMensagemErroServidor(te,ne){const ie=this.confirmationService.confirm({message:te.error.message??"Falha no servidor",header:"Aviso",icon:ue.EE.EXCLAMATION_TRIANGLE,acceptLabel:"Ok",key:this.keyDialog,accept:()=>{ie.close(),ne&&ne()},rejectVisible:!1})}static#e=this.ɵfac=function AcoesModalBase_Factory(te){return new(te||AcoesModalBase)};static#t=this.ɵdir=le.FsC({type:AcoesModalBase,viewQuery:function AcoesModalBase_Query(te,ne){if(1&te&&le.GBs(Dt.r,5),2&te){let te;le.mGM(te=le.lsd())&&(ne.brFileUploadComponentList=te)}}})}return AcoesModalBase})();const aceitar_reembolso_component_c0=()=>({width:"50vw"});let rn=(()=>{class AceitarReembolsoModal extends nn{constructor(){super(),this.dados=this.dialogConfig.data,this.form=this.formBuilder.group({destinatario:[{value:this.dados.destinatario,disabled:!0}],status:[{value:this.dados.status.nomeNbrStatusDemanda,disabled:!0}],descrAndamento:["Reembolso aceito",ce.k0.required]})}acaoDemanda(te){return this.demandaService.aceitaReembolso(this.dados.idDemanda,te)}static#e=this.ɵfac=function AceitarReembolsoModal_Factory(te){return new(te||AceitarReembolsoModal)};static#t=this.ɵcmp=le.VBU({type:AceitarReembolsoModal,selectors:[["app-concluir-reembolso-modal"]],standalone:!0,features:[le.Vt3,le.aNF],decls:11,vars:5,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","destinatario","formControlName","destinatario","brInputText",""],["for","destinatario"],["id","status","formControlName","status","brInputText",""],["for","status"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],[3,"key"]],template:function AceitarReembolsoModal_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.j41(5,"p-floatLabel"),le.nrm(6,"input",3),le.j41(7,"label",4),le.EFF(8,"Status"),le.k0s()(),le.nrm(9,"br-editor",5),le.k0s(),le.nrm(10,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(10),le.Aen(le.lJ4(4,aceitar_reembolso_component_c0)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,dt.B,Xe.f,Xe.V,Qe.P],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(br-file-upload, br-editor)[_ngcontent-%COMP%]{grid-column:1 / -1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return AceitarReembolsoModal})();const aceitar_solicitacao_component_c0=()=>({width:"50vw"});let an=(()=>{class AceitarSolicitacaoComponent extends nn{constructor(){super(),this.dados=this.dialogConfig.data,this.form=this.formBuilder.group({nomeDestinatario:[{value:this.dados.nomeDestinatario,disabled:!0}],nomeNbrStatusAceite:[{value:this.dados.nomeNbrStatusAceite,disabled:!0}],descrAndamento:["Aceito",ce.k0.required]})}acaoDemanda(te){return this.demandaService.aceitaSolicitacao(this.dados.idDemanda,{codNbrDemandaAndamento:this.dados.idAndamento,descrAndamento:this.form.value.descrAndamento})}static#e=this.ɵfac=function AceitarSolicitacaoComponent_Factory(te){return new(te||AceitarSolicitacaoComponent)};static#t=this.ɵcmp=le.VBU({type:AceitarSolicitacaoComponent,selectors:[["app-aceitar-solicitacao"]],standalone:!0,features:[le.Vt3,le.aNF],decls:11,vars:5,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","nomeDestinatario","formControlName","nomeDestinatario","brInputText",""],["for","nomeDestinatario"],["id","nomeNbrStatusAceite","formControlName","nomeNbrStatusAceite","brInputText",""],["for","nomeNbrStatusAceite"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],[3,"key"]],template:function AceitarSolicitacaoComponent_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.j41(5,"p-floatLabel"),le.nrm(6,"input",3),le.j41(7,"label",4),le.EFF(8,"Status"),le.k0s()(),le.nrm(9,"br-editor",5),le.k0s(),le.nrm(10,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(10),le.Aen(le.lJ4(4,aceitar_solicitacao_component_c0)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,dt.B,ge.F,ge.T,Xe.f,Xe.V,Qe.P],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   br-file-upload[_ngcontent-%COMP%], .container-corpo-acao-demanda[_ngcontent-%COMP%]   br-editor[_ngcontent-%COMP%]{grid-column:1/-1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return AceitarSolicitacaoComponent})(),sn=(()=>{class ConfirmarEncerramentoModal{constructor(){this.dialogRef=(0,le.WQX)(tn.Pw),this.dialogConfig=(0,le.WQX)(tn.sb),this.formBuilder=(0,le.WQX)(ce.ok),this.nbrDemandaService=(0,le.WQX)(Vt.m),this.loadingService=(0,le.WQX)(Rt.T),this.form=this.formBuilder.group({nivelSatisfacao:[null,ce.k0.required]}),this.dialogConfig.data?.onConfirmarEmitter.subscribe((()=>{this.loadingService.show(),this.nbrDemandaService.aceitaEncerramento(this.dialogConfig.data.idDemanda,this.form.value).pipe((0,Oe.j)((()=>this.loadingService.hide()))).subscribe((()=>{this.dialogConfig.data?.onConfirmar({foiAdicionadoNovoAndamento:!0}),this.dialogRef.close()}))}))}static#e=this.ɵfac=function ConfirmarEncerramentoModal_Factory(te){return new(te||ConfirmarEncerramentoModal)};static#t=this.ɵcmp=le.VBU({type:ConfirmarEncerramentoModal,selectors:[["confirmar-encerramento"]],standalone:!0,features:[le.aNF],decls:4,vars:1,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["formControlName","nivelSatisfacao"]],template:function ConfirmarEncerramentoModal_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"span"),le.EFF(2,"O quão satisfeito você ficou com o atendimento?"),le.k0s(),le.nrm(3,"p-rating",1),le.k0s()),2&te&&le.Y8G("formGroup",ne.form)},dependencies:[re.MD,ce.YN,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,Me,Ee],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(br-file-upload, br-editor)[_ngcontent-%COMP%]{grid-column:1 / -1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return ConfirmarEncerramentoModal})();const enviar_relatorio_assinado_component_c0=()=>["application/pdf"],enviar_relatorio_assinado_component_c1=()=>({width:"50vw"});let dn=(()=>{class EnviarRelatorioAssinadoModal extends nn{constructor(){super(),this.dados=this.dialogConfig.data,this.demandaService.state.isDetailsLoading=!0,(0,Le.p)({statusAssinaturaDigital:this.statusDemandaService.getStatusAssinaturaDigital(),responsavel:this.demandaService.getUsuarioRespDivisao(this.dados.idUsuario)}).pipe((0,Ct.W)((te=>(this.apresentaMensagemErroServidor(te,(()=>this.dialogRef.close())),vt.w))),(0,Oe.j)((()=>this.demandaService.state.isDetailsLoading=!1))).subscribe({next:te=>{this.form=this.formBuilder.group({destinatario:[{value:te.responsavel.nomeUsuario,disabled:!0}],status:[{value:te.statusAssinaturaDigital.nomeNbrStatusDemanda,disabled:!0}],relatorioAssinado:[null,ce.k0.required],descrAndamento:["Documento assinado.",ce.k0.required]})}})}acaoDemanda(te){return this.demandaService.enviaRelatorioAssinado(this.dados.idDemanda,te)}static#e=this.ɵfac=function EnviarRelatorioAssinadoModal_Factory(te){return new(te||EnviarRelatorioAssinadoModal)};static#t=this.ɵcmp=le.VBU({type:EnviarRelatorioAssinadoModal,selectors:[["app-enviar-relatorio-assinado-modal"]],standalone:!0,features:[le.Vt3,le.aNF],decls:12,vars:7,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","destinatario","formControlName","destinatario","brInputText",""],["for","destinatario"],["id","status","formControlName","status","brInputText",""],["for","status"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],["formControlName","relatorioAssinado","label","Relatório assinado","size","100%",3,"accept"],[3,"key"]],template:function EnviarRelatorioAssinadoModal_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.j41(5,"p-floatLabel"),le.nrm(6,"input",3),le.j41(7,"label",4),le.EFF(8,"Status"),le.k0s()(),le.nrm(9,"br-editor",5)(10,"br-file-upload",6),le.k0s(),le.nrm(11,"p-confirmDialog",7)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(10),le.Y8G("accept",le.lJ4(5,enviar_relatorio_assinado_component_c0)),le.R7$(),le.Aen(le.lJ4(6,enviar_relatorio_assinado_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,dt.B,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Dt.r],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(br-file-upload, br-editor)[_ngcontent-%COMP%]{grid-column:1 / -1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return EnviarRelatorioAssinadoModal})();const liberar_reembolso_component_c0=()=>["application/pdf","image/*"],liberar_reembolso_component_c1=()=>({width:"50vw"});let un=(()=>{class LiberarReembolsoModal extends nn{constructor(){super(),this.dados=this.dialogConfig.data,this.form=this.formBuilder.group({destinatario:[{value:this.dados.destinatario,disabled:!0}],status:[{value:this.dados.status.nomeNbrStatusDemanda,disabled:!0}],comprovantePagamento:[null,ce.k0.required],descrAndamento:["Pagamento realizado. Comprovante de pagamento em anexo.",ce.k0.required]})}acaoDemanda(te){return this.demandaService.liberaReembolso(this.dados.idDemanda,te)}static#e=this.ɵfac=function LiberarReembolsoModal_Factory(te){return new(te||LiberarReembolsoModal)};static#t=this.ɵcmp=le.VBU({type:LiberarReembolsoModal,selectors:[["app-liberar-reembolso-modal"]],standalone:!0,features:[le.Vt3,le.aNF],decls:12,vars:7,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","destinatario","formControlName","destinatario","brInputText",""],["for","destinatario"],["id","status","formControlName","status","brInputText",""],["for","status"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],["formControlName","comprovantePagamento","label","Comprovante de pagamento","size","100%",3,"accept"],[3,"key"]],template:function LiberarReembolsoModal_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.j41(5,"p-floatLabel"),le.nrm(6,"input",3),le.j41(7,"label",4),le.EFF(8,"Status"),le.k0s()(),le.nrm(9,"br-editor",5)(10,"br-file-upload",6),le.k0s(),le.nrm(11,"p-confirmDialog",7)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(10),le.Y8G("accept",le.lJ4(5,liberar_reembolso_component_c0)),le.R7$(),le.Aen(le.lJ4(6,liberar_reembolso_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,dt.B,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Dt.r],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(br-file-upload, br-editor)[_ngcontent-%COMP%]{grid-column:1 / -1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return LiberarReembolsoModal})();const novo_documento_component_c0=()=>["application/pdf","image/*"],novo_documento_component_c1=()=>({width:"50vw"});let pn=(()=>{class NovoDocumentoModal extends nn{constructor(){super(),this.dados=this.dialogConfig.data,this.queryStatusDeamanda=new URLSearchParams({novoDoc:"V",codNbrTipoAtendimento:String(this.dados.codNbrTipoAtendimento)}),this.form=this.formBuilder.group({executor:[{value:this.dados.lbrUsuarioExecutor.nomeUsuario,disabled:!0}],descrAndamento:["Novo documento ...",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required],codsDocEmpresa:[[],ce.k0.required]})}acaoDemanda(te){return this.demandaService.adicionaNovoDocumentoDemanda(this.dados.idDemanda,te)}static#e=this.ɵfac=function NovoDocumentoModal_Factory(te){return new(te||NovoDocumentoModal)};static#t=this.ɵcmp=le.VBU({type:NovoDocumentoModal,selectors:[["app-novo-documento-modal"]],standalone:!0,features:[le.Vt3,le.aNF],decls:9,vars:9,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","executor","formControlName","executor","brInputText",""],["for","executor"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda","size","100%",3,"query"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],["formControlName","codsDocEmpresa","label","Documento(s)","size","100%",3,"multiple","accept"],[3,"key"]],template:function NovoDocumentoModal_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.nrm(5,"br-foreign-key",3)(6,"br-editor",4)(7,"br-file-upload",5),le.k0s(),le.nrm(8,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(5),le.Y8G("query",ne.queryStatusDeamanda),le.R7$(2),le.Y8G("multiple",!0)("accept",le.lJ4(7,novo_documento_component_c0)),le.R7$(),le.Aen(le.lJ4(8,novo_documento_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,Xe.f,Xe.V,dt.B,Qe.P,Dt.r,Je.L],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(br-file-upload, br-editor)[_ngcontent-%COMP%]{grid-column:1 / -1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return NovoDocumentoModal})();var hn=ie(7691),fn=ie(3238),_n=ie(2040),bn=ie(6612);function ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"tr")(1,"th",3),le.EFF(2,"ID"),le.k0s(),le.j41(3,"th"),le.EFF(4,"Título"),le.k0s(),le.j41(5,"th"),le.EFF(6,"Número"),le.k0s()(),le.j41(7,"tr",4)(8,"td",5)(9,"div",6)(10,"input",7),le.mxI("ngModelChange",(function ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template_input_ngModelChange_10_listener(ne){le.eBV(te);const ie=le.XpG();return le.DH7(ie.idSearchValue,ne)||(ie.idSearchValue=ne),le.Njj(ne)})),le.bIt("keydown.enter",(function ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template_input_keydown_enter_10_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onSearchColumn())}))("input",(function ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template_input_input_10_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onSearchColumnInput())})),le.k0s()()(),le.j41(11,"td",5)(12,"div",8)(13,"input",7),le.mxI("ngModelChange",(function ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template_input_ngModelChange_13_listener(ne){le.eBV(te);const ie=le.XpG();return le.DH7(ie.tituloSearchValue,ne)||(ie.tituloSearchValue=ne),le.Njj(ne)})),le.bIt("keydown.enter",(function ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template_input_keydown_enter_13_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onSearchColumn())}))("input",(function ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template_input_input_13_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onSearchColumnInput())})),le.k0s()()(),le.j41(14,"td",5)(15,"div",8)(16,"input",7),le.mxI("ngModelChange",(function ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template_input_ngModelChange_16_listener(ne){le.eBV(te);const ie=le.XpG();return le.DH7(ie.numeroSearchValue,ne)||(ie.numeroSearchValue=ne),le.Njj(ne)})),le.bIt("keydown.enter",(function ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template_input_keydown_enter_16_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onSearchColumn())}))("input",(function ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template_input_input_16_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onSearchColumnInput())})),le.k0s()()()()}if(2&te){const te=le.XpG();le.R7$(10),le.R50("ngModel",te.idSearchValue),le.R7$(3),le.R50("ngModel",te.tituloSearchValue),le.R7$(3),le.R50("ngModel",te.numeroSearchValue)}}function ProcessoJuridicoAcaoDemandaComponent_ng_template_2_tr_0_Template(te,ne){if(1&te&&(le.j41(0,"tr",11)(1,"td")(2,"span"),le.EFF(3),le.k0s()(),le.j41(4,"td")(5,"span"),le.EFF(6),le.k0s()(),le.j41(7,"td")(8,"span"),le.EFF(9),le.k0s()()()),2&te){const te=le.XpG(),ne=te.$implicit,ie=te.$implicit;le.Y8G("pSelectableRow",ne)("pSelectableRowIndex",ie),le.R7$(3),le.SpI(" ",ne.codProcessoJuridico," "),le.R7$(3),le.SpI(" ",ne.tituloProcessoJuridico," "),le.R7$(3),le.SpI(" ",ne.numeroProcesso," ")}}function ProcessoJuridicoAcaoDemandaComponent_ng_template_2_tr_1_Template(te,ne){1&te&&(le.j41(0,"tr")(1,"td"),le.nrm(2,"p-skeleton"),le.k0s(),le.j41(3,"td"),le.nrm(4,"p-skeleton"),le.k0s(),le.j41(5,"td"),le.nrm(6,"p-skeleton"),le.k0s()())}function ProcessoJuridicoAcaoDemandaComponent_ng_template_2_Template(te,ne){if(1&te&&le.DNE(0,ProcessoJuridicoAcaoDemandaComponent_ng_template_2_tr_0_Template,10,5,"tr",9)(1,ProcessoJuridicoAcaoDemandaComponent_ng_template_2_tr_1_Template,7,0,"tr",10),2&te){const te=le.XpG();le.Y8G("ngIf",!te.isLoading),le.R7$(),le.Y8G("ngIf",te.isLoading)}}let yn=(()=>{class ProcessoJuridicoAcaoDemandaComponent{constructor(){this.http=(0,le.WQX)(hn.Qq),this.brMessageService=(0,le.WQX)(Nt.h),this.environmentService=(0,le.WQX)(bn.v),this.dynamicDialogConfig=(0,le.WQX)(tn.sb),this.dynamicDialogRef=(0,le.WQX)(tn.Pw),this.processoJuridicoDataList=[],this.filtros={},this.isLoading=!1}ngOnInit(){this.idDemanda=this.dynamicDialogConfig.data.idDemanda,this.nbrDemandaService=this.dynamicDialogConfig.data.nbrDemandaService,this.dynamicDialogConfig.data?.onConfirmarEmitter.subscribe((()=>{this.selectedRow&&(this.nbrDemandaService.state.isDetailsLoading=!0,this.nbrDemandaService.atualizaProcessoJuridico(this.idDemanda,this.selectedRow.codProcessoJuridico).pipe((0,Ct.W)((te=>(this.brMessageService.error(te.error.message),vt.w))),(0,Oe.j)((()=>this.nbrDemandaService.state.isDetailsLoading=!1))).subscribe((()=>{this.brMessageService.success("Processo jurídico informado com sucesso"),this.nbrDemandaService.idRowDetails=this.nbrDemandaService.idRowDetails,this.dynamicDialogRef.close()})))})),this.refreshData().subscribe()}refreshData(){return this.isLoading=!0,this.http.post(`${this.environmentService.environment.serverUrl}/processo-juridico/filtro`,this.filtros).pipe((0,_n.M)((te=>{this.processoJuridicoDataList=te.data})),(0,Ct.W)((te=>(this.brMessageService.error(te.error.message),vt.w))),(0,Oe.j)((()=>this.isLoading=!1)))}onSearchColumnInput(){clearTimeout(this.inputTimeout),this.inputTimeout=setTimeout((()=>{this.onSearchColumn()}),1e3)}onSearchColumn(){this.filtros={codProcessoJuridico:void 0!==this.idSearchValue?[this.idSearchValue]:void 0,tituloProcessoJuridico:void 0!==this.tituloSearchValue?[this.tituloSearchValue]:void 0,numeroProcesso:void 0!==this.numeroSearchValue?[this.numeroSearchValue]:void 0},this.refreshData().subscribe()}static#e=this.ɵfac=function ProcessoJuridicoAcaoDemandaComponent_Factory(te){return new(te||ProcessoJuridicoAcaoDemandaComponent)};static#t=this.ɵcmp=le.VBU({type:ProcessoJuridicoAcaoDemandaComponent,selectors:[["processo-juridico-acao-demanda"]],standalone:!0,features:[le.aNF],decls:3,vars:3,consts:[["scrollHeight","flex","selectionMode","single","styleClass","p-datatable-sm p-datatable-striped p-datatable-gridlines fadein animation-duration-200",3,"value","scrollable","selection","selectionChange"],["pTemplate","header"],["pTemplate","body"],[2,"width","5rem"],[2,"background-color","#efefef"],[1,"input-column"],[1,"container-input-column",2,"width","5rem"],["type","text","brInputText","",1,"py-1","pr-1","w-full",3,"ngModel","ngModelChange","keydown.enter","input"],[1,"container-input-column"],["class","cursor-pointer",3,"pSelectableRow","pSelectableRowIndex",4,"ngIf"],[4,"ngIf"],[1,"cursor-pointer",3,"pSelectableRow","pSelectableRowIndex"]],template:function ProcessoJuridicoAcaoDemandaComponent_Template(te,ne){1&te&&(le.j41(0,"p-table",0),le.mxI("selectionChange",(function ProcessoJuridicoAcaoDemandaComponent_Template_p_table_selectionChange_0_listener(te){return le.DH7(ne.selectedRow,te)||(ne.selectedRow=te),te})),le.DNE(1,ProcessoJuridicoAcaoDemandaComponent_ng_template_1_Template,17,3,"ng-template",1)(2,ProcessoJuridicoAcaoDemandaComponent_ng_template_2_Template,2,2,"ng-template",2),le.k0s()),2&te&&(le.Y8G("value",ne.processoJuridicoDataList)("scrollable",!0),le.R50("selection",ne.selectedRow))},dependencies:[re.MD,re.bT,fn.bG,fn.XI,ue.Ei,fn.d5,ce.YN,ce.me,ce.BC,ce.vS,Ne.k,Ne.E,dt.B]})}return ProcessoJuridicoAcaoDemandaComponent})();const recusar_encerramento_component_c0=()=>["application/pdf","image/*"],recusar_encerramento_component_c1=()=>({width:"50vw"});let wn=(()=>{class RecusarEncerramentoModal extends nn{constructor(){super(),this.dados=this.dialogConfig.data,this.queryStatusDeamanda=new URLSearchParams({recusaEncerramento:"V",codNbrTipoAtendimento:String(this.dados.codNbrTipoAtendimento)}),this.form=this.formBuilder.group({nomeExecutor:[{value:this.dados.nomeExecutor,disabled:!0}],descrAndamento:["",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required],arquivos:[[]]})}acaoDemanda(te){return this.demandaService.recusaEncerramento(this.dados.idDemanda,te)}static#e=this.ɵfac=function RecusarEncerramentoModal_Factory(te){return new(te||RecusarEncerramentoModal)};static#t=this.ɵcmp=le.VBU({type:RecusarEncerramentoModal,selectors:[["app-recusar-encerramento"]],standalone:!0,features:[le.Vt3,le.aNF],decls:9,vars:9,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","nomeExecutor","formControlName","nomeExecutor","brInputText",""],["for","nomeExecutor"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda",3,"query"],["formControlName","descrAndamento","label","Descreva o motivo da recusa","altura","10rem"],["formControlName","arquivos","label","Documento(s)","size","100%",3,"multiple","accept"],[3,"key"]],template:function RecusarEncerramentoModal_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.nrm(5,"br-foreign-key",3)(6,"br-editor",4)(7,"br-file-upload",5),le.k0s(),le.nrm(8,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(5),le.Y8G("query",ne.queryStatusDeamanda),le.R7$(2),le.Y8G("multiple",!0)("accept",le.lJ4(7,recusar_encerramento_component_c0)),le.R7$(),le.Aen(le.lJ4(8,recusar_encerramento_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,dt.B,Xe.f,Xe.V,Qe.P,Dt.r,Je.L],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(br-file-upload, br-editor)[_ngcontent-%COMP%]{grid-column:1 / -1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return RecusarEncerramentoModal})();var kn=ie(3944);const recusar_liberacao_reembolso_component_c0=()=>({width:"50vw"});let In=(()=>{class RecusarLiberacaoReembolsoModal extends nn{constructor(){super(),this.usuarioService=(0,le.WQX)(kn.c),this.dados=this.dialogConfig.data,this.queryLbrUsuario=new URLSearchParams,this.queryLbrUsuario.append("codsUsuario",String(this.dados.codLbrUsuarioSolDemanda)),this.queryLbrUsuario.append("codsUsuario",String(this.dados.codLbrUsuarioSolAndamento)),this.form=this.formBuilder.group({codLbrUsuarioDestinatario:["",ce.k0.required],status:[{value:this.dados.status.nomeNbrStatusDemanda,disabled:!0}],descrAndamento:["",ce.k0.required]})}acaoDemanda(te){return this.demandaService.recusaLiberacaoReembolso(this.dados.idDemanda,this.form.value)}static#e=this.ɵfac=function RecusarLiberacaoReembolsoModal_Factory(te){return new(te||RecusarLiberacaoReembolsoModal)};static#t=this.ɵcmp=le.VBU({type:RecusarLiberacaoReembolsoModal,selectors:[["app-recusar-liberacao-reembolso-modal"]],standalone:!0,features:[le.Vt3,le.aNF],decls:8,vars:6,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["label","Destinatário","formControlName","codLbrUsuarioDestinatario","endpoint","lbr-usuario","optionLabel","nomeUsuario","optionValue","codLbrUsuario",3,"query"],["id","status","formControlName","status","brInputText",""],["for","status"],["formControlName","descrAndamentoDestino","label","Descrição original","altura","10rem"],[3,"key"]],template:function RecusarLiberacaoReembolsoModal_Template(te,ne){1&te&&(le.j41(0,"div",0),le.nrm(1,"br-foreign-key",1),le.j41(2,"p-floatLabel"),le.nrm(3,"input",2),le.j41(4,"label",3),le.EFF(5,"Status"),le.k0s()(),le.nrm(6,"br-editor",4),le.k0s(),le.nrm(7,"p-confirmDialog",5)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(),le.Y8G("query",ne.queryLbrUsuario),le.R7$(6),le.Aen(le.lJ4(5,recusar_liberacao_reembolso_component_c0)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,dt.B,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Je.L],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(br-file-upload, br-editor)[_ngcontent-%COMP%]{grid-column:1 / -1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return RecusarLiberacaoReembolsoModal})();const recusar_reembolso_assinado_component_c0=()=>({width:"50vw"});let Tn=(()=>{class RecusarReembolsoAssinadoModal extends nn{constructor(){super(),this.dados=this.dialogConfig.data,this.form=this.formBuilder.group({destinatario:[{value:this.dados.destinatario,disabled:!0}],status:[{value:this.dados.status.nomeNbrStatusDemanda,disabled:!0}],descrAndamento:["",ce.k0.required]})}acaoDemanda(){return this.demandaService.recusaReembolsoAssinado(this.dados.idDemanda,this.dados.codLbrUsuario,this.form.value)}static#e=this.ɵfac=function RecusarReembolsoAssinadoModal_Factory(te){return new(te||RecusarReembolsoAssinadoModal)};static#t=this.ɵcmp=le.VBU({type:RecusarReembolsoAssinadoModal,selectors:[["app-concluir-reembolso-modal"]],standalone:!0,features:[le.Vt3,le.aNF],decls:11,vars:5,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","destinatario","formControlName","destinatario","brInputText",""],["for","destinatario"],["id","status","formControlName","status","brInputText",""],["for","status"],["formControlName","descrAndamento","label","Descrição","altura","15rem"],[3,"key"]],template:function RecusarReembolsoAssinadoModal_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.j41(5,"p-floatLabel"),le.nrm(6,"input",3),le.j41(7,"label",4),le.EFF(8,"Status"),le.k0s()(),le.nrm(9,"br-editor",5),le.k0s(),le.nrm(10,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(10),le.Aen(le.lJ4(4,recusar_reembolso_assinado_component_c0)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,dt.B,ge.F,ge.T,Xe.f,Xe.V,Qe.P],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(br-file-upload, br-editor)[_ngcontent-%COMP%]{grid-column:1 / -1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return RecusarReembolsoAssinadoModal})();const rejeitar_solicitacao_component_c0=()=>({width:"50vw"});let Dn=(()=>{class RejeitarSolicitacaoComponent extends nn{constructor(){super(),this.dados=this.dialogConfig.data,this.form=this.formBuilder.group({nomeDestinatario:[{value:this.dados.nomeDestinatario,disabled:!0}],nomeNbrStatusRecusa:[{value:this.dados.nomeNbrStatusRecusa,disabled:!0}],descrAndamento:["",ce.k0.required]})}acaoDemanda(te){return this.demandaService.recusaSolicitacao(this.dados.idDemanda,{codNbrDemandaAndamento:this.dados.idAndamento,descrAndamento:this.form.value.descrAndamento})}static#e=this.ɵfac=function RejeitarSolicitacaoComponent_Factory(te){return new(te||RejeitarSolicitacaoComponent)};static#t=this.ɵcmp=le.VBU({type:RejeitarSolicitacaoComponent,selectors:[["app-rejeitar-solicitacao"]],standalone:!0,features:[le.Vt3,le.aNF],decls:11,vars:5,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","nomeDestinatario","formControlName","nomeDestinatario","brInputText",""],["for","nomeDestinatario"],["id","nomeNbrStatusRecusa","formControlName","nomeNbrStatusRecusa","brInputText",""],["for","nomeNbrStatusRecusa"],["formControlName","descrAndamento","label","Descrição do motivo","altura","15rem"],[3,"key"]],template:function RejeitarSolicitacaoComponent_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.j41(5,"p-floatLabel"),le.nrm(6,"input",3),le.j41(7,"label",4),le.EFF(8,"Status"),le.k0s()(),le.nrm(9,"br-editor",5),le.k0s(),le.nrm(10,"p-confirmDialog",6)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(10),le.Aen(le.lJ4(4,rejeitar_solicitacao_component_c0)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,dt.B,ge.F,ge.T,Xe.f,Xe.V,Qe.P],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   br-file-upload[_ngcontent-%COMP%], .container-corpo-acao-demanda[_ngcontent-%COMP%]   br-editor[_ngcontent-%COMP%]{grid-column:1/-1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return RejeitarSolicitacaoComponent})();const responder_andamento_component_c0=()=>["application/pdf","image/*"],responder_andamento_component_c1=()=>({width:"50vw"});let xn=(()=>{class ResponderAndamentoModal extends nn{constructor(){super(),this.dados=this.dialogConfig.data,this.queryStatusDeamanda=new URLSearchParams({responderAndamento:"V",codNbrTipoAtendimento:String(this.dados.codNbrTipoAtendimento)}),this.form=this.formBuilder.group({nomeUsuarioOrigem:[{value:this.dados.nomeUsuarioCriadorDemanda,disabled:!0}],nomeUsuarioDestino:[{value:this.dados.andamento.lbrUsuarioNbrDemandaAndamentoCodUsuarioRegistroTolbrUsuario.nomeUsuario,disabled:!0}],descrAndamentoDestino:[{value:this.dados.andamento.descrAndamento,disabled:!0}],descrAndamento:["",ce.k0.required],codNbrStatusDemanda:[null,ce.k0.required],codsDocEmpresa:[]})}acaoDemanda(te){return this.demandaService.respondeAndamento(this.dados.idDemanda,this.dados.andamento.codNbrDemandaAndamento,te)}static#e=this.ɵfac=function ResponderAndamentoModal_Factory(te){return new(te||ResponderAndamentoModal)};static#t=this.ɵcmp=le.VBU({type:ResponderAndamentoModal,selectors:[["app-responder-andamento"]],standalone:!0,features:[le.Vt3,le.aNF],decls:10,vars:9,consts:[[1,"container-corpo-acao-demanda",3,"formGroup"],["id","nomeUsuarioDestino","formControlName","nomeUsuarioDestino","brInputText",""],["for","nomeUsuarioDestino"],["label","Status","formControlName","codNbrStatusDemanda","endpoint","nbr-status-demanda","optionLabel","nomeNbrStatusDemanda","optionValue","codNbrStatusDemanda",3,"query"],["formControlName","descrAndamentoDestino","label","Descrição original","altura","10rem"],["formControlName","descrAndamento","label","Descreva a resposta","altura","10rem"],["formControlName","codsDocEmpresa","label","Documento(s)","size","100%",3,"multiple","accept"],[3,"key"]],template:function ResponderAndamentoModal_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"p-floatLabel"),le.nrm(2,"input",1),le.j41(3,"label",2),le.EFF(4,"Destinatário"),le.k0s()(),le.nrm(5,"br-foreign-key",3)(6,"br-editor",4)(7,"br-editor",5)(8,"br-file-upload",6),le.k0s(),le.nrm(9,"p-confirmDialog",7)),2&te&&(le.Y8G("formGroup",ne.form),le.R7$(5),le.Y8G("query",ne.queryStatusDeamanda),le.R7$(3),le.Y8G("multiple",!0)("accept",le.lJ4(7,responder_andamento_component_c0)),le.R7$(),le.Aen(le.lJ4(8,responder_andamento_component_c1)),le.Y8G("key",ne.keyDialog))},dependencies:[re.MD,ce.YN,ce.me,ce.BC,ce.cb,ce.X1,ce.j4,ce.JD,ge.F,ge.T,Xe.f,Xe.V,Qe.P,Dt.r,Je.L,dt.B],styles:[".container-corpo-acao-demanda[_ngcontent-%COMP%]{padding-top:1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));gap:1rem;row-gap:2rem;width:-webkit-fill-available}.container-corpo-acao-demanda[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:is(br-file-upload, br-editor)[_ngcontent-%COMP%]{grid-column:1 / -1}.container-corpo-acao-demanda[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.footer-modal[_ngcontent-%COMP%]{display:flex;padding:0rem 1.25rem!important}"]})}return ResponderAndamentoModal})();function BrDemandaLinhaDoTempoComponent_div_0_div_3_Template(te,ne){if(1&te&&(le.j41(0,"div",50)(1,"label",51),le.EFF(2," Nível de satisfação "),le.k0s(),le.j41(3,"span",52),le.nrm(4,"p-rating",53),le.k0s()()),2&te){const te=le.XpG(2);le.R7$(4),le.Y8G("ngModel",te.nbrDemanda.nivelSatisfacao.nota)("readonly",!0)("cancel",!1)}}function BrDemandaLinhaDoTempoComponent_div_0_p_button_9_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-button",54),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_p_button_9_Template_p_button_onClick_0_listener(){le.eBV(te);const ne=le.XpG(2);return le.Njj(ne.onVisualizarHistorico(ne.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario))})),le.k0s()}2&te&&le.Y8G("rounded",!0)}function BrDemandaLinhaDoTempoComponent_div_0_span_43_Template(te,ne){if(1&te&&(le.j41(0,"span",55),le.EFF(1),le.nI1(2,"date"),le.k0s()),2&te){const te=le.XpG(2);le.R7$(),le.SpI(" ",le.i5U(2,1,te.nbrDemanda.dataFinal,"dd/MM/yyy HH:mm")," ")}}function BrDemandaLinhaDoTempoComponent_div_0_div_44_Template(te,ne){if(1&te&&(le.j41(0,"div",56)(1,"label",57),le.EFF(2," Data/hora do agendamento "),le.k0s(),le.j41(3,"span",58),le.EFF(4),le.nI1(5,"date"),le.k0s()()),2&te){const te=le.XpG(2);le.R7$(4),le.SpI(" ",le.i5U(5,1,te.nbrDemanda.dataHoraAgendamento,"dd/MM/yyy HH:mm")," ")}}function BrDemandaLinhaDoTempoComponent_div_0_div_65_a_4_Template(te,ne){if(1&te&&(le.j41(0,"a",64),le.EFF(1),le.k0s()),2&te){const te=le.XpG(3);le.Y8G("href",te.nbrDemanda.processoJuridico.linkProcesso,le.B4B),le.R7$(),le.SpI(" ",te.nbrDemanda.processoJuridico.numeroProcesso," ")}}function BrDemandaLinhaDoTempoComponent_div_0_div_65_p_button_5_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-button",65),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_div_65_p_button_5_Template_p_button_onClick_0_listener(){le.eBV(te);const ne=le.XpG(3);return le.Njj(ne.onProcessoJuridico())})),le.k0s()}2&te&&le.Y8G("rounded",!0)}function BrDemandaLinhaDoTempoComponent_div_0_div_65_Template(te,ne){if(1&te&&(le.j41(0,"div",59)(1,"label",60),le.EFF(2," Processo jurídico "),le.k0s(),le.j41(3,"div",61),le.DNE(4,BrDemandaLinhaDoTempoComponent_div_0_div_65_a_4_Template,2,2,"a",62)(5,BrDemandaLinhaDoTempoComponent_div_0_div_65_p_button_5_Template,1,1,"p-button",63),le.k0s()()),2&te){const te=le.XpG(2),ne=le.sdS(3);le.R7$(4),le.Y8G("ngIf",te.nbrDemanda.processoJuridico)("ngIfElse",ne),le.R7$(),le.Y8G("ngIf",!te.deveMostrarBotaoProcesso)}}function BrDemandaLinhaDoTempoComponent_div_0_div_66_ul_4_li_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"li",73),le.nrm(1,"i",74),le.j41(2,"p-button",75),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_div_66_ul_4_li_1_Template_p_button_onClick_2_listener(){const ne=le.eBV(te).$implicit,ie=le.XpG(4);return le.Njj(ie.openFile(ne))})),le.EFF(3),le.k0s()()}if(2&te){const te=ne.$implicit;le.R7$(3),le.SpI("",te.docEmpresa.tituloDoc," ")}}function BrDemandaLinhaDoTempoComponent_div_0_div_66_ul_4_Template(te,ne){if(1&te&&(le.j41(0,"ul",71),le.DNE(1,BrDemandaLinhaDoTempoComponent_div_0_div_66_ul_4_li_1_Template,4,1,"li",72),le.k0s()),2&te){const te=le.XpG(3);le.R7$(),le.Y8G("ngForOf",te.nbrDemanda.nbrDemandaDocs)}}function BrDemandaLinhaDoTempoComponent_div_0_div_66_p_button_5_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-button",76),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_div_66_p_button_5_Template_p_button_onClick_0_listener(){le.eBV(te);const ne=le.XpG(3);return le.Njj(ne.onNovoDocumento())})),le.k0s()}2&te&&le.Y8G("rounded",!0)}function BrDemandaLinhaDoTempoComponent_div_0_div_66_Template(te,ne){if(1&te&&(le.j41(0,"div",66)(1,"label",67),le.EFF(2,"Documento(s)"),le.k0s(),le.j41(3,"div",68),le.DNE(4,BrDemandaLinhaDoTempoComponent_div_0_div_66_ul_4_Template,2,1,"ul",69)(5,BrDemandaLinhaDoTempoComponent_div_0_div_66_p_button_5_Template,1,1,"p-button",70),le.k0s()()),2&te){const te=le.XpG(2),ne=le.sdS(3);le.R7$(4),le.Y8G("ngIf",te.nbrDemanda.nbrDemandaDocs.length>0)("ngIfElse",ne),le.R7$(),le.Y8G("ngIf",te.isUsuarioSolicitante)}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_1_p_button_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-button",82),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_1_p_button_1_Template_p_button_onClick_0_listener(){const ne=le.eBV(te).$implicit,ie=le.XpG(4);return ne.onClick(),le.Njj(ie.hideAndamentos())})),le.k0s()}if(2&te){const te=ne.$implicit;le.Y8G("label",te.label)("rounded",!0)("icon",te.icon)("styleClass",te.styleClass)}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_1_Template(te,ne){if(1&te&&(le.j41(0,"div",80),le.DNE(1,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_1_p_button_1_Template,1,4,"p-button",81),le.k0s()),2&te){const te=le.XpG(3);le.R7$(),le.Y8G("ngForOf",te.botoesToolbar)}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_span_4_Template(te,ne){if(1&te&&(le.j41(0,"span",105),le.EFF(1),le.k0s()),2&te){const te=le.XpG().$implicit;le.R7$(),le.Lme("",te.tempoCorrido.dias," ",1===te.tempoCorrido.dias?"dia":"dias","")}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_span_5_Template(te,ne){if(1&te&&(le.j41(0,"span",106),le.EFF(1),le.k0s()),2&te){const te=le.XpG().$implicit;le.R7$(),le.Lme("",te.tempoCorrido.horas," ",1===te.tempoCorrido.horas?"hora":"horas","")}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_span_6_Template(te,ne){if(1&te&&(le.j41(0,"span",107),le.EFF(1),le.k0s()),2&te){const te=le.XpG().$implicit;le.R7$(),le.Lme("",te.tempoCorrido.minutos," ",1===te.tempoCorrido.minutos?"minuto":"minutos","")}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_29_Template(te,ne){if(1&te&&(le.j41(0,"div")(1,"label",108),le.EFF(2,"Agendado para "),le.k0s(),le.j41(3,"span",109),le.EFF(4),le.nI1(5,"date"),le.k0s()()),2&te){const te=le.XpG().$implicit;le.R7$(4),le.JRh(le.i5U(5,1,te.dataHoraAgendamento,"dd/MM/yyyy - HH:mm"))}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_30_Template(te,ne){if(1&te&&(le.j41(0,"div")(1,"label",110),le.EFF(2,"Bloqueado até"),le.k0s(),le.j41(3,"span",111),le.EFF(4),le.nI1(5,"date"),le.k0s()()),2&te){const te=le.XpG().$implicit;le.R7$(4),le.JRh(le.i5U(5,1,te.nbrBloqueioAtendimento.dataFinalBloqueio,"dd/MM/yyyy"))}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_31_li_4_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"li",73),le.nrm(1,"i",74),le.j41(2,"p-button",115),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_31_li_4_Template_p_button_onClick_2_listener(){const ne=le.eBV(te).$implicit,ie=le.XpG(5);return le.Njj(ie.openFile(ne))})),le.EFF(3),le.k0s()()}if(2&te){const te=ne.$implicit;le.R7$(2),le.Y8G("rounded",!0),le.R7$(),le.SpI(" ",te.docEmpresa.tituloDoc,"")}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_31_Template(te,ne){if(1&te&&(le.j41(0,"div",112)(1,"label",113),le.EFF(2,"Documento(s)"),le.k0s(),le.j41(3,"ul",114),le.DNE(4,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_31_li_4_Template,4,2,"li",72),le.k0s()()),2&te){const te=le.XpG().$implicit;le.R7$(4),le.Y8G("ngForOf",te.nbrDemandaAndamentoDocs)}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_p_button_32_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-button",116),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_p_button_32_Template_p_button_onClick_0_listener(){le.eBV(te);const ne=le.XpG().$implicit,ie=le.XpG(3);return le.Njj(ie.onRespondeAndamento(ne))})),le.k0s()}2&te&&le.Y8G("rounded",!0)}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_33_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",117)(1,"p-button",118),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_33_Template_p_button_onClick_1_listener(){le.eBV(te);const ne=le.XpG(4);return le.Njj(ne.aprensentarDialogAceitaEncerramento())})),le.k0s(),le.j41(2,"p-button",119),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_33_Template_p_button_onClick_2_listener(){le.eBV(te);const ne=le.XpG(4);return le.Njj(ne.onRecusaEncerramento())})),le.k0s()()}if(2&te){const te=le.XpG(4);le.R7$(),le.Y8G("label",te.tituloAceite)("rounded",!0),le.R7$(),le.Y8G("label",te.tituloRecusa)("rounded",!0)}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_34_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",117)(1,"p-button",118),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_34_Template_p_button_onClick_1_listener(){le.eBV(te);const ne=le.XpG(4);return le.Njj(ne.onAceitaReembolso())})),le.k0s(),le.j41(2,"p-button",119),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_34_Template_p_button_onClick_2_listener(){le.eBV(te);const ne=le.XpG().$implicit,ie=le.XpG(3);return le.Njj(ie.onRecusaReembolsoAssinado(ne))})),le.k0s()()}if(2&te){const te=le.XpG(4);le.R7$(),le.Y8G("label",te.tituloAceite)("rounded",!0),le.R7$(),le.Y8G("label",te.tituloRecusa)("rounded",!0)}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_35_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",117)(1,"p-button",120),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_35_Template_p_button_onClick_1_listener(){le.eBV(te);const ne=le.XpG(4);return le.Njj(ne.onAceitaReembolso())})),le.k0s()()}2&te&&(le.R7$(),le.Y8G("rounded",!0))}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_36_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",117)(1,"p-button",118),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_36_Template_p_button_onClick_1_listener(){le.eBV(te);const ne=le.XpG(4);return le.Njj(ne.onLiberaReembolso())})),le.k0s(),le.j41(2,"p-button",119),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_36_Template_p_button_onClick_2_listener(){le.eBV(te);const ne=le.XpG().$implicit,ie=le.XpG(3);return le.Njj(ie.onRecusaLiberacaoReembolso(ne))})),le.k0s()()}if(2&te){const te=le.XpG(4);le.R7$(),le.Y8G("label",te.tituloAceite)("rounded",!0),le.R7$(),le.Y8G("label",te.tituloRecusa)("rounded",!0)}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_37_div_0_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",117)(1,"p-button",118),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_37_div_0_Template_p_button_onClick_1_listener(){le.eBV(te);const ne=le.XpG(2).$implicit,ie=le.XpG(3);return le.Njj(ie.onAceitaSolicitacao(ne))})),le.k0s(),le.j41(2,"p-button",119),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_37_div_0_Template_p_button_onClick_2_listener(){le.eBV(te);const ne=le.XpG(2).$implicit,ie=le.XpG(3);return le.Njj(ie.onRecusaSolicitacao(ne))})),le.k0s()()}if(2&te){const te=le.XpG(5);le.R7$(),le.Y8G("label",te.tituloAceite)("rounded",!0),le.R7$(),le.Y8G("label",te.tituloRecusa)("rounded",!0)}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_37_Template(te,ne){if(1&te&&le.DNE(0,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_37_div_0_Template,3,4,"div",100),2&te){const te=le.XpG().$implicit,ne=le.XpG(3);le.Y8G("ngIf",ne.deveMostrarBotaoAceitaRecusa(te))}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_39_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",121)(1,"div",122)(2,"p-button",123),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_39_Template_p_button_onClick_2_listener(){le.eBV(te);const ne=le.XpG(4);return le.Njj(ne.onAlterarReembolso())})),le.k0s(),le.j41(3,"p-button",124),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_39_Template_p_button_onClick_3_listener(){le.eBV(te);const ne=le.XpG(4);return le.Njj(ne.onVisualizarRelatorioReembolso())})),le.k0s(),le.j41(4,"p-button",125),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_39_Template_p_button_onClick_4_listener(){le.eBV(te);const ne=le.XpG(4);return le.Njj(ne.onEnviarDocumentoAssinado())})),le.k0s()(),le.j41(5,"div")(6,"span",126)(7,"strong"),le.EFF(8,"Nota:"),le.k0s()(),le.nrm(9,"br"),le.j41(10,"span",126),le.EFF(11,"Para prosseguir com o reembolso é necessário salvar o relatório e depois assinar na parte inferior e enviá-lo para o responsável clicando no botão "),le.j41(12,"strong"),le.EFF(13,"Enviar relatório assinado"),le.k0s(),le.EFF(14,". "),le.k0s(),le.nrm(15,"br"),le.j41(16,"span",126),le.EFF(17,"Para fazer a assinatura digital acesse "),le.j41(18,"a",127),le.EFF(19,"GOV.COM.BR"),le.k0s()()()()}2&te&&(le.R7$(2),le.Y8G("rounded",!0),le.R7$(),le.Y8G("rounded",!0),le.R7$(),le.Y8G("rounded",!0))}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_40_div_0_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",122)(1,"p-button",129),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_40_div_0_Template_p_button_onClick_1_listener(){le.eBV(te);const ne=le.XpG(5);return le.Njj(ne.onVisualizarReembolso())})),le.k0s()()}2&te&&(le.R7$(),le.Y8G("rounded",!0))}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_40_div_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",122)(1,"p-button",130),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_40_div_1_Template_p_button_onClick_1_listener(){le.eBV(te);const ne=le.XpG(5);return le.Njj(ne.onVisualizarDeclaracaoReembolso())})),le.k0s()()}2&te&&(le.R7$(),le.Y8G("rounded",!0))}function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_40_Template(te,ne){if(1&te&&le.DNE(0,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_40_div_0_Template,2,1,"div",128)(1,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_40_div_1_Template,2,1,"div",128),2&te){const te=le.XpG().$implicit,ne=le.XpG(3);le.Y8G("ngIf",ne.deveMostrarBotaoReembolso(te)),le.R7$(),le.Y8G("ngIf",ne.deveMostrarBotaoDeclaracaoReembolso(te))}}const demanda_linha_do_tempo_component_c0=te=>({"background-resposta-solicitante":te});function BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_Template(te,ne){if(1&te&&(le.j41(0,"div",83)(1,"div",84),le.nrm(2,"i"),le.j41(3,"div",85),le.DNE(4,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_span_4_Template,2,2,"span",86)(5,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_span_5_Template,2,2,"span",87)(6,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_span_6_Template,2,2,"span",88),le.k0s(),le.nrm(7,"span",89),le.k0s(),le.j41(8,"div",90)(9,"span",91),le.EFF(10),le.k0s(),le.j41(11,"span",92),le.EFF(12),le.nI1(13,"date"),le.k0s(),le.j41(14,"div",93)(15,"div",94)(16,"label",10),le.EFF(17),le.k0s(),le.j41(18,"span",11),le.EFF(19),le.k0s()(),le.j41(20,"div",94)(21,"label",19),le.EFF(22),le.k0s(),le.j41(23,"span",20),le.EFF(24),le.k0s()()(),le.j41(25,"div",95)(26,"label",25),le.EFF(27,"Descrição"),le.k0s(),le.nrm(28,"br-editor-view",96),le.k0s(),le.DNE(29,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_29_Template,6,4,"div",97)(30,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_30_Template,6,4,"div",97)(31,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_31_Template,5,1,"div",98)(32,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_p_button_32_Template,1,1,"p-button",99)(33,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_33_Template,3,4,"div",100)(34,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_34_Template,3,4,"div",101)(35,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_35_Template,2,1,"div",101)(36,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_36_Template,3,4,"div",101)(37,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_37_Template,1,1,"ng-template",null,102,le.C5r)(39,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_div_39_Template,20,3,"div",103)(40,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_ng_template_40_Template,2,2,"ng-template",null,104,le.C5r),le.k0s()()),2&te){const te=ne.$implicit,ie=le.sdS(38),re=le.sdS(41),ce=le.XpG(3);le.R7$(2),le.Aen("background-color: "+te.nbrStatusDemanda.corIcone),le.HbH("pi "+te.nbrStatusDemanda.nomeIcone),le.R7$(2),le.Y8G("ngIf",te.tempoCorrido.dias),le.R7$(),le.Y8G("ngIf",te.tempoCorrido.horas),le.R7$(),le.Y8G("ngIf",te.tempoCorrido.minutos),le.R7$(),le.Aen("background-color: "+te.nbrStatusDemanda.corIcone),le.R7$(),le.Aen("border-color: "+te.nbrStatusDemanda.corIcone),le.R7$(2),le.SpI(" ",te.nbrStatusDemanda.nomeNbrStatusDemanda," "),le.R7$(2),le.SpI(" ",le.i5U(13,32,te.dataInicial,"dd/MM/yyy HH:mm")," "),le.R7$(5),le.SpI(" De (",(null==te.lbrUsuarioNbrDemandaAndamentoCodUsuarioRegistroTolbrUsuario.grupoPessoalLbrUsuarioCodGrupoPessoalTogrupoPessoal?null:te.lbrUsuarioNbrDemandaAndamentoCodUsuarioRegistroTolbrUsuario.grupoPessoalLbrUsuarioCodGrupoPessoalTogrupoPessoal.nomeGrupoPessoal)||(null==te.lbrUsuarioNbrDemandaAndamentoCodUsuarioRegistroTolbrUsuario.lbrTipoUsuario?null:te.lbrUsuarioNbrDemandaAndamentoCodUsuarioRegistroTolbrUsuario.lbrTipoUsuario.nomeTipoUsuario),") "),le.R7$(2),le.SpI(" ",te.lbrUsuarioNbrDemandaAndamentoCodUsuarioRegistroTolbrUsuario.nomeUsuario," "),le.R7$(3),le.SpI(" Para (",(null==te.lbrUsuarioNbrDemandaAndamentoCodLbrUsuarioExecutorTolbrUsuario.grupoPessoalLbrUsuarioCodGrupoPessoalTogrupoPessoal?null:te.lbrUsuarioNbrDemandaAndamentoCodLbrUsuarioExecutorTolbrUsuario.grupoPessoalLbrUsuarioCodGrupoPessoalTogrupoPessoal.nomeGrupoPessoal)||(null==te.lbrUsuarioNbrDemandaAndamentoCodLbrUsuarioExecutorTolbrUsuario.lbrTipoUsuario?null:te.lbrUsuarioNbrDemandaAndamentoCodLbrUsuarioExecutorTolbrUsuario.lbrTipoUsuario.nomeTipoUsuario),") "),le.R7$(2),le.SpI(" ",te.lbrUsuarioNbrDemandaAndamentoCodLbrUsuarioExecutorTolbrUsuario.nomeUsuario," "),le.R7$(),le.Y8G("ngClass",le.eq3(35,demanda_linha_do_tempo_component_c0,te.codUsuarioRegistro===ce.nbrDemanda.codLbrUsuario)),le.R7$(3),le.Y8G("texto",te.descrAndamento),le.R7$(),le.Y8G("ngIf",te.dataHoraAgendamento),le.R7$(),le.Y8G("ngIf",te.nbrBloqueioAtendimento),le.R7$(),le.Y8G("ngIf",te.nbrDemandaAndamentoDocs.length>0),le.R7$(),le.Y8G("ngIf",ce.deveMostrarBotaoResponder(te)),le.R7$(),le.Y8G("ngIf",ce.deveMostrarBotoesEncerramento(te)),le.R7$(),le.Y8G("ngIf",ce.deveMostrarBotoesAceiteRelatorioAssinadoReembolso(te))("ngIfElse",ie),le.R7$(),le.Y8G("ngIf",ce.deveMostrarBotoesRecusaRelatorioAssinadoReembolso(te))("ngIfElse",ie),le.R7$(),le.Y8G("ngIf",ce.deveMostrarBotoesLiberaReembolso(te))("ngIfElse",ie),le.R7$(3),le.Y8G("ngIf",ce.deveMostrarBotaoAssinaturaReembolso(te))("ngIfElse",re)}}function BrDemandaLinhaDoTempoComponent_div_0_section_67_Template(te,ne){if(1&te&&(le.j41(0,"section",77),le.DNE(1,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_1_Template,2,1,"div",78)(2,BrDemandaLinhaDoTempoComponent_div_0_section_67_div_2_Template,42,37,"div",79),le.k0s()),2&te){const te=le.XpG(2);le.Y8G("@fade",void 0),le.R7$(),le.Y8G("ngIf",te.deveMostrarToolbar()),le.R7$(),le.Y8G("ngForOf",te.andamentos)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_ng_container_3_span_1_Template(te,ne){if(1&te&&(le.j41(0,"span",138),le.EFF(1),le.k0s()),2&te){const te=le.XpG().$implicit;le.R7$(),le.JRh(te.label)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,BrDemandaLinhaDoTempoComponent_div_0_section_68_ng_container_3_span_1_Template,2,1,"span",137),le.bVm()),2&te){const te=ne.$implicit,ie=le.XpG(3);le.R7$(),le.Y8G("ngIf",te.acao===ie.acaoDemanda)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_agendar_demanda_6_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"agendar-demanda",139),le.bIt("salvaAcao",(function BrDemandaLinhaDoTempoComponent_div_0_section_68_agendar_demanda_6_Template_agendar_demanda_salvaAcao_0_listener(){le.eBV(te);const ne=le.XpG(3);return le.Njj(ne.onSalvarAcao())})),le.k0s()}if(2&te){const te=le.XpG(3);le.Y8G("nbrDemanda",te.nbrDemanda)("nbrDemandaService",te.nbrDemandaService)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_cancelar_demanda_7_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"cancelar-demanda",139),le.bIt("salvaAcao",(function BrDemandaLinhaDoTempoComponent_div_0_section_68_cancelar_demanda_7_Template_cancelar_demanda_salvaAcao_0_listener(){le.eBV(te);const ne=le.XpG(3);return le.Njj(ne.onSalvarAcao())})),le.k0s()}if(2&te){const te=le.XpG(3);le.Y8G("nbrDemanda",te.nbrDemanda)("nbrDemandaService",te.nbrDemandaService)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_comunicacao_interna_8_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"comunicacao-interna",139),le.bIt("salvaAcao",(function BrDemandaLinhaDoTempoComponent_div_0_section_68_comunicacao_interna_8_Template_comunicacao_interna_salvaAcao_0_listener(){le.eBV(te);const ne=le.XpG(3);return le.Njj(ne.onSalvarAcao())})),le.k0s()}if(2&te){const te=le.XpG(3);le.Y8G("nbrDemanda",te.nbrDemanda)("nbrDemandaService",te.nbrDemandaService)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_comunicar_solicitante_9_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"comunicar-solicitante",139),le.bIt("salvaAcao",(function BrDemandaLinhaDoTempoComponent_div_0_section_68_comunicar_solicitante_9_Template_comunicar_solicitante_salvaAcao_0_listener(){le.eBV(te);const ne=le.XpG(3);return le.Njj(ne.onSalvarAcao())})),le.k0s()}if(2&te){const te=le.XpG(3);le.Y8G("nbrDemanda",te.nbrDemanda)("nbrDemandaService",te.nbrDemandaService)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_criar_pos_encerramento_10_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"criar-pos-encerramento",139),le.bIt("salvaAcao",(function BrDemandaLinhaDoTempoComponent_div_0_section_68_criar_pos_encerramento_10_Template_criar_pos_encerramento_salvaAcao_0_listener(){le.eBV(te);const ne=le.XpG(3);return le.Njj(ne.onSalvarAcao())})),le.k0s()}if(2&te){const te=le.XpG(3);le.Y8G("nbrDemanda",te.nbrDemanda)("nbrDemandaService",te.nbrDemandaService)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_encaminhar_demanda_11_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"encaminhar-demanda",139),le.bIt("salvaAcao",(function BrDemandaLinhaDoTempoComponent_div_0_section_68_encaminhar_demanda_11_Template_encaminhar_demanda_salvaAcao_0_listener(){le.eBV(te);const ne=le.XpG(3);return le.Njj(ne.onSalvarAcao())})),le.k0s()}if(2&te){const te=le.XpG(3);le.Y8G("nbrDemanda",te.nbrDemanda)("nbrDemandaService",te.nbrDemandaService)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_encerrar_demanda_12_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"encerrar-demanda",139),le.bIt("salvaAcao",(function BrDemandaLinhaDoTempoComponent_div_0_section_68_encerrar_demanda_12_Template_encerrar_demanda_salvaAcao_0_listener(){le.eBV(te);const ne=le.XpG(3);return le.Njj(ne.onSalvarAcao())})),le.k0s()}if(2&te){const te=le.XpG(3);le.Y8G("nbrDemanda",te.nbrDemanda)("nbrDemandaService",te.nbrDemandaService)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_novo_andamento_13_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"novo-andamento",139),le.bIt("salvaAcao",(function BrDemandaLinhaDoTempoComponent_div_0_section_68_novo_andamento_13_Template_novo_andamento_salvaAcao_0_listener(){le.eBV(te);const ne=le.XpG(3);return le.Njj(ne.onSalvarAcao())})),le.k0s()}if(2&te){const te=le.XpG(3);le.Y8G("nbrDemanda",te.nbrDemanda)("nbrDemandaService",te.nbrDemandaService)}}function BrDemandaLinhaDoTempoComponent_div_0_section_68_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"section",131)(1,"div",80)(2,"p-button",132),le.bIt("onClick",(function BrDemandaLinhaDoTempoComponent_div_0_section_68_Template_p_button_onClick_2_listener(){le.eBV(te);const ne=le.XpG(2);return le.Njj(ne.onVoltar())})),le.k0s(),le.DNE(3,BrDemandaLinhaDoTempoComponent_div_0_section_68_ng_container_3_Template,2,1,"ng-container",133),le.k0s(),le.qex(4,134),le.j41(5,"div",135),le.DNE(6,BrDemandaLinhaDoTempoComponent_div_0_section_68_agendar_demanda_6_Template,1,2,"agendar-demanda",136)(7,BrDemandaLinhaDoTempoComponent_div_0_section_68_cancelar_demanda_7_Template,1,2,"cancelar-demanda",136)(8,BrDemandaLinhaDoTempoComponent_div_0_section_68_comunicacao_interna_8_Template,1,2,"comunicacao-interna",136)(9,BrDemandaLinhaDoTempoComponent_div_0_section_68_comunicar_solicitante_9_Template,1,2,"comunicar-solicitante",136)(10,BrDemandaLinhaDoTempoComponent_div_0_section_68_criar_pos_encerramento_10_Template,1,2,"criar-pos-encerramento",136)(11,BrDemandaLinhaDoTempoComponent_div_0_section_68_encaminhar_demanda_11_Template,1,2,"encaminhar-demanda",136)(12,BrDemandaLinhaDoTempoComponent_div_0_section_68_encerrar_demanda_12_Template,1,2,"encerrar-demanda",136)(13,BrDemandaLinhaDoTempoComponent_div_0_section_68_novo_andamento_13_Template,1,2,"novo-andamento",136),le.k0s(),le.bVm(),le.k0s()}if(2&te){const te=le.XpG(2);le.Y8G("@fade",void 0),le.R7$(2),le.Y8G("rounded",!0),le.R7$(),le.Y8G("ngForOf",te.botoesToolbar),le.R7$(),le.Y8G("ngSwitch",te.acaoDemanda),le.R7$(2),le.Y8G("ngSwitchCase",te.acaoDemandaEnum.Agendar),le.R7$(),le.Y8G("ngSwitchCase",te.acaoDemandaEnum.Cancelar),le.R7$(),le.Y8G("ngSwitchCase",te.acaoDemandaEnum.ComunicacaoInterna),le.R7$(),le.Y8G("ngSwitchCase",te.acaoDemandaEnum.ComunicarSolicitante),le.R7$(),le.Y8G("ngSwitchCase",te.acaoDemandaEnum.PosEncerramento),le.R7$(),le.Y8G("ngSwitchCase",te.acaoDemandaEnum.Encaminhar),le.R7$(),le.Y8G("ngSwitchCase",te.acaoDemandaEnum.EncerrarDemanda),le.R7$(),le.Y8G("ngSwitchCase",te.acaoDemandaEnum.AdicionarAndamento)}}const demanda_linha_do_tempo_component_c1=te=>({standalone:te});function BrDemandaLinhaDoTempoComponent_div_0_Template(te,ne){if(1&te&&(le.j41(0,"div",5,6)(2,"section",7),le.DNE(3,BrDemandaLinhaDoTempoComponent_div_0_div_3_Template,5,3,"div",8),le.j41(4,"div",9)(5,"label",10),le.EFF(6),le.k0s(),le.j41(7,"span",11),le.EFF(8),le.DNE(9,BrDemandaLinhaDoTempoComponent_div_0_p_button_9_Template,1,1,"p-button",12),le.k0s()(),le.j41(10,"div",13)(11,"label",14),le.EFF(12,"E-mail"),le.k0s(),le.j41(13,"span",15),le.EFF(14),le.k0s()(),le.j41(15,"div",16)(16,"label",17),le.EFF(17,"Telefone"),le.k0s(),le.j41(18,"span",15),le.EFF(19),le.k0s()(),le.j41(20,"div",18)(21,"label",19),le.EFF(22),le.k0s(),le.j41(23,"span",20),le.EFF(24),le.k0s()(),le.j41(25,"div",21)(26,"label",22),le.EFF(27," Assunto "),le.k0s(),le.j41(28,"span",23),le.EFF(29),le.k0s()(),le.j41(30,"div",24)(31,"label",25),le.EFF(32," Descrição "),le.k0s(),le.nrm(33,"br-editor-view",26),le.k0s(),le.j41(34,"div",27)(35,"label",28),le.EFF(36," Data inicial "),le.k0s(),le.j41(37,"span",29),le.EFF(38),le.nI1(39,"date"),le.k0s()(),le.j41(40,"div",30)(41,"label",31),le.EFF(42," Data final "),le.k0s(),le.DNE(43,BrDemandaLinhaDoTempoComponent_div_0_span_43_Template,3,4,"span",32),le.k0s(),le.DNE(44,BrDemandaLinhaDoTempoComponent_div_0_div_44_Template,6,4,"div",33),le.j41(45,"div",34)(46,"label",35),le.EFF(47," Status "),le.k0s(),le.j41(48,"span",36),le.EFF(49),le.k0s()(),le.j41(50,"div",37)(51,"label",38),le.EFF(52," Modo de atendimento "),le.k0s(),le.j41(53,"span",39),le.EFF(54),le.k0s()(),le.j41(55,"div",40)(56,"label",41),le.EFF(57," Forma de atendimento "),le.k0s(),le.j41(58,"span",42),le.EFF(59),le.k0s()(),le.j41(60,"div",43)(61,"label",44),le.EFF(62," Área de atendimento "),le.k0s(),le.j41(63,"span",45),le.EFF(64),le.k0s()(),le.DNE(65,BrDemandaLinhaDoTempoComponent_div_0_div_65_Template,6,3,"div",46)(66,BrDemandaLinhaDoTempoComponent_div_0_div_66_Template,6,3,"div",47),le.k0s(),le.DNE(67,BrDemandaLinhaDoTempoComponent_div_0_section_67_Template,3,3,"section",48)(68,BrDemandaLinhaDoTempoComponent_div_0_section_68_Template,14,12,"section",49),le.k0s()),2&te){const te=le.XpG(),ne=le.sdS(3);le.Y8G("ngClass",le.eq3(26,demanda_linha_do_tempo_component_c1,te.standalone)),le.R7$(3),le.Y8G("ngIf",null==te.nbrDemanda.nivelSatisfacao?null:te.nbrDemanda.nivelSatisfacao.nota),le.R7$(3),le.SpI(" Solicitante (",null==te.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.lbrTipoUsuario?null:te.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.lbrTipoUsuario.nomeTipoUsuario,") "),le.R7$(2),le.SpI(" ",te.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.nomeUsuario," "),le.R7$(),le.Y8G("ngIf","V"===te.nbrDemanda.nbrTipoAtendimento.mostraHistorico),le.R7$(5),le.SpI(" ",te.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.emailUsuario," "),le.R7$(5),le.SpI(" ",te.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.celularFone," "),le.R7$(3),le.SpI(" Executor (",te.isJuridico?te.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.lbrTipoUsuario.nomeTipoUsuario:(null==te.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.grupoPessoalLbrUsuarioCodGrupoPessoalTogrupoPessoal?null:te.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.grupoPessoalLbrUsuarioCodGrupoPessoalTogrupoPessoal.nomeGrupoPessoal)||te.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.lbrTipoUsuario.nomeTipoUsuario,") "),le.R7$(2),le.SpI(" ",te.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.nomeUsuario," "),le.R7$(5),le.SpI(" ",te.nbrDemanda.assunto," "),le.R7$(4),le.Y8G("texto",te.nbrDemanda.descrDemanda),le.R7$(5),le.SpI(" ",le.i5U(39,23,te.nbrDemanda.dataInicial,"dd/MM/yyy HH:mm")," "),le.R7$(5),le.Y8G("ngIf",te.nbrDemanda.dataFinal)("ngIfElse",ne),le.R7$(),le.Y8G("ngIf",te.nbrDemanda.dataHoraAgendamento),le.R7$(5),le.SpI(" ",te.nbrDemanda.nbrStatusDemanda.nomeNbrStatusDemanda," "),le.R7$(5),le.SpI(" ",te.nbrDemanda.nbrModoAtendimento.nomeNbrModoAtendimento," "),le.R7$(5),le.SpI(" ",te.nbrDemanda.nbrFormaAtendimento.nomeNbrFormaAtendimento," "),le.R7$(5),le.SpI(" ",te.nbrDemanda.nbrAreaAtendimento.nomeNbrAreaAtendimento," "),le.R7$(),le.Y8G("ngIf",te.isJuridico),le.R7$(),le.Y8G("ngIf",te.isJuridico),le.R7$(),le.Y8G("ngIf",te.mostrarAndamentos),le.R7$(),le.Y8G("ngIf",te.mostrarAcao)}}function BrDemandaLinhaDoTempoComponent_div_1_Template(te,ne){1&te&&(le.j41(0,"div",140),le.nrm(1,"p-skeleton",141),le.j41(2,"div",142),le.nrm(3,"p-skeleton",143)(4,"p-skeleton",143)(5,"p-skeleton",143),le.k0s(),le.j41(6,"div",144),le.nrm(7,"p-skeleton",145)(8,"p-skeleton",145)(9,"p-skeleton",145),le.k0s()())}function BrDemandaLinhaDoTempoComponent_ng_template_2_Template(te,ne){1&te&&(le.j41(0,"span"),le.EFF(1,"Não possui"),le.k0s())}const demanda_linha_do_tempo_component_c2=()=>({width:"50vw"});var En=function(te){return te[te.ComunicarSolicitante=0]="ComunicarSolicitante",te[te.Encaminhar=1]="Encaminhar",te[te.ComunicacaoInterna=2]="ComunicacaoInterna",te[te.EncerrarDemanda=3]="EncerrarDemanda",te[te.Agendar=4]="Agendar",te[te.Cancelar=5]="Cancelar",te[te.PosEncerramento=6]="PosEncerramento",te[te.AdicionarAndamento=7]="AdicionarAndamento",te}(En||{});let Rn=(()=>{class BrDemandaLinhaDoTempoComponent{constructor(){this.authService=(0,le.WQX)(Ge.u),this.nbrStatusDemandaService=(0,le.WQX)(Ye.U),this.brDialogService=(0,le.WQX)(ze.i),this.confirmationService=(0,le.WQX)(ue.td),this.sanitizer=(0,le.WQX)(de.up),this.nbrReembolsoService=(0,le.WQX)(qe.Q),this.keyDialog=(0,$e.A)(),this.acaoDemandaEnum=En,this.mostrarAndamentos=!0,this.mostrarAcao=!1,this.standalone=!1}get isJuridico(){return 1===this.nbrDemanda?.codNbrTipoAtendimento}get isLoading(){return this.nbrDemandaService.state.isDetailsLoading}ngOnInit(){this.subs=this.nbrDemandaService.idRowDetails$.subscribe((te=>{te&&(this.nbrDemandaService.state.isSalvarDetailsHabilitado=!1,this.nbrDemandaService.onFechar=()=>{this.nbrDemandaService.state.isDetailsOpen=!1,this.nbrDemandaService.state.isDetailsLoading=!1,this.acaoDemanda=void 0,this.mostrarAcao=!1,this.mostrarAndamentos=!0,this.nbrDemandaService.state.isSalvarDetailsHabilitado=!0},this.changeDemanda())}))}ngAfterViewInit(){this.nbrReembolsoService.defaultDetailsValue={...this.nbrReembolsoService.defaultDetailsValue,codLbrUsuario:this.authService.usuario?.codLbrUsuario},this.nbrReembolsoService.controlsDisabledOnDetails=[...this.nbrReembolsoService.controlsDisabledOnDetails,"codLbrUsuario"]}ngOnDestroy(){this.subs?.unsubscribe()}onInfoUsuarioToggle(te,ne){this.infoUsuario={cpf:ne.cpf,emailUsuario:ne.emailUsuario||"Não Possui",celularFone:ne.celularFone||"Não Possui"}}deveMostrarToolbar(){return this.deveMostrarPosEncerramento||!this.apenasVisualizar&&!this.nbrDemanda?.dataFinal&&!this.nbrDemanda?.dataEncerramento&&this.isUsuarioExecutor}onVisualizarHistorico(te){const ne=ie(4968).w;this.brDialogService.open(ne,{header:"Histórico de Demandas",modal:!1,contentStyle:{padding:"0"},data:{isJuridico:this.isJuridico,lbrUsuario:te}})}onVoltar(){this.nbrDemandaService.state.isSalvarDetailsHabilitado=!1,this.nbrDemandaService.onSalvar=void 0,this.mostrarAcao=!1,setTimeout((()=>{this.acaoDemanda=void 0,this.mostrarAndamentos=!0}),300)}get idUsuarioLogado(){return this.authService.usuario?.codLbrUsuario}get isUsuarioSolicitante(){return this.nbrDemanda?.codLbrUsuario===this.authService.usuario.codLbrUsuario}get isUsuarioExecutor(){return this.nbrDemanda?.codLbrUsuarioExecutor===this.authService.usuario.codLbrUsuario}get deveMostrarCancelar(){return"V"===this.nbrDemanda?.nbrTipoAtendimento.temCancelamento&&this.isDemandaEmAberto}get deveMostrarAgendar(){return"V"===this.nbrDemanda?.nbrTipoAtendimento.temAgendamento&&this.isDemandaEmAberto}get deveMostrarEncaminhar(){return"V"===this.nbrDemanda?.nbrTipoAtendimento.temEncaminhamento&&this.isDemandaEmAberto}get deveMostrarPosEncerramento(){return this.isUsuarioExecutor&&this.isJuridico&&!this.isDemandaEmAberto}get isDemandaEmAberto(){return null===this.nbrDemanda?.dataFinal}get deveMostrarBotaoProcesso(){return!this.apenasVisualizar&&(this.isUsuarioExecutor&&this.isDemandaEmAberto)}hideAndamentos(){this.mostrarAndamentos=!1,setTimeout((()=>{this.mostrarAcao=!0}),300)}deveMostrarBotaoResponder(te){return this.nbrDemanda?.codLbrUsuario===this.idUsuarioLogado&&te.codUsuarioRegistro!==this.nbrDemanda?.codLbrUsuario&&!te.nbrStatusDemanda.foiEncerradoPeloExecutor&&"V"===te.nbrStatusDemanda.responderAndamento&&!this.nbrDemanda?.dataFinal}deveMostrarBotoesEncerramento(te){return this.nbrDemanda?.codLbrUsuario===this.idUsuarioLogado&&te.nbrStatusDemanda.foiEncerradoPeloExecutor&&!te.dataFinal&&!this.nbrDemanda?.dataFinal}deveMostrarBotoesAceiteRelatorioAssinadoReembolso(te){return!this.nbrDemanda?.dataFinal&&!te.dataFinal&&te.nbrStatusDemanda.codNbrStatusDemanda===this.statusAssinaturaDigital?.codNbrStatusDemanda&&this.nbrDemanda?.nbrReembolsos&&this.nbrDemanda?.nbrReembolsos.length>0&&this.nbrDemanda?.nbrReembolsos[0].codDocEmpresaRel&&te.codLbrUsuarioExecutor===this.authService.usuario?.codLbrUsuario}deveMostrarBotoesRecusaRelatorioAssinadoReembolso(te){return!this.nbrDemanda?.dataFinal&&!te.dataFinal&&this.nbrDemanda?.nbrReembolsos&&this.nbrDemanda?.nbrReembolsos.length>0&&!this.nbrDemanda.nbrReembolsos[0].codDocEmpresaRel&&this.nbrDemanda.nbrReembolsos[0].codLbrUsuarioAceite===this.authService.usuario?.codLbrUsuario}deveMostrarBotoesLiberaReembolso(te){return!this.nbrDemanda?.dataFinal&&!te.dataFinal&&this.nbrDemanda?.nbrReembolsos&&this.nbrDemanda?.nbrReembolsos.length>0&&this.nbrDemanda?.nbrReembolsos[0].codDocEmpresaRel&&!this.nbrDemanda?.nbrReembolsos[0].codDocEmpresaCompPagto&&this.nbrDemanda?.nbrReembolsos[0].codLbrUsuarioAceite&&te.codLbrUsuarioExecutor===this.authService.usuario?.codLbrUsuario&&this.nbrDemanda?.nbrReembolsos[0].codLbrUsuarioAceite!==this.authService.usuario?.codLbrUsuario}deveMostrarBotaoReembolso(te){return this.nbrDemanda?.nbrReembolsos&&this.nbrDemanda?.nbrReembolsos.length>0&&te.codLbrUsuarioExecutor===this.authService.usuario?.codLbrUsuario&&this.nbrDemanda?.nbrReembolsos[0].codDocEmpresaRel&&!te.dataFinal}deveMostrarBotaoAceitaRecusa(te){return te.codLbrUsuarioExecutor===this.idUsuarioLogado&&!te.dataFinal&&!this.deveMostrarBotaoReembolso(te)&&!this.deveMostrarBotoesRecusaRelatorioAssinadoReembolso(te)&&!this.deveMostrarBotoesLiberaReembolso(te)&&te.nbrStatusDemanda.nbrStatusDemandaNbrStatusDemandaCodNbrStatusAceiteTonbrStatusDemanda&&te.nbrStatusDemanda.nbrStatusDemandaNbrStatusDemandaCodNbrStatusRecusaTonbrStatusDemanda}deveMostrarBotaoAssinaturaReembolso(te){return this.nbrDemanda?.nbrReembolsos&&this.nbrDemanda?.nbrReembolsos.length>0&&this.nbrDemanda?.codLbrUsuario===this.authService.usuario?.codLbrUsuario&&!this.nbrDemanda?.nbrReembolsos[0].codDocEmpresaRel&&!te.dataFinal}deveMostrarBotaoDeclaracaoReembolso(te){return this.nbrDemanda?.nbrReembolsos&&this.nbrDemanda?.nbrReembolsos.length>0&&this.nbrDemanda?.nbrTipoAtendimento.lbrUsuario.codLbrUsuario===this.authService.usuario?.codLbrUsuario&&this.nbrDemanda?.nbrReembolsos[0].codDocEmpresaCompPagto&&this.nbrDemanda?.nbrReembolsos[0].nbrTipoReembolso.codLbrRelDeclaracao&&te.nbrDemandaAndamentoDocs.length>0&&this.nbrDemanda?.nbrReembolsos[0].codDocEmpresaCompPagto===Number(te.nbrDemandaAndamentoDocs[0].codDocEmpresa)}get tituloAceite(){return this.nbrDemanda?.nbrTipoAtendimento.tituloAceite||"Aceitar"}get tituloRecusa(){return this.nbrDemanda?.nbrTipoAtendimento.tituloRecusa||"Recusar"}changeDemanda(){this.nbrDemandaService.idRowDetails&&(this.nbrDemandaService.state.isDetailsLoading=!0,(0,Le.p)([this.nbrDemandaService.getRecord(this.nbrDemandaService.idRowDetails),this.nbrStatusDemandaService.getStatusAssinaturaDigital()]).pipe((0,Oe.j)((()=>this.nbrDemandaService.state.isDetailsLoading=!1))).subscribe({next:te=>{this.statusAssinaturaDigital=te[1],this.nbrDemanda=te[0];const ne=[...this.nbrDemanda.nbrDemandaAndamentos],ie=this.authService.usuario?.codLbrUsuario;switch(this.isJuridico&&!this.isUsuarioSolicitante||this.authService.usuario?.isAdmin||this.apenasVisualizar||this.isUsuarioExecutor||this.authService.usuario?.isRespGrupo?this.andamentos=ne:this.andamentos=ne.filter((te=>te.codLbrUsuarioExecutor===ie||te.codUsuarioRegistro===ie)),this.nbrDemanda.codNbrTipoAtendimento){case 1:this.botoesToolbar=this.buildBotoesDemandaJuridico();break;case 2:this.botoesToolbar=this.buildBotoesDemdendaPsicologico()}}}))}buildBotoesDemandaJuridico(){return[...this.isDemandaEmAberto?[this.buildAcaoComunicarSolicitante()]:[],...this.deveMostrarEncaminhar?[this.buildAcaoEncaminhar()]:[],...this.isDemandaEmAberto?[this.buildAcaoComunicacaoInterna()]:[],...this.isDemandaEmAberto?[this.buildAcaoEncerrarDemanda()]:[],...this.deveMostrarAgendar?[this.buildAcaoAgendar()]:[],...this.deveMostrarCancelar?[this.buildAcaoCancelar()]:[],...this.deveMostrarPosEncerramento?[this.buildAcaoPosEncerramento()]:[],...this.isDemandaEmAberto?[this.buildNovoAndamento()]:[]]}buildBotoesDemdendaPsicologico(){return[...this.isDemandaEmAberto?[this.buildAcaoComunicarSolicitante()]:[],...this.deveMostrarAgendar?[this.buildAcaoAgendar()]:[],...this.isDemandaEmAberto?[this.buildAcaoEncerrarDemanda("Confirmar consulta")]:[],...this.deveMostrarCancelar?[this.buildAcaoCancelar()]:[],...this.deveMostrarEncaminhar?[this.buildAcaoEncaminhar()]:[],...this.isDemandaEmAberto?[this.buildAcaoComunicacaoInterna()]:[],...this.isDemandaEmAberto?[this.buildNovoAndamento()]:[]]}buildAcaoComunicarSolicitante(te){return{label:te??"Comunicar Solicitante",icon:"pi pi-comments",styleClass:"p-button-info",acao:En.ComunicarSolicitante,onClick:()=>{this.acaoDemanda=En.ComunicarSolicitante,this.nbrDemandaService.state.isSalvarDetailsHabilitado=!0,this.nbrDemandaService.labelBotaoSalvarDetails="Salvar"}}}buildAcaoEncaminhar(te){return{label:te??"Encaminhar",icon:"pi pi-reply",styleClass:"p-button-success",acao:En.Encaminhar,onClick:()=>{this.acaoDemanda=En.Encaminhar,this.nbrDemandaService.state.isSalvarDetailsHabilitado=!0,this.nbrDemandaService.labelBotaoSalvarDetails="Salvar"}}}buildAcaoComunicacaoInterna(te){return{label:te??"Comunicação Interna",icon:"pi pi-comments",styleClass:"p-button-help",acao:En.ComunicacaoInterna,onClick:()=>{this.acaoDemanda=En.ComunicacaoInterna,this.nbrDemandaService.state.isSalvarDetailsHabilitado=!0,this.nbrDemandaService.labelBotaoSalvarDetails="Salvar"}}}buildAcaoEncerrarDemanda(te){return{label:te??"Encerrar Demanda",icon:"pi pi-ban",styleClass:"p-button-danger",acao:En.EncerrarDemanda,onClick:()=>{this.acaoDemanda=En.EncerrarDemanda,this.nbrDemandaService.state.isSalvarDetailsHabilitado=!0,this.nbrDemandaService.labelBotaoSalvarDetails="Salvar"}}}buildAcaoAgendar(te){return{label:te??"Agendar",icon:"pi pi-calendar",styleClass:"p-button-warning",acao:En.Agendar,onClick:()=>{this.acaoDemanda=En.Agendar,this.nbrDemandaService.state.isSalvarDetailsHabilitado=!0,this.nbrDemandaService.labelBotaoSalvarDetails="Salvar"}}}buildAcaoCancelar(te){return{label:te??"Cancelar Consulta",icon:"pi pi-times",styleClass:"p-button-danger",acao:En.Cancelar,onClick:()=>{this.acaoDemanda=En.Cancelar,this.nbrDemandaService.state.isSalvarDetailsHabilitado=!0,this.nbrDemandaService.labelBotaoSalvarDetails="Salvar"}}}buildAcaoPosEncerramento(te){return{label:te??"Criar Andamento Pós-encerramento",icon:"pi pi-ban",styleClass:"p-button-danger",acao:En.PosEncerramento,onClick:()=>{this.acaoDemanda=En.PosEncerramento,this.nbrDemandaService.state.isSalvarDetailsHabilitado=!0}}}buildNovoAndamento(te){return{label:te??"Novo Andamento",icon:"pi pi-plus",styleClass:"p-button-success",acao:En.AdicionarAndamento,onClick:()=>{this.acaoDemanda=En.AdicionarAndamento,this.nbrDemandaService.state.isSalvarDetailsHabilitado=!0}}}onRespondeAndamento(te){const ne={idDemanda:this.nbrDemanda.codNbrDemanda,andamento:te,nomeUsuarioCriadorDemanda:this.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.nomeUsuario,codNbrTipoAtendimento:this.nbrDemanda.codNbrTipoAtendimento};this.abreModalAcoes(xn,{header:"Responder Andamento",data:ne,confirmarLabel:"Responder"})}aprensentarDialogAceitaEncerramento(){const te={idDemanda:this.nbrDemanda.codNbrDemanda};this.abreModalAcoes(sn,{header:"Confirmar encerramento",data:te})}onRecusaEncerramento(){this.confirmationService.confirm({header:"Recusar",icon:ue.EE.INFO_CIRCLE,message:"Tem certeza desta escolha?",key:this.keyDialog,accept:()=>{const te={idDemanda:this.nbrDemanda.codNbrDemanda,nomeExecutor:this.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.nomeUsuario,codNbrTipoAtendimento:this.nbrDemanda.codNbrTipoAtendimento};this.abreModalAcoes(wn,{header:"Recusar Encerramento",data:te,confirmarLabel:"Enviar recusa"})}})}onAceitaReembolso(){const te={idDemanda:this.nbrDemanda.codNbrDemanda,destinatario:this.nbrDemanda.nbrTipoAtendimento.lbrUsuario.nomeUsuario,status:this.nbrDemanda.nbrStatusDemanda.nbrStatusDemandaNbrStatusDemandaCodNbrStatusAceiteTonbrStatusDemanda};this.abreModalAcoes(rn,{header:"Aceitar Reembolso",data:te})}onRecusaReembolsoAssinado(te){const ne={idDemanda:this.nbrDemanda.codNbrDemanda,destinatario:te.lbrUsuarioNbrDemandaAndamentoCodUsuarioRegistroTolbrUsuario.nomeUsuario,codLbrUsuario:te.lbrUsuarioNbrDemandaAndamentoCodUsuarioRegistroTolbrUsuario.codLbrUsuario,status:this.nbrDemanda.nbrStatusDemanda.nbrStatusDemandaNbrStatusDemandaCodNbrStatusRecusaTonbrStatusDemanda};this.abreModalAcoes(Tn,{header:"Recusar Reembolso Assinado",data:ne})}onLiberaReembolso(){const te={idDemanda:this.nbrDemanda.codNbrDemanda,destinatario:this.nbrDemanda.lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.nomeUsuario,status:this.nbrDemanda.nbrStatusDemanda.nbrStatusDemandaNbrStatusDemandaCodNbrStatusAceiteTonbrStatusDemanda};this.abreModalAcoes(un,{header:"Liberar Reembolso",data:te})}onRecusaLiberacaoReembolso(te){const ne={idDemanda:this.nbrDemanda.codNbrDemanda,codLbrUsuarioSolAndamento:te.codUsuarioRegistro,codLbrUsuarioSolDemanda:this.nbrDemanda?.codLbrUsuario,status:this.nbrDemanda.nbrStatusDemanda.nbrStatusDemandaNbrStatusDemandaCodNbrStatusRecusaTonbrStatusDemanda};this.abreModalAcoes(In,{header:"Recusar Liberação do Reembolso",data:ne})}onAceitaSolicitacao(te){const ne={idDemanda:this.nbrDemanda.codNbrDemanda,idAndamento:te.codNbrDemandaAndamento,nomeNbrStatusAceite:this.nbrDemanda.nbrStatusDemanda.nbrStatusDemandaNbrStatusDemandaCodNbrStatusAceiteTonbrStatusDemanda.nomeNbrStatusDemanda,nomeDestinatario:te.lbrUsuarioNbrDemandaAndamentoCodUsuarioRegistroTolbrUsuario.nomeUsuario};this.abreModalAcoes(an,{header:"Aceitar Solicitação",data:ne})}onRecusaSolicitacao(te){const ne={idDemanda:this.nbrDemanda.codNbrDemanda,idAndamento:te.codNbrDemandaAndamento,nomeNbrStatusRecusa:this.nbrDemanda.nbrStatusDemanda.nbrStatusDemandaNbrStatusDemandaCodNbrStatusRecusaTonbrStatusDemanda.nomeNbrStatusDemanda,nomeDestinatario:te.lbrUsuarioNbrDemandaAndamentoCodUsuarioRegistroTolbrUsuario.nomeUsuario};this.abreModalAcoes(Dn,{header:"Recusar Solicitação",data:ne})}onVisualizarRelatorioReembolso(){this.nbrReembolsoService.abrirRelatorioReembolso(this.nbrDemanda.nbrReembolsos[0].codNbrReembolso,this.nbrDemanda.nbrReembolsos[0].nbrTipoReembolso.codLbrRel,"Relatorio_reembolso")}onEnviarDocumentoAssinado(){const te={idDemanda:this.nbrDemanda.codNbrDemanda,idUsuario:this.nbrDemanda.codLbrUsuario};this.abreModalAcoes(dn,{header:"Enviar Relatório Assinado",data:te})}onAlterarReembolso(){this.nbrReembolsoService.state.isReadOnly=!1,this.nbrReembolsoService.configPermissoes(),(0,He.eo)(this.nbrReembolsoService.formDetails),this.nbrReembolsoService.openDetails(this.nbrDemanda.nbrReembolsos[0].codNbrReembolso)}onVisualizarReembolso(){this.nbrReembolsoService.state.isReadOnly=!0,this.nbrReembolsoService.configPermissoes(),(0,He.LL)(this.nbrReembolsoService.formDetails),this.nbrReembolsoService.openDetails(this.nbrDemanda.nbrReembolsos[0].codNbrReembolso)}onVisualizarDeclaracaoReembolso(){this.nbrReembolsoService.abrirRelatorioReembolso(this.nbrDemanda.nbrReembolsos[0].codNbrReembolso,this.nbrDemanda.nbrReembolsos[0].nbrTipoReembolso.codLbrRelDeclaracao,"Declaracao_reembolso")}openFile(te){this.brDialogService.open(Ve.e,{header:te.docEmpresa.tituloDoc||"Arquivo",width:"60vw",contentStyle:{height:"80vh",overflow:"hidden"},modal:!1,data:{brFileSanitized:{name:te.docEmpresa.tituloDoc,url:this.sanitizer.bypassSecurityTrustResourceUrl(te.docEmpresa.url),urlDownload:this.sanitizer.bypassSecurityTrustResourceUrl(te.docEmpresa.urlDownload)}}})}abreModalAcoes(te,ne){this.brDialogService.open(te,{...ne,data:{...ne.data,onConfirmar:te=>{te?.foiAdicionadoNovoAndamento&&this.refreshDadosDemanda()}}})}onProcessoJuridico(){this.brDialogService.open(yn,{header:"Informando processo jurídico",data:{idDemanda:this.nbrDemanda?.codNbrDemanda,nbrDemandaService:this.nbrDemandaService},modal:!1,onConfirmar:()=>{this.refreshDadosDemanda()}})}onNovoDocumento(){this.abreModalAcoes(pn,{header:"Adicionar Documento(s)",data:{lbrUsuarioExecutor:this.nbrDemanda?.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario,idDemanda:this.nbrDemanda?.codNbrDemanda,codNbrTipoAtendimento:this.nbrDemanda.codNbrTipoAtendimento},onConfirmar:()=>{this.refreshDadosDemanda()}})}onSalvarAcao(){this.nbrDemandaService.onSalvar=void 0,this.nbrDemandaService.state.isSalvarDetailsHabilitado=!1,this.acaoDemanda=void 0,this.mostrarAndamentos=!0,this.mostrarAcao=!1,this.refreshDadosDemanda()}refreshDadosDemanda(){this.changeDemanda()}static#e=this.ɵfac=function BrDemandaLinhaDoTempoComponent_Factory(te){return new(te||BrDemandaLinhaDoTempoComponent)};static#t=this.ɵcmp=le.VBU({type:BrDemandaLinhaDoTempoComponent,selectors:[["demanda-linha-do-tempo"]],inputs:{nbrDemandaService:"nbrDemandaService",standalone:"standalone",apenasVisualizar:"apenasVisualizar"},standalone:!0,features:[le.Jv_([(0,le.Rfq)((()=>qe.Q))]),le.aNF],decls:6,vars:8,consts:[["class","container-geral fadein animation-duration-200",3,"ngClass",4,"ngIf"],["class","flex w-full h-full gap-3 fadein animation-duration-200",4,"ngIf"],["naoPossui",""],[3,"key"],["appendTo","body",3,"brListService","modal"],[1,"container-geral","fadein","animation-duration-200",3,"ngClass"],["containerGeral",""],[1,"grid-info"],["class","grid-item","data-item","nivelSatisfacao",4,"ngIf"],["data-item","Solicitante",1,"grid-item"],["for","Solicitante"],["id","Solicitante"],["styleClass","ml-2","label","Histórico","icon","pi pi-history",3,"rounded","onClick",4,"ngIf"],["data-item","E-mail",1,"grid-item"],["for","E-mail"],["id","E-mail"],["data-item","Telefone",1,"grid-item"],["for","Telefone"],["data-item","Executor",1,"grid-item"],["for","Executor"],["id","Executor"],["data-item","Assunto",1,"grid-item"],["for","Assunto"],["id","Assunto"],["data-item","Descrição",1,"grid-item"],["for","Descrição"],["id","Descrição",3,"texto"],["data-item","Data Inicial",1,"grid-item"],["for","Data Inicial"],["id","Data Inicial"],["data-item","Data Final",1,"grid-item"],["for","Data Final"],["id","Data Final",4,"ngIf","ngIfElse"],["class","grid-item","data-item","Data Agendamento",4,"ngIf"],["data-item","Status",1,"grid-item"],["for","Status"],["id","Status"],["data-item","Modo de atendimento",1,"grid-item"],["for","Modo de atendimento"],["id","Modo de atendimento"],["data-item","Forma de atendimento",1,"grid-item"],["for","Forma de atendimento"],["id","Forma de atendimento"],["data-item","Área de atendimento",1,"grid-item"],["for","Área de atendimento"],["id","Área de atendimento"],["class","grid-item","data-item","Processo Juridico",4,"ngIf"],["class","grid-item","data-item","documentos",4,"ngIf"],["class","flex-andamentos",4,"ngIf"],["class","flex-acao-demanda",4,"ngIf"],["data-item","nivelSatisfacao",1,"grid-item"],["for","nivelSatisfacao"],["id","nivelSatisfacao"],[3,"ngModel","readonly","cancel"],["styleClass","ml-2","label","Histórico","icon","pi pi-history",3,"rounded","onClick"],["id","Data Final"],["data-item","Data Agendamento",1,"grid-item"],["for","Data Agendamento"],["id","Data Agendamento"],["data-item","Processo Juridico",1,"grid-item"],["for","processoJuridico"],["id","processoJuridico"],["target","_blank","id","Processo Juridico",3,"href",4,"ngIf","ngIfElse"],["label","Informar","styleClass","ml-2","icon","pi pi-external-link","size","small",3,"rounded","onClick",4,"ngIf"],["target","_blank","id","Processo Juridico",3,"href"],["label","Informar","styleClass","ml-2","icon","pi pi-external-link","size","small",3,"rounded","onClick"],["data-item","documentos",1,"grid-item"],["for","documentos"],["id","documentos"],["class","list-none p-0 m-0 flex flex-column gap-2",4,"ngIf","ngIfElse"],["label","Adicionar","styleClass","ml-2","icon","pi pi-plus","size","small",3,"rounded","onClick",4,"ngIf"],[1,"list-none","p-0","m-0","flex","flex-column","gap-2"],["class","flex align-items-center gap-2",4,"ngFor","ngForOf"],[1,"flex","align-items-center","gap-2"],[1,"pi","pi-file"],["styleClass","p-button-link p-0 text-blue-500 hover:text-blue-800",1,"alinha-doc",3,"onClick"],["label","Adicionar","styleClass","ml-2","icon","pi pi-plus","size","small",3,"rounded","onClick"],[1,"flex-andamentos"],["class","demanda-toolbar",4,"ngIf"],["class","andamento-item",4,"ngFor","ngForOf"],[1,"demanda-toolbar"],[3,"label","rounded","icon","styleClass","onClick",4,"ngFor","ngForOf"],[3,"label","rounded","icon","styleClass","onClick"],[1,"andamento-item"],[1,"container-icone"],[1,"tempo-decorrido"],["class","dias",4,"ngIf"],["class","horas",4,"ngIf"],["class","minutos",4,"ngIf"],[1,"icon-connector"],[1,"container-info","shadow-1"],[1,"info-title"],[1,"info-date"],[1,"info-usuarios"],[1,"usuario-item"],[1,"info-descricao",3,"ngClass"],["id","Descrição","maxHeight","40vh",3,"texto"],[4,"ngIf"],["class","flex flex-column gap-1",4,"ngIf"],["label","Responder","icon","pi pi-reply",3,"rounded","onClick",4,"ngIf"],["class","container-botoes-acoes",4,"ngIf"],["class","container-botoes-acoes",4,"ngIf","ngIfElse"],["blocoBotoesDefault",""],["class","container-botoes-acoes container-botoes-reembolso",4,"ngIf","ngIfElse"],["elseBlocoReembolso",""],[1,"dias"],[1,"horas"],[1,"minutos"],["for","agendamento-data"],["id","agendamento-data"],["for","bloqueio-data"],["id","bloqueio-data"],[1,"flex","flex-column","gap-1"],["for","documentos-andamento"],["id","documentos-andamento",1,"list-none","p-0","m-0","flex","flex-column","gap-2"],["styleClass","p-button-link p-0 text-blue-500 hover:text-blue-800",3,"rounded","onClick"],["label","Responder","icon","pi pi-reply",3,"rounded","onClick"],[1,"container-botoes-acoes"],["icon","pi pi-check","styleClass","p-button-success",3,"label","rounded","onClick"],["icon","pi pi-ban","styleClass","p-button-danger",3,"label","rounded","onClick"],["label","Retornar para liberação","icon","pi pi-reply","styleClass","p-button-danger",3,"rounded","onClick"],[1,"container-botoes-acoes","container-botoes-reembolso"],[1,"botoes-reembolso"],["label","Inserir dados","icon","pi pi-plus",3,"rounded","onClick"],["label","Visualizar relatório","icon","pi pi-external-link","styleClass","p-button-info",3,"rounded","onClick"],["label","Enviar relatório assinado","icon","pi pi-send","styleClass","p-button-secondary",3,"rounded","onClick"],[2,"font-size","medium"],["href","https://assinador.iti.br","target","_blank"],["class","botoes-reembolso",4,"ngIf"],["icon","pi pi-external-link","label","Reembolso",3,"rounded","onClick"],["icon","pi pi-eye","label","Visualizar declaração",3,"rounded","onClick"],[1,"flex-acao-demanda"],["label","Voltar","icon","pi pi-arrow-left","styleClass","p-button-outlined",3,"rounded","onClick"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],[1,"container-acao-demanda"],[3,"nbrDemanda","nbrDemandaService","salvaAcao",4,"ngSwitchCase"],["class","titulo-acao",4,"ngIf"],[1,"titulo-acao"],[3,"nbrDemanda","nbrDemandaService","salvaAcao"],[1,"flex","w-full","h-full","gap-3","fadein","animation-duration-200"],["width","30rem","height","-webkit-fill-available"],[1,"flex","flex-column",2,"gap","5rem","margin-top","5rem"],["width","50px","height","50px","borderRadius","50%"],[1,"flex","flex-column","w-full","gap-1",2,"margin-top","5rem"],["width","100%","height","10rem","borderRadius","1rem"]],template:function BrDemandaLinhaDoTempoComponent_Template(te,ne){1&te&&(le.DNE(0,BrDemandaLinhaDoTempoComponent_div_0_Template,69,28,"div",0)(1,BrDemandaLinhaDoTempoComponent_div_1_Template,10,0,"div",1)(2,BrDemandaLinhaDoTempoComponent_ng_template_2_Template,2,0,"ng-template",null,2,le.C5r),le.nrm(4,"p-confirmDialog",3)(5,"br-list-details",4)),2&te&&(le.Y8G("ngIf",!ne.isLoading&&ne.nbrDemanda),le.R7$(),le.Y8G("ngIf",ne.isLoading),le.R7$(3),le.Aen(le.lJ4(7,demanda_linha_do_tempo_component_c2)),le.Y8G("key",ne.keyDialog),le.R7$(),le.Y8G("brListService",ne.nbrReembolsoService)("modal",!0))},dependencies:[re.MD,re.YU,re.Sq,re.bT,re.ux,re.e1,re.vh,je.E,fe.d,Ne.k,Ne.E,me.tm,me.$n,Re.$,ge.F,ge.T,zt,Ut,$t,Yt,Wt,Qt,Jt,Me,Ee,ce.YN,ce.BC,ce.vS,Zt,Fe.M],styles:['@charset "UTF-8";[_nghost-%COMP%]     .container-geral{display:flex;flex-direction:column;width:100%}[_nghost-%COMP%]     .container-geral .grid-info{position:fixed;display:grid;width:30rem;height:-webkit-fill-available;overflow:auto;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:1rem;padding:1rem;border:1px dotted var(--text-color);border-width:0px 1px 0px 0px}[_nghost-%COMP%]     .container-geral .grid-info .grid-item{display:flex;flex-direction:column;gap:2.5px;width:-moz-fit-content;width:fit-content;word-break:break-word}[_nghost-%COMP%]     .container-geral .grid-info .grid-item label{font-weight:700;font-size:1.1rem}[_nghost-%COMP%]     .container-geral .grid-info .grid-item[data-item=Solicitante], [_nghost-%COMP%]     .container-geral .grid-info .grid-item[data-item=Executor], [_nghost-%COMP%]     .container-geral .grid-info .grid-item[data-item=Assunto], [_nghost-%COMP%]     .container-geral .grid-info .grid-item[data-item=Descri\\e7\\e3o], [_nghost-%COMP%]     .container-geral .grid-info .grid-item[data-item="Processo Juridico"]{grid-column:1/-1}[_nghost-%COMP%]     .container-geral .grid-info .grid-item .p-button{padding:.25rem .5rem;font-size:.75rem}[_nghost-%COMP%]     .container-geral .grid-info .grid-item .p-button .p-button-icon{font-size:.75rem;margin-right:.25rem}[_nghost-%COMP%]     .container-geral .grid-info .grid-item .p-button .p-button-label{font-weight:600}[_nghost-%COMP%]     .container-geral .flex-andamentos{display:flex;flex-direction:column;gap:.5rem;width:calc(100% - 30.5rem);margin-left:30.5rem;padding:10px;min-height:50vh}[_nghost-%COMP%]     .container-geral .flex-andamentos .botoes-reembolso, [_nghost-%COMP%]     .container-geral .flex-andamentos .container-botoes-acoes{display:flex;gap:.5rem;flex-wrap:wrap}[_nghost-%COMP%]     .container-geral .flex-andamentos .demanda-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1rem;padding:1rem 0 1rem 70px;margin-bottom:-.5rem}[_nghost-%COMP%]     .container-geral .flex-andamentos .demanda-toolbar:has(.p-button:not(.p-disabled)){position:sticky;top:0;z-index:2;background:#fff}[_nghost-%COMP%]     .container-geral .flex-andamentos .demanda-toolbar p-button .p-button{padding:.5rem .75rem}[_nghost-%COMP%]     .container-geral .flex-andamentos .demanda-toolbar p-button .p-button.p-disabled{opacity:.75}[_nghost-%COMP%]     .container-geral .flex-andamentos .demanda-toolbar p-button .p-button .p-button-label{white-space:nowrap;font-weight:500}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item{display:flex}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item .container-icone{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item .container-icone i{font-size:1.5rem;color:#fff;padding:1rem;border-radius:50%}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item .container-icone .tempo-decorrido{display:flex;flex-direction:column;align-items:center;min-width:-moz-fit-content;min-width:fit-content;font-size:12px;font-weight:600;width:70px;margin-top:5px;margin-bottom:5px}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item .container-icone .icon-connector{width:2px;flex-grow:1;opacity:.5}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item:last-child .icon-connector{display:none}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item .container-info{display:flex;flex-direction:column;gap:.25rem;padding:.75rem 1rem;border:1px solid;border-radius:1rem;border-left-width:2px;border-bottom-width:2px;flex-grow:1}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item .container-info label{font-weight:700}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item .container-info .info-title{font-size:1.5rem;font-weight:600}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item .container-info .info-usuarios{display:flex;flex-wrap:wrap;gap:1rem;margin-top:.5rem}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item .container-info .info-usuarios .usuario-item{display:flex;flex-direction:column;gap:2.5px}[_nghost-%COMP%]     .container-geral .flex-andamentos .andamento-item .container-info .info-descricao{margin-top:.5rem}[_nghost-%COMP%]     .container-geral .flex-acao-demanda{display:flex;flex-direction:column;gap:.5rem;width:calc(100% - 30.5rem);margin-left:30.5rem}[_nghost-%COMP%]     .container-geral .flex-acao-demanda .demanda-toolbar{display:flex;align-items:center;gap:1rem;padding:1rem;position:sticky;top:0;z-index:2;background:#fff}[_nghost-%COMP%]     .container-geral .flex-acao-demanda .demanda-toolbar p-button .p-button{padding:.5rem .75rem}[_nghost-%COMP%]     .container-geral .flex-acao-demanda .demanda-toolbar p-button .p-button.p-disabled{opacity:.75}[_nghost-%COMP%]     .container-geral .flex-acao-demanda .demanda-toolbar p-button .p-button .p-button-label{white-space:nowrap;font-weight:500}[_nghost-%COMP%]     .container-geral .flex-acao-demanda .container-acao-demanda{padding:15px}[_nghost-%COMP%]     .container-geral.standalone{flex-direction:row;background-color:var(--primary-color-text);border:1px solid var(--primary-color);border-bottom-left-radius:1rem;border-bottom-right-radius:1rem;margin-left:0}[_nghost-%COMP%]     .container-geral.standalone .grid-info{position:static;margin:0}[_nghost-%COMP%]     .container-geral.standalone .flex-andamentos{margin-left:0}@media (max-width: 886px){.container-geral[_ngcontent-%COMP%]{flex-direction:column!important}.container-geral[_ngcontent-%COMP%]   .grid-info[_ngcontent-%COMP%], .container-geral[_ngcontent-%COMP%]   .flex-andamentos[_ngcontent-%COMP%]{width:100%}.container-geral[_ngcontent-%COMP%]   .demanda-toolbar[_ngcontent-%COMP%]{padding-left:0;justify-content:flex-start}}.titulo-acao[_ngcontent-%COMP%]{font-weight:700;font-size:30px}.background-resposta-solicitante[_ngcontent-%COMP%]{background-color:ivory;border-radius:1rem;padding:.5rem 1rem}'],data:{animation:[Pe.r]}})}return BrDemandaLinhaDoTempoComponent})()},7287:(te,ne,ie)=>{"use strict";ie.d(ne,{S:()=>Ce});var re=ie(3107),le=ie(564),ce=ie(6013),de=ie(936),ue=ie(2864),me=ie(888),ge=ie(7538),fe=ie(4838),_e=ie(8524);let be=(()=>{class NbrDemandaFinanceiroService extends _e.m{constructor(){super(),this.nbrTipoAtendimentoService=(0,re.WQX)(fe.Q),this.brDialogService=(0,re.WQX)(me.i),this.brListName="Demanda Financeira",this.brListNamePlural="Demandas Financeiras",this.brFormulario=[{header:"Dados Gerais",controls:[{label:"Demandas",formControlName:"situacaoDemanda",control:new de.MJ(null),typeInput:ue.St.Dropdown,dataList:[{label:"Em Aberto",value:_e.X.EmAberto},{label:"Encerradas",value:_e.X.Encerradas},{label:"Todas",value:_e.X.Todas}],optionLabel:"label",optionValue:"value",showOnFilter:!0,showOnDetails:!1},{label:"ID",formControlName:"codNbrDemanda",control:new de.MJ(null),typeInput:ue.St.Text,showOnDetails:!1,showOnFilter:!0},{label:"Solicitante",formControlName:"codLbrUsuario",control:new de.MJ(null,de.k0.required),typeInput:ue.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario",foreignEndpoint:"lbr-usuario"},{label:"Assunto",formControlName:"assunto",control:new de.MJ(null,de.k0.required),typeInput:ue.St.Text},{label:"Área",formControlName:"codNbrAreaAtendimento",control:new de.MJ(null),typeInput:ue.St.ForeignKey,optionLabel:"nomeNbrAreaAtendimento",optionValue:"codNbrAreaAtendimento",foreignEndpoint:"nbr-area-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(3)})},{label:"Modo",formControlName:"codNbrModoAtendimento",control:new de.MJ(null),typeInput:ue.St.ForeignKey,optionLabel:"nomeNbrModoAtendimento",optionValue:"codNbrModoAtendimento",foreignEndpoint:"nbr-modo-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(3)})},{label:"Forma de atendimento",formControlName:"codNbrFormaAtendimento",control:new de.MJ(null),typeInput:ue.St.ForeignKey,optionLabel:"nomeNbrFormaAtendimento",optionValue:"codNbrFormaAtendimento",foreignEndpoint:"nbr-forma-atendimento"},{label:"Status",formControlName:"codNbrStatusDemanda",control:new de.MJ(null),typeInput:ue.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(3)}),showOnFilter:!1,showOnDetails:!1},{label:"Data inicial",formControlName:"dataInicial",control:new de.MJ(null),typeInput:ue.St.Date,showTime:!0},{label:"Descrição",formControlName:"descrDemanda",control:new de.MJ(null),typeInput:ue.St.Editor},{label:"Descrição de encerramento",formControlName:"descrDemandaEncerramento",control:new de.MJ(null),typeInput:ue.St.Editor},{showOnDetails:!1,label:"Executor",formControlName:"codLbrUsuarioExecutor",control:new de.MJ(null),typeInput:ue.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpfCliente",foreignEndpoint:"lbr-usuario",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(3)})},{showOnDetails:!1,label:"Data final",formControlName:"dataFinal",control:new de.MJ(null),typeInput:ue.St.Date,showTime:!0},{showOnDetails:!1,showOnFilter:!1,label:"Data de cancelamento",formControlName:"dataHoraCancelamento",control:new de.MJ(null),typeInput:ue.St.Date,showTime:!0},{label:"Documento(s)",formControlName:"codDocumentos",control:new de.MJ(null),typeInput:ue.St.Upload,maxFileSize:5e7,fileLimit:10,acceptedFiles:["image/*","application/pdf"]},{label:"Tipo de atendimento",formControlName:"codNbrTipoAtendimento",control:new de.MJ(null),typeInput:ue.St.ForeignKey,optionLabel:"nomeNbrTipoAtendimento",optionValue:"codNbrTipoAtendimento",foreignEndpoint:"nbr-tipo-atendimento",showOnFilter:!1,foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(3)}),showOnDetails:!1},{label:"Somente demandas do usuário logado",formControlName:"somenteUsuarioLogado",control:new de.MJ(null),typeInput:ue.St.CheckBox,showOnDetails:!1},{label:"Somente demandas do grupo pessoal do usuário logado",formControlName:"somenteGrupoPessoalUsuarioLogado",control:new de.MJ(null),typeInput:ue.St.CheckBox,showOnDetails:!1}]}],this.fixedFilters={codNbrTipoAtendimento:[3],...this.authService.usuario.isAdmin||this.authService.usuario.isRespGrupo?void 0:{codLbrUsuarioExecutor:[this.authService.usuario.codLbrUsuario]}};const te=new Date;this.nbrTipoAtendimentoService.getRecord(3).subscribe((ne=>{this.defaultDetailsValue={...this.defaultDetailsValue,codNbrTipoAtendimento:3,descrDemanda:ne.descrPadrao,codLbrUsuarioExecutor:this.authService.usuario.codLbrUsuario,assunto:ne.assuntoPadrao,codNbrAreaAtendimento:ne.codNbrAreaAtendPadrao,codNbrModoAtendimento:ne.codNbrModoAtendPadrao,codNbrFormaAtendimento:ne.codNbrFormaAtendPadrao,dataInicial:(0,ge.hk)(te)}}))}static#e=this.ɵfac=function NbrDemandaFinanceiroService_Factory(te){return new(te||NbrDemandaFinanceiroService)};static#t=this.ɵprov=re.jDH({token:NbrDemandaFinanceiroService,factory:NbrDemandaFinanceiroService.ɵfac,providedIn:"root"})}return NbrDemandaFinanceiroService})();function NbrDemandaFinanceiroComponent_ng_template_1_Template(te,ne){if(1&te&&re.nrm(0,"demanda-linha-do-tempo",2),2&te){const te=re.XpG();re.Y8G("nbrDemandaService",te.nbrDemandaFinanceiroService)}}let Ce=(()=>{class NbrDemandaFinanceiroComponent{constructor(){this.nbrDemandaFinanceiroService=(0,re.WQX)(be)}header(){return"Demandas (Financeiro)"}icon(){return"fa-light fa-comments-dollar"}static#e=this.ɵfac=function NbrDemandaFinanceiroComponent_Factory(te){return new(te||NbrDemandaFinanceiroComponent)};static#t=this.ɵcmp=re.VBU({type:NbrDemandaFinanceiroComponent,selectors:[["br-list-nbr-demanda-financeiro"]],standalone:!0,features:[re.Jv_([be]),re.aNF],decls:3,vars:1,consts:[[3,"brListService"],["alterar",""],[3,"nbrDemandaService"]],template:function NbrDemandaFinanceiroComponent_Template(te,ne){1&te&&(re.j41(0,"br-list",0),re.DNE(1,NbrDemandaFinanceiroComponent_ng_template_1_Template,1,1,"ng-template",null,1,re.C5r),re.k0s()),2&te&&re.Y8G("brListService",ne.nbrDemandaFinanceiroService)},dependencies:[le.K,ce.w],styles:["[_nghost-%COMP%]     .br-sidebar.br-sidebar{height:70vh}[_nghost-%COMP%]     .consulta-confirmada span{color:#00a73e}[_nghost-%COMP%]     .consulta-realizada span{color:red}[_nghost-%COMP%]     .solicitao-consulta span{color:#2789ba}"]})}return NbrDemandaFinanceiroComponent})()},8482:(te,ne,ie)=>{"use strict";ie.d(ne,{v:()=>ge});var re=ie(3107),le=ie(936),ce=ie(2864),de=ie(7538),ue=ie(4838),me=ie(8524);let ge=(()=>{class NbrDemandaJuridicoService extends me.m{constructor(){super(),this.nbrTipoAtendimentoService=(0,re.WQX)(ue.Q),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"Demandas",formControlName:"situacaoDemanda",control:new le.MJ(null),typeInput:ce.St.Dropdown,dataList:[{label:"Em Aberto",value:me.X.EmAberto},{label:"Encerradas",value:me.X.Encerradas},{label:"Todas",value:me.X.Todas}],optionLabel:"label",optionValue:"value",showOnFilter:!0,showOnDetails:!1},{label:"ID",formControlName:"codNbrDemanda",control:new le.MJ(null),typeInput:ce.St.Text,showOnDetails:!1,showOnFilter:!0},{label:"Solicitante",formControlName:"codLbrUsuario",control:new le.MJ(null,le.k0.required),typeInput:ce.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario",foreignEndpoint:"lbr-usuario"},{label:"Assunto",formControlName:"assunto",control:new le.MJ(null,le.k0.required),typeInput:ce.St.Text},{label:"Área",formControlName:"codNbrAreaAtendimento",control:new le.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrAreaAtendimento",optionValue:"codNbrAreaAtendimento",foreignEndpoint:"nbr-area-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)})},{label:"Modo",formControlName:"codNbrModoAtendimento",control:new le.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrModoAtendimento",optionValue:"codNbrModoAtendimento",foreignEndpoint:"nbr-modo-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)})},{label:"Forma de atendimento",formControlName:"codNbrFormaAtendimento",control:new le.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrFormaAtendimento",optionValue:"codNbrFormaAtendimento",foreignEndpoint:"nbr-forma-atendimento"},{label:"Status",formControlName:"codNbrStatusDemanda",control:new le.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)}),showOnFilter:!1,showOnDetails:!1},{label:"Data inicial",formControlName:"dataInicial",control:new le.MJ(null),typeInput:ce.St.Date,showTime:!0},{label:"Descrição",formControlName:"descrDemanda",control:new le.MJ(null),typeInput:ce.St.Editor},{label:"Descrição de encerramento",formControlName:"descrDemandaEncerramento",control:new le.MJ(null),typeInput:ce.St.Editor},{showOnDetails:!1,label:"Executor",formControlName:"codLbrUsuarioExecutor",control:new le.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpfCliente",foreignEndpoint:"lbr-usuario",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)})},{showOnDetails:!1,label:"Data final",formControlName:"dataFinal",control:new le.MJ(null),typeInput:ce.St.Date,showTime:!0},{showOnDetails:!1,showOnFilter:!1,label:"Data de cancelamento",formControlName:"dataHoraCancelamento",control:new le.MJ(null),typeInput:ce.St.Date,showTime:!0},{label:"Documento(s)",formControlName:"codDocumentos",control:new le.MJ(null),typeInput:ce.St.Upload,maxFileSize:5e7,fileLimit:10,acceptedFiles:["image/*","application/pdf"]},{label:"Tipo de atendimento",formControlName:"codNbrTipoAtendimento",control:new le.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrTipoAtendimento",optionValue:"codNbrTipoAtendimento",foreignEndpoint:"nbr-tipo-atendimento",showOnFilter:!1,foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)}),showOnDetails:!1},{label:"Somente demandas do usuário logado",formControlName:"somenteUsuarioLogado",control:new le.MJ(null),typeInput:ce.St.CheckBox,showOnDetails:!1},{label:"Somente demandas do grupo pessoal do usuário logado",formControlName:"somenteGrupoPessoalUsuarioLogado",control:new le.MJ(null),typeInput:ce.St.CheckBox,showOnDetails:!1}]}];const te=new Date;this.nbrTipoAtendimentoService.getRecord(1).subscribe((ne=>{this.defaultDetailsValue={...this.defaultDetailsValue,codNbrTipoAtendimento:1,assunto:ne.assuntoPadrao,descrDemanda:ne.descrPadrao,codLbrUsuarioExecutor:this.authService.usuario.codLbrUsuario,codNbrAreaAtendimento:ne.codNbrAreaAtendPadrao,codNbrModoAtendimento:ne.codNbrModoAtendPadrao,codNbrFormaAtendimento:ne.codNbrFormaAtendPadrao,dataInicial:(0,de.hk)(te)}})),this.fixedFilters={...this.fixedFilters,codNbrTipoAtendimento:[1]}}static#e=this.ɵfac=function NbrDemandaJuridicoService_Factory(te){return new(te||NbrDemandaJuridicoService)};static#t=this.ɵprov=re.jDH({token:NbrDemandaJuridicoService,factory:NbrDemandaJuridicoService.ɵfac,providedIn:"root"})}return NbrDemandaJuridicoService})()},2432:(te,ne,ie)=>{"use strict";ie.d(ne,{T:()=>Ce});var re=ie(3107),le=ie(936),ce=ie(2653),de=ie(7947),ue=ie(1217),me=ie(2864),ge=ie(888),fe=ie(7538),_e=ie(4838),be=ie(8524);let Ce=(()=>{class NbrDemandaPsicologicoService extends be.m{configStyle(){const te={classCell:[]};return(0,ce.p)({status47:this.http.get(`${this.environmentService.environment.serverUrl}/nbr-status-demanda/47`),status25:this.http.get(`${this.environmentService.environment.serverUrl}/nbr-status-demanda/25`),status29:this.http.get(`${this.environmentService.environment.serverUrl}/nbr-status-demanda/29`)}).pipe((0,de.T)((({status47:ne,status25:ie,status29:re})=>(te.classCell=[{dataTarget:[ne?.nomeNbrStatusDemanda],className:"consulta-confirmada"},{dataTarget:[ie?.nomeNbrStatusDemanda],className:"solicitao-consulta"},{dataTarget:[re?.nomeNbrStatusDemanda],className:"consulta-realizada"}],te))))}constructor(){super(),this.nbrTipoAtendimentoService=(0,re.WQX)(_e.Q),this.brDialogService=(0,re.WQX)(ge.i),this.brListName="Consulta",this.brListNamePlural="Consultas",this.columns$=new ue.t([{formControlName:"codNbrDemanda",fieldPath:"codNbrDemanda",label:"ID"},{formControlName:"codLbrUsuario",fieldPath:"lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.nomeUsuario",label:"Solicitante"},{label:"Cargo do solicitante",fieldPath:"lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.vtcentroCustos.0.funcaoVtcentroCustoCodCargoTrabalhoTofuncao.nomeFuncao",formControlName:"",visible:!1},{label:"Lotação do solicitante",fieldPath:"lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.vtcentroCustos.0.vtcidadeVtcentroCustoCodCidadeTovtcidade.regional.nomeRegional",formControlName:"",visible:!1},{label:"Cidade do solicitante",fieldPath:"lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.vtcentroCustos.0.vtcidadeVtcentroCustoCodCidadeTovtcidade.nomeCidadeUf",formControlName:"",visible:!1},{fieldPath:"lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.nomeUsuario",label:"Psicólogo(a)",formControlName:"codLbrUsuarioExecutor"},{fieldPath:"nbrStatusDemanda.nomeNbrStatusDemanda",label:"Status",formControlName:"codNbrStatusDemanda"},{fieldPath:"nbrFormaAtendimento.nomeNbrFormaAtendimento",label:"Forma de atendimento",formControlName:"codNbrFormaAtendimento"},{formControlName:"dataInicial",fieldPath:"dataInicial",label:"Solicitação",typeColumn:me.Ii.DateTime},{formControlName:"dataHoraAgendamento",fieldPath:"dataHoraAgendamento",label:"Agendamento",typeColumn:me.Ii.DateTime},{formControlName:"dataEncerramento",fieldPath:"dataEncerramento",label:"Atendimento",typeColumn:me.Ii.DateTime},{formControlName:"dataFinal",fieldPath:"dataFinal",label:"Comprovação",typeColumn:me.Ii.DateTime},{formControlName:"dataHoraCancelamento",fieldPath:"dataHoraCancelamento",label:"Cancelamento",typeColumn:me.Ii.DateTime},{formControlName:"motivoCancelamento",fieldPath:"motivoCancelamento",label:"Motivo do cancelamento"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"Consultas",formControlName:"situacaoDemanda",control:new le.MJ(null),typeInput:me.St.Dropdown,dataList:[{label:"Em Aberto",value:be.X.EmAberto},{label:"Encerradas",value:be.X.Encerradas},{label:"Todas",value:be.X.Todas}],optionLabel:"label",optionValue:"value",showOnFilter:!0,showOnDetails:!1},{label:"ID",formControlName:"codNbrDemanda",control:new le.MJ(null),typeInput:me.St.Text,showOnDetails:!1,showOnFilter:!0},{label:"Solicitante",formControlName:"codLbrUsuario",control:new le.MJ(null,le.k0.required),typeInput:me.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario",foreignEndpoint:"lbr-usuario",foreignKeyBotaoIcon:"pi pi-history",foreignKeyBotaoLabel:"Histórico",foreignKeyBotaoCallback:()=>{const te=ie(4968).w;this.brDialogService.open(te,{header:"Histórico de Consultas",modal:!1,contentStyle:{padding:"0"},data:{isJuridico:!1,idUsuario:this.state.isFilterOpen?this.formFilters?.get("codLbrUsuario")?.value:this.formDetails?.get("codLbrUsuario")?.value}})}},{label:"Assunto",formControlName:"assunto",control:new le.MJ(null,le.k0.required),typeInput:me.St.Text,showOnFilter:!1},{label:"Área",formControlName:"codNbrAreaAtendimento",control:new le.MJ(null),typeInput:me.St.ForeignKey,optionLabel:"nomeNbrAreaAtendimento",optionValue:"codNbrAreaAtendimento",foreignEndpoint:"nbr-area-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(2)}),showOnFilter:!1},{label:"Modo",formControlName:"codNbrModoAtendimento",control:new le.MJ(null),typeInput:me.St.ForeignKey,optionLabel:"nomeNbrModoAtendimento",optionValue:"codNbrModoAtendimento",foreignEndpoint:"nbr-modo-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(2)}),showOnFilter:!1},{label:"Forma de atendimento",formControlName:"codNbrFormaAtendimento",control:new le.MJ(null,le.k0.required),typeInput:me.St.ForeignKey,optionLabel:"nomeNbrFormaAtendimento",optionValue:"codNbrFormaAtendimento",foreignEndpoint:"nbr-forma-atendimento"},{label:"Data/hora da solicitação",formControlName:"dataInicial",control:new le.MJ(null),typeInput:me.St.Date,showTime:!0},{label:"Status",formControlName:"codNbrStatusDemanda",control:new le.MJ(null),typeInput:me.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(2)}),showOnDetails:!1},{label:"Descrição",formControlName:"descrDemanda",control:new le.MJ(null),typeInput:me.St.Editor},{label:"Data/Hora de agendamento",formControlName:"dataHoraAgendamento",control:new le.MJ(null),typeInput:me.St.Date,showTime:!0},{showOnDetails:!1,label:"Profissional/Executor",formControlName:"codLbrUsuarioExecutor",control:new le.MJ(null),typeInput:me.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario",foreignEndpoint:"lbr-usuario",showOnFilter:!0,foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(2)})},{showOnDetails:!1,label:"Comprovação",formControlName:"dataFinal",control:new le.MJ(null),typeInput:me.St.Date,showTime:!0},{showOnDetails:!1,showOnFilter:!1,label:"Cancelamento",formControlName:"dataHoraCancelamento",control:new le.MJ(null),typeInput:me.St.Date,showTime:!0},{label:"Documento(s)",formControlName:"codDocumentos",control:new le.MJ(null),typeInput:me.St.Upload,maxFileSize:5e7,fileLimit:10,acceptedFiles:["image/*","application/pdf"]},{label:"Tipo de atendimento",formControlName:"codNbrTipoAtendimento",control:new le.MJ(null),typeInput:me.St.ForeignKey,optionLabel:"nomeNbrTipoAtendimento",optionValue:"codNbrTipoAtendimento",foreignEndpoint:"nbr-tipo-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(2)}),showOnFilter:!1,showOnDetails:!1}]}],this.fixedFilters={codNbrTipoAtendimento:[2],...this.authService.usuario.isAdmin||this.authService.usuario.isRespGrupo?void 0:{codLbrUsuarioExecutor:[this.authService.usuario.codLbrUsuario]}};const te=new Date;this.nbrTipoAtendimentoService.getRecord(2).subscribe((ne=>{this.defaultDetailsValue={...this.defaultDetailsValue,codNbrTipoAtendimento:2,descrDemanda:ne.descrPadrao,codLbrUsuarioExecutor:this.authService.usuario.codLbrUsuario,assunto:ne.assuntoPadrao,codNbrAreaAtendimento:ne.codNbrAreaAtendPadrao,codNbrModoAtendimento:ne.codNbrModoAtendPadrao,codNbrFormaAtendimento:ne.codNbrFormaAtendPadrao,dataInicial:(0,fe.hk)(te)}}))}static#e=this.ɵfac=function NbrDemandaPsicologicoService_Factory(te){return new(te||NbrDemandaPsicologicoService)};static#t=this.ɵprov=re.jDH({token:NbrDemandaPsicologicoService,factory:NbrDemandaPsicologicoService.ɵfac,providedIn:"root"})}return NbrDemandaPsicologicoService})()},8524:(te,ne,ie)=>{"use strict";ie.d(ne,{X:()=>de,m:()=>ue});var re=ie(1217),le=ie(2864),ce=ie(3107),de=function(te){return te[te.EmAberto=1]="EmAberto",te[te.Encerradas=2]="Encerradas",te[te.Todas=3]="Todas",te}(de||{});let ue=(()=>{class NbrDemandaService extends le.O7{constructor(){super("nbr-demanda"),this.brListName="Demanda",this.brListNamePlural="Demandas",this.columns$=new re.t([{formControlName:"codNbrDemanda",fieldPath:"codNbrDemanda",label:"ID"},{fieldPath:"lbrUsuarioNbrDemandaCodLbrUsuarioTolbrUsuario.nomeUsuario",label:"Solicitante",formControlName:"codLbrUsuario"},{formControlName:"assunto",fieldPath:"assunto",label:"Assunto"},{formControlName:"qtdeDiasUltimaAcao",fieldPath:"qtdeDiasUltimaAcao",label:"Dias sem movimentação"},{fieldPath:"nbrStatusDemanda.nomeNbrStatusDemanda",label:"Status",formControlName:"codNbrStatusDemanda"},{fieldPath:"lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.nomeUsuario",label:"Executor",formControlName:"codLbrUsuarioExecutor"},{formControlName:"dataInicial",fieldPath:"dataInicial",label:"Data inicial",typeColumn:le.Ii.DateTime},{formControlName:"dataFinal",fieldPath:"dataFinal",label:"Data final",typeColumn:le.Ii.DateTime},{fieldPath:"nbrAreaAtendimento.nomeNbrAreaAtendimento",label:"Área de atendimento",formControlName:"codNbrAreaAtendimento"},{fieldPath:"nbrFormaAtendimento.nomeNbrFormaAtendimento",label:"Forma de atendimento",formControlName:"codNbrFormaAtendimento"},{fieldPath:"nbrModoAtendimento.nomeNbrModoAtendimento",label:"Modo de atendimento",formControlName:"codNbrModoAtendimento"},{formControlName:"dataHoraCancelamento",fieldPath:"dataHoraCancelamento",label:"Data de cancelamento",typeColumn:le.Ii.DateTime}]),this.brFormulario=[],this.appliedFilters={...this.appliedFilters,order:{path:"codNbrDemanda",ordem:"desc"}}}openDetails(te){this.onSalvar=te?()=>{}:void 0,super.openDetails(te)}getQtdeAbertas(te,ne){return this.http.get(`${this.url}/abertas/${te}/${ne}`)}getUsuariosEncaminhamento(te){return this.http.get(`${this.url}/usuarios-encaminhamento/${te}`)}getResponsavelJuridico(){return this.http.get(`${this.url}/responsavel-juridico`)}getNomeTituloExecutor(te){return this.http.get(`${this.url}/${te}/nome-titulo-executor`)}getUsuarioRespTipo(te){return this.http.get(`${this.url}/${te}/responsavel-tipo`)}getUsuarioRespDivisao(te){return this.http.get(`${this.url}/${te}/responsavel-divisao`)}getListaPsicologicoAreaRestrita(te){return this.http.get(`${this.url}/area-restrita/psicologico`,{params:te})}getResponsavelGeral(){return this.http.get(`${this.url}/responsavel-geral`)}comunicaSolicitante(te,ne){return this.http.post(`${this.url}/${te}/comunica-solicitante`,ne)}encaminhaDemanda(te,ne){return this.http.post(`${this.url}/${te}/encaminha`,ne)}comunicacaoInterna(te,ne){return this.http.post(`${this.url}/${te}/comunicacao-interna`,ne)}encerraDemanda(te,ne){return this.http.post(`${this.url}/${te}/encerra`,ne)}cancelaDemanda(te,ne){return this.http.post(`${this.url}/${te}/cancela`,ne)}agendaDemanda(te,ne){return this.http.post(`${this.url}/${te}/agenda`,ne)}respondeAndamento(te,ne,ie){return this.http.post(`${this.url}/${te}/andamentos/${ne}/responde`,ie)}aceitaEncerramento(te,ne){return this.http.post(`${this.url}/${te}/aceita-encerramento`,ne)}recusaEncerramento(te,ne){return this.http.post(`${this.url}/${te}/recusa-encerramento`,ne)}aceitaSolicitacao(te,ne){return this.http.post(`${this.url}/${te}/aceita-solicitacao`,ne)}recusaSolicitacao(te,ne){return this.http.post(`${this.url}/${te}/recusa-solicitacao`,ne)}enviaRelatorioAssinado(te,ne){return this.http.post(`${this.url}/${te}/envia-relatorio-assinado`,ne)}aceitaReembolso(te,ne){return this.http.post(`${this.url}/${te}/aceita-reembolso`,ne)}liberaReembolso(te,ne){return this.http.post(`${this.url}/${te}/libera-reembolso`,ne)}recusaReembolso(te,ne){return this.http.post(`${this.url}/${te}/recusa-reembolso`,ne)}recusaReembolsoAssinado(te,ne,ie){return this.http.post(`${this.url}/${te}/${ne}/recusa-reembolso-assinado`,ie)}recusaLiberacaoReembolso(te,ne){return this.http.post(`${this.url}/${te}/recusa-liberacao-reembolso`,ne)}atualizaProcessoJuridico(te,ne){return this.http.patch(`${this.url}/${te}/processo-juridico`,{codProcessoJuridico:ne})}adicionaNovoDocumentoDemanda(te,ne){return this.http.post(`${this.url}/${te}/adiciona-documento`,ne)}criarPosEncerramento(te,ne){return this.http.post(`${this.url}/${te}/cria-pos-encerramento`,ne)}criarNovoAndamento(te,ne){return this.http.post(`${this.url}/${te}/novo-andamento`,ne)}static#e=this.ɵfac=function NbrDemandaService_Factory(te){return new(te||NbrDemandaService)};static#t=this.ɵprov=ce.jDH({token:NbrDemandaService,factory:NbrDemandaService.ɵfac,providedIn:"root"})}return NbrDemandaService})()},5511:(te,ne,ie)=>{"use strict";ie.d(ne,{Q:()=>Ce});var re=ie(3107),le=ie(936),ce=ie(1217),de=ie(2864),ue=ie(887),me=ie(2473),ge=ie(690),fe=ie(7287);let _e=(()=>{class NbrReembolsoDespesaService extends de.O7{constructor(){super("nbr-reembolso-despesa"),this.brListName="Despesa",this.brListNamePlural="Despesas",this.columns$=new ce.t([{formControlName:"codNbrReembolsoDespesa",fieldPath:"codNbrReembolsoDespesa",label:"ID",visible:!1},{formControlName:"codNbrDespesa",fieldPath:"nbrDespesa.nomeNbrDespesa",label:"Tipo de despesa"},{formControlName:"descrDespesa",fieldPath:"descrDespesa",label:"Descrição"},{formControlName:"quantidade",fieldPath:"quantidade",label:"Quantidade"},{formControlName:"valorUnitario",fieldPath:"valorUnitario",label:"Valor unitário",typeColumn:de.Ii.Currency},{formControlName:"valorTotal",fieldPath:"valorTotal",label:"Valor total",typeColumn:de.Ii.Currency}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrReembolsoDespesa",control:new le.MJ(null),typeInput:de.St.Text,showOnDetails:!1},{label:"Tipo de despesa",formControlName:"codNbrDespesa",control:new le.MJ(null,le.k0.required),typeInput:de.St.ForeignKey,optionLabel:"nomeNbrDespesa",optionValue:"codNbrDespesa",foreignEndpoint:"nbr-despesa"},{showOnDetails:!1,showOnFilter:!1,label:"Reembolso",formControlName:"codNbrReembolso",control:new le.MJ(null),typeInput:de.St.ForeignKey,optionLabel:"codNbrReembolso",optionValue:"codNbrReembolso",foreignEndpoint:"nbr-reembolso"},{label:"Descrição",formControlName:"descrDespesa",control:new le.MJ(null),typeInput:de.St.TextArea}]},{header:"Reembolso",controls:[{label:"Quantidade",formControlName:"quantidade",control:new le.MJ(null,le.k0.required),typeInput:de.St.Number},{label:"Valor unitário",formControlName:"valorUnitario",control:new le.MJ(null,le.k0.required),typeInput:de.St.Number,isCurrency:!0},{label:"Valor total",formControlName:"valorTotal",control:new le.MJ(null,le.k0.required),typeInput:de.St.Number,disabledOnDetails:!0,isCurrency:!0}]}]}static#e=this.ɵfac=function NbrReembolsoDespesaService_Factory(te){return new(te||NbrReembolsoDespesaService)};static#t=this.ɵprov=re.jDH({token:NbrReembolsoDespesaService,factory:NbrReembolsoDespesaService.ɵfac,providedIn:"root"})}return NbrReembolsoDespesaService})(),be=(()=>{class NbrReembolsoViagemService extends de.O7{constructor(){super("nbr-reembolso-viagem"),this.brListName="Deslocamento",this.brListNamePlural="Deslocamentos",this.columns$=new ce.t([{formControlName:"codNbrReembolsoViagem",fieldPath:"codNbrReembolsoViagem",label:"ID",visible:!1},{formControlName:"meioTransporte",fieldPath:"meioTransporte",label:"Meio de Transporte"},{formControlName:"codCidadeOrigem",fieldPath:"vtcidadeNbrReembolsoViagemCodCidadeOrigemTovtcidade.nomeCidadeUf",label:"Cidade de Origem"},{formControlName:"dataHoraInicial",fieldPath:"dataHoraInicial",label:"Data de Saída",typeColumn:de.Ii.DateTime},{fieldPath:"vtcidadeNbrReembolsoViagemCodCidadeDestinoTovtcidade.nomeCidadeUf",label:"Cidade de Destino",formControlName:"codCidadeDestino"},{formControlName:"dataHoraFinal",fieldPath:"dataHoraFinal",label:"Data de Chegada",typeColumn:de.Ii.DateTime}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrReembolsoViagem",control:new le.MJ(null),typeInput:de.St.Text,showOnDetails:!1},{showOnDetails:!1,showOnFilter:!1,label:"Reembolso",formControlName:"codNbrReembolso",control:new le.MJ(null,le.k0.required),typeInput:de.St.ForeignKey,optionLabel:"codNbrReembolso",optionValue:"codNbrReembolso",foreignEndpoint:"nbr-reembolso"},{label:"Meio de Transporte",formControlName:"meioTransporte",control:new le.MJ(null,le.k0.required),typeInput:de.St.Text},{label:"Cidade de Origem",formControlName:"codCidadeOrigem",control:new le.MJ(null,le.k0.required),typeInput:de.St.ForeignKey,optionLabel:"nomeCidadeUf",optionValue:"codCidade",foreignEndpoint:"vt-cidade"},{label:"Cidade de Destino",formControlName:"codCidadeDestino",control:new le.MJ(null,le.k0.required),typeInput:de.St.ForeignKey,optionLabel:"nomeCidadeUf",optionValue:"codCidade",foreignEndpoint:"vt-cidade"},{label:"Data de Saída",formControlName:"dataHoraInicial",control:new le.MJ(null,le.k0.required),typeInput:de.St.Date},{label:"Data de Chegada",formControlName:"dataHoraFinal",control:new le.MJ(null,le.k0.required),typeInput:de.St.Date}]}]}static#e=this.ɵfac=function NbrReembolsoViagemService_Factory(te){return new(te||NbrReembolsoViagemService)};static#t=this.ɵprov=re.jDH({token:NbrReembolsoViagemService,factory:NbrReembolsoViagemService.ɵfac,providedIn:"root"})}return NbrReembolsoViagemService})(),Ce=(()=>{class NbrReembolsoService extends de.O7{constructor(){super("nbr-reembolso"),this.nbrReembolsoDespesaService=(0,re.WQX)(_e),this.nbrReembolsoViagemService=(0,re.WQX)(be),this.tabService=(0,re.WQX)(me.r),this.preferenciasService=(0,re.WQX)(ue.v),this.brListName="Reembolso",this.brListNamePlural="Reembolsos",this.columns$=new ce.t([{formControlName:"codNbrReembolso",fieldPath:"codNbrReembolso",label:"ID"},{fieldPath:"lbrUsuarioNbrReembolsoCodLbrUsuarioTolbrUsuario.nomeUsuario",label:"Solicitante",formControlName:"codLbrUsuario"},{fieldPath:"nbrDemanda.nbrStatusDemanda.nomeNbrStatusDemanda",label:"Status",formControlName:""},{fieldPath:"nbrTipoReembolso.nomeNbrTipoReembolso",label:"Tipo",formControlName:"codNbrTipoReembolso"},{formControlName:"dataCriacaoRegistro",fieldPath:"dataCriacaoRegistro",label:"Data da solicitação",typeColumn:de.Ii.DateTime},{formControlName:"dataReembolso",fieldPath:"dataReembolso",label:"Data do reembolso",typeColumn:de.Ii.DateTime},{formControlName:"valorReembolso",fieldPath:"valorReembolso",label:"Valor do reembolso",typeColumn:de.Ii.Currency},{formControlName:"",fieldPath:"",label:"Valor do reembolso",typeColumn:de.Ii.Button,buttonLabel:"Acessar demanda",buttonIcon:"pi pi-external-link",buttonStyleClass:"p-button-secondary p-button-rounded p-button-raised p-button-sm",buttonCallback:te=>{this.tabService.open({component:fe.S,data:{appliedFilters:{codNbrDemanda:[String(te.codNbrDemanda)]},idRowDetails:te.codNbrDemanda,brListState:{isDetailsOpen:!0}}})}}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrReembolso",control:new le.MJ(null),typeInput:de.St.Text,showOnDetails:!1},{label:"Solicitante",formControlName:"codLbrUsuario",control:new le.MJ(null,le.k0.required),typeInput:de.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpf",foreignEndpoint:"lbr-usuario"},{label:"Tipo",formControlName:"codNbrTipoReembolso",control:new le.MJ(null,le.k0.required),typeInput:de.St.ForeignKey,optionLabel:"nomeNbrTipoReembolso",optionValue:"codNbrTipoReembolso",foreignEndpoint:"nbr-tipo-reembolso",foreignMinQuery:`codGrupoPessoal=${this.authService.usuario?.codGrupoPessoal}`},{label:"Chave PIX",formControlName:"chavePix",control:new le.MJ(null,le.k0.required),typeInput:de.St.Text},{label:"Justificativa",formControlName:"descrJustificativa",control:new le.MJ(null,le.k0.required),typeInput:de.St.TextArea},{label:"Documento assinado pelo solicitante",formControlName:"codDocEmpresaRel",control:new le.MJ(null),typeInput:de.St.Upload},{label:"Comprovante de pagamento do reembolso",formControlName:"codDocEmpresaCompPagto",control:new le.MJ(null),typeInput:de.St.Upload},{label:"Data da solicitação",formControlName:"dataCriacaoRegistro",control:new le.MJ(null),typeInput:de.St.Text,showOnDetails:!1,showOnFilter:!1},{label:"Data do reembolso",formControlName:"dataReembolso",control:new le.MJ(null),typeInput:de.St.Text,showOnDetails:!1,showOnFilter:!1},{label:"Valor do reembolso",formControlName:"valorReembolso",control:new le.MJ(null),typeInput:de.St.Text,showOnDetails:!1,showOnFilter:!1}]},{header:"Despesas",showAsTabView:!0,controls:[{showOnFilter:!1,label:"Despesa",formControlName:"codNbrReembolso",control:new le.MJ(null),typeInput:de.St.BrList,brListIntegradoService:this.nbrReembolsoDespesaService}]},{header:"Deslocamentos",showAsTabView:!0,controls:[{showOnFilter:!1,label:"Deslocamento",formControlName:"codNbrReembolso",control:new le.MJ(null),typeInput:de.St.BrList,brListIntegradoService:this.nbrReembolsoViagemService}]}],this.menuMais=[{label:"Demandas",icon:"pi pi-comments",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>String(te.codNbrDemanda||0)));this.tabService.open({component:fe.S,data:{appliedFilters:{codNbrDemanda:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}},{label:"Visualizar Relatório",icon:"pi pi-file",command:()=>{this.selectedRows?.length>0?this.abreRotinaRel("Relatório","ReembolsoDbRelForm",String(this.selectedRows[0].nbrTipoReembolso.codLbrRel),"R.COD_NBR_REEMBOLSO="+this.selectedRows.map((te=>te.codNbrReembolso))):this.brMessageService.info("É necessário selecionar algum registro antes")}}]}listRecordsAreaRestrita(te){return this.http.get(this.url+"/area-restrita",{params:te})}createRecordAreaRestrita(te){return this.http.post(this.url+"/area-restrita",te)}getChavePix(te){return this.http.get(`${this.url}/chave-pix/${te}`)}abreRotinaRel(te,ne,ie,re){this.tabService.open({header:te,component:ge.g,icon:"fa-light fa-fw fa-list-ul",data:{params:{codRel:ie,filtro:re,rotinaWeb:ne}}})}abrirRelatorioReembolso(te,ne,ie){this.state.isLoading=!0,this.preferenciasService.get("URL_INAPP").then((re=>{const le=`${re}?operacao=reembolso_rel&nome_rel=${ie}&cod_nbr_reembolso=${te}&cod_rel=${ne}&cab_empresa=false&rotina_integrada=true`;window.open(le,"_blank")}),(te=>{console.error(te)})).finally((()=>this.state.isLoading=!1))}static#e=this.ɵfac=function NbrReembolsoService_Factory(te){return new(te||NbrReembolsoService)};static#t=this.ɵprov=re.jDH({token:NbrReembolsoService,factory:NbrReembolsoService.ɵfac,providedIn:"root"})}return NbrReembolsoService})()},7914:(te,ne,ie)=>{"use strict";ie.d(ne,{U:()=>ue});var re=ie(936),le=ie(1217),ce=ie(2864),de=ie(3107);let ue=(()=>{class NbrStatusDemandaService extends ce.O7{constructor(){super("nbr-status-demanda"),this.brListName="Status de Demanda",this.brListNamePlural="Status de Demanda",this.columns$=new le.t([{formControlName:"codNbrStatusDemanda",fieldPath:"codNbrStatusDemanda",label:"ID"},{formControlName:"nomeNbrStatusDemanda",fieldPath:"nomeNbrStatusDemanda",label:"Nome"},{label:"Tipo de atendimento",formControlName:"codNbrTipoAtendimento",fieldPath:"nbrTipoAtendimentoNbrStatusDemandaCodNbrTipoAtendimentoTonbrTipoAtendimento.nomeNbrTipoAtendimento"},{formControlName:"comunicacaoInterna",fieldPath:"comunicacaoInterna",label:"Comunicação interna",typeColumn:ce.Ii.CheckBox},{formControlName:"encaminhamento",fieldPath:"encaminhamento",label:"Encaminhamento",typeColumn:ce.Ii.CheckBox},{formControlName:"responderAndamento",fieldPath:"responderAndamento",label:"Responder andamento",typeColumn:ce.Ii.CheckBox},{formControlName:"comunicarSolicitante",fieldPath:"comunicarSolicitante",label:"Comunicar solicitante",typeColumn:ce.Ii.CheckBox},{formControlName:"encerramento",fieldPath:"encerramento",label:"Encerramento",typeColumn:ce.Ii.CheckBox},{formControlName:"posDemandaEncerrada",fieldPath:"posDemandaEncerrada",label:"Pós-encerramento",typeColumn:ce.Ii.CheckBox},{formControlName:"recusaEncerramento",fieldPath:"recusaEncerramento",label:"Recusar encerramento",typeColumn:ce.Ii.CheckBox},{formControlName:"novoDoc",fieldPath:"novoDoc",label:"Novo documento",typeColumn:ce.Ii.CheckBox},{formControlName:"nomeIcone",fieldPath:"nomeIcone",label:"Ícone",typeColumn:ce.Ii.Icon},{formControlName:"corIcone",fieldPath:"corIcone",label:"Cor"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrStatusDemanda",control:new re.MJ(null),typeInput:ce.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeNbrStatusDemanda",control:new re.MJ(null,re.k0.required),typeInput:ce.St.Text},{label:"Ícone",formControlName:"nomeIcone",control:new re.MJ(null,re.k0.required),typeInput:ce.St.Text},{label:"Cor",formControlName:"corIcone",control:new re.MJ(null,re.k0.required),typeInput:ce.St.Text},{label:"Dias até bloqueio",formControlName:"qtdeDiasBloqueio",control:new re.MJ(null),typeInput:ce.St.Number}]},{header:"Configurações",controls:[{label:"Tipo de atendimento",formControlName:"codNbrTipoAtendimento",control:new re.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrTipoAtendimento",optionValue:"codNbrTipoAtendimento",foreignEndpoint:"nbr-tipo-atendimento"},{label:"Status ao aceitar",formControlName:"codNbrStatusAceite",control:new re.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda"},{label:"Status ao recusar",formControlName:"codNbrStatusRecusa",control:new re.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda"},{label:"Avisar usuário responsável do tipo durante andamentos",formControlName:"avisarUsuarioResp",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Andamentos somente para o usuário responsável do tipo",formControlName:"criarAndSoParaResp",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir comunicação interna",formControlName:"comunicacaoInterna",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir encaminhamento",formControlName:"encaminhamento",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir novo andamento",formControlName:"novoAndamento",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir responder andamento",formControlName:"responderAndamento",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir comunicar solicitante",formControlName:"comunicarSolicitante",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir encerramento",formControlName:"encerramento",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir recusar encerramento",formControlName:"recusaEncerramento",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir novo documento",formControlName:"novoDoc",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir agendamento",formControlName:"agendamento",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir cancelamento",formControlName:"cancelamento",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Permitir pós-encerramento",formControlName:"posDemandaEncerrada",control:new re.MJ(null),typeInput:ce.St.CheckBox}]}]}getStatusAssinaturaDigital(){return this.http.get(`${this.url}/status-assinatura-digital`)}static#e=this.ɵfac=function NbrStatusDemandaService_Factory(te){return new(te||NbrStatusDemandaService)};static#t=this.ɵprov=de.jDH({token:NbrStatusDemandaService,factory:NbrStatusDemandaService.ɵfac,providedIn:"root"})}return NbrStatusDemandaService})()},4838:(te,ne,ie)=>{"use strict";ie.d(ne,{Q:()=>ue});var re=ie(936),le=ie(1217),ce=ie(2864),de=ie(3107);let ue=(()=>{class NbrTipoAtendimentoService extends ce.O7{constructor(){super("nbr-tipo-atendimento"),this.defaultDetailsValue={mostraHistorico:"V"},this.brListName="Tipo de Atendimento",this.brListNamePlural="Tipos de Atendimento",this.columns$=new le.t([{formControlName:"codNbrTipoAtendimento",fieldPath:"codNbrTipoAtendimento",label:"ID"},{formControlName:"nomeNbrTipoAtendimento",fieldPath:"nomeNbrTipoAtendimento",label:"Nome"},{formControlName:"sigilo",fieldPath:"sigilo",label:"Sigiloso",typeColumn:ce.Ii.CheckBox},{formControlName:"qtdeDemandaMesTotal",fieldPath:"qtdeDemandaMesTotal",label:"Máximo mensal total"},{formControlName:"qtdeDemandaMesSolic",fieldPath:"qtdeDemandaMesSolic",label:"Máximo mensal por usuário"},{formControlName:"qtdeDiaAutoEncerrar",fieldPath:"qtdeDiaAutoEncerrar",label:"Quantidade de dias para encerramento automático"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrTipoAtendimento",control:new re.MJ(null),typeInput:ce.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeNbrTipoAtendimento",control:new re.MJ(null,re.k0.required),typeInput:ce.St.Text},{label:"Usuário responsável",formControlName:"codLbrUsuarioResp",control:new re.MJ(null,re.k0.required),typeInput:ce.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpf",foreignEndpoint:"lbr-usuario"}]},{header:"Padrão na Criação de Demanda",controls:[{label:"Assunto",formControlName:"assuntoPadrao",control:new re.MJ(null),typeInput:ce.St.Text},{label:"Área de atendimento",formControlName:"codNbrAreaAtendPadrao",control:new re.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrAreaAtendimento",optionValue:"codNbrAreaAtendimento",foreignEndpoint:"nbr-area-atendimento"},{label:"Forma de atendimento",formControlName:"codNbrFormaAtendPadrao",control:new re.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrFormaAtendimento",optionValue:"codNbrFormaAtendimento",foreignEndpoint:"nbr-forma-atendimento"},{label:"Modo de atendimento",formControlName:"codNbrModoAtendPadrao",control:new re.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrModoAtendimento",optionValue:"codNbrModoAtendimento",foreignEndpoint:"nbr-modo-atendimento"},{label:"Descrição",formControlName:"descrPadrao",control:new re.MJ(null),typeInput:ce.St.Text}]},{header:"Configurações Gerais",controls:[{label:"Máximo mensal total",formControlName:"qtdeDemandaMesTotal",control:new re.MJ(null),typeInput:ce.St.Number,isCurrency:!1},{label:"Máximo mensal por usuário",formControlName:"qtdeDemandaMesSolic",control:new re.MJ(null),typeInput:ce.St.Number,isCurrency:!1},{label:"Dias para auto-encerramento",formControlName:"qtdeDiaAutoEncerrar",control:new re.MJ(null),typeInput:ce.St.Number,isCurrency:!1},{label:"Limite máximo em aberto",formControlName:"limiteDemandaEmAberto",control:new re.MJ(null),typeInput:ce.St.Number,isCurrency:!1},{label:"Intervalo em dias",formControlName:"qtdeDiaIntervalo",control:new re.MJ(null),typeInput:ce.St.Number,isCurrency:!1},{label:"Sigiloso",formControlName:"sigilo",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:"Mostrar histórico",formControlName:"mostraHistorico",control:new re.MJ(null),typeInput:ce.St.CheckBox}]},{header:"Configurações de Status da Demanda",controls:[{label:"Status inicial",formControlName:"codNbrStatusCriacao",control:new re.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda"},{label:"Status de encerramento",formControlName:"codNbrStatusEncerramento",control:new re.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda"},{label:"Status de cancelamento",formControlName:"codNbrStatusCancelamento",control:new re.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda"}]},{header:"Configurações de Demandas",controls:[{label:"Modelo de e-mail para enviar na criação do atendimento",formControlName:"codModeloEmail",control:new re.MJ(null),typeInput:ce.St.ForeignKey,optionLabel:"nomeModeloEmail",optionValue:"codModeloEmail",foreignEndpoint:"modelo-email"},{label:"Título ao aceitar",formControlName:"tituloAceite",control:new re.MJ(null),typeInput:ce.St.Text},{label:"Título ao recusar",formControlName:"tituloRecusa",control:new re.MJ(null),typeInput:ce.St.Text},{label:'Mostrar botão "Encaminhar"',formControlName:"temEncaminhamento",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:'Mostrar botão "Agendar"',formControlName:"temAgendamento",control:new re.MJ(null),typeInput:ce.St.CheckBox},{label:'Mostrar botão "Cancelar"',formControlName:"temCancelamento",control:new re.MJ(null),typeInput:ce.St.CheckBox}]}]}static#e=this.ɵfac=function NbrTipoAtendimentoService_Factory(te){return new(te||NbrTipoAtendimentoService)};static#t=this.ɵprov=de.jDH({token:NbrTipoAtendimentoService,factory:NbrTipoAtendimentoService.ɵfac,providedIn:"root"})}return NbrTipoAtendimentoService})()},690:(te,ne,ie)=>{"use strict";ie.d(ne,{g:()=>It});var re=ie(4460),le=ie(3107),ce=ie(6388);function _typeof(te){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(te){return typeof te}:function(te){return te&&"function"==typeof Symbol&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},_typeof(te)}function requiredArgs(te,ne){if(ne.length<te)throw new TypeError(te+" argument"+(te>1?"s":"")+" required, but only "+ne.length+" present")}function toDate(te){requiredArgs(1,arguments);var ne=Object.prototype.toString.call(te);return te instanceof Date||"object"===_typeof(te)&&"[object Date]"===ne?new Date(te.getTime()):"number"==typeof te||"[object Number]"===ne?new Date(te):("string"!=typeof te&&"[object String]"!==ne||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function isValid(te){if(requiredArgs(1,arguments),!function isDate(te){return requiredArgs(1,arguments),te instanceof Date||"object"===_typeof(te)&&"[object Date]"===Object.prototype.toString.call(te)}(te)&&"number"!=typeof te)return!1;var ne=toDate(te);return!isNaN(Number(ne))}function toInteger(te){if(null===te||!0===te||!1===te)return NaN;var ne=Number(te);return isNaN(ne)?ne:ne<0?Math.ceil(ne):Math.floor(ne)}function subMilliseconds(te,ne){return requiredArgs(2,arguments),function addMilliseconds(te,ne){requiredArgs(2,arguments);var ie=toDate(te).getTime(),re=toInteger(ne);return new Date(ie+re)}(te,-toInteger(ne))}function startOfUTCISOWeek(te){requiredArgs(1,arguments);var ne=toDate(te),ie=ne.getUTCDay(),re=(ie<1?7:0)+ie-1;return ne.setUTCDate(ne.getUTCDate()-re),ne.setUTCHours(0,0,0,0),ne}function getUTCISOWeekYear(te){requiredArgs(1,arguments);var ne=toDate(te),ie=ne.getUTCFullYear(),re=new Date(0);re.setUTCFullYear(ie+1,0,4),re.setUTCHours(0,0,0,0);var le=startOfUTCISOWeek(re),ce=new Date(0);ce.setUTCFullYear(ie,0,4),ce.setUTCHours(0,0,0,0);var de=startOfUTCISOWeek(ce);return ne.getTime()>=le.getTime()?ie+1:ne.getTime()>=de.getTime()?ie:ie-1}function getUTCISOWeek(te){requiredArgs(1,arguments);var ne=toDate(te),ie=startOfUTCISOWeek(ne).getTime()-function startOfUTCISOWeekYear(te){requiredArgs(1,arguments);var ne=getUTCISOWeekYear(te),ie=new Date(0);return ie.setUTCFullYear(ne,0,4),ie.setUTCHours(0,0,0,0),startOfUTCISOWeek(ie)}(ne).getTime();return Math.round(ie/6048e5)+1}var de={};function getDefaultOptions(){return de}function startOfUTCWeek(te,ne){var ie,re,le,ce,de,ue,me,ge;requiredArgs(1,arguments);var fe=getDefaultOptions(),_e=toInteger(null!==(ie=null!==(re=null!==(le=null!==(ce=null==ne?void 0:ne.weekStartsOn)&&void 0!==ce?ce:null==ne||null===(de=ne.locale)||void 0===de||null===(ue=de.options)||void 0===ue?void 0:ue.weekStartsOn)&&void 0!==le?le:fe.weekStartsOn)&&void 0!==re?re:null===(me=fe.locale)||void 0===me||null===(ge=me.options)||void 0===ge?void 0:ge.weekStartsOn)&&void 0!==ie?ie:0);if(!(_e>=0&&_e<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var be=toDate(te),Ce=be.getUTCDay(),ye=(Ce<_e?7:0)+Ce-_e;return be.setUTCDate(be.getUTCDate()-ye),be.setUTCHours(0,0,0,0),be}function getUTCWeekYear(te,ne){var ie,re,le,ce,de,ue,me,ge;requiredArgs(1,arguments);var fe=toDate(te),_e=fe.getUTCFullYear(),be=getDefaultOptions(),Ce=toInteger(null!==(ie=null!==(re=null!==(le=null!==(ce=null==ne?void 0:ne.firstWeekContainsDate)&&void 0!==ce?ce:null==ne||null===(de=ne.locale)||void 0===de||null===(ue=de.options)||void 0===ue?void 0:ue.firstWeekContainsDate)&&void 0!==le?le:be.firstWeekContainsDate)&&void 0!==re?re:null===(me=be.locale)||void 0===me||null===(ge=me.options)||void 0===ge?void 0:ge.firstWeekContainsDate)&&void 0!==ie?ie:1);if(!(Ce>=1&&Ce<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ye=new Date(0);ye.setUTCFullYear(_e+1,0,Ce),ye.setUTCHours(0,0,0,0);var we=startOfUTCWeek(ye,ne),ke=new Date(0);ke.setUTCFullYear(_e,0,Ce),ke.setUTCHours(0,0,0,0);var Se=startOfUTCWeek(ke,ne);return fe.getTime()>=we.getTime()?_e+1:fe.getTime()>=Se.getTime()?_e:_e-1}function getUTCWeek(te,ne){requiredArgs(1,arguments);var ie=toDate(te),re=startOfUTCWeek(ie,ne).getTime()-function startOfUTCWeekYear(te,ne){var ie,re,le,ce,de,ue,me,ge;requiredArgs(1,arguments);var fe=getDefaultOptions(),_e=toInteger(null!==(ie=null!==(re=null!==(le=null!==(ce=null==ne?void 0:ne.firstWeekContainsDate)&&void 0!==ce?ce:null==ne||null===(de=ne.locale)||void 0===de||null===(ue=de.options)||void 0===ue?void 0:ue.firstWeekContainsDate)&&void 0!==le?le:fe.firstWeekContainsDate)&&void 0!==re?re:null===(me=fe.locale)||void 0===me||null===(ge=me.options)||void 0===ge?void 0:ge.firstWeekContainsDate)&&void 0!==ie?ie:1),be=getUTCWeekYear(te,ne),Ce=new Date(0);return Ce.setUTCFullYear(be,0,_e),Ce.setUTCHours(0,0,0,0),startOfUTCWeek(Ce,ne)}(ie,ne).getTime();return Math.round(re/6048e5)+1}function addLeadingZeros(te,ne){for(var ie=te<0?"-":"",re=Math.abs(te).toString();re.length<ne;)re="0"+re;return ie+re}const ue={y:function y(te,ne){var ie=te.getUTCFullYear(),re=ie>0?ie:1-ie;return addLeadingZeros("yy"===ne?re%100:re,ne.length)},M:function M(te,ne){var ie=te.getUTCMonth();return"M"===ne?String(ie+1):addLeadingZeros(ie+1,2)},d:function d(te,ne){return addLeadingZeros(te.getUTCDate(),ne.length)},a:function a(te,ne){var ie=te.getUTCHours()/12>=1?"pm":"am";switch(ne){case"a":case"aa":return ie.toUpperCase();case"aaa":return ie;case"aaaaa":return ie[0];default:return"am"===ie?"a.m.":"p.m."}},h:function h(te,ne){return addLeadingZeros(te.getUTCHours()%12||12,ne.length)},H:function H(te,ne){return addLeadingZeros(te.getUTCHours(),ne.length)},m:function m(te,ne){return addLeadingZeros(te.getUTCMinutes(),ne.length)},s:function s(te,ne){return addLeadingZeros(te.getUTCSeconds(),ne.length)},S:function S(te,ne){var ie=ne.length,re=te.getUTCMilliseconds();return addLeadingZeros(Math.floor(re*Math.pow(10,ie-3)),ne.length)}};var me="midnight",ge="noon",fe="morning",_e="afternoon",be="evening",Ce="night",ye={G:function G(te,ne,ie){var re=te.getUTCFullYear()>0?1:0;switch(ne){case"G":case"GG":case"GGG":return ie.era(re,{width:"abbreviated"});case"GGGGG":return ie.era(re,{width:"narrow"});default:return ie.era(re,{width:"wide"})}},y:function y(te,ne,ie){if("yo"===ne){var re=te.getUTCFullYear(),le=re>0?re:1-re;return ie.ordinalNumber(le,{unit:"year"})}return ue.y(te,ne)},Y:function Y(te,ne,ie,re){var le=getUTCWeekYear(te,re),ce=le>0?le:1-le;return"YY"===ne?addLeadingZeros(ce%100,2):"Yo"===ne?ie.ordinalNumber(ce,{unit:"year"}):addLeadingZeros(ce,ne.length)},R:function R(te,ne){return addLeadingZeros(getUTCISOWeekYear(te),ne.length)},u:function u(te,ne){return addLeadingZeros(te.getUTCFullYear(),ne.length)},Q:function Q(te,ne,ie){var re=Math.ceil((te.getUTCMonth()+1)/3);switch(ne){case"Q":return String(re);case"QQ":return addLeadingZeros(re,2);case"Qo":return ie.ordinalNumber(re,{unit:"quarter"});case"QQQ":return ie.quarter(re,{width:"abbreviated",context:"formatting"});case"QQQQQ":return ie.quarter(re,{width:"narrow",context:"formatting"});default:return ie.quarter(re,{width:"wide",context:"formatting"})}},q:function q(te,ne,ie){var re=Math.ceil((te.getUTCMonth()+1)/3);switch(ne){case"q":return String(re);case"qq":return addLeadingZeros(re,2);case"qo":return ie.ordinalNumber(re,{unit:"quarter"});case"qqq":return ie.quarter(re,{width:"abbreviated",context:"standalone"});case"qqqqq":return ie.quarter(re,{width:"narrow",context:"standalone"});default:return ie.quarter(re,{width:"wide",context:"standalone"})}},M:function M(te,ne,ie){var re=te.getUTCMonth();switch(ne){case"M":case"MM":return ue.M(te,ne);case"Mo":return ie.ordinalNumber(re+1,{unit:"month"});case"MMM":return ie.month(re,{width:"abbreviated",context:"formatting"});case"MMMMM":return ie.month(re,{width:"narrow",context:"formatting"});default:return ie.month(re,{width:"wide",context:"formatting"})}},L:function L(te,ne,ie){var re=te.getUTCMonth();switch(ne){case"L":return String(re+1);case"LL":return addLeadingZeros(re+1,2);case"Lo":return ie.ordinalNumber(re+1,{unit:"month"});case"LLL":return ie.month(re,{width:"abbreviated",context:"standalone"});case"LLLLL":return ie.month(re,{width:"narrow",context:"standalone"});default:return ie.month(re,{width:"wide",context:"standalone"})}},w:function w(te,ne,ie,re){var le=getUTCWeek(te,re);return"wo"===ne?ie.ordinalNumber(le,{unit:"week"}):addLeadingZeros(le,ne.length)},I:function I(te,ne,ie){var re=getUTCISOWeek(te);return"Io"===ne?ie.ordinalNumber(re,{unit:"week"}):addLeadingZeros(re,ne.length)},d:function d(te,ne,ie){return"do"===ne?ie.ordinalNumber(te.getUTCDate(),{unit:"date"}):ue.d(te,ne)},D:function D(te,ne,ie){var re=function getUTCDayOfYear(te){requiredArgs(1,arguments);var ne=toDate(te),ie=ne.getTime();ne.setUTCMonth(0,1),ne.setUTCHours(0,0,0,0);var re=ie-ne.getTime();return Math.floor(re/864e5)+1}(te);return"Do"===ne?ie.ordinalNumber(re,{unit:"dayOfYear"}):addLeadingZeros(re,ne.length)},E:function E(te,ne,ie){var re=te.getUTCDay();switch(ne){case"E":case"EE":case"EEE":return ie.day(re,{width:"abbreviated",context:"formatting"});case"EEEEE":return ie.day(re,{width:"narrow",context:"formatting"});case"EEEEEE":return ie.day(re,{width:"short",context:"formatting"});default:return ie.day(re,{width:"wide",context:"formatting"})}},e:function e(te,ne,ie,re){var le=te.getUTCDay(),ce=(le-re.weekStartsOn+8)%7||7;switch(ne){case"e":return String(ce);case"ee":return addLeadingZeros(ce,2);case"eo":return ie.ordinalNumber(ce,{unit:"day"});case"eee":return ie.day(le,{width:"abbreviated",context:"formatting"});case"eeeee":return ie.day(le,{width:"narrow",context:"formatting"});case"eeeeee":return ie.day(le,{width:"short",context:"formatting"});default:return ie.day(le,{width:"wide",context:"formatting"})}},c:function c(te,ne,ie,re){var le=te.getUTCDay(),ce=(le-re.weekStartsOn+8)%7||7;switch(ne){case"c":return String(ce);case"cc":return addLeadingZeros(ce,ne.length);case"co":return ie.ordinalNumber(ce,{unit:"day"});case"ccc":return ie.day(le,{width:"abbreviated",context:"standalone"});case"ccccc":return ie.day(le,{width:"narrow",context:"standalone"});case"cccccc":return ie.day(le,{width:"short",context:"standalone"});default:return ie.day(le,{width:"wide",context:"standalone"})}},i:function i(te,ne,ie){var re=te.getUTCDay(),le=0===re?7:re;switch(ne){case"i":return String(le);case"ii":return addLeadingZeros(le,ne.length);case"io":return ie.ordinalNumber(le,{unit:"day"});case"iii":return ie.day(re,{width:"abbreviated",context:"formatting"});case"iiiii":return ie.day(re,{width:"narrow",context:"formatting"});case"iiiiii":return ie.day(re,{width:"short",context:"formatting"});default:return ie.day(re,{width:"wide",context:"formatting"})}},a:function a(te,ne,ie){var re=te.getUTCHours()/12>=1?"pm":"am";switch(ne){case"a":case"aa":return ie.dayPeriod(re,{width:"abbreviated",context:"formatting"});case"aaa":return ie.dayPeriod(re,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return ie.dayPeriod(re,{width:"narrow",context:"formatting"});default:return ie.dayPeriod(re,{width:"wide",context:"formatting"})}},b:function b(te,ne,ie){var re,le=te.getUTCHours();switch(re=12===le?ge:0===le?me:le/12>=1?"pm":"am",ne){case"b":case"bb":return ie.dayPeriod(re,{width:"abbreviated",context:"formatting"});case"bbb":return ie.dayPeriod(re,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return ie.dayPeriod(re,{width:"narrow",context:"formatting"});default:return ie.dayPeriod(re,{width:"wide",context:"formatting"})}},B:function B(te,ne,ie){var re,le=te.getUTCHours();switch(re=le>=17?be:le>=12?_e:le>=4?fe:Ce,ne){case"B":case"BB":case"BBB":return ie.dayPeriod(re,{width:"abbreviated",context:"formatting"});case"BBBBB":return ie.dayPeriod(re,{width:"narrow",context:"formatting"});default:return ie.dayPeriod(re,{width:"wide",context:"formatting"})}},h:function h(te,ne,ie){if("ho"===ne){var re=te.getUTCHours()%12;return 0===re&&(re=12),ie.ordinalNumber(re,{unit:"hour"})}return ue.h(te,ne)},H:function H(te,ne,ie){return"Ho"===ne?ie.ordinalNumber(te.getUTCHours(),{unit:"hour"}):ue.H(te,ne)},K:function K(te,ne,ie){var re=te.getUTCHours()%12;return"Ko"===ne?ie.ordinalNumber(re,{unit:"hour"}):addLeadingZeros(re,ne.length)},k:function k(te,ne,ie){var re=te.getUTCHours();return 0===re&&(re=24),"ko"===ne?ie.ordinalNumber(re,{unit:"hour"}):addLeadingZeros(re,ne.length)},m:function m(te,ne,ie){return"mo"===ne?ie.ordinalNumber(te.getUTCMinutes(),{unit:"minute"}):ue.m(te,ne)},s:function s(te,ne,ie){return"so"===ne?ie.ordinalNumber(te.getUTCSeconds(),{unit:"second"}):ue.s(te,ne)},S:function S(te,ne){return ue.S(te,ne)},X:function X(te,ne,ie,re){var le=(re._originalDate||te).getTimezoneOffset();if(0===le)return"Z";switch(ne){case"X":return formatTimezoneWithOptionalMinutes(le);case"XXXX":case"XX":return formatTimezone(le);default:return formatTimezone(le,":")}},x:function x(te,ne,ie,re){var le=(re._originalDate||te).getTimezoneOffset();switch(ne){case"x":return formatTimezoneWithOptionalMinutes(le);case"xxxx":case"xx":return formatTimezone(le);default:return formatTimezone(le,":")}},O:function O(te,ne,ie,re){var le=(re._originalDate||te).getTimezoneOffset();switch(ne){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(le,":");default:return"GMT"+formatTimezone(le,":")}},z:function z(te,ne,ie,re){var le=(re._originalDate||te).getTimezoneOffset();switch(ne){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(le,":");default:return"GMT"+formatTimezone(le,":")}},t:function t(te,ne,ie,re){var le=re._originalDate||te;return addLeadingZeros(Math.floor(le.getTime()/1e3),ne.length)},T:function T(te,ne,ie,re){return addLeadingZeros((re._originalDate||te).getTime(),ne.length)}};function formatTimezoneShort(te,ne){var ie=te>0?"-":"+",re=Math.abs(te),le=Math.floor(re/60),ce=re%60;if(0===ce)return ie+String(le);var de=ne||"";return ie+String(le)+de+addLeadingZeros(ce,2)}function formatTimezoneWithOptionalMinutes(te,ne){return te%60==0?(te>0?"-":"+")+addLeadingZeros(Math.abs(te)/60,2):formatTimezone(te,ne)}function formatTimezone(te,ne){var ie=ne||"",re=te>0?"-":"+",le=Math.abs(te);return re+addLeadingZeros(Math.floor(le/60),2)+ie+addLeadingZeros(le%60,2)}const we=ye;var ke=function dateLongFormatter(te,ne){switch(te){case"P":return ne.date({width:"short"});case"PP":return ne.date({width:"medium"});case"PPP":return ne.date({width:"long"});default:return ne.date({width:"full"})}},Se=function timeLongFormatter(te,ne){switch(te){case"p":return ne.time({width:"short"});case"pp":return ne.time({width:"medium"});case"ppp":return ne.time({width:"long"});default:return ne.time({width:"full"})}},xe={p:Se,P:function dateTimeLongFormatter(te,ne){var ie,re=te.match(/(P+)(p+)?/)||[],le=re[1],ce=re[2];if(!ce)return ke(te,ne);switch(le){case"P":ie=ne.dateTime({width:"short"});break;case"PP":ie=ne.dateTime({width:"medium"});break;case"PPP":ie=ne.dateTime({width:"long"});break;default:ie=ne.dateTime({width:"full"})}return ie.replace("{{date}}",ke(le,ne)).replace("{{time}}",Se(ce,ne))}};const Ee=xe;var Me=["D","DD"],Ne=["YY","YYYY"];function throwProtectedError(te,ne,ie){if("YYYY"===te)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(ne,"`) for formatting years to the input `").concat(ie,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===te)throw new RangeError("Use `yy` instead of `YY` (in `".concat(ne,"`) for formatting years to the input `").concat(ie,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===te)throw new RangeError("Use `d` instead of `D` (in `".concat(ne,"`) for formatting days of the month to the input `").concat(ie,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===te)throw new RangeError("Use `dd` instead of `DD` (in `".concat(ne,"`) for formatting days of the month to the input `").concat(ie,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Re={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const Le=function formatDistance(te,ne,ie){var re,le=Re[te];return re="string"==typeof le?le:1===ne?le.one:le.other.replace("{{count}}",ne.toString()),null!=ie&&ie.addSuffix?ie.comparison&&ie.comparison>0?"in "+re:re+" ago":re};function buildFormatLongFn(te){return function(){var ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ie=ne.width?String(ne.width):te.defaultWidth;return te.formats[ie]||te.formats[te.defaultWidth]}}var Oe={date:buildFormatLongFn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:buildFormatLongFn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Pe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function buildLocalizeFn(te){return function(ne,ie){var re;if("formatting"===(null!=ie&&ie.context?String(ie.context):"standalone")&&te.formattingValues){var le=te.defaultFormattingWidth||te.defaultWidth,ce=null!=ie&&ie.width?String(ie.width):le;re=te.formattingValues[ce]||te.formattingValues[le]}else{var de=te.defaultWidth,ue=null!=ie&&ie.width?String(ie.width):te.defaultWidth;re=te.values[ue]||te.values[de]}return re[te.argumentCallback?te.argumentCallback(ne):ne]}}function buildMatchFn(te){return function(ne){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},re=ie.width,le=re&&te.matchPatterns[re]||te.matchPatterns[te.defaultMatchWidth],ce=ne.match(le);if(!ce)return null;var de,ue=ce[0],me=re&&te.parsePatterns[re]||te.parsePatterns[te.defaultParseWidth],ge=Array.isArray(me)?function findIndex(te,ne){for(var ie=0;ie<te.length;ie++)if(ne(te[ie]))return ie;return}(me,(function(te){return te.test(ue)})):function findKey(te,ne){for(var ie in te)if(te.hasOwnProperty(ie)&&ne(te[ie]))return ie;return}(me,(function(te){return te.test(ue)}));return de=te.valueCallback?te.valueCallback(ge):ge,{value:de=ie.valueCallback?ie.valueCallback(de):de,rest:ne.slice(ue.length)}}}const Fe={code:"en-US",formatDistance:Le,formatLong:Oe,formatRelative:function formatRelative(te,ne,ie,re){return Pe[te]},localize:{ordinalNumber:function ordinalNumber(te,ne){var ie=Number(te),re=ie%100;if(re>20||re<10)switch(re%10){case 1:return ie+"st";case 2:return ie+"nd";case 3:return ie+"rd"}return ie+"th"},era:buildLocalizeFn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:buildLocalizeFn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function argumentCallback(te){return te-1}}),month:buildLocalizeFn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:buildLocalizeFn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function buildMatchPatternFn(te){return function(ne){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},re=ne.match(te.matchPattern);if(!re)return null;var le=re[0],ce=ne.match(te.parsePattern);if(!ce)return null;var de=te.valueCallback?te.valueCallback(ce[0]):ce[0];return{value:de=ie.valueCallback?ie.valueCallback(de):de,rest:ne.slice(le.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function valueCallback(te){return parseInt(te,10)}}),era:buildMatchFn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function valueCallback(te){return te+1}}),month:buildMatchFn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var je=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ge=/^'([^]*?)'?$/,ze=/''/g,He=/[a-zA-Z]/;function format(te,ne,ie){var re,le,ce,de,ue,me,ge,fe,_e,be,Ce,ye,ke,Se,xe,Re,Le,Oe;requiredArgs(2,arguments);var Pe=String(ne),$e=getDefaultOptions(),qe=null!==(re=null!==(le=null==ie?void 0:ie.locale)&&void 0!==le?le:$e.locale)&&void 0!==re?re:Fe,Ye=toInteger(null!==(ce=null!==(de=null!==(ue=null!==(me=null==ie?void 0:ie.firstWeekContainsDate)&&void 0!==me?me:null==ie||null===(ge=ie.locale)||void 0===ge||null===(fe=ge.options)||void 0===fe?void 0:fe.firstWeekContainsDate)&&void 0!==ue?ue:$e.firstWeekContainsDate)&&void 0!==de?de:null===(_e=$e.locale)||void 0===_e||null===(be=_e.options)||void 0===be?void 0:be.firstWeekContainsDate)&&void 0!==ce?ce:1);if(!(Ye>=1&&Ye<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Xe=toInteger(null!==(Ce=null!==(ye=null!==(ke=null!==(Se=null==ie?void 0:ie.weekStartsOn)&&void 0!==Se?Se:null==ie||null===(xe=ie.locale)||void 0===xe||null===(Re=xe.options)||void 0===Re?void 0:Re.weekStartsOn)&&void 0!==ke?ke:$e.weekStartsOn)&&void 0!==ye?ye:null===(Le=$e.locale)||void 0===Le||null===(Oe=Le.options)||void 0===Oe?void 0:Oe.weekStartsOn)&&void 0!==Ce?Ce:0);if(!(Xe>=0&&Xe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!qe.localize)throw new RangeError("locale must contain localize property");if(!qe.formatLong)throw new RangeError("locale must contain formatLong property");var Ke=toDate(te);if(!isValid(Ke))throw new RangeError("Invalid time value");var Qe=function getTimezoneOffsetInMilliseconds(te){var ne=new Date(Date.UTC(te.getFullYear(),te.getMonth(),te.getDate(),te.getHours(),te.getMinutes(),te.getSeconds(),te.getMilliseconds()));return ne.setUTCFullYear(te.getFullYear()),te.getTime()-ne.getTime()}(Ke),Je=subMilliseconds(Ke,Qe),dt={firstWeekContainsDate:Ye,weekStartsOn:Xe,locale:qe,_originalDate:Ke};return Pe.match(Ve).map((function(te){var ne=te[0];return"p"===ne||"P"===ne?(0,Ee[ne])(te,qe.formatLong):te})).join("").match(je).map((function(re){if("''"===re)return"'";var le=re[0];if("'"===le)return function cleanEscapedString(te){var ne=te.match(Ge);if(!ne)return te;return ne[1].replace(ze,"'")}(re);var ce=we[le];if(ce)return null!=ie&&ie.useAdditionalWeekYearTokens||!function isProtectedWeekYearToken(te){return-1!==Ne.indexOf(te)}(re)||throwProtectedError(re,ne,String(te)),null!=ie&&ie.useAdditionalDayOfYearTokens||!function isProtectedDayOfYearToken(te){return-1!==Me.indexOf(te)}(re)||throwProtectedError(re,ne,String(te)),ce(Je,re,qe.localize,dt);if(le.match(He))throw new RangeError("Format string contains an unescaped latin alphabet character `"+le+"`");return re})).join("")}var $e=ie(3828),qe=ie(5328),Ye=ie(1787),Xe=ie(7178),Ke=ie(6564),Qe=ie(4447),Je=ie(9746),dt=ie(6830),pt=ie(6563),Ct=ie(887),vt=ie(7538);function RotinaIncfaComponent_iframe_0_Template(te,ne){if(1&te&&le.nrm(0,"iframe",2),2&te){const te=le.XpG();le.Y8G("src",te.url,le.f$h)}}let It=(()=>{class RotinaIncfaComponent{constructor(){this.authService=(0,le.WQX)(dt.u),this.preferenciaService=(0,le.WQX)(Ct.v),this.tabRef=(0,le.WQX)(Je.l),this.messageService=(0,le.WQX)($e.bg),this.loadingService=(0,le.WQX)(pt.T),this.sanitizer=(0,le.WQX)(ce.up)}header(){return""}icon(){return""}montaParametros(te){if(!te)return"";const ne=new URLSearchParams;let ie="";return Object.entries(te).forEach((([te,re])=>{if(!te)return;const le=this.camelToSnakeCase(te);if(Array.isArray(re))ne.append(le,re.join(","));else if(re instanceof Date)ne.append(le,format(re,"dd-MM-yyyy"));else if(re)if(re?.dataInicial){let te=re.dataInicial;te instanceof Date&&(te=(0,vt.hk)(te));let ne=re.dataFinal;ne instanceof Date&&(ne=(0,vt.hk)(ne)),ie=`${le}_begin=${te}&${le}_finish=${ne}${ie?`&${ie}`:""}`}else ne.append(le,re.toString())})),`${ne.toString()}${ie?`&${ie}`:""}`}camelToSnakeCase(te){return te.replace(/([A-Z])/g," $1").split(" ").join("_").toLowerCase()}ngOnInit(){const te=this.authService.usuario?.idLogin;this.loadingService.show(),(0,Ye.H)(this.preferenciaService.get("URL_INAPP")).pipe((0,Xe.W)((()=>(this.messageService.add({severity:"error",summary:"Erro",detail:"Erro ao buscar preferencia URL_INAPP"}),Ke.w))),(0,Qe.j)((()=>this.loadingService.hide()))).subscribe((ne=>{let ie="";const re=this.tabRef.data.params;re&&(ie=this.montaParametros(re)),this.url=this.sanitizer.bypassSecurityTrustResourceUrl(`${ne}?id_login=${te}&cab=nao&${ie}`)}))}static#e=this.ɵfac=function RotinaIncfaComponent_Factory(te){return new(te||RotinaIncfaComponent)};static#t=this.ɵcmp=le.VBU({type:RotinaIncfaComponent,selectors:[["app-rotina-incfa"]],standalone:!0,features:[le.aNF],decls:2,vars:1,consts:[[3,"src",4,"ngIf"],["position","bottom-center"],[3,"src"]],template:function RotinaIncfaComponent_Template(te,ne){1&te&&(le.DNE(0,RotinaIncfaComponent_iframe_0_Template,1,1,"iframe",0),le.nrm(1,"p-toast",1)),2&te&&le.Y8G("ngIf",ne.url)},dependencies:[qe.MB,qe.y8,re.bT],styles:["iframe[_ngcontent-%COMP%]{height:100%;width:100%}"]})}return RotinaIncfaComponent})()},3635:(te,ne,ie)=>{"use strict";var re=ie(6388),le=ie(5724),ce=ie(3934),de=ie(4460),ue=ie(7691);const me=void 0;const ge=["pt",[["AM","PM"],me,me],me,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","sáb."],["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],["dom.","seg.","ter.","qua.","qui.","sex.","sáb."]],me,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],me,[["a.C.","d.C."],me,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",me,me,me],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[me,"р."],JPY:["JP¥","¥"],PHP:[me,"₱"],PTE:["Esc."],RON:[me,"L"],SYP:[me,"S£"],THB:["฿"],TWD:["NT$"],USD:["US$","$"]},"ltr",function plural(te){const ne=Math.floor(Math.abs(te)),ie=te.toString().replace(/^[^.]*\.?/,"").length,re=parseInt(te.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return ne===Math.floor(ne)&&ne>=0&&ne<=1?1:0===re&&0!==ne&&ne%1e6==0&&0===ie||!(re>=0&&re<=5)?4:5}];var fe=ie(3107),_e=ie(1204);function invalidTimingValue(te){return new fe.wOt(3e3,void 0)}const be=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function optimizeGroupPlayer(te){switch(te.length){case 0:return new _e.sf;case 1:return te[0];default:return new _e.ui(te)}}function normalizeKeyframes$1(te,ne,ie=new Map,re=new Map){const le=[],ce=[];let de=-1,ue=null;if(ne.forEach((ne=>{const me=ne.get("offset"),ge=me==de,fe=ge&&ue||new Map;ne.forEach(((ne,ce)=>{let de=ce,ue=ne;if("offset"!==ce)switch(de=te.normalizePropertyName(de,le),ue){case _e.FX:ue=ie.get(ce);break;case _e.kp:ue=re.get(ce);break;default:ue=te.normalizeStyleValue(ce,de,ue,le)}fe.set(de,ue)})),ge||ce.push(fe),ue=fe,de=me})),le.length)throw function animationFailed(te){return new fe.wOt(3502,void 0)}();return ce}function listenOnPlayer(te,ne,ie,re){switch(ne){case"start":te.onStart((()=>re(ie&&copyAnimationEvent(ie,"start",te))));break;case"done":te.onDone((()=>re(ie&&copyAnimationEvent(ie,"done",te))));break;case"destroy":te.onDestroy((()=>re(ie&&copyAnimationEvent(ie,"destroy",te))))}}function copyAnimationEvent(te,ne,ie){const re=ie.totalTime,le=!!ie.disabled,ce=makeAnimationEvent(te.element,te.triggerName,te.fromState,te.toState,ne||te.phaseName,null==re?te.totalTime:re,le),de=te._data;return null!=de&&(ce._data=de),ce}function makeAnimationEvent(te,ne,ie,re,le="",ce=0,de){return{element:te,triggerName:ne,fromState:ie,toState:re,phaseName:le,totalTime:ce,disabled:!!de}}function getOrSetDefaultValue(te,ne,ie){let re=te.get(ne);return re||te.set(ne,re=ie),re}function parseTimelineCommand(te){const ne=te.indexOf(":");return[te.substring(1,ne),te.slice(ne+1)]}const Ce=(()=>"undefined"==typeof document?null:document.documentElement)();function getParentElement(te){const ne=te.parentNode||te.host||null;return ne===Ce?null:ne}let ye=null,we=!1;function validateStyleProperty(te){ye||(ye=function getBodyNode(){if("undefined"!=typeof document)return document.body;return null}()||{},we=!!ye.style&&"WebkitAppearance"in ye.style);let ne=!0;if(ye.style&&!function containsVendorPrefix(te){return"ebkit"==te.substring(1,6)}(te)&&(ne=te in ye.style,!ne&&we)){ne="Webkit"+te.charAt(0).toUpperCase()+te.slice(1)in ye.style}return ne}function containsElement(te,ne){for(;ne;){if(ne===te)return!0;ne=getParentElement(ne)}return!1}function invokeQuery(te,ne,ie){if(ie)return Array.from(te.querySelectorAll(ne));const re=te.querySelector(ne);return re?[re]:[]}let ke=(()=>{class NoopAnimationDriver{validateStyleProperty(te){return validateStyleProperty(te)}matchesElement(te,ne){return!1}containsElement(te,ne){return containsElement(te,ne)}getParentElement(te){return getParentElement(te)}query(te,ne,ie){return invokeQuery(te,ne,ie)}computeStyle(te,ne,ie){return ie||""}animate(te,ne,ie,re,le,ce=[],de){return new _e.sf(ie,re)}static#e=this.ɵfac=function NoopAnimationDriver_Factory(te){return new(te||NoopAnimationDriver)};static#t=this.ɵprov=fe.jDH({token:NoopAnimationDriver,factory:NoopAnimationDriver.ɵfac})}return NoopAnimationDriver})();class AnimationDriver{static#e=this.NOOP=new ke}class AnimationStyleNormalizer{}const Se=1e3,xe="ng-enter",Ee="ng-leave",Me="ng-trigger",Ne=".ng-trigger",Re="ng-animating",Le=".ng-animating";function resolveTimingValue(te){if("number"==typeof te)return te;const ne=te.match(/^(-?[\.\d]+)(m?s)/);return!ne||ne.length<2?0:_convertTimeValueToMS(parseFloat(ne[1]),ne[2])}function _convertTimeValueToMS(te,ne){return"s"===ne?te*Se:te}function resolveTiming(te,ne,ie){return te.hasOwnProperty("duration")?te:function parseTimeExpression(te,ne,ie){const re=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let le,ce=0,de="";if("string"==typeof te){const ie=te.match(re);if(null===ie)return ne.push(invalidTimingValue()),{duration:0,delay:0,easing:""};le=_convertTimeValueToMS(parseFloat(ie[1]),ie[2]);const ue=ie[3];null!=ue&&(ce=_convertTimeValueToMS(parseFloat(ue),ie[4]));const me=ie[5];me&&(de=me)}else le=te;if(!ie){let te=!1,ie=ne.length;le<0&&(ne.push(function negativeStepValue(){return new fe.wOt(3100,void 0)}()),te=!0),ce<0&&(ne.push(function negativeDelayValue(){return new fe.wOt(3101,void 0)}()),te=!0),te&&ne.splice(ie,0,invalidTimingValue())}return{duration:le,delay:ce,easing:de}}(te,ne,ie)}function setStyles(te,ne,ie){ne.forEach(((ne,re)=>{const le=dashCaseToCamelCase(re);ie&&!ie.has(re)&&ie.set(re,te.style[le]),te.style[le]=ne}))}function eraseStyles(te,ne){ne.forEach(((ne,ie)=>{const re=dashCaseToCamelCase(ie);te.style[re]=""}))}function normalizeAnimationEntry(te){return Array.isArray(te)?1==te.length?te[0]:(0,_e.K2)(te):te}function validateStyleParams(te,ne,ie){const re=ne.params||{},le=extractStyleParams(te);le.length&&le.forEach((te=>{re.hasOwnProperty(te)||ie.push(function invalidStyleParams(te){return new fe.wOt(3001,void 0)}())}))}const Oe=new RegExp("{{\\s*(.+?)\\s*}}","g");function extractStyleParams(te){let ne=[];if("string"==typeof te){let ie;for(;ie=Oe.exec(te);)ne.push(ie[1]);Oe.lastIndex=0}return ne}function interpolateParams(te,ne,ie){const re=`${te}`,le=re.replace(Oe,((te,re)=>{let le=ne[re];return null==le&&(ie.push(function invalidParamValue(te){return new fe.wOt(3003,void 0)}()),le=""),le.toString()}));return le==re?te:le}const Pe=/-+([a-z0-9])/g;function dashCaseToCamelCase(te){return te.replace(Pe,((...te)=>te[1].toUpperCase()))}function visitDslNode(te,ne,ie){switch(ne.type){case _e.If.Trigger:return te.visitTrigger(ne,ie);case _e.If.State:return te.visitState(ne,ie);case _e.If.Transition:return te.visitTransition(ne,ie);case _e.If.Sequence:return te.visitSequence(ne,ie);case _e.If.Group:return te.visitGroup(ne,ie);case _e.If.Animate:return te.visitAnimate(ne,ie);case _e.If.Keyframes:return te.visitKeyframes(ne,ie);case _e.If.Style:return te.visitStyle(ne,ie);case _e.If.Reference:return te.visitReference(ne,ie);case _e.If.AnimateChild:return te.visitAnimateChild(ne,ie);case _e.If.AnimateRef:return te.visitAnimateRef(ne,ie);case _e.If.Query:return te.visitQuery(ne,ie);case _e.If.Stagger:return te.visitStagger(ne,ie);default:throw function invalidNodeType(te){return new fe.wOt(3004,void 0)}(ne.type)}}function computeStyle(te,ne){return window.getComputedStyle(te)[ne]}const Fe=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class WebAnimationsStyleNormalizer extends AnimationStyleNormalizer{normalizePropertyName(te,ne){return dashCaseToCamelCase(te)}normalizeStyleValue(te,ne,ie,re){let le="";const ce=ie.toString().trim();if(Fe.has(ne)&&0!==ie&&"0"!==ie)if("number"==typeof ie)le="px";else{const te=ie.match(/^[+-]?[\d\.]+([a-z]*)$/);te&&0==te[1].length&&re.push(function invalidCssUnitValue(te,ne){return new fe.wOt(3005,void 0)}())}return ce+le}}function createListOfWarnings(te){const ne="\n - ";return`${ne}${te.filter(Boolean).map((te=>te)).join(ne)}`}const je="*";function parseTransitionExpr(te,ne){const ie=[];return"string"==typeof te?te.split(/\s*,\s*/).forEach((te=>function parseInnerTransitionStr(te,ne,ie){if(":"==te[0]){const re=function parseAnimationAlias(te,ne){switch(te){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(te,ne)=>parseFloat(ne)>parseFloat(te);case":decrement":return(te,ne)=>parseFloat(ne)<parseFloat(te);default:return ne.push(function invalidTransitionAlias(te){return new fe.wOt(3016,void 0)}()),"* => *"}}(te,ie);if("function"==typeof re)return void ne.push(re);te=re}const re=te.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==re||re.length<4)return ie.push(function invalidExpression(te){return new fe.wOt(3015,void 0)}()),ne;const le=re[1],ce=re[2],de=re[3];ne.push(makeLambdaFromStates(le,de));const ue=le==je&&de==je;"<"!=ce[0]||ue||ne.push(makeLambdaFromStates(de,le));return}(te,ie,ne))):ie.push(te),ie}const Ve=new Set(["true","1"]),Ge=new Set(["false","0"]);function makeLambdaFromStates(te,ne){const ie=Ve.has(te)||Ge.has(te),re=Ve.has(ne)||Ge.has(ne);return(le,ce)=>{let de=te==je||te==le,ue=ne==je||ne==ce;return!de&&ie&&"boolean"==typeof le&&(de=le?Ve.has(te):Ge.has(te)),!ue&&re&&"boolean"==typeof ce&&(ue=ce?Ve.has(ne):Ge.has(ne)),de&&ue}}const ze=":self",He=new RegExp(`s*${ze}s*,?`,"g");function buildAnimationAst(te,ne,ie,re){return new AnimationAstBuilderVisitor(te).build(ne,ie,re)}class AnimationAstBuilderVisitor{constructor(te){this._driver=te}build(te,ne,ie){const re=new AnimationAstBuilderContext(ne);this._resetContextStyleTimingState(re);const le=visitDslNode(this,normalizeAnimationEntry(te),re);return re.unsupportedCSSPropertiesFound.size&&function pushUnrecognizedPropertiesWarning(te,ne){ne.length&&te.push(`The following provided properties are not recognized: ${ne.join(", ")}`)}(ie,[...re.unsupportedCSSPropertiesFound.keys()]),le}_resetContextStyleTimingState(te){te.currentQuerySelector="",te.collectedStyles=new Map,te.collectedStyles.set("",new Map),te.currentTime=0}visitTrigger(te,ne){let ie=ne.queryCount=0,re=ne.depCount=0;const le=[],ce=[];return"@"==te.name.charAt(0)&&ne.errors.push(function invalidTrigger(){return new fe.wOt(3006,void 0)}()),te.definitions.forEach((te=>{if(this._resetContextStyleTimingState(ne),te.type==_e.If.State){const ie=te,re=ie.name;re.toString().split(/\s*,\s*/).forEach((te=>{ie.name=te,le.push(this.visitState(ie,ne))})),ie.name=re}else if(te.type==_e.If.Transition){const le=this.visitTransition(te,ne);ie+=le.queryCount,re+=le.depCount,ce.push(le)}else ne.errors.push(function invalidDefinition(){return new fe.wOt(3007,void 0)}())})),{type:_e.If.Trigger,name:te.name,states:le,transitions:ce,queryCount:ie,depCount:re,options:null}}visitState(te,ne){const ie=this.visitStyle(te.styles,ne),re=te.options&&te.options.params||null;if(ie.containsDynamicStyles){const le=new Set,ce=re||{};ie.styles.forEach((te=>{te instanceof Map&&te.forEach((te=>{extractStyleParams(te).forEach((te=>{ce.hasOwnProperty(te)||le.add(te)}))}))})),le.size&&ne.errors.push(function invalidState(te,ne){return new fe.wOt(3008,void 0)}(te.name,le.values()))}return{type:_e.If.State,name:te.name,style:ie,options:re?{params:re}:null}}visitTransition(te,ne){ne.queryCount=0,ne.depCount=0;const ie=visitDslNode(this,normalizeAnimationEntry(te.animation),ne),re=parseTransitionExpr(te.expr,ne.errors);return{type:_e.If.Transition,matchers:re,animation:ie,queryCount:ne.queryCount,depCount:ne.depCount,options:normalizeAnimationOptions(te.options)}}visitSequence(te,ne){return{type:_e.If.Sequence,steps:te.steps.map((te=>visitDslNode(this,te,ne))),options:normalizeAnimationOptions(te.options)}}visitGroup(te,ne){const ie=ne.currentTime;let re=0;const le=te.steps.map((te=>{ne.currentTime=ie;const le=visitDslNode(this,te,ne);return re=Math.max(re,ne.currentTime),le}));return ne.currentTime=re,{type:_e.If.Group,steps:le,options:normalizeAnimationOptions(te.options)}}visitAnimate(te,ne){const ie=function constructTimingAst(te,ne){if(te.hasOwnProperty("duration"))return te;if("number"==typeof te){return makeTimingAst(resolveTiming(te,ne).duration,0,"")}const ie=te,re=ie.split(/\s+/).some((te=>"{"==te.charAt(0)&&"{"==te.charAt(1)));if(re){const te=makeTimingAst(0,0,"");return te.dynamic=!0,te.strValue=ie,te}const le=resolveTiming(ie,ne);return makeTimingAst(le.duration,le.delay,le.easing)}(te.timings,ne.errors);let re;ne.currentAnimateTimings=ie;let le=te.styles?te.styles:(0,_e.iF)({});if(le.type==_e.If.Keyframes)re=this.visitKeyframes(le,ne);else{let le=te.styles,ce=!1;if(!le){ce=!0;const te={};ie.easing&&(te.easing=ie.easing),le=(0,_e.iF)(te)}ne.currentTime+=ie.duration+ie.delay;const de=this.visitStyle(le,ne);de.isEmptyStep=ce,re=de}return ne.currentAnimateTimings=null,{type:_e.If.Animate,timings:ie,style:re,options:null}}visitStyle(te,ne){const ie=this._makeStyleAst(te,ne);return this._validateStyleAst(ie,ne),ie}_makeStyleAst(te,ne){const ie=[],re=Array.isArray(te.styles)?te.styles:[te.styles];for(let te of re)"string"==typeof te?te===_e.kp?ie.push(te):ne.errors.push(new fe.wOt(3002,void 0)):ie.push(new Map(Object.entries(te)));let le=!1,ce=null;return ie.forEach((te=>{if(te instanceof Map&&(te.has("easing")&&(ce=te.get("easing"),te.delete("easing")),!le))for(let ne of te.values())if(ne.toString().indexOf("{{")>=0){le=!0;break}})),{type:_e.If.Style,styles:ie,easing:ce,offset:te.offset,containsDynamicStyles:le,options:null}}_validateStyleAst(te,ne){const ie=ne.currentAnimateTimings;let re=ne.currentTime,le=ne.currentTime;ie&&le>0&&(le-=ie.duration+ie.delay),te.styles.forEach((te=>{"string"!=typeof te&&te.forEach(((ie,ce)=>{if(!this._driver.validateStyleProperty(ce))return te.delete(ce),void ne.unsupportedCSSPropertiesFound.add(ce);const de=ne.collectedStyles.get(ne.currentQuerySelector),ue=de.get(ce);let me=!0;ue&&(le!=re&&le>=ue.startTime&&re<=ue.endTime&&(ne.errors.push(function invalidParallelAnimation(te,ne,ie,re,le){return new fe.wOt(3010,void 0)}(0,ue.startTime,ue.endTime)),me=!1),le=ue.startTime),me&&de.set(ce,{startTime:le,endTime:re}),ne.options&&validateStyleParams(ie,ne.options,ne.errors)}))}))}visitKeyframes(te,ne){const ie={type:_e.If.Keyframes,styles:[],options:null};if(!ne.currentAnimateTimings)return ne.errors.push(function invalidKeyframes(){return new fe.wOt(3011,void 0)}()),ie;let re=0;const le=[];let ce=!1,de=!1,ue=0;const me=te.steps.map((te=>{const ie=this._makeStyleAst(te,ne);let me=null!=ie.offset?ie.offset:function consumeOffset(te){if("string"==typeof te)return null;let ne=null;if(Array.isArray(te))te.forEach((te=>{if(te instanceof Map&&te.has("offset")){const ie=te;ne=parseFloat(ie.get("offset")),ie.delete("offset")}}));else if(te instanceof Map&&te.has("offset")){const ie=te;ne=parseFloat(ie.get("offset")),ie.delete("offset")}return ne}(ie.styles),ge=0;return null!=me&&(re++,ge=ie.offset=me),de=de||ge<0||ge>1,ce=ce||ge<ue,ue=ge,le.push(ge),ie}));de&&ne.errors.push(function invalidOffset(){return new fe.wOt(3012,void 0)}()),ce&&ne.errors.push(function keyframeOffsetsOutOfOrder(){return new fe.wOt(3200,void 0)}());const ge=te.steps.length;let be=0;re>0&&re<ge?ne.errors.push(function keyframesMissingOffsets(){return new fe.wOt(3202,void 0)}()):0==re&&(be=1/(ge-1));const Ce=ge-1,ye=ne.currentTime,we=ne.currentAnimateTimings,ke=we.duration;return me.forEach(((te,re)=>{const ce=be>0?re==Ce?1:be*re:le[re],de=ce*ke;ne.currentTime=ye+we.delay+de,we.duration=de,this._validateStyleAst(te,ne),te.offset=ce,ie.styles.push(te)})),ie}visitReference(te,ne){return{type:_e.If.Reference,animation:visitDslNode(this,normalizeAnimationEntry(te.animation),ne),options:normalizeAnimationOptions(te.options)}}visitAnimateChild(te,ne){return ne.depCount++,{type:_e.If.AnimateChild,options:normalizeAnimationOptions(te.options)}}visitAnimateRef(te,ne){return{type:_e.If.AnimateRef,animation:this.visitReference(te.animation,ne),options:normalizeAnimationOptions(te.options)}}visitQuery(te,ne){const ie=ne.currentQuerySelector,re=te.options||{};ne.queryCount++,ne.currentQuery=te;const[le,ce]=function normalizeSelector(te){const ne=!!te.split(/\s*,\s*/).find((te=>te==ze));ne&&(te=te.replace(He,""));return te=te.replace(/@\*/g,Ne).replace(/@\w+/g,(te=>Ne+"-"+te.slice(1))).replace(/:animating/g,Le),[te,ne]}(te.selector);ne.currentQuerySelector=ie.length?ie+" "+le:le,getOrSetDefaultValue(ne.collectedStyles,ne.currentQuerySelector,new Map);const de=visitDslNode(this,normalizeAnimationEntry(te.animation),ne);return ne.currentQuery=null,ne.currentQuerySelector=ie,{type:_e.If.Query,selector:le,limit:re.limit||0,optional:!!re.optional,includeSelf:ce,animation:de,originalSelector:te.selector,options:normalizeAnimationOptions(te.options)}}visitStagger(te,ne){ne.currentQuery||ne.errors.push(function invalidStagger(){return new fe.wOt(3013,void 0)}());const ie="full"===te.timings?{duration:0,delay:0,easing:"full"}:resolveTiming(te.timings,ne.errors,!0);return{type:_e.If.Stagger,animation:visitDslNode(this,normalizeAnimationEntry(te.animation),ne),timings:ie,options:null}}}class AnimationAstBuilderContext{constructor(te){this.errors=te,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function normalizeAnimationOptions(te){return te?(te={...te}).params&&(te.params=function normalizeParams(te){return te?{...te}:null}(te.params)):te={},te}function makeTimingAst(te,ne,ie){return{duration:te,delay:ne,easing:ie}}function createTimelineInstruction(te,ne,ie,re,le,ce,de=null,ue=!1){return{type:1,element:te,keyframes:ne,preStyleProps:ie,postStyleProps:re,duration:le,delay:ce,totalTime:le+ce,easing:de,subTimeline:ue}}class ElementInstructionMap{constructor(){this._map=new Map}get(te){return this._map.get(te)||[]}append(te,ne){let ie=this._map.get(te);ie||this._map.set(te,ie=[]),ie.push(...ne)}has(te){return this._map.has(te)}clear(){this._map.clear()}}const $e=new RegExp(":enter","g"),qe=new RegExp(":leave","g");function buildAnimationTimelines(te,ne,ie,re,le,ce=new Map,de=new Map,ue,me,ge=[]){return(new AnimationTimelineBuilderVisitor).buildKeyframes(te,ne,ie,re,le,ce,de,ue,me,ge)}class AnimationTimelineBuilderVisitor{buildKeyframes(te,ne,ie,re,le,ce,de,ue,me,ge=[]){me=me||new ElementInstructionMap;const fe=new AnimationTimelineContext(te,ne,me,re,le,ge,[]);fe.options=ue;const _e=ue.delay?resolveTimingValue(ue.delay):0;fe.currentTimeline.delayNextStep(_e),fe.currentTimeline.setStyles([ce],null,fe.errors,ue),visitDslNode(this,ie,fe);const be=fe.timelines.filter((te=>te.containsAnimation()));if(be.length&&de.size){let te;for(let ie=be.length-1;ie>=0;ie--){const re=be[ie];if(re.element===ne){te=re;break}}te&&!te.allowOnlyTimelineStyles()&&te.setStyles([de],null,fe.errors,ue)}return be.length?be.map((te=>te.buildKeyframes())):[createTimelineInstruction(ne,[],[],[],0,_e,"",!1)]}visitTrigger(te,ne){}visitState(te,ne){}visitTransition(te,ne){}visitAnimateChild(te,ne){const ie=ne.subInstructions.get(ne.element);if(ie){const re=ne.createSubContext(te.options),le=ne.currentTimeline.currentTime,ce=this._visitSubInstructions(ie,re,re.options);le!=ce&&ne.transformIntoNewTimeline(ce)}ne.previousNode=te}visitAnimateRef(te,ne){const ie=ne.createSubContext(te.options);ie.transformIntoNewTimeline(),this._applyAnimationRefDelays([te.options,te.animation.options],ne,ie),this.visitReference(te.animation,ie),ne.transformIntoNewTimeline(ie.currentTimeline.currentTime),ne.previousNode=te}_applyAnimationRefDelays(te,ne,ie){for(const re of te){const te=re?.delay;if(te){const le="number"==typeof te?te:resolveTimingValue(interpolateParams(te,re?.params??{},ne.errors));ie.delayNextStep(le)}}}_visitSubInstructions(te,ne,ie){let re=ne.currentTimeline.currentTime;const le=null!=ie.duration?resolveTimingValue(ie.duration):null,ce=null!=ie.delay?resolveTimingValue(ie.delay):null;return 0!==le&&te.forEach((te=>{const ie=ne.appendInstructionToTimeline(te,le,ce);re=Math.max(re,ie.duration+ie.delay)})),re}visitReference(te,ne){ne.updateOptions(te.options,!0),visitDslNode(this,te.animation,ne),ne.previousNode=te}visitSequence(te,ne){const ie=ne.subContextCount;let re=ne;const le=te.options;if(le&&(le.params||le.delay)&&(re=ne.createSubContext(le),re.transformIntoNewTimeline(),null!=le.delay)){re.previousNode.type==_e.If.Style&&(re.currentTimeline.snapshotCurrentStyles(),re.previousNode=Ye);const te=resolveTimingValue(le.delay);re.delayNextStep(te)}te.steps.length&&(te.steps.forEach((te=>visitDslNode(this,te,re))),re.currentTimeline.applyStylesToKeyframe(),re.subContextCount>ie&&re.transformIntoNewTimeline()),ne.previousNode=te}visitGroup(te,ne){const ie=[];let re=ne.currentTimeline.currentTime;const le=te.options&&te.options.delay?resolveTimingValue(te.options.delay):0;te.steps.forEach((ce=>{const de=ne.createSubContext(te.options);le&&de.delayNextStep(le),visitDslNode(this,ce,de),re=Math.max(re,de.currentTimeline.currentTime),ie.push(de.currentTimeline)})),ie.forEach((te=>ne.currentTimeline.mergeTimelineCollectedStyles(te))),ne.transformIntoNewTimeline(re),ne.previousNode=te}_visitTiming(te,ne){if(te.dynamic){const ie=te.strValue;return resolveTiming(ne.params?interpolateParams(ie,ne.params,ne.errors):ie,ne.errors)}return{duration:te.duration,delay:te.delay,easing:te.easing}}visitAnimate(te,ne){const ie=ne.currentAnimateTimings=this._visitTiming(te.timings,ne),re=ne.currentTimeline;ie.delay&&(ne.incrementTime(ie.delay),re.snapshotCurrentStyles());const le=te.style;le.type==_e.If.Keyframes?this.visitKeyframes(le,ne):(ne.incrementTime(ie.duration),this.visitStyle(le,ne),re.applyStylesToKeyframe()),ne.currentAnimateTimings=null,ne.previousNode=te}visitStyle(te,ne){const ie=ne.currentTimeline,re=ne.currentAnimateTimings;!re&&ie.hasCurrentStyleProperties()&&ie.forwardFrame();const le=re&&re.easing||te.easing;te.isEmptyStep?ie.applyEmptyStep(le):ie.setStyles(te.styles,le,ne.errors,ne.options),ne.previousNode=te}visitKeyframes(te,ne){const ie=ne.currentAnimateTimings,re=ne.currentTimeline.duration,le=ie.duration,ce=ne.createSubContext().currentTimeline;ce.easing=ie.easing,te.styles.forEach((te=>{const ie=te.offset||0;ce.forwardTime(ie*le),ce.setStyles(te.styles,te.easing,ne.errors,ne.options),ce.applyStylesToKeyframe()})),ne.currentTimeline.mergeTimelineCollectedStyles(ce),ne.transformIntoNewTimeline(re+le),ne.previousNode=te}visitQuery(te,ne){const ie=ne.currentTimeline.currentTime,re=te.options||{},le=re.delay?resolveTimingValue(re.delay):0;le&&(ne.previousNode.type===_e.If.Style||0==ie&&ne.currentTimeline.hasCurrentStyleProperties())&&(ne.currentTimeline.snapshotCurrentStyles(),ne.previousNode=Ye);let ce=ie;const de=ne.invokeQuery(te.selector,te.originalSelector,te.limit,te.includeSelf,!!re.optional,ne.errors);ne.currentQueryTotal=de.length;let ue=null;de.forEach(((ie,re)=>{ne.currentQueryIndex=re;const de=ne.createSubContext(te.options,ie);le&&de.delayNextStep(le),ie===ne.element&&(ue=de.currentTimeline),visitDslNode(this,te.animation,de),de.currentTimeline.applyStylesToKeyframe();const me=de.currentTimeline.currentTime;ce=Math.max(ce,me)})),ne.currentQueryIndex=0,ne.currentQueryTotal=0,ne.transformIntoNewTimeline(ce),ue&&(ne.currentTimeline.mergeTimelineCollectedStyles(ue),ne.currentTimeline.snapshotCurrentStyles()),ne.previousNode=te}visitStagger(te,ne){const ie=ne.parentContext,re=ne.currentTimeline,le=te.timings,ce=Math.abs(le.duration),de=ce*(ne.currentQueryTotal-1);let ue=ce*ne.currentQueryIndex;switch(le.duration<0?"reverse":le.easing){case"reverse":ue=de-ue;break;case"full":ue=ie.currentStaggerTime}const me=ne.currentTimeline;ue&&me.delayNextStep(ue);const ge=me.currentTime;visitDslNode(this,te.animation,ne),ne.previousNode=te,ie.currentStaggerTime=re.currentTime-ge+(re.startTime-ie.currentTimeline.startTime)}}const Ye={};class AnimationTimelineContext{constructor(te,ne,ie,re,le,ce,de,ue){this._driver=te,this.element=ne,this.subInstructions=ie,this._enterClassName=re,this._leaveClassName=le,this.errors=ce,this.timelines=de,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ye,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ue||new TimelineBuilder(this._driver,ne,0),de.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(te,ne){if(!te)return;const ie=te;let re=this.options;null!=ie.duration&&(re.duration=resolveTimingValue(ie.duration)),null!=ie.delay&&(re.delay=resolveTimingValue(ie.delay));const le=ie.params;if(le){let te=re.params;te||(te=this.options.params={}),Object.keys(le).forEach((ie=>{ne&&te.hasOwnProperty(ie)||(te[ie]=interpolateParams(le[ie],te,this.errors))}))}}_copyOptions(){const te={};if(this.options){const ne=this.options.params;if(ne){const ie=te.params={};Object.keys(ne).forEach((te=>{ie[te]=ne[te]}))}}return te}createSubContext(te=null,ne,ie){const re=ne||this.element,le=new AnimationTimelineContext(this._driver,re,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(re,ie||0));return le.previousNode=this.previousNode,le.currentAnimateTimings=this.currentAnimateTimings,le.options=this._copyOptions(),le.updateOptions(te),le.currentQueryIndex=this.currentQueryIndex,le.currentQueryTotal=this.currentQueryTotal,le.parentContext=this,this.subContextCount++,le}transformIntoNewTimeline(te){return this.previousNode=Ye,this.currentTimeline=this.currentTimeline.fork(this.element,te),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(te,ne,ie){const re={duration:null!=ne?ne:te.duration,delay:this.currentTimeline.currentTime+(null!=ie?ie:0)+te.delay,easing:""},le=new SubTimelineBuilder(this._driver,te.element,te.keyframes,te.preStyleProps,te.postStyleProps,re,te.stretchStartingKeyframe);return this.timelines.push(le),re}incrementTime(te){this.currentTimeline.forwardTime(this.currentTimeline.duration+te)}delayNextStep(te){te>0&&this.currentTimeline.delayNextStep(te)}invokeQuery(te,ne,ie,re,le,ce){let de=[];if(re&&de.push(this.element),te.length>0){te=(te=te.replace($e,"."+this._enterClassName)).replace(qe,"."+this._leaveClassName);const ne=1!=ie;let re=this._driver.query(this.element,te,ne);0!==ie&&(re=ie<0?re.slice(re.length+ie,re.length):re.slice(0,ie)),de.push(...re)}return le||0!=de.length||ce.push(function invalidQuery(te){return new fe.wOt(3014,void 0)}()),de}}class TimelineBuilder{constructor(te,ne,ie,re){this._driver=te,this.element=ne,this.startTime=ie,this._elementTimelineStylesLookup=re,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(te){const ne=1===this._keyframes.size&&this._pendingStyles.size;this.duration||ne?(this.forwardTime(this.currentTime+te),ne&&this.snapshotCurrentStyles()):this.startTime+=te}fork(te,ne){return this.applyStylesToKeyframe(),new TimelineBuilder(this._driver,te,ne||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(te){this.applyStylesToKeyframe(),this.duration=te,this._loadKeyframe()}_updateStyle(te,ne){this._localTimelineStyles.set(te,ne),this._globalTimelineStyles.set(te,ne),this._styleSummary.set(te,{time:this.currentTime,value:ne})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(te){te&&this._previousKeyframe.set("easing",te);for(let[te,ne]of this._globalTimelineStyles)this._backFill.set(te,ne||_e.kp),this._currentKeyframe.set(te,_e.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(te,ne,ie,re){ne&&this._previousKeyframe.set("easing",ne);const le=re&&re.params||{},ce=function flattenStyles(te,ne){const ie=new Map;let re;return te.forEach((te=>{if("*"===te){re??=ne.keys();for(let te of re)ie.set(te,_e.kp)}else for(let[ne,re]of te)ie.set(ne,re)})),ie}(te,this._globalTimelineStyles);for(let[te,ne]of ce){const re=interpolateParams(ne,le,ie);this._pendingStyles.set(te,re),this._localTimelineStyles.has(te)||this._backFill.set(te,this._globalTimelineStyles.get(te)??_e.kp),this._updateStyle(te,re)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach(((te,ne)=>{this._currentKeyframe.set(ne,te)})),this._pendingStyles.clear(),this._localTimelineStyles.forEach(((te,ne)=>{this._currentKeyframe.has(ne)||this._currentKeyframe.set(ne,te)})))}snapshotCurrentStyles(){for(let[te,ne]of this._localTimelineStyles)this._pendingStyles.set(te,ne),this._updateStyle(te,ne)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const te=[];for(let ne in this._currentKeyframe)te.push(ne);return te}mergeTimelineCollectedStyles(te){te._styleSummary.forEach(((te,ne)=>{const ie=this._styleSummary.get(ne);(!ie||te.time>ie.time)&&this._updateStyle(ne,te.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const te=new Set,ne=new Set,ie=1===this._keyframes.size&&0===this.duration;let re=[];this._keyframes.forEach(((le,ce)=>{const de=new Map([...this._backFill,...le]);de.forEach(((ie,re)=>{ie===_e.FX?te.add(re):ie===_e.kp&&ne.add(re)})),ie||de.set("offset",ce/this.duration),re.push(de)}));const le=[...te.values()],ce=[...ne.values()];if(ie){const te=re[0],ne=new Map(te);te.set("offset",0),ne.set("offset",1),re=[te,ne]}return createTimelineInstruction(this.element,re,le,ce,this.duration,this.startTime,this.easing,!1)}}class SubTimelineBuilder extends TimelineBuilder{constructor(te,ne,ie,re,le,ce,de=!1){super(te,ne,ce.delay),this.keyframes=ie,this.preStyleProps=re,this.postStyleProps=le,this._stretchStartingKeyframe=de,this.timings={duration:ce.duration,delay:ce.delay,easing:ce.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let te=this.keyframes,{delay:ne,duration:ie,easing:re}=this.timings;if(this._stretchStartingKeyframe&&ne){const le=[],ce=ie+ne,de=ne/ce,ue=new Map(te[0]);ue.set("offset",0),le.push(ue);const me=new Map(te[0]);me.set("offset",roundOffset(de)),le.push(me);const ge=te.length-1;for(let re=1;re<=ge;re++){let de=new Map(te[re]);const ue=ne+de.get("offset")*ie;de.set("offset",roundOffset(ue/ce)),le.push(de)}ie=ce,ne=0,re="",te=le}return createTimelineInstruction(this.element,te,this.preStyleProps,this.postStyleProps,ie,ne,re,!0)}}function roundOffset(te,ne=3){const ie=Math.pow(10,ne-1);return Math.round(te*ie)/ie}function createTransitionInstruction(te,ne,ie,re,le,ce,de,ue,me,ge,fe,_e,be){return{type:0,element:te,triggerName:ne,isRemovalTransition:le,fromState:ie,fromStyles:ce,toState:re,toStyles:de,timelines:ue,queriedElements:me,preStyleProps:ge,postStyleProps:fe,totalTime:_e,errors:be}}const Xe={};class AnimationTransitionFactory{constructor(te,ne,ie){this._triggerName=te,this.ast=ne,this._stateStyles=ie}match(te,ne,ie,re){return function oneOrMoreTransitionsMatch(te,ne,ie,re,le){return te.some((te=>te(ne,ie,re,le)))}(this.ast.matchers,te,ne,ie,re)}buildStyles(te,ne,ie){let re=this._stateStyles.get("*");return void 0!==te&&(re=this._stateStyles.get(te?.toString())||re),re?re.buildStyles(ne,ie):new Map}build(te,ne,ie,re,le,ce,de,ue,me,ge){const fe=[],_e=this.ast.options&&this.ast.options.params||Xe,be=de&&de.params||Xe,Ce=this.buildStyles(ie,be,fe),ye=ue&&ue.params||Xe,we=this.buildStyles(re,ye,fe),ke=new Set,Se=new Map,xe=new Map,Ee="void"===re,Me={params:applyParamDefaults(ye,_e),delay:this.ast.options?.delay},Ne=ge?[]:buildAnimationTimelines(te,ne,this.ast.animation,le,ce,Ce,we,Me,me,fe);let Re=0;return Ne.forEach((te=>{Re=Math.max(te.duration+te.delay,Re)})),fe.length?createTransitionInstruction(ne,this._triggerName,ie,re,Ee,Ce,we,[],[],Se,xe,Re,fe):(Ne.forEach((te=>{const ie=te.element,re=getOrSetDefaultValue(Se,ie,new Set);te.preStyleProps.forEach((te=>re.add(te)));const le=getOrSetDefaultValue(xe,ie,new Set);te.postStyleProps.forEach((te=>le.add(te))),ie!==ne&&ke.add(ie)})),function checkNonAnimatableInTimelines(te,ne,ie){if(!ie.validateAnimatableStyleProperty)return;const re=new Set(["easing"]),le=new Set;te.forEach((({keyframes:te})=>{const ne=new Map;te.forEach((te=>{const ce=Array.from(te.entries()).filter((([te])=>!re.has(te)));for(const[te,re]of ce)if(!ie.validateAnimatableStyleProperty(te))if(ne.has(te)&&!le.has(te)){ne.get(te)!==re&&le.add(te)}else ne.set(te,re)}))})),le.size>0&&console.warn(`Warning: The animation trigger "${ne}" is attempting to animate the following not animatable properties: `+Array.from(le).join(", ")+"\n(to check the list of all animatable properties visit https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties)")}(Ne,this._triggerName,te),createTransitionInstruction(ne,this._triggerName,ie,re,Ee,Ce,we,Ne,[...ke.values()],Se,xe,Re))}}function applyParamDefaults(te,ne){const ie={...ne};return Object.entries(te).forEach((([te,ne])=>{null!=ne&&(ie[te]=ne)})),ie}class AnimationStateStyles{constructor(te,ne,ie){this.styles=te,this.defaultParams=ne,this.normalizer=ie}buildStyles(te,ne){const ie=new Map,re=applyParamDefaults(te,this.defaultParams);return this.styles.styles.forEach((te=>{"string"!=typeof te&&te.forEach(((te,le)=>{te&&(te=interpolateParams(te,re,ne));const ce=this.normalizer.normalizePropertyName(le,ne);te=this.normalizer.normalizeStyleValue(le,ce,te,ne),ie.set(le,te)}))})),ie}}class AnimationTrigger{constructor(te,ne,ie){this.name=te,this.ast=ne,this._normalizer=ie,this.transitionFactories=[],this.states=new Map,ne.states.forEach((te=>{const ne=te.options&&te.options.params||{};this.states.set(te.name,new AnimationStateStyles(te.style,ne,ie))})),balanceProperties(this.states,"true","1"),balanceProperties(this.states,"false","0"),ne.transitions.forEach((ne=>{this.transitionFactories.push(new AnimationTransitionFactory(te,ne,this.states))})),this.fallbackTransition=function createFallbackTransition(te,ne,ie){const re=[(te,ne)=>!0],le={type:_e.If.Sequence,steps:[],options:null},ce={type:_e.If.Transition,animation:le,matchers:re,options:null,queryCount:0,depCount:0};return new AnimationTransitionFactory(te,ce,ne)}(te,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(te,ne,ie,re){const le=this.transitionFactories.find((le=>le.match(te,ne,ie,re)));return le||null}matchStyles(te,ne,ie){return this.fallbackTransition.buildStyles(te,ne,ie)}}function balanceProperties(te,ne,ie){te.has(ne)?te.has(ie)||te.set(ie,te.get(ne)):te.has(ie)&&te.set(ne,te.get(ie))}const Ke=new ElementInstructionMap;class TimelineAnimationEngine{constructor(te,ne,ie){this.bodyNode=te,this._driver=ne,this._normalizer=ie,this._animations=new Map,this._playersById=new Map,this.players=[]}register(te,ne){const ie=[],re=[],le=buildAnimationAst(this._driver,ne,ie,re);if(ie.length)throw function registerFailed(te){return new fe.wOt(3503,void 0)}();re.length&&function warnRegister(te){console.warn(`Animation built with the following warnings:${createListOfWarnings(te)}`)}(re),this._animations.set(te,le)}_buildPlayer(te,ne,ie){const re=te.element,le=normalizeKeyframes$1(this._normalizer,te.keyframes,ne,ie);return this._driver.animate(re,le,te.duration,te.delay,te.easing,[],!0)}create(te,ne,ie={}){const re=[],le=this._animations.get(te);let ce;const de=new Map;if(le?(ce=buildAnimationTimelines(this._driver,ne,le,xe,Ee,new Map,new Map,ie,Ke,re),ce.forEach((te=>{const ne=getOrSetDefaultValue(de,te.element,new Map);te.postStyleProps.forEach((te=>ne.set(te,null)))}))):(re.push(function missingOrDestroyedAnimation(){return new fe.wOt(3300,void 0)}()),ce=[]),re.length)throw function createAnimationFailed(te){return new fe.wOt(3504,void 0)}();de.forEach(((te,ne)=>{te.forEach(((ie,re)=>{te.set(re,this._driver.computeStyle(ne,re,_e.kp))}))}));const ue=ce.map((te=>{const ne=de.get(te.element);return this._buildPlayer(te,new Map,ne)})),me=optimizeGroupPlayer(ue);return this._playersById.set(te,me),me.onDestroy((()=>this.destroy(te))),this.players.push(me),me}destroy(te){const ne=this._getPlayer(te);ne.destroy(),this._playersById.delete(te);const ie=this.players.indexOf(ne);ie>=0&&this.players.splice(ie,1)}_getPlayer(te){const ne=this._playersById.get(te);if(!ne)throw function missingPlayer(te){return new fe.wOt(3301,void 0)}();return ne}listen(te,ne,ie,re){const le=makeAnimationEvent(ne,"","","");return listenOnPlayer(this._getPlayer(te),ie,le,re),()=>{}}command(te,ne,ie,re){if("register"==ie)return void this.register(te,re[0]);if("create"==ie){const ie=re[0]||{};return void this.create(te,ne,ie)}const le=this._getPlayer(te);switch(ie){case"play":le.play();break;case"pause":le.pause();break;case"reset":le.reset();break;case"restart":le.restart();break;case"finish":le.finish();break;case"init":le.init();break;case"setPosition":le.setPosition(parseFloat(re[0]));break;case"destroy":this.destroy(te)}}}const Qe="ng-animate-queued",Je="ng-animate-disabled",dt=[],pt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ct={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vt="__ng_removed";class StateValue{get params(){return this.options.params}constructor(te,ne=""){this.namespaceId=ne;const ie=te&&te.hasOwnProperty("value"),re=ie?te.value:te;if(this.value=function normalizeTriggerValue(te){return null!=te?te:null}(re),ie){const{value:ne,...ie}=te;this.options=ie}else this.options={};this.options.params||(this.options.params={})}absorbOptions(te){const ne=te.params;if(ne){const te=this.options.params;Object.keys(ne).forEach((ie=>{null==te[ie]&&(te[ie]=ne[ie])}))}}}const It="void",Dt=new StateValue(It);class AnimationTransitionNamespace{constructor(te,ne,ie){this.id=te,this.hostElement=ne,this._engine=ie,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+te,addClass(ne,this._hostClassName)}listen(te,ne,ie,re){if(!this._triggers.has(ne))throw function missingTrigger(te,ne){return new fe.wOt(3302,void 0)}();if(null==ie||0==ie.length)throw function missingEvent(te){return new fe.wOt(3303,void 0)}();if(!function isTriggerEventValid(te){return"start"==te||"done"==te}(ie))throw function unsupportedTriggerEvent(te,ne){return new fe.wOt(3400,void 0)}();const le=getOrSetDefaultValue(this._elementListeners,te,[]),ce={name:ne,phase:ie,callback:re};le.push(ce);const de=getOrSetDefaultValue(this._engine.statesByElement,te,new Map);return de.has(ne)||(addClass(te,Me),addClass(te,Me+"-"+ne),de.set(ne,Dt)),()=>{this._engine.afterFlush((()=>{const te=le.indexOf(ce);te>=0&&le.splice(te,1),this._triggers.has(ne)||de.delete(ne)}))}}register(te,ne){return!this._triggers.has(te)&&(this._triggers.set(te,ne),!0)}_getTrigger(te){const ne=this._triggers.get(te);if(!ne)throw function unregisteredTrigger(te){return new fe.wOt(3401,void 0)}();return ne}trigger(te,ne,ie,re=!0){const le=this._getTrigger(ne),ce=new TransitionAnimationPlayer(this.id,ne,te);let de=this._engine.statesByElement.get(te);de||(addClass(te,Me),addClass(te,Me+"-"+ne),this._engine.statesByElement.set(te,de=new Map));let ue=de.get(ne);const me=new StateValue(ie,this.id);!(ie&&ie.hasOwnProperty("value"))&&ue&&me.absorbOptions(ue.options),de.set(ne,me),ue||(ue=Dt);if(!(me.value===It)&&ue.value===me.value){if(!function objEquals(te,ne){const ie=Object.keys(te),re=Object.keys(ne);if(ie.length!=re.length)return!1;for(let re=0;re<ie.length;re++){const le=ie[re];if(!ne.hasOwnProperty(le)||te[le]!==ne[le])return!1}return!0}(ue.params,me.params)){const ne=[],ie=le.matchStyles(ue.value,ue.params,ne),re=le.matchStyles(me.value,me.params,ne);ne.length?this._engine.reportError(ne):this._engine.afterFlush((()=>{eraseStyles(te,ie),setStyles(te,re)}))}return}const ge=getOrSetDefaultValue(this._engine.playersByElement,te,[]);ge.forEach((te=>{te.namespaceId==this.id&&te.triggerName==ne&&te.queued&&te.destroy()}));let fe=le.matchTransition(ue.value,me.value,te,me.params),_e=!1;if(!fe){if(!re)return;fe=le.fallbackTransition,_e=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:te,triggerName:ne,transition:fe,fromState:ue,toState:me,player:ce,isFallbackTransition:_e}),_e||(addClass(te,Qe),ce.onStart((()=>{removeClass(te,Qe)}))),ce.onDone((()=>{let ne=this.players.indexOf(ce);ne>=0&&this.players.splice(ne,1);const ie=this._engine.playersByElement.get(te);if(ie){let te=ie.indexOf(ce);te>=0&&ie.splice(te,1)}})),this.players.push(ce),ge.push(ce),ce}deregister(te){this._triggers.delete(te),this._engine.statesByElement.forEach((ne=>ne.delete(te))),this._elementListeners.forEach(((ne,ie)=>{this._elementListeners.set(ie,ne.filter((ne=>ne.name!=te)))}))}clearElementCache(te){this._engine.statesByElement.delete(te),this._elementListeners.delete(te);const ne=this._engine.playersByElement.get(te);ne&&(ne.forEach((te=>te.destroy())),this._engine.playersByElement.delete(te))}_signalRemovalForInnerTriggers(te,ne){const ie=this._engine.driver.query(te,Ne,!0);ie.forEach((te=>{if(te[vt])return;const ie=this._engine.fetchNamespacesByElement(te);ie.size?ie.forEach((ie=>ie.triggerLeaveAnimation(te,ne,!1,!0))):this.clearElementCache(te)})),this._engine.afterFlushAnimationsDone((()=>ie.forEach((te=>this.clearElementCache(te)))))}triggerLeaveAnimation(te,ne,ie,re){const le=this._engine.statesByElement.get(te),ce=new Map;if(le){const de=[];if(le.forEach(((ne,ie)=>{if(ce.set(ie,ne.value),this._triggers.has(ie)){const ne=this.trigger(te,ie,It,re);ne&&de.push(ne)}})),de.length)return this._engine.markElementAsRemoved(this.id,te,!0,ne,ce),ie&&optimizeGroupPlayer(de).onDone((()=>this._engine.processLeaveNode(te))),!0}return!1}prepareLeaveAnimationListeners(te){const ne=this._elementListeners.get(te),ie=this._engine.statesByElement.get(te);if(ne&&ie){const re=new Set;ne.forEach((ne=>{const le=ne.name;if(re.has(le))return;re.add(le);const ce=this._triggers.get(le).fallbackTransition,de=ie.get(le)||Dt,ue=new StateValue(It),me=new TransitionAnimationPlayer(this.id,le,te);this._engine.totalQueuedPlayers++,this._queue.push({element:te,triggerName:le,transition:ce,fromState:de,toState:ue,player:me,isFallbackTransition:!0})}))}}removeNode(te,ne){const ie=this._engine;if(te.childElementCount&&this._signalRemovalForInnerTriggers(te,ne),this.triggerLeaveAnimation(te,ne,!0))return;let re=!1;if(ie.totalAnimations){const ne=ie.players.length?ie.playersByQueriedElement.get(te):[];if(ne&&ne.length)re=!0;else{let ne=te;for(;ne=ne.parentNode;){if(ie.statesByElement.get(ne)){re=!0;break}}}}if(this.prepareLeaveAnimationListeners(te),re)ie.markElementAsRemoved(this.id,te,!1,ne);else{const re=te[vt];re&&re!==pt||(ie.afterFlush((()=>this.clearElementCache(te))),ie.destroyInnerAnimations(te),ie._onRemovalComplete(te,ne))}}insertNode(te,ne){addClass(te,this._hostClassName)}drainQueuedTransitions(te){const ne=[];return this._queue.forEach((ie=>{const re=ie.player;if(re.destroyed)return;const le=ie.element,ce=this._elementListeners.get(le);ce&&ce.forEach((ne=>{if(ne.name==ie.triggerName){const re=makeAnimationEvent(le,ie.triggerName,ie.fromState.value,ie.toState.value);re._data=te,listenOnPlayer(ie.player,ne.phase,re,ne.callback)}})),re.markedForDestroy?this._engine.afterFlush((()=>{re.destroy()})):ne.push(ie)})),this._queue=[],ne.sort(((te,ne)=>{const ie=te.transition.ast.depCount,re=ne.transition.ast.depCount;return 0==ie||0==re?ie-re:this._engine.driver.containsElement(te.element,ne.element)?1:-1}))}destroy(te){this.players.forEach((te=>te.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,te)}}class TransitionAnimationEngine{_onRemovalComplete(te,ne){this.onRemovalComplete(te,ne)}constructor(te,ne,ie,re){this.bodyNode=te,this.driver=ne,this._normalizer=ie,this.scheduler=re,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=(te,ne)=>{}}get queuedPlayers(){const te=[];return this._namespaceList.forEach((ne=>{ne.players.forEach((ne=>{ne.queued&&te.push(ne)}))})),te}createNamespace(te,ne){const ie=new AnimationTransitionNamespace(te,ne,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ne)?this._balanceNamespaceList(ie,ne):(this.newHostElements.set(ne,ie),this.collectEnterElement(ne)),this._namespaceLookup[te]=ie}_balanceNamespaceList(te,ne){const ie=this._namespaceList,re=this.namespacesByHostElement;if(ie.length-1>=0){let le=!1,ce=this.driver.getParentElement(ne);for(;ce;){const ne=re.get(ce);if(ne){const re=ie.indexOf(ne);ie.splice(re+1,0,te),le=!0;break}ce=this.driver.getParentElement(ce)}le||ie.unshift(te)}else ie.push(te);return re.set(ne,te),te}register(te,ne){let ie=this._namespaceLookup[te];return ie||(ie=this.createNamespace(te,ne)),ie}registerTrigger(te,ne,ie){let re=this._namespaceLookup[te];re&&re.register(ne,ie)&&this.totalAnimations++}destroy(te,ne){te&&(this.afterFlush((()=>{})),this.afterFlushAnimationsDone((()=>{const ie=this._fetchNamespace(te);this.namespacesByHostElement.delete(ie.hostElement);const re=this._namespaceList.indexOf(ie);re>=0&&this._namespaceList.splice(re,1),ie.destroy(ne),delete this._namespaceLookup[te]})))}_fetchNamespace(te){return this._namespaceLookup[te]}fetchNamespacesByElement(te){const ne=new Set,ie=this.statesByElement.get(te);if(ie)for(let te of ie.values())if(te.namespaceId){const ie=this._fetchNamespace(te.namespaceId);ie&&ne.add(ie)}return ne}trigger(te,ne,ie,re){if(isElementNode(ne)){const le=this._fetchNamespace(te);if(le)return le.trigger(ne,ie,re),!0}return!1}insertNode(te,ne,ie,re){if(!isElementNode(ne))return;const le=ne[vt];if(le&&le.setForRemoval){le.setForRemoval=!1,le.setForMove=!0;const te=this.collectedLeaveElements.indexOf(ne);te>=0&&this.collectedLeaveElements.splice(te,1)}if(te){const re=this._fetchNamespace(te);re&&re.insertNode(ne,ie)}re&&this.collectEnterElement(ne)}collectEnterElement(te){this.collectedEnterElements.push(te)}markElementAsDisabled(te,ne){ne?this.disabledNodes.has(te)||(this.disabledNodes.add(te),addClass(te,Je)):this.disabledNodes.has(te)&&(this.disabledNodes.delete(te),removeClass(te,Je))}removeNode(te,ne,ie){if(isElementNode(ne)){this.scheduler?.notify();const re=te?this._fetchNamespace(te):null;re?re.removeNode(ne,ie):this.markElementAsRemoved(te,ne,!1,ie);const le=this.namespacesByHostElement.get(ne);le&&le.id!==te&&le.removeNode(ne,ie)}else this._onRemovalComplete(ne,ie)}markElementAsRemoved(te,ne,ie,re,le){this.collectedLeaveElements.push(ne),ne[vt]={namespaceId:te,setForRemoval:re,hasAnimation:ie,removedBeforeQueried:!1,previousTriggersValues:le}}listen(te,ne,ie,re,le){return isElementNode(ne)?this._fetchNamespace(te).listen(ne,ie,re,le):()=>{}}_buildInstruction(te,ne,ie,re,le){return te.transition.build(this.driver,te.element,te.fromState.value,te.toState.value,ie,re,te.fromState.options,te.toState.options,ne,le)}destroyInnerAnimations(te){let ne=this.driver.query(te,Ne,!0);ne.forEach((te=>this.destroyActiveAnimationsForElement(te))),0!=this.playersByQueriedElement.size&&(ne=this.driver.query(te,Le,!0),ne.forEach((te=>this.finishActiveQueriedAnimationOnElement(te))))}destroyActiveAnimationsForElement(te){const ne=this.playersByElement.get(te);ne&&ne.forEach((te=>{te.queued?te.markedForDestroy=!0:te.destroy()}))}finishActiveQueriedAnimationOnElement(te){const ne=this.playersByQueriedElement.get(te);ne&&ne.forEach((te=>te.finish()))}whenRenderingDone(){return new Promise((te=>{if(this.players.length)return optimizeGroupPlayer(this.players).onDone((()=>te()));te()}))}processLeaveNode(te){const ne=te[vt];if(ne&&ne.setForRemoval){if(te[vt]=pt,ne.namespaceId){this.destroyInnerAnimations(te);const ie=this._fetchNamespace(ne.namespaceId);ie&&ie.clearElementCache(te)}this._onRemovalComplete(te,ne.setForRemoval)}te.classList?.contains(Je)&&this.markElementAsDisabled(te,!1),this.driver.query(te,".ng-animate-disabled",!0).forEach((te=>{this.markElementAsDisabled(te,!1)}))}flush(te=-1){let ne=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((te,ne)=>this._balanceNamespaceList(te,ne))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let te=0;te<this.collectedEnterElements.length;te++){addClass(this.collectedEnterElements[te],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const ie=[];try{ne=this._flushAnimations(ie,te)}finally{for(let te=0;te<ie.length;te++)ie[te]()}}else for(let te=0;te<this.collectedLeaveElements.length;te++){const ne=this.collectedLeaveElements[te];this.processLeaveNode(ne)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((te=>te())),this._flushFns=[],this._whenQuietFns.length){const te=this._whenQuietFns;this._whenQuietFns=[],ne.length?optimizeGroupPlayer(ne).onDone((()=>{te.forEach((te=>te()))})):te.forEach((te=>te()))}}reportError(te){throw function triggerTransitionsFailed(te){return new fe.wOt(3402,void 0)}()}_flushAnimations(te,ne){const ie=new ElementInstructionMap,re=[],le=new Map,ce=[],de=new Map,ue=new Map,me=new Map,ge=new Set;this.disabledNodes.forEach((te=>{ge.add(te);const ne=this.driver.query(te,".ng-animate-queued",!0);for(let te=0;te<ne.length;te++)ge.add(ne[te])}));const be=this.bodyNode,Ce=Array.from(this.statesByElement.keys()),ye=buildRootMap(Ce,this.collectedEnterElements),we=new Map;let ke=0;ye.forEach(((te,ne)=>{const ie=xe+ke++;we.set(ne,ie),te.forEach((te=>addClass(te,ie)))}));const Se=[],Me=new Set,Ne=new Set;for(let te=0;te<this.collectedLeaveElements.length;te++){const ne=this.collectedLeaveElements[te],ie=ne[vt];ie&&ie.setForRemoval&&(Se.push(ne),Me.add(ne),ie.hasAnimation?this.driver.query(ne,".ng-star-inserted",!0).forEach((te=>Me.add(te))):Ne.add(ne))}const Re=new Map,Oe=buildRootMap(Ce,Array.from(Me));Oe.forEach(((te,ne)=>{const ie=Ee+ke++;Re.set(ne,ie),te.forEach((te=>addClass(te,ie)))})),te.push((()=>{ye.forEach(((te,ne)=>{const ie=we.get(ne);te.forEach((te=>removeClass(te,ie)))})),Oe.forEach(((te,ne)=>{const ie=Re.get(ne);te.forEach((te=>removeClass(te,ie)))})),Se.forEach((te=>{this.processLeaveNode(te)}))}));const Pe=[],Fe=[];for(let te=this._namespaceList.length-1;te>=0;te--){this._namespaceList[te].drainQueuedTransitions(ne).forEach((te=>{const ne=te.player,le=te.element;if(Pe.push(ne),this.collectedEnterElements.length){const ie=le[vt];if(ie&&ie.setForMove){if(ie.previousTriggersValues&&ie.previousTriggersValues.has(te.triggerName)){const ne=ie.previousTriggersValues.get(te.triggerName),re=this.statesByElement.get(te.element);if(re&&re.has(te.triggerName)){const ie=re.get(te.triggerName);ie.value=ne,re.set(te.triggerName,ie)}}return void ne.destroy()}}const ge=!be||!this.driver.containsElement(be,le),fe=Re.get(le),_e=we.get(le),Ce=this._buildInstruction(te,ie,_e,fe,ge);if(Ce.errors&&Ce.errors.length)return void Fe.push(Ce);if(ge)return ne.onStart((()=>eraseStyles(le,Ce.fromStyles))),ne.onDestroy((()=>setStyles(le,Ce.toStyles))),void re.push(ne);if(te.isFallbackTransition)return ne.onStart((()=>eraseStyles(le,Ce.fromStyles))),ne.onDestroy((()=>setStyles(le,Ce.toStyles))),void re.push(ne);const ye=[];Ce.timelines.forEach((te=>{te.stretchStartingKeyframe=!0,this.disabledNodes.has(te.element)||ye.push(te)})),Ce.timelines=ye,ie.append(le,Ce.timelines);const ke={instruction:Ce,player:ne,element:le};ce.push(ke),Ce.queriedElements.forEach((te=>getOrSetDefaultValue(de,te,[]).push(ne))),Ce.preStyleProps.forEach(((te,ne)=>{if(te.size){let ie=ue.get(ne);ie||ue.set(ne,ie=new Set),te.forEach(((te,ne)=>ie.add(ne)))}})),Ce.postStyleProps.forEach(((te,ne)=>{let ie=me.get(ne);ie||me.set(ne,ie=new Set),te.forEach(((te,ne)=>ie.add(ne)))}))}))}if(Fe.length){const te=[];Fe.forEach((ne=>{te.push(function transitionFailed(te,ne){return new fe.wOt(3505,void 0)}(ne.triggerName,ne.errors))})),Pe.forEach((te=>te.destroy())),this.reportError(te)}const je=new Map,Ve=new Map;ce.forEach((te=>{const ne=te.element;ie.has(ne)&&(Ve.set(ne,ne),this._beforeAnimationBuild(te.player.namespaceId,te.instruction,je))})),re.forEach((te=>{const ne=te.element;this._getPreviousPlayers(ne,!1,te.namespaceId,te.triggerName,null).forEach((te=>{getOrSetDefaultValue(je,ne,[]).push(te),te.destroy()}))}));const Ge=Se.filter((te=>replacePostStylesAsPre(te,ue,me))),ze=new Map;cloakAndComputeStyles(ze,this.driver,Ne,me,_e.kp).forEach((te=>{replacePostStylesAsPre(te,ue,me)&&Ge.push(te)}));const He=new Map;ye.forEach(((te,ne)=>{cloakAndComputeStyles(He,this.driver,new Set(te),ue,_e.FX)})),Ge.forEach((te=>{const ne=ze.get(te),ie=He.get(te);ze.set(te,new Map([...ne?.entries()??[],...ie?.entries()??[]]))}));const $e=[],qe=[],Ye={};ce.forEach((te=>{const{element:ne,player:ce,instruction:de}=te;if(ie.has(ne)){if(ge.has(ne))return ce.onDestroy((()=>setStyles(ne,de.toStyles))),ce.disabled=!0,ce.overrideTotalTime(de.totalTime),void re.push(ce);let te=Ye;if(Ve.size>1){let ie=ne;const re=[];for(;ie=ie.parentNode;){const ne=Ve.get(ie);if(ne){te=ne;break}re.push(ie)}re.forEach((ne=>Ve.set(ne,te)))}const ie=this._buildAnimation(ce.namespaceId,de,je,le,He,ze);if(ce.setRealPlayer(ie),te===Ye)$e.push(ce);else{const ne=this.playersByElement.get(te);ne&&ne.length&&(ce.parentPlayer=optimizeGroupPlayer(ne)),re.push(ce)}}else eraseStyles(ne,de.fromStyles),ce.onDestroy((()=>setStyles(ne,de.toStyles))),qe.push(ce),ge.has(ne)&&re.push(ce)})),qe.forEach((te=>{const ne=le.get(te.element);if(ne&&ne.length){const ie=optimizeGroupPlayer(ne);te.setRealPlayer(ie)}})),re.forEach((te=>{te.parentPlayer?te.syncPlayerEvents(te.parentPlayer):te.destroy()}));for(let te=0;te<Se.length;te++){const ne=Se[te],ie=ne[vt];if(removeClass(ne,Ee),ie&&ie.hasAnimation)continue;let re=[];if(de.size){let te=de.get(ne);te&&te.length&&re.push(...te);let ie=this.driver.query(ne,Le,!0);for(let te=0;te<ie.length;te++){let ne=de.get(ie[te]);ne&&ne.length&&re.push(...ne)}}const le=re.filter((te=>!te.destroyed));le.length?removeNodesAfterAnimationDone(this,ne,le):this.processLeaveNode(ne)}return Se.length=0,$e.forEach((te=>{this.players.push(te),te.onDone((()=>{te.destroy();const ne=this.players.indexOf(te);this.players.splice(ne,1)})),te.play()})),$e}afterFlush(te){this._flushFns.push(te)}afterFlushAnimationsDone(te){this._whenQuietFns.push(te)}_getPreviousPlayers(te,ne,ie,re,le){let ce=[];if(ne){const ne=this.playersByQueriedElement.get(te);ne&&(ce=ne)}else{const ne=this.playersByElement.get(te);if(ne){const te=!le||le==It;ne.forEach((ne=>{ne.queued||(te||ne.triggerName==re)&&ce.push(ne)}))}}return(ie||re)&&(ce=ce.filter((te=>(!ie||ie==te.namespaceId)&&(!re||re==te.triggerName)))),ce}_beforeAnimationBuild(te,ne,ie){const re=ne.triggerName,le=ne.element,ce=ne.isRemovalTransition?void 0:te,de=ne.isRemovalTransition?void 0:re;for(const te of ne.timelines){const re=te.element,ue=re!==le,me=getOrSetDefaultValue(ie,re,[]);this._getPreviousPlayers(re,ue,ce,de,ne.toState).forEach((te=>{const ne=te.getRealPlayer();ne.beforeDestroy&&ne.beforeDestroy(),te.destroy(),me.push(te)}))}eraseStyles(le,ne.fromStyles)}_buildAnimation(te,ne,ie,re,le,ce){const de=ne.triggerName,ue=ne.element,me=[],ge=new Set,fe=new Set,be=ne.timelines.map((ne=>{const be=ne.element;ge.add(be);const Ce=be[vt];if(Ce&&Ce.removedBeforeQueried)return new _e.sf(ne.duration,ne.delay);const ye=be!==ue,we=function flattenGroupPlayers(te){const ne=[];return _flattenGroupPlayersRecur(te,ne),ne}((ie.get(be)||dt).map((te=>te.getRealPlayer()))).filter((te=>{const ne=te;return!!ne.element&&ne.element===be})),ke=le.get(be),Se=ce.get(be),xe=normalizeKeyframes$1(this._normalizer,ne.keyframes,ke,Se),Ee=this._buildPlayer(ne,xe,we);if(ne.subTimeline&&re&&fe.add(be),ye){const ne=new TransitionAnimationPlayer(te,de,be);ne.setRealPlayer(Ee),me.push(ne)}return Ee}));me.forEach((te=>{getOrSetDefaultValue(this.playersByQueriedElement,te.element,[]).push(te),te.onDone((()=>function deleteOrUnsetInMap(te,ne,ie){let re=te.get(ne);if(re){if(re.length){const te=re.indexOf(ie);re.splice(te,1)}0==re.length&&te.delete(ne)}return re}(this.playersByQueriedElement,te.element,te)))})),ge.forEach((te=>addClass(te,Re)));const Ce=optimizeGroupPlayer(be);return Ce.onDestroy((()=>{ge.forEach((te=>removeClass(te,Re))),setStyles(ue,ne.toStyles)})),fe.forEach((te=>{getOrSetDefaultValue(re,te,[]).push(Ce)})),Ce}_buildPlayer(te,ne,ie){return ne.length>0?this.driver.animate(te.element,ne,te.duration,te.delay,te.easing,ie):new _e.sf(te.duration,te.delay)}}class TransitionAnimationPlayer{constructor(te,ne,ie){this.namespaceId=te,this.triggerName=ne,this.element=ie,this._player=new _e.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(te){this._containsRealPlayer||(this._player=te,this._queuedCallbacks.forEach(((ne,ie)=>{ne.forEach((ne=>listenOnPlayer(te,ie,void 0,ne)))})),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(te.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(te){this.totalTime=te}syncPlayerEvents(te){const ne=this._player;ne.triggerCallback&&te.onStart((()=>ne.triggerCallback("start"))),te.onDone((()=>this.finish())),te.onDestroy((()=>this.destroy()))}_queueEvent(te,ne){getOrSetDefaultValue(this._queuedCallbacks,te,[]).push(ne)}onDone(te){this.queued&&this._queueEvent("done",te),this._player.onDone(te)}onStart(te){this.queued&&this._queueEvent("start",te),this._player.onStart(te)}onDestroy(te){this.queued&&this._queueEvent("destroy",te),this._player.onDestroy(te)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(te){this.queued||this._player.setPosition(te)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(te){const ne=this._player;ne.triggerCallback&&ne.triggerCallback(te)}}function isElementNode(te){return te&&1===te.nodeType}function cloakElement(te,ne){const ie=te.style.display;return te.style.display=null!=ne?ne:"none",ie}function cloakAndComputeStyles(te,ne,ie,re,le){const ce=[];ie.forEach((te=>ce.push(cloakElement(te))));const de=[];re.forEach(((ie,re)=>{const ce=new Map;ie.forEach((te=>{const ie=ne.computeStyle(re,te,le);ce.set(te,ie),ie&&0!=ie.length||(re[vt]=Ct,de.push(re))})),te.set(re,ce)}));let ue=0;return ie.forEach((te=>cloakElement(te,ce[ue++]))),de}function buildRootMap(te,ne){const ie=new Map;if(te.forEach((te=>ie.set(te,[]))),0==ne.length)return ie;const re=new Set(ne),le=new Map;function getRoot(te){if(!te)return 1;let ne=le.get(te);if(ne)return ne;const ce=te.parentNode;return ne=ie.has(ce)?ce:re.has(ce)?1:getRoot(ce),le.set(te,ne),ne}return ne.forEach((te=>{const ne=getRoot(te);1!==ne&&ie.get(ne).push(te)})),ie}function addClass(te,ne){te.classList?.add(ne)}function removeClass(te,ne){te.classList?.remove(ne)}function removeNodesAfterAnimationDone(te,ne,ie){optimizeGroupPlayer(ie).onDone((()=>te.processLeaveNode(ne)))}function _flattenGroupPlayersRecur(te,ne){for(let ie=0;ie<te.length;ie++){const re=te[ie];re instanceof _e.ui?_flattenGroupPlayersRecur(re.players,ne):ne.push(re)}}function replacePostStylesAsPre(te,ne,ie){const re=ie.get(te);if(!re)return!1;let le=ne.get(te);return le?re.forEach((te=>le.add(te))):ne.set(te,re),ie.delete(te),!0}class AnimationEngine{constructor(te,ne,ie,re){this._driver=ne,this._normalizer=ie,this._triggerCache={},this.onRemovalComplete=(te,ne)=>{},this._transitionEngine=new TransitionAnimationEngine(te.body,ne,ie,re),this._timelineEngine=new TimelineAnimationEngine(te.body,ne,ie),this._transitionEngine.onRemovalComplete=(te,ne)=>this.onRemovalComplete(te,ne)}registerTrigger(te,ne,ie,re,le){const ce=te+"-"+re;let de=this._triggerCache[ce];if(!de){const te=[],ne=[],ie=buildAnimationAst(this._driver,le,te,ne);if(te.length)throw function triggerBuildFailed(te,ne){return new fe.wOt(3404,void 0)}();ne.length&&function warnTriggerBuild(te,ne){console.warn(`The animation trigger "${te}" has built with the following warnings:${createListOfWarnings(ne)}`)}(re,ne),de=function buildTrigger(te,ne,ie){return new AnimationTrigger(te,ne,ie)}(re,ie,this._normalizer),this._triggerCache[ce]=de}this._transitionEngine.registerTrigger(ne,re,de)}register(te,ne){this._transitionEngine.register(te,ne)}destroy(te,ne){this._transitionEngine.destroy(te,ne)}onInsert(te,ne,ie,re){this._transitionEngine.insertNode(te,ne,ie,re)}onRemove(te,ne,ie){this._transitionEngine.removeNode(te,ne,ie)}disableAnimations(te,ne){this._transitionEngine.markElementAsDisabled(te,ne)}process(te,ne,ie,re){if("@"==ie.charAt(0)){const[te,le]=parseTimelineCommand(ie),ce=re;this._timelineEngine.command(te,ne,le,ce)}else this._transitionEngine.trigger(te,ne,ie,re)}listen(te,ne,ie,re,le){if("@"==ie.charAt(0)){const[te,re]=parseTimelineCommand(ie);return this._timelineEngine.listen(te,ne,re,le)}return this._transitionEngine.listen(te,ne,ie,re,le)}flush(te=-1){this._transitionEngine.flush(te)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(te){this._transitionEngine.afterFlushAnimationsDone(te)}}class SpecialCasedStyles{static#e=this.initialStylesByElement=new WeakMap;constructor(te,ne,ie){this._element=te,this._startStyles=ne,this._endStyles=ie,this._state=0;let re=SpecialCasedStyles.initialStylesByElement.get(te);re||SpecialCasedStyles.initialStylesByElement.set(te,re=new Map),this._initialStyles=re}start(){this._state<1&&(this._startStyles&&setStyles(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(setStyles(this._element,this._initialStyles),this._endStyles&&(setStyles(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(SpecialCasedStyles.initialStylesByElement.delete(this._element),this._startStyles&&(eraseStyles(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(eraseStyles(this._element,this._endStyles),this._endStyles=null),setStyles(this._element,this._initialStyles),this._state=3)}}function filterNonAnimatableStyles(te){let ne=null;return te.forEach(((te,ie)=>{(function isNonAnimatableStyle(te){return"display"===te||"position"===te})(ie)&&(ne=ne||new Map,ne.set(ie,te))})),ne}class WebAnimationsPlayer{constructor(te,ne,ie,re){this.element=te,this.keyframes=ne,this.options=ie,this._specialStyles=re,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=ie.duration,this._delay=ie.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((te=>te())),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const te=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,te,this.options),this._finalKeyframe=te.length?te[te.length-1]:new Map;const onFinish=()=>this._onFinish();this.domPlayer.addEventListener("finish",onFinish),this.onDestroy((()=>{this.domPlayer.removeEventListener("finish",onFinish)}))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(te){const ne=[];return te.forEach((te=>{ne.push(Object.fromEntries(te))})),ne}_triggerWebAnimation(te,ne,ie){return te.animate(this._convertKeyframesToObject(ne),ie)}onStart(te){this._originalOnStartFns.push(te),this._onStartFns.push(te)}onDone(te){this._originalOnDoneFns.push(te),this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((te=>te())),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((te=>te())),this._onDestroyFns=[])}setPosition(te){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=te*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const te=new Map;if(this.hasStarted()){this._finalKeyframe.forEach(((ne,ie)=>{"offset"!==ie&&te.set(ie,this._finished?ne:computeStyle(this.element,ie))}))}this.currentSnapshot=te}triggerCallback(te){const ne="start"===te?this._onStartFns:this._onDoneFns;ne.forEach((te=>te())),ne.length=0}}class WebAnimationsDriver{validateStyleProperty(te){return validateStyleProperty(te)}validateAnimatableStyleProperty(te){return function validateWebAnimatableStyleProperty(te){return be.has(te)}(function camelCaseToDashCase(te){return te.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}(te))}matchesElement(te,ne){return!1}containsElement(te,ne){return containsElement(te,ne)}getParentElement(te){return getParentElement(te)}query(te,ne,ie){return invokeQuery(te,ne,ie)}computeStyle(te,ne,ie){return computeStyle(te,ne)}animate(te,ne,ie,re,le,ce=[]){const de={duration:ie,delay:re,fill:0==re?"both":"forwards"};le&&(de.easing=le);const ue=new Map,me=ce.filter((te=>te instanceof WebAnimationsPlayer));(function allowPreviousPlayerStylesMerge(te,ne){return 0===te||0===ne})(ie,re)&&me.forEach((te=>{te.currentSnapshot.forEach(((te,ne)=>ue.set(ne,te)))}));let ge=function normalizeKeyframes(te){return te.length?te[0]instanceof Map?te:te.map((te=>new Map(Object.entries(te)))):[]}(ne).map((te=>new Map(te)));ge=function balancePreviousStylesIntoKeyframes(te,ne,ie){if(ie.size&&ne.length){let re=ne[0],le=[];if(ie.forEach(((te,ne)=>{re.has(ne)||le.push(ne),re.set(ne,te)})),le.length)for(let ie=1;ie<ne.length;ie++){let re=ne[ie];le.forEach((ne=>re.set(ne,computeStyle(te,ne))))}}return ne}(te,ge,ue);const fe=function packageNonAnimatableStyles(te,ne){let ie=null,re=null;return Array.isArray(ne)&&ne.length?(ie=filterNonAnimatableStyles(ne[0]),ne.length>1&&(re=filterNonAnimatableStyles(ne[ne.length-1]))):ne instanceof Map&&(ie=filterNonAnimatableStyles(ne)),ie||re?new SpecialCasedStyles(te,ie,re):null}(te,ge);return new WebAnimationsPlayer(te,ge,de,fe)}}const Mt="@",Nt="@.disabled";class BaseAnimationRenderer{constructor(te,ne,ie,re){this.namespaceId=te,this.delegate=ne,this.engine=ie,this._onDestroy=re,this.ɵtype=0}get data(){return this.delegate.data}destroyNode(te){this.delegate.destroyNode?.(te)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone((()=>{queueMicrotask((()=>{this.delegate.destroy()}))})),this._onDestroy?.()}createElement(te,ne){return this.delegate.createElement(te,ne)}createComment(te){return this.delegate.createComment(te)}createText(te){return this.delegate.createText(te)}appendChild(te,ne){this.delegate.appendChild(te,ne),this.engine.onInsert(this.namespaceId,ne,te,!1)}insertBefore(te,ne,ie,re=!0){this.delegate.insertBefore(te,ne,ie),this.engine.onInsert(this.namespaceId,ne,te,re)}removeChild(te,ne,ie){this.engine.onRemove(this.namespaceId,ne,this.delegate)}selectRootElement(te,ne){return this.delegate.selectRootElement(te,ne)}parentNode(te){return this.delegate.parentNode(te)}nextSibling(te){return this.delegate.nextSibling(te)}setAttribute(te,ne,ie,re){this.delegate.setAttribute(te,ne,ie,re)}removeAttribute(te,ne,ie){this.delegate.removeAttribute(te,ne,ie)}addClass(te,ne){this.delegate.addClass(te,ne)}removeClass(te,ne){this.delegate.removeClass(te,ne)}setStyle(te,ne,ie,re){this.delegate.setStyle(te,ne,ie,re)}removeStyle(te,ne,ie){this.delegate.removeStyle(te,ne,ie)}setProperty(te,ne,ie){ne.charAt(0)==Mt&&ne==Nt?this.disableAnimations(te,!!ie):this.delegate.setProperty(te,ne,ie)}setValue(te,ne){this.delegate.setValue(te,ne)}listen(te,ne,ie){return this.delegate.listen(te,ne,ie)}disableAnimations(te,ne){this.engine.disableAnimations(te,ne)}}class AnimationRenderer extends BaseAnimationRenderer{constructor(te,ne,ie,re,le){super(ne,ie,re,le),this.factory=te,this.namespaceId=ne}setProperty(te,ne,ie){ne.charAt(0)==Mt?"."==ne.charAt(1)&&ne==Nt?(ie=void 0===ie||!!ie,this.disableAnimations(te,ie)):this.engine.process(this.namespaceId,te,ne.slice(1),ie):this.delegate.setProperty(te,ne,ie)}listen(te,ne,ie){if(ne.charAt(0)==Mt){const re=function resolveElementFromTarget(te){switch(te){case"body":return document.body;case"document":return document;case"window":return window;default:return te}}(te);let le=ne.slice(1),ce="";return le.charAt(0)!=Mt&&([le,ce]=function parseTriggerCallbackName(te){const ne=te.indexOf("."),ie=te.substring(0,ne),re=te.slice(ne+1);return[ie,re]}(le)),this.engine.listen(this.namespaceId,re,le,ce,(te=>{const ne=te._data||-1;this.factory.scheduleListenerCallback(ne,ie,te)}))}return this.delegate.listen(te,ne,ie)}}class AnimationRendererFactory{constructor(te,ne,ie){this.delegate=te,this.engine=ne,this._zone=ie,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,ne.onRemovalComplete=(te,ne)=>{const ie=ne?.parentNode(te);ie&&ne.removeChild(ie,te)}}createRenderer(te,ne){const ie=this.delegate.createRenderer(te,ne);if(!te||!ne?.data?.animation){const te=this._rendererCache;let ne=te.get(ie);if(!ne){const onRendererDestroy=()=>te.delete(ie);ne=new BaseAnimationRenderer("",ie,this.engine,onRendererDestroy),te.set(ie,ne)}return ne}const re=ne.id,le=ne.id+"-"+this._currentId;this._currentId++,this.engine.register(le,te);const registerTrigger=ne=>{Array.isArray(ne)?ne.forEach(registerTrigger):this.engine.registerTrigger(re,le,te,ne.name,ne)};return ne.data.animation.forEach(registerTrigger),new AnimationRenderer(this,le,ie,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask((()=>{this._microtaskId++}))}scheduleListenerCallback(te,ne,ie){if(te>=0&&te<this._microtaskId)return void this._zone.run((()=>ne(ie)));const re=this._animationCallbacksBuffer;0==re.length&&queueMicrotask((()=>{this._zone.run((()=>{re.forEach((te=>{const[ne,ie]=te;ne(ie)})),this._animationCallbacksBuffer=[]}))})),re.push([ne,ie])}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()}}let Rt=(()=>{class InjectableAnimationEngine extends AnimationEngine{constructor(te,ne,ie){super(te,ne,ie,(0,fe.WQX)(fe.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.ɵfac=function InjectableAnimationEngine_Factory(te){return new(te||InjectableAnimationEngine)(fe.KVO(de.qQ),fe.KVO(AnimationDriver),fe.KVO(AnimationStyleNormalizer))};static#t=this.ɵprov=fe.jDH({token:InjectableAnimationEngine,factory:InjectableAnimationEngine.ɵfac})}return InjectableAnimationEngine})();const Ot=[{provide:AnimationStyleNormalizer,useFactory:function instantiateDefaultStyleNormalizer(){return new WebAnimationsStyleNormalizer}},{provide:AnimationEngine,useClass:Rt},{provide:fe._9s,useFactory:function instantiateRendererFactory(te,ne,ie){return new AnimationRendererFactory(te,ne,ie)},deps:[re.B7,AnimationEngine,fe.SKi]}],Vt=[{provide:AnimationDriver,useFactory:()=>new WebAnimationsDriver},{provide:fe.bc$,useValue:"BrowserAnimations"},...Ot],Gt=[{provide:AnimationDriver,useClass:ke},{provide:fe.bc$,useValue:"NoopAnimations"},...Ot];let zt=(()=>{class BrowserAnimationsModule{static withConfig(te){return{ngModule:BrowserAnimationsModule,providers:te.disableAnimations?Gt:Vt}}static#e=this.ɵfac=function BrowserAnimationsModule_Factory(te){return new(te||BrowserAnimationsModule)};static#t=this.ɵmod=fe.$C({type:BrowserAnimationsModule});static#n=this.ɵinj=fe.G2t({providers:Vt,imports:[re.Bb]})}return BrowserAnimationsModule})();var Ht=ie(3828),Ut=ie(3511),$t=ie(360),Yt=ie(5328),Wt=ie(2867),Kt=ie(2653),Qt=ie(5656),Jt=ie(2040),Zt=ie(7947),tn=ie(7178),nn=ie(3016),rn=ie(6830);const areaRestritaGuard=(te,ne)=>{const ie=(0,fe.WQX)(rn.u),re=(0,fe.WQX)(Qt.Ix),le=ie.getToken(),ce=ie.usuario,de=re.createUrlTree(["area-restrita","auth"]),ue=ie.getPerfilUsuario().pipe((0,Jt.M)((te=>ie.usuario=te)),(0,Zt.T)((()=>!0)),(0,tn.W)((()=>(0,nn.of)(de)))),me=te.queryParamMap.get("id_login");return me?ie.loginAreaRestritaIdLogin(me).pipe((0,Wt.n)((()=>ue)),(0,tn.W)((()=>(0,nn.of)(de)))):!ce&&!le||ce&&!ce.isAreaRestrita?de:ue};var an=ie(936),sn=ie(7280),dn=ie(3646),un=ie(6564),pn=ie(4447),hn=ie(1);let fn=(()=>{class EsqueceuSenhaModalComponent{constructor(){this.dialogRef=(0,fe.WQX)(Ut.Pw)}closeDialog(){this.dialogRef.close()}static#e=this.ɵfac=function EsqueceuSenhaModalComponent_Factory(te){return new(te||EsqueceuSenhaModalComponent)};static#t=this.ɵcmp=fe.VBU({type:EsqueceuSenhaModalComponent,selectors:[["br-esqueceu-senha-modal"]],decls:1,vars:0,consts:[[3,"cancel"]],template:function EsqueceuSenhaModalComponent_Template(te,ne){1&te&&(fe.j41(0,"br-esqueceu-senha",0),fe.bIt("cancel",(function EsqueceuSenhaModalComponent_Template_br_esqueceu_senha_cancel_0_listener(){return ne.closeDialog()})),fe.k0s())},dependencies:[hn.L]})}return EsqueceuSenhaModalComponent})();var _n=ie(8841),bn=ie(3972),yn=ie(5708),wn=ie(8447),kn=ie(7225),In=ie(5351),Tn=ie(2483);function exhaustMap(te,ne){return ne?ie=>ie.pipe(exhaustMap(((ie,re)=>(0,kn.Tg)(te(ie,re)).pipe((0,Zt.T)(((te,le)=>ne(ie,te,re,le))))))):(0,In.N)(((ne,ie)=>{let re=0,le=null,ce=!1;ne.subscribe((0,Tn._)(ie,(ne=>{le||(le=(0,Tn._)(ie,void 0,(()=>{le=null,ce&&ie.complete()})),(0,kn.Tg)(te(ne,re++)).subscribe(le))}),(()=>{ce=!0,!le&&ie.complete()})))}))}var Dn=ie(593),xn=ie(3500),En=ie(3944);let Rn=(()=>{class SolicitacaoSenhaComponent{constructor(te){this.dialogRef=te,this.lbrUsuarioService=(0,fe.WQX)(En.c),this.messageService=(0,fe.WQX)(Ht.bg),this.emailControl=new an.MJ("",{validators:an.k0.required}),this.submitFormAction$=new wn.B,this.submittingSolicitacao$=this.submitFormAction$.pipe(exhaustMap((te=>this.lbrUsuarioService.enviarEmailSolicitacaoSenha(te).pipe((0,Jt.M)((()=>this.messageService.add({key:xn.x.BottomCenter,severity:"success",summary:"Email Enviado",detail:"E-mail enviado com sucesso!",life:5e3}))),(0,Jt.M)((()=>this.dialogRef.close())),(0,Zt.T)((()=>!1)),(0,tn.W)((te=>(this.messageService.add({key:xn.x.BottomCenter,severity:"error",summary:"Erro",detail:te.error.message}),(0,nn.of)(!1)))),(0,Dn.Z)(!0)))),(0,Dn.Z)(!1))}submitForm(){this.submitFormAction$.next({email:this.emailControl.value})}closeDialog(){this.dialogRef.close()}static#e=this.ɵfac=function SolicitacaoSenhaComponent_Factory(te){return new(te||SolicitacaoSenhaComponent)(fe.rXU(Ut.Pw))};static#t=this.ɵcmp=fe.VBU({type:SolicitacaoSenhaComponent,selectors:[["app-solicitacao-senha"]],standalone:!0,features:[fe.aNF],decls:12,vars:6,consts:[[1,"mb-2"],[1,"flex","flex-column","gap-5","my-4"],["id","Email","type","text","brInputText","","pAutoFocus","",3,"formControl","autofocus"],["for","Email"],[1,"flex","justify-content-center","gap-3","flex-auto","align-items-stretch"],["styleClass","w-full h-full p-button-outlined","label","Cancelar",1,"w-full",3,"onClick"],["styleClass","w-full h-full flex justify-content-center","label","Solicitar senha",1,"w-full",3,"disabled","loading","onClick"]],template:function SolicitacaoSenhaComponent_Template(te,ne){1&te&&(fe.j41(0,"div")(1,"p",0),fe.EFF(2,"Informe seu e-mail para solicitar uma senha"),fe.k0s(),fe.j41(3,"div",1)(4,"p-floatLabel"),fe.nrm(5,"input",2),fe.j41(6,"label",3),fe.EFF(7,"E-mail"),fe.k0s()()(),fe.j41(8,"div",4)(9,"p-button",5),fe.bIt("onClick",(function SolicitacaoSenhaComponent_Template_p_button_onClick_9_listener(){return ne.closeDialog()})),fe.k0s(),fe.j41(10,"p-button",6),fe.bIt("onClick",(function SolicitacaoSenhaComponent_Template_p_button_onClick_10_listener(){return ne.submitForm()})),fe.nI1(11,"async"),fe.k0s()()()),2&te&&(fe.R7$(5),fe.Y8G("formControl",ne.emailControl)("autofocus",!0),fe.R7$(5),fe.Y8G("disabled",ne.emailControl.invalid)("loading",fe.bMT(11,4,ne.submittingSolicitacao$)))},dependencies:[de.MD,de.Jj,sn.tm,sn.$n,yn.f,yn.V,_n.B,an.X1,an.me,an.BC,an.l_],styles:["[_nghost-%COMP%]     input{width:100%}[_nghost-%COMP%]     .p-float-label{width:100%}"]})}return SolicitacaoSenhaComponent})();function AreaRestritaAuthComponent_div_29_Template(te,ne){if(1&te&&fe.nrm(0,"div",21),2&te){const te=fe.XpG();fe.Y8G("innerHTML",te.htmlFooter,fe.npT)}}let Ln=(()=>{class AreaRestritaAuthComponent{constructor(){this.dialogService=(0,fe.WQX)(Ut.o3),this.formBuilder=(0,fe.WQX)(an.Qk),this.authService=(0,fe.WQX)(rn.u),this.brMessageService=(0,fe.WQX)(bn.h),this.router=(0,fe.WQX)(Qt.Ix),this.isLoading=!1,this.passwordDialogRef=null,this.authForm=this.formBuilder.group({usuario:["",[an.k0.required]],senha:["",[an.k0.required]]})}submitForm(){this.isLoading=!0,this.authService.loginAreaRestrita({usuario:this.authForm.get("usuario").value,senha:this.authForm.get("senha").value}).pipe((0,tn.W)((te=>(this.brMessageService.error(te.error.message),un.w))),(0,pn.j)((()=>this.isLoading=!1))).subscribe((()=>this.router.navigate(["area-restrita"])))}showRecuperarSenhaModal(){this.passwordDialogRef=this.dialogService.open(fn,{width:"clamp(300px, 400px, 400px)",header:"Esqueceu sua senha?",autoZIndex:!0,modal:!0,styleClass:"forgot-password-component",closable:!1})}showSolicitacaoSenhaModal(){this.passwordDialogRef=this.dialogService.open(Rn,{width:"clamp(300px, 400px, 400px)",header:"Solicitação de senha",autoZIndex:!0,modal:!0,styleClass:"forgot-password-component",closable:!1})}static#e=this.ɵfac=function AreaRestritaAuthComponent_Factory(te){return new(te||AreaRestritaAuthComponent)};static#t=this.ɵcmp=fe.VBU({type:AreaRestritaAuthComponent,selectors:[["app-area-restrita-auth"]],standalone:!0,features:[fe.Jv_([Ut.o3]),fe.aNF],decls:30,vars:4,consts:[[1,"container-geral"],[1,"h-full","flex","flex-column","justify-content-center","mb-8","relative","z-2"],[1,"info-card"],[1,"header"],["src","../../../../assets/empresa/images/logo_menu_recolhido.png",1,"logo"],[1,"title"],[1,"flex","flex-column","p-2"],[1,"pt-1"],[1,"border-1","surface-border","surface-ground","px-4","py-5","mx-3","shadow-1","fadein","animation-duration-300",2,"border-radius","1rem"],[1,"flex","flex-column","w-full",3,"formGroup","ngSubmit"],[1,"p-input-icon-left","w-full","mb-3"],[1,"pi","pi-user","text-primary"],["formControlName","usuario","id","login","type","text","brInputText","","placeholder","Usuário","autofocus","",1,"w-full"],[1,"pi","pi-lock","text-primary"],["formControlName","senha","id","password","type","password","brInputText","","placeholder","Senha",1,"w-full"],[1,"mb-3","flex","justify-content-center","sm:justify-content-between","align-items-center","flex-wrap"],["styleClass","p-button-link",3,"click"],["href","/area-restrita/recadastramento","target","_blank"],["type","submit","label","Entrar","styleClass","w-full",3,"disabled","icon"],["src","../../../../assets/empresa/images/logo_menu_recolhido.png",1,"background-logo"],["class","footer",3,"innerHTML",4,"ngIf"],[1,"footer",3,"innerHTML"]],template:function AreaRestritaAuthComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"div",3),fe.nrm(4,"img",4),fe.j41(5,"span",5),fe.EFF(6,"Área Restrita"),fe.k0s()(),fe.j41(7,"div",6)(8,"span"),fe.EFF(9,"Preencha o formulário abaixo com seu login e senha de acesso."),fe.k0s(),fe.j41(10,"span",7),fe.EFF(11,'Caso ainda não possua uma senha de acesso, clique em "Não possuo senha de acesso".'),fe.k0s()()(),fe.j41(12,"div",8)(13,"form",9),fe.bIt("ngSubmit",(function AreaRestritaAuthComponent_Template_form_ngSubmit_13_listener(){return ne.submitForm()})),fe.j41(14,"span",10),fe.nrm(15,"i",11)(16,"input",12),fe.k0s(),fe.j41(17,"span",10),fe.nrm(18,"i",13)(19,"input",14),fe.k0s(),fe.j41(20,"div",15)(21,"div")(22,"p-button",16),fe.bIt("click",(function AreaRestritaAuthComponent_Template_p_button_click_22_listener(){return ne.showRecuperarSenhaModal()})),fe.EFF(23,"Esqueci minha senha"),fe.k0s()(),fe.j41(24,"div")(25,"a",17),fe.EFF(26,"Não possuo senha de acesso"),fe.k0s()()(),fe.nrm(27,"p-button",18),fe.k0s()()()(),fe.nrm(28,"img",19),fe.DNE(29,AreaRestritaAuthComponent_div_29_Template,1,1,"div",20)),2&te&&(fe.R7$(13),fe.Y8G("formGroup",ne.authForm),fe.R7$(14),fe.Y8G("disabled",ne.authForm&&ne.authForm.invalid||ne.isLoading)("icon",ne.isLoading?"pi pi-spin pi-spinner":""),fe.R7$(2),fe.Y8G("ngIf",ne.htmlFooter))},dependencies:[de.MD,de.bT,dn.D,an.X1,an.qT,an.me,an.BC,an.cb,an.j4,an.JD,sn.tm,sn.$n,_n.B],styles:["a[_ngcontent-%COMP%]{color:var(--primary-500);overflow:hidden}.container-geral[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;background-color:var(--primary-100)}.info-card[_ngcontent-%COMP%]{background-color:var(--primary-400);color:var(--primary-color-text);margin-bottom:1rem;padding:1rem .5rem;border-radius:1rem}.info-card[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:1rem}.info-card[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:none}.info-card[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600}.background-logo[_ngcontent-%COMP%]{position:fixed;z-index:1;top:0;opacity:0;width:100vw;animation:_ngcontent-%COMP%_subir 120s ease-in-out}.footer[_ngcontent-%COMP%]{display:flex;background-color:var(--primary-color);color:var(--primary-color-text)!important;font-size:.9rem;position:absolute;bottom:0;width:100%;max-height:20rem;height:40vh;padding:10px;justify-content:center;flex-direction:column;align-items:center}#login[_ngcontent-%COMP%]::placeholder{color:var(--primary-color)}#password[_ngcontent-%COMP%]::placeholder{color:var(--primary-color)}@keyframes _ngcontent-%COMP%_subir{0%{transform:translateY(0)}2%{opacity:.5}to{opacity:0;transform:translateY(-120vh)}}  body{background-color:var(--primary-400)}@media (max-width: 886px){.container-geral[_ngcontent-%COMP%]{background-color:var(--primary-400)}.container-geral[_ngcontent-%COMP%]   .info-card[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:block;width:5rem}.background-logo[_ngcontent-%COMP%]{display:none}}"]})}return AreaRestritaAuthComponent})();function Avatar_span_2_Template(te,ne){if(1&te&&(fe.j41(0,"span",4),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG();fe.R7$(),fe.JRh(te.label)}}function Avatar_ng_template_3_span_0_Template(te,ne){if(1&te&&fe.nrm(0,"span",6),2&te){const te=fe.XpG(2);fe.HbH(te.icon),fe.Y8G("ngClass","p-avatar-icon")}}function Avatar_ng_template_3_Template(te,ne){if(1&te&&fe.DNE(0,Avatar_ng_template_3_span_0_Template,1,3,"span",5),2&te){const te=fe.XpG(),ne=fe.sdS(6);fe.Y8G("ngIf",te.icon)("ngIfElse",ne)}}function Avatar_ng_template_5_img_0_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"img",8),fe.bIt("error",(function Avatar_ng_template_5_img_0_Template_img_error_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.imageError(ne))})),fe.k0s()}if(2&te){const te=fe.XpG(2);fe.Y8G("src",te.image,fe.B4B),fe.BMQ("aria-label",te.ariaLabel)}}function Avatar_ng_template_5_Template(te,ne){if(1&te&&fe.DNE(0,Avatar_ng_template_5_img_0_Template,1,2,"img",7),2&te){const te=fe.XpG();fe.Y8G("ngIf",te.image)}}const On=["*"];let Pn=(()=>{class Avatar{label;icon;image;size="normal";shape="square";style;styleClass;ariaLabel;ariaLabelledBy;onImageError=new fe.bkB;containerClass(){return{"p-avatar p-component":!0,"p-avatar-image":null!=this.image,"p-avatar-circle":"circle"===this.shape,"p-avatar-lg":"large"===this.size,"p-avatar-xl":"xlarge"===this.size}}imageError(te){this.onImageError.emit(te)}static ɵfac=function Avatar_Factory(te){return new(te||Avatar)};static ɵcmp=fe.VBU({type:Avatar,selectors:[["p-avatar"]],hostAttrs:[1,"p-element"],inputs:{label:"label",icon:"icon",image:"image",size:"size",shape:"shape",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onImageError:"onImageError"},ngContentSelectors:On,decls:7,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-avatar-text",4,"ngIf","ngIfElse"],["iconTemplate",""],["imageTemplate",""],[1,"p-avatar-text"],[3,"class","ngClass",4,"ngIf","ngIfElse"],[3,"ngClass"],[3,"src","error",4,"ngIf"],[3,"src","error"]],template:function Avatar_Template(te,ne){if(1&te&&(fe.NAR(),fe.j41(0,"div",0),fe.SdG(1),fe.DNE(2,Avatar_span_2_Template,2,1,"span",1)(3,Avatar_ng_template_3_Template,1,2,"ng-template",null,2,fe.C5r)(5,Avatar_ng_template_5_Template,1,1,"ng-template",null,3,fe.C5r),fe.k0s()),2&te){const te=fe.sdS(4);fe.HbH(ne.styleClass),fe.Y8G("ngClass",ne.containerClass())("ngStyle",ne.style),fe.BMQ("aria-labelledby",ne.ariaLabelledBy)("aria-label",ne.ariaLabel)("data-pc-name","avatar"),fe.R7$(2),fe.Y8G("ngIf",ne.label)("ngIfElse",te)}},dependencies:[de.YU,de.bT,de.B3],styles:["@layer primeng{.p-avatar{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;font-size:1rem}.p-avatar.p-avatar-image{background-color:transparent}.p-avatar.p-avatar-circle{border-radius:50%;overflow:hidden}.p-avatar .p-avatar-icon{font-size:1rem}.p-avatar img{width:100%;height:100%}}\n"],encapsulation:2,changeDetection:0})}return Avatar})(),Fn=(()=>{class AvatarModule{static ɵfac=function AvatarModule_Factory(te){return new(te||AvatarModule)};static ɵmod=fe.$C({type:AvatarModule});static ɵinj=fe.G2t({imports:[de.MD]})}return AvatarModule})();var jn=ie(7610),Vn=ie(1483),Gn=function(te){return te[te.ACEITO=2]="ACEITO",te[te.EU_NAO_ACEITO=3]="EU_NAO_ACEITO",te}(Gn||{}),zn=ie(1217),Hn=ie(1787),Un=ie(2864),$n=ie(3969),qn=ie(887),Yn=ie(2473),Wn=ie(690),Kn=ie(564);let Qn=(()=>{class LancVerbaService extends Un.O7{constructor(){super("lanc-verba"),this.captionMembroService=(0,fe.WQX)($n.q),this.brListName="Lançamento de Verba",this.brListNamePlural="Lançamentos de Verba",this.columns$=new zn.t([{label:"ID",formControlName:"codLancVerba",fieldPath:"codLancVerba"},{label:this.captionMembroService.transform("Membro"),fieldPath:"vtcentroCustoLancVerbaCodCcTovtcentroCusto.nomeCc",formControlName:"codCc"},{label:"Verba",fieldPath:"verba.nomeVerba",formControlName:"codVerba"},{label:"Referência",fieldPath:"referencia.nomeReferencia",formControlName:"codReferencia"},{label:"Tipo",fieldPath:"tipoLanc.nomeTipoLanc",formControlName:"codTipoLanc"},{formControlName:"valorLanc",label:"Valor",fieldPath:"valorLanc",typeColumn:Un.Ii.Currency}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codLancVerba",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:this.captionMembroService.transform("Membro"),formControlName:"codCc",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeCc",optionValue:"codCc",filterBy:"nomeCc,cpfCliente",foreignEndpoint:"vt-centro-custo"},{label:"Verba",formControlName:"codVerba",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeVerba",optionValue:"codVerba",foreignEndpoint:"verba"},{label:"Referência",formControlName:"codReferencia",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeReferencia",optionValue:"codReferencia",foreignEndpoint:"referencia"},{label:"Tipo",formControlName:"codTipoLanc",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeTipoLanc",optionValue:"codTipoLanc",foreignEndpoint:"tipo-lanc"},{label:"Valor do lançamento",formControlName:"valorLanc",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Number,isCurrency:!0}]}]}static#e=this.ɵfac=function LancVerbaService_Factory(te){return new(te||LancVerbaService)};static#t=this.ɵprov=fe.jDH({token:LancVerbaService,factory:LancVerbaService.ɵfac,providedIn:"root"})}return LancVerbaService})(),Jn=(()=>{class LancVerbaComponent{constructor(){this.lancVerbaService=(0,fe.WQX)(Qn)}header(){return"Lançamentos de Verba"}icon(){return"fa-light fa-comments-dollar"}static#e=this.ɵfac=function LancVerbaComponent_Factory(te){return new(te||LancVerbaComponent)};static#t=this.ɵcmp=fe.VBU({type:LancVerbaComponent,selectors:[["br-list-lanc-verba"]],standalone:!0,features:[fe.Jv_([Qn]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function LancVerbaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.lancVerbaService)},dependencies:[Kn.K]})}return LancVerbaComponent})(),Zn=(()=>{class LbrUsuarioComponent{constructor(){this.lbrUsuarioService=(0,fe.WQX)(En.c)}header(){return"Usuários"}icon(){return"fa-light fa-users"}static#e=this.ɵfac=function LbrUsuarioComponent_Factory(te){return new(te||LbrUsuarioComponent)};static#t=this.ɵcmp=fe.VBU({type:LbrUsuarioComponent,selectors:[["br-list-lbr-usuario"]],standalone:!0,features:[fe.Jv_([En.c]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function LbrUsuarioComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.lbrUsuarioService)},dependencies:[Kn.K]})}return LbrUsuarioComponent})();var pi=ie(3014),gi=ie(9335),fi=ie(888),yi=ie(7538);let ki=(()=>{class VtCentroCustoComponent{constructor(){this.vtCentroCustoService=(0,fe.WQX)(no)}header(){return $n.q.instancia.transform("Membros")}icon(){return"fa-light fa-handshake"}static#e=this.ɵfac=function VtCentroCustoComponent_Factory(te){return new(te||VtCentroCustoComponent)};static#t=this.ɵcmp=fe.VBU({type:VtCentroCustoComponent,selectors:[["br-list-vt-centro-custo"]],standalone:!0,features:[fe.Jv_([(0,fe.Rfq)((()=>no))]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function VtCentroCustoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.vtCentroCustoService)},dependencies:[Kn.K],styles:['[_nghost-%COMP%]     .filiado td[data-labelColumn="Nome completo"] span{color:#00a73e}[_nghost-%COMP%]     .filiado .p-tag{background-color:#22c55e}[_nghost-%COMP%]     .desligado td[data-labelColumn="Nome completo"] span{color:red}[_nghost-%COMP%]     .desligado .p-tag{background-color:#ef4444}[_nghost-%COMP%]     .pendente td[data-labelColumn="Nome completo"] span{color:#e55c00}[_nghost-%COMP%]     .pendente .p-tag{background-color:#ff8533}']})}return VtCentroCustoComponent})();var Ri=ie(6314),Pi=ie(3238),Fi=ie(6563);function ComparaPreCadastroModalComponent_div_0_ng_template_3_Template(te,ne){1&te&&(fe.j41(0,"tr")(1,"th",4),fe.nrm(2,"p-tableHeaderCheckbox"),fe.k0s(),fe.j41(3,"th"),fe.EFF(4,"Campo"),fe.k0s(),fe.j41(5,"th"),fe.EFF(6,"Dados do recadastramento"),fe.k0s(),fe.j41(7,"th"),fe.EFF(8,"Dados atuais"),fe.k0s()())}const compara_pre_cadastro_modal_component_c0=te=>({"campo-valor-alterado":te});function ComparaPreCadastroModalComponent_div_0_ng_template_4_Template(te,ne){if(1&te&&(fe.j41(0,"tr",5)(1,"td"),fe.nrm(2,"p-tableCheckbox",6),fe.k0s(),fe.j41(3,"td"),fe.EFF(4),fe.k0s(),fe.j41(5,"td"),fe.EFF(6),fe.k0s(),fe.j41(7,"td"),fe.EFF(8),fe.k0s()()),2&te){const te=ne.$implicit;fe.Y8G("ngClass",fe.eq3(5,compara_pre_cadastro_modal_component_c0,te.valorAtual.valor!==te.valorRecadastro.valor)),fe.R7$(2),fe.Y8G("value",te),fe.R7$(2),fe.JRh(te.nomeCampo),fe.R7$(2),fe.JRh(te.valorRecadastro.label),fe.R7$(2),fe.JRh(te.valorAtual.label)}}const _c1=()=>({"min-width":"50rem"});function ComparaPreCadastroModalComponent_div_0_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div")(1,"div")(2,"p-table",1),fe.mxI("selectionChange",(function ComparaPreCadastroModalComponent_div_0_Template_p_table_selectionChange_2_listener(ne){fe.eBV(te);const ie=fe.XpG();return fe.DH7(ie.camposSelecionados,ne)||(ie.camposSelecionados=ne),fe.Njj(ne)})),fe.DNE(3,ComparaPreCadastroModalComponent_div_0_ng_template_3_Template,9,0,"ng-template",2)(4,ComparaPreCadastroModalComponent_div_0_ng_template_4_Template,9,7,"ng-template",3),fe.k0s()()()}if(2&te){const te=fe.XpG();fe.R7$(2),fe.Y8G("value",te.registros),fe.R50("selection",te.camposSelecionados),fe.Y8G("tableStyle",fe.lJ4(3,_c1))}}var ji=function(te){return te[te.Texto=0]="Texto",te[te.Telefone=1]="Telefone",te[te.Data=2]="Data",te}(ji||{});let Vi=(()=>{class ComparaPreCadastroModalComponent{constructor(){this.dynamicDialogConfig=(0,fe.WQX)(Ut.sb),this.dynamicDialogRef=(0,fe.WQX)(Ut.Pw),this.solicitacoesService=(0,fe.WQX)(eo),this.loadingService=(0,fe.WQX)(Fi.T),this.messageService=(0,fe.WQX)(bn.h),this.dynamicDialogConfig.data?.onConfirmarEmitter.subscribe({next:()=>{this.aceitarSolicitacao()}}),this.loadingService.show(),this.solicitacoesService.comparaPreCadastro(this.dynamicDialogConfig.data.idPreCadastro).pipe((0,pn.j)((()=>this.loadingService.hide())),(0,tn.W)((te=>(this.messageService.error(te.error.message),un.w)))).subscribe((te=>this.registros=[this.montarRegistroCampo(te,{pathValor:"nomeCc",nomeCampo:"Nome completo"}),this.montarRegistroCampo(te,{pathValor:"codCargoTrabalho",pathLabel:"funcaoVtcentroCustoCodCargoTrabalhoTofuncao.nomeFuncao",nomeCampo:"Cargo atual"}),this.montarRegistroCampo(te,{pathValor:"codSituacaoCc",pathLabel:"gersituacaoCc.nomeSituacaoCc",nomeCampo:"Situação"}),this.montarRegistroCampo(te,{pathValor:"codClasseCargo",pathLabel:"classeCargo.nomeClasseCargo",nomeCampo:"Classe do cargo"}),this.montarRegistroCampo(te,{pathValor:"codOrgao",pathLabel:"orgao.nomeOrgao",nomeCampo:"Órgão efetivo"}),this.montarRegistroCampo(te,{pathValor:"dataAdmissao",nomeCampo:"Data de admissão",tipoCampo:ji.Data}),this.montarRegistroCampo(te,{pathValor:"cpfCliente",nomeCampo:"CPF"}),this.montarRegistroCampo(te,{pathValor:"codSexo",pathLabel:"sexo.nomeSexo",nomeCampo:"Sexo"}),this.montarRegistroCampo(te,{pathValor:"dataNascimento",nomeCampo:"Data de nascimento",tipoCampo:ji.Data}),this.montarRegistroCampo(te,{pathValor:"celularFone",nomeCampo:"Telefone celular"}),this.montarRegistroCampo(te,{pathValor:"emailPrincipal",nomeCampo:"Email pessoal"}),this.montarRegistroCampo(te,{pathValor:"codCidade",pathLabel:"vtcidadeVtcentroCustoCodCidadeTovtcidade.nomeCidade",nomeCampo:"Cidade"})]))}montarRegistroCampo(te,ne){ne.pathLabel||(ne.pathLabel=ne.pathValor);let ie=Ri.get(te.regAtual,ne.pathLabel),re=Ri.get(te.regPreCadastro,ne.pathLabel);const le=new de.vh("en-US");if(ne.tipoCampo===ji.Data)ie=le.transform(ie,"dd/MM/yyyy"),re=le.transform(re,"dd/MM/yyyy");return{valorAtual:{valor:Ri.get(te.regAtual,ne.pathValor),label:ie},valorRecadastro:{valor:Ri.get(te.regPreCadastro,ne.pathValor),label:re},nomeCampo:ne.nomeCampo,campoDto:ne.pathValor}}cancelar(){this.dynamicDialogRef.close()}aceitarSolicitacao(){!this.camposSelecionados||this.camposSelecionados&&0===this.camposSelecionados.length?this.messageService.error("Selecione ao menos um campo para atualizar!"):(this.loadingService.show(),this.solicitacoesService.processaRecadastramentoAceito(this.dynamicDialogConfig.data.idPreCadastro,this.camposSelecionados.map((te=>te.campoDto))).pipe((0,pn.j)((()=>this.loadingService.hide())),(0,tn.W)((te=>(this.messageService.error(te.error.message),un.w)))).subscribe((()=>{this.dynamicDialogConfig.data?.onConfirmar(),this.dynamicDialogRef.close()})))}static#e=this.ɵfac=function ComparaPreCadastroModalComponent_Factory(te){return new(te||ComparaPreCadastroModalComponent)};static#t=this.ɵcmp=fe.VBU({type:ComparaPreCadastroModalComponent,selectors:[["br-compara-pre-cadastro-modal"]],standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"value","selection","tableStyle","selectionChange"],["pTemplate","header"],["pTemplate","body"],[2,"width","4rem"],[3,"ngClass"],[3,"value"]],template:function ComparaPreCadastroModalComponent_Template(te,ne){1&te&&fe.DNE(0,ComparaPreCadastroModalComponent_div_0_Template,5,4,"div",0),2&te&&fe.Y8G("ngIf",ne.registros)},dependencies:[Pi.bG,Pi.XI,Ht.Ei,Pi.S9,Pi.nA,de.YU,de.bT,sn.tm],styles:[".campo-valor-alterado[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--secondary-color) 50%,transparent)!important}"]})}return ComparaPreCadastroModalComponent})(),eo=(()=>{class SolicitacoesService extends Un.O7{constructor(){var te,ne;super("vt-centro-custo/solicitacoes"),te=this,this.brDialogService=(0,fe.WQX)(fi.i),this.tabService=(0,fe.WQX)(Yn.r),this.preferenciasService=(0,fe.WQX)(qn.v),this.captionMembroService=(0,fe.WQX)($n.q),this.fixedFilters={codCategoriaCadastro:[2],codSolicitacaoMembro:[1,2]},this.menuMais=[{label:"Aceitar Solicitação",icon:"pi pi-check",styleClass:"aceitar-solicitacao-menu-mais",command:()=>{this.selectedRows?.length>0?1===this.selectedRows.length&&3===this.selectedRows[0].codSolicitacaoMembro?this.brDialogService.open(Vi,{header:"Aceitar Recadastramento",data:{idPreCadastro:this.selectedRows[0].codCc},onConfirmar:()=>{this.refreshData().pipe((0,Jt.M)((()=>this.brMessageService.success()))).subscribe()}}):this.processaSolicitacao(this.selectedRows.filter((te=>3!==te.codSolicitacaoMembro)).map((te=>te.codCc)),!0).pipe((0,Wt.n)((()=>this.refreshData().pipe((0,Jt.M)((()=>this.brMessageService.success()))))),(0,tn.W)((te=>(console.error(te),this.brMessageService.error(),un.w)))).subscribe():this.brMessageService.info("É necessário selecionar algum registro antes")}},{label:"Rejeitar Solicitação",icon:"pi pi-times",styleClass:"nao-aceitar-solicitacao-menu-mais",command:()=>{this.selectedRows?.length>0?this.processaSolicitacao(this.selectedRows.map((te=>te.codCc)),!1).pipe((0,Wt.n)((()=>this.refreshData().pipe((0,Jt.M)((()=>this.brMessageService.success()))))),(0,tn.W)((te=>(console.error(te),this.brMessageService.error(),un.w)))).subscribe():this.brMessageService.info("É necessário selecionar algum registro antes")}},{label:this.captionMembroService.transform("Gerenciar Membros"),icon:"pi pi-user",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>String(te.codCcCadastro||0)));this.tabService.open({component:ki,data:{appliedFilters:{codCc:te}}})}}},{label:"Visualizar Ficha do Cadastro",icon:"pi pi-id-card",command:(ne=(0,pi.A)((function*(){te.selectedRows?.length>0&&te.abreRotinaRelLocal("Ficha","MembroDbRelForm",yield te.preferenciasService.get("COD_LBR_REL_FORM_FILIACAO"))})),function command(){return ne.apply(this,arguments)})}],this.brListName="Solicitação",this.brListNamePlural="Solicitações",this.columns$=new zn.t([{label:"ID",formControlName:"codCc",fieldPath:"codCc"},{label:"Nome completo",formControlName:"codCargoTrabalho",fieldPath:"nomeCc"},{label:"Status",fieldPath:"statusMembro.nomeStatusMembro",typeColumn:Un.Ii.Chip,formControlName:"codStatusMembro"},{label:"Solicitação",fieldPath:"solicitacaoMembro.nomeSolicitacaoMembro",formControlName:"codSolicitacaoMembro"},{label:"Data de solicitação",fieldPath:"dataCriacaoRegistro",formControlName:"dataCriacaoRegistro",typeColumn:Un.Ii.DateTime},{label:"Tempo de espera",fieldPath:"intervaloCriacaoRegistro",formControlName:"intervaloCriacaoRegistro"},{label:"Data de processamento",fieldPath:"dataPreCadastroProc",formControlName:"dataPreCadastroProc",typeColumn:Un.Ii.DateTime},{label:"CPF",fieldPath:"cpfCliente",formControlName:"cpfCliente"},{label:"Matrícula",formControlName:"codigoFolha",fieldPath:"codigoFolha"},{label:"Situação",fieldPath:"gersituacaoCc.nomeSituacaoCc",formControlName:"codSituacaoCc"},{label:"Cidade",fieldPath:"vtcidadeVtcentroCustoCodCidadeTovtcidade.nomeCidadeUf",formControlName:"codCidade"},{label:this.captionMembroService.transform("Cód. do membro relacionado"),fieldPath:"codCcCadastro",formControlName:"codCcCadastro",visible:!1},{label:this.captionMembroService.transform("Status do membro relacionado"),fieldPath:"vtcentroCustoVtcentroCustoCodCcCadastroTovtcentroCusto.statusMembro.nomeStatusMembro",formControlName:"codStatusMembro",typeColumn:Un.Ii.Chip},{fieldPath:"vtcentroCustoVtcentroCustoCodCcCadastroTovtcentroCusto.referenciaVtcentroCustoCodReferenciaRemessaToreferencia.nomeReferencia",formControlName:"codReferenciaRemessa"},{label:this.captionMembroService.transform("Remessa enviada do membro"),formControlName:"enviadaRemessaEstado",fieldPath:"vtcentroCustoVtcentroCustoCodCcCadastroTovtcentroCusto.enviadaRemessaEstado",typeColumn:Un.Ii.CheckBox}]),this.brFormulario=[{header:"Dados Gerais",controls:[{showOnFilter:!1,showOnDetails:!1,label:"ID",formControlName:"codCc",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Nome completo",formControlName:"nomeCc",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Tempo de espera ",formControlName:"intervaloCriacaoRegistro",control:new an.MJ(null),showOnFilter:!1,showOnDetails:!1,typeInput:Un.St.Text},{showOnFilter:!1,label:"Cargo",formControlName:"codCargoTrabalho",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeFuncao",optionValue:"codFuncao",foreignEndpoint:"funcao"},{showOnFilter:!1,label:"Matrícula",formControlName:"codigoFolha",control:new an.MJ(null),typeInput:Un.St.Mask,inputMask:"9999999-9-99"},{label:"Status",formControlName:"codStatusMembro",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeStatusMembro",optionValue:"codStatusMembro",foreignEndpoint:"status-membro"},{label:"Situação de servidor público",formControlName:"codSituacaoCc",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeSituacaoCc",optionValue:"codSituacaoCc",foreignEndpoint:"ger-situacao-cc"},{label:"Solicitação",formControlName:"codSolicitacaoMembro",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeSolicitacaoMembro",optionValue:"codSolicitacaoMembro",foreignEndpoint:"solicitacao-membro",showOnDetails:!1},{label:"Documento com foto",formControlName:"codDocEmpresaComFoto",control:new an.MJ(null),typeInput:Un.St.Upload,acceptedFiles:["any"],fileLimit:1},{label:"Ficha",formControlName:"codDocEmpresaFicha",control:new an.MJ(null),typeInput:Un.St.Upload,acceptedFiles:["any"],fileLimit:1},{showOnFilter:!1,label:"Classe/Nível entrância",formControlName:"codClasseCargo",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeClasseCargo",optionValue:"codClasseCargo",foreignEndpoint:"classe-cargo"},{showOnFilter:!1,label:"Data de filiação",formControlName:"dataRegistro",control:new an.MJ(null),typeInput:Un.St.Date},{label:"CPF",formControlName:"cpfCliente",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Mask,inputMask:"999.999.999-99"},{showOnFilter:!1,label:"Gênero",formControlName:"codSexo",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeSexo",optionValue:"codSexo",foreignEndpoint:"sexo"},{showOnFilter:!1,label:"Data de nascimento",formControlName:"dataNascimento",control:new an.MJ(null),typeInput:Un.St.Date},{showOnFilter:!1,label:"Telefone celular",formControlName:"celularFone",control:new an.MJ(null),typeInput:Un.St.Mask,inputMask:"99 99999-9999"},{showOnFilter:!1,label:"E-mail",formControlName:"emailPrincipal",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Cidade",formControlName:"codCidade",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeCidadeUf",optionValue:"codCidade",foreignEndpoint:"vt-cidade"},{showOnFilter:!1,label:"Data de desligamento",formControlName:"dataDesligamento",control:new an.MJ(null),typeInput:Un.St.Date},{showOnFilter:!1,label:"Motivo de desligamento",formControlName:"codMotivoDesligamento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeMotivoDesligamento",optionValue:"codMotivoDesligamento",foreignEndpoint:"motivo-desligamento"},{showOnFilter:!1,showOnDetails:!1,label:"Solicitação",formControlName:"codSolicitacaoMembro",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeSolicitacaoMembro",optionValue:"codSolicitacaoMembro",foreignEndpoint:"solicitacao-membro"},{showOnFilter:!1,showOnDetails:!1,label:"Categoria de Cadastro",formControlName:"codCategoriaCadastro",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeCategoriaCadastro",optionValue:"codCategoriaCadastro",foreignEndpoint:"categoria-cadastro"},{showOnFilter:!1,showOnDetails:!1,label:"Data de processamento",formControlName:"dataPreCadastroProc",control:new an.MJ(null),typeInput:Un.St.Date},{showOnFilter:!1,showOnDetails:!1,label:"Data de solicitação",formControlName:"dataCriacaoRegistro",control:new an.MJ(null),typeInput:Un.St.Date}]},{header:"Integração com o Estado",controls:[{showOnFilter:!1,label:"Referência na remessa de integração",formControlName:"codReferenciaRemessa",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeReferencia",optionValue:"codReferencia",foreignEndpoint:"referencia"},{showOnFilter:!1,label:"Operação na remessa",formControlName:"codOperIntegEstado",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeOperIntegEstado",optionValue:"codOperIntegEstado",foreignEndpoint:"oper-integ-estado"}]}];const ie=new Date;ie.setDate(1),ie.setHours(0,0,0,0);const re=new Date;re.setMonth(re.getMonth()+1),re.setDate(0),re.setHours(23,59,59),this.appliedFilters={...this.appliedFilters,dataCriacaoRegistro:{periodo:{label:"Mês atual",value:gi.v.MesAtual},dataInicial:(0,yi.hk)(ie),dataFinal:(0,yi.hk)(re)}}}configStyle(){return(0,nn.of)({classRow:[{dataTarget:[{field:"statusMembro.nomeStatusMembro",value:"FILIADO"}],className:"filiado-nome"},{dataTarget:[{field:"statusMembro.nomeStatusMembro",value:"DESLIGADO"}],className:"desligado-nome"},{dataTarget:[{field:"statusMembro.nomeStatusMembro",value:"PENDENTE"}],className:"pendente-nome"},{dataTarget:[{field:"statusMembro.nomeStatusMembro",value:"SOLICITAÇÃO ACEITA"}],className:"solicitacao-aceita"},{dataTarget:[{field:"statusMembro.nomeStatusMembro",value:"SOLICITAÇÃO NÃO ACEITA"}],className:"solicitacao-nao-aceita"},{dataTarget:[{field:"solicitacaoMembro.nomeSolicitacaoMembro",value:"Associação"}],className:"associacao"},{dataTarget:[{field:"solicitacaoMembro.nomeSolicitacaoMembro",value:"Desassociação"}],className:"desassociacao"},{dataTarget:[{field:"solicitacaoMembro.nomeSolicitacaoMembro",value:"Recadastramento"}],className:"recadastramento"}],classCell:[{dataTarget:["FILIADO"],className:"filiado"},{dataTarget:["DESLIGADO"],className:"desligado"},{dataTarget:["PENDENTE"],className:"pendente"}]})}processaSolicitacao(te,ne){return this.http.post(`${this.environmentService.environment.serverUrl}/vt-centro-custo/pre-cadastro/${ne?"aceita-solicitacao":"recusa-solicitacao"}`,{ids:te})}processaRecadastramentoAceito(te,ne){const ie=`${this.environmentService.environment.serverUrl}/vt-centro-custo/pre-cadastro/aceita-solicitacao-recadastro/${te}`;return this.http.post(ie,{camposAceitos:ne})}comparaPreCadastro(te){return this.http.get(`${this.environmentService.environment.serverUrl}/vt-centro-custo/solicitacoes/comparar/${te}`)}abreRotinaRelLocal(te,ne,ie){this.tabService.open({header:te,component:Wn.g,icon:"pi pi-user-edit",data:{params:{codRel:ie,filtro:"R.COD_CC="+this.selectedRows.map((te=>te.codCc)),rotinaWeb:ne}}})}static#e=this.ɵfac=function SolicitacoesService_Factory(te){return new(te||SolicitacoesService)};static#t=this.ɵprov=fe.jDH({token:SolicitacoesService,factory:SolicitacoesService.ɵfac,providedIn:"root"})}return SolicitacoesService})(),to=(()=>{class SolicitacoesComponent{constructor(){this.solicitacoesService=(0,fe.WQX)(eo)}header(){return"Solicitações"}icon(){return"fa-light fa-user-tag"}static#e=this.ɵfac=function SolicitacoesComponent_Factory(te){return new(te||SolicitacoesComponent)};static#t=this.ɵcmp=fe.VBU({type:SolicitacoesComponent,selectors:[["br-list-solicitacoes"]],standalone:!0,features:[fe.Jv_([eo]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function SolicitacoesComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.solicitacoesService)},dependencies:[Kn.K],styles:['@charset "UTF-8";[_nghost-%COMP%]     .solicitacao-aceita td[data-labelColumn="Nome completo"] span{color:#00a73e}[_nghost-%COMP%]     .solicitacao-aceita .p-tag{background-color:#22c55e}[_nghost-%COMP%]     .solicitacao-nao-aceita td[data-labelColumn="Nome completo"] span{color:red}[_nghost-%COMP%]     .solicitacao-nao-aceita .p-tag{background-color:#ef4444}[_nghost-%COMP%]     .associacao td[data-labelColumn=Solicita\\e7\\e3o] span{color:#00a73e}[_nghost-%COMP%]     .desassociacao td[data-labelColumn=Solicita\\e7\\e3o] span{color:red}[_nghost-%COMP%]     .recadastramento td[data-labelColumn=Solicita\\e7\\e3o] span{color:#e55c00}[_nghost-%COMP%]     .pendente td[data-labelColumn="Nome completo"] span{color:#e55c00}  .nao-aceitar-solicitacao-menu-mais .p-menuitem-link{background-color:#ef4444;margin-bottom:5px}  .nao-aceitar-solicitacao-menu-mais .p-menuitem-link:hover{background-color:#e04040!important}  .aceitar-solicitacao-menu-mais .p-menuitem-link{background-color:#22c55e;margin-bottom:5px}  .aceitar-solicitacao-menu-mais .p-menuitem-link:hover{background-color:#24ac56!important}[_nghost-%COMP%]     .filiado-nome td[data-labelColumn="Nome completo"] span{color:#185e32}[_nghost-%COMP%]     .desligado-nome td[data-labelColumn="Nome completo"] span{color:#b90000}[_nghost-%COMP%]     .pendente-nome td[data-labelColumn="Nome completo"] span{color:#e55c00}[_nghost-%COMP%]     .filiado .p-tag{background-color:#277945}[_nghost-%COMP%]     .desligado .p-tag{background-color:#a52424}[_nghost-%COMP%]     .pendente .p-tag{background-color:#ff8533}']})}return SolicitacoesComponent})();let no=(()=>{class VtCentroCustoService extends Un.O7{constructor(){super("vt-centro-custo"),this.captionMembroService=(0,fe.WQX)($n.q),this.tabService=(0,fe.WQX)(Yn.r),this.preferenciasService=(0,fe.WQX)(qn.v),this.lbrUsuarioService=(0,fe.WQX)(En.c),this.fixedFilters={codCategoriaCadastro:[1]},this.brListName=`${this.captionMembroService.transform("membro")}`,this.brListNamePlural=`${this.captionMembroService.transform("membro")}s`,this.columns$=new zn.t([{label:"ID",formControlName:"codCc",fieldPath:"codCc"},{label:"Nome completo",formControlName:"nomeCc",fieldPath:"nomeCc"},{label:"Status",fieldPath:"statusMembro.nomeStatusMembro",typeColumn:Un.Ii.Chip,formControlName:"codStatusMembro"},{label:"Solicitação",fieldPath:"solicitacaoMembro.nomeSolicitacaoMembro",formControlName:"codSolicitacaoMembro"},{label:"Cargo atual",fieldPath:"funcaoVtcentroCustoCodCargoTrabalhoTofuncao.nomeFuncao",formControlName:"codCargoTrabalho"},{label:"Regional (lotação)",fieldPath:"regionalVtcentroCustoCodLotacaoToregional.nomeRegional",formControlName:"codLotacao",visible:!1},{label:"Matrícula",formControlName:"codigoFolha",fieldPath:"codigoFolha"},{label:this.captionMembroService.transform("Situação do membro"),fieldPath:"gersituacaoCc.nomeSituacaoCc",formControlName:"codSituacaoCc"},{label:"Situação financeira",fieldPath:"situacaoFinanceira.nomeSituacaoFinanceira",formControlName:"codSituacaoFinanceira"},{label:"Órgão",fieldPath:"orgao.nomeOrgao",formControlName:"codOrgao"},{label:"CPF",formControlName:"cpfCliente",fieldPath:"cpfCliente"},{label:"Gênero",fieldPath:"sexo.nomeSexo",formControlName:"codSexo"},{label:"Data de nascimento",formControlName:"dataNascimento",fieldPath:"dataNascimento",typeColumn:Un.Ii.Date},{label:"Data de ingresso na PC",formControlName:"dataAdmissao",fieldPath:"dataAdmissao",typeColumn:Un.Ii.Date},{label:"Celular",formControlName:"celularFone",fieldPath:"celularFone"},{label:"Email pessoal",formControlName:"emailPrincipal",fieldPath:"emailPrincipal"},{label:"Forma de recebimento",fieldPath:"formaPagtoVtcentroCustoCodFormaPagtoToformaPagto.nomeFormaPagto",formControlName:"codFormaPagto"},{label:"Município",fieldPath:"vtcidadeVtcentroCustoCodCidadeTovtcidade.nomeCidadeUf",formControlName:"codCidade"},{label:"Regional do município",fieldPath:"vtcidadeVtcentroCustoCodCidadeTovtcidade.regional.nomeRegional",formControlName:"vtcidade$codCidade_codRegional"},{label:"Diretoria do município",fieldPath:"vtcidadeVtcentroCustoCodCidadeTovtcidade.regional.diretoriaRegional.nomeDiretoriaRegional",formControlName:"vtcidade$codCidade_regional$codRegional_codDiretoriaRegional"},{label:"Macro-região do município",fieldPath:"vtcidadeVtcentroCustoCodCidadeTovtcidade.regiaoUf.nomeRegiaoUf",formControlName:"vtcidade$codCidade_codRegiaoUf"},{label:"Data de solicitação",formControlName:"dataPreCadastro",fieldPath:"dataPreCadastro",typeColumn:Un.Ii.Date},{label:"Número de sorteio",formControlName:"numSorteio",fieldPath:"numSorteio"},{label:"Último lançamento",fieldPath:"tipoLanc.nomeTipoLanc",formControlName:"codTipoLanc"},{label:"Data de desligamento",fieldPath:"dataDesligamento",formControlName:"dataDesligamento",typeColumn:Un.Ii.Date},{fieldPath:"referenciaVtcentroCustoCodReferenciaRemessaToreferencia.nomeReferencia",formControlName:"codReferenciaRemessa"},{fieldPath:"enviadaRemessaEstado",formControlName:"enviadaRemessaEstado",typeColumn:Un.Ii.CheckBox},{fieldPath:"registroAtivo",formControlName:"registroAtivo",typeColumn:Un.Ii.CheckBox},{fieldPath:"dataAlteracaoRegistro",formControlName:"dataAlteracaoRegistro",typeColumn:Un.Ii.Date},{fieldPath:"dataCriacaoRegistro",formControlName:"dataCriacaoRegistro",typeColumn:Un.Ii.Date},{fieldPath:"dataRegistro",formControlName:"dataRegistro",typeColumn:Un.Ii.Date},{label:"Idade",fieldPath:"idade",formControlName:"idade"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{showOnFilter:!0,showOnDetails:!1,label:"ID",formControlName:"codCc",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Número de sorteio",formControlName:"numSorteio",control:new an.MJ(null),typeInput:Un.St.Text,showOnFilter:!1,showOnDetails:!1},{label:"Nome completo",formControlName:"nomeCc",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Cargo",formControlName:"codCargoTrabalho",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeFuncao",optionValue:"codFuncao",foreignEndpoint:"funcao"},{label:"Matrícula",formControlName:"codigoFolha",control:new an.MJ(null),typeInput:Un.St.Mask,inputMask:"999999-9-99",showOnFilter:!1},{label:this.captionMembroService.transform("Situação do membro"),formControlName:"codSituacaoCc",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeSituacaoCc",optionValue:"codSituacaoCc",foreignEndpoint:"ger-situacao-cc"},{showOnFilter:!1,label:"Situação financeira",formControlName:"codSituacaoFinanceira",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeSituacaoFinanceira",optionValue:"codSituacaoFinanceira",foreignEndpoint:"situacao-financeira"},{showOnFilter:!1,label:"Classe/Nível entrância",formControlName:"codClasseCargo",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeClasseCargo",optionValue:"codClasseCargo",foreignEndpoint:"classe-cargo"},{showOnFilter:!1,showOnDetails:!1,label:"Categoria de Cadastro",formControlName:"codCategoriaCadastro",control:new an.MJ(1),typeInput:Un.St.ForeignKey,optionLabel:"nomeCategoriaCadastro",optionValue:"codCategoriaCadastro",foreignEndpoint:"categoria-cadastro"},{showOnFilter:!1,label:"Órgão",formControlName:"codOrgao",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeOrgao",optionValue:"codOrgao",foreignEndpoint:"orgao"},{showOnFilter:!1,showOnDetails:!1,label:"Solicitação",formControlName:"codSolicitacaoMembro",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeSolicitacaoMembro",optionValue:"codSolicitacaoMembro",foreignEndpoint:"solicitacao-membro"},{label:"Status",formControlName:"codStatusMembro",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeStatusMembro",optionValue:"codStatusMembro",foreignEndpoint:"status-membro"},{label:this.captionMembroService.transform("Tipo de membro"),formControlName:"codTipoCliente",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeTipoCliente",optionValue:"codTipoCliente",foreignEndpoint:"tipo-cliente",showOnFilter:!1},{label:"Forma de recebimento",formControlName:"codFormaPagto",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeFormaPagto",optionValue:"codFormaPagto",foreignEndpoint:"forma-pagto"},{showOnFilter:!1,label:"Data de filiação",formControlName:"dataRegistro",control:new an.MJ(null),typeInput:Un.St.Date},{showOnFilter:!1,label:"Data de recadastro",formControlName:"dataSolicPreCadastro",control:new an.MJ(null),typeInput:Un.St.Date,disabledOnDetails:!0},{label:"Ativo",formControlName:"registroAtivo",control:new an.MJ(null),typeInput:Un.St.CheckBox},{label:"Desligado",formControlName:"$statusDesligado",control:new an.MJ(null),typeInput:Un.St.CheckBox,showOnDetails:!1}]},{header:"Dados Sensíveis",controls:[{label:"CPF",formControlName:"cpfCliente",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Mask,inputMask:"999.999.999-99"},{showOnFilter:!1,label:"Gênero",formControlName:"codSexo",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeSexo",optionValue:"codSexo",foreignEndpoint:"sexo"},{showOnFilter:!1,label:"Data de nascimento",formControlName:"dataNascimento",control:new an.MJ(null),typeInput:Un.St.Date},{showOnFilter:!0,label:"Data de ingresso na PC",formControlName:"dataAdmissao",control:new an.MJ(null),typeInput:Un.St.Date},{showOnFilter:!1,label:"Telefone celular",formControlName:"celularFone",control:new an.MJ(null),typeInput:Un.St.Mask,inputMask:"99 99999-9999"},{showOnFilter:!1,label:"Telefone comercial",formControlName:"foneComercial",control:new an.MJ(null),typeInput:Un.St.Mask,inputMask:"99 99999-9999"},{showOnFilter:!1,label:"E-mail",formControlName:"emailPrincipal",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Cidade",formControlName:"codCidade",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeCidadeUf",optionValue:"codCidade",foreignEndpoint:"vt-cidade"},{label:"Regional do município",formControlName:"vtcidade$codCidade_codRegional",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeRegional",optionValue:"codRegional",foreignEndpoint:"regional",showOnDetails:!1},{label:"Diretoria do município",formControlName:"vtcidade$codCidade_regional$codRegional_codDiretoriaRegional",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeDiretoriaRegional",optionValue:"codDiretoriaRegional",foreignEndpoint:"diretoria-regional",showOnDetails:!1},{label:"Macro-região do município",formControlName:"vtcidade$codCidade_codRegiaoUf",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeRegiaoUf",optionValue:"codRegiaoUf",foreignEndpoint:"regiao-uf",showOnDetails:!1},{showOnFilter:!1,label:"Grupo pessoal",formControlName:"codGrupoPessoal",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeGrupoPessoal",optionValue:"codGrupoPessoal",foreignEndpoint:"grupo-pessoal"},{showOnFilter:!1,showOnDetails:!1,label:"Data de solicitação",formControlName:"dataSolicPreCadastro",control:new an.MJ(null),typeInput:Un.St.Date},{label:"Data de solicitação",formControlName:"dataPreCadastro",control:new an.MJ(null),typeInput:Un.St.Date,showOnFilter:!1,showOnDetails:!1}]},{header:"Integração com o Estado",controls:[{showOnFilter:!1,label:"Último lançamento",formControlName:"codTipoLanc",control:new an.MJ(null),disabledOnDetails:!0,typeInput:Un.St.ForeignKey,optionLabel:"nomeTipoLanc",optionValue:"codTipoLanc",foreignEndpoint:"tipo-lanc"},{showOnFilter:!1,label:"Referência na remessa de integração",formControlName:"codReferenciaRemessa",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeReferencia",optionValue:"codReferencia",foreignEndpoint:"referencia"},{showOnFilter:!1,label:"Operação na remessa",formControlName:"codOperIntegEstado",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeOperIntegEstado",optionValue:"codOperIntegEstado",foreignEndpoint:"oper-integ-estado"},{label:"Remessa enviada",formControlName:"enviadaRemessaEstado",control:new an.MJ(null),typeInput:Un.St.CheckBox,showOnFilter:!1,showOnDetails:!0}]},{header:"Outros",controls:[{label:"Observações",formControlName:"obsCliente",control:new an.MJ(null),typeInput:Un.St.Editor,showOnFilter:!1},{label:"Data de desassociação",formControlName:"dataDesligamento",control:new an.MJ(null),typeInput:Un.St.Date},{label:"Data de alteração",formControlName:"dataAlteracaoRegistro",control:new an.MJ(null),typeInput:Un.St.Date,showOnFilter:!0,showOnDetails:!1},{label:"Data de criacao",formControlName:"dataCriacaoRegistro",control:new an.MJ(null),typeInput:Un.St.Date,showOnFilter:!0,showOnDetails:!1},{label:"Motivo de desassociação",formControlName:"codMotivoDesligamento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeMotivoDesligamento",optionValue:"codMotivoDesligamento",foreignEndpoint:"motivo-desligamento"}]}],this.menuMais=[{label:"Visualizar Declaração",icon:"pi pi-file",command:()=>{this.selectedRows?.length>0?(0,Hn.H)(this.preferenciasService.get("COD_LBR_REL_DECL_MEMBRO")).subscribe((te=>this.abreRotinaRelLocal("Declaração","MembroDbRelForm",te))):this.brMessageService.info("É necessário selecionar algum registro antes")}},{label:"Gerenciar Solicitações",icon:"pi pi-tag",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>te.codCc||0));this.tabService.open({component:to,data:{appliedFilters:{codCcCadastro:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}},{label:"Gerenciar Lançamentos de Verba",icon:"pi pi-money-bill",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>te.codCc||0));this.tabService.open({component:Jn,data:{appliedFilters:{codCc:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}},{label:"Gerenciar Usuários Relacionados",icon:"pi pi-users",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.filter((te=>te&&te.codLbrUsuario)).map((te=>String(te.codLbrUsuario||0)));this.tabService.open({component:Zn,data:{appliedFilters:{codLbrUsuario:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}},{label:"Enviar E-mail para Redefinir Senha",icon:"pi pi-send",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>te.codLbrUsuario||0));this.state.isLoading=!0,this.lbrUsuarioService.enviarEmailsRedefinicaoDeSenha(te).pipe((0,Jt.M)((()=>this.brMessageService.success("Emails enviados com sucesso"))),(0,tn.W)((()=>(this.brMessageService.error(),un.w))),(0,pn.j)((()=>this.state.isLoading=!1))).subscribe()}else this.brMessageService.info("É necessário selecionar algum registro antes")}}]}configStyle(){return(0,nn.of)({classRow:[{dataTarget:[{field:"statusMembro.nomeStatusMembro",value:"FILIADO"}],className:"filiado"},{dataTarget:[{field:"statusMembro.nomeStatusMembro",value:"DESLIGADO"}],className:"desligado"},{dataTarget:[{field:"statusMembro.nomeStatusMembro",value:"PENDENTE"}],className:"pendente"}]})}getNumSorteio(te){return this.http.get(`${this.url}/num-sorteio/${te}`)}abreRotinaRelLocal(te,ne,ie){this.tabService.open({header:te,component:Wn.g,icon:"pi pi-user-edit",data:{params:{codRel:ie,filtro:"R.COD_CC="+this.selectedRows.map((te=>te.codCc)),rotinaWeb:ne}}})}static#e=this.ɵfac=function VtCentroCustoService_Factory(te){return new(te||VtCentroCustoService)};static#t=this.ɵprov=fe.jDH({token:VtCentroCustoService,factory:VtCentroCustoService.ɵfac,providedIn:"root"})}return VtCentroCustoService})();var io=ie(8524),oo=ie(6612);let ro=(()=>{class AreaRestritaService{constructor(){this.http=(0,fe.WQX)(ue.Qq),this.environmentService=(0,fe.WQX)(oo.v),this.url=`${this.environmentService.environment.serverUrl}/area-restrita`}getConfiguracaoMenu(){return this.http.get(`${this.url}/configuracao-menu`)}getModeloFooter(){return this.http.get(`${this.url}/modelo-footer`)}static#e=this.ɵfac=function AreaRestritaService_Factory(te){return new(te||AreaRestritaService)};static#t=this.ɵprov=fe.jDH({token:AreaRestritaService,factory:AreaRestritaService.ɵfac,providedIn:"root"})}return AreaRestritaService})();var lo=ie(403);let co=(()=>{class TosFooterComponent{constructor(){this.dialogRef=(0,fe.WQX)(Ut.Pw),this.leuTermos=new an.MJ(!1,{nonNullable:!0,validators:an.k0.required})}recusaPoliticas(){this.dialogRef.close({aceitouTos:!1})}aceitaPoliticas(){this.dialogRef.close({aceitouTos:!0})}static#e=this.ɵfac=function TosFooterComponent_Factory(te){return new(te||TosFooterComponent)};static#t=this.ɵcmp=fe.VBU({type:TosFooterComponent,selectors:[["br-tos-footer"]],standalone:!0,features:[fe.aNF],decls:4,vars:3,consts:[[1,"tos-footer"],["label","Eu li e aceito as condições acima.",3,"binary","formControl"],["label","Eu aceito",3,"disabled","click"],["label","Eu não aceito",3,"click"]],template:function TosFooterComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0),fe.nrm(1,"p-checkbox",1),fe.j41(2,"p-button",2),fe.bIt("click",(function TosFooterComponent_Template_p_button_click_2_listener(){return ne.aceitaPoliticas()})),fe.k0s(),fe.j41(3,"p-button",3),fe.bIt("click",(function TosFooterComponent_Template_p_button_click_3_listener(){return ne.recusaPoliticas()})),fe.k0s()()),2&te&&(fe.R7$(),fe.Y8G("binary",!0)("formControl",ne.leuTermos),fe.R7$(),fe.Y8G("disabled",!ne.leuTermos.value))},dependencies:[sn.tm,sn.$n,lo.q4,lo.Sc,an.YN,an.BC,an.X1,an.l_],styles:[".tos-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:10px}"]})}return TosFooterComponent})(),uo=(()=>{class TosModalComponent{constructor(){this.domSanitizer=(0,fe.WQX)(re.up),this.dialogConfig=(0,fe.WQX)(Ut.sb),this.dialogRef=(0,fe.WQX)(Ut.Pw),this.leuTermos=new an.MJ(!1,{nonNullable:!0,validators:an.k0.required})}ngOnInit(){this.url=this.domSanitizer.bypassSecurityTrustResourceUrl(this.dialogConfig.data.url)}static#e=this.ɵfac=function TosModalComponent_Factory(te){return new(te||TosModalComponent)};static#t=this.ɵcmp=fe.VBU({type:TosModalComponent,selectors:[["br-tos-modal"]],standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[["title","Politicas de privacidade",1,"w-full","h-full","border-300","border-1","border-solid",3,"src"]],template:function TosModalComponent_Template(te,ne){1&te&&fe.nrm(0,"iframe",0),2&te&&fe.Y8G("src",ne.url,fe.f$h)},dependencies:[sn.tm,lo.q4],styles:["iframe[_ngcontent-%COMP%]{height:100%;width:100%}"]})}return TosModalComponent})(),mo=(()=>{class TosModalService{constructor(){this.brDialogService=(0,fe.WQX)(fi.i)}open(te,ne){return this.brDialogService.open(uo,{...ne,closable:!1,data:{url:te},templates:{footer:co}})}static#e=this.ɵfac=function TosModalService_Factory(te){return new(te||TosModalService)};static#t=this.ɵprov=fe.jDH({token:TosModalService,factory:TosModalService.ɵfac,providedIn:"root"})}return TosModalService})();var go=ie(4302);function AreaRestritaComponent_p_avatar_7_Template(te,ne){if(1&te&&fe.nrm(0,"p-avatar",13),2&te){const te=fe.XpG();fe.Y8G("image",null==te.usuario||null==te.usuario.docEmpresa?null:te.usuario.docEmpresa.url)}}function AreaRestritaComponent_p_avatar_8_Template(te,ne){1&te&&fe.nrm(0,"p-avatar",14)}function AreaRestritaComponent_ng_container_12_a_1_Template(te,ne){if(1&te&&(fe.j41(0,"a",25),fe.nrm(1,"p-button",26),fe.k0s()),2&te){const te=fe.XpG(2);fe.R7$(),fe.Y8G("badge",te.labelQtdeEmAberto)}}function AreaRestritaComponent_ng_container_12_a_2_Template(te,ne){1&te&&(fe.j41(0,"a",27),fe.nrm(1,"p-button",28),fe.k0s())}function AreaRestritaComponent_ng_container_12_a_3_Template(te,ne){if(1&te&&(fe.j41(0,"a",29),fe.nrm(1,"p-button",30),fe.k0s()),2&te){const te=fe.XpG(2);fe.Y8G("href","https://sinpolsc.infobrcorp.com.br?operacao=declaracao_membro&cod_membro="+(null==te.usuario?null:te.usuario.codCc),fe.B4B)}}function AreaRestritaComponent_ng_container_12_a_4_Template(te,ne){1&te&&(fe.j41(0,"a",31),fe.nrm(1,"p-button",32),fe.k0s())}function AreaRestritaComponent_ng_container_12_a_5_Template(te,ne){1&te&&(fe.j41(0,"a",33),fe.nrm(1,"p-button",34),fe.k0s())}function AreaRestritaComponent_ng_container_12_a_6_Template(te,ne){1&te&&(fe.j41(0,"a",35),fe.nrm(1,"p-button",36),fe.k0s())}function AreaRestritaComponent_ng_container_12_a_7_Template(te,ne){1&te&&(fe.j41(0,"a",37),fe.nrm(1,"p-button",38),fe.k0s())}function AreaRestritaComponent_ng_container_12_p_button_10_Template(te,ne){if(1&te&&fe.nrm(0,"p-button",39),2&te){const te=fe.XpG(2);fe.Mz_("label","Número da sorte: ",te.numeroDaSorte,"")}}function AreaRestritaComponent_ng_container_12_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,AreaRestritaComponent_ng_container_12_a_1_Template,2,1,"a",15)(2,AreaRestritaComponent_ng_container_12_a_2_Template,2,0,"a",16)(3,AreaRestritaComponent_ng_container_12_a_3_Template,2,1,"a",17)(4,AreaRestritaComponent_ng_container_12_a_4_Template,2,0,"a",18)(5,AreaRestritaComponent_ng_container_12_a_5_Template,2,0,"a",19)(6,AreaRestritaComponent_ng_container_12_a_6_Template,2,0,"a",20)(7,AreaRestritaComponent_ng_container_12_a_7_Template,2,0,"a",21),fe.j41(8,"a",22),fe.nrm(9,"p-button",23),fe.k0s(),fe.DNE(10,AreaRestritaComponent_ng_container_12_p_button_10_Template,1,1,"p-button",24),fe.bVm()),2&te){const te=fe.XpG();fe.R7$(),fe.Y8G("ngIf",te.configuracaoMenu.atendimentoJuridico),fe.R7$(),fe.Y8G("ngIf",te.configuracaoMenu.atendimentoPsicologico),fe.R7$(),fe.Y8G("ngIf",te.configuracaoMenu.declaracaoMembro),fe.R7$(),fe.Y8G("ngIf",te.configuracaoMenu.atualizaMembro),fe.R7$(),fe.Y8G("ngIf",te.configuracaoMenu.portalTransparencia),fe.R7$(),fe.Y8G("ngIf",te.configuracaoMenu.desligaMembro),fe.R7$(),fe.Y8G("ngIf",te.configuracaoMenu.atendimentoFinanceiro),fe.R7$(3),fe.Y8G("ngIf",te.configuracaoMenu.numeroSorte)}}function AreaRestritaComponent_div_13_Template(te,ne){if(1&te&&fe.nrm(0,"div",40),2&te){const te=fe.XpG();fe.Y8G("innerHTML",te.htmlFooter,fe.npT)}}const area_restrita_component_c0=()=>({height:"10rem"}),area_restrita_component_c1=te=>({"align-content-start":te});let fo=(()=>{class AreaRestritaComponent{constructor(te,ne,ie,re,le,ce,de,ue,me,ge,fe){this.authService=te,this.membroService=ne,this.demandaService=ie,this.areaRestritaService=re,this.domSanitizer=le,this.router=ce,this.tosModalService=de,this.usuarioService=ue,this.brMessageService=me,this.loadingService=ge,this.configGeralService=fe,this.isLoading=!1,this.labelQtdeEmAberto="",this.labelQtdeEmAbertoPsicologico="",this.configuracaoMenu=this.createConfiguracaoMenu({DemandaComponent:"atendimentoJuridico",MenteTaticaComponent:"atendimentoPsicologico",ReembolsoComponent:"atendimentoFinanceiro",RotinaDeclaracaoSocio:"declaracaoMembro",RecadastramentoComponent:"atualizaMembro",RotinaPortalTransparencia:"portalTransparencia",RotinaNumeroDaSorte:"numeroSorte",SolicitacaoDesfiliacaoComponent:"desligaMembro"}),this.authService.usuario$.subscribe((te=>{te&&(this.usuario=te,this.areaRestritaService.getModeloFooter().subscribe((te=>{te&&(this.htmlFooter=this.domSanitizer.bypassSecurityTrustHtml(te.textoHtml))})),this.demandaService.getQtdeAbertas(this.usuario.codLbrUsuario,1).subscribe((te=>{te&&(this.labelQtdeEmAberto=`${te} demanda(s) em aberto`)})),this.demandaService.getQtdeAbertas(this.usuario.codLbrUsuario,2).subscribe((te=>{te&&(this.labelQtdeEmAbertoPsicologico=`${te} demanda(s) em aberto`)})),this.usuario.codCc&&this.membroService.getNumSorteio(this.usuario.codCc).subscribe((te=>this.numeroDaSorte=te?String(te):"Não definido")))}))}ngOnInit(){this.authService.usuario$&&this.authService.usuario$.pipe((0,jn.s)(1),(0,Vn.p)((te=>te?.codStatusLgpd!==Gn.ACEITO))).subscribe((()=>{this.configGeralService.getUrlPoliticaPrivacidade().pipe((0,Zt.T)((te=>te.urlPoliticaPrivacidade))).subscribe({next:te=>{this.tosModalService.open(te,{header:"Termos de Serviço",dismissableMask:!1,width:"70vw",height:"100%"}).onClose.subscribe({next:te=>{this.loadingService.show();const ne=te.aceitouTos?Gn.ACEITO:Gn.EU_NAO_ACEITO;this.usuarioService.atualizaStatusLgpd(ne).pipe((0,pn.j)((()=>this.loadingService.hide())),(0,tn.W)((te=>(this.brMessageService.error(te.error.message),un.w)))).subscribe((()=>{te.aceitouTos||this.logout()}))}})}})}))}createConfiguracaoMenu(te){const ne={desligaMembro:!1,numeroSorte:!1,portalTransparencia:!1,atualizaMembro:!1,declaracaoMembro:!1,atendimentoFinanceiro:!1,atendimentoPsicologico:!1,atendimentoJuridico:!1};return this.authService.usuario?.nbrRotinaGrupoAcesso.forEach((ie=>{if(te[ie.nbrRotinaMenu?.classeIncorp]){const re=te[ie.nbrRotinaMenu?.classeIncorp];ne[re]=!0}})),ne}logout(){this.authService.LogOutAreaRestrita(),this.router.navigate(["/area-restrita","auth"]),this.numeroDaSorte=void 0}static#e=this.ɵfac=function AreaRestritaComponent_Factory(te){return new(te||AreaRestritaComponent)(fe.rXU(rn.u),fe.rXU(no),fe.rXU(io.m),fe.rXU(ro),fe.rXU(re.up),fe.rXU(Qt.Ix),fe.rXU(mo),fe.rXU(En.c),fe.rXU(bn.h),fe.rXU(Fi.T),fe.rXU(go.F))};static#t=this.ɵcmp=fe.VBU({type:AreaRestritaComponent,selectors:[["app-area-restrita"]],standalone:!0,features:[fe.Jv_([Ut.o3]),fe.aNF],decls:14,vars:11,consts:[[1,"flex","flex-column","align-items-center","h-full"],[1,"header"],["href","https://www.sinpolsc.org.br/","target","_blank"],["src","assets/empresa/images/logo_empresa.png","alt","LOGO",1,"pb-3"],[1,"flex","flex-column","w-full","h-full","align-items-center"],[1,"menu",3,"ngClass"],[1,"usuario"],["styleClass","mr-2","size","xlarge","shape","circle",3,"image",4,"ngIf"],["icon","pi pi-user","styleClass","mr-2","size","xlarge","shape","circle",4,"ngIf"],[1,"nome"],["icon","pi pi-sign-out","label","Desconectar","styleClass","p-button-raised p-button-rounded p-button-danger",3,"onClick"],[4,"ngIf"],["class","footer",3,"innerHTML",4,"ngIf"],["styleClass","mr-2","size","xlarge","shape","circle",3,"image"],["icon","pi pi-user","styleClass","mr-2","size","xlarge","shape","circle"],["routerLink","/area-restrita/demandas","target","_blank",4,"ngIf"],["routerLink","/area-restrita/sinpol/mente-tatica","target","_blank",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],["routerLink","/area-restrita/recadastramento","target","_blank",4,"ngIf"],["routerLink","/area-restrita/sinpol/portal-transparencia","target","_blank",4,"ngIf"],["routerLink","/area-restrita/sinpol/solicitacao/desfiliacao","target","_blank",4,"ngIf"],["routerLink","/area-restrita/reembolso","target","_blank",4,"ngIf"],["href","https://sinpolsc.temmaisvantagens.com.br/login","target","_blank"],["icon","fa-light fa-user-group","label","Clube de vantagens","styleClass","p-button-raised p-button-lg"],["class","numero-sorte","icon","fa-light fa-slot-machine","styleClass","p-button-raised p-button-lg",3,"label",4,"ngIf"],["routerLink","/area-restrita/demandas","target","_blank"],["icon","fa-light fa-scale-balanced","label","Jurídico","styleClass","p-button-raised p-button-lg","badgeClass","mr-6 p-badge-success",1,"juridico",3,"badge"],["routerLink","/area-restrita/sinpol/mente-tatica","target","_blank"],["icon","fa-light fa-brain-circuit","label","Mente tática","styleClass","p-button-raised p-button-lg"],["target","_blank",3,"href"],["icon","fa-light fa-address-card","label","Declaração de associado","styleClass","p-button-raised p-button-lg"],["routerLink","/area-restrita/recadastramento","target","_blank"],["icon","fa-light fa-file-edit","label","Atualizar dados","styleClass","p-button-raised p-button-lg"],["routerLink","/area-restrita/sinpol/portal-transparencia","target","_blank"],["icon","fa-light fa-magnifying-glass","label","Portal da transparência","styleClass","p-button-raised p-button-lg"],["routerLink","/area-restrita/sinpol/solicitacao/desfiliacao","target","_blank"],["icon","fa-light fa-arrow-right-from-bracket","label","Desassociação","styleClass","p-button-raised p-button-lg"],["routerLink","/area-restrita/reembolso","target","_blank"],["icon","fa-light fa-comments-dollar","label","Financeiro","styleClass","p-button-raised p-button-lg"],["icon","fa-light fa-slot-machine","styleClass","p-button-raised p-button-lg",1,"numero-sorte",3,"label"],[1,"footer",3,"innerHTML"]],template:function AreaRestritaComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"section",1)(2,"a",2),fe.nrm(3,"img",3),fe.k0s()(),fe.j41(4,"section",4)(5,"div",5)(6,"div",6),fe.DNE(7,AreaRestritaComponent_p_avatar_7_Template,1,1,"p-avatar",7)(8,AreaRestritaComponent_p_avatar_8_Template,1,0,"p-avatar",8),fe.j41(9,"span",9),fe.EFF(10),fe.k0s(),fe.j41(11,"p-button",10),fe.bIt("onClick",(function AreaRestritaComponent_Template_p_button_onClick_11_listener(){return ne.logout()})),fe.k0s()(),fe.DNE(12,AreaRestritaComponent_ng_container_12_Template,11,8,"ng-container",11),fe.k0s(),fe.DNE(13,AreaRestritaComponent_div_13_Template,1,1,"div",12),fe.k0s()()),2&te&&(fe.R7$(3),fe.Aen(fe.lJ4(8,area_restrita_component_c0)),fe.R7$(2),fe.Y8G("ngClass",fe.eq3(9,area_restrita_component_c1,!ne.htmlFooter)),fe.R7$(2),fe.Y8G("ngIf",null==ne.usuario||null==ne.usuario.docEmpresa?null:ne.usuario.docEmpresa.url),fe.R7$(),fe.Y8G("ngIf",!(null!=ne.usuario&&(null!=ne.usuario.docEmpresa&&ne.usuario.docEmpresa.url))),fe.R7$(2),fe.JRh(null==ne.usuario?null:ne.usuario.nomeUsuario),fe.R7$(2),fe.Y8G("ngIf",ne.configuracaoMenu),fe.R7$(),fe.Y8G("ngIf",ne.htmlFooter))},dependencies:[de.MD,de.YU,de.bT,sn.tm,sn.$n,Qt.iI,Qt.Wk,Fn,Pn],styles:[".header[_ngcontent-%COMP%]{background-color:var(--primary-color);display:flex;justify-content:center;width:100%;padding-top:1rem;max-height:20rem}[_nghost-%COMP%]     .menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1rem;flex-grow:1;padding:1rem;width:100vw;max-width:80rem}[_nghost-%COMP%]     .menu a{height:max-content}[_nghost-%COMP%]     .menu p-button:not([label=Desconectar]) .p-button{width:100%;padding:1.5rem 2rem;position:relative;border-radius:2.5rem}[_nghost-%COMP%]     .menu p-button:not([label=Desconectar]) .p-button .p-button-icon, [_nghost-%COMP%]     .menu p-button:not([label=Desconectar]) .p-button .p-button-label{font-size:1.5rem;white-space:nowrap}[_nghost-%COMP%]     .menu p-button:not([label=Desconectar]) .p-button .p-badge{margin-left:0!important;margin-right:0!important;font-weight:600;position:absolute;top:5px;right:15px}[_nghost-%COMP%]     .menu .usuario{display:flex;gap:.5rem;align-items:center;justify-content:center;flex-wrap:wrap;grid-column:1/-1}[_nghost-%COMP%]     .menu .usuario .nome{font-size:2rem;font-weight:600;text-align:center}.footer[_ngcontent-%COMP%]{display:flex;background-color:var(--primary-color);color:var(--primary-color-text)!important;font-size:.9rem;width:100%;max-height:20rem;padding:10px;justify-content:center;flex-direction:column;align-items:center}"]})}return AreaRestritaComponent})();var _o=ie(2778),bo=ie(1196),Co=ie(1939);let wo=(()=>{class HomeIcon extends bo.h{pathId;ngOnInit(){this.pathId="url(#"+(0,Co._Y)()+")"}static ɵfac=(()=>{let te;return function HomeIcon_Factory(ne){return(te||(te=fe.xGo(HomeIcon)))(ne||HomeIcon)}})();static ɵcmp=fe.VBU({type:HomeIcon,selectors:[["HomeIcon"]],standalone:!0,features:[fe.Vt3,fe.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4175 6.79971C13.2874 6.80029 13.1608 6.75807 13.057 6.67955L12.4162 6.19913V12.6073C12.4141 12.7659 12.3502 12.9176 12.2379 13.0298C12.1257 13.142 11.9741 13.206 11.8154 13.208H8.61206C8.61179 13.208 8.61151 13.208 8.61123 13.2081C8.61095 13.208 8.61068 13.208 8.6104 13.208H5.41076C5.40952 13.208 5.40829 13.2081 5.40705 13.2081C5.40581 13.2081 5.40458 13.208 5.40334 13.208H2.20287C2.04418 13.206 1.89257 13.142 1.78035 13.0298C1.66813 12.9176 1.60416 12.7659 1.60209 12.6073V6.19914L0.961256 6.67955C0.833786 6.77515 0.673559 6.8162 0.515823 6.79367C0.358086 6.77114 0.215762 6.68686 0.120159 6.55939C0.0245566 6.43192 -0.0164931 6.2717 0.00604063 6.11396C0.0285744 5.95622 0.112846 5.8139 0.240316 5.7183L1.83796 4.52007L1.84689 4.51337L6.64868 0.912027C6.75267 0.834032 6.87915 0.79187 7.00915 0.79187C7.13914 0.79187 7.26562 0.834032 7.36962 0.912027L12.1719 4.51372L12.1799 4.51971L13.778 5.7183C13.8943 5.81278 13.9711 5.94732 13.9934 6.09553C14.0156 6.24373 13.9816 6.39489 13.8981 6.51934C13.8471 6.60184 13.7766 6.67054 13.6928 6.71942C13.609 6.76831 13.5144 6.79587 13.4175 6.79971ZM6.00783 12.0065H8.01045V7.60074H6.00783V12.0065ZM9.21201 12.0065V6.99995C9.20994 6.84126 9.14598 6.68965 9.03375 6.57743C8.92153 6.46521 8.76992 6.40124 8.61123 6.39917H5.40705C5.24836 6.40124 5.09675 6.46521 4.98453 6.57743C4.8723 6.68965 4.80834 6.84126 4.80627 6.99995V12.0065H2.80366V5.29836L7.00915 2.14564L11.2146 5.29836V12.0065H9.21201Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function HomeIcon_Template(te,ne){1&te&&(fe.qSk(),fe.j41(0,"svg",0)(1,"g"),fe.nrm(2,"path",1),fe.k0s(),fe.j41(3,"defs")(4,"clipPath",2),fe.nrm(5,"rect",3),fe.k0s()()()),2&te&&(fe.HbH(ne.getClassNames()),fe.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),fe.R7$(),fe.BMQ("clip-path",ne.pathId),fe.R7$(3),fe.Y8G("id",ne.pathId))},encapsulation:2})}return HomeIcon})();var Ao=ie(4613);function Breadcrumb_li_2_a_1_span_1_Template(te,ne){if(1&te&&fe.nrm(0,"span",12),2&te){const te=fe.XpG(3);fe.Y8G("ngClass",te.home.icon)("ngStyle",te.home.iprivateyle)}}function Breadcrumb_li_2_a_1_HomeIcon_2_Template(te,ne){1&te&&fe.nrm(0,"HomeIcon",13),2&te&&fe.Y8G("styleClass","p-menuitem-icon")}function Breadcrumb_li_2_a_1_ng_container_3_span_1_Template(te,ne){if(1&te&&(fe.j41(0,"span",16),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(4);fe.R7$(),fe.JRh(te.home.label)}}function Breadcrumb_li_2_a_1_ng_container_3_ng_template_2_Template(te,ne){if(1&te&&fe.nrm(0,"span",17),2&te){const te=fe.XpG(4);fe.Y8G("innerHTML",te.home.label,fe.npT)}}function Breadcrumb_li_2_a_1_ng_container_3_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Breadcrumb_li_2_a_1_ng_container_3_span_1_Template,2,1,"span",14)(2,Breadcrumb_li_2_a_1_ng_container_3_ng_template_2_Template,1,1,"ng-template",null,15,fe.C5r),fe.bVm()),2&te){const te=fe.sdS(3),ne=fe.XpG(3);fe.R7$(),fe.Y8G("ngIf",!1!==ne.home.escape)("ngIfElse",te)}}function Breadcrumb_li_2_a_1_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"a",8),fe.bIt("click",(function Breadcrumb_li_2_a_1_Template_a_click_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onClick(ne,ie.home))})),fe.DNE(1,Breadcrumb_li_2_a_1_span_1_Template,1,2,"span",9)(2,Breadcrumb_li_2_a_1_HomeIcon_2_Template,1,1,"HomeIcon",10)(3,Breadcrumb_li_2_a_1_ng_container_3_Template,4,2,"ng-container",11),fe.k0s()}if(2&te){const te=fe.XpG(2);fe.Y8G("href",te.home.url?te.home.url:null,fe.B4B)("target",te.home.target),fe.BMQ("aria-label",te.homeAriaLabel)("title",te.home.title)("tabindex",te.home.disabled?"-1":te.home.tabindex||"0")("ariaCurrentWhenActive",te.isCurrentUrl(te.home)),fe.R7$(),fe.Y8G("ngIf",te.home.icon),fe.R7$(),fe.Y8G("ngIf",!te.home.icon),fe.R7$(),fe.Y8G("ngIf",te.home.label)}}function Breadcrumb_li_2_a_2_span_1_Template(te,ne){if(1&te&&fe.nrm(0,"span",12),2&te){const te=fe.XpG(3);fe.Y8G("ngClass",te.home.icon)("ngStyle",te.home.iconStyle)}}function Breadcrumb_li_2_a_2_HomeIcon_2_Template(te,ne){1&te&&fe.nrm(0,"HomeIcon",13),2&te&&fe.Y8G("styleClass","p-menuitem-icon")}function Breadcrumb_li_2_a_2_ng_container_3_span_1_Template(te,ne){if(1&te&&(fe.j41(0,"span",16),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(4);fe.R7$(),fe.JRh(te.home.label)}}function Breadcrumb_li_2_a_2_ng_container_3_ng_template_2_Template(te,ne){if(1&te&&fe.nrm(0,"span",17),2&te){const te=fe.XpG(4);fe.Y8G("innerHTML",te.home.label,fe.npT)}}function Breadcrumb_li_2_a_2_ng_container_3_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Breadcrumb_li_2_a_2_ng_container_3_span_1_Template,2,1,"span",14)(2,Breadcrumb_li_2_a_2_ng_container_3_ng_template_2_Template,1,1,"ng-template",null,19,fe.C5r),fe.bVm()),2&te){const te=fe.sdS(3),ne=fe.XpG(3);fe.R7$(),fe.Y8G("ngIf",!1!==ne.home.escape)("ngIfElse",te)}}const primeng_breadcrumb_c0=()=>({exact:!1});function Breadcrumb_li_2_a_2_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"a",18),fe.bIt("click",(function Breadcrumb_li_2_a_2_Template_a_click_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onClick(ne,ie.home))})),fe.DNE(1,Breadcrumb_li_2_a_2_span_1_Template,1,2,"span",9)(2,Breadcrumb_li_2_a_2_HomeIcon_2_Template,1,1,"HomeIcon",10)(3,Breadcrumb_li_2_a_2_ng_container_3_Template,4,2,"ng-container",11),fe.k0s()}if(2&te){const te=fe.XpG(2);fe.Y8G("routerLink",te.home.routerLink)("queryParams",te.home.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",te.home.routerLinkActiveOptions||fe.lJ4(18,primeng_breadcrumb_c0))("target",te.home.target)("fragment",te.home.fragment)("queryParamsHandling",te.home.queryParamsHandling)("preserveFragment",te.home.preserveFragment)("skipLocationChange",te.home.skipLocationChange)("replaceUrl",te.home.replaceUrl)("state",te.home.state),fe.BMQ("aria-label",te.homeAriaLabel)("title",te.home.title)("tabindex",te.home.disabled?"-1":te.home.tabindex||"0")("ariaCurrentWhenActive",te.isCurrentUrl(te.home)),fe.R7$(),fe.Y8G("ngIf",te.home.icon),fe.R7$(),fe.Y8G("ngIf",!te.home.icon),fe.R7$(),fe.Y8G("ngIf",te.home.label)}}const primeng_breadcrumb_c1=te=>({"p-breadcrumb-home":!0,"p-disabled":te});function Breadcrumb_li_2_Template(te,ne){if(1&te&&(fe.j41(0,"li",5),fe.DNE(1,Breadcrumb_li_2_a_1_Template,4,9,"a",6)(2,Breadcrumb_li_2_a_2_Template,4,19,"a",7),fe.k0s()),2&te){const te=fe.XpG();fe.HbH(te.home.styleClass),fe.Y8G("ngClass",fe.eq3(10,primeng_breadcrumb_c1,te.home.disabled))("ngStyle",te.home.style)("tooltipOptions",te.home.tooltipOptions),fe.BMQ("id",te.home.id)("data-pc-section","home")("aria-disabled",te.home.disabled),fe.R7$(),fe.Y8G("ngIf",!te.home.routerLink),fe.R7$(),fe.Y8G("ngIf",te.home.routerLink)}}function Breadcrumb_li_3_ChevronRightIcon_1_Template(te,ne){1&te&&fe.nrm(0,"ChevronRightIcon")}function Breadcrumb_li_3_2_ng_template_0_Template(te,ne){}function Breadcrumb_li_3_2_Template(te,ne){1&te&&fe.DNE(0,Breadcrumb_li_3_2_ng_template_0_Template,0,0,"ng-template")}function Breadcrumb_li_3_Template(te,ne){if(1&te&&(fe.j41(0,"li",20),fe.DNE(1,Breadcrumb_li_3_ChevronRightIcon_1_Template,1,0,"ChevronRightIcon",11)(2,Breadcrumb_li_3_2_Template,1,0,null,21),fe.k0s()),2&te){const te=fe.XpG();fe.BMQ("data-pc-section","separator"),fe.R7$(),fe.Y8G("ngIf",!te.separatorTemplate),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.separatorTemplate)}}function Breadcrumb_ng_template_4_a_1_ng_container_1_span_1_Template(te,ne){if(1&te&&fe.nrm(0,"span",12),2&te){const te=fe.XpG(3).$implicit;fe.Y8G("ngClass",te.icon)("ngStyle",te.iconStyle)}}function Breadcrumb_ng_template_4_a_1_ng_container_1_ng_container_2_span_1_Template(te,ne){if(1&te&&(fe.j41(0,"span",16),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(4).$implicit;fe.R7$(),fe.JRh(te.label)}}function Breadcrumb_ng_template_4_a_1_ng_container_1_ng_container_2_ng_template_2_Template(te,ne){if(1&te&&fe.nrm(0,"span",17),2&te){const te=fe.XpG(4).$implicit;fe.Y8G("innerHTML",te.label,fe.npT)}}function Breadcrumb_ng_template_4_a_1_ng_container_1_ng_container_2_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Breadcrumb_ng_template_4_a_1_ng_container_1_ng_container_2_span_1_Template,2,1,"span",14)(2,Breadcrumb_ng_template_4_a_1_ng_container_1_ng_container_2_ng_template_2_Template,1,1,"ng-template",null,25,fe.C5r),fe.bVm()),2&te){const te=fe.sdS(3),ne=fe.XpG(3).$implicit;fe.R7$(),fe.Y8G("ngIf",!1!==ne.escape)("ngIfElse",te)}}function Breadcrumb_ng_template_4_a_1_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Breadcrumb_ng_template_4_a_1_ng_container_1_span_1_Template,1,2,"span",9)(2,Breadcrumb_ng_template_4_a_1_ng_container_1_ng_container_2_Template,4,2,"ng-container",11),fe.bVm()),2&te){const te=fe.XpG(2).$implicit;fe.R7$(),fe.Y8G("ngIf",te.icon),fe.R7$(),fe.Y8G("ngIf",te.label)}}function Breadcrumb_ng_template_4_a_1_ng_container_2_1_ng_template_0_Template(te,ne){}function Breadcrumb_ng_template_4_a_1_ng_container_2_1_Template(te,ne){1&te&&fe.DNE(0,Breadcrumb_ng_template_4_a_1_ng_container_2_1_ng_template_0_Template,0,0,"ng-template")}const _c2=te=>({$implicit:te});function Breadcrumb_ng_template_4_a_1_ng_container_2_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Breadcrumb_ng_template_4_a_1_ng_container_2_1_Template,1,0,null,26),fe.bVm()),2&te){const te=fe.XpG(2).$implicit,ne=fe.XpG();fe.R7$(),fe.Y8G("ngTemplateOutlet",ne.itemTemplate)("ngTemplateOutletContext",fe.eq3(2,_c2,te))}}function Breadcrumb_ng_template_4_a_1_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"a",24),fe.bIt("click",(function Breadcrumb_ng_template_4_a_1_Template_a_click_0_listener(ne){fe.eBV(te);const ie=fe.XpG().$implicit,re=fe.XpG();return fe.Njj(re.onClick(ne,ie))})),fe.DNE(1,Breadcrumb_ng_template_4_a_1_ng_container_1_Template,3,2,"ng-container",11)(2,Breadcrumb_ng_template_4_a_1_ng_container_2_Template,2,4,"ng-container",11),fe.k0s()}if(2&te){const te=fe.XpG().$implicit,ne=fe.XpG();fe.Y8G("target",te.target),fe.BMQ("href",te.url?te.url:null,fe.B4B)("title",te.title)("tabindex",te.disabled?"-1":te.tabindex||"0")("ariaCurrentWhenActive",ne.isCurrentUrl(te)),fe.R7$(),fe.Y8G("ngIf",!ne.itemTemplate),fe.R7$(),fe.Y8G("ngIf",ne.itemTemplate)}}function Breadcrumb_ng_template_4_a_2_ng_container_1_span_1_Template(te,ne){if(1&te&&fe.nrm(0,"span",12),2&te){const te=fe.XpG(3).$implicit;fe.Y8G("ngClass",te.icon)("ngStyle",te.iconStyle)}}function Breadcrumb_ng_template_4_a_2_ng_container_1_ng_container_2_span_1_Template(te,ne){if(1&te&&(fe.j41(0,"span",16),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(4).$implicit;fe.R7$(),fe.JRh(te.label)}}function Breadcrumb_ng_template_4_a_2_ng_container_1_ng_container_2_ng_template_2_Template(te,ne){if(1&te&&fe.nrm(0,"span",17),2&te){const te=fe.XpG(4).$implicit;fe.Y8G("innerHTML",te.label,fe.npT)}}function Breadcrumb_ng_template_4_a_2_ng_container_1_ng_container_2_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Breadcrumb_ng_template_4_a_2_ng_container_1_ng_container_2_span_1_Template,2,1,"span",14)(2,Breadcrumb_ng_template_4_a_2_ng_container_1_ng_container_2_ng_template_2_Template,1,1,"ng-template",null,27,fe.C5r),fe.bVm()),2&te){const te=fe.sdS(3),ne=fe.XpG(3).$implicit;fe.R7$(),fe.Y8G("ngIf",!1!==ne.escape)("ngIfElse",te)}}function Breadcrumb_ng_template_4_a_2_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Breadcrumb_ng_template_4_a_2_ng_container_1_span_1_Template,1,2,"span",9)(2,Breadcrumb_ng_template_4_a_2_ng_container_1_ng_container_2_Template,4,2,"ng-container",11),fe.bVm()),2&te){const te=fe.XpG(2).$implicit;fe.R7$(),fe.Y8G("ngIf",te.icon),fe.R7$(),fe.Y8G("ngIf",te.label)}}function Breadcrumb_ng_template_4_a_2_ng_container_2_1_ng_template_0_Template(te,ne){}function Breadcrumb_ng_template_4_a_2_ng_container_2_1_Template(te,ne){1&te&&fe.DNE(0,Breadcrumb_ng_template_4_a_2_ng_container_2_1_ng_template_0_Template,0,0,"ng-template")}function Breadcrumb_ng_template_4_a_2_ng_container_2_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Breadcrumb_ng_template_4_a_2_ng_container_2_1_Template,1,0,null,26),fe.bVm()),2&te){const te=fe.XpG(2).$implicit,ne=fe.XpG();fe.R7$(),fe.Y8G("ngTemplateOutlet",ne.itemTemplate)("ngTemplateOutletContext",fe.eq3(2,_c2,te))}}function Breadcrumb_ng_template_4_a_2_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"a",18),fe.bIt("click",(function Breadcrumb_ng_template_4_a_2_Template_a_click_0_listener(ne){fe.eBV(te);const ie=fe.XpG().$implicit,re=fe.XpG();return fe.Njj(re.onClick(ne,ie))})),fe.DNE(1,Breadcrumb_ng_template_4_a_2_ng_container_1_Template,3,2,"ng-container",11)(2,Breadcrumb_ng_template_4_a_2_ng_container_2_Template,2,4,"ng-container",11),fe.k0s()}if(2&te){const te=fe.XpG().$implicit,ne=fe.XpG();fe.Y8G("routerLink",te.routerLink)("queryParams",te.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",te.routerLinkActiveOptions||fe.lJ4(16,primeng_breadcrumb_c0))("target",te.target)("fragment",te.fragment)("queryParamsHandling",te.queryParamsHandling)("preserveFragment",te.preserveFragment)("skipLocationChange",te.skipLocationChange)("replaceUrl",te.replaceUrl)("state",te.state),fe.BMQ("title",te.title)("tabindex",te.disabled?"-1":te.tabindex||"0")("ariaCurrentWhenActive",ne.isCurrentUrl(te)),fe.R7$(),fe.Y8G("ngIf",!ne.itemTemplate),fe.R7$(),fe.Y8G("ngIf",ne.itemTemplate)}}function Breadcrumb_ng_template_4_li_3_ChevronRightIcon_1_Template(te,ne){1&te&&fe.nrm(0,"ChevronRightIcon")}function Breadcrumb_ng_template_4_li_3_2_ng_template_0_Template(te,ne){}function Breadcrumb_ng_template_4_li_3_2_Template(te,ne){1&te&&fe.DNE(0,Breadcrumb_ng_template_4_li_3_2_ng_template_0_Template,0,0,"ng-template")}function Breadcrumb_ng_template_4_li_3_Template(te,ne){if(1&te&&(fe.j41(0,"li",20),fe.DNE(1,Breadcrumb_ng_template_4_li_3_ChevronRightIcon_1_Template,1,0,"ChevronRightIcon",11)(2,Breadcrumb_ng_template_4_li_3_2_Template,1,0,null,21),fe.k0s()),2&te){const te=fe.XpG(2);fe.BMQ("data-pc-section","separator"),fe.R7$(),fe.Y8G("ngIf",!te.separatorTemplate),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.separatorTemplate)}}const _c3=te=>({"p-disabled":te});function Breadcrumb_ng_template_4_Template(te,ne){if(1&te&&(fe.j41(0,"li",22),fe.DNE(1,Breadcrumb_ng_template_4_a_1_Template,3,7,"a",23)(2,Breadcrumb_ng_template_4_a_2_Template,3,17,"a",7),fe.k0s(),fe.DNE(3,Breadcrumb_ng_template_4_li_3_Template,3,3,"li",3)),2&te){const te=ne.$implicit,ie=ne.last;fe.HbH(te.styleClass),fe.Y8G("ngStyle",te.style)("ngClass",fe.eq3(11,_c3,te.disabled))("tooltipOptions",te.tooltipOptions),fe.BMQ("id",te.id)("aria-disabled",te.disabled)("data-pc-section","menuitem"),fe.R7$(),fe.Y8G("ngIf",!te.routerLink),fe.R7$(),fe.Y8G("ngIf",te.routerLink),fe.R7$(),fe.Y8G("ngIf",!ie)}}let ko=(()=>{class Breadcrumb{router;model;style;styleClass;home;homeAriaLabel;onItemClick=new fe.bkB;templates;separatorTemplate;itemTemplate;constructor(te){this.router=te}onClick(te,ne){ne.disabled?te.preventDefault():(ne.url||ne.routerLink||te.preventDefault(),ne.command&&ne.command({originalEvent:te,item:ne}),this.onItemClick.emit({originalEvent:te,item:ne}))}onHomeClick(te){this.home&&this.onClick(te,this.home)}ngAfterContentInit(){this.templates?.forEach((te=>{if("separator"===te.getType())this.separatorTemplate=te.template;else this.itemTemplate=te.template}))}isCurrentUrl(te){const{routerLink:ne}=te;return ne===(this.router?this.router.url:"")?"page":void 0}static ɵfac=function Breadcrumb_Factory(te){return new(te||Breadcrumb)(fe.rXU(Qt.Ix))};static ɵcmp=fe.VBU({type:Breadcrumb,selectors:[["p-breadcrumb"]],contentQueries:function Breadcrumb_ContentQueries(te,ne,ie){if(1&te&&fe.wni(ie,Ht.Ei,4),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{model:"model",style:"style",styleClass:"styleClass",home:"home",homeAriaLabel:"homeAriaLabel"},outputs:{onItemClick:"onItemClick"},decls:5,vars:10,consts:[[3,"ngStyle","ngClass"],[1,"p-breadcrumb-list"],["pTooltip","",3,"class","ngClass","ngStyle","tooltipOptions",4,"ngIf"],["class","p-menuitem-separator",4,"ngIf"],["ngFor","",3,"ngForOf"],["pTooltip","",3,"ngClass","ngStyle","tooltipOptions"],["class","p-menuitem-link",3,"href","target","click",4,"ngIf"],["class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click",4,"ngIf"],[1,"p-menuitem-link",3,"href","target","click"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],[3,"styleClass",4,"ngIf"],[4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[3,"styleClass"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlHomeLabel",""],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click"],["htmlHomeRouteLabel",""],[1,"p-menuitem-separator"],[4,"ngTemplateOutlet"],["pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["class","p-menuitem-link",3,"target","click",4,"ngIf"],[1,"p-menuitem-link",3,"target","click"],["htmlLabel",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["htmlRouteLabel",""]],template:function Breadcrumb_Template(te,ne){1&te&&(fe.j41(0,"nav",0)(1,"ol",1),fe.DNE(2,Breadcrumb_li_2_Template,3,12,"li",2)(3,Breadcrumb_li_3_Template,3,3,"li",3)(4,Breadcrumb_ng_template_4_Template,4,13,"ng-template",4),fe.k0s()()),2&te&&(fe.HbH(ne.styleClass),fe.Y8G("ngStyle",ne.style)("ngClass","p-breadcrumb p-component"),fe.BMQ("data-pc-name","breadcrumb")("data-pc-section","root"),fe.R7$(),fe.BMQ("data-pc-section","menu"),fe.R7$(),fe.Y8G("ngIf",ne.home),fe.R7$(),fe.Y8G("ngIf",ne.model&&ne.home),fe.R7$(),fe.Y8G("ngForOf",ne.model))},dependencies:()=>[de.YU,de.Sq,de.bT,de.T3,de.B3,Qt.Wk,Qt.wQ,Ao.m,_o.v,wo],styles:["@layer primeng{.p-breadcrumb{overflow-x:auto}.p-breadcrumb .p-breadcrumb-list{margin:0;padding:0;list-style-type:none;display:flex;align-items:center;flex-wrap:nowrap}.p-breadcrumb .p-menuitem-text{line-height:1}.p-breadcrumb .p-menuitem-link{text-decoration:none;display:flex;align-items:center}.p-breadcrumb .p-menuitem-separator{display:flex;align-items:center}.p-breadcrumb::-webkit-scrollbar{display:none}}\n"],encapsulation:2,changeDetection:0})}return Breadcrumb})(),Io=(()=>{class BreadcrumbModule{static ɵfac=function BreadcrumbModule_Factory(te){return new(te||BreadcrumbModule)};static ɵmod=fe.$C({type:BreadcrumbModule});static ɵinj=fe.G2t({imports:[de.MD,Qt.iI,Ao.S,_o.v,wo,Ht.Gg,Qt.iI,Ao.S,Ht.Gg]})}return BreadcrumbModule})();var Po=ie(9568),Fo=ie(2764),zo=ie(8482),Zo=ie(4320);let ur=(()=>{class CriarDemandaComponent{constructor(){this.isDialog=!1,this.keyConfirmDialog=(0,Zo.A)(),this.itensMenuBreadCrumb=[{label:"Área restrita",routerLink:"/area-restrita",icon:"fa-light fa-house text-primary mr-2"},{label:"Demandas",routerLink:"/area-restrita/demandas",icon:"fa-light fa-scale-balanced text-primary mr-2"},{label:"Criar Demanda",icon:"fa-light fa-plus font-bold text-primary mr-2",styleClass:"font-bold"}],this.authService=(0,fe.WQX)(rn.u),this.nbrDemandaJuridicoService=(0,fe.WQX)(zo.v),this.confirmationService=(0,fe.WQX)(Ht.td),this.router=(0,fe.WQX)(Qt.Ix)}ngAfterViewInit(){this.nbrDemandaJuridicoService.state.isDetailsLoading=!0,this.nbrDemandaDetails&&(this.nbrDemandaDetails.form?.patchValue({codLbrUsuario:this.authService.usuario?.codLbrUsuario}),this.nbrDemandaDetails.form?.addControl("modoAtendimento",new an.MJ("SITE"))),this.nbrDemandaJuridicoService.state.isDetailsLoading=!1}salvarDemanda(){this.nbrDemandaDetails&&this.nbrDemandaDetails.onSalvar()}cancelar(){this.nbrDemandaDetails?.form?.dirty?this.confirmationService.confirm({message:"As alterações serão perdidas.",header:"Aviso",rejectLabel:"Cancelar",acceptLabel:"Fechar",key:this.keyConfirmDialog,acceptButtonStyleClass:"p-button-danger",rejectButtonStyleClass:"p-button-danger p-button-outlined",accept:()=>this.voltarParaListaDemandas()}):this.voltarParaListaDemandas()}voltarParaListaDemandas(){this.router.navigateByUrl("/area-restrita/demandas")}static#e=this.ɵfac=function CriarDemandaComponent_Factory(te){return new(te||CriarDemandaComponent)};static#t=this.ɵcmp=fe.VBU({type:CriarDemandaComponent,selectors:[["app-criar-demanda"]],viewQuery:function CriarDemandaComponent_Query(te,ne){if(1&te&&fe.GBs(Fo.M,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.nbrDemandaDetails=te.first)}},inputs:{isDialog:"isDialog"},standalone:!0,features:[fe.aNF],decls:2,vars:2,consts:[[1,"container-demanda"],[3,"brListService","apenasFormulario"]],template:function CriarDemandaComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0),fe.nrm(1,"br-list-details",1),fe.k0s()),2&te&&(fe.R7$(),fe.Y8G("brListService",ne.nbrDemandaJuridicoService)("apenasFormulario",!0))},dependencies:[de.MD,Fo.M,sn.tm,dn.D,Io,an.X1,Po.F],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{padding:20px 10px 0}.container-aviso[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .p-breadcrumb{border:0px;padding:0;padding-left:.5rem}[_ngcontent-%COMP%]:is()   .p-breadcrumb-list[_ngcontent-%COMP%]{gap:.5rem}[_ngcontent-%COMP%]:is()   .p-menuitem-text[_ngcontent-%COMP%]{color:var(--primary-color)}[_nghost-%COMP%]     .aviso .p-card-body{background-color:#414141;border-radius:6px}[_nghost-%COMP%]     .aviso .p-card-title, p[_ngcontent-%COMP%]{color:#fff;font-size:1.8rem}p[_ngcontent-%COMP%]{text-align:justify}[_nghost-%COMP%]     .p-fileupload .p-fileupload-content{display:flex;justify-content:center}[_nghost-%COMP%]     p-fileupload .p-fileupload{width:100%}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5}.container-demanda[_ngcontent-%COMP%]{padding:20px 10px 0;display:flex;flex-direction:column}@media (min-width: 769px){.container-demanda[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.container-grid[_ngcontent-%COMP%]{display:flex;gap:10px}.container-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}@media (max-width: 769px){.container-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:baseline;gap:2rem}}.container-form[_ngcontent-%COMP%]{padding-top:2rem;display:flex;flex-wrap:wrap;row-gap:2rem;column-gap:1rem;width:100%;flex-direction:column}.container-form[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%}.container-form[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{display:flex;width:100%;gap:2rem}.container-botao[_ngcontent-%COMP%]{padding-top:2rem;padding-bottom:30px;display:flex;justify-content:center;align-items:center;gap:10px}.container-breadcrumb[_ngcontent-%COMP%]{margin-bottom:1rem}.footer[_ngcontent-%COMP%]{margin:1rem;display:flex;justify-content:center;gap:1rem}"]})}return CriarDemandaComponent})();var hr=ie(208),gr=ie(6962);let fr=(()=>{class NbrDespesaGrupoService extends Un.O7{constructor(){super("nbr-despesa-grupo"),this.brListName="Grupo de Despesa",this.brListNamePlural="Grupos de Despesa",this.columns$=new zn.t([{formControlName:"codNbrDespesaGrupo",fieldPath:"codNbrDespesaGrupo",label:"ID"},{fieldPath:"nbrDespesa.nomeNbrDespesa",label:"Tipo de despesa",formControlName:"codNbrDespesa"},{fieldPath:"nbrTipoReembolso.nomeNbrTipoReembolso",label:"Tipo de reembolso",formControlName:"codNbrTipoReembolso"},{formControlName:"valorUnitario",fieldPath:"valorUnitario",label:"Valor unitário",typeColumn:Un.Ii.Currency}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrDespesaGrupo",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Tipo de despesa",formControlName:"codNbrDespesa",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrDespesa",optionValue:"codNbrDespesa",foreignEndpoint:"nbr-despesa"},{label:"Tipo de reembolso",formControlName:"codNbrTipoReembolso",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrTipoReembolso",optionValue:"codNbrTipoReembolso",foreignEndpoint:"nbr-tipo-reembolso"},{label:"Valor unitário",formControlName:"valorUnitario",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Number}]}]}static#e=this.ɵfac=function NbrDespesaGrupoService_Factory(te){return new(te||NbrDespesaGrupoService)};static#t=this.ɵprov=fe.jDH({token:NbrDespesaGrupoService,factory:NbrDespesaGrupoService.ɵfac,providedIn:"root"})}return NbrDespesaGrupoService})();var _r=ie(5511),vr=ie(4838);let yr=(()=>{class HeaderAreaRestritaComponent{static#e=this.ɵfac=function HeaderAreaRestritaComponent_Factory(te){return new(te||HeaderAreaRestritaComponent)};static#t=this.ɵcmp=fe.VBU({type:HeaderAreaRestritaComponent,selectors:[["header"]],inputs:{src:"src"},standalone:!0,features:[fe.aNF],decls:3,vars:1,consts:[[1,"header"],[1,"logo-principal"],["alt","LOGO",3,"src"]],template:function HeaderAreaRestritaComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"div",1),fe.nrm(2,"img",2),fe.k0s()()),2&te&&(fe.R7$(2),fe.Y8G("src",ne.src,fe.B4B))},styles:[".header[_ngcontent-%COMP%]{background-color:var(--primary-color);display:grid;grid-template-columns:1fr 1fr 1fr;justify-content:center;align-content:center;align-items:center;height:10rem;width:100%}.logo-principal[_ngcontent-%COMP%]{grid-column:2;justify-self:center;align-self:center}.logo-principal[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:7rem}"]})}return HeaderAreaRestritaComponent})(),wr=(()=>{class HeaderEmpresaComponent{static#e=this.ɵfac=function HeaderEmpresaComponent_Factory(te){return new(te||HeaderEmpresaComponent)};static#t=this.ɵcmp=fe.VBU({type:HeaderEmpresaComponent,selectors:[["header-empresa"]],standalone:!0,features:[fe.aNF],decls:1,vars:0,consts:[["src","assets/empresa/images/logo_empresa.png"]],template:function HeaderEmpresaComponent_Template(te,ne){1&te&&fe.nrm(0,"header",0)},dependencies:[yr]})}return HeaderEmpresaComponent})();const criar_reembolso_component_c0=()=>({width:"100%"});let Ar=(()=>{class CriarReembolsoComponent{constructor(){this.authService=(0,fe.WQX)(rn.u),this.nbrTipoAtendimentoService=(0,fe.WQX)(vr.Q),this.confirmationService=(0,fe.WQX)(Ht.td),this.nbrDespesaGrupoService=(0,fe.WQX)(fr),this.router=(0,fe.WQX)(Qt.Ix),this.nbrReembolsoService=(0,fe.WQX)(_r.Q),this.itensMenuBreadCrumb=[{label:"Área restrita",routerLink:"/area-restrita",icon:"fa-light fa-house text-primary mr-2"},{label:"Reembolso",routerLink:"/area-restrita/reembolso",icon:"fa-light fa-comments-dollar text-primary mr-2"},{label:"Criar solicitação de reembolso",icon:"fa-light fa-plus font-bold text-primary mr-2",styleClass:"font-bold"}]}ngAfterViewInit(){const te=this.nbrReembolsoService.everyBrFormControl.find((te=>"Despesa"===te.label)).brListIntegradoService;this.nbrReembolsoService.formDetails?.get("codNbrTipoReembolso").valueChanges.subscribe((ne=>{te.everyBrFormControl.find((te=>"codNbrDespesa"===te.formControlName)).foreignMinQuery=new URLSearchParams({codNbrTipoReembolso:String(ne)})}));const ne=te.everyBrFormControl.find((te=>"quantidade"===te.formControlName)),ie=te.everyBrFormControl.find((te=>"valorUnitario"===te.formControlName));ne&&ie&&(ne.control.valueChanges.subscribe((ne=>{const re=ie.control.value;te.formDetails?.get("valorTotal")?.setValue(Number(ne)*Number(re))})),ie.control.valueChanges.subscribe((ie=>{const re=ne.control.value;te.formDetails?.get("valorTotal")?.setValue(Number(re)*Number(ie))})));te.everyBrFormControl.find((te=>"codNbrDespesa"===te.formControlName)).control.valueChanges.subscribe((ne=>{const ie=this.nbrReembolsoService.formDetails?.get("codNbrTipoReembolso").value;this.nbrDespesaGrupoService.filterRecords({codNbrDespesa:ne?[ne]:null,codNbrTipoReembolso:ie?[ie]:null}).subscribe((ne=>{const ie=ne.data.length?ne.data[0]:void 0;ie&&te.formDetails?.get("valorUnitario")?.setValue(ie.valorUnitario??null)}))})),this.nbrReembolsoService.onFechar=()=>{this.nbrReembolsoService.formDetails?.dirty?this.confirmationService.confirm({message:"As alterações serão perdidas.",header:"Confirmação",icon:Ht.EE.EXCLAMATION_TRIANGLE,dismissableMask:!0,rejectLabel:"Cancelar",acceptLabel:"Fechar",key:`${this.nbrReembolsoService.brListName}-sidebar-confirmdialog`,acceptButtonStyleClass:"p-button-danger",rejectButtonStyleClass:"p-button-danger p-button-outlined",accept:()=>this.voltarParaListaReembolso()}):this.voltarParaListaReembolso()},this.nbrReembolsoService.aposSalvar=()=>{this.voltarParaListaReembolso()},this.nbrReembolsoService.defaultDetailsValue={...this.nbrReembolsoService.defaultDetailsValue,codLbrUsuario:this.authService.usuario?.codLbrUsuario},this.nbrReembolsoService.controlsDisabledOnDetails=[...this.nbrReembolsoService.controlsDisabledOnDetails,"codLbrUsuario"],this.nbrTipoAtendimentoService.getRecord(3).subscribe((te=>this.nbrReembolsoService.defaultDetailsValue={...this.nbrReembolsoService.defaultDetailsValue,descrJustificativa:te.descrPadrao})),this.nbrReembolsoService.configPermissoes(),this.nbrReembolsoService.openDetails()}voltarParaListaReembolso(){this.router.navigateByUrl("/area-restrita/reembolso")}static#e=this.ɵfac=function CriarReembolsoComponent_Factory(te){return new(te||CriarReembolsoComponent)};static#t=this.ɵcmp=fe.VBU({type:CriarReembolsoComponent,selectors:[["app-criar-reembolso"]],standalone:!0,features:[fe.Jv_([_r.Q]),fe.aNF],decls:11,vars:6,consts:[[1,"background-area-restrita"],[1,"flex","flex-column","justify-content-center","align-items-center","gap-2"],[1,"container-top"],[1,"container-breadcrumb"],[3,"model"],["header","Formulário de solicitação de reembolso",1,"aviso"],[1,"text-lg"],[1,"container-details"],["customHeader","Solicitação de Reembolso",3,"brListService","standalone"]],template:function CriarReembolsoComponent_Template(te,ne){1&te&&(fe.nrm(0,"header-empresa"),fe.j41(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3),fe.nrm(5,"p-breadcrumb",4),fe.k0s(),fe.j41(6,"p-card",5)(7,"p",6),fe.EFF(8,"É de extrema importância o preenchimento correto de todos os campos do formulário."),fe.k0s()()(),fe.j41(9,"div",7),fe.nrm(10,"br-list-details",8),fe.k0s()()()),2&te&&(fe.R7$(5),fe.Y8G("model",ne.itensMenuBreadCrumb),fe.R7$(),fe.Aen(fe.lJ4(5,criar_reembolso_component_c0)),fe.R7$(4),fe.Y8G("brListService",ne.nbrReembolsoService)("standalone",!0))},dependencies:[de.MD,wr,dn.D,dn.Z,Io,ko,an.X1,sn.tm,Po.F,yn.f,hr.kr,gr.f,Fo.M],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{padding:20px 10px 0}.container-aviso[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .p-breadcrumb{border:0px;padding:0;padding-left:.5rem}[_ngcontent-%COMP%]:is()   .p-breadcrumb-list[_ngcontent-%COMP%]{gap:.5rem}[_ngcontent-%COMP%]:is()   .p-menuitem-text[_ngcontent-%COMP%]{color:var(--primary-color)}[_nghost-%COMP%]     .aviso .p-card-body{background-color:#414141;border-radius:6px}[_nghost-%COMP%]     .aviso .p-card-title, p[_ngcontent-%COMP%]{color:#fff;font-size:1.8rem}p[_ngcontent-%COMP%]{text-align:justify}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5}.container-top[_ngcontent-%COMP%]{padding:20px 10px 0;display:flex;flex-direction:column;width:clamp(30rem,60vw,95vw)}.container-breadcrumb[_ngcontent-%COMP%]{margin-bottom:1rem}.container-details[_ngcontent-%COMP%]{width:95vw}"]})}return CriarReembolsoComponent})();var kr=ie(6013);let Ir=(()=>{class DemandaDetalhesComponent{constructor(te){this.activatedRoute=te,this.nbrDemandaService=(0,fe.WQX)(io.m),this.router=(0,fe.WQX)(Qt.Ix),this.itensMenuBreadCrumb=[]}ngOnInit(){this.idDemanda=Number(this.activatedRoute.snapshot.paramMap.get("id"));const te=this.getRotaVoltar();this.itensMenuBreadCrumb=[{label:"Área restrita",routerLink:"/area-restrita",icon:"fa-light fa-house text-primary mr-2"},{label:te.label,routerLink:te.rota,icon:"fa-light fa-scale-balanced text-primary mr-2"},{label:"Demanda "+this.idDemanda,styleClass:"font-bold"}]}getRotaVoltar(){let te="Demandas",ne="/area-restrita/demandas";return"reembolso"===this.activatedRoute.snapshot.paramMap.get("origem")&&(te="Reembolso",ne="/area-restrita/reembolso"),{label:te,rota:ne}}ngAfterViewInit(){this.nbrDemandaService.idRowDetails=this.idDemanda,this.nbrDemandaService.labelBotaoFecharDetails="Voltar";const te=this.getRotaVoltar();this.nbrDemandaService.onFechar=()=>{this.router.navigateByUrl(te.rota)}}static#e=this.ɵfac=function DemandaDetalhesComponent_Factory(te){return new(te||DemandaDetalhesComponent)(fe.rXU(Qt.nX))};static#t=this.ɵcmp=fe.VBU({type:DemandaDetalhesComponent,selectors:[["app-demanda-detalhes"]],viewQuery:function DemandaDetalhesComponent_Query(te,ne){if(1&te&&fe.GBs(Fo.M,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.nbrDemandaDetails=te.first)}},standalone:!0,features:[fe.aNF],decls:8,vars:5,consts:[[1,"background-area-restrita"],[1,"container-funcao-area-restrita"],[1,"container-breadcrumb"],[3,"model"],[1,"overflow-auto","my-5"],[3,"brListService","apenasHeader"],[3,"nbrDemandaService","standalone"]],template:function DemandaDetalhesComponent_Template(te,ne){1&te&&(fe.nrm(0,"header-empresa"),fe.j41(1,"div",0)(2,"div",1)(3,"div",2),fe.nrm(4,"p-breadcrumb",3),fe.k0s(),fe.j41(5,"div",4),fe.nrm(6,"br-list-details",5)(7,"demanda-linha-do-tempo",6),fe.k0s()()()),2&te&&(fe.R7$(4),fe.Y8G("model",ne.itensMenuBreadCrumb),fe.R7$(2),fe.Y8G("brListService",ne.nbrDemandaService)("apenasHeader",!0),fe.R7$(),fe.Y8G("nbrDemandaService",ne.nbrDemandaService)("standalone",!0))},dependencies:[wr,Io,ko,kr.w,Fo.M],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{padding:20px 10px 0}.container-aviso[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .p-breadcrumb{border:0px;padding:0;padding-left:.5rem}[_ngcontent-%COMP%]:is()   .p-breadcrumb-list[_ngcontent-%COMP%]{gap:.5rem}[_ngcontent-%COMP%]:is()   .p-menuitem-text[_ngcontent-%COMP%]{color:var(--primary-color)}.container-demandas[_ngcontent-%COMP%]{overflow:auto}.container-funcao-area-restrita[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}@media (max-width: 769px){.container-demandas[_ngcontent-%COMP%]{overflow:unset}}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:95vw}}[_nghost-%COMP%]     br-list-details .button-icon{display:none}"]})}return DemandaDetalhesComponent})();const Mr=["*"];let Nr=(()=>{class AvisoAreaRestritaComponent{constructor(){this.header=""}static#e=this.ɵfac=function AvisoAreaRestritaComponent_Factory(te){return new(te||AvisoAreaRestritaComponent)};static#t=this.ɵcmp=fe.VBU({type:AvisoAreaRestritaComponent,selectors:[["aviso-area-restrita"]],inputs:{header:"header"},standalone:!0,features:[fe.aNF],ngContentSelectors:Mr,decls:2,vars:1,consts:[[1,"aviso",3,"header"]],template:function AvisoAreaRestritaComponent_Template(te,ne){1&te&&(fe.NAR(),fe.j41(0,"p-card",0),fe.SdG(1),fe.k0s()),2&te&&fe.Y8G("header",ne.header)},dependencies:[dn.D,dn.Z],styles:["[_nghost-%COMP%]     .aviso .p-card-body{background-color:#414141;border-radius:6px}[_nghost-%COMP%]     .aviso .p-card-body>*{color:#fff;font-size:1.8rem}p[_ngcontent-%COMP%]{text-align:justify}"]})}return AvisoAreaRestritaComponent})(),Lr=(()=>{class NbrDemandaAreaRestritaService extends zo.v{constructor(){super(),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"Solicitante",formControlName:"codLbrUsuario",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpfCliente",foreignEndpoint:"lbr-usuario"},{label:"Assunto",formControlName:"assunto",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Área",formControlName:"codNbrAreaAtendimento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrAreaAtendimento",optionValue:"codNbrAreaAtendimento",foreignEndpoint:"nbr-area-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)})},{label:"Descrição",formControlName:"descrDemanda",control:new an.MJ(null),typeInput:Un.St.Editor},{label:"Documento(s)",formControlName:"codDocumentos",control:new an.MJ(null),typeInput:Un.St.Upload,fileLimit:10,maxFileSize:5e7,acceptedFiles:["image/*","application/pdf"]},{showOnDetails:!1,label:"Executor",formControlName:"codLbrUsuarioExecutor",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpfCliente",foreignEndpoint:"lbr-usuario"},{label:"Tipo de atendimento",formControlName:"codNbrTipoAtendimento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrTipoAtendimento",optionValue:"codNbrTipoAtendimento",foreignEndpoint:"nbr-tipo-atendimento",showOnFilter:!1,foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)}),showOnDetails:!1},{label:"Modo",formControlName:"codNbrModoAtendimento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrModoAtendimento",optionValue:"codNbrModoAtendimento",foreignEndpoint:"nbr-modo-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)}),showOnDetails:!1}]}],this.nbrTipoAtendimentoService.getRecord(1).subscribe((te=>{this.defaultDetailsValue={codNbrAreaAtendimento:te.codNbrAreaAtendPadrao,codNbrTipoAtendimento:1,codNbrFormaAtendimento:te.codNbrFormaAtendPadrao,codNbrModoAtendimento:te.codNbrModoAtendPadrao,descrDemanda:te.descrPadrao,assunto:te.assuntoPadrao}}))}static#e=this.ɵfac=function NbrDemandaAreaRestritaService_Factory(te){return new(te||NbrDemandaAreaRestritaService)};static#t=this.ɵprov=fe.jDH({token:NbrDemandaAreaRestritaService,factory:NbrDemandaAreaRestritaService.ɵfac,providedIn:"root"})}return NbrDemandaAreaRestritaService})();function DemandaComponent_div_22_Template(te,ne){1&te&&(fe.j41(0,"div",16)(1,"span",17),fe.EFF(2,"Nenhuma demanda encontrada"),fe.k0s()())}function DemandaComponent_div_23_ng_template_2_Template(te,ne){if(1&te&&(fe.j41(0,"div",26),fe.nrm(1,"i"),fe.j41(2,"span",27),fe.EFF(3),fe.k0s()()),2&te){const te=fe.XpG().$implicit;fe.Aen("background-color: "+te.nbrStatusDemanda.corIcone),fe.R7$(),fe.Aen("color: white"),fe.HbH(te.nbrStatusDemanda.nomeIcone),fe.R7$(2),fe.JRh(te.nbrStatusDemanda.nomeNbrStatusDemanda)}}function DemandaComponent_div_23_Template(te,ne){if(1&te&&(fe.j41(0,"div",16)(1,"p-card"),fe.DNE(2,DemandaComponent_div_23_ng_template_2_Template,4,7,"ng-template",18),fe.j41(3,"div",19)(4,"div",20)(5,"div",21)(6,"span",22),fe.EFF(7,"ID"),fe.k0s(),fe.j41(8,"span"),fe.EFF(9),fe.k0s()(),fe.j41(10,"div",23)(11,"span",22),fe.EFF(12,"Data"),fe.k0s(),fe.j41(13,"span"),fe.EFF(14),fe.nI1(15,"date"),fe.k0s()(),fe.j41(16,"div",21)(17,"span",22),fe.EFF(18,"Assunto"),fe.k0s(),fe.j41(19,"span"),fe.EFF(20),fe.k0s()()(),fe.j41(21,"div",24),fe.nrm(22,"p-button",25),fe.k0s()()()()),2&te){const te=ne.$implicit;fe.R7$(9),fe.JRh(te.codNbrDemanda),fe.R7$(5),fe.JRh(fe.i5U(15,4,te.dataInicial,"dd/MM/yyyy HH:mm")),fe.R7$(6),fe.JRh(te.assunto),fe.R7$(2),fe.Mz_("routerLink","/area-restrita/demandas/",te.codNbrDemanda,"/edit")}}let Or=(()=>{class DemandaComponent{constructor(){this.nbrDemandaJuridicoService=(0,fe.WQX)(Lr),this.authService=(0,fe.WQX)(rn.u),this.demandas=[],this.demandasVisiveis=[],this.usuario=this.authService.usuario,this.isLoading=!1,this.statusSelecionado=io.X.EmAberto,this.itensMenuBreadCrumb=[{label:"Área restrita",routerLink:"/area-restrita",icon:"fa-light fa-house text-primary mr-2"},{label:"Demandas",icon:"fa-light fa-scale-balanced text-primary font-bold mr-2",styleClass:"font-bold"}],this.statusList=[{value:io.X.Todas,label:"Todas"},{value:io.X.EmAberto,label:"Em aberto"},{value:io.X.Encerradas,label:"Encerradas"}],this.criarDemandaComponent=ur}ngOnInit(){this.refreshDados()}refreshDados(){this.isLoading=!0,this.nbrDemandaJuridicoService.filterRecords({codNbrTipoAtendimento:[1],codLbrUsuario:this.usuario.isAdmin?void 0:[this.usuario.codLbrUsuario],pageSize:"all"}).subscribe((te=>{this.demandas=te.data,this.demandas.sort(((te,ne)=>new Date(ne.dataInicial).getTime()-new Date(te.dataInicial).getTime())),this.onStatusChanges({value:io.X.EmAberto}),this.isLoading=!1}))}onStatusChanges(te){switch(this.statusSelecionado=te.value,this.statusSelecionado){case io.X.EmAberto:this.demandasVisiveis=this.demandas.filter((te=>!te.dataFinal));break;case io.X.Encerradas:this.demandasVisiveis=this.demandas.filter((te=>te.dataFinal));break;default:this.demandasVisiveis=this.demandas}}abreModalDemandaNova(){this.nbrDemandaJuridicoService.controlsDisabledOnDetails=["codLbrUsuario"],this.nbrDemandaJuridicoService.defaultDetailsValue.codLbrUsuario=this.authService.usuario?.codLbrUsuario,this.nbrDemandaJuridicoService.defaultDetailsValue.codLbrUsuarioExecutor=void 0,this.nbrDemandaJuridicoService.brListName="Demanda",this.nbrDemandaJuridicoService.state.podeInserir=!0,this.nbrDemandaJuridicoService.state.podeVer=!0,this.nbrDemandaJuridicoService.openDetails()}onModalClosed(te){te.novoRegistro&&this.refreshDados()}static#e=this.ɵfac=function DemandaComponent_Factory(te){return new(te||DemandaComponent)};static#t=this.ɵcmp=fe.VBU({type:DemandaComponent,selectors:[["app-demanda"]],standalone:!0,features:[fe.Jv_([Ut.o3]),fe.aNF],decls:26,vars:9,consts:[[1,"background-area-restrita"],[1,"container-funcao-area-restrita"],[1,"container-breadcrumb"],[3,"model"],[1,"container-aviso"],[1,"text-lg"],["icon","pi pi-external-link","label","Solicitar uma nova demanda","styleClass","p-button-secondary",3,"onClick"],[1,"container-filtro"],["id","Filtro",3,"options","ngModel","ngModelChange","onChange"],["for","Filtro"],[1,"texto-total-filtro"],[1,"container-demandas"],["class","demanda-card",4,"ngIf"],["class","demanda-card",4,"ngFor","ngForOf"],["appendTo","body",3,"brListService","modal","modalClosed"],["key","Demandas-sidebar-confirmdialog","appendTo","body"],[1,"demanda-card"],[1,"flex","justify-content-center","text-4xl","w-full","text-center"],["pTemplate","header"],[1,"container-conteudo-card"],[1,"container-descricao-card"],[1,"container-card-assunto"],[1,"titulo-card-demanda"],[1,"container-data"],[1,"container-botao-card"],["label","Ver Detalhes","icon","pi pi-external-link","styleClass","p-button-raised p-button-rounded",3,"routerLink"],[1,"header-card"],[1,"status-text"]],template:function DemandaComponent_Template(te,ne){1&te&&(fe.nrm(0,"header-empresa"),fe.j41(1,"div",0)(2,"div",1)(3,"div",2),fe.nrm(4,"p-breadcrumb",3),fe.k0s(),fe.j41(5,"div",4)(6,"aviso-area-restrita")(7,"p",5),fe.EFF(8),fe.k0s(),fe.j41(9,"p",5),fe.EFF(10," Através deste sistema o associado pode solicitar apoio jurídico, acompanhar processos encaminhados e responder solicitações online. "),fe.k0s(),fe.j41(11,"p",5),fe.EFF(12,"Caso necessite abrir uma demanda jurídica clique abaixo:"),fe.k0s(),fe.j41(13,"p-button",6),fe.bIt("onClick",(function DemandaComponent_Template_p_button_onClick_13_listener(){return ne.abreModalDemandaNova()})),fe.k0s()()(),fe.j41(14,"div",7)(15,"p-floatLabel")(16,"p-dropdown",8),fe.mxI("ngModelChange",(function DemandaComponent_Template_p_dropdown_ngModelChange_16_listener(te){return fe.DH7(ne.statusSelecionado,te)||(ne.statusSelecionado=te),te})),fe.bIt("onChange",(function DemandaComponent_Template_p_dropdown_onChange_16_listener(te){return ne.onStatusChanges(te)})),fe.k0s(),fe.j41(17,"label",9),fe.EFF(18,"Demandas"),fe.k0s()(),fe.j41(19,"span",10),fe.EFF(20),fe.k0s()(),fe.j41(21,"div",11),fe.DNE(22,DemandaComponent_div_22_Template,3,0,"div",12)(23,DemandaComponent_div_23_Template,23,7,"div",13),fe.k0s()()(),fe.j41(24,"br-list-details",14),fe.bIt("modalClosed",(function DemandaComponent_Template_br_list_details_modalClosed_24_listener(te){return ne.onModalClosed(te)})),fe.k0s(),fe.nrm(25,"p-confirmDialog",15)),2&te&&(fe.R7$(4),fe.Y8G("model",ne.itensMenuBreadCrumb),fe.R7$(4),fe.SpI("Prezado(a) ",ne.usuario.nomeUsuario,", seja bem-vindo(a) ao sistema jurídico."),fe.R7$(8),fe.Y8G("options",ne.statusList),fe.R50("ngModel",ne.statusSelecionado),fe.R7$(4),fe.SpI("Total: ",ne.demandasVisiveis.length,""),fe.R7$(2),fe.Y8G("ngIf",0===ne.demandasVisiveis.length),fe.R7$(),fe.Y8G("ngForOf",ne.demandasVisiveis),fe.R7$(),fe.Y8G("brListService",ne.nbrDemandaJuridicoService)("modal",!0))},dependencies:[de.MD,de.Sq,de.bT,de.vh,wr,Io,ko,Qt.Wk,Ht.Ei,Nr,hr.kr,hr.ms,dn.D,dn.Z,yn.f,yn.V,Fo.M,an.YN,an.BC,an.vS,sn.tm,sn.$n,Po.F,Po.T],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{padding:20px 10px 0}.container-aviso[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .p-breadcrumb{border:0px;padding:0;padding-left:.5rem}[_ngcontent-%COMP%]:is()   .p-breadcrumb-list[_ngcontent-%COMP%]{gap:.5rem}[_ngcontent-%COMP%]:is()   .p-menuitem-text[_ngcontent-%COMP%]{color:var(--primary-color)}.container-demandas[_ngcontent-%COMP%]{padding:10px 0 30px;display:flex;flex-direction:column;gap:20px}.titulo-card[_ngcontent-%COMP%]{font-size:16px;font-weight:600}.header-card[_ngcontent-%COMP%]{color:#fff;font-weight:700;border-top-left-radius:5px;padding:10px 1.25rem;display:flex;gap:10px;border-top-right-radius:5px;align-items:center}.titulo-card-demanda[_ngcontent-%COMP%]{display:block;font-size:15px;font-weight:700;margin-bottom:.1rem}[_nghost-%COMP%]   .container-demandas[_ngcontent-%COMP%]     .p-card-content{padding:0!important}.container-conteudo-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:10px;width:100%}.container-descricao-card[_ngcontent-%COMP%]{display:flex;gap:20px;flex:1 1}.container-data[_ngcontent-%COMP%]{white-space:nowrap}.container-card-assunto[_ngcontent-%COMP%]{word-wrap:break-word}@media (max-width: 769px){.container-conteudo-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:baseline}.container-descricao-card[_ngcontent-%COMP%]{gap:10px;flex-direction:column}}.container-filtro[_ngcontent-%COMP%]{padding-top:3rem;display:flex;justify-content:space-between;align-items:center}.texto-total-filtro[_ngcontent-%COMP%]{font-size:15px;font-weight:700}.container-breadcrumb[_ngcontent-%COMP%]{margin-bottom:1rem}"]})}return DemandaComponent})();var Pr=ie(1572),jr=ie(2817),Hr=ie(6630),Ur=ie(4358);let $r=(()=>{class AvisoConcluidoComponent{static#e=this.ɵfac=function AvisoConcluidoComponent_Factory(te){return new(te||AvisoConcluidoComponent)};static#t=this.ɵcmp=fe.VBU({type:AvisoConcluidoComponent,selectors:[["app-aviso-concluido"]],standalone:!0,features:[fe.aNF],decls:3,vars:0,consts:[[1,"relative","z-3","mensagem-fim"],[1,"pi","pi-check-circle","text-green-500"]],template:function AvisoConcluidoComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0),fe.nrm(1,"i",1),fe.EFF(2," Solicitação finalizada com sucesso!\n"),fe.k0s())},styles:[".mensagem-fim[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;font-size:32px;font-weight:700;flex-direction:column;gap:2rem;margin-top:7rem;padding:10px;text-align:center}.mensagem-fim[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:10rem}"]})}return AvisoConcluidoComponent})();var qr=ie(4574),Kr=ie(7756);let Qr=(()=>{class BrLoadingComponent{constructor(){this.label="Aguarde ..."}static#e=this.ɵfac=function BrLoadingComponent_Factory(te){return new(te||BrLoadingComponent)};static#t=this.ɵcmp=fe.VBU({type:BrLoadingComponent,selectors:[["br-loading"]],inputs:{label:"label"},standalone:!0,features:[fe.aNF],decls:6,vars:1,consts:[[1,"modal-loading"],[1,"flex","gap-3","align-items-center","justify-content-center"],["styleClass","w-4rem h-4rem spinner","strokeWidth","3"],[1,"select-none"]],template:function BrLoadingComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"p-card")(2,"div",1),fe.nrm(3,"p-progressSpinner",2),fe.j41(4,"span",3),fe.EFF(5),fe.k0s()()()()),2&te&&(fe.R7$(5),fe.JRh(ne.label))},dependencies:[dn.D,dn.Z,Kr.d,Kr.p],styles:["[_nghost-%COMP%]     .spinner .p-progress-spinner-circle{stroke:var(--primary-color)!important}.modal-loading[_ngcontent-%COMP%]{display:block;width:100%;height:100%;background:#00000080;position:fixed;top:0;left:0;display:flex;justify-content:center;align-items:center;z-index:999999999}[_nghost-%COMP%]     .p-skeleton{opacity:45%}"]})}return BrLoadingComponent})();class LoadingRef{constructor(te,ne,ie){this.container=te,this.appRef=ne,this.loadingLabel=ie}apresenta(){this.componentRef=(0,fe.a0P)(Qr,{environmentInjector:this.appRef.injector,hostElement:this.container}),this.loadingLabel&&(this.componentRef.instance.label=this.loadingLabel),this.appRef.attachView(this.componentRef.hostView),this.componentRef.changeDetectorRef.detectChanges()}finaliza(){this.componentRef&&(this.appRef.detachView(this.componentRef.hostView),this.componentRef.destroy())}}let Jr=(()=>{class LoadingService{constructor(){this.appRef=(0,fe.WQX)(fe.o8S)}cria(te){const ne=document.createElement("div");return document.body.appendChild(ne),new LoadingRef(ne,this.appRef,te)}static#e=this.ɵfac=function LoadingService_Factory(te){return new(te||LoadingService)};static#t=this.ɵprov=fe.jDH({token:LoadingService,factory:LoadingService.ɵfac,providedIn:"root"})}return LoadingService})();var Zr=ie(4667),ea=ie(6838);let ta=(()=>{class VtCidadeService extends Un.O7{constructor(){super("vt-cidade"),this.brListName="Cidade",this.brListNamePlural="Cidades",this.columns$=new zn.t([{fieldPath:"codCidade",formControlName:"codCidade"},{fieldPath:"nomeCidade",formControlName:"nomeCidade"},{fieldPath:"vtestado.nomeEstado",formControlName:"codEstado"},{fieldPath:"regional.nomeRegional",formControlName:"codRegional"},{label:"Diretoria",fieldPath:"regional.diretoriaRegional.nomeDiretoriaRegional",formControlName:""},{fieldPath:"regiaoUf.nomeRegiaoUf",formControlName:"codRegiaoUf"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codCidade",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome da cidade",formControlName:"nomeCidade",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Estado",formControlName:"codEstado",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeEstado",optionValue:"codEstado",foreignEndpoint:"vt-estado"},{label:"Regional",formControlName:"codRegional",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeRegional",optionValue:"codRegional",foreignEndpoint:"regional"},{label:"Região estadual",formControlName:"codRegiaoUf",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeRegiaoUf",optionValue:"codRegiaoUf",foreignEndpoint:"regiao-uf"}]}]}static#e=this.ɵfac=function VtCidadeService_Factory(te){return new(te||VtCidadeService)};static#t=this.ɵprov=fe.jDH({token:VtCidadeService,factory:VtCidadeService.ɵfac,providedIn:"root"})}return VtCidadeService})(),ia=(()=>{class AbstractSolicitacaoComponent{constructor(te){this.mostraDocumento=!1,this.clicouBotaoGerarFormulario=!1,this.concluido=!1,this.http=(0,fe.WQX)(ue.Qq),this.formBuilder=(0,fe.WQX)(an.ok),this.vtCidadeService=(0,fe.WQX)(ta),this.preferenciaService=(0,fe.WQX)(qn.v),this.brMessageService=(0,fe.WQX)(bn.h),this.loadingService=(0,fe.WQX)(Jr),this.arquivoService=(0,fe.WQX)(qr.I),this.confirmationService=(0,fe.WQX)(Ht.td),this.dominioEmailValidator=(0,fe.WQX)(ea.u),this.environmentService=(0,fe.WQX)(oo.v),this.validadorFormularioService=(0,fe.WQX)(Zr.E),this.isDesfiliacao=te?.isDesfiliacao??!1,this.codMotivoDesligamentoOutros=te?.codMotivoDesligamentoOutros??3}getFormDadosControl(te){return this.formDados.get(te)}getFormDocumentosControl(te){return this.formDocumentos.get(te)}continuar(){const te=this.validadorFormularioService.validaFormulario(this.formDados);te.valido?(this.mostraDocumento=!0,window.scrollTo({top:0,behavior:"smooth"})):(this.formDados.markAllAsTouched(),this.formDados.get("cpfCliente")?.markAsDirty(),this.formDados.get("celularFone")?.markAsDirty(),this.brMessageService.error(te.mensagemErro))}salvaDocumentos(){if(!this.clicouBotaoGerarFormulario)return this.brMessageService.error('Clique no botão "Gerar formulário" antes de concluir');if(!this.formDocumentos.valid)return this.brMessageService.error("Prencha todos os campos obrigatórios");const te=this.loadingService.cria();te.apresenta();const ne=this.formDocumentos.value;this.arquivoService.uploadPrivado([...ne.documentoFicha,...ne.documentoIdentificacao]).then((ne=>{this.http.post(`${this.environmentService.environment.serverUrl}/vt-centro-custo/solicitacoes/documentos`,{codCc:this.formDados.value.codCc,codDocEmpresaFicha:ne[0],codDocEmpresaComFoto:ne[1]}).pipe((0,pn.j)((()=>te.finaliza()))).subscribe({next:()=>{this.concluido=!0},error:()=>{this.brMessageService.error("Erro ao atualizar documentos")}})}))}voltar(){this.mostraDocumento=!1}static#e=this.ɵfac=function AbstractSolicitacaoComponent_Factory(te){fe.QTQ()};static#t=this.ɵdir=fe.FsC({type:AbstractSolicitacaoComponent})}return AbstractSolicitacaoComponent})();function RecadastramentoComponent_div_4_div_1_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div")(1,"div",3)(2,"p-card",4)(3,"p",5)(4,"b"),fe.EFF(5,"ATENÇÃO"),fe.k0s(),fe.EFF(6,": esta é a primeira etapa do recadastramento."),fe.k0s(),fe.j41(7,"p",5),fe.EFF(8,"É de extrema importância o preenchimento correto de todos os campos do formulário."),fe.k0s()()(),fe.j41(9,"div",6)(10,"p-floatLabel"),fe.nrm(11,"input",7),fe.j41(12,"label",8),fe.EFF(13,"Nome completo"),fe.k0s()(),fe.nrm(14,"br-foreign-key",9)(15,"br-foreign-key",10)(16,"br-foreign-key",11)(17,"br-foreign-key",12)(18,"br-date",13),fe.j41(19,"p-floatLabel"),fe.nrm(20,"p-inputMask",14),fe.j41(21,"label",15),fe.EFF(22,"CPF"),fe.k0s()(),fe.nrm(23,"br-foreign-key",16)(24,"br-date",17),fe.j41(25,"p-floatLabel"),fe.nrm(26,"p-inputMask",18),fe.j41(27,"label",19),fe.EFF(28,"Telefone celular"),fe.k0s()(),fe.j41(29,"p-floatLabel"),fe.nrm(30,"input",20),fe.j41(31,"label",21),fe.EFF(32,"Email pessoal"),fe.k0s()(),fe.nrm(33,"br-foreign-key",22),fe.j41(34,"p-floatLabel"),fe.nrm(35,"input",23),fe.j41(36,"label",24),fe.EFF(37,"Regional"),fe.k0s()(),fe.j41(38,"p-floatLabel"),fe.nrm(39,"input",25),fe.j41(40,"label",26),fe.EFF(41,"Diretoria"),fe.k0s()(),fe.j41(42,"p-floatLabel"),fe.nrm(43,"input",27),fe.j41(44,"label",28),fe.EFF(45,"Macro-região"),fe.k0s()()(),fe.j41(46,"div",29)(47,"p-button",30),fe.bIt("onClick",(function RecadastramentoComponent_div_4_div_1_Template_p_button_onClick_47_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.continuar())})),fe.k0s()()()}if(2&te){const te=fe.XpG(2);fe.R7$(9),fe.Y8G("formGroup",te.formDados),fe.R7$(2),fe.Y8G("autofocus",!0)}}const recadastramento_component_c0=()=>["application/pdf","image/*"];function RecadastramentoComponent_div_4_div_2_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div")(1,"div",31)(2,"p-card",32)(3,"p",5),fe.EFF(4," Para prosseguir com o recadastramento, anexe no campo indicado, no formato PDF ou imagem, com FRENTE e VERSO da CNH (Carteira Nacional de Habilitação). "),fe.k0s(),fe.j41(5,"p",5),fe.EFF(6,"Caso não envie a CNH o seu recadastramento não será efetuado!"),fe.k0s()(),fe.j41(7,"div",33),fe.nrm(8,"br-file-upload",34),fe.k0s()(),fe.j41(9,"div",35)(10,"p-button",36),fe.bIt("onClick",(function RecadastramentoComponent_div_4_div_2_Template_p_button_onClick_10_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.voltar())})),fe.k0s(),fe.j41(11,"p-button",37),fe.bIt("onClick",(function RecadastramentoComponent_div_4_div_2_Template_p_button_onClick_11_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.salvaDocumentos())})),fe.k0s()()()}if(2&te){const te=fe.XpG(2);fe.R7$(),fe.Y8G("formGroup",te.formDocumentos),fe.R7$(7),fe.Y8G("accept",fe.lJ4(3,recadastramento_component_c0))("fileLimit",1)}}function RecadastramentoComponent_div_4_Template(te,ne){if(1&te&&(fe.j41(0,"div"),fe.DNE(1,RecadastramentoComponent_div_4_div_1_Template,48,2,"div",2)(2,RecadastramentoComponent_div_4_div_2_Template,12,4,"div",2),fe.k0s()),2&te){const te=fe.XpG();fe.R7$(),fe.Y8G("ngIf",!te.mostraDocumento),fe.R7$(),fe.Y8G("ngIf",te.mostraDocumento)}}function RecadastramentoComponent_div_5_Template(te,ne){1&te&&(fe.j41(0,"div"),fe.nrm(1,"app-aviso-concluido"),fe.k0s())}const recadastramento_component_c1=()=>({width:"50vw"});let oa=(()=>{class RecadastramentoComponent extends ia{constructor(){super({codMotivoDesligamentoOutros:3}),this.formDocumentos=this.formBuilder.group({documentoIdentificacao:[null,an.k0.required]}),this.formDados=this.formBuilder.group({nomeCc:[null,an.k0.required],codCargoTrabalho:[null,an.k0.required],codSituacaoCc:[null,an.k0.required],codClasseCargo:[null,an.k0.required],dataAdmissao:[null,an.k0.required],cpfCliente:[null,an.k0.required],codSexo:[null,an.k0.required],celularFone:[null,an.k0.required],dataNascimento:[null,an.k0.required],emailPrincipal:[null,an.k0.compose([an.k0.required,an.k0.email]),[this.dominioEmailValidator.checarDominio()]],codCidade:[null,an.k0.required],codOrgao:[null,an.k0.required],regional:{value:"",disabled:!0},diretoria:{value:"",disabled:!0},macroRegiao:{value:"",disabled:!0}})}ngOnInit(){this.formDados.get("codCidade")?.valueChanges.pipe((0,Wt.n)((te=>this.vtCidadeService.getRecord(te))),(0,Zt.T)((te=>({regional:te.regional?.nomeRegional,diretoria:te.regional?.diretoriaRegional?.nomeDiretoriaRegional,macroRegiao:te.regiaoUf?.nomeRegiaoUf})))).subscribe((te=>{this.formDados.patchValue(te)}))}continuar(){const te=this.validadorFormularioService.validaFormulario(this.formDados);te.valido?(this.mostraDocumento=!0,window.scrollTo({top:0,behavior:"smooth"})):(this.formDados.markAllAsTouched(),this.formDados.get("cpfCliente")?.markAsDirty(),this.brMessageService.error(te.mensagemErro))}salvaDocumentos(){if(!this.formDocumentos.valid)return this.brMessageService.error("Prencha todos os campos");const te=this.loadingService.cria();te.apresenta();const ne=this.formDocumentos.value;this.arquivoService.uploadPrivado(ne.documentoIdentificacao).then((ne=>{const ie={...this.formDados.value,codDocEmpresaComFoto:ne[0],codCategoriaCadastro:2};this.http.post(`${this.environmentService.environment.serverUrl}/vt-centro-custo/recadastramento`,ie).pipe((0,pn.j)((()=>te.finaliza()))).subscribe({next:()=>{this.concluido=!0},error:()=>this.brMessageService.error("Erro ao criar registro")})}))}static#e=this.ɵfac=function RecadastramentoComponent_Factory(te){return new(te||RecadastramentoComponent)};static#t=this.ɵcmp=fe.VBU({type:RecadastramentoComponent,selectors:[["app-recadastramento"]],standalone:!0,features:[fe.Vt3,fe.aNF],decls:7,vars:5,consts:[[1,"background-area-restrita"],[1,"container-funcao-area-restrita"],[4,"ngIf"],[1,"container-aviso","mb-5"],["header","Formulário de Recadastramento",1,"aviso"],[1,"text-lg"],[1,"flex","flex-column","gap-5","mb-5",3,"formGroup"],["id","nomeCc","label","Nome completo","brInputText","","pAutoFocus","","formControlName","nomeCc",3,"autofocus"],["for","nomeCc"],["formControlName","codCargoTrabalho","optionValue","codFuncao","optionLabel","nomeFuncao","endpoint","funcao","label","Cargo atual"],["formControlName","codSituacaoCc","optionValue","codSituacaoCc","optionLabel","nomeSituacaoCc","endpoint","ger-situacao-cc","label","Situação Servidor Público"],["formControlName","codClasseCargo","optionValue","codClasseCargo","optionLabel","nomeClasseCargo","endpoint","classe-cargo","label","Classe/nível entrância"],["formControlName","codOrgao","optionValue","codOrgao","optionLabel","nomeOrgao","endpoint","orgao","label","Órgão efetivo"],["label","Data de ingresso na PC","formControlName","dataAdmissao"],["id","cpfCliente","formControlName","cpfCliente","mask","999.999.999-99"],["for","cpfCliente"],["formControlName","codSexo","optionValue","codSexo","optionLabel","nomeSexo","endpoint","sexo","label","Sexo"],["label","Data de nascimento","formControlName","dataNascimento"],["id","celularFone","formControlName","celularFone","mask","99 99999-9999"],["for","celularFone"],["id","emailPrincipal","brInputText","","formControlName","emailPrincipal"],["for","emailPrincipal"],["formControlName","codCidade","optionValue","codCidade","optionLabel","nomeCidade","endpoint","vt-cidade","label","Cidade","query","codRegional=!null"],["id","regional","brInputText","","formControlName","regional"],["for","regional"],["brInputText","","id","diretoria","formControlName","diretoria"],["for","diretoria"],["brInputText","","id","macroRegiao","formControlName","macroRegiao"],["for","macroRegiao"],[1,"flex","justify-content-center"],["label","Continuar",3,"onClick"],[1,"documentos",3,"formGroup"],["header","DOCUMENTO OBRIGATÓRIO PARA ENVIAR",1,"aviso"],[1,"container-upload-arquivo"],["formControlName","documentoIdentificacao","label","Documento",3,"accept","fileLimit"],[1,"container-botao"],["label","Retornar","styleClass","p-button-secondary",3,"onClick"],["label","Concluir","icon","pi pi-check-square",3,"onClick"]],template:function RecadastramentoComponent_Template(te,ne){1&te&&(fe.nrm(0,"header-empresa"),fe.qex(1),fe.j41(2,"div",0)(3,"div",1),fe.DNE(4,RecadastramentoComponent_div_4_Template,3,2,"div",2)(5,RecadastramentoComponent_div_5_Template,2,0,"div",2),fe.k0s()(),fe.bVm(),fe.nrm(6,"p-confirmDialog")),2&te&&(fe.R7$(4),fe.Y8G("ngIf",!ne.concluido),fe.R7$(),fe.Y8G("ngIf",ne.concluido),fe.R7$(),fe.Aen(fe.lJ4(4,recadastramento_component_c1)))},dependencies:[de.MD,de.bT,wr,dn.D,dn.Z,Yt.MB,Po.F,Po.T,sn.$n,$r,an.YN,an.me,an.BC,an.cb,an.X1,an.j4,an.JD,yn.f,yn.V,Hr.r,Ur.L,Pr.Zn,Pr.N5,jr.a,_n.B],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:auto;padding:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:0 auto;padding:1.25rem 0}}[_nghost-%COMP%]     .aviso .p-card-body{background-color:#414141;border-radius:6px}[_nghost-%COMP%]     .aviso .p-card-title, p[_ngcontent-%COMP%]{color:#fff;font-size:1.8rem}p[_ngcontent-%COMP%]{text-align:justify}[_nghost-%COMP%]     br-upload .p-fileupload-content{padding:5rem!important}br-upload[_ngcontent-%COMP%]{display:flex;justify-content:center}.text-black[_ngcontent-%COMP%]{color:#000}.container-botao[_ngcontent-%COMP%]{padding-top:2rem;padding-bottom:30px;display:flex;justify-content:center;align-items:center;gap:10px}  .p-inputtext,   .p-dropdown{width:100%!important}.container-upload-arquivo[_ngcontent-%COMP%]{margin-top:30px}"]})}return RecadastramentoComponent})();var ra=ie(6381),aa=ie(9863);function ReembolsoComponent_div_1_div_11_Template(te,ne){if(1&te&&(fe.j41(0,"div",12)(1,"span",13),fe.EFF(2),fe.k0s()()),2&te){const te=fe.XpG().ngIf;fe.R7$(2),fe.SpI("Total: ",te.reembolsoLista.length,"")}}function ReembolsoComponent_div_1_div_13_Template(te,ne){1&te&&(fe.j41(0,"div",14)(1,"span",15),fe.EFF(2,"Nenhum reembolso encontrado"),fe.k0s()())}function ReembolsoComponent_div_1_div_14_ng_template_2_Template(te,ne){if(1&te&&(fe.j41(0,"div",24),fe.nrm(1,"i"),fe.j41(2,"span",25),fe.EFF(3),fe.k0s()()),2&te){const te=fe.XpG().$implicit;fe.Aen("background-color: "+(null==te.nbrDemanda||null==te.nbrDemanda.nbrStatusDemanda?null:te.nbrDemanda.nbrStatusDemanda.corIcone)),fe.R7$(),fe.Aen("color: white"),fe.HbH(null==te.nbrDemanda||null==te.nbrDemanda.nbrStatusDemanda?null:te.nbrDemanda.nbrStatusDemanda.nomeIcone),fe.R7$(2),fe.JRh(null==te.nbrDemanda||null==te.nbrDemanda.nbrStatusDemanda?null:te.nbrDemanda.nbrStatusDemanda.nomeNbrStatusDemanda)}}function ReembolsoComponent_div_1_div_14_Template(te,ne){if(1&te&&(fe.j41(0,"div",14)(1,"p-card"),fe.DNE(2,ReembolsoComponent_div_1_div_14_ng_template_2_Template,4,7,"ng-template",16),fe.j41(3,"div",17)(4,"div",18)(5,"div",19)(6,"span",20),fe.EFF(7,"Solicitação"),fe.k0s(),fe.j41(8,"span"),fe.EFF(9),fe.nI1(10,"date"),fe.k0s()(),fe.j41(11,"div",21)(12,"span",20),fe.EFF(13,"Tipo de reembolso"),fe.k0s(),fe.j41(14,"span"),fe.EFF(15),fe.k0s()(),fe.j41(16,"div",19)(17,"span",20),fe.EFF(18,"Data de reembolso"),fe.k0s(),fe.j41(19,"span"),fe.EFF(20),fe.nI1(21,"date"),fe.k0s()(),fe.j41(22,"div",21)(23,"span",20),fe.EFF(24,"Total reembolso"),fe.k0s(),fe.j41(25,"span"),fe.EFF(26),fe.nI1(27,"currencyFormat"),fe.k0s()()(),fe.j41(28,"div",22),fe.nrm(29,"p-button",23),fe.k0s()()()()),2&te){const te=ne.$implicit;let ie;fe.R7$(9),fe.JRh(fe.i5U(10,5,te.dataCriacaoRegistro,"dd/MM/yyyy HH:mm")),fe.R7$(6),fe.JRh(te.nbrTipoReembolso.nomeNbrTipoReembolso),fe.R7$(5),fe.JRh(null!==(ie=fe.i5U(21,8,te.dataReembolso,"dd/MM/yyyy HH:mm"))&&void 0!==ie?ie:"Não concluído"),fe.R7$(6),fe.SpI("R$ ",fe.bMT(27,11,te.valorReembolso),""),fe.R7$(3),fe.Mz_("routerLink","/area-restrita/demandas/",te.codNbrDemanda,"/reembolso")}}function ReembolsoComponent_div_1_Template(te,ne){if(1&te&&(fe.j41(0,"div",1)(1,"div",2)(2,"div",3),fe.nrm(3,"p-breadcrumb",4),fe.k0s(),fe.j41(4,"div",5)(5,"aviso-area-restrita")(6,"p",6),fe.EFF(7),fe.k0s(),fe.j41(8,"p",6),fe.EFF(9,"Caso necessite solicitar um novo reembolso clique abaixo:"),fe.k0s(),fe.nrm(10,"p-button",7),fe.k0s()(),fe.DNE(11,ReembolsoComponent_div_1_div_11_Template,3,1,"div",8),fe.j41(12,"div",9),fe.DNE(13,ReembolsoComponent_div_1_div_13_Template,3,0,"div",10)(14,ReembolsoComponent_div_1_div_14_Template,30,13,"div",11),fe.k0s()()()),2&te){const te=ne.ngIf,ie=fe.XpG();fe.R7$(3),fe.Y8G("model",ie.itensMenuBreadCrumb),fe.R7$(4),fe.SpI("Prezado(a) ",ie.usuario.nomeUsuario,", seja bem-vindo(a) ao sistema financeiro."),fe.R7$(4),fe.Y8G("ngIf",te.reembolsoLista.length>0),fe.R7$(2),fe.Y8G("ngIf",0===te.reembolsoLista.length),fe.R7$(),fe.Y8G("ngForOf",te.reembolsoLista)}}let sa=(()=>{class ReembolsoComponent{constructor(){this.reembolsoService=(0,fe.WQX)(_r.Q),this.authService=(0,fe.WQX)(rn.u),this.vm$=(0,ra.v)((()=>(this.isLoading=!0,(0,Kt.p)({reembolsoLista:this.reembolsoService.listRecordsAreaRestrita()}).pipe((0,pn.j)((()=>this.isLoading=!1)))))),this.usuario=this.authService.usuario,this.isLoading=!1,this.itensMenuBreadCrumb=[{label:"Área restrita",routerLink:"/area-restrita",icon:"fa-light fa-house text-primary mr-2"},{label:"Reembolso",icon:"fa-light fa-comments-dollar text-primary font-bold mr-2",styleClass:"font-bold"}]}static#e=this.ɵfac=function ReembolsoComponent_Factory(te){return new(te||ReembolsoComponent)};static#t=this.ɵcmp=fe.VBU({type:ReembolsoComponent,selectors:[["br-reembolso"]],standalone:!0,features:[fe.aNF],decls:3,vars:3,consts:[["class","background-area-restrita",4,"ngIf"],[1,"background-area-restrita"],[1,"container-funcao-area-restrita"],[1,"container-breadcrumb"],[3,"model"],[1,"container-aviso"],[1,"text-lg"],["routerLink","/area-restrita/reembolso/novo","icon","pi pi-external-link","label","Solicitar um novo reembolso","styleClass","p-button-secondary"],["class","container-filtro",4,"ngIf"],[1,"container-demandas"],["class","demanda-card",4,"ngIf"],["class","demanda-card",4,"ngFor","ngForOf"],[1,"container-filtro"],[1,"texto-total-filtro"],[1,"demanda-card"],[1,"flex","justify-content-center","text-4xl","w-full","text-center"],["pTemplate","header"],[1,"container-conteudo-card"],[1,"container-descricao-card"],[1,"container-data"],[1,"titulo-card-demanda"],[1,"container-card-assunto"],[1,"container-botao-card"],["label","Ver Detalhes","icon","pi pi-external-link",3,"routerLink"],[1,"header-card"],[1,"status-text"]],template:function ReembolsoComponent_Template(te,ne){1&te&&(fe.nrm(0,"header-empresa"),fe.DNE(1,ReembolsoComponent_div_1_Template,15,5,"div",0),fe.nI1(2,"async")),2&te&&(fe.R7$(),fe.Y8G("ngIf",fe.bMT(2,1,ne.vm$)))},dependencies:[de.MD,de.Sq,de.bT,de.Jj,de.vh,wr,dn.D,dn.Z,Ht.Ei,Io,ko,Qt.Wk,Nr,sn.tm,sn.$n,aa.l],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{padding:20px 10px 0}.container-aviso[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .p-breadcrumb{border:0px;padding:0;padding-left:.5rem}[_ngcontent-%COMP%]:is()   .p-breadcrumb-list[_ngcontent-%COMP%]{gap:.5rem}[_ngcontent-%COMP%]:is()   .p-menuitem-text[_ngcontent-%COMP%]{color:var(--primary-color)}.container-demandas[_ngcontent-%COMP%]{padding:10px 0 30px;display:flex;flex-direction:column;gap:20px}.titulo-card[_ngcontent-%COMP%]{font-size:16px;font-weight:600}.header-card[_ngcontent-%COMP%]{color:#fff;font-weight:700;border-top-left-radius:5px;padding:10px 1.25rem;display:flex;gap:10px;border-top-right-radius:5px;align-items:center}.titulo-card-demanda[_ngcontent-%COMP%]{display:block;font-size:15px;font-weight:700;margin-bottom:.1rem}[_nghost-%COMP%]   .container-demandas[_ngcontent-%COMP%]     .p-card-content{padding:0!important}.container-conteudo-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:10px;width:100%}.container-descricao-card[_ngcontent-%COMP%]{display:flex;gap:20px;flex:1 1}.container-data[_ngcontent-%COMP%]{white-space:nowrap}.container-card-assunto[_ngcontent-%COMP%]{word-wrap:break-word}@media (max-width: 769px){.container-conteudo-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:baseline}.container-descricao-card[_ngcontent-%COMP%]{gap:10px;flex-direction:column}}.container-filtro[_ngcontent-%COMP%]{padding-top:3rem;display:flex;justify-content:space-between;align-items:center}.texto-total-filtro[_ngcontent-%COMP%]{font-size:15px;font-weight:700}.container-breadcrumb[_ngcontent-%COMP%]{margin-bottom:1rem}"]})}return ReembolsoComponent})();var la=ie(1804);const area_do_conveniado_component_c0=()=>({"min-width":"25rem"});function AreaDoConveniadoComponent_div_20_Template(te,ne){if(1&te&&(fe.j41(0,"div",4)(1,"span"),fe.EFF(2,"Conveniado: "),fe.j41(3,"b"),fe.EFF(4),fe.k0s()(),fe.j41(5,"span"),fe.EFF(6,"Associado: "),fe.j41(7,"b"),fe.EFF(8),fe.k0s()()()),2&te){const te=fe.XpG();fe.Y8G("@fade",void 0),fe.R7$(),fe.Aen(fe.lJ4(9,area_do_conveniado_component_c0)),fe.Y8G("@fade",void 0),fe.R7$(3),fe.JRh(te.nomeConveniado||"Não encontrado"),fe.R7$(),fe.Aen(fe.lJ4(10,area_do_conveniado_component_c0)),fe.Y8G("@fade",void 0),fe.R7$(3),fe.JRh(te.nomeAssociado||"Não encontrado")}}const area_do_conveniado_component_c1=()=>({width:"25rem"});let da=(()=>{class AreaDoConveniadoComponent{constructor(){this.http=(0,fe.WQX)(ue.Qq),this.brMessageService=(0,fe.WQX)(bn.h),this.environmentService=(0,fe.WQX)(oo.v),this.isLoading=!1,this.cpfConveniado="",this.cpfAssociado="",this.nomeConveniado="",this.nomeAssociado=""}searchConveniado(){this.isLoading=!0,this.http.post(`${this.environmentService.environment.serverUrl}/ger-fornecedor/filtro`,{cpfFornecedor:[this.cpfConveniado]}).pipe((0,tn.W)((te=>(this.brMessageService.error(te.error.message),un.w))),(0,pn.j)((()=>this.isLoading=!0))).subscribe((te=>{te.data.length>0?this.nomeConveniado=te.data[0].nomeFornecedor:this.brMessageService.error("Não foi encontrado nenhum conveniado com o CPF informado.")}))}searchAssociado(){this.isLoading=!0,this.http.post(`${this.environmentService.environment.serverUrl}/vt-centro-custo/filtro`,{cpfCliente:[this.cpfAssociado]}).pipe((0,tn.W)((te=>(this.brMessageService.error(te.error.message),un.w))),(0,pn.j)((()=>this.isLoading=!0))).subscribe((te=>{if(te.data.length>0){let ne=te.data[0].nomeCc;te.data[0].dataDesligamento&&(ne="DESLIGADO"),this.nomeAssociado=ne}else this.brMessageService.error("Não foi encontrado nenhum associado com o CPF informado.")}))}static#e=this.ɵfac=function AreaDoConveniadoComponent_Factory(te){return new(te||AreaDoConveniadoComponent)};static#t=this.ɵcmp=fe.VBU({type:AreaDoConveniadoComponent,selectors:[["area-do-conveniado"]],standalone:!0,features:[fe.aNF],decls:21,vars:11,consts:[[1,"flex","flex-column","justify-content-center","align-items-center"],[1,"container-aviso"],[1,"flex","flex-column","gap-3"],[1,"text-lg"],[1,"p-3","pt-6","flex","flex-wrap","justify-content-center","gap-3"],["id","cpfConveniado","mask","999.999.999-99",3,"ngModel","ngModelChange","onComplete"],["for","cpfConveniado"],["id","cpfAssociado","mask","999.999.999-99",3,"ngModel","disabled","ngModelChange","onComplete"],["for","cpfAssociado"],["class","p-3 pt-6 flex flex-wrap justify-content-center gap-3",4,"ngIf"]],template:function AreaDoConveniadoComponent_Template(te,ne){1&te&&(fe.nrm(0,"header-empresa"),fe.j41(1,"div",0)(2,"div",1)(3,"aviso-area-restrita")(4,"div",2)(5,"span",3),fe.EFF(6,"ATENÇÃO: para ter acesso às informações, siga as instruções a seguir:"),fe.k0s(),fe.j41(7,"span",3),fe.EFF(8,"Digite o CPF do conveniado ao SINPOL-SC."),fe.k0s(),fe.j41(9,"span",3),fe.EFF(10,"Digite o CPF que deseja consultar."),fe.k0s()()()(),fe.j41(11,"div",4)(12,"p-floatLabel")(13,"p-inputMask",5),fe.mxI("ngModelChange",(function AreaDoConveniadoComponent_Template_p_inputMask_ngModelChange_13_listener(te){return fe.DH7(ne.cpfConveniado,te)||(ne.cpfConveniado=te),te})),fe.bIt("onComplete",(function AreaDoConveniadoComponent_Template_p_inputMask_onComplete_13_listener(){return ne.searchConveniado()})),fe.k0s(),fe.j41(14,"label",6),fe.EFF(15,"CPF do conveniado"),fe.k0s()(),fe.j41(16,"p-floatLabel")(17,"p-inputMask",7),fe.mxI("ngModelChange",(function AreaDoConveniadoComponent_Template_p_inputMask_ngModelChange_17_listener(te){return fe.DH7(ne.cpfAssociado,te)||(ne.cpfAssociado=te),te})),fe.bIt("onComplete",(function AreaDoConveniadoComponent_Template_p_inputMask_onComplete_17_listener(){return ne.searchAssociado()})),fe.k0s(),fe.j41(18,"label",8),fe.EFF(19,"CPF do associado"),fe.k0s()()(),fe.DNE(20,AreaDoConveniadoComponent_div_20_Template,9,11,"div",9),fe.k0s()),2&te&&(fe.R7$(11),fe.Y8G("@fade",void 0),fe.R7$(2),fe.Aen(fe.lJ4(9,area_do_conveniado_component_c1)),fe.R50("ngModel",ne.cpfConveniado),fe.R7$(4),fe.Aen(fe.lJ4(10,area_do_conveniado_component_c1)),fe.R50("ngModel",ne.cpfAssociado),fe.Y8G("disabled",!ne.cpfConveniado),fe.R7$(3),fe.Y8G("ngIf",ne.cpfConveniado&&ne.cpfAssociado))},dependencies:[de.MD,de.bT,yn.f,yn.V,Pr.Zn,Pr.N5,wr,an.YN,an.BC,an.vS,Nr],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{padding:20px 10px 0}.container-aviso[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .p-breadcrumb{border:0px;padding:0;padding-left:.5rem}[_ngcontent-%COMP%]:is()   .p-breadcrumb-list[_ngcontent-%COMP%]{gap:.5rem}[_ngcontent-%COMP%]:is()   .p-menuitem-text[_ngcontent-%COMP%]{color:var(--primary-color)}"],data:{animation:[la.r]}})}return AreaDoConveniadoComponent})();function Badge_span_0_Template(te,ne){if(1&te&&(fe.j41(0,"span",1),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG();fe.HbH(te.styleClass),fe.Y8G("ngClass",te.containerClass())("ngStyle",te.style),fe.R7$(),fe.JRh(te.value)}}let ua=(()=>{class Badge{styleClass;style;badgeSize;severity;value;badgeDisabled=!1;set size(te){this._size=te,console.warn("size property is deprecated and will removed in v18, use badgeSize instead.")}get size(){return this._size}_size;containerClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":null!=this.value&&1===String(this.value).length,"p-badge-lg":"large"===this.badgeSize||"large"===this.size,"p-badge-xl":"xlarge"===this.badgeSize||"xlarge"===this.size,[`p-badge-${this.severity}`]:this.severity}}static ɵfac=function Badge_Factory(te){return new(te||Badge)};static ɵcmp=fe.VBU({type:Badge,selectors:[["p-badge"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",badgeSize:"badgeSize",severity:"severity",value:"value",badgeDisabled:[fe.Mj6.HasDecoratorInputTransform,"badgeDisabled","badgeDisabled",fe.L39],size:"size"},features:[fe.GFd],decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"]],template:function Badge_Template(te,ne){1&te&&fe.DNE(0,Badge_span_0_Template,2,5,"span",0),2&te&&fe.Y8G("ngIf",!ne.badgeDisabled)},dependencies:[de.YU,de.bT,de.B3],styles:["@layer primeng{.p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}.p-overlay-badge{position:relative}.p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}.p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}.p-badge-no-gutter{padding:0;border-radius:50%}}\n"],encapsulation:2,changeDetection:0})}return Badge})(),pa=(()=>{class BadgeModule{static ɵfac=function BadgeModule_Factory(te){return new(te||BadgeModule)};static ɵmod=fe.$C({type:BadgeModule});static ɵinj=fe.G2t({imports:[de.MD,Ht.Gg]})}return BadgeModule})();var ha=ie(1178),Ca=ie(7760),wa=ie(2432),Ta=ie(1492);let Da=(()=>{class CancelamentoModal{constructor(){this.formBuilder=(0,fe.WQX)(an.ok),this.ref=(0,fe.WQX)(Ut.Pw),this.config=(0,fe.WQX)(Ut.sb),this.form=this.formBuilder.group({motivo:[null,an.k0.required]}),this.config.data?.onConfirmarEmitter.subscribe({next:()=>{this.config.data?.onConfirmar(),this.ref.close()}})}static#e=this.ɵfac=function CancelamentoModal_Factory(te){return new(te||CancelamentoModal)};static#t=this.ɵcmp=fe.VBU({type:CancelamentoModal,selectors:[["app-cancelamento-modal"]],standalone:!0,features:[fe.Jv_([Ut.o3]),fe.aNF],decls:2,vars:1,consts:[[1,"container-modal",3,"formGroup"],["label","Motivo do cancelamento","formControlName","motivo","altura","10rem"]],template:function CancelamentoModal_Template(te,ne){1&te&&(fe.j41(0,"div",0),fe.nrm(1,"br-editor",1),fe.k0s()),2&te&&fe.Y8G("formGroup",ne.form)},dependencies:[de.MD,Ta.P,an.X1,an.BC,an.cb,an.j4,an.JD,sn.tm],styles:[".container-modal{padding-top:1rem;display:flex;flex-direction:column}  .container-modal .container-info-pessoa{display:flex;justify-content:center;align-items:center;gap:.5rem;width:100%}  .container-modal .container-info-pessoa .foto-pessoa .p-avatar{width:6rem;height:6rem;font-size:4rem}  .container-modal .container-info-pessoa .info-pessoa{display:flex;flex-direction:column;gap:.5rem}  .container-modal .container-info-pessoa .info-pessoa .nome{font-weight:600;font-size:1.5rem}  .container-modal .container-curriculo{display:flex;width:100%;padding:1rem}"]})}return CancelamentoModal})();var xa=ie(1683);let Ma=(()=>{class PessoaEmpresaService extends Un.O7{constructor(){super("pessoa-empresa"),this.tabService=(0,fe.WQX)(Yn.r),this.brListName="Pessoa",this.brListNamePlural="Pessoas",this.columns$=new zn.t([{formControlName:"codPessoaEmpresa",fieldPath:"codPessoaEmpresa",label:"ID"},{label:"Nome",formControlName:"nomePessoaEmpresa",fieldPath:"nomePessoaEmpresa"},{label:"Tipo de pessoa",formControlName:"codTipoPessoaEmpresa",fieldPath:"tipoPessoaEmpresa.nomeTipoPessoaEmpresa"},{label:"CPF",formControlName:"cpf",fieldPath:"cpf"},{label:"Data de nascimento",formControlName:"dataNascimento",fieldPath:"dataNascimento",typeColumn:Un.Ii.Date},{label:"E-mail",formControlName:"emailPessoa",fieldPath:"emailPessoa"},{label:"Celular",formControlName:"celularPessoa",fieldPath:"celularPessoa"},{label:"CEP",formControlName:"cep",fieldPath:"cep"},{label:"Endereço",formControlName:"enderecoCompleto",fieldPath:"enderecoCompleto"},{label:"Bairro",fieldPath:"bairro.nomeBairro",formControlName:"codBairro"},{label:"Cidade",fieldPath:"vtcidade.nomeCidadeUf",formControlName:"codCidade"},{label:"Função",fieldPath:"funcaoEmpresa.nomeFuncaoEmpresa",formControlName:"codFuncaoEmpresa"},{label:"Usuário",fieldPath:"lbrUsuario.nomeUsuario",formControlName:"codLbrUsuario"},{label:"Grupo pessoal",fieldPath:"grupoPessoal.nomeGrupoPessoal",formControlName:"codGrupoPessoal"},{label:"Ativo",formControlName:"registroAtivo",fieldPath:"registroAtivo",typeColumn:Un.Ii.CheckBox}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codPessoaEmpresa",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Foto",formControlName:"codDocEmpresaFoto",control:new an.MJ(null),typeInput:Un.St.Upload,acceptedFiles:["image/*"]},{label:"Nome da pessoa",formControlName:"nomePessoaEmpresa",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Tipo de pessoa",formControlName:"codTipoPessoaEmpresa",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeTipoPessoaEmpresa",optionValue:"codTipoPessoaEmpresa",foreignEndpoint:"tipo-pessoa-empresa"},{label:"CPF",formControlName:"cpf",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Mask,inputMask:"999.999.999-99"},{label:"Data de nascimento",formControlName:"dataNascimento",control:new an.MJ(null),typeInput:Un.St.Date},{label:"Função na empresa",formControlName:"codFuncaoEmpresa",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeFuncaoEmpresa",optionValue:"codFuncaoEmpresa",foreignEndpoint:"funcao-empresa"},{label:"Usuário relacionado",formControlName:"codLbrUsuario",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpf",foreignEndpoint:"lbr-usuario"},{label:"Grupo pessoal",formControlName:"codGrupoPessoal",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeGrupoPessoal",optionValue:"codGrupoPessoal",foreignEndpoint:"grupo-pessoal"},{label:"Currículo",formControlName:"curriculo",control:new an.MJ(null),typeInput:Un.St.Editor},{label:"Registro ativo",formControlName:"registroAtivo",control:new an.MJ(null),typeInput:Un.St.CheckBox}]},{header:"Contato",controls:[{label:"E-mail",formControlName:"emailPessoa",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Telefone celular",formControlName:"celularPessoa",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Mask,inputMask:"(99) 99999-9999"}]},{header:"Endereço",controls:[{label:"CEP",formControlName:"cep",control:new an.MJ(null),typeInput:Un.St.Mask,inputMask:"99.999-999"},{label:"Logradouro completo com número e complemento",formControlName:"enderecoCompleto",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Bairro",formControlName:"codBairro",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeBairro",optionValue:"codBairro",foreignEndpoint:"bairro"},{label:"Cidade",formControlName:"codCidade",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeCidadeUf",optionValue:"codCidade",foreignEndpoint:"vt-cidade"}]}],this.menuMais=[{label:"Gerenciar Usuário",icon:"pi pi-users",command:()=>{if(this.selectedRows.length>0){const te=this.selectedRows.map((te=>String(te.codLbrUsuario||0)));this.tabService.open({component:Zn,data:{appliedFilters:{codLbrUsuario:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}}]}static#e=this.ɵfac=function PessoaEmpresaService_Factory(te){return new(te||PessoaEmpresaService)};static#t=this.ɵprov=fe.jDH({token:PessoaEmpresaService,factory:PessoaEmpresaService.ɵfac,providedIn:"root"})}return PessoaEmpresaService})();function MostrarCurriculoModal_div_0_p_avatar_3_Template(te,ne){if(1&te&&fe.nrm(0,"p-avatar",10),2&te){const te=fe.XpG(2);fe.Y8G("image",null==te.pessoa.docEmpresa?null:te.pessoa.docEmpresa.url)}}function MostrarCurriculoModal_div_0_p_avatar_4_Template(te,ne){1&te&&fe.nrm(0,"p-avatar",11)}function MostrarCurriculoModal_div_0_Template(te,ne){if(1&te&&(fe.j41(0,"div",1)(1,"div",2)(2,"div",3),fe.DNE(3,MostrarCurriculoModal_div_0_p_avatar_3_Template,1,1,"p-avatar",4)(4,MostrarCurriculoModal_div_0_p_avatar_4_Template,1,0,"p-avatar",5),fe.k0s(),fe.j41(5,"div",6)(6,"span",7),fe.EFF(7),fe.k0s()()(),fe.j41(8,"div",8),fe.nrm(9,"br-editor-view",9),fe.k0s()()),2&te){const te=fe.XpG();let ne;fe.R7$(3),fe.Y8G("ngIf",null==te.pessoa.docEmpresa?null:te.pessoa.docEmpresa.url),fe.R7$(),fe.Y8G("ngIf",!(null!=te.pessoa.docEmpresa&&te.pessoa.docEmpresa.url)),fe.R7$(3),fe.JRh(te.pessoa.nomePessoaEmpresa),fe.R7$(2),fe.Y8G("texto",null!==(ne=te.pessoa.curriculo)&&void 0!==ne?ne:"Currículo não informado")}}let Na=(()=>{class MostrarCurriculoModal{constructor(te,ne){this.pessoaEmpresaService=te,this.brMessageService=ne,this.formBuilder=(0,fe.WQX)(an.ok),this.ref=(0,fe.WQX)(Ut.Pw),this.config=(0,fe.WQX)(Ut.sb),this.form=this.formBuilder.group({}),this.isLoading=!1}ngOnInit(){this.isLoading=!0,this.pessoaEmpresaService.getRecord(Number(this.config.data?.codPessoaEmpresa)).pipe((0,tn.W)((te=>(this.brMessageService.error(te.error.message),this.ref.close(),un.w))),(0,Jt.M)((te=>{this.pessoa=te})),(0,pn.j)((()=>this.isLoading=!1))).subscribe()}static#e=this.ɵfac=function MostrarCurriculoModal_Factory(te){return new(te||MostrarCurriculoModal)(fe.rXU(Ma),fe.rXU(bn.h))};static#t=this.ɵcmp=fe.VBU({type:MostrarCurriculoModal,selectors:[["app-mostrar-curriculo"]],standalone:!0,features:[fe.Jv_([Ut.o3]),fe.aNF],decls:1,vars:1,consts:[["class","container-modal",4,"ngIf"],[1,"container-modal"],[1,"container-info-pessoa"],[1,"foto-pessoa"],["shape","circle","size","xlarge",3,"image",4,"ngIf"],["icon","pi pi-user","shape","circle","size","xlarge",4,"ngIf"],[1,"info-pessoa"],[1,"nome"],[1,"container-curriculo"],[3,"texto"],["shape","circle","size","xlarge",3,"image"],["icon","pi pi-user","shape","circle","size","xlarge"]],template:function MostrarCurriculoModal_Template(te,ne){1&te&&fe.DNE(0,MostrarCurriculoModal_div_0_Template,10,4,"div",0),2&te&&fe.Y8G("ngIf",ne.pessoa)},dependencies:[de.MD,de.bT,Fn,Pn,xa.E,an.X1,sn.tm],styles:["[_nghost-%COMP%]     .container-modal{padding-top:1rem;display:flex;flex-direction:column}[_nghost-%COMP%]     .container-modal .container-info-pessoa{display:flex;justify-content:center;align-items:center;gap:.5rem;width:100%}[_nghost-%COMP%]     .container-modal .container-info-pessoa .foto-pessoa .p-avatar{width:6rem;height:6rem;font-size:4rem}[_nghost-%COMP%]     .container-modal .container-info-pessoa .info-pessoa{display:flex;flex-direction:column;gap:.5rem}[_nghost-%COMP%]     .container-modal .container-info-pessoa .info-pessoa .nome{font-weight:600;font-size:1.5rem}[_nghost-%COMP%]     .container-modal .container-curriculo{display:flex;width:100%;padding:1rem}[_nghost-%COMP%]     .container-modal .container-curriculo .ck-content{display:block!important}"]})}return MostrarCurriculoModal})();const Ra=["alterar"];function AtendimentosComponent_ng_template_1_Template(te,ne){1&te&&(fe.j41(0,"tr")(1,"th",6),fe.EFF(2,"Operações"),fe.k0s(),fe.j41(3,"th"),fe.EFF(4,"Nome do profissional"),fe.k0s(),fe.j41(5,"th",6),fe.EFF(6,"Data de solicitação"),fe.k0s(),fe.j41(7,"th",6),fe.EFF(8,"Data do agendamento"),fe.k0s(),fe.j41(9,"th",6),fe.EFF(10,"Status"),fe.k0s()())}function AtendimentosComponent_ng_template_2_p_button_4_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"p-button",12),fe.bIt("onClick",(function AtendimentosComponent_ng_template_2_p_button_4_Template_p_button_onClick_0_listener(){fe.eBV(te);const ne=fe.XpG().$implicit,ie=fe.XpG();return fe.Njj(ie.cancelaAtendimento(ne))})),fe.k0s()}}function AtendimentosComponent_ng_template_2_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"tr")(1,"td")(2,"div",7)(3,"p-button",8),fe.bIt("onClick",(function AtendimentosComponent_ng_template_2_Template_p_button_onClick_3_listener(){const ne=fe.eBV(te).$implicit,ie=fe.XpG();return fe.Njj(ie.abreModalDetalhesDemanda(ne.codNbrDemanda))})),fe.k0s(),fe.DNE(4,AtendimentosComponent_ng_template_2_p_button_4_Template,1,0,"p-button",9),fe.k0s()(),fe.j41(5,"td")(6,"span",10),fe.bIt("click",(function AtendimentosComponent_ng_template_2_Template_span_click_6_listener(){const ne=fe.eBV(te).$implicit,ie=fe.XpG();return fe.Njj(ie.abreModalCurriculo(ne.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario))})),fe.EFF(7),fe.k0s()(),fe.j41(8,"td",6),fe.EFF(9),fe.nI1(10,"date"),fe.k0s(),fe.j41(11,"td",6),fe.EFF(12),fe.nI1(13,"date"),fe.k0s(),fe.j41(14,"td",6),fe.nrm(15,"p-tag",11),fe.k0s()()}if(2&te){const te=ne.$implicit,ie=fe.XpG();fe.R7$(4),fe.Y8G("ngIf",ie.deveMostrarCancelar(te)),fe.R7$(2),fe.Y8G("autoHide",!1),fe.R7$(),fe.SpI(" ",te.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.nomeUsuario," "),fe.R7$(2),fe.SpI(" ",fe.i5U(10,8,te.dataInicial,"dd/MM/yyyy HH:mm")," "),fe.R7$(3),fe.SpI(" ",fe.i5U(13,11,te.dataHoraAgendamento,"dd/MM/yyyy HH:mm")," "),fe.R7$(3),fe.Aen(ie.getTagStyle(te.nbrStatusDemanda.corIcone)),fe.Y8G("value",te.nbrStatusDemanda.nomeNbrStatusDemanda)}}function AtendimentosComponent_ng_template_3_Template(te,ne){1&te&&(fe.j41(0,"tr")(1,"td",13),fe.EFF(2,"Não foi encontrado nenhum atendimento."),fe.k0s()())}function AtendimentosComponent_br_list_details_4_Template(te,ne){if(1&te&&fe.nrm(0,"br-list-details",14),2&te){const te=fe.XpG();fe.Y8G("brListService",te.nbrDemandaPsicologicoService)("modal",!0)("alterarTemplate",te.alterarTemplate)}}function AtendimentosComponent_ng_template_5_Template(te,ne){if(1&te&&fe.nrm(0,"demanda-linha-do-tempo",15),2&te){const te=fe.XpG();fe.Y8G("nbrDemandaService",te.nbrDemandaPsicologicoService)("standalone",!0)}}let La=(()=>{class AtendimentosComponent{constructor(){this.demandaService=(0,fe.WQX)(io.m),this.brMessageService=(0,fe.WQX)(bn.h),this.brDialogService=(0,fe.WQX)(fi.i),this.nbrDemandaPsicologicoService=(0,fe.WQX)(wa.T),this.changeDetectorRef=(0,fe.WQX)(fe.gRc),this.telaIniciada=!1,this.qtdAtendimentos=new fe.bkB,this.demandas=[],this.isLoading=!1}ngOnInit(){this.atualizaLista()}atualizaLista(){this.isLoading=!0,this.demandaService.getListaPsicologicoAreaRestrita({tipoLista:"atendimento"}).pipe((0,tn.W)((te=>(this.brMessageService.error(te.error.message),un.w))),(0,pn.j)((()=>this.isLoading=!1))).subscribe((te=>{this.demandas=te,this.qtdAtendimentos.emit(te.length),this.isLoading=!1}))}getTagStyle(te){return{backgroundColor:te}}cancelaAtendimento(te){this.brDialogService.open(Da,{header:`Cancelar Atendimento com ${te.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.nomeUsuario}`,data:{codDemanda:te.codNbrDemanda},onConfirmar:()=>{this.demandaService.aceitaEncerramento(te.codNbrDemanda).subscribe({next:()=>{this.brMessageService.success("Cancelamento realizado com sucesso!")},error:te=>{this.brMessageService.error("Falha na solicitação.")}})}})}ngAfterViewInit(){this.telaIniciada=!0,this.changeDetectorRef.detectChanges()}abreModalDetalhesDemanda(te){this.nbrDemandaPsicologicoService.state.podeInserir=!1,this.nbrDemandaPsicologicoService.state.podeVer=!0,this.nbrDemandaPsicologicoService.openDetails(te)}abreModalCurriculo(te){this.brDialogService.open(Na,{header:"Currículo",data:{codPessoaEmpresa:te.chaveTabela}})}deveMostrarCancelar(te){return!te.dataFinal&&(!te.dataEncerramento&&!te.dataHoraCancelamento)}static#e=this.ɵfac=function AtendimentosComponent_Factory(te){return new(te||AtendimentosComponent)};static#t=this.ɵcmp=fe.VBU({type:AtendimentosComponent,selectors:[["atendimentos"]],viewQuery:function AtendimentosComponent_Query(te,ne){if(1&te&&fe.GBs(Ra,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.alterarTemplate=te.first)}},outputs:{qtdAtendimentos:"qtdAtendimentos"},standalone:!0,features:[fe.Jv_([Ut.o3,io.m]),fe.aNF],decls:7,vars:4,consts:[["scrollHeight","flex",3,"value","loading","scrollable"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["appendTo","body",3,"brListService","modal","alterarTemplate",4,"ngIf"],["alterar",""],[1,"centro"],[1,"operacoes"],["label","Detalhes","styleClass","p-button-rounded p-button-secondary p-button-raised","icon","pi pi-external-link",3,"onClick"],["label","Cancelar","styleClass","p-button-rounded p-button-danger p-button-raised","icon","pi pi-times",3,"onClick",4,"ngIf"],["pTooltip","Visualizar currículo","tooltipPosition","bottom",1,"cursor-pointer",3,"autoHide","click"],[3,"value"],["label","Cancelar","styleClass","p-button-rounded p-button-danger p-button-raised","icon","pi pi-times",3,"onClick"],["colspan","5"],["appendTo","body",3,"brListService","modal","alterarTemplate"],[3,"nbrDemandaService","standalone"]],template:function AtendimentosComponent_Template(te,ne){1&te&&(fe.j41(0,"p-table",0),fe.DNE(1,AtendimentosComponent_ng_template_1_Template,11,0,"ng-template",1)(2,AtendimentosComponent_ng_template_2_Template,16,14,"ng-template",2)(3,AtendimentosComponent_ng_template_3_Template,3,0,"ng-template",3),fe.k0s(),fe.DNE(4,AtendimentosComponent_br_list_details_4_Template,1,3,"br-list-details",4)(5,AtendimentosComponent_ng_template_5_Template,1,2,"ng-template",null,5,fe.C5r)),2&te&&(fe.Y8G("value",ne.demandas)("loading",ne.isLoading)("scrollable",!0),fe.R7$(4),fe.Y8G("ngIf",ne.telaIniciada))},dependencies:[de.MD,de.bT,de.vh,Pi.bG,Pi.XI,Ht.Ei,Ca.$,Ca.v,Ao.S,Ao.m,sn.tm,sn.$n,Fo.M,kr.w],styles:["[_nghost-%COMP%]     .p-datatable-wrapper{border-radius:6px}@media (max-width: 530px){{%BLOCK%}}[_nghost-%COMP%]     .centro{text-align:center!important;gap:.5rem}[_nghost-%COMP%]     .operacoes{display:flex;justify-content:center;gap:.5rem}  .br-details-content{padding:0!important}  .details-dialog{margin-left:0!important}[_nghost-%COMP%]     .p-tag{color:#fff}"]})}return AtendimentosComponent})();function SolicitarAgendamentoModal_p_avatar_4_Template(te,ne){if(1&te&&fe.nrm(0,"p-avatar",11),2&te){const te=fe.XpG();fe.Y8G("image",null==te.pessoa.docEmpresa?null:te.pessoa.docEmpresa.url)}}function SolicitarAgendamentoModal_p_avatar_5_Template(te,ne){1&te&&fe.nrm(0,"p-avatar",12)}function SolicitarAgendamentoModal_div_10_Template(te,ne){if(1&te&&(fe.j41(0,"div",13)(1,"p-floatLabel"),fe.nrm(2,"input",14),fe.j41(3,"label",15),fe.EFF(4,"Nome do solicitante"),fe.k0s()(),fe.j41(5,"p-floatLabel"),fe.nrm(6,"input",16),fe.j41(7,"label",17),fe.EFF(8,"E-mail do solicitante"),fe.k0s()(),fe.nrm(9,"br-foreign-key",18)(10,"br-editor",19),fe.k0s()),2&te){const te=fe.XpG();fe.Y8G("formGroup",te.form)}}let Oa=(()=>{class SolicitarAgendamentoModal{constructor(te,ne,ie){this.authService=te,this.pessoaEmpresaService=ne,this.demandaService=ie,this.formBuilder=(0,fe.WQX)(an.ok),this.ref=(0,fe.WQX)(Ut.Pw),this.loadingService=(0,fe.WQX)(Fi.T),this.confirmationService=(0,fe.WQX)(Ht.td),this.validadorFormularioService=(0,fe.WQX)(Zr.E),this.config=(0,fe.WQX)(Ut.sb),this.nbrTipoAtendimentoService=(0,fe.WQX)(vr.Q),this.isLoading=!1,this.config.data?.onConfirmarEmitter.subscribe((()=>this.salvar()))}ngOnInit(){this.criarFormulario().subscribe((te=>{this.form=te,this.form.get("email")?.disable(),this.form.get("nome")?.disable()})),this.isLoading=!0;const te=this.pessoaEmpresaService.getRecord(Number(this.config.data?.codPessoaEmpresa));(0,Kt.p)({pessoa:te}).subscribe((te=>{this.isLoading=!1,this.pessoa=te.pessoa}))}criarFormulario(){return this.nbrTipoAtendimentoService.getRecord(2).pipe((0,Zt.T)((te=>this.formBuilder.group({assunto:[`Atendimento com ${this.config.data?.nomePessoaEmpresa}`],descrDemanda:[te.descrPadrao,an.k0.required],codNbrFormaAtendimento:[te.codNbrFormaAtendPadrao,an.k0.required],codNbrModoAtendimento:[te.codNbrModoAtendPadrao],codNbrAreaAtendimento:[te.codNbrAreaAtendPadrao],codNbrTipoAtendimento:[2],modoAtendimento:["SITE"],dataInicial:[new Date],codLbrUsuarioExecutor:[this.config.data?.codLbrUsuario],codLbrUsuario:[this.authService.usuario?.codLbrUsuario],nome:[this.authService.usuario?.nomeUsuario],email:[this.authService.usuario?.emailUsuario]}))))}salvar(){this.loadingService.show();const te=this.validadorFormularioService.validaFormulario(this.form);if(!te.valido)return this.confirmationService.confirm({message:te.mensagemErro,header:"Aviso",icon:Ht.EE.EXCLAMATION_TRIANGLE,dismissableMask:!0,rejectVisible:!1,acceptVisible:!1}),void this.loadingService.hide();this.demandaService.createRecord(this.form.value).subscribe({next:()=>{this.config.data?.onConfirmar({sucesso:!0}),this.ref.close()},error:te=>{this.config.data?.onConfirmar({sucesso:!1,err:te})}})}static#e=this.ɵfac=function SolicitarAgendamentoModal_Factory(te){return new(te||SolicitarAgendamentoModal)(fe.rXU(rn.u),fe.rXU(Ma),fe.rXU(io.m))};static#t=this.ɵcmp=fe.VBU({type:SolicitarAgendamentoModal,selectors:[["app-solicitar-agendamento"]],standalone:!0,features:[fe.Jv_([Ut.o3,Zr.E,Fi.T,Ht.td]),fe.aNF],decls:12,vars:5,consts:[[1,"container-modal"],["modal",""],[1,"container-info-pessoa"],[1,"foto-pessoa"],["shape","circle","size","xlarge",3,"image",4,"ngIf"],["icon","pi pi-user","shape","circle","size","xlarge",4,"ngIf"],[1,"info-pessoa"],[1,"nome"],[1,"container-agendamento"],["class","container-form",3,"formGroup",4,"ngIf"],[3,"appendTo"],["shape","circle","size","xlarge",3,"image"],["icon","pi pi-user","shape","circle","size","xlarge"],[1,"container-form",3,"formGroup"],["id","nome","type","text","formControlName","nome","brInputText",""],["for","nome"],["id","email","type","text","formControlName","email","brInputText",""],["for","email"],["label","Forma de atendimento","formControlName","codNbrFormaAtendimento","endpoint","nbr-forma-atendimento","optionLabel","nomeNbrFormaAtendimento","optionValue","codNbrFormaAtendimento"],["label","Observações sobre a solicitação","formControlName","descrDemanda","altura","8rem",2,"width","100%"]],template:function SolicitarAgendamentoModal_Template(te,ne){if(1&te&&(fe.j41(0,"div",0,1)(2,"div",2)(3,"div",3),fe.DNE(4,SolicitarAgendamentoModal_p_avatar_4_Template,1,1,"p-avatar",4)(5,SolicitarAgendamentoModal_p_avatar_5_Template,1,0,"p-avatar",5),fe.k0s(),fe.j41(6,"div",6)(7,"span",7),fe.EFF(8),fe.k0s()()(),fe.j41(9,"div",8),fe.DNE(10,SolicitarAgendamentoModal_div_10_Template,11,1,"div",9),fe.k0s(),fe.nrm(11,"p-confirmDialog",10),fe.k0s()),2&te){const te=fe.sdS(1);fe.R7$(4),fe.Y8G("ngIf",null==ne.pessoa||null==ne.pessoa.docEmpresa?null:ne.pessoa.docEmpresa.url),fe.R7$(),fe.Y8G("ngIf",!(null!=ne.pessoa&&(null!=ne.pessoa.docEmpresa&&ne.pessoa.docEmpresa.url))),fe.R7$(3),fe.JRh(null==ne.pessoa?null:ne.pessoa.nomePessoaEmpresa),fe.R7$(2),fe.Y8G("ngIf",ne.form),fe.R7$(),fe.Y8G("appendTo",te)}},dependencies:[de.MD,de.bT,Fn,Pn,sn.tm,yn.f,yn.V,_n.B,Ta.P,an.X1,an.me,an.BC,an.cb,an.j4,an.JD,Ur.L,hr.kr,Po.F,Po.T],styles:["[_nghost-%COMP%]     .container-modal{padding-top:1rem;display:flex;flex-direction:column}[_nghost-%COMP%]     .container-modal .container-info-pessoa{display:flex;justify-content:center;align-items:center;gap:.5rem;width:100%}[_nghost-%COMP%]     .container-modal .container-info-pessoa .foto-pessoa .p-avatar{width:6rem;height:6rem;font-size:4rem}[_nghost-%COMP%]     .container-modal .container-info-pessoa .info-pessoa{display:flex;flex-direction:column;gap:.5rem}[_nghost-%COMP%]     .container-modal .container-info-pessoa .info-pessoa .nome{font-weight:600;font-size:1.5rem}[_nghost-%COMP%]     .container-modal .container-agendamento{display:flex;width:100%;padding:1rem}.container-grid[_ngcontent-%COMP%]{display:flex;gap:10px}.container-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}@media (max-width: 769px){.container-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:baseline;gap:2rem}}.container-form[_ngcontent-%COMP%]{padding-top:2rem;display:flex;flex-wrap:wrap;row-gap:2rem;column-gap:1rem;width:100%;flex-direction:column}.container-form[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%}.container-form[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{display:flex;width:100%;gap:2rem}  .p-inputtext,   .p-dropdown{width:100%!important}"]})}return SolicitarAgendamentoModal})();function ConveniadosComponent_ng_template_1_Template(te,ne){1&te&&(fe.j41(0,"tr")(1,"th",5),fe.EFF(2,"Operação"),fe.k0s(),fe.j41(3,"th",5),fe.EFF(4,"Foto"),fe.k0s(),fe.j41(5,"th"),fe.EFF(6,"Nome do profissional"),fe.k0s(),fe.j41(7,"th"),fe.EFF(8,"Atividade"),fe.k0s(),fe.j41(9,"th"),fe.EFF(10,"Localização (município)"),fe.k0s()())}function ConveniadosComponent_ng_template_2_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"tr")(1,"td")(2,"div",6)(3,"p-button",7),fe.bIt("onClick",(function ConveniadosComponent_ng_template_2_Template_p_button_onClick_3_listener(){const ne=fe.eBV(te).$implicit,ie=fe.XpG();return fe.Njj(ie.abreModalAgendamento(ne))})),fe.k0s()()(),fe.j41(4,"td",5)(5,"p-avatar",8),fe.bIt("onImageError",(function ConveniadosComponent_ng_template_2_Template_p_avatar_onImageError_5_listener(ne){fe.eBV(te);const ie=fe.XpG();return fe.Njj(ie.onImageError(ne))})),fe.k0s(),fe.nrm(6,"br"),fe.j41(7,"p-button",9),fe.bIt("onClick",(function ConveniadosComponent_ng_template_2_Template_p_button_onClick_7_listener(){const ne=fe.eBV(te).$implicit,ie=fe.XpG();return fe.Njj(ie.abreModalCurriculo(ne))})),fe.k0s()(),fe.j41(8,"td")(9,"span",10),fe.bIt("click",(function ConveniadosComponent_ng_template_2_Template_span_click_9_listener(){const ne=fe.eBV(te).$implicit,ie=fe.XpG();return fe.Njj(ie.abreModalCurriculo(ne))})),fe.EFF(10),fe.k0s()(),fe.j41(11,"td"),fe.EFF(12),fe.k0s(),fe.j41(13,"td"),fe.EFF(14),fe.k0s()()}if(2&te){const te=ne.$implicit;fe.R7$(5),fe.Y8G("image",null==te.docEmpresa?null:te.docEmpresa.url),fe.R7$(4),fe.Y8G("autoHide",!1),fe.R7$(),fe.SpI(" ",te.nomePessoaEmpresa," "),fe.R7$(2),fe.JRh(te.tipoPessoaEmpresa.nomeTipoPessoaEmpresa),fe.R7$(2),fe.JRh(null==te.vtcidade?null:te.vtcidade.nomeCidadeUf)}}function ConveniadosComponent_ng_template_3_Template(te,ne){1&te&&(fe.j41(0,"tr")(1,"td",11),fe.EFF(2,"Não foram encontrados conveniados."),fe.k0s()())}let Pa=(()=>{class ConveniadosComponent{constructor(){this.pessoaEmpresaService=(0,fe.WQX)(Ma),this.confirmationService=(0,fe.WQX)(Ht.td),this.dialogService=(0,fe.WQX)(Ut.o3),this.brMessageService=(0,fe.WQX)(bn.h),this.brDialogService=(0,fe.WQX)(fi.i),this.demandaService=(0,fe.WQX)(io.m),this.adicionaAgendamento=new fe.bkB,this.conveniados=[],this.isLoading=!1}ngOnInit(){this.isLoading=!0,this.pessoaEmpresaService.filterRecords({codTipoPessoaEmpresa:[3],registroAtivo:"V",pageSize:"all"}).pipe((0,tn.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),un.w))),(0,pn.j)((()=>this.isLoading=!1))).subscribe((te=>{this.conveniados=te.data,this.isLoading=!1}))}onImageError(te){te.target.image="pi pi-user"}abreModalCurriculo(te){this.brDialogService.open(Na,{header:"Currículo",data:{codPessoaEmpresa:te.codPessoaEmpresa}})}abreModalAgendamento(te){this.brDialogService.open(Oa,{header:"Solicitar Agendamento",data:te,onConfirmar:te=>{te.sucesso?(this.brMessageService.success("Solicitação enviada com sucesso!"),this.adicionaAgendamento.emit()):this.brMessageService.error("Falha no servidor!")}})}static#e=this.ɵfac=function ConveniadosComponent_Factory(te){return new(te||ConveniadosComponent)};static#t=this.ɵcmp=fe.VBU({type:ConveniadosComponent,selectors:[["conveniados"]],outputs:{adicionaAgendamento:"adicionaAgendamento"},standalone:!0,features:[fe.Jv_([Ut.o3]),fe.aNF],decls:5,vars:4,consts:[["scrollHeight","flex",3,"value","loading","scrollable"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["appendTo","body",3,"closable"],[1,"centro"],[1,"operacoes"],["label","Solicitar agendamento","styleClass","p-button-rounded p-button-success p-button-raised","icon","pi pi-external-link",3,"onClick"],["shape","circle","size","xlarge",3,"image","onImageError"],["label","Currículo","styleClass","p-button-rounded p-button-secondary p-button-raised","icon","pi pi-search",3,"onClick"],["pTooltip","Visualizar currículo","tooltipPosition","bottom",1,"cursor-pointer",3,"autoHide","click"],["colspan","6"]],template:function ConveniadosComponent_Template(te,ne){1&te&&(fe.j41(0,"p-table",0),fe.DNE(1,ConveniadosComponent_ng_template_1_Template,11,0,"ng-template",1)(2,ConveniadosComponent_ng_template_2_Template,15,5,"ng-template",2)(3,ConveniadosComponent_ng_template_3_Template,3,0,"ng-template",3),fe.k0s(),fe.nrm(4,"p-confirmDialog",4)),2&te&&(fe.Y8G("value",ne.conveniados)("loading",ne.isLoading)("scrollable",!0),fe.R7$(4),fe.Y8G("closable",!1))},dependencies:[de.MD,Pi.bG,Pi.XI,Ht.Ei,Fn,Pn,sn.tm,sn.$n,Po.F,Po.T,Ao.S,Ao.m],styles:["[_nghost-%COMP%]     .p-datatable-wrapper{border-radius:6px}@media (max-width: 530px){{%BLOCK%}}[_nghost-%COMP%]     .centro{text-align:center!important;gap:.5rem}[_nghost-%COMP%]     .operacoes{display:flex;justify-content:center;gap:.5rem}  .br-details-content{padding:0!important}  .details-dialog{margin-left:0!important}"]})}return ConveniadosComponent})();const Fa=["alterar"];function SolicitacoesComponent_ng_template_1_Template(te,ne){1&te&&(fe.j41(0,"tr")(1,"th",7),fe.EFF(2,"Operações"),fe.k0s(),fe.j41(3,"th"),fe.EFF(4,"Nome do profissional"),fe.k0s(),fe.j41(5,"th",7),fe.EFF(6,"Data da solicitação"),fe.k0s(),fe.j41(7,"th"),fe.EFF(8,"Forma de atendimento"),fe.k0s()())}function SolicitacoesComponent_ng_template_2_p_button_2_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"p-button",11),fe.bIt("onClick",(function SolicitacoesComponent_ng_template_2_p_button_2_Template_p_button_onClick_0_listener(){fe.eBV(te);const ne=fe.XpG().$implicit,ie=fe.XpG();return fe.Njj(ie.abreModalDetalhesDemanda(ne.codNbrDemanda))})),fe.k0s()}}function SolicitacoesComponent_ng_template_2_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"tr")(1,"td",7),fe.DNE(2,SolicitacoesComponent_ng_template_2_p_button_2_Template,1,0,"p-button",8),fe.j41(3,"p-button",9),fe.bIt("onClick",(function SolicitacoesComponent_ng_template_2_Template_p_button_onClick_3_listener(){const ne=fe.eBV(te).$implicit,ie=fe.XpG();return fe.Njj(ie.cancelaSolicitacao(ne.codNbrDemanda))})),fe.k0s()(),fe.j41(4,"td")(5,"span",10),fe.bIt("click",(function SolicitacoesComponent_ng_template_2_Template_span_click_5_listener(){const ne=fe.eBV(te).$implicit,ie=fe.XpG();return fe.Njj(ie.abreModalCurriculo(ne.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario))})),fe.EFF(6),fe.k0s()(),fe.j41(7,"td",7),fe.EFF(8),fe.nI1(9,"date"),fe.k0s(),fe.j41(10,"td"),fe.EFF(11),fe.k0s()()}if(2&te){const te=ne.$implicit;fe.R7$(2),fe.Y8G("ngIf",te.descrDemanda),fe.R7$(3),fe.Y8G("autoHide",!1),fe.R7$(),fe.SpI(" ",null==te.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario?null:te.lbrUsuarioNbrDemandaCodLbrUsuarioExecutorTolbrUsuario.nomeUsuario," "),fe.R7$(2),fe.SpI(" ",fe.i5U(9,5,te.dataInicial,"dd/MM/yyyy HH:mm")," "),fe.R7$(3),fe.JRh(null==te.nbrFormaAtendimento?null:te.nbrFormaAtendimento.nomeNbrFormaAtendimento)}}function SolicitacoesComponent_ng_template_3_Template(te,ne){1&te&&(fe.j41(0,"tr")(1,"td",12),fe.EFF(2,"Nenhuma solicitação."),fe.k0s()())}function SolicitacoesComponent_br_list_details_6_Template(te,ne){if(1&te&&fe.nrm(0,"br-list-details",13),2&te){const te=fe.XpG();fe.Y8G("brListService",te.nbrDemandaPsicologicoService)("modal",!0)("alterarTemplate",te.alterarTemplate)}}function SolicitacoesComponent_ng_template_7_Template(te,ne){if(1&te&&fe.nrm(0,"demanda-linha-do-tempo",14),2&te){const te=fe.XpG();fe.Y8G("nbrDemandaService",te.nbrDemandaPsicologicoService)("standalone",!0)}}let Ba=(()=>{class SolicitacoesComponent{constructor(){this.demandaService=(0,fe.WQX)(io.m),this.confirmationService=(0,fe.WQX)(Ht.td),this.brMessageService=(0,fe.WQX)(bn.h),this.brDialogService=(0,fe.WQX)(fi.i),this.nbrDemandaPsicologicoService=(0,fe.WQX)(wa.T),this.changeDetectorRef=(0,fe.WQX)(fe.gRc),this.telaIniciada=!1,this.qtdSolicitacoes=new fe.bkB,this.demandas=[],this.isLoading=!1,this.keyConfirmacaoCancelamento=(0,Zo.A)(),this.keyErro=(0,Zo.A)()}atualizaListaSolicitacoes(){this.isLoading=!0,this.demandaService.getListaPsicologicoAreaRestrita({tipoLista:"solicitacao"}).pipe((0,tn.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),un.w))),(0,pn.j)((()=>this.isLoading=!1))).subscribe((te=>{this.demandas=te,this.qtdSolicitacoes.emit(te.length),this.isLoading=!1}))}ngOnInit(){this.sub=this.updateSolicitacoes.subscribe((()=>this.atualizaListaSolicitacoes())),this.atualizaListaSolicitacoes()}ngAfterViewInit(){this.telaIniciada=!0,this.changeDetectorRef.detectChanges()}ngOnDestroy(){this.sub?.unsubscribe()}cancelaSolicitacao(te){const ne=this.confirmationService.confirm({message:"Confirma cancelamento da solicitação?",header:"Confirmar cancelamento",icon:Ht.EE.EXCLAMATION_TRIANGLE,acceptLabel:"Sim",rejectLabel:"Não",rejectIcon:"pi pi-times",acceptIcon:"pi pi-check",acceptButtonStyleClass:"p-button-success",rejectButtonStyleClass:"p-button-danger",key:this.keyConfirmacaoCancelamento,accept:()=>{this.demandaService.cancelaDemanda(te,{descrAndamento:"Solicitação cancelada pelo solicitante"}).pipe().subscribe({next:()=>{this.brMessageService.success("Solicitação realizada com sucesso."),this.atualizaListaSolicitacoes()},error:te=>{const ne=this.confirmationService.confirm({message:te.error.message??"Falha no servidor",header:"Aviso",icon:Ht.EE.EXCLAMATION_TRIANGLE,acceptLabel:"Ok",key:this.keyErro,accept:()=>{ne.close()},rejectVisible:!1})}})},reject:()=>ne.close()})}abreModalCurriculo(te){this.brDialogService.open(Na,{header:"Currículo",data:{codPessoaEmpresa:te.chaveTabela}})}abreModalDetalhesDemanda(te){this.nbrDemandaPsicologicoService.state.podeInserir=!1,this.nbrDemandaPsicologicoService.state.podeVer=!0,this.nbrDemandaPsicologicoService.openDetails(te)}static#e=this.ɵfac=function SolicitacoesComponent_Factory(te){return new(te||SolicitacoesComponent)};static#t=this.ɵcmp=fe.VBU({type:SolicitacoesComponent,selectors:[["solicitacoes"]],viewQuery:function SolicitacoesComponent_Query(te,ne){if(1&te&&fe.GBs(Fa,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.alterarTemplate=te.first)}},inputs:{updateSolicitacoes:"updateSolicitacoes"},outputs:{qtdSolicitacoes:"qtdSolicitacoes"},standalone:!0,features:[fe.Jv_([Ut.o3]),fe.aNF],decls:9,vars:8,consts:[["scrollHeight","flex",3,"value","loading","scrollable"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["appendTo","body",3,"closable","key"],["appendTo","body",3,"brListService","modal","alterarTemplate",4,"ngIf"],["alterar",""],[1,"centro"],["label","Detalhes","styleClass","p-button-rounded p-button-secondary p-button-raised","icon","pi pi-external-link",3,"onClick",4,"ngIf"],["label","Cancelar","styleClass","p-button-rounded p-button-danger p-button-raised","icon","pi pi-times",3,"onClick"],["pTooltip","Visualizar currículo","tooltipPosition","bottom",1,"cursor-pointer",3,"autoHide","click"],["label","Detalhes","styleClass","p-button-rounded p-button-secondary p-button-raised","icon","pi pi-external-link",3,"onClick"],["colspan","4"],["appendTo","body",3,"brListService","modal","alterarTemplate"],[3,"nbrDemandaService","standalone"]],template:function SolicitacoesComponent_Template(te,ne){1&te&&(fe.j41(0,"p-table",0),fe.DNE(1,SolicitacoesComponent_ng_template_1_Template,9,0,"ng-template",1)(2,SolicitacoesComponent_ng_template_2_Template,12,8,"ng-template",2)(3,SolicitacoesComponent_ng_template_3_Template,3,0,"ng-template",3),fe.k0s(),fe.nrm(4,"p-confirmDialog",4)(5,"p-confirmDialog",4),fe.DNE(6,SolicitacoesComponent_br_list_details_6_Template,1,3,"br-list-details",5)(7,SolicitacoesComponent_ng_template_7_Template,1,2,"ng-template",null,6,fe.C5r)),2&te&&(fe.Y8G("value",ne.demandas)("loading",ne.isLoading)("scrollable",!0),fe.R7$(4),fe.Y8G("closable",!1)("key",ne.keyConfirmacaoCancelamento),fe.R7$(),fe.Y8G("closable",!1)("key",ne.keyErro),fe.R7$(),fe.Y8G("ngIf",ne.telaIniciada))},dependencies:[de.MD,de.bT,de.vh,Pi.bG,Pi.XI,Ht.Ei,Ao.S,Ao.m,sn.tm,sn.$n,Po.F,Po.T,Fo.M,kr.w],styles:["[_nghost-%COMP%]     .p-datatable-wrapper{border-radius:6px}@media (max-width: 530px){{%BLOCK%}}[_nghost-%COMP%]     .centro{text-align:center!important;gap:.5rem}[_nghost-%COMP%]     .operacoes{display:flex;justify-content:center;gap:.5rem}  .br-details-content{padding:0!important}  .details-dialog{margin-left:0!important}"]})}return SolicitacoesComponent})();function MenteTaticaComponent_ng_template_18_Template(te,ne){1&te&&(fe.nrm(0,"i",16),fe.j41(1,"span"),fe.EFF(2,"Conveniados"),fe.k0s())}function MenteTaticaComponent_ng_template_22_p_badge_3_Template(te,ne){if(1&te&&fe.nrm(0,"p-badge",19),2&te){const te=fe.XpG(2);fe.Y8G("value",te.qtdSolicitacoes)}}function MenteTaticaComponent_ng_template_22_Template(te,ne){if(1&te&&(fe.nrm(0,"i",17),fe.j41(1,"span"),fe.EFF(2,"Solicitações"),fe.k0s(),fe.DNE(3,MenteTaticaComponent_ng_template_22_p_badge_3_Template,1,1,"p-badge",18)),2&te){const te=fe.XpG();fe.R7$(3),fe.Y8G("ngIf",te.qtdSolicitacoes||0==te.qtdSolicitacoes)}}function MenteTaticaComponent_ng_template_26_p_badge_3_Template(te,ne){if(1&te&&fe.nrm(0,"p-badge",19),2&te){const te=fe.XpG(2);fe.Y8G("value",te.qtdAtendimentos)}}function MenteTaticaComponent_ng_template_26_Template(te,ne){if(1&te&&(fe.nrm(0,"i",20),fe.j41(1,"span"),fe.EFF(2,"Atendimentos"),fe.k0s(),fe.DNE(3,MenteTaticaComponent_ng_template_26_p_badge_3_Template,1,1,"p-badge",18)),2&te){const te=fe.XpG();fe.R7$(3),fe.Y8G("ngIf",te.qtdAtendimentos||0==te.qtdAtendimentos)}}let Ha=(()=>{class MenteTaticaComponent{constructor(){this.authService=(0,fe.WQX)(rn.u),this.activeIndex=0,this.usuario=this.authService.usuario,this.itensMenuBreadCrumb=[{label:"Área restrita",routerLink:"/area-restrita",icon:"fa-light fa-house text-primary mr-2"},{label:"Mente tática",icon:"fa-light fa-brain-circuit text-primary font-bold mr-2",styleClass:"font-bold"}],this.updateSolicitacoes=new wn.B}onAdicionaAgendamento(){this.activeIndex=1,this.updateSolicitacoes.next()}static#e=this.ɵfac=function MenteTaticaComponent_Factory(te){return new(te||MenteTaticaComponent)};static#t=this.ɵcmp=fe.VBU({type:MenteTaticaComponent,selectors:[["app-mente-tatica"]],standalone:!0,features:[fe.aNF],decls:29,vars:3,consts:[[1,"background-area-restrita"],[1,"flex","flex-column","justify-content-center","align-items-center","gap-3","w-full","h-full","overflow-auto"],[1,"container-aviso"],["containerAviso",""],[3,"model"],[1,"text-lg"],[1,"text-lg","mb-3",2,"margin","0"],["href","https://s3.amazonaws.com/infobr.publico/cliente_120/manual_associados_atualizado_2024.pdf","target","_blank",1,"text-lg"],["icon","pi pi-external-link","label","Manual do Usuario","styleClass","p-button-secondary"],[1,"container-tabview"],[3,"activeIndex","activeIndexChange"],["pTemplate","header"],[1,"container-table"],[3,"adicionaAgendamento"],[3,"updateSolicitacoes","qtdSolicitacoes"],[3,"qtdAtendimentos"],[1,"fa-solid","fa-users","mr-2"],[1,"fa-solid","fa-user-tag","mr-2"],["class","badge-qtde-tab",3,"value",4,"ngIf"],[1,"badge-qtde-tab",3,"value"],[1,"fa-solid","fa-comments","mr-2"]],template:function MenteTaticaComponent_Template(te,ne){1&te&&(fe.nrm(0,"header-empresa"),fe.j41(1,"div",0)(2,"div",1)(3,"div",2,3),fe.nrm(5,"p-breadcrumb",4),fe.j41(6,"aviso-area-restrita")(7,"p",5),fe.EFF(8,"Bem-vindo(a) ao Projeto de Atendimento Psicológico Gratuito do SINPOL-SC."),fe.k0s(),fe.j41(9,"p",5),fe.EFF(10," Aqui você conhecerá os CONVENIADOS, poderá gerenciar suas SOLICITAÇÕES e acompanhar seus ATENDIMENTOS. "),fe.k0s(),fe.j41(11,"p",6),fe.EFF(12,"Para conhecer as regras de uso do sistema, clique abaixo:"),fe.k0s(),fe.j41(13,"a",7),fe.nrm(14,"p-button",8),fe.k0s()()(),fe.j41(15,"div",9)(16,"p-tabView",10),fe.mxI("activeIndexChange",(function MenteTaticaComponent_Template_p_tabView_activeIndexChange_16_listener(te){return fe.DH7(ne.activeIndex,te)||(ne.activeIndex=te),te})),fe.j41(17,"p-tabPanel"),fe.DNE(18,MenteTaticaComponent_ng_template_18_Template,3,0,"ng-template",11),fe.j41(19,"div",12)(20,"conveniados",13),fe.bIt("adicionaAgendamento",(function MenteTaticaComponent_Template_conveniados_adicionaAgendamento_20_listener(){return ne.onAdicionaAgendamento()})),fe.k0s()()(),fe.j41(21,"p-tabPanel"),fe.DNE(22,MenteTaticaComponent_ng_template_22_Template,4,1,"ng-template",11),fe.j41(23,"div",12)(24,"solicitacoes",14),fe.bIt("qtdSolicitacoes",(function MenteTaticaComponent_Template_solicitacoes_qtdSolicitacoes_24_listener(te){return ne.qtdSolicitacoes=te})),fe.k0s()()(),fe.j41(25,"p-tabPanel"),fe.DNE(26,MenteTaticaComponent_ng_template_26_Template,4,1,"ng-template",11),fe.j41(27,"div",12)(28,"atendimentos",15),fe.bIt("qtdAtendimentos",(function MenteTaticaComponent_Template_atendimentos_qtdAtendimentos_28_listener(te){return ne.qtdAtendimentos=te})),fe.k0s()()()()()()()),2&te&&(fe.R7$(5),fe.Y8G("model",ne.itensMenuBreadCrumb),fe.R7$(11),fe.R50("activeIndex",ne.activeIndex),fe.R7$(8),fe.Y8G("updateSolicitacoes",ne.updateSolicitacoes))},dependencies:[de.MD,de.bT,Io,ko,Ht.Ei,wr,Nr,sn.tm,sn.$n,ha.fd,ha.JQ,ha.Kp,pa,ua,La,Pa,Ba],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{padding:20px 10px 0}.container-aviso[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .p-breadcrumb{border:0px;padding:0;padding-left:.5rem}[_ngcontent-%COMP%]:is()   .p-breadcrumb-list[_ngcontent-%COMP%]{gap:.5rem}[_ngcontent-%COMP%]:is()   .p-menuitem-text[_ngcontent-%COMP%]{color:var(--primary-color)}a[_ngcontent-%COMP%]{color:var(--primary-color-text)}.container-aviso[_ngcontent-%COMP%]{padding-top:1.5rem;display:flex;flex-direction:column;gap:1rem;width:50%}@media (max-width: 1760px){.container-aviso[_ngcontent-%COMP%]{width:max-content}}@media (max-width: 930px){.container-aviso[_ngcontent-%COMP%]{width:80%}}.container-table[_ngcontent-%COMP%]{overflow-y:auto}@media (max-width: 700px){.container-table[_ngcontent-%COMP%]{min-height:50rem}}[_nghost-%COMP%]     .container-tabview{width:80%}@media (max-width: 1630px){[_nghost-%COMP%]     .container-tabview{width:95%}}[_nghost-%COMP%]     .container-tabview .p-tabview .p-tabview-nav-content{border-radius:6px 6px 0 0}[_nghost-%COMP%]     .container-tabview .p-tabview .p-tabview-nav{justify-content:center;background:var(--primary-color);border:1px solid var(--primary-100);border-width:0 0 2px 0;gap:.5rem}@media (max-width: 700px){[_nghost-%COMP%]     .container-tabview .p-tabview .p-tabview-nav{padding-left:.5rem;padding-right:.5rem;flex-direction:column}}[_nghost-%COMP%]     .container-tabview .p-tabview .p-tabview-nav .p-tabview-nav-link{margin-top:.5rem!important;padding:1.25rem 10rem!important}@media (max-width: 1360px){[_nghost-%COMP%]     .container-tabview .p-tabview .p-tabview-nav .p-tabview-nav-link{padding:1.25rem 5rem!important}}@media (max-width: 1030px){[_nghost-%COMP%]     .container-tabview .p-tabview .p-tabview-nav .p-tabview-nav-link{padding:1.25rem 2.5rem!important}}@media (max-width: 700px){[_nghost-%COMP%]     .container-tabview .p-tabview .p-tabview-nav .p-tabview-nav-link{justify-content:center}}[_nghost-%COMP%]     .container-tabview .p-tabview .p-tabview-nav .p-highlight .p-tabview-nav-link{color:var(--secondary-color)!important;border-color:var(--secondary-color)!important}@media (max-width: 500px){[_nghost-%COMP%]     .container-tabview .p-tabview .p-tabview-panels{padding-top:1rem!important;padding:0}}[_nghost-%COMP%]     .container-tabview .p-tabview .p-avatar{width:6rem;height:6rem;font-size:4rem}.badge-qtde-tab[_ngcontent-%COMP%]{margin-left:10px}[_nghost-%COMP%]     .p-highlight .badge-qtde-tab>span{background-color:var(--secondary-color)!important;border-color:var(--secondary-color)!important}.mente-tatica-logo[_ngcontent-%COMP%]{grid-column:3;justify-self:center}.mente-tatica-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:12.5rem;height:7rem;object-fit:cover;object-position:50.5%}"]})}return MenteTaticaComponent})();var Ua=ie(5288),es=ie(5598),ts=ie(60);const is=["list"];function PanelMenuSub_ng_template_2_li_0_Template(te,ne){1&te&&fe.nrm(0,"li",5)}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_ng_container_1_AngleDownIcon_1_Template(te,ne){if(1&te&&fe.nrm(0,"AngleDownIcon",20),2&te){const te=fe.XpG(6).$implicit,ne=fe.XpG();fe.Y8G("styleClass","p-submenu-icon")("ngStyle",ne.getItemProp(te,"iconStyle"))}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_ng_container_1_AngleRightIcon_2_Template(te,ne){if(1&te&&fe.nrm(0,"AngleRightIcon",20),2&te){const te=fe.XpG(6).$implicit,ne=fe.XpG();fe.Y8G("styleClass","p-submenu-icon")("ngStyle",ne.getItemProp(te,"iconStyle"))}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_ng_container_1_AngleDownIcon_1_Template,1,2,"AngleDownIcon",19)(2,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_ng_container_1_AngleRightIcon_2_Template,1,2,"AngleRightIcon",19),fe.bVm()),2&te){const te=fe.XpG(5).$implicit,ne=fe.XpG();fe.R7$(),fe.Y8G("ngIf",ne.isItemActive(te)),fe.R7$(),fe.Y8G("ngIf",!ne.isItemActive(te))}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_2_ng_template_0_Template(te,ne){}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_2_Template(te,ne){1&te&&fe.DNE(0,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_2_ng_template_0_Template,0,0,"ng-template")}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_ng_container_1_Template,3,2,"ng-container",8)(2,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_2_Template,1,0,null,18),fe.bVm()),2&te){const te=fe.XpG(5);fe.R7$(),fe.Y8G("ngIf",!te.panelMenu.submenuIconTemplate),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.panelMenu.submenuIconTemplate)}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_span_2_Template(te,ne){if(1&te&&fe.nrm(0,"span",21),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.Y8G("ngClass",te.icon)("ngStyle",ne.getItemProp(te,"iconStyle"))}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_span_3_Template(te,ne){if(1&te&&(fe.j41(0,"span",22),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.R7$(),fe.JRh(ne.getItemProp(te,"label"))}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_template_4_Template(te,ne){if(1&te&&fe.nrm(0,"span",23),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.Y8G("innerHTML",ne.getItemProp(te,"label"),fe.npT)}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_span_6_Template(te,ne){if(1&te&&(fe.j41(0,"span",24),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(4).$implicit;fe.Y8G("ngClass",te.badgeStyleClass),fe.R7$(),fe.JRh(te.badge)}}const primeng_panelmenu_c1=te=>({"p-disabled":te});function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_Template(te,ne){if(1&te&&(fe.j41(0,"a",13),fe.DNE(1,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_container_1_Template,3,2,"ng-container",8)(2,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_span_2_Template,1,2,"span",14)(3,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_span_3_Template,2,1,"span",15)(4,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_ng_template_4_Template,1,1,"ng-template",null,16,fe.C5r)(6,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_span_6_Template,2,2,"span",17),fe.k0s()),2&te){const te=fe.sdS(5),ne=fe.XpG(3).$implicit,ie=fe.XpG();fe.Y8G("ngClass",fe.eq3(10,primeng_panelmenu_c1,ie.getItemProp(ne,"disabled")))("target",ie.getItemProp(ne,"target")),fe.BMQ("href",ie.getItemProp(ne,"url"),fe.B4B)("data-pc-section","action")("tabindex",ie.parentExpanded?"0":"-1"),fe.R7$(),fe.Y8G("ngIf",ie.isItemGroup(ne)),fe.R7$(),fe.Y8G("ngIf",ne.icon),fe.R7$(),fe.Y8G("ngIf",!1!==(null==ne.item?null:ne.item.escape))("ngIfElse",te),fe.R7$(3),fe.Y8G("ngIf",ne.badge)}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_ng_container_1_AngleDownIcon_1_Template(te,ne){if(1&te&&fe.nrm(0,"AngleDownIcon",20),2&te){const te=fe.XpG(6).$implicit,ne=fe.XpG();fe.Y8G("styleClass","p-submenu-icon")("ngStyle",ne.getItemProp(te,"iconStyle"))}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_ng_container_1_AngleRightIcon_2_Template(te,ne){if(1&te&&fe.nrm(0,"AngleRightIcon",20),2&te){const te=fe.XpG(6).$implicit,ne=fe.XpG();fe.Y8G("styleClass","p-submenu-icon")("ngStyle",ne.getItemProp(te,"iconStyle"))}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_ng_container_1_AngleDownIcon_1_Template,1,2,"AngleDownIcon",19)(2,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_ng_container_1_AngleRightIcon_2_Template,1,2,"AngleRightIcon",19),fe.bVm()),2&te){const te=fe.XpG(5).$implicit,ne=fe.XpG();fe.R7$(),fe.Y8G("ngIf",ne.isItemActive(te)),fe.R7$(),fe.Y8G("ngIf",!ne.isItemActive(te))}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_2_ng_template_0_Template(te,ne){}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_2_Template(te,ne){1&te&&fe.DNE(0,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_2_ng_template_0_Template,0,0,"ng-template")}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_ng_container_1_Template,3,2,"ng-container",8)(2,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_2_Template,1,0,null,18),fe.bVm()),2&te){const te=fe.XpG(5);fe.R7$(),fe.Y8G("ngIf",!te.panelMenu.submenuIconTemplate),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.panelMenu.submenuIconTemplate)}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_span_2_Template(te,ne){if(1&te&&fe.nrm(0,"span",21),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.Y8G("ngClass",te.icon)("ngStyle",ne.getItemProp(te,"iconStyle"))}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_span_3_Template(te,ne){if(1&te&&(fe.j41(0,"span",22),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.R7$(),fe.JRh(ne.getItemProp(te,"label"))}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_template_4_Template(te,ne){if(1&te&&fe.nrm(0,"span",23),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.Y8G("innerHTML",ne.getItemProp(te,"label"),fe.npT)}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_span_6_Template(te,ne){if(1&te&&(fe.j41(0,"span",24),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.Y8G("ngClass",ne.getItemProp(te,"badgeStyleClass")),fe.R7$(),fe.JRh(ne.getItemProp(te,"badge"))}}const primeng_panelmenu_c2=()=>({exact:!1});function PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_Template(te,ne){if(1&te&&(fe.j41(0,"a",25),fe.DNE(1,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_container_1_Template,3,2,"ng-container",8)(2,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_span_2_Template,1,2,"span",14)(3,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_span_3_Template,2,1,"span",15)(4,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_ng_template_4_Template,1,1,"ng-template",null,26,fe.C5r)(6,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_span_6_Template,2,2,"span",17),fe.k0s()),2&te){const te=fe.sdS(5),ne=fe.XpG(3).$implicit,ie=fe.XpG();fe.Y8G("routerLink",ie.getItemProp(ne,"routerLink"))("queryParams",ie.getItemProp(ne,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",ie.getItemProp(ne,"routerLinkActiveOptions")||fe.lJ4(20,primeng_panelmenu_c2))("ngClass",fe.eq3(21,primeng_panelmenu_c1,ie.getItemProp(ne,"disabled")))("target",ie.getItemProp(ne,"target"))("fragment",ie.getItemProp(ne,"fragment"))("queryParamsHandling",ie.getItemProp(ne,"queryParamsHandling"))("preserveFragment",ie.getItemProp(ne,"preserveFragment"))("skipLocationChange",ie.getItemProp(ne,"skipLocationChange"))("replaceUrl",ie.getItemProp(ne,"replaceUrl"))("state",ie.getItemProp(ne,"state")),fe.BMQ("title",ie.getItemProp(ne,"title"))("data-pc-section","action")("tabindex",ie.parentExpanded?"0":"-1"),fe.R7$(),fe.Y8G("ngIf",ie.isItemGroup(ne)),fe.R7$(),fe.Y8G("ngIf",ne.icon),fe.R7$(),fe.Y8G("ngIf",!1!==ie.getItemProp(ne,"escape"))("ngIfElse",te),fe.R7$(3),fe.Y8G("ngIf",ne.badge)}}function PanelMenuSub_ng_template_2_li_1_ng_container_2_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_1_Template,7,12,"a",11)(2,PanelMenuSub_ng_template_2_li_1_ng_container_2_a_2_Template,7,23,"a",12),fe.bVm()),2&te){const te=fe.XpG(2).$implicit,ne=fe.XpG();fe.R7$(),fe.Y8G("ngIf",!ne.getItemProp(te,"routerLink")),fe.R7$(),fe.Y8G("ngIf",ne.getItemProp(te,"routerLink"))}}function PanelMenuSub_ng_template_2_li_1_ng_container_3_1_ng_template_0_Template(te,ne){}function PanelMenuSub_ng_template_2_li_1_ng_container_3_1_Template(te,ne){1&te&&fe.DNE(0,PanelMenuSub_ng_template_2_li_1_ng_container_3_1_ng_template_0_Template,0,0,"ng-template")}const primeng_panelmenu_c3=te=>({$implicit:te});function PanelMenuSub_ng_template_2_li_1_ng_container_3_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenuSub_ng_template_2_li_1_ng_container_3_1_Template,1,0,null,27),fe.bVm()),2&te){const te=fe.XpG(2).$implicit,ne=fe.XpG();fe.R7$(),fe.Y8G("ngTemplateOutlet",ne.itemTemplate)("ngTemplateOutletContext",fe.eq3(2,primeng_panelmenu_c3,te.item))}}function PanelMenuSub_ng_template_2_li_1_p_panelMenuSub_5_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"p-panelMenuSub",28),fe.bIt("itemToggle",(function PanelMenuSub_ng_template_2_li_1_p_panelMenuSub_5_Template_p_panelMenuSub_itemToggle_0_listener(ne){fe.eBV(te);const ie=fe.XpG(3);return fe.Njj(ie.onItemToggle(ne))})),fe.k0s()}if(2&te){const te=fe.XpG(2).$implicit,ne=fe.XpG();fe.Y8G("id",ne.getItemId(te)+"_list")("panelId",ne.panelId)("items",null==te?null:te.items)("itemTemplate",ne.itemTemplate)("transitionOptions",ne.transitionOptions)("focusedItemId",ne.focusedItemId)("activeItemPath",ne.activeItemPath)("level",ne.level+1)("parentExpanded",!!ne.parentExpanded&&ne.isItemExpanded(te))}}function PanelMenuSub_ng_template_2_li_1_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"li",6)(1,"div",7),fe.bIt("click",(function PanelMenuSub_ng_template_2_li_1_Template_div_click_1_listener(ne){fe.eBV(te);const ie=fe.XpG().$implicit,re=fe.XpG();return fe.Njj(re.onItemClick(ne,ie))})),fe.DNE(2,PanelMenuSub_ng_template_2_li_1_ng_container_2_Template,3,2,"ng-container",8)(3,PanelMenuSub_ng_template_2_li_1_ng_container_3_Template,2,4,"ng-container",8),fe.k0s(),fe.j41(4,"div",9),fe.DNE(5,PanelMenuSub_ng_template_2_li_1_p_panelMenuSub_5_Template,1,9,"p-panelMenuSub",10),fe.k0s()()}if(2&te){const te=fe.XpG(),ne=te.$implicit,ie=te.index,re=fe.XpG();fe.HbH(re.getItemProp(ne,"styleClass")),fe.AVh("p-hidden",!1===ne.visible)("p-focus",re.isItemFocused(ne)&&!re.isItemDisabled(ne)),fe.Y8G("ngClass",re.getItemClass(ne))("ngStyle",re.getItemProp(ne,"style"))("pTooltip",re.getItemProp(ne,"tooltip"))("tooltipOptions",re.getItemProp(ne,"tooltipOptions")),fe.BMQ("id",re.getItemId(ne))("aria-label",re.getItemProp(ne,"label"))("aria-expanded",re.isItemGroup(ne)?re.isItemActive(ne):void 0)("aria-level",re.level+1)("aria-setsize",re.getAriaSetSize())("aria-posinset",re.getAriaPosInset(ie))("data-p-disabled",re.isItemDisabled(ne)),fe.R7$(2),fe.Y8G("ngIf",!re.itemTemplate),fe.R7$(),fe.Y8G("ngIf",re.itemTemplate),fe.R7$(),fe.Y8G("@submenu",re.getAnimation(ne)),fe.R7$(),fe.Y8G("ngIf",re.isItemVisible(ne)&&re.isItemGroup(ne)&&re.isItemExpanded(ne))}}function PanelMenuSub_ng_template_2_Template(te,ne){if(1&te&&fe.DNE(0,PanelMenuSub_ng_template_2_li_0_Template,1,0,"li",3)(1,PanelMenuSub_ng_template_2_li_1_Template,6,21,"li",4),2&te){const te=ne.$implicit,ie=fe.XpG();fe.Y8G("ngIf",te.separator),fe.R7$(),fe.Y8G("ngIf",!te.separator&&ie.isItemVisible(te))}}const _c4=te=>({"p-submenu-list":!0,"p-panelmenu-root-list":te}),os=["submenu"],as=["container"];function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_ng_container_1_ChevronDownIcon_1_Template(te,ne){1&te&&fe.nrm(0,"ChevronDownIcon",19),2&te&&fe.Y8G("styleClass","p-submenu-icon")}function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_ng_container_1_ChevronRightIcon_2_Template(te,ne){1&te&&fe.nrm(0,"ChevronRightIcon",19),2&te&&fe.Y8G("styleClass","p-submenu-icon")}function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_ng_container_1_ChevronDownIcon_1_Template,1,1,"ChevronDownIcon",18)(2,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_ng_container_1_ChevronRightIcon_2_Template,1,1,"ChevronRightIcon",18),fe.bVm()),2&te){const te=fe.XpG(5).$implicit,ne=fe.XpG();fe.R7$(),fe.Y8G("ngIf",ne.isItemActive(te)),fe.R7$(),fe.Y8G("ngIf",!ne.isItemActive(te))}}function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_2_ng_template_0_Template(te,ne){}function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_2_Template(te,ne){1&te&&fe.DNE(0,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_2_ng_template_0_Template,0,0,"ng-template")}function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_ng_container_1_Template,3,2,"ng-container",7)(2,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_2_Template,1,0,null,17),fe.bVm()),2&te){const te=fe.XpG(5);fe.R7$(),fe.Y8G("ngIf",!te.submenuIconTemplate),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.submenuIconTemplate)}}function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_span_2_Template(te,ne){if(1&te&&fe.nrm(0,"span",20),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.Y8G("ngClass",te.icon)("ngStyle",ne.getItemProp(te,"iconStyle"))}}function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_span_3_Template(te,ne){if(1&te&&(fe.j41(0,"span",21),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.R7$(),fe.JRh(ne.getItemProp(te,"label"))}}function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_template_4_Template(te,ne){if(1&te&&fe.nrm(0,"span",22),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.Y8G("innerHTML",ne.getItemProp(te,"label"),fe.npT)}}function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_span_6_Template(te,ne){if(1&te&&(fe.j41(0,"span",23),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.Y8G("ngClass",ne.getItemProp(te,"badgeStyleClass")),fe.R7$(),fe.JRh(ne.getItemProp(te,"badge"))}}function PanelMenu_ng_container_2_div_1_ng_container_3_a_1_Template(te,ne){if(1&te&&(fe.j41(0,"a",12),fe.DNE(1,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_container_1_Template,3,2,"ng-container",7)(2,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_span_2_Template,1,2,"span",13)(3,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_span_3_Template,2,1,"span",14)(4,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_ng_template_4_Template,1,1,"ng-template",null,15,fe.C5r)(6,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_span_6_Template,2,2,"span",16),fe.k0s()),2&te){const te=fe.sdS(5),ne=fe.XpG(3).$implicit,ie=fe.XpG();fe.Y8G("target",ie.getItemProp(ne,"target")),fe.BMQ("href",ie.getItemProp(ne,"url"),fe.B4B)("tabindex",-1)("title",ie.getItemProp(ne,"title"))("data-pc-section","headeraction"),fe.R7$(),fe.Y8G("ngIf",ie.isItemGroup(ne)),fe.R7$(),fe.Y8G("ngIf",ne.icon),fe.R7$(),fe.Y8G("ngIf",!1!==ie.getItemProp(ne,"escape"))("ngIfElse",te),fe.R7$(3),fe.Y8G("ngIf",ie.getItemProp(ne,"badge"))}}function PanelMenu_ng_container_2_div_1_ng_container_3_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenu_ng_container_2_div_1_ng_container_3_a_1_Template,7,10,"a",11),fe.bVm()),2&te){const te=fe.XpG(2).$implicit,ne=fe.XpG();fe.R7$(),fe.Y8G("ngIf",!ne.getItemProp(te,"routerLink"))}}function PanelMenu_ng_container_2_div_1_ng_container_4_Template(te,ne){1&te&&fe.eu8(0)}function PanelMenu_ng_container_2_div_1_a_5_ng_container_1_ng_container_1_ChevronDownIcon_1_Template(te,ne){1&te&&fe.nrm(0,"ChevronDownIcon",19),2&te&&fe.Y8G("styleClass","p-submenu-icon")}function PanelMenu_ng_container_2_div_1_a_5_ng_container_1_ng_container_1_ChevronRightIcon_2_Template(te,ne){1&te&&fe.nrm(0,"ChevronRightIcon",19),2&te&&fe.Y8G("styleClass","p-submenu-icon")}function PanelMenu_ng_container_2_div_1_a_5_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenu_ng_container_2_div_1_a_5_ng_container_1_ng_container_1_ChevronDownIcon_1_Template,1,1,"ChevronDownIcon",18)(2,PanelMenu_ng_container_2_div_1_a_5_ng_container_1_ng_container_1_ChevronRightIcon_2_Template,1,1,"ChevronRightIcon",18),fe.bVm()),2&te){const te=fe.XpG(4).$implicit,ne=fe.XpG();fe.R7$(),fe.Y8G("ngIf",ne.isItemActive(te)),fe.R7$(),fe.Y8G("ngIf",!ne.isItemActive(te))}}function PanelMenu_ng_container_2_div_1_a_5_ng_container_1_2_ng_template_0_Template(te,ne){}function PanelMenu_ng_container_2_div_1_a_5_ng_container_1_2_Template(te,ne){1&te&&fe.DNE(0,PanelMenu_ng_container_2_div_1_a_5_ng_container_1_2_ng_template_0_Template,0,0,"ng-template")}function PanelMenu_ng_container_2_div_1_a_5_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenu_ng_container_2_div_1_a_5_ng_container_1_ng_container_1_Template,3,2,"ng-container",7)(2,PanelMenu_ng_container_2_div_1_a_5_ng_container_1_2_Template,1,0,null,17),fe.bVm()),2&te){const te=fe.XpG(4);fe.R7$(),fe.Y8G("ngIf",!te.submenuIconTemplate),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.submenuIconTemplate)}}function PanelMenu_ng_container_2_div_1_a_5_span_2_Template(te,ne){if(1&te&&fe.nrm(0,"span",20),2&te){const te=fe.XpG(3).$implicit,ne=fe.XpG();fe.Y8G("ngClass",te.icon)("ngStyle",ne.getItemProp(te,"iconStyle"))}}function PanelMenu_ng_container_2_div_1_a_5_span_3_Template(te,ne){if(1&te&&(fe.j41(0,"span",21),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(3).$implicit,ne=fe.XpG();fe.R7$(),fe.JRh(ne.getItemProp(te,"label"))}}function PanelMenu_ng_container_2_div_1_a_5_ng_template_4_Template(te,ne){if(1&te&&fe.nrm(0,"span",22),2&te){const te=fe.XpG(3).$implicit,ne=fe.XpG();fe.Y8G("innerHTML",ne.getItemProp(te,"label"),fe.npT)}}function PanelMenu_ng_container_2_div_1_a_5_span_6_Template(te,ne){if(1&te&&(fe.j41(0,"span",23),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(3).$implicit,ne=fe.XpG();fe.Y8G("ngClass",ne.getItemProp(te,"badgeStyleClass")),fe.R7$(),fe.JRh(ne.getItemProp(te,"badge"))}}function PanelMenu_ng_container_2_div_1_a_5_Template(te,ne){if(1&te&&(fe.j41(0,"a",24),fe.DNE(1,PanelMenu_ng_container_2_div_1_a_5_ng_container_1_Template,3,2,"ng-container",7)(2,PanelMenu_ng_container_2_div_1_a_5_span_2_Template,1,2,"span",13)(3,PanelMenu_ng_container_2_div_1_a_5_span_3_Template,2,1,"span",14)(4,PanelMenu_ng_container_2_div_1_a_5_ng_template_4_Template,1,1,"ng-template",null,25,fe.C5r)(6,PanelMenu_ng_container_2_div_1_a_5_span_6_Template,2,2,"span",16),fe.k0s()),2&te){const te=fe.sdS(5),ne=fe.XpG(2).$implicit,ie=fe.XpG();fe.Y8G("routerLink",ie.getItemProp(ne,"routerLink"))("queryParams",ie.getItemProp(ne,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",ie.getItemProp(ne,"routerLinkActiveOptions")||fe.lJ4(18,primeng_panelmenu_c2))("target",ie.getItemProp(ne,"target"))("fragment",ie.getItemProp(ne,"fragment"))("queryParamsHandling",ie.getItemProp(ne,"queryParamsHandling"))("preserveFragment",ie.getItemProp(ne,"preserveFragment"))("skipLocationChange",ie.getItemProp(ne,"skipLocationChange"))("replaceUrl",ie.getItemProp(ne,"replaceUrl"))("state",ie.getItemProp(ne,"state")),fe.BMQ("tabindex",-1)("data-pc-section","headeraction"),fe.R7$(),fe.Y8G("ngIf",ie.isItemGroup(ne)),fe.R7$(),fe.Y8G("ngIf",ne.icon),fe.R7$(),fe.Y8G("ngIf",!1!==ie.getItemProp(ne,"escape"))("ngIfElse",te),fe.R7$(3),fe.Y8G("ngIf",ie.getItemProp(ne,"badge"))}}const _c7=te=>({"p-panelmenu-expanded":te});function PanelMenu_ng_container_2_div_1_div_6_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",26),fe.bIt("@rootItem.done",(function PanelMenu_ng_container_2_div_1_div_6_Template_div_animation_rootItem_done_0_listener(){fe.eBV(te);const ne=fe.XpG(3);return fe.Njj(ne.onToggleDone())})),fe.j41(1,"div",27)(2,"p-panelMenuList",28),fe.bIt("headerFocus",(function PanelMenu_ng_container_2_div_1_div_6_Template_p_panelMenuList_headerFocus_2_listener(ne){fe.eBV(te);const ie=fe.XpG(3);return fe.Njj(ie.updateFocusedHeader(ne))})),fe.k0s()()()}if(2&te){const te=fe.XpG(2),ne=te.$implicit,ie=te.index,re=fe.XpG();fe.Y8G("ngClass",fe.eq3(14,_c7,re.isItemActive(ne)))("@rootItem",re.getAnimation(ne)),fe.BMQ("id",re.getContentId(ne,ie))("aria-labelledby",re.getHeaderId(ne,ie))("data-pc-section","toggleablecontent"),fe.R7$(),fe.BMQ("data-pc-section","menucontent"),fe.R7$(),fe.Y8G("panelId",re.getPanelId(ie,ne))("items",re.getItemProp(ne,"items"))("itemTemplate",re.itemTemplate)("transitionOptions",re.transitionOptions)("root",!0)("activeItem",re.activeItem())("tabindex",re.tabindex)("parentExpanded",re.isItemActive(ne))}}const _c8=(te,ne)=>({"p-component p-panelmenu-header":!0,"p-highlight":te,"p-disabled":ne});function PanelMenu_ng_container_2_div_1_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",4)(1,"div",5),fe.bIt("click",(function PanelMenu_ng_container_2_div_1_Template_div_click_1_listener(ne){fe.eBV(te);const ie=fe.XpG(),re=ie.$implicit,le=ie.index,ce=fe.XpG();return fe.Njj(ce.onHeaderClick(ne,re,le))}))("keydown",(function PanelMenu_ng_container_2_div_1_Template_div_keydown_1_listener(ne){fe.eBV(te);const ie=fe.XpG(),re=ie.$implicit,le=ie.index,ce=fe.XpG();return fe.Njj(ce.onHeaderKeyDown(ne,re,le))})),fe.j41(2,"div",6),fe.DNE(3,PanelMenu_ng_container_2_div_1_ng_container_3_Template,2,1,"ng-container",7)(4,PanelMenu_ng_container_2_div_1_ng_container_4_Template,1,0,"ng-container",8)(5,PanelMenu_ng_container_2_div_1_a_5_Template,7,19,"a",9),fe.k0s()(),fe.DNE(6,PanelMenu_ng_container_2_div_1_div_6_Template,3,16,"div",10),fe.k0s()}if(2&te){const te=fe.XpG(),ne=te.$implicit,ie=te.index,re=fe.XpG();fe.Y8G("ngClass",re.getItemProp(ne,"headerClass"))("ngStyle",re.getItemProp(ne,"style")),fe.BMQ("data-pc-section","panel"),fe.R7$(),fe.HbH(re.getItemProp(ne,"styleClass")),fe.Y8G("ngClass",fe.l_i(23,_c8,re.isItemActive(ne),re.isItemDisabled(ne)))("ngStyle",re.getItemProp(ne,"style"))("pTooltip",re.getItemProp(ne,"tooltip"))("tabindex",0)("tooltipOptions",re.getItemProp(ne,"tooltipOptions")),fe.BMQ("id",re.getHeaderId(ne,ie))("aria-expanded",re.isItemActive(ne))("aria-label",re.getItemProp(ne,"label"))("aria-controls",re.getContentId(ne,ie))("aria-disabled",re.isItemDisabled(ne))("data-p-highlight",re.isItemActive(ne))("data-p-disabled",re.isItemDisabled(ne))("data-pc-section","header"),fe.R7$(2),fe.Y8G("ngIf",!re.itemTemplate),fe.R7$(),fe.Y8G("ngTemplateOutlet",re.itemTemplate)("ngTemplateOutletContext",fe.eq3(26,primeng_panelmenu_c3,ne)),fe.R7$(),fe.Y8G("ngIf",re.getItemProp(ne,"routerLink")),fe.R7$(),fe.Y8G("ngIf",re.isItemGroup(ne))}}function PanelMenu_ng_container_2_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,PanelMenu_ng_container_2_div_1_Template,7,28,"div",3),fe.bVm()),2&te){const te=ne.$implicit,ie=fe.XpG();fe.R7$(),fe.Y8G("ngIf",ie.isItemVisible(te))}}let ls=(()=>{class PanelMenuSub{panelMenu;el;panelId;focusedItemId;items;itemTemplate;level=0;activeItemPath;root;tabindex;transitionOptions;parentExpanded;itemToggle=new fe.bkB;menuFocus=new fe.bkB;menuBlur=new fe.bkB;menuKeyDown=new fe.bkB;listViewChild;constructor(te,ne){this.panelMenu=te,this.el=ne}getItemId(te){return te.item?.id??`${this.panelId}_${te.key}`}getItemKey(te){return this.getItemId(te)}getItemClass(te){return{"p-menuitem":!0,"p-disabled":this.isItemDisabled(te)}}getItemProp(te,ne,ie){return te&&te.item?Co.BF.getItemValue(te.item[ne],ie):void 0}getItemLabel(te){return this.getItemProp(te,"label")}isItemExpanded(te){return te.expanded}isItemActive(te){return this.isItemExpanded(te)||this.activeItemPath.some((ne=>ne&&ne.key===te.key))}isItemVisible(te){return!1!==this.getItemProp(te,"visible")}isItemDisabled(te){return this.getItemProp(te,"disabled")}isItemFocused(te){return this.focusedItemId===this.getItemId(te)}isItemGroup(te){return Co.BF.isNotEmpty(te.items)}getAnimation(te){return this.isItemActive(te)?{value:"visible",params:{transitionParams:this.transitionOptions,height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getAriaSetSize(){return this.items.filter((te=>this.isItemVisible(te)&&!this.getItemProp(te,"separator"))).length}getAriaPosInset(te){return te-this.items.slice(0,te).filter((te=>this.isItemVisible(te)&&this.getItemProp(te,"separator"))).length+1}onItemClick(te,ne){this.isItemDisabled(ne)||(this.getItemProp(ne,"command",{originalEvent:te,item:ne.item}),this.itemToggle.emit({processedItem:ne,expanded:!this.isItemActive(ne)}))}onItemToggle(te){this.itemToggle.emit(te)}static ɵfac=function PanelMenuSub_Factory(te){return new(te||PanelMenuSub)(fe.rXU((0,fe.Rfq)((()=>ps))),fe.rXU(fe.aKT))};static ɵcmp=fe.VBU({type:PanelMenuSub,selectors:[["p-panelMenuSub"]],viewQuery:function PanelMenuSub_Query(te,ne){if(1&te&&fe.GBs(is,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.listViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",focusedItemId:"focusedItemId",items:"items",itemTemplate:"itemTemplate",level:[fe.Mj6.HasDecoratorInputTransform,"level","level",fe.Udg],activeItemPath:"activeItemPath",root:[fe.Mj6.HasDecoratorInputTransform,"root","root",fe.L39],tabindex:[fe.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",fe.Udg],transitionOptions:"transitionOptions",parentExpanded:[fe.Mj6.HasDecoratorInputTransform,"parentExpanded","parentExpanded",fe.L39]},outputs:{itemToggle:"itemToggle",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeyDown:"menuKeyDown"},features:[fe.GFd],decls:3,vars:8,consts:[["role","tree",3,"ngClass","tabindex","focusin","focusout","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-menuitem-separator","role","separator",4,"ngIf"],["role","treeitem",3,"ngClass","class","p-hidden","p-focus","ngStyle","pTooltip","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menuitem-separator"],["role","treeitem",3,"ngClass","ngStyle","pTooltip","tooltipOptions"],[1,"p-menuitem-content",3,"click"],[4,"ngIf"],[1,"p-toggleable-content"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle",4,"ngIf"],["class","p-menuitem-link",3,"ngClass","target",4,"ngIf"],["class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],[1,"p-menuitem-link",3,"ngClass","target"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle"]],template:function PanelMenuSub_Template(te,ne){1&te&&(fe.j41(0,"ul",0,1),fe.bIt("focusin",(function PanelMenuSub_Template_ul_focusin_0_listener(te){return ne.menuFocus.emit(te)}))("focusout",(function PanelMenuSub_Template_ul_focusout_0_listener(te){return ne.menuBlur.emit(te)}))("keydown",(function PanelMenuSub_Template_ul_keydown_0_listener(te){return ne.menuKeyDown.emit(te)})),fe.DNE(2,PanelMenuSub_ng_template_2_Template,2,2,"ng-template",2),fe.k0s()),2&te&&(fe.Y8G("ngClass",fe.eq3(6,_c4,ne.root))("tabindex",-1),fe.BMQ("aria-activedescendant",ne.focusedItemId)("data-pc-section","menu")("aria-hidden",!ne.parentExpanded),fe.R7$(2),fe.Y8G("ngForOf",ne.items))},dependencies:()=>[de.YU,de.Sq,de.bT,de.T3,de.B3,Qt.Wk,Qt.wQ,Ao.m,Ua.R,es.D,PanelMenuSub],encapsulation:2,data:{animation:[(0,_e.hZ)("submenu",[(0,_e.wk)("hidden",(0,_e.iF)({height:"0"})),(0,_e.wk)("visible",(0,_e.iF)({height:"*"})),(0,_e.kY)("visible <=> hidden",[(0,_e.i0)("{{transitionParams}}")]),(0,_e.kY)("void => *",(0,_e.i0)(0))])]}})}return PanelMenuSub})(),us=(()=>{class PanelMenuList{el;panelId;id;items;itemTemplate;parentExpanded;expanded;transitionOptions;root;tabindex;activeItem;itemToggle=new fe.bkB;headerFocus=new fe.bkB;subMenuViewChild;searchTimeout;searchValue;focused;focusedItem=(0,fe.vPA)(null);activeItemPath=(0,fe.vPA)([]);processedItems=(0,fe.vPA)([]);visibleItems=(0,fe.EWP)((()=>{const te=this.processedItems();return this.flatItems(te)}));get focusedItemId(){const te=this.focusedItem();return te&&te.item?.id?te.item.id:Co.BF.isNotEmpty(this.focusedItem())?`${this.panelId}_${this.focusedItem().key}`:void 0}constructor(te){this.el=te}ngOnChanges(te){this.processedItems.set(this.createProcessedItems(te?.items?.currentValue||this.items||[]))}getItemProp(te,ne){return te&&te.item?Co.BF.getItemValue(te.item[ne]):void 0}getItemLabel(te){return this.getItemProp(te,"label")}isItemVisible(te){return!1!==this.getItemProp(te,"visible")}isItemDisabled(te){return this.getItemProp(te,"disabled")}isItemActive(te){return this.activeItemPath().some((ne=>ne.key===te.parentKey))}isItemGroup(te){return Co.BF.isNotEmpty(te.items)}isElementInPanel(te,ne){const ie=te.currentTarget.closest('[data-pc-section="panel"]');return ie&&ie.contains(ne)}isItemMatched(te){return this.isValidItem(te)&&this.getItemLabel(te).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isVisibleItem(te){return!!te&&(0===te.level||this.isItemActive(te))&&this.isItemVisible(te)}isValidItem(te){return!!te&&!this.isItemDisabled(te)&&!te.separator}findFirstItem(){return this.visibleItems().find((te=>this.isValidItem(te)))}findLastItem(){return Co.BF.findLast(this.visibleItems(),(te=>this.isValidItem(te)))}findItemByEventTarget(te){let ne=te;for(;ne&&"li"!==ne.tagName?.toLowerCase();)ne=ne?.parentNode;return ne?.id&&this.visibleItems().find((te=>this.isValidItem(te)&&`${this.panelId}_${te.key}`===ne.id))}createProcessedItems(te,ne=0,ie={},re=""){const le=[];return te&&te.forEach(((te,ce)=>{const de=(""!==re?re+"_":"")+ce,ue={icon:te.icon,expanded:te.expanded,separator:te.separator,item:te,index:ce,level:ne,key:de,parent:ie,parentKey:re};ue.items=this.createProcessedItems(te.items,ne+1,ue,de),le.push(ue)})),le}findProcessedItemByItemKey(te,ne,ie=0){if((ne=ne||this.processedItems())&&ne.length)for(let re=0;re<ne.length;re++){const le=ne[re];if(this.getItemProp(le,"key")===te)return le;const ce=this.findProcessedItemByItemKey(te,le.items,ie+1);if(ce)return ce}}flatItems(te,ne=[]){return te&&te.forEach((te=>{this.isVisibleItem(te)&&(ne.push(te),this.flatItems(te.items,ne))})),ne}changeFocusedItem(te){const{originalEvent:ne,processedItem:ie,focusOnNext:re,selfCheck:le,allowHeaderFocus:ce=!0}=te;Co.BF.isNotEmpty(this.focusedItem())&&this.focusedItem().key!==ie.key?(this.focusedItem.set(ie),this.scrollInView()):ce&&this.headerFocus.emit({originalEvent:ne,focusOnNext:re,selfCheck:le})}scrollInView(){const te=le.D.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`);te&&te.scrollIntoView&&te.scrollIntoView({block:"nearest",inline:"nearest"})}onFocus(te){if(!this.focused){this.focused=!0;const ne=this.focusedItem()||(this.isElementInPanel(te,te.relatedTarget)?this.findItemByEventTarget(te.target)||this.findFirstItem():this.findLastItem());null!==te.relatedTarget&&this.focusedItem.set(ne)}}onBlur(te){const ne=te.relatedTarget;this.focused&&!this.el.nativeElement.contains(ne)&&(this.focused=!1,this.focusedItem.set(null),this.searchValue="")}onItemToggle(te){const{processedItem:ne,expanded:ie}=te;ne.expanded=!ne.expanded;const re=this.activeItemPath().filter((te=>te.parentKey!==ne.parentKey));ie&&re.push(ne),this.activeItemPath.set(re),this.processedItems.update((te=>te.map((te=>te===ne?ne:te)))),this.focusedItem.set(ne)}onKeyDown(te){const ne=te.metaKey||te.ctrlKey;switch(te.code){case"ArrowDown":this.onArrowDownKey(te);break;case"ArrowUp":this.onArrowUpKey(te);break;case"ArrowLeft":this.onArrowLeftKey(te);break;case"ArrowRight":this.onArrowRightKey(te);break;case"Home":this.onHomeKey(te);break;case"End":this.onEndKey(te);break;case"Space":this.onSpaceKey(te);break;case"Enter":this.onEnterKey(te);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!ne&&Co.BF.isPrintableCharacter(te.key)&&this.searchItems(te,te.key)}}onArrowDownKey(te){const ne=Co.BF.isNotEmpty(this.focusedItem())?this.findNextItem(this.focusedItem()):this.findFirstItem();this.changeFocusedItem({originalEvent:te,processedItem:ne,focusOnNext:!0}),te.preventDefault()}onArrowUpKey(te){const ne=Co.BF.isNotEmpty(this.focusedItem())?this.findPrevItem(this.focusedItem()):this.findLastItem();this.changeFocusedItem({originalEvent:te,processedItem:ne,selfCheck:!0}),te.preventDefault()}onArrowLeftKey(te){if(Co.BF.isNotEmpty(this.focusedItem())){const ne=this.activeItemPath().some((te=>te.key===this.focusedItem().key));if(ne){const te=this.activeItemPath().filter((te=>te.key!==this.focusedItem().key));this.activeItemPath.set(te)}else{const te=Co.BF.isNotEmpty(this.focusedItem().parent)?this.focusedItem().parent:this.focusedItem();this.focusedItem.set(te)}te.preventDefault()}}onArrowRightKey(te){if(Co.BF.isNotEmpty(this.focusedItem())){if(this.isItemGroup(this.focusedItem())){const ne=this.activeItemPath().some((te=>te.key===this.focusedItem().key));if(ne)this.onArrowDownKey(te);else{const te=this.activeItemPath().filter((te=>te.parentKey!==this.focusedItem().parentKey));te.push(this.focusedItem()),this.activeItemPath.set(te)}}te.preventDefault()}}onHomeKey(te){this.changeFocusedItem({originalEvent:te,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),te.preventDefault()}onEndKey(te){this.changeFocusedItem({originalEvent:te,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),te.preventDefault()}onEnterKey(te){if(Co.BF.isNotEmpty(this.focusedItem())){const te=le.D.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`),ne=te&&(le.D.findSingle(te,'[data-pc-section="action"]')||le.D.findSingle(te,"a,button"));ne?ne.click():te&&te.click()}te.preventDefault()}onSpaceKey(te){this.onEnterKey(te)}findNextItem(te){const ne=this.visibleItems().findIndex((ne=>ne.key===te.key));return(ne<this.visibleItems().length-1?this.visibleItems().slice(ne+1).find((te=>this.isValidItem(te))):void 0)||te}findPrevItem(te){const ne=this.visibleItems().findIndex((ne=>ne.key===te.key));return(ne>0?Co.BF.findLast(this.visibleItems().slice(0,ne),(te=>this.isValidItem(te))):void 0)||te}searchItems(te,ne){this.searchValue=(this.searchValue||"")+ne;let ie=null,re=!1;if(Co.BF.isNotEmpty(this.focusedItem())){const te=this.visibleItems().findIndex((te=>te.key===this.focusedItem().key));ie=this.visibleItems().slice(te).find((te=>this.isItemMatched(te))),ie=Co.BF.isEmpty(ie)?this.visibleItems().slice(0,te).find((te=>this.isItemMatched(te))):ie}else ie=this.visibleItems().find((te=>this.isItemMatched(te)));return Co.BF.isNotEmpty(ie)&&(re=!0),Co.BF.isEmpty(ie)&&Co.BF.isEmpty(this.focusedItem())&&(ie=this.findFirstItem()),Co.BF.isNotEmpty(ie)&&this.changeFocusedItem({originalEvent:te,processedItem:ie,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((()=>{this.searchValue="",this.searchTimeout=null}),500),re}static ɵfac=function PanelMenuList_Factory(te){return new(te||PanelMenuList)(fe.rXU(fe.aKT))};static ɵcmp=fe.VBU({type:PanelMenuList,selectors:[["p-panelMenuList"]],viewQuery:function PanelMenuList_Query(te,ne){if(1&te&&fe.GBs(os,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.subMenuViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",id:"id",items:"items",itemTemplate:"itemTemplate",parentExpanded:[fe.Mj6.HasDecoratorInputTransform,"parentExpanded","parentExpanded",fe.L39],expanded:[fe.Mj6.HasDecoratorInputTransform,"expanded","expanded",fe.L39],transitionOptions:"transitionOptions",root:[fe.Mj6.HasDecoratorInputTransform,"root","root",fe.L39],tabindex:[fe.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",fe.Udg],activeItem:"activeItem"},outputs:{itemToggle:"itemToggle",headerFocus:"headerFocus"},features:[fe.GFd,fe.OA$],decls:2,vars:10,consts:[[3,"root","id","panelId","tabindex","itemTemplate","focusedItemId","activeItemPath","transitionOptions","items","parentExpanded","itemToggle","keydown","menuFocus","menuBlur"],["submenu",""]],template:function PanelMenuList_Template(te,ne){1&te&&(fe.j41(0,"p-panelMenuSub",0,1),fe.bIt("itemToggle",(function PanelMenuList_Template_p_panelMenuSub_itemToggle_0_listener(te){return ne.onItemToggle(te)}))("keydown",(function PanelMenuList_Template_p_panelMenuSub_keydown_0_listener(te){return ne.onKeyDown(te)}))("menuFocus",(function PanelMenuList_Template_p_panelMenuSub_menuFocus_0_listener(te){return ne.onFocus(te)}))("menuBlur",(function PanelMenuList_Template_p_panelMenuSub_menuBlur_0_listener(te){return ne.onBlur(te)})),fe.k0s()),2&te&&fe.Y8G("root",!0)("id",ne.panelId+"_list")("panelId",ne.panelId)("tabindex",ne.tabindex)("itemTemplate",ne.itemTemplate)("focusedItemId",ne.focused?ne.focusedItemId:void 0)("activeItemPath",ne.activeItemPath())("transitionOptions",ne.transitionOptions)("items",ne.processedItems())("parentExpanded",ne.parentExpanded)},dependencies:[ls],styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden;outline:none}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,changeDetection:0})}return PanelMenuList})(),ps=(()=>{class PanelMenu{cd;model;style;styleClass;multiple=!1;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";id;tabindex=0;templates;containerViewChild;submenuIconTemplate;itemTemplate;animating;activeItem=(0,fe.vPA)(null);ngOnInit(){this.id=this.id||(0,Co._Y)()}ngAfterContentInit(){this.templates?.forEach((te=>{if("submenuicon"===te.getType())this.submenuIconTemplate=te.template;else this.itemTemplate=te.template}))}constructor(te){this.cd=te}collapseAll(){for(let te of this.model)te.expanded&&(te.expanded=!1);this.cd.detectChanges()}onToggleDone(){this.animating=!1,this.cd.markForCheck()}changeActiveItem(te,ne,ie,re=!1){if(!this.isItemDisabled(ne)){const te=re?ne:this.activeItem&&Co.BF.equals(ne,this.activeItem)?null:ne;this.activeItem.set(te)}}getAnimation(te){return te.expanded?{value:"visible",params:{transitionParams:this.animating?this.transitionOptions:"0ms",height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getItemProp(te,ne){return te?Co.BF.getItemValue(te[ne]):void 0}getItemLabel(te){return this.getItemProp(te,"label")}isItemActive(te){return te.expanded}isItemVisible(te){return!1!==this.getItemProp(te,"visible")}isItemDisabled(te){return this.getItemProp(te,"disabled")}isItemGroup(te){return Co.BF.isNotEmpty(te.items)}getPanelId(te,ne){return ne&&ne.id?ne.id:`${this.id}_${te}`}getHeaderId(te,ne){return te.id?te.id+"_header":`${this.getPanelId(ne)}_header`}getContentId(te,ne){return te.id?te.id+"_content":`${this.getPanelId(ne)}_content`}updateFocusedHeader(te){const{originalEvent:ne,focusOnNext:ie,selfCheck:re}=te,ce=ne.currentTarget.closest('[data-pc-section="panel"]'),de=re?le.D.findSingle(ce,'[data-pc-section="header"]'):ie?this.findNextHeader(ce):this.findPrevHeader(ce);de?this.changeFocusedHeader(ne,de):ie?this.onHeaderHomeKey(ne):this.onHeaderEndKey(ne)}changeFocusedHeader(te,ne){ne&&le.D.focus(ne)}findNextHeader(te,ne=!1){const ie=ne?te:te.nextElementSibling,re=le.D.findSingle(ie,'[data-pc-section="header"]');return re?le.D.getAttribute(re,"data-p-disabled")?this.findNextHeader(re.parentElement):re:null}findPrevHeader(te,ne=!1){const ie=ne?te:te.previousElementSibling,re=le.D.findSingle(ie,'[data-pc-section="header"]');return re?le.D.getAttribute(re,"data-p-disabled")?this.findPrevHeader(re.parentElement):re:null}findFirstHeader(){return this.findNextHeader(this.containerViewChild.nativeElement.firstElementChild,!0)}findLastHeader(){return this.findPrevHeader(this.containerViewChild.nativeElement.lastElementChild,!0)}onHeaderClick(te,ne,ie){if(this.isItemDisabled(ne))te.preventDefault();else{if(ne.command&&ne.command({originalEvent:te,item:ne}),!this.multiple)for(let te of this.model)ne!==te&&te.expanded&&(te.expanded=!1);ne.expanded=!ne.expanded,this.changeActiveItem(te,ne,ie),this.animating=!0,le.D.focus(te.currentTarget)}}onHeaderKeyDown(te,ne,ie){switch(te.code){case"ArrowDown":this.onHeaderArrowDownKey(te);break;case"ArrowUp":this.onHeaderArrowUpKey(te);break;case"Home":this.onHeaderHomeKey(te);break;case"End":this.onHeaderEndKey(te);break;case"Enter":case"Space":this.onHeaderEnterKey(te,ne,ie)}}onHeaderArrowDownKey(te){const ne=!0===le.D.getAttribute(te.currentTarget,"data-p-highlight")?le.D.findSingle(te.currentTarget.nextElementSibling,'[data-pc-section="menu"]'):null;ne?le.D.focus(ne):this.updateFocusedHeader({originalEvent:te,focusOnNext:!0}),te.preventDefault()}onHeaderArrowUpKey(te){const ne=this.findPrevHeader(te.currentTarget.parentElement)||this.findLastHeader(),ie=!0===le.D.getAttribute(ne,"data-p-highlight")?le.D.findSingle(ne.nextElementSibling,'[data-pc-section="menu"]'):null;ie?le.D.focus(ie):this.updateFocusedHeader({originalEvent:te,focusOnNext:!1}),te.preventDefault()}onHeaderHomeKey(te){this.changeFocusedHeader(te,this.findFirstHeader()),te.preventDefault()}onHeaderEndKey(te){this.changeFocusedHeader(te,this.findLastHeader()),te.preventDefault()}onHeaderEnterKey(te,ne,ie){const re=le.D.findSingle(te.currentTarget,'[data-pc-section="headeraction"]');re?re.click():this.onHeaderClick(te,ne,ie),te.preventDefault()}static ɵfac=function PanelMenu_Factory(te){return new(te||PanelMenu)(fe.rXU(fe.gRc))};static ɵcmp=fe.VBU({type:PanelMenu,selectors:[["p-panelMenu"]],contentQueries:function PanelMenu_ContentQueries(te,ne,ie){if(1&te&&fe.wni(ie,Ht.Ei,4),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.templates=te)}},viewQuery:function PanelMenu_Query(te,ne){if(1&te&&fe.GBs(as,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.containerViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",style:"style",styleClass:"styleClass",multiple:[fe.Mj6.HasDecoratorInputTransform,"multiple","multiple",fe.L39],transitionOptions:"transitionOptions",id:"id",tabindex:[fe.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",fe.Udg]},features:[fe.GFd],decls:3,vars:5,consts:[[3,"ngStyle","ngClass"],["container",""],[4,"ngFor","ngForOf"],["class","p-panelmenu-panel",3,"ngClass","ngStyle",4,"ngIf"],[1,"p-panelmenu-panel",3,"ngClass","ngStyle"],["role","button",3,"ngClass","ngStyle","pTooltip","tabindex","tooltipOptions","click","keydown"],[1,"p-panelmenu-header-content"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["class","p-toggleable-content","role","region",3,"ngClass",4,"ngIf"],["class","p-panelmenu-header-action",3,"target",4,"ngIf"],[1,"p-panelmenu-header-action",3,"target"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],["role","region",1,"p-toggleable-content",3,"ngClass"],[1,"p-panelmenu-content"],[3,"panelId","items","itemTemplate","transitionOptions","root","activeItem","tabindex","parentExpanded","headerFocus"]],template:function PanelMenu_Template(te,ne){1&te&&(fe.j41(0,"div",0,1),fe.DNE(2,PanelMenu_ng_container_2_Template,2,1,"ng-container",2),fe.k0s()),2&te&&(fe.HbH(ne.styleClass),fe.Y8G("ngStyle",ne.style)("ngClass","p-panelmenu p-component"),fe.R7$(2),fe.Y8G("ngForOf",ne.model))},dependencies:()=>[de.YU,de.Sq,de.bT,de.T3,de.B3,Qt.Wk,Qt.wQ,Ao.m,ts.D,_o.v,us],styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden;outline:none}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,data:{animation:[(0,_e.hZ)("rootItem",[(0,_e.wk)("hidden",(0,_e.iF)({height:"0"})),(0,_e.wk)("visible",(0,_e.iF)({height:"*"})),(0,_e.kY)("visible <=> hidden",[(0,_e.i0)("{{transitionParams}}")]),(0,_e.kY)("void => *",(0,_e.i0)(0))])]},changeDetection:0})}return PanelMenu})(),ms=(()=>{class PanelMenuModule{static ɵfac=function PanelMenuModule_Factory(te){return new(te||PanelMenuModule)};static ɵmod=fe.$C({type:PanelMenuModule});static ɵinj=fe.G2t({imports:[de.MD,Qt.iI,Ao.S,Ht.Gg,Ua.R,es.D,ts.D,_o.v,Qt.iI,Ao.S,Ht.Gg]})}return PanelMenuModule})();const portal_transparencia_component_c0=()=>({height:"10rem"});let fs=(()=>{class PortalTransparenciaComponent{constructor(){this.areaRestritaService=(0,fe.WQX)(ro),this.domSanitizer=(0,fe.WQX)(re.up),this.itensMenuBreadCrumb=[{label:"Área restrita",routerLink:"/area-restrita",icon:"fa-light fa-house text-primary mr-2"},{label:"Portal da transparência",icon:"fa-light fa-magnifying-glass text-primary font-bold mr-2",styleClass:"font-bold"}],this.items=[{label:"Balancetes",items:[{label:"2013",items:[{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2013-jan.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2013-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2013-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2013-set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2013-out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2013-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2013-dez.pdf"}]},{label:"2014",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014-jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014- set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014 - out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2014-dez.pdf"}]},{label:"2015",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015- out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2015-dez.pdf"}]},{label:"2016",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2016-dez.pdf"}]},{label:"2017",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2017-dez.pdf"}]},{label:"2018",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2018-dez.pdf"}]},{label:"2019",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2019-dez.pdf"}]},{label:"2020",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2020-dez.pdf"}]},{label:"2021",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2021-dez.pdf"}]},{label:"2022",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022- jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2022-dez.pdf"}]},{label:"2023",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-set.pdf"},{label:"Outubro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-out.pdf"},{label:"Novembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023-nov.pdf"},{label:"Dezembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2023dez.pdf"}]},{label:"2024",items:[{label:"Janeiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2024-jan.pdf"},{label:"Fevereiro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2024-fev.pdf"},{label:"Março",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2024-mar.pdf"},{label:"Abril",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2024-abril.pdf"},{label:"Maio",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2024-maio.pdf"},{label:"Junho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2024-jun.pdf"},{label:"Julho",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2024-jul.pdf"},{label:"Agosto",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2024-ago.pdf"},{label:"Setembro",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/BALANCETES/2024-set.pdf"}]}]},{label:"Receitas e despesas/Saldo bancário",items:[{label:"Receitas e Despesas",items:[{label:"2013 a 2018",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/RECEITAS_DESPESAS_SALDO_BANCARIO/2013_2018.pdf"},{label:"2019 a 2024",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/RECEITAS_DESPESAS_SALDO_BANCARIO/2019_2024_baixo.pdf"}]},{label:"Saldo bancário",items:[{label:"2013 a 2018",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/RECEITAS_DESPESAS_SALDO_BANCARIO/2013_2018_saldo.pdf"},{label:"2019 a 2024",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/RECEITAS_DESPESAS_SALDO_BANCARIO/2019_2024.pdf"}]}]},{label:"Auditoria contábil",items:[{label:"2019",items:[{label:"Primeiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2019-1.pdf"},{label:"Segundo trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2019-2.pdf"},{label:"Terceiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2019-3.pdf"},{label:"Quarto trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2019-4.pdf"}]},{label:"2020",items:[{label:"Primeiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2020-1.pdf"},{label:"Segundo trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2020-2.pdf"},{label:"Terceiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2020-3.pdf"},{label:"Quarto trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2020-4.pdf"}]},{label:"2021",items:[{label:"Primeiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2021-1.pdf"},{label:"Segundo trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2021-2.pdf"},{label:"Terceiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2021-3.pdf"},{label:"Quarto trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2021-4.pdf"}]},{label:"2022",items:[{label:"Primeiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2022-1.pdf"},{label:"Segundo trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2022-2.pdf"},{label:"Terceiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2022-3.pdf"},{label:"Quarto trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2022-4.pdf"}]},{label:"2023",items:[{label:"Primeiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2023-1.pdf"},{label:"Segundo trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2023-2.pdf"},{label:"Terceiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2023-3.pdf"},{label:"Quarto trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2023-4.pdf"}]},{label:"2024",items:[{label:"Primeiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/AUDITORIA_CONTABIL/2024-1.pdf"}]}]},{label:"Conselho fiscal",items:[{label:"2020",items:[{label:"Primeiro, segundo, terceiro e quarto trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2020.pdf"}]},{label:"2021",items:[{label:"Primeiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2021-1.pdf"},{label:"Segundo trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2021-2.pdf"},{label:"Terceiro e quarto trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2021-3.pdf"}]},{label:"2022",items:[{label:"Primeiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2022-1.pdf"},{label:"Segundo trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2022-2.pdf"},{label:"Terceiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2022-3.pdf"},{label:"Quarto trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2022-4.pdf"}]},{label:"2023",items:[{label:"Primeiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2023-1.pdf"},{label:"Segundo trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2023-2.pdf"},{label:"Terceiro trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2023-3.pdf"},{label:"Quarto trimestre",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/CONSELHO_FISCAL/2023-4.pdf"}]}]},{label:"Patrimônio",items:[{label:"Relação de patrimônio",items:[{label:"Atualizada em abril de 2024",url:"https://www.infobrftp.com.br/arqs/cliente_120/transparencia/PATRIMONIO/PATRIMONIO.pdf"}]}]}]}ngOnInit(){this.areaRestritaService.getModeloFooter().subscribe((te=>{te&&(this.htmlFooter=this.domSanitizer.bypassSecurityTrustHtml(te.textoHtml))}))}static#e=this.ɵfac=function PortalTransparenciaComponent_Factory(te){return new(te||PortalTransparenciaComponent)};static#t=this.ɵcmp=fe.VBU({type:PortalTransparenciaComponent,selectors:[["portal-transparencia"]],standalone:!0,features:[fe.aNF],decls:9,vars:6,consts:[[1,"flex","flex-column","align-items-center","h-full"],[1,"header"],["href","https://www.sinpolsc.org.br/","target","_blank"],["src","assets/empresa/images/logo_empresa.png","alt","LOGO",1,"pb-3"],[3,"model"],[1,"portal-transparencia"],[1,"titulo"],["styleClass","max-w-40rem",3,"model","multiple"]],template:function PortalTransparenciaComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"section",1)(2,"a",2),fe.nrm(3,"img",3),fe.k0s()(),fe.nrm(4,"p-breadcrumb",4),fe.j41(5,"section",5)(6,"span",6),fe.EFF(7,"PORTAL DA TRANSPARÊNCIA SINPOL-SC"),fe.k0s(),fe.nrm(8,"p-panelMenu",7),fe.k0s()()),2&te&&(fe.R7$(3),fe.Aen(fe.lJ4(5,portal_transparencia_component_c0)),fe.R7$(),fe.Y8G("model",ne.itensMenuBreadCrumb),fe.R7$(4),fe.Y8G("model",ne.items)("multiple",!0))},dependencies:[de.MD,ms,ps,Io,ko],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{padding:20px 10px 0}.container-aviso[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .p-breadcrumb{border:0px;padding:0;padding-left:.5rem}[_ngcontent-%COMP%]:is()   .p-breadcrumb-list[_ngcontent-%COMP%]{gap:.5rem}[_ngcontent-%COMP%]:is()   .p-menuitem-text[_ngcontent-%COMP%]{color:var(--primary-color)}.header[_ngcontent-%COMP%]{background-color:var(--primary-color);display:flex;justify-content:center;width:100%;padding-top:1rem;max-height:20rem}[_nghost-%COMP%]     .p-breadcrumb{margin-top:2.5rem}.portal-transparencia[_ngcontent-%COMP%]{flex-grow:1;overflow:auto;padding:1rem}.portal-transparencia[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:2rem;margin-top:1rem;font-weight:600;border:0 solid #a39510;border-left-width:1rem;padding-left:1rem;display:flex;justify-content:center;gap:1rem;align-items:center}.footer[_ngcontent-%COMP%]{display:flex;background-color:var(--primary-color);color:var(--primary-color-text)!important;font-size:.9rem;width:100%;max-height:20rem;padding:10px;justify-content:center;flex-direction:column;align-items:center}"]})}return PortalTransparenciaComponent})();var bs=ie(2583);let Ls=(()=>{class AvisoSolicitacaoComponent{static#e=this.ɵfac=function AvisoSolicitacaoComponent_Factory(te){return new(te||AvisoSolicitacaoComponent)};static#t=this.ɵcmp=fe.VBU({type:AvisoSolicitacaoComponent,selectors:[["app-aviso-solicitacao"]],inputs:{isDesfiliacao:"isDesfiliacao"},standalone:!0,features:[fe.aNF],decls:9,vars:1,consts:[[3,"header"],[1,"text-lg"]],template:function AvisoSolicitacaoComponent_Template(te,ne){1&te&&(fe.j41(0,"aviso-area-restrita",0)(1,"p",1)(2,"b"),fe.EFF(3,"ATENÇÃO"),fe.k0s(),fe.EFF(4,": preencha corretamente os dados no formulário a seguir."),fe.k0s(),fe.j41(5,"p",1),fe.EFF(6," Todas as etapas deste processo devem ser feitas ininterruptamente (PREENCHIMENTO, IMPRESSÃO, ASSINATURA, ESCANEAMENTO E ENVIO) "),fe.k0s(),fe.j41(7,"p",1),fe.EFF(8,"Só prossiga caso tenha todas estas condições no momento do preenchimento."),fe.k0s()()),2&te&&fe.Y8G("header",ne.isDesfiliacao?"Formulário de Desassociação":"Formulário de Filiação")},dependencies:[Nr]})}return AvisoSolicitacaoComponent})();const upload_doc_foto_component_c0=()=>["application/pdf","image/*"];let Os=(()=>{class UploadDocFotoComponent{static#e=this.ɵfac=function UploadDocFotoComponent_Factory(te){return new(te||UploadDocFotoComponent)};static#t=this.ɵcmp=fe.VBU({type:UploadDocFotoComponent,selectors:[["app-upload-doc-foto"]],inputs:{control:"control",header:"header"},standalone:!0,features:[fe.aNF],decls:4,vars:4,consts:[["header","Documento de identificação com foto"],[1,"text-lg"],["label","Documento de identificação",1,"mt-3",3,"formControl","accept","fileLimit"]],template:function UploadDocFotoComponent_Template(te,ne){1&te&&(fe.j41(0,"p-card",0)(1,"p",1),fe.EFF(2,"Abaixo você deve anexar um PDF ou uma imagem do seu documento de identificação (RG ou CNH)."),fe.k0s(),fe.nrm(3,"br-file-upload",2),fe.k0s()),2&te&&(fe.R7$(3),fe.Y8G("formControl",ne.control)("accept",fe.lJ4(3,upload_doc_foto_component_c0))("fileLimit",1))},dependencies:[de.MD,dn.D,dn.Z,Hr.r,an.X1,an.BC,an.l_],styles:["p[_ngcontent-%COMP%]{text-align:justify}"]})}return UploadDocFotoComponent})();const upload_ficha_component_c0=()=>["application/pdf"];let Ps=(()=>{class UploadFichaComponent{constructor(){this.geraFormulario=new fe.bkB}onGeraFormulario(){this.geraFormulario.emit()}static#e=this.ɵfac=function UploadFichaComponent_Factory(te){return new(te||UploadFichaComponent)};static#t=this.ɵcmp=fe.VBU({type:UploadFichaComponent,selectors:[["app-upload-ficha"]],inputs:{control:"control",header:"header"},outputs:{geraFormulario:"geraFormulario"},standalone:!0,features:[fe.aNF],decls:8,vars:5,consts:[[3,"header"],[1,"text-lg"],[1,"container-botao-form"],["label","Gerar formulário","icon","pi pi-download",3,"onClick"],[1,"ext-lg"],["label","Documento",1,"mt-3",3,"formControl","accept","fileLimit"]],template:function UploadFichaComponent_Template(te,ne){1&te&&(fe.j41(0,"p-card",0)(1,"p",1),fe.EFF(2,"Clique no botão abaixo para imprimir o formulário de solicitação."),fe.k0s(),fe.j41(3,"div",2)(4,"p-button",3),fe.bIt("onClick",(function UploadFichaComponent_Template_p_button_onClick_4_listener(){return ne.onGeraFormulario()})),fe.k0s()(),fe.j41(5,"p",4),fe.EFF(6," Para enviar o documento, basta digitalizar após assinar, clicar no documento e arrastar para o quadro abaixo. "),fe.k0s(),fe.nrm(7,"br-file-upload",5),fe.k0s()),2&te&&(fe.Y8G("header",ne.header),fe.R7$(7),fe.Y8G("formControl",ne.control)("accept",fe.lJ4(4,upload_ficha_component_c0))("fileLimit",1))},dependencies:[de.MD,dn.D,dn.Z,Hr.r,sn.tm,sn.$n,an.X1,an.BC,an.l_],styles:["p[_ngcontent-%COMP%]{text-align:justify}.container-botao-form[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:20px}"]})}return UploadFichaComponent})();function SolicitacaoDesfiliacaoComponent_div_3_div_1_div_3_ng_container_1_p_floatLabel_2_Template(te,ne){1&te&&(fe.j41(0,"p-floatLabel"),fe.nrm(1,"input",34),fe.j41(2,"label",35),fe.EFF(3,"Especifique o motivo"),fe.k0s()())}function SolicitacaoDesfiliacaoComponent_div_3_div_1_div_3_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.nrm(1,"br-foreign-key",33),fe.DNE(2,SolicitacaoDesfiliacaoComponent_div_3_div_1_div_3_ng_container_1_p_floatLabel_2_Template,4,0,"p-floatLabel",2),fe.bVm()),2&te){const te=fe.XpG(4);let ne;fe.R7$(2),fe.Y8G("ngIf",(null==(ne=te.getFormDadosControl("codMotivoDesligamento"))?null:ne.value)===te.codMotivoDesligamentoOutros)}}function SolicitacaoDesfiliacaoComponent_div_3_div_1_div_3_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",7),fe.DNE(1,SolicitacaoDesfiliacaoComponent_div_3_div_1_div_3_ng_container_1_Template,3,1,"ng-container",2),fe.j41(2,"p-floatLabel"),fe.nrm(3,"input",8),fe.j41(4,"label",9),fe.EFF(5,"Nome completo"),fe.k0s()(),fe.nrm(6,"br-foreign-key",10),fe.j41(7,"p-floatLabel"),fe.nrm(8,"p-inputMask",11),fe.j41(9,"label",12),fe.EFF(10,"Matrícula"),fe.k0s()(),fe.nrm(11,"br-foreign-key",13)(12,"br-foreign-key",14)(13,"br-date",15),fe.j41(14,"p-floatLabel"),fe.nrm(15,"p-inputMask",16),fe.j41(16,"label",17),fe.EFF(17,"CPF"),fe.k0s()(),fe.nrm(18,"br-foreign-key",18)(19,"br-date",19),fe.j41(20,"p-floatLabel"),fe.nrm(21,"p-inputMask",20),fe.j41(22,"label",21),fe.EFF(23,"Telefone celular"),fe.k0s()(),fe.j41(24,"p-floatLabel"),fe.nrm(25,"input",22),fe.j41(26,"label",23),fe.EFF(27,"Email pessoal"),fe.k0s()(),fe.nrm(28,"br-foreign-key",24),fe.j41(29,"p-floatLabel"),fe.nrm(30,"input",25),fe.j41(31,"label",26),fe.EFF(32,"Regional"),fe.k0s()(),fe.j41(33,"p-floatLabel"),fe.nrm(34,"input",27),fe.j41(35,"label",28),fe.EFF(36,"Diretoria"),fe.k0s()(),fe.j41(37,"p-floatLabel"),fe.nrm(38,"input",29),fe.j41(39,"label",30),fe.EFF(40,"Macro-região"),fe.k0s()(),fe.j41(41,"div",31)(42,"p-button",32),fe.bIt("onClick",(function SolicitacaoDesfiliacaoComponent_div_3_div_1_div_3_Template_p_button_onClick_42_listener(){fe.eBV(te);const ne=fe.XpG(3);return fe.Njj(ne.continuar())})),fe.k0s()()()}if(2&te){const te=fe.XpG(3);fe.Y8G("formGroup",te.formDados),fe.R7$(),fe.Y8G("ngIf",te.isDesfiliacao),fe.R7$(2),fe.Y8G("autofocus",!0)}}function SolicitacaoDesfiliacaoComponent_div_3_div_1_Template(te,ne){if(1&te&&(fe.j41(0,"div")(1,"div",4),fe.nrm(2,"app-aviso-solicitacao",5),fe.k0s(),fe.DNE(3,SolicitacaoDesfiliacaoComponent_div_3_div_1_div_3_Template,43,3,"div",6),fe.k0s()),2&te){const te=fe.XpG(2);fe.R7$(2),fe.Y8G("isDesfiliacao",te.isDesfiliacao),fe.R7$(),fe.Y8G("ngIf",te.formDados)}}function SolicitacaoDesfiliacaoComponent_div_3_div_2_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div")(1,"div",36)(2,"app-upload-ficha",37),fe.bIt("geraFormulario",(function SolicitacaoDesfiliacaoComponent_div_3_div_2_Template_app_upload_ficha_geraFormulario_2_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.onGeraFormulario())})),fe.k0s(),fe.nrm(3,"app-upload-doc-foto",38),fe.k0s(),fe.j41(4,"div",31)(5,"p-button",39),fe.bIt("onClick",(function SolicitacaoDesfiliacaoComponent_div_3_div_2_Template_p_button_onClick_5_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.voltar())})),fe.k0s(),fe.j41(6,"p-button",40),fe.bIt("onClick",(function SolicitacaoDesfiliacaoComponent_div_3_div_2_Template_p_button_onClick_6_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.salvaDocumentos())})),fe.k0s()()()}if(2&te){const te=fe.XpG(2);fe.R7$(),fe.Y8G("formGroup",te.formDocumentos),fe.R7$(),fe.Y8G("header","Gerar ficha de "+(te.isDesfiliacao?"desassociação":"filiação"))("control",te.getFormDocumentosControl("documentoFicha")),fe.R7$(),fe.Y8G("control",te.getFormDocumentosControl("documentoIdentificacao"))}}function SolicitacaoDesfiliacaoComponent_div_3_Template(te,ne){if(1&te&&(fe.j41(0,"div"),fe.DNE(1,SolicitacaoDesfiliacaoComponent_div_3_div_1_Template,4,2,"div",2)(2,SolicitacaoDesfiliacaoComponent_div_3_div_2_Template,7,4,"div",2),fe.k0s()),2&te){const te=fe.XpG();fe.R7$(),fe.Y8G("ngIf",!te.mostraDocumento),fe.R7$(),fe.Y8G("ngIf",te.mostraDocumento)}}function SolicitacaoDesfiliacaoComponent_div_4_Template(te,ne){1&te&&(fe.j41(0,"div"),fe.nrm(1,"app-aviso-concluido"),fe.k0s())}const solicitacao_desfiliacao_component_c0=()=>({width:"50vw"});let zs=(()=>{class SolicitacaoDesfiliacaoComponent extends ia{constructor(){super({codMotivoDesligamentoOutros:3,isDesfiliacao:!0}),this.formDados=this.formBuilder.group({codCc:[null],nomeCc:[null,an.k0.required],codCargoTrabalho:[null,an.k0.required],codSituacaoCc:[null,an.k0.required],codigoFolha:[null,an.k0.required],codClasseCargo:[null,an.k0.required],dataAdmissao:[null,an.k0.required],cpfCliente:[null,an.k0.required],codSexo:[null,an.k0.required],celularFone:[null,an.k0.required],dataNascimento:[null,an.k0.required],emailPrincipal:[null,an.k0.compose([an.k0.required,an.k0.email]),[this.dominioEmailValidator.checarDominio()]],codCidade:[null,an.k0.required],codMotivoDesligamento:[null,an.k0.required],outroMotivoDesligamento:[null],regional:{value:"",disabled:!0},diretoria:{value:"",disabled:!0},macroRegiao:{value:"",disabled:!0}}),this.formDocumentos=this.formBuilder.group({documentoFicha:[null,an.k0.required],documentoIdentificacao:[null,an.k0.required]})}ngOnInit(){this.formDados.get("codCidade")?.valueChanges.pipe((0,Wt.n)((te=>this.vtCidadeService.getRecord(te))),(0,Zt.T)((te=>({regional:te.regional?.nomeRegional,diretoria:te.regional?.diretoriaRegional?.nomeDiretoriaRegional,macroRegiao:te.regiaoUf?.nomeRegiaoUf})))).subscribe((te=>{this.formDados.patchValue(te)})),this.formDados.get("codMotivoDesligamento")?.valueChanges.subscribe((te=>{te===this.codMotivoDesligamentoOutros?this.formDados.get("outroMotivoDesligamento")?.addValidators(an.k0.required):this.formDados.get("outroMotivoDesligamento")?.removeValidators(an.k0.required),this.formDados.updateValueAndValidity()}))}onGeraFormulario(){var te=this;const ne=this.loadingService.cria();return ne.apresenta(),new Promise(((ie,re)=>{const le={...this.formDados.value,codCategoriaCadastro:2};var ce;this.http.post(`${this.environmentService.environment.serverUrl}/vt-centro-custo/solicitacoes/desfiliacao/pre-cadastro`,le).pipe((0,pn.j)((()=>ne.finaliza()))).subscribe({next:(ce=(0,pi.A)((function*(ne){te.clicouBotaoGerarFormulario=!0,te.formDados.patchValue({codCc:ne});const re=yield te.preferenciaService.get("URL_INAPP");window.open(`${re}?operacao=formulario_membro&cod_membro=${ne}`,"_blank"),ie()})),function next(te){return ce.apply(this,arguments)}),error:()=>{this.brMessageService.error(),re()}})}))}static#e=this.ɵfac=function SolicitacaoDesfiliacaoComponent_Factory(te){return new(te||SolicitacaoDesfiliacaoComponent)};static#t=this.ɵcmp=fe.VBU({type:SolicitacaoDesfiliacaoComponent,selectors:[["app-solicitacao-desfiliacao"]],standalone:!0,features:[fe.Vt3,fe.aNF],decls:7,vars:5,consts:[[1,"background-area-restrita"],[1,"container-funcao-area-restrita"],[4,"ngIf"],["position","bottom-center"],[1,"container-aviso"],[3,"isDesfiliacao"],["class","container-filiacao",3,"formGroup",4,"ngIf"],[1,"container-filiacao",3,"formGroup"],["id","nomeCc","brInputText","","pAutoFocus","","formControlName","nomeCc",3,"autofocus"],["for","nomeCc"],["formControlName","codCargoTrabalho","optionValue","codFuncao","optionLabel","nomeFuncao","endpoint","funcao","label","Cargo atual"],["id","codigoFolha","formControlName","codigoFolha","mask","9999999-9-99"],["for","codigoFolha"],["formControlName","codSituacaoCc","optionValue","codSituacaoCc","optionLabel","nomeSituacaoCc","endpoint","ger-situacao-cc","label","Situação Servidor Público"],["formControlName","codClasseCargo","optionValue","codClasseCargo","optionLabel","nomeClasseCargo","endpoint","classe-cargo","label","Classe/nível entrância"],["label","Data de ingresso na PC","formControlName","dataAdmissao"],["id","cpfCliente","formControlName","cpfCliente","mask","999.999.999-99"],["for","cpfCliente"],["formControlName","codSexo","optionValue","codSexo","optionLabel","nomeSexo","endpoint","sexo","label","Sexo"],["label","Data de nascimento","formControlName","dataNascimento"],["id","celularFone","formControlName","celularFone","mask","99 99999-9999"],["for","celularFone"],["id","emailPrincipal","brInputText","","formControlName","emailPrincipal"],["for","emailPrincipal"],["formControlName","codCidade","optionValue","codCidade","optionLabel","nomeCidade","endpoint","vt-cidade","label","Cidade","query","codRegional=!null"],["id","regional","brInputText","","formControlName","regional"],["for","regional"],["brInputText","","id","diretoria","formControlName","diretoria"],["for","diretoria"],["brInputText","","id","macroRegiao","formControlName","macroRegiao"],["for","macroRegiao"],[1,"container-botao"],["icon","pi pi-check","label","Continuar","styleClass","p-button-success p-button-raised p-button-rounded",3,"onClick"],["formControlName","codMotivoDesligamento","optionValue","codMotivoDesligamento","optionLabel","nomeMotivoDesligamento","endpoint","motivo-desligamento","label","Motivo da desassociação"],["brInputText","","id","outroMotivoDesligamento","formControlName","outroMotivoDesligamento"],["for","outroMotivoDesligamento"],[1,"documentos",3,"formGroup"],[3,"header","control","geraFormulario"],[3,"control"],["icon","pi pi-times","label","Retornar","styleClass","p-button-danger p-button-raised p-button-rounded",3,"onClick"],["icon","pi pi-check","label","Concluir","styleClass","p-button-success p-button-raised p-button-rounded",3,"onClick"]],template:function SolicitacaoDesfiliacaoComponent_Template(te,ne){1&te&&(fe.nrm(0,"header-empresa"),fe.j41(1,"div",0)(2,"div",1),fe.DNE(3,SolicitacaoDesfiliacaoComponent_div_3_Template,3,2,"div",2)(4,SolicitacaoDesfiliacaoComponent_div_4_Template,2,0,"div",2),fe.k0s()(),fe.nrm(5,"p-toast",3)(6,"p-confirmDialog")),2&te&&(fe.R7$(3),fe.Y8G("ngIf",!ne.concluido),fe.R7$(),fe.Y8G("ngIf",ne.concluido),fe.R7$(2),fe.Aen(fe.lJ4(4,solicitacao_desfiliacao_component_c0)))},dependencies:[wr,de.MD,de.bT,hr.kr,Ls,an.X1,an.me,an.BC,an.cb,an.j4,an.JD,an.YN,sn.tm,sn.$n,$r,Yt.MB,Yt.y8,Po.F,Po.T,Ps,Os,bs.u,bs.q,_n.B,yn.f,yn.V,Pr.Zn,Pr.N5,jr.a,Ur.L],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{padding:20px 10px 0}.container-aviso[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .p-breadcrumb{border:0px;padding:0;padding-left:.5rem}[_ngcontent-%COMP%]:is()   .p-breadcrumb-list[_ngcontent-%COMP%]{gap:.5rem}[_ngcontent-%COMP%]:is()   .p-menuitem-text[_ngcontent-%COMP%]{color:var(--primary-color)}.container-filiacao[_ngcontent-%COMP%]{padding:3rem 0;display:flex;flex-direction:column;gap:2.25rem}.container-filiacao[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.container-botao[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-bottom:20px;gap:1.5rem}.documentos[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;margin-bottom:20px}  .p-inputtext,   .p-dropdown{width:100%!important}"]})}return SolicitacaoDesfiliacaoComponent})(),Xs=(()=>{class SolicitacaoEscolhaComponent{static#e=this.ɵfac=function SolicitacaoEscolhaComponent_Factory(te){return new(te||SolicitacaoEscolhaComponent)};static#t=this.ɵcmp=fe.VBU({type:SolicitacaoEscolhaComponent,selectors:[["app-solicitacao-escolha"]],standalone:!0,features:[fe.aNF],decls:5,vars:0,consts:[[1,"background-area-restrita"],[1,"container-botoes"],["routerLink","/area-restrita/sinpol/solicitacao/filiacao","label","Desejo me filiar ao SINPOL","styleClass","p-button-lg p-button-rounded p-button-success p-button-raised",1,"filiar"],["routerLink","/area-restrita/sinpol/solicitacao/desfiliacao","label","Desejo me desfiliar do SINPOL","styleClass","p-button-lg p-button-rounded p-button-danger p-button-raised",1,"desfiliar"]],template:function SolicitacaoEscolhaComponent_Template(te,ne){1&te&&(fe.nrm(0,"header-empresa"),fe.j41(1,"div",0)(2,"div",1),fe.nrm(3,"p-button",2)(4,"p-button",3),fe.k0s()())},dependencies:[wr,sn.tm,sn.$n,Qt.Wk],styles:[".container-botoes[_ngcontent-%COMP%]{gap:40px;padding:5px;display:flex;justify-content:center;flex-wrap:wrap;margin:auto}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;padding-top:50px;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .filiar .p-button, [_nghost-%COMP%]     .desfiliar .p-button{padding:2rem 3rem}[_nghost-%COMP%]     .filiar .p-button .p-button-label, [_nghost-%COMP%]     .desfiliar .p-button .p-button-label{font-size:2rem}"]})}return SolicitacaoEscolhaComponent})();function SolicitacaoFiliacaoComponent_div_3_div_1_div_3_ng_container_1_p_floatLabel_2_Template(te,ne){1&te&&(fe.j41(0,"p-floatLabel"),fe.nrm(1,"input",34),fe.j41(2,"label",35),fe.EFF(3,"Especifique o motivo"),fe.k0s()())}function SolicitacaoFiliacaoComponent_div_3_div_1_div_3_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.nrm(1,"br-foreign-key",33),fe.DNE(2,SolicitacaoFiliacaoComponent_div_3_div_1_div_3_ng_container_1_p_floatLabel_2_Template,4,0,"p-floatLabel",2),fe.bVm()),2&te){const te=fe.XpG(4);let ne;fe.R7$(2),fe.Y8G("ngIf",(null==(ne=te.getFormDadosControl("codMotivoDesligamento"))?null:ne.value)===te.codMotivoDesligamentoOutros)}}function SolicitacaoFiliacaoComponent_div_3_div_1_div_3_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",7),fe.DNE(1,SolicitacaoFiliacaoComponent_div_3_div_1_div_3_ng_container_1_Template,3,1,"ng-container",2),fe.j41(2,"p-floatLabel"),fe.nrm(3,"input",8),fe.j41(4,"label",9),fe.EFF(5,"Nome completo"),fe.k0s()(),fe.nrm(6,"br-foreign-key",10),fe.j41(7,"p-floatLabel"),fe.nrm(8,"p-inputMask",11),fe.j41(9,"label",12),fe.EFF(10,"Matrícula"),fe.k0s()(),fe.nrm(11,"br-foreign-key",13)(12,"br-foreign-key",14)(13,"br-date",15),fe.j41(14,"p-floatLabel"),fe.nrm(15,"p-inputMask",16),fe.j41(16,"label",17),fe.EFF(17,"CPF"),fe.k0s()(),fe.nrm(18,"br-foreign-key",18)(19,"br-date",19),fe.j41(20,"p-floatLabel"),fe.nrm(21,"p-inputMask",20),fe.j41(22,"label",21),fe.EFF(23,"Telefone celular"),fe.k0s()(),fe.j41(24,"p-floatLabel"),fe.nrm(25,"input",22),fe.j41(26,"label",23),fe.EFF(27,"Email pessoal"),fe.k0s()(),fe.nrm(28,"br-foreign-key",24),fe.j41(29,"p-floatLabel"),fe.nrm(30,"input",25),fe.j41(31,"label",26),fe.EFF(32,"Regional"),fe.k0s()(),fe.j41(33,"p-floatLabel"),fe.nrm(34,"input",27),fe.j41(35,"label",28),fe.EFF(36,"Diretoria"),fe.k0s()(),fe.j41(37,"p-floatLabel"),fe.nrm(38,"input",29),fe.j41(39,"label",30),fe.EFF(40,"Macro-região"),fe.k0s()(),fe.j41(41,"div",31)(42,"p-button",32),fe.bIt("onClick",(function SolicitacaoFiliacaoComponent_div_3_div_1_div_3_Template_p_button_onClick_42_listener(){fe.eBV(te);const ne=fe.XpG(3);return fe.Njj(ne.continuar())})),fe.k0s()()()}if(2&te){const te=fe.XpG(3);fe.Y8G("formGroup",te.formDados),fe.R7$(),fe.Y8G("ngIf",te.isDesfiliacao),fe.R7$(2),fe.Y8G("autofocus",!0)}}function SolicitacaoFiliacaoComponent_div_3_div_1_Template(te,ne){if(1&te&&(fe.j41(0,"div")(1,"div",4),fe.nrm(2,"app-aviso-solicitacao",5),fe.k0s(),fe.DNE(3,SolicitacaoFiliacaoComponent_div_3_div_1_div_3_Template,43,3,"div",6),fe.k0s()),2&te){const te=fe.XpG(2);fe.R7$(2),fe.Y8G("isDesfiliacao",te.isDesfiliacao),fe.R7$(),fe.Y8G("ngIf",te.formDados)}}function SolicitacaoFiliacaoComponent_div_3_div_2_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div")(1,"div",36)(2,"app-upload-ficha",37),fe.bIt("geraFormulario",(function SolicitacaoFiliacaoComponent_div_3_div_2_Template_app_upload_ficha_geraFormulario_2_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.onGeraFormulario())})),fe.k0s(),fe.nrm(3,"app-upload-doc-foto",38),fe.k0s(),fe.j41(4,"div",31)(5,"p-button",39),fe.bIt("onClick",(function SolicitacaoFiliacaoComponent_div_3_div_2_Template_p_button_onClick_5_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.voltar())})),fe.k0s(),fe.j41(6,"p-button",40),fe.bIt("onClick",(function SolicitacaoFiliacaoComponent_div_3_div_2_Template_p_button_onClick_6_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.salvaDocumentos())})),fe.k0s()()()}if(2&te){const te=fe.XpG(2);fe.R7$(),fe.Y8G("formGroup",te.formDocumentos),fe.R7$(),fe.Y8G("header","Gerar ficha de "+(te.isDesfiliacao?"desassociação":"filiação"))("control",te.getFormDocumentosControl("documentoFicha")),fe.R7$(),fe.Y8G("control",te.getFormDocumentosControl("documentoIdentificacao"))}}function SolicitacaoFiliacaoComponent_div_3_Template(te,ne){if(1&te&&(fe.j41(0,"div"),fe.DNE(1,SolicitacaoFiliacaoComponent_div_3_div_1_Template,4,2,"div",2)(2,SolicitacaoFiliacaoComponent_div_3_div_2_Template,7,4,"div",2),fe.k0s()),2&te){const te=fe.XpG();fe.R7$(),fe.Y8G("ngIf",!te.mostraDocumento),fe.R7$(),fe.Y8G("ngIf",te.mostraDocumento)}}function SolicitacaoFiliacaoComponent_div_4_Template(te,ne){1&te&&(fe.j41(0,"div"),fe.nrm(1,"app-aviso-concluido"),fe.k0s())}const solicitacao_filiacao_component_c0=()=>({width:"50vw"});let tl=(()=>{class SolicitacaoFiliacaoComponent extends ia{constructor(){super(),this.formDados=this.formBuilder.group({codCc:[null],nomeCc:[null,an.k0.required],codCargoTrabalho:[null,an.k0.required],codSituacaoCc:[null,an.k0.required],codigoFolha:[null,an.k0.required],codClasseCargo:[null,an.k0.required],dataAdmissao:[null,an.k0.required],cpfCliente:[null,an.k0.required],codSexo:[null,an.k0.required],celularFone:[null,an.k0.required],dataNascimento:[null,an.k0.required],emailPrincipal:[null,an.k0.compose([an.k0.required,an.k0.email]),[this.dominioEmailValidator.checarDominio()]],codCidade:[null,an.k0.required],regional:{value:"",disabled:!0},diretoria:{value:"",disabled:!0},macroRegiao:{value:"",disabled:!0}}),this.formDocumentos=this.formBuilder.group({documentoFicha:[null,an.k0.required],documentoIdentificacao:[null,an.k0.required]})}ngOnInit(){this.formDados.get("codCidade")?.valueChanges.pipe((0,Wt.n)((te=>this.vtCidadeService.getRecord(te))),(0,Zt.T)((te=>({regional:te.regional?.nomeRegional,diretoria:te.regional?.diretoriaRegional?.nomeDiretoriaRegional,macroRegiao:te.regiaoUf?.nomeRegiaoUf})))).subscribe((te=>{this.formDados.patchValue(te)}))}onGeraFormulario(){var te=this;const ne=this.loadingService.cria("Aguarde, salvando ...");return ne.apresenta(),new Promise(((ie,re)=>{const le={...this.formDados.value,codCategoriaCadastro:2};var ce;this.http.post(`${this.environmentService.environment.serverUrl}/vt-centro-custo/solicitacoes/filiacao/pre-cadastro`,le).pipe((0,pn.j)((()=>ne.finaliza()))).subscribe({next:(ce=(0,pi.A)((function*(ne){te.clicouBotaoGerarFormulario=!0,te.formDados.patchValue({codCc:ne});const re=yield te.preferenciaService.get("URL_INAPP");window.open(`${re}?operacao=formulario_membro&cod_membro=${ne}`,"_blank"),ie()})),function next(te){return ce.apply(this,arguments)}),error:()=>{this.brMessageService.error(),re()}})}))}static#e=this.ɵfac=function SolicitacaoFiliacaoComponent_Factory(te){return new(te||SolicitacaoFiliacaoComponent)};static#t=this.ɵcmp=fe.VBU({type:SolicitacaoFiliacaoComponent,selectors:[["app-solicitacao-filiacao"]],standalone:!0,features:[fe.Vt3,fe.aNF],decls:7,vars:5,consts:[[1,"background-area-restrita"],[1,"container-funcao-area-restrita"],[4,"ngIf"],["position","bottom-center"],[1,"container-aviso"],[3,"isDesfiliacao"],["class","container-filiacao",3,"formGroup",4,"ngIf"],[1,"container-filiacao",3,"formGroup"],["id","nomeCc","brInputText","","pAutoFocus","","formControlName","nomeCc",3,"autofocus"],["for","nomeCc"],["formControlName","codCargoTrabalho","optionValue","codFuncao","optionLabel","nomeFuncao","endpoint","funcao","label","Cargo atual"],["id","codigoFolha","formControlName","codigoFolha","mask","9999999-9-99"],["for","codigoFolha"],["formControlName","codSituacaoCc","optionValue","codSituacaoCc","optionLabel","nomeSituacaoCc","endpoint","ger-situacao-cc","label","Situação Servidor Público"],["formControlName","codClasseCargo","optionValue","codClasseCargo","optionLabel","nomeClasseCargo","endpoint","classe-cargo","label","Classe/nível entrância"],["label","Data de ingresso na PC","formControlName","dataAdmissao"],["id","cpfCliente","formControlName","cpfCliente","mask","999.999.999-99"],["for","cpfCliente"],["formControlName","codSexo","optionValue","codSexo","optionLabel","nomeSexo","endpoint","sexo","label","Sexo"],["label","Data de nascimento","formControlName","dataNascimento"],["id","celularFone","formControlName","celularFone","mask","99 99999-9999"],["for","celularFone"],["id","emailPrincipal","brInputText","","formControlName","emailPrincipal"],["for","emailPrincipal"],["formControlName","codCidade","optionValue","codCidade","optionLabel","nomeCidade","endpoint","vt-cidade","label","Cidade","query","codRegional=!null"],["id","regional","brInputText","","formControlName","regional"],["for","regional"],["brInputText","","id","diretoria","formControlName","diretoria"],["for","diretoria"],["brInputText","","id","macroRegiao","formControlName","macroRegiao"],["for","macroRegiao"],[1,"container-botao"],["icon","pi pi-check","label","Continuar","styleClass","p-button-success p-button-raised p-button-rounded",3,"onClick"],["formControlName","codMotivoDesligamento","optionValue","codMotivoDesligamento","optionLabel","nomeMotivoDesligamento","endpoint","motivo-desligamento","label","Motivo da desassociação"],["brInputText","","id","outroMotivoDesligamento","formControlName","outroMotivoDesligamento"],["for","outroMotivoDesligamento"],[1,"documentos",3,"formGroup"],[3,"header","control","geraFormulario"],[3,"control"],["icon","pi pi-times","label","Retornar","styleClass","p-button-danger p-button-raised p-button-rounded",3,"onClick"],["icon","pi pi-check","label","Concluir","styleClass","p-button-success p-button-raised p-button-rounded",3,"onClick"]],template:function SolicitacaoFiliacaoComponent_Template(te,ne){1&te&&(fe.nrm(0,"header-empresa"),fe.j41(1,"div",0)(2,"div",1),fe.DNE(3,SolicitacaoFiliacaoComponent_div_3_Template,3,2,"div",2)(4,SolicitacaoFiliacaoComponent_div_4_Template,2,0,"div",2),fe.k0s()(),fe.nrm(5,"p-toast",3)(6,"p-confirmDialog")),2&te&&(fe.R7$(3),fe.Y8G("ngIf",!ne.concluido),fe.R7$(),fe.Y8G("ngIf",ne.concluido),fe.R7$(2),fe.Aen(fe.lJ4(4,solicitacao_filiacao_component_c0)))},dependencies:[wr,de.MD,de.bT,hr.kr,Ls,an.X1,an.me,an.BC,an.cb,an.j4,an.JD,an.YN,sn.tm,sn.$n,$r,Yt.MB,Yt.y8,Po.F,Po.T,Ps,Os,bs.u,bs.q,_n.B,yn.f,yn.V,Pr.Zn,Pr.N5,jr.a,Ur.L],styles:[".container-funcao-area-restrita[_ngcontent-%COMP%]{padding:20px 10px 0}.container-aviso[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}@media (min-width: 769px){.container-funcao-area-restrita[_ngcontent-%COMP%]{max-width:50%;margin:auto}}.background-area-restrita[_ngcontent-%COMP%]{background-color:#e5e5e5;min-height:calc(100% - 10rem)}[_nghost-%COMP%]     .p-breadcrumb{border:0px;padding:0;padding-left:.5rem}[_ngcontent-%COMP%]:is()   .p-breadcrumb-list[_ngcontent-%COMP%]{gap:.5rem}[_ngcontent-%COMP%]:is()   .p-menuitem-text[_ngcontent-%COMP%]{color:var(--primary-color)}.container-filiacao[_ngcontent-%COMP%]{padding:3rem 0;display:flex;flex-direction:column;gap:2.25rem}.container-filiacao[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.container-botao[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-bottom:20px;gap:1.5rem}.documentos[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px;margin-bottom:20px}  .p-inputtext,   .p-dropdown{width:100%!important}"]})}return SolicitacaoFiliacaoComponent})(),cl=(()=>{class NbrDemandaExternaComponent{constructor(te){this.activatedRoute=te,this.nbrDemandaService=(0,fe.WQX)(io.m)}ngOnInit(){this.nbrDemandaService.labelBotaoFecharDetails="Fechar",this.nbrDemandaService.onFechar=()=>{window.close()},this.idDemanda=Number(this.activatedRoute.snapshot.paramMap.get("id"))}ngAfterViewInit(){this.nbrDemandaService.idRowDetails=this.idDemanda}static#e=this.ɵfac=function NbrDemandaExternaComponent_Factory(te){return new(te||NbrDemandaExternaComponent)(fe.rXU(Qt.nX))};static#t=this.ɵcmp=fe.VBU({type:NbrDemandaExternaComponent,selectors:[["ng-component"]],viewQuery:function NbrDemandaExternaComponent_Query(te,ne){if(1&te&&fe.GBs(Fo.M,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.nbrDemandaDetails=te.first)}},standalone:!0,features:[fe.aNF],decls:3,vars:4,consts:[[1,"p-3"],[3,"brListService","apenasHeader"],[3,"nbrDemandaService","standalone"]],template:function NbrDemandaExternaComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0),fe.nrm(1,"br-list-details",1)(2,"demanda-linha-do-tempo",2),fe.k0s()),2&te&&(fe.R7$(),fe.Y8G("brListService",ne.nbrDemandaService)("apenasHeader",!0),fe.R7$(),fe.Y8G("nbrDemandaService",ne.nbrDemandaService)("standalone",!0))},dependencies:[kr.w,Fo.M],styles:["[_nghost-%COMP%]     br-list-details .button-icon{display:none}"]})}return NbrDemandaExternaComponent})(),kl=(()=>{class ForumService{constructor(te,ne){this.http=te,this.environmentService=ne}syncUsuarioForum(te,ne,ie){return this.http.get(`${this.environmentService.environment.serverUrl}/auth/${te}/forum`,{params:{sso:ne,sig:ie}})}loginUsuarioForum(te,ne,ie,re){return this.http.post(`${this.environmentService.environment.serverUrl}/auth/forum`,{sso:ie,sig:re,usuario:te,senha:ne})}static#e=this.ɵfac=function ForumService_Factory(te){return new(te||ForumService)(fe.KVO(ue.Qq),fe.KVO(oo.v))};static#t=this.ɵprov=fe.jDH({token:ForumService,factory:ForumService.ɵfac,providedIn:"root"})}return ForumService})();function LoginComponent_div_0_Template(te,ne){1&te&&(fe.j41(0,"div"),fe.EFF(1,"Aguarde..."),fe.k0s())}function LoginComponent_ng_template_1_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",2)(1,"div",3)(2,"p-card",4)(3,"div",5)(4,"span"),fe.EFF(5,"Preencha o formulário abaixo com seu login e senha de acesso."),fe.k0s()()(),fe.j41(6,"div",6)(7,"div",7)(8,"span",8),fe.nrm(9,"i",9)(10,"input",10),fe.k0s(),fe.j41(11,"span",8),fe.nrm(12,"i",11)(13,"input",12),fe.k0s(),fe.j41(14,"div",13)(15,"div")(16,"p-button",14),fe.bIt("click",(function LoginComponent_ng_template_1_Template_p_button_click_16_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.showSolicitacaoSenhaModal())})),fe.EFF(17,"Esqueci minha senha"),fe.k0s()()(),fe.j41(18,"p-button",15),fe.bIt("click",(function LoginComponent_ng_template_1_Template_p_button_click_18_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.entrar())})),fe.k0s()()()()()}if(2&te){const te=fe.XpG();fe.R7$(7),fe.Y8G("formGroup",te.form),fe.R7$(11),fe.Y8G("disabled",te.form&&te.form.invalid||te.isLoading)("icon",te.isLoading?"pi pi-spin pi-spinner":"")}}let zl=(()=>{class LoginComponent{constructor(te,ne,ie,re,le,ce,de,ue){this.activeRoute=te,this.forumService=ne,this.formGroup=ie,this.dialogService=re,this.brMessageService=le,this.tosModalService=ce,this.lbrUsuarioService=de,this.loadingService=ue,this.isLoading=!1,this.passwordDialogRef=null,this.form=this.formGroup.group({usuario:["",an.k0.required],senha:["",an.k0.required]})}ngOnInit(){if(this.sso=this.activeRoute.snapshot.queryParamMap.get("sso"),this.sig=this.activeRoute.snapshot.queryParamMap.get("sig"),!this.sso||!this.sig)return void(window.location.href="https://forum-aprasc.infobrcorp.com.br");const te=new URLSearchParams(atob(this.sso));this.returnUrl=te.get("return_sso_url"),this.inIframe()&&this.loginIframe()}loginIframe(){window.addEventListener("message",(te=>{"dadosUsuario"===te.data.type&&this.forumService.syncUsuarioForum(te.data.codLbrUsuario,this.sso,this.sig).subscribe({next:te=>{this.onLoginSucces(te)}})})),window.parent.postMessage({type:"dadosUsuario"},"*")}entrar(){this.isLoading=!0;const te=this.form.value;this.forumService.loginUsuarioForum(te.usuario,te.senha,this.sso,this.sig).pipe((0,tn.W)((te=>(this.brMessageService.error(te.error.message),un.w))),(0,Jt.M)((te=>{this.onLoginSucces(te)})),(0,pn.j)((()=>{this.isLoading=!1}))).subscribe()}onLoginSucces(te){if(te.aceitouTermoServicoForum)return this.acessarForumComUsuarioLogado(te);this.tosModalService.open(te.urlTermosServicoForum,{header:"Termos de Serviço",dismissableMask:!1}).onClose.subscribe({next:ne=>{ne.aceitouTos&&(this.loadingService.show(),this.lbrUsuarioService.aceitaTosForum(te.token).pipe((0,pn.j)((()=>this.loadingService.hide()))).subscribe({next:()=>{this.acessarForumComUsuarioLogado(te)}}))}})}acessarForumComUsuarioLogado(te){const ne=new URLSearchParams(te);window.location.href=`${this.returnUrl}?${ne.toString()}`}inIframe(){return window.self!==window.top}showSolicitacaoSenhaModal(){this.passwordDialogRef=this.dialogService.open(Rn,{width:"clamp(300px, 400px, 400px)",header:"Solicitação de Senha",autoZIndex:!1,modal:!0,styleClass:"forgot-password-component",closable:!1})}static#e=this.ɵfac=function LoginComponent_Factory(te){return new(te||LoginComponent)(fe.rXU(Qt.nX),fe.rXU(kl),fe.rXU(an.ok),fe.rXU(Ut.o3),fe.rXU(bn.h),fe.rXU(mo),fe.rXU(En.c),fe.rXU(Fi.T))};static#t=this.ɵcmp=fe.VBU({type:LoginComponent,selectors:[["app-login"]],standalone:!0,features:[fe.Jv_([Ut.o3]),fe.aNF],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["login",""],[1,"flex","flex-column","align-items-center","justify-content-center","w-full","h-full","bg-primary-100"],[1,"w-max","h-full","flex","flex-column","justify-content-center","mb-8"],["header","Fórum",1,"mb-3"],[1,"flex","flex-column","p-2"],[1,"border-1","surface-border","surface-ground","border-round","px-4","py-5","shadow-1","fadein","animation-duration-300"],[3,"formGroup"],[1,"p-input-icon-left","w-full","mb-3"],[1,"pi","pi-user","text-primary"],["formControlName","usuario","id","login","type","text","brInputText","","placeholder","Usuário","size","20rem","autofocus","",1,"w-full"],[1,"pi","pi-lock","text-primary"],["formControlName","senha","id","senha","type","password","brInputText","","placeholder","Senha","size","20rem",1,"w-full"],[1,"mb-3","flex","justify-content-center","sm:justify-content-between","align-items-center","flex-wrap"],["styleClass","p-button-link",3,"click"],["type","submit","label","Entrar","styleClass","w-full",3,"disabled","icon","click"]],template:function LoginComponent_Template(te,ne){if(1&te&&fe.DNE(0,LoginComponent_div_0_Template,2,0,"div",0)(1,LoginComponent_ng_template_1_Template,19,3,"ng-template",null,1,fe.C5r),2&te){const te=fe.sdS(2);fe.Y8G("ngIf",ne.inIframe())("ngIfElse",te)}},dependencies:[de.MD,de.bT,sn.tm,sn.$n,dn.D,dn.Z,an.YN,an.me,an.BC,an.cb,an.X1,an.j4,an.JD,_n.B]})}return LoginComponent})(),Hl=(()=>{class InicialComponent{header(){return"Início"}icon(){return"fa-light fa-fw fa-house"}static#e=this.ɵfac=function InicialComponent_Factory(te){return new(te||InicialComponent)};static#t=this.ɵcmp=fe.VBU({type:InicialComponent,selectors:[["br-inicial"]],decls:2,vars:0,consts:[[1,"flex","justify-content-center","align-items-center","h-full"],["src","../../../assets/empresa/images/imagem_inicial.png",2,"width","70%"]],template:function InicialComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0),fe.nrm(1,"img",1),fe.k0s())}})}return InicialComponent})();var Ul=ie(2848),$l=ie(3206),Kl=ie(6082);let nc=(()=>{class CaptionComuniqueService{constructor(){this.preferenciasService=(0,fe.WQX)(qn.v)}getCaptionBrComunique(){return(0,Hn.H)(this.preferenciasService.get("CAPTION_BRCOMUNIQUE")).pipe((0,Jt.M)((te=>this.captionBrComunique=te)))}static#e=this.ɵfac=function CaptionComuniqueService_Factory(te){return new(te||CaptionComuniqueService)};static#t=this.ɵprov=fe.jDH({token:CaptionComuniqueService,factory:CaptionComuniqueService.ɵfac,providedIn:"root"})}return CaptionComuniqueService})(),ic=(()=>{class BairroService extends Un.O7{constructor(){super("bairro"),this.brListName="Bairro",this.brListNamePlural="Bairros",this.columns$=new zn.t([{formControlName:"codBairro",fieldPath:"codBairro",label:"ID"},{formControlName:"nomeBairro",fieldPath:"nomeBairro",label:"Nome"},{formControlName:"registroAtivo",fieldPath:"registroAtivo",label:"Ativo",typeColumn:Un.Ii.CheckBox}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codBairro",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeBairro",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Ativo",formControlName:"registroAtivo",control:new an.MJ(null,an.k0.required),typeInput:Un.St.CheckBox}]}]}static#e=this.ɵfac=function BairroService_Factory(te){return new(te||BairroService)};static#t=this.ɵprov=fe.jDH({token:BairroService,factory:BairroService.ɵfac,providedIn:"root"})}return BairroService})(),oc=(()=>{class BairroComponent{constructor(){this.bairroService=(0,fe.WQX)(ic)}header(){return"Bairros"}icon(){return"fa-light fa-road"}static#e=this.ɵfac=function BairroComponent_Factory(te){return new(te||BairroComponent)};static#t=this.ɵcmp=fe.VBU({type:BairroComponent,selectors:[["br-list-bairro"]],standalone:!0,features:[fe.Jv_([ic]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function BairroComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.bairroService)},dependencies:[Kn.K]})}return BairroComponent})(),rc=(()=>{class CategoriaCadastroService extends Un.O7{constructor(){super("categoria-cadastro"),this.brListName="Categoria de Cadastro",this.brListNamePlural="Categorias de Cadastro",this.columns$=new zn.t([{formControlName:"codCategoriaCadastro",fieldPath:"codCategoriaCadastro",label:"ID"},{formControlName:"nomeCategoriaCadastro",fieldPath:"nomeCategoriaCadastro",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codCategoriaCadastro",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeCategoriaCadastro",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function CategoriaCadastroService_Factory(te){return new(te||CategoriaCadastroService)};static#t=this.ɵprov=fe.jDH({token:CategoriaCadastroService,factory:CategoriaCadastroService.ɵfac,providedIn:"root"})}return CategoriaCadastroService})(),sc=(()=>{class CategoriaCadastroComponent{constructor(){this.categoriaCadastroService=(0,fe.WQX)(rc)}header(){return"Categorias de Cadastro"}icon(){return"fa-light fa-layer-group"}static#e=this.ɵfac=function CategoriaCadastroComponent_Factory(te){return new(te||CategoriaCadastroComponent)};static#t=this.ɵcmp=fe.VBU({type:CategoriaCadastroComponent,selectors:[["br-list-categoria-cadastro"]],standalone:!0,features:[fe.Jv_([rc]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function CategoriaCadastroComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.categoriaCadastroService)},dependencies:[Kn.K]})}return CategoriaCadastroComponent})(),mc=(()=>{class ComuniqueRotinaService extends Un.O7{constructor(){super("comunique-rotina"),this.brListName="Rotina comunique",this.brListNamePlural="Rotinas comunique",this.columns$=new zn.t([{formControlName:"codComuniqueRotina",fieldPath:"codComuniqueRotina"},{formControlName:"nomeComuniqueRotina",fieldPath:"nomeComuniqueRotina"},{formControlName:"tituloRotina",fieldPath:"tituloRotina"},{formControlName:"descrRotina",fieldPath:"descrRotina"},{formControlName:"urlRotina",fieldPath:"urlRotina"},{formControlName:"codGrupoComuniqueRotina",fieldPath:"grupoComuniqueRotina.nomeGrupoComuniqueRotina"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codComuniqueRotina",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome da rotina",formControlName:"nomeComuniqueRotina",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Título no app",formControlName:"tituloRotina",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Descrição no app",formControlName:"descrRotina",control:new an.MJ(null),typeInput:Un.St.Text},{label:"URL",formControlName:"urlRotina",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Grupo",formControlName:"codGrupoComuniqueRotina",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeGrupoComuniqueRotina",optionValue:"codGrupoComuniqueRotina",foreignEndpoint:"grupo-comunique-rotina"}]}]}static#e=this.ɵfac=function ComuniqueRotinaService_Factory(te){return new(te||ComuniqueRotinaService)};static#t=this.ɵprov=fe.jDH({token:ComuniqueRotinaService,factory:ComuniqueRotinaService.ɵfac,providedIn:"root"})}return ComuniqueRotinaService})(),bc=(()=>{class ComuniqueRotinaComponent{constructor(){this.comuniqueRotinaService=(0,fe.WQX)(mc)}header(){return"Rotinas do App"}icon(){return"fa-light fa-list-ul"}static#e=this.ɵfac=function ComuniqueRotinaComponent_Factory(te){return new(te||ComuniqueRotinaComponent)};static#t=this.ɵcmp=fe.VBU({type:ComuniqueRotinaComponent,selectors:[["br-list-comunique-rotina"]],standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function ComuniqueRotinaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.comuniqueRotinaService)},dependencies:[Kn.K]})}return ComuniqueRotinaComponent})(),Cc=(()=>{class DivisaoGrupoPessoalService extends Un.O7{constructor(){super("divisao-grupo-pessoal"),this.brListName="Divisão de Grupo",this.brListNamePlural="Divisões de Grupo",this.columns$=new zn.t([{formControlName:"codDivisaoGrupoPessoal",fieldPath:"codDivisaoGrupoPessoal",label:"ID"},{formControlName:"nomeDivisaoGrupoPessoal",fieldPath:"nomeDivisaoGrupoPessoal",label:"Nome"},{formControlName:"codLbrUsuarioRespFin",fieldPath:"lbrUsuario.nomeUsuario",label:"Responsável financeiro"},{formControlName:"codNbrGrupoAcesso",fieldPath:"nbrGrupoAcesso.nomeNbrGrupoAcesso",label:"Grupo de acesso padrão"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codDivisaoGrupoPessoal",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome da divisão",formControlName:"nomeDivisaoGrupoPessoal",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Responsável financeiro",formControlName:"codLbrUsuarioRespFin",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario",foreignEndpoint:"lbr-usuario"},{label:"Grupo de acesso padrão",formControlName:"codNbrGrupoAcesso",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrGrupoAcesso",optionValue:"codNbrGrupoAcesso",foreignEndpoint:"nbr-grupo-acesso"}]}]}static#e=this.ɵfac=function DivisaoGrupoPessoalService_Factory(te){return new(te||DivisaoGrupoPessoalService)};static#t=this.ɵprov=fe.jDH({token:DivisaoGrupoPessoalService,factory:DivisaoGrupoPessoalService.ɵfac,providedIn:"root"})}return DivisaoGrupoPessoalService})(),wc=(()=>{class DivisaoGrupoPessoalComponent{constructor(){this.divisaoGrupoPessoalService=(0,fe.WQX)(Cc)}header(){return"Divisões Pessoais"}icon(){return"fa-light fa-people-group"}static#e=this.ɵfac=function DivisaoGrupoPessoalComponent_Factory(te){return new(te||DivisaoGrupoPessoalComponent)};static#t=this.ɵcmp=fe.VBU({type:DivisaoGrupoPessoalComponent,selectors:[["br-list-divisao-grupo-pessoal"]],standalone:!0,features:[fe.Jv_([Cc]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function DivisaoGrupoPessoalComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.divisaoGrupoPessoalService)},dependencies:[Kn.K]})}return DivisaoGrupoPessoalComponent})(),Ic=(()=>{class DocWebService extends Un.O7{constructor(){super("doc-web"),this.brListName="Documento web",this.brListNamePlural="Documentos web",this.columns$=new zn.t([{formControlName:"codDocWeb",fieldPath:"codDocWeb",label:"ID"},{formControlName:"nomeDocWeb",fieldPath:"nomeDocWeb",label:"Nome do documento"},{formControlName:"codGrupoDocWeb",fieldPath:"grupoDocWeb.nomeGrupoDocWeb",label:"Nome do grupo"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codDocWeb",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome do documento",formControlName:"nomeDocWeb",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Grupo",formControlName:"codGrupoDocWeb",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeGrupoDocWeb",optionValue:"codGrupoDocWeb",foreignEndpoint:"grupo-doc-web"},{label:"Documento",formControlName:"codDocEmpresa",control:new an.MJ(null),typeInput:Un.St.Upload,acceptedFiles:["any"],fileLimit:1}]}]}static#e=this.ɵfac=function DocWebService_Factory(te){return new(te||DocWebService)};static#t=this.ɵprov=fe.jDH({token:DocWebService,factory:DocWebService.ɵfac,providedIn:"root"})}return DocWebService})(),Sc=(()=>{class DocWebComponent{constructor(){this.docWebService=(0,fe.WQX)(Ic)}header(){return"Documentos para Site"}icon(){return"fa-light fa-folder"}static#e=this.ɵfac=function DocWebComponent_Factory(te){return new(te||DocWebComponent)};static#t=this.ɵcmp=fe.VBU({type:DocWebComponent,selectors:[["br-doc-web"]],standalone:!0,features:[fe.Jv_([Ic]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function DocWebComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.docWebService)},dependencies:[Kn.K]})}return DocWebComponent})(),Tc=(()=>{class EmailContaService extends Un.O7{constructor(){super("email-conta"),this.brListName="Conta de Email",this.brListNamePlural="Contas de Email",this.columns$=new zn.t([{formControlName:"codEmailConta",fieldPath:"codEmailConta",label:"ID"},{formControlName:"nomeEmailConta",fieldPath:"nomeEmailConta",label:"Nome"},{formControlName:"email",fieldPath:"email",label:"E-mail"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codEmailConta",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeEmailConta",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"E-mail",formControlName:"email",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function EmailContaService_Factory(te){return new(te||EmailContaService)};static#t=this.ɵprov=fe.jDH({token:EmailContaService,factory:EmailContaService.ɵfac,providedIn:"root"})}return EmailContaService})(),Dc=(()=>{class EmailContaComponent{constructor(){this.emailContaService=(0,fe.WQX)(Tc)}header(){return"Contas de E-mail"}icon(){return"fa-light fa-at"}static#e=this.ɵfac=function EmailContaComponent_Factory(te){return new(te||EmailContaComponent)};static#t=this.ɵcmp=fe.VBU({type:EmailContaComponent,selectors:[["br-list-email-conta"]],standalone:!0,features:[fe.Jv_([Tc]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function EmailContaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.emailContaService)},dependencies:[Kn.K]})}return EmailContaComponent})(),Mc=(()=>{class EnvioEmailItemService extends Un.O7{constructor(){super("envio-email-item"),this.brListName="Envio de Email",this.brListNamePlural="Envios de Email",this.columns$=new zn.t([{formControlName:"codEnvioEmailItem",fieldPath:"codEnvioEmailItem",label:"ID"},{formControlName:"dataCriacaoRegistro",fieldPath:"dataCriacaoRegistro",label:"Data/hora de envio",typeColumn:Un.Ii.DateTime},{formControlName:"codEnvioEmail",fieldPath:"envioEmail.emailOrigem",label:"E-mail de origem"},{formControlName:"emailDestino",fieldPath:"emailDestino",label:"E-mail de destino"},{formControlName:"codTextoEmpresaAssunto",fieldPath:"textoEmpresaEnvioEmailItemCodTextoEmpresaAssuntoTotextoEmpresa.texto",label:"Assunto"},{label:"Status",formControlName:"codStatusEmail",fieldPath:"statusEmail.nomeStatusEmail"},{formControlName:"codLbrUsuario",label:"Usuário destinatário",fieldPath:"lbrUsuario.nomeUsuario"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codEnvioEmailItem",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Email de origem",formControlName:"codEnvioEmail",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionValue:"codEnvioEmail",optionLabel:"emailOrigem",foreignEndpoint:"envio-email"},{label:"Email de destino",formControlName:"emailDestino",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Status",formControlName:"codStatusEmail",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionValue:"codStatusEmail",optionLabel:"nomeStatusEmail",foreignEndpoint:"status-email"},{label:"Assunto",formControlName:"assunto",control:new an.MJ(null),typeInput:Un.St.Text}]},{header:"Corpo do E-mail",controls:[{label:"Mensagem",formControlName:"mensagem",control:new an.MJ(null),typeInput:Un.St.Editor}]}],this.state.isReadOnly=!0}static#e=this.ɵfac=function EnvioEmailItemService_Factory(te){return new(te||EnvioEmailItemService)};static#t=this.ɵprov=fe.jDH({token:EnvioEmailItemService,factory:EnvioEmailItemService.ɵfac,providedIn:"root"})}return EnvioEmailItemService})(),Nc=(()=>{class EnvioEmailItemComponent{constructor(){this.envioEmailItemService=(0,fe.WQX)(Mc)}header(){return"E-mails Enviados"}icon(){return"fa-light fa-inbox-full"}static#e=this.ɵfac=function EnvioEmailItemComponent_Factory(te){return new(te||EnvioEmailItemComponent)};static#t=this.ɵcmp=fe.VBU({type:EnvioEmailItemComponent,selectors:[["br-list-envio-email-item"]],standalone:!0,features:[fe.Jv_([Mc]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function EnvioEmailItemComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.envioEmailItemService)},dependencies:[Kn.K]})}return EnvioEmailItemComponent})(),Oc=(()=>{class EscolaridadeService extends Un.O7{constructor(){super("escolaridade"),this.brListName="Escolaridade",this.brListNamePlural="Escolaridades",this.columns$=new zn.t([{formControlName:"codEscolaridade",fieldPath:"codEscolaridade",label:"ID"},{formControlName:"nomeEscolaridade",fieldPath:"nomeEscolaridade",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codEscolaridade",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeEscolaridade",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function EscolaridadeService_Factory(te){return new(te||EscolaridadeService)};static#t=this.ɵprov=fe.jDH({token:EscolaridadeService,factory:EscolaridadeService.ɵfac,providedIn:"root"})}return EscolaridadeService})(),Pc=(()=>{class EscolaridadeComponent{constructor(){this.escolaridadeService=(0,fe.WQX)(Oc)}header(){return"Escolaridades"}icon(){return"fa-light fa-backpack"}static#e=this.ɵfac=function EscolaridadeComponent_Factory(te){return new(te||EscolaridadeComponent)};static#t=this.ɵcmp=fe.VBU({type:EscolaridadeComponent,selectors:[["br-list-escolaridade"]],standalone:!0,features:[fe.Jv_([Oc]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function EscolaridadeComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.escolaridadeService)},dependencies:[Kn.K]})}return EscolaridadeComponent})(),Bc=(()=>{class FormaPagtoService extends Un.O7{constructor(){super("forma-pagto"),this.brListName="Forma de Pagamento",this.brListNamePlural="Formas de Pagamento",this.columns$=new zn.t([{formControlName:"codFormaPagto",fieldPath:"codFormaPagto",label:"ID"},{formControlName:"nomeFormaPagto",fieldPath:"nomeFormaPagto",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codFormaPagto",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeFormaPagto",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function FormaPagtoService_Factory(te){return new(te||FormaPagtoService)};static#t=this.ɵprov=fe.jDH({token:FormaPagtoService,factory:FormaPagtoService.ɵfac,providedIn:"root"})}return FormaPagtoService})(),zc=(()=>{class FormaPagtoComponent{constructor(){this.formaPagtoService=(0,fe.WQX)(Bc)}header(){return"Formas de Pagamento"}icon(){return"fa-light fa-money-check-dollar"}static#e=this.ɵfac=function FormaPagtoComponent_Factory(te){return new(te||FormaPagtoComponent)};static#t=this.ɵcmp=fe.VBU({type:FormaPagtoComponent,selectors:[["br-list-forma-pagto"]],standalone:!0,features:[fe.Jv_([Bc]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function FormaPagtoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.formaPagtoService)},dependencies:[Kn.K]})}return FormaPagtoComponent})(),Sd=(()=>{class FormatoMsgComuniqueService extends Un.O7{constructor(){super("formato-msg-comunique"),this.brListName="Formato mensagem",this.brListNamePlural="Formato mensagem",this.columns$=new zn.t([{formControlName:"codFormatoMsgComunique",fieldPath:"codFormatoMsgComunique",label:"ID"},{formControlName:"nomeFormatoMsgComunique",fieldPath:"nomeFormatoMsgComunique",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codFormatoMsgComunique",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeFormatoMsgComunique",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function FormatoMsgComuniqueService_Factory(te){return new(te||FormatoMsgComuniqueService)};static#t=this.ɵprov=fe.jDH({token:FormatoMsgComuniqueService,factory:FormatoMsgComuniqueService.ɵfac,providedIn:"root"})}return FormatoMsgComuniqueService})(),Au=(()=>{class FormatoMsgComuniqueComponent{constructor(){this.formatoMsgComuniqueService=(0,fe.WQX)(Sd)}header(){return"Formatos de Mensagem"}icon(){return"fa-light fa-list-ul"}static#e=this.ɵfac=function FormatoMsgComuniqueComponent_Factory(te){return new(te||FormatoMsgComuniqueComponent)};static#t=this.ɵcmp=fe.VBU({type:FormatoMsgComuniqueComponent,selectors:[["br-list-formato-msg-comunique"]],standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function FormatoMsgComuniqueComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.formatoMsgComuniqueService)},dependencies:[Kn.K]})}return FormatoMsgComuniqueComponent})(),Hu=(()=>{class FuncaoService extends Un.O7{constructor(){super("funcao"),this.brListName="Função",this.brListNamePlural="Funções",this.columns$=new zn.t([{formControlName:"codFuncao",fieldPath:"codFuncao",label:"ID"},{formControlName:"nomeFuncao",fieldPath:"nomeFuncao",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codFuncao",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeFuncao",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function FuncaoService_Factory(te){return new(te||FuncaoService)};static#t=this.ɵprov=fe.jDH({token:FuncaoService,factory:FuncaoService.ɵfac,providedIn:"root"})}return FuncaoService})(),Xu=(()=>{class FuncaoComponent{constructor(){this.funcaoService=(0,fe.WQX)(Hu)}header(){return"Cargos"}icon(){return"fa-light fa-layer-group"}static#e=this.ɵfac=function FuncaoComponent_Factory(te){return new(te||FuncaoComponent)};static#t=this.ɵcmp=fe.VBU({type:FuncaoComponent,selectors:[["br-list-funcao"]],standalone:!0,features:[fe.Jv_([Hu]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function FuncaoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.funcaoService)},dependencies:[Kn.K]})}return FuncaoComponent})(),Ju=(()=>{class GerEstadoCivilService extends Un.O7{constructor(){super("ger-estado-civil"),this.brListName="Estado Civil",this.brListNamePlural="Estados Civis",this.columns$=new zn.t([{formControlName:"codEstadoCivil",fieldPath:"codEstadoCivil",label:"ID"},{formControlName:"nomeEstadoCivil",fieldPath:"nomeEstadoCivil",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codEstadoCivil",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeEstadoCivil",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function GerEstadoCivilService_Factory(te){return new(te||GerEstadoCivilService)};static#t=this.ɵprov=fe.jDH({token:GerEstadoCivilService,factory:GerEstadoCivilService.ɵfac,providedIn:"root"})}return GerEstadoCivilService})(),ap=(()=>{class GerEstadoCivilComponent{constructor(){this.gerEstadoCivilService=(0,fe.WQX)(Ju)}header(){return"Estados Civis"}icon(){return"fa-light fa-id-card"}static#e=this.ɵfac=function GerEstadoCivilComponent_Factory(te){return new(te||GerEstadoCivilComponent)};static#t=this.ɵcmp=fe.VBU({type:GerEstadoCivilComponent,selectors:[["br-list-ger-estado-civil"]],standalone:!0,features:[fe.Jv_([Ju]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function GerEstadoCivilComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.gerEstadoCivilService)},dependencies:[Kn.K]})}return GerEstadoCivilComponent})(),sp=(()=>{class VtEstadoService extends Un.O7{constructor(){super("vt-estado"),this.brListName="Estado",this.brListNamePlural="Estados",this.columns$=new zn.t([{formControlName:"codEstado",fieldPath:"codEstado",label:"ID"},{formControlName:"nomeEstado",fieldPath:"nomeEstado",label:"Nome"},{formControlName:"siglaEstado",fieldPath:"siglaEstado",label:"Sigla"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codEstado",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeEstado",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Sigla",formControlName:"siglaEstado",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function VtEstadoService_Factory(te){return new(te||VtEstadoService)};static#t=this.ɵprov=fe.jDH({token:VtEstadoService,factory:VtEstadoService.ɵfac,providedIn:"root"})}return VtEstadoService})(),dp=(()=>{class CepService{constructor(){this.http=(0,fe.WQX)(ue.Qq),this.cidadeService=(0,fe.WQX)(ta),this.bairroService=(0,fe.WQX)(ic),this.estadoService=(0,fe.WQX)(sp),this.brMsg=(0,fe.WQX)(bn.h)}mapCepToIds(te){return(0,nn.of)(te).pipe((0,Zt.T)((te=>te?.replace(/\D/g,""))),(0,Vn.p)((te=>8===te?.length)),(0,Wt.n)((te=>this.http.get(`https://viacep.com.br/ws/${te}/json`))),(0,Wt.n)((te=>(0,Kt.p)({cidades:this.cidadeService.listRecordsMin(te.localidade+"/"+te.uf),bairros:this.bairroService.listRecordsMin(te.bairro),cepRes:(0,nn.of)(te),estados:this.estadoService.listRecordsMin(te.estado),logradouro:(0,nn.of)(te.logradouro),complemento:(0,nn.of)(te.complemento)}))),(0,Wt.n)((te=>0===te.bairros.data.length?this.bairroService.createRecord({nomeBairro:te.cepRes.bairro}).pipe((0,Wt.n)((ne=>(0,nn.of)({codBairro:ne,codCidade:te.cidades.data[0]?.codCidade,codEstado:te.estados.data[0]?.codEstado,logradouro:te.logradouro,complemento:te.complemento})))):(0,nn.of)({codBairro:te.bairros.data[0]?.codBairro,codCidade:te.cidades.data[0]?.codCidade,codEstado:te.estados.data[0]?.codEstado,logradouro:te.logradouro,complemento:te.complemento}))),(0,tn.W)((te=>(this.brMsg.error(),console.error(te),un.w))))}static#e=this.ɵfac=function CepService_Factory(te){return new(te||CepService)};static#t=this.ɵprov=fe.jDH({token:CepService,factory:CepService.ɵfac,providedIn:"root"})}return CepService})(),pp=(()=>{class GerFornecedorService extends Un.O7{constructor(){super("ger-fornecedor"),this.brListName="Fornecedor",this.brListNamePlural="Fornecedores",this.columns$=new zn.t([{label:"ID",formControlName:"codFornecedor",fieldPath:"codFornecedor"},{label:"Nome",formControlName:"nomeFornecedor",fieldPath:"nomeFornecedor"},{formControlName:"codTipoFornecedor",fieldPath:"tipoFornecedor.nomeTipoFornecedor",label:"Tipo de Fornecedor"},{label:"Tipo de pessoa",formControlName:"codClientePessoa",fieldPath:"clientePessoa.nomeClientePessoa"},{label:"Ramo de atividade",formControlName:"codRamoAtividade",fieldPath:"ramoAtividade.nomeRamoAtividade"},{label:"Contato",formControlName:"contatoFornecedor",fieldPath:"contatoFornecedor"},{label:"E-mail",formControlName:"emailFornecedor",fieldPath:"emailFornecedor"},{label:"Telefone",formControlName:"telefoneFornecedor",fieldPath:"telefoneFornecedor"},{label:"CPF",formControlName:"cpfFornecedor",fieldPath:"cpfFornecedor"},{label:"Usuário responsável",formControlName:"codLbrUsuarioResp",fieldPath:"lbrUsuario.nomeUsuario"},{label:"CEP",formControlName:"cepFornecedor",fieldPath:"cepFornecedor"},{label:"Endereço",formControlName:"enderecoFornecedor",fieldPath:"enderecoFornecedor"},{label:"Número",formControlName:"numeroEndereco",fieldPath:"numeroEndereco"},{label:"Complemento",formControlName:"complementoEndereco",fieldPath:"complementoEndereco"},{label:"Bairro",fieldPath:"bairro.nomeBairro",formControlName:"codBairro"},{label:"Cidade",fieldPath:"vtcidade.nomeCidadeUf",formControlName:"codCidade"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codFornecedor",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeFornecedor",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Tipo de fornecedor",formControlName:"codTipoFornecedor",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeTipoFornecedor",optionValue:"codTipoFornecedor",foreignEndpoint:"tipo-fornecedor"},{label:"Tipo de pessoa",formControlName:"codClientePessoa",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeClientePessoa",optionValue:"codClientePessoa",foreignEndpoint:"cliente-pessoa"},{label:"Ramo de atividade",formControlName:"codRamoAtividade",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeRamoAtividade",optionValue:"codRamoAtividade",foreignEndpoint:"ramo-atividade"},{label:"CPF",formControlName:"cpfFornecedor",control:new an.MJ(null),typeInput:Un.St.Mask,inputMask:"999.999.999-99"},{label:"Usuário responsável",formControlName:"codLbrUsuarioResp",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpf",foreignEndpoint:"lbr-usuario"}]},{header:"Comunicação",controls:[{label:"Contato",formControlName:"contatoFornecedor",control:new an.MJ(null),typeInput:Un.St.Text},{label:"E-mail",formControlName:"emailFornecedor",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Telefone",formControlName:"telefoneFornecedor",control:new an.MJ(null),typeInput:Un.St.Mask,inputMask:"99 99999-9999"}]},{header:"Endereço",controls:[{label:"CEP",formControlName:"cepFornecedor",control:new an.MJ(null),typeInput:Un.St.Mask,inputMask:"99.999-999"},{label:"Logradouro",formControlName:"enderecoFornecedor",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Número",formControlName:"numeroEndereco",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Complemento",formControlName:"complementoEndereco",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Bairro",formControlName:"codBairro",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeBairro",optionValue:"codBairro",foreignEndpoint:"bairro"},{label:"Cidade",formControlName:"codCidade",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeCidadeUf",optionValue:"codCidade",foreignEndpoint:"vt-cidade"}]}]}static#e=this.ɵfac=function GerFornecedorService_Factory(te){return new(te||GerFornecedorService)};static#t=this.ɵprov=fe.jDH({token:GerFornecedorService,factory:GerFornecedorService.ɵfac,providedIn:"root"})}return GerFornecedorService})(),hp=(()=>{class GerFornecedorComponent{constructor(){this.gerFornecedorService=(0,fe.WQX)(pp),this.cepService=(0,fe.WQX)(dp)}header(){return"Fornecedores"}icon(){return"fa-light fa-hands-holding"}ngAfterViewInit(){const te=this.gerFornecedorService.formDetails;te?.get("cepFornecedor")?.valueChanges.pipe((0,Wt.n)((te=>this.cepService.mapCepToIds(te)))).subscribe((ne=>{te.patchValue({codCidade:ne.codCidade??null,codBairro:ne.codBairro??null,complementoEndereco:ne.complemento,enderecoFornecedor:ne.logradouro})}))}static#e=this.ɵfac=function GerFornecedorComponent_Factory(te){return new(te||GerFornecedorComponent)};static#t=this.ɵcmp=fe.VBU({type:GerFornecedorComponent,selectors:[["br-list-ger-fornecedor"]],standalone:!0,features:[fe.Jv_([pp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function GerFornecedorComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.gerFornecedorService)},dependencies:[Kn.K]})}return GerFornecedorComponent})(),fp=(()=>{class GerSituacaoCcService extends Un.O7{constructor(){super("ger-situacao-cc"),this.brListName="Situação",this.brListNamePlural="Situações",this.columns$=new zn.t([{formControlName:"codSituacaoCc",fieldPath:"codSituacaoCc",label:"ID"},{formControlName:"nomeSituacaoCc",fieldPath:"nomeSituacaoCc",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codSituacaoCc",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeSituacaoCc",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function GerSituacaoCcService_Factory(te){return new(te||GerSituacaoCcService)};static#t=this.ɵprov=fe.jDH({token:GerSituacaoCcService,factory:GerSituacaoCcService.ɵfac,providedIn:"root"})}return GerSituacaoCcService})(),_p=(()=>{class GerSituacaoCcComponent{constructor(){this.gerSituacaoCcService=(0,fe.WQX)(fp)}header(){return"Situações"}icon(){return"fa-light fa-square-user"}static#e=this.ɵfac=function GerSituacaoCcComponent_Factory(te){return new(te||GerSituacaoCcComponent)};static#t=this.ɵcmp=fe.VBU({type:GerSituacaoCcComponent,selectors:[["br-list-ger-situacao-cc"]],standalone:!0,features:[fe.Jv_([fp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function GerSituacaoCcComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.gerSituacaoCcService)},dependencies:[Kn.K]})}return GerSituacaoCcComponent})(),bp=(()=>{class GrauParentescoService extends Un.O7{constructor(){super("grau-parentesco"),this.brListName="Grau de Parentesco",this.brListNamePlural="Graus de Parentesco",this.columns$=new zn.t([{formControlName:"codGrauParentesco",fieldPath:"codGrauParentesco",label:"ID"},{formControlName:"nomeGrauParentesco",fieldPath:"nomeGrauParentesco",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codGrauParentesco",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeGrauParentesco",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function GrauParentescoService_Factory(te){return new(te||GrauParentescoService)};static#t=this.ɵprov=fe.jDH({token:GrauParentescoService,factory:GrauParentescoService.ɵfac,providedIn:"root"})}return GrauParentescoService})(),vp=(()=>{class GrauParentescoComponent{constructor(){this.grauParentescoService=(0,fe.WQX)(bp)}header(){return"Graus de Parentesco"}icon(){return"fa-light fa-family"}static#e=this.ɵfac=function GrauParentescoComponent_Factory(te){return new(te||GrauParentescoComponent)};static#t=this.ɵcmp=fe.VBU({type:GrauParentescoComponent,selectors:[["br-list-grau-parentesco"]],standalone:!0,features:[fe.Jv_([bp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function GrauParentescoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.grauParentescoService)},dependencies:[Kn.K]})}return GrauParentescoComponent})(),yp=(()=>{class GrupoComuniqueRotinaService extends Un.O7{constructor(){super("grupo-comunique-rotina"),this.brListName="Grupo comunique",this.brListNamePlural="Grupos comunique",this.columns$=new zn.t([{formControlName:"codGrupoComuniqueRotina",fieldPath:"codGrupoComuniqueRotina",label:"ID"},{formControlName:"nomeGrupoComuniqueRotina",fieldPath:"nomeGrupoComuniqueRotina",label:"Nome"},{formControlName:"ordemGrupo",fieldPath:"ordemGrupo",label:"Ordem"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codGrupoComuniqueRotina",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeGrupoComuniqueRotina",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Ordem",formControlName:"ordemGrupo",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Number,showOnFilter:!1}]}]}static#e=this.ɵfac=function GrupoComuniqueRotinaService_Factory(te){return new(te||GrupoComuniqueRotinaService)};static#t=this.ɵprov=fe.jDH({token:GrupoComuniqueRotinaService,factory:GrupoComuniqueRotinaService.ɵfac,providedIn:"root"})}return GrupoComuniqueRotinaService})(),wp=(()=>{class GrupoComuniqueRotinaComponent{constructor(){this.grupoComuniqueRotinaService=(0,fe.WQX)(yp)}header(){return"Grupos de Rotina"}icon(){return"fa-light fa-people-group"}static#e=this.ɵfac=function GrupoComuniqueRotinaComponent_Factory(te){return new(te||GrupoComuniqueRotinaComponent)};static#t=this.ɵcmp=fe.VBU({type:GrupoComuniqueRotinaComponent,selectors:[["br-list-grupo-comunique-rotina"]],standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function GrupoComuniqueRotinaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.grupoComuniqueRotinaService)},dependencies:[Kn.K]})}return GrupoComuniqueRotinaComponent})(),Ip=(()=>{class GrupoDocWebService extends Un.O7{constructor(){super("grupo-doc-web"),this.brListName="Grupo doc web",this.brListNamePlural="Grupos doc web",this.columns$=new zn.t([{formControlName:"codGrupoDocWeb",fieldPath:"codGrupoDocWeb",label:"ID"},{formControlName:"nomeGrupoDocWeb",fieldPath:"nomeGrupoDocWeb",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codGrupoDocWeb",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeGrupoDocWeb",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function GrupoDocWebService_Factory(te){return new(te||GrupoDocWebService)};static#t=this.ɵprov=fe.jDH({token:GrupoDocWebService,factory:GrupoDocWebService.ɵfac,providedIn:"root"})}return GrupoDocWebService})(),Sp=(()=>{class GrupoDocWebComponent{constructor(){this.grupoDocWebService=(0,fe.WQX)(Ip)}header(){return"Grupos Documentos do Site"}icon(){return"fa-light fa-people-group"}static#e=this.ɵfac=function GrupoDocWebComponent_Factory(te){return new(te||GrupoDocWebComponent)};static#t=this.ɵcmp=fe.VBU({type:GrupoDocWebComponent,selectors:[["br-grupo-doc-web"]],standalone:!0,features:[fe.Jv_([Ip]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function GrupoDocWebComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.grupoDocWebService)},dependencies:[Kn.K]})}return GrupoDocWebComponent})(),Tp=(()=>{class GrupoPessoalService extends Un.O7{constructor(){super("grupo-pessoal"),this.brListName="Grupo Pessoal",this.brListNamePlural="Grupos Pessoais",this.columns$=new zn.t([{formControlName:"codGrupoPessoal",fieldPath:"codGrupoPessoal",label:"ID"},{formControlName:"nomeGrupoPessoal",fieldPath:"nomeGrupoPessoal",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codGrupoPessoal",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeGrupoPessoal",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Divisão",formControlName:"codDivisaoGrupoPessoal",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeDivisaoGrupoPessoal",optionValue:"codDivisaoGrupoPessoal",foreignEndpoint:"divisao-grupo-pessoal"},{label:"Responsável",formControlName:"codLbrUsuarioResp",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",foreignEndpoint:"lbr-usuario"}]}]}static#e=this.ɵfac=function GrupoPessoalService_Factory(te){return new(te||GrupoPessoalService)};static#t=this.ɵprov=fe.jDH({token:GrupoPessoalService,factory:GrupoPessoalService.ɵfac,providedIn:"root"})}return GrupoPessoalService})(),Dp=(()=>{class GrupoPessoalComponent{constructor(){this.grupoPessoalService=(0,fe.WQX)(Tp)}header(){return"Grupos Pessoais"}icon(){return"fa-light fa-users-line"}static#e=this.ɵfac=function GrupoPessoalComponent_Factory(te){return new(te||GrupoPessoalComponent)};static#t=this.ɵcmp=fe.VBU({type:GrupoPessoalComponent,selectors:[["br-list-grupo-pessoal"]],standalone:!0,features:[fe.Jv_([Tp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function GrupoPessoalComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.grupoPessoalService)},dependencies:[Kn.K]})}return GrupoPessoalComponent})(),xp=(()=>{class IntegFolhaService extends Un.O7{constructor(){super("integ-folha"),this.tabService=(0,fe.WQX)(Yn.r),this.brListName="Integração de Mensalidade",this.brListNamePlural="Integrações de Mensalidade",this.columns$=new zn.t([{formControlName:"codIntegFolha",fieldPath:"codIntegFolha",label:"ID"},{formControlName:"codReferencia",fieldPath:"referencia.nomeReferencia",label:"Referência"},{formControlName:"qtdeReg",fieldPath:"qtdeReg",label:"Quantidade de registros"},{formControlName:"valorTotal",fieldPath:"valorTotal",label:"Valor total",typeColumn:Un.Ii.Currency},{fieldPath:"arquivo.nomeArquivo",label:"Arquivo",formControlName:""}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codIntegFolha",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Referência",formControlName:"codReferencia",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeReferencia",optionValue:"codReferencia",foreignEndpoint:"referencia"},{label:"Quantidade de registros",formControlName:"qtdeReg",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Number,isCurrency:!1},{label:"Valor total",formControlName:"valorTotal",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Number,isCurrency:!0}]}],this.menuMais=[{label:"Gerenciar Lançamentos de Verba",icon:"fa-light fa-comments-dollar",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>String(te.codIntegFolha||0)));this.tabService.open({component:Jn,data:{appliedFilters:{codIntegFolha:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}}],this.state.isReadOnly=!0}static#e=this.ɵfac=function IntegFolhaService_Factory(te){return new(te||IntegFolhaService)};static#t=this.ɵprov=fe.jDH({token:IntegFolhaService,factory:IntegFolhaService.ɵfac,providedIn:"root"})}return IntegFolhaService})(),Ep=(()=>{class IntegFolhaComponent{constructor(){this.integFolhaService=(0,fe.WQX)(xp)}header(){return"Integrações de Retorno"}icon(){return"fa-light fa-fw fa-arrow-turn-left"}static#e=this.ɵfac=function IntegFolhaComponent_Factory(te){return new(te||IntegFolhaComponent)};static#t=this.ɵcmp=fe.VBU({type:IntegFolhaComponent,selectors:[["br-list-integ-folha"]],standalone:!0,features:[fe.Jv_([xp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function IntegFolhaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.integFolhaService)},dependencies:[Kn.K]})}return IntegFolhaComponent})(),Mp=(()=>{class IntegRemessaScPessoaService extends Un.O7{constructor(){super("integ-remessa-sc-pessoa"),this.captionMembroService=(0,fe.WQX)($n.q),this.tabService=(0,fe.WQX)(Yn.r),this.brListName="Verba Pessoal",this.brListNamePlural="Verbas Pessoais",this.columns$=new zn.t([{label:"ID",formControlName:"codIntegRemessaScPessoa",fieldPath:"codIntegRemessaScPessoa"},{label:"Pessoa",formControlName:"codCc",fieldPath:"vtcentroCusto.nomeCc"},{label:"Valor Total",formControlName:"valorRemessa",fieldPath:"valorRemessa",typeColumn:Un.Ii.Currency}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codIntegRemessaScPessoa",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Pessoa",formControlName:"codCc",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeCc",optionValue:"codCc",filterBy:"nomeCc,cpfCliente",foreignEndpoint:"vt-centro-custo"},{label:"Valor total",formControlName:"valorRemessa",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Number,isCurrency:!0}]}],this.menuMais=[{label:`Visualizar ${this.captionMembroService.transform("Membros")}`,icon:"pi pi-users",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>String(te.codCc||0)));this.tabService.open({component:ki,data:{appliedFilters:{codCc:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}}]}static#e=this.ɵfac=function IntegRemessaScPessoaService_Factory(te){return new(te||IntegRemessaScPessoaService)};static#t=this.ɵprov=fe.jDH({token:IntegRemessaScPessoaService,factory:IntegRemessaScPessoaService.ɵfac,providedIn:"root"})}return IntegRemessaScPessoaService})(),Np=(()=>{class IntegRemessaScPessoaComponent{constructor(){this.integRemessaScPessoaService=(0,fe.WQX)(Mp)}header(){return $n.q.instancia.transform("Membros da Remessa")}icon(){return"pi pi-users"}static#e=this.ɵfac=function IntegRemessaScPessoaComponent_Factory(te){return new(te||IntegRemessaScPessoaComponent)};static#t=this.ɵcmp=fe.VBU({type:IntegRemessaScPessoaComponent,selectors:[["br-list-integ-remessa-sc-pessoa"]],standalone:!0,features:[fe.Jv_([Mp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function IntegRemessaScPessoaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.integRemessaScPessoaService)},dependencies:[Kn.K]})}return IntegRemessaScPessoaComponent})(),Rp=(()=>{class IntegRemessaScService extends Un.O7{constructor(){super("integ-remessa-sc"),this.captionMembroService=(0,fe.WQX)($n.q),this.arquivoService=(0,fe.WQX)(qr.I),this.tabService=(0,fe.WQX)(Yn.r),this.brListName="Remessa",this.brListNamePlural="Remessas",this.columns$=new zn.t([{formControlName:"codIntegRemessaSc",fieldPath:"codIntegRemessaSc",label:"ID"},{formControlName:"codReferencia",fieldPath:"referencia.nomeReferencia",label:"Referência"},{formControlName:"valorTotal",fieldPath:"valorTotal",label:"Valor total",typeColumn:Un.Ii.Currency}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codIntegRemessaSc",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Referência",formControlName:"codReferencia",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeReferencia",optionValue:"codReferencia",foreignEndpoint:"referencia"},{label:"Valor total",formControlName:"valorTotal",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Number,isCurrency:!0}]}],this.menuMais=[{label:`Visualizar ${this.captionMembroService.transform("Membros")}`,icon:"pi pi-users",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>String(te.codIntegRemessaSc||0)));this.tabService.open({component:Np,data:{appliedFilters:{codIntegRemessaSc:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}},{label:"Baixar Arquivo de Remessa",icon:"pi pi-download",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows[0];this.arquivoService.download(te.docEmpresa.urlDownload)}else this.brMessageService.info("É necessário selecionar algum registro antes")}}]}static#e=this.ɵfac=function IntegRemessaScService_Factory(te){return new(te||IntegRemessaScService)};static#t=this.ɵprov=fe.jDH({token:IntegRemessaScService,factory:IntegRemessaScService.ɵfac,providedIn:"root"})}return IntegRemessaScService})(),Lp=(()=>{class IntegRemessaScComponent{constructor(){this.integRemessaScService=(0,fe.WQX)(Rp)}header(){return"Integrações de Remessa"}icon(){return"fa-light fa-dolly"}static#e=this.ɵfac=function IntegRemessaScComponent_Factory(te){return new(te||IntegRemessaScComponent)};static#t=this.ɵcmp=fe.VBU({type:IntegRemessaScComponent,selectors:[["br-list-integ-remessa-sc"]],standalone:!0,features:[fe.Jv_([Rp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function IntegRemessaScComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.integRemessaScService)},dependencies:[Kn.K]})}return IntegRemessaScComponent})(),Op=(()=>{class LbrPrefService extends Un.O7{constructor(){super("lbr-pref"),this.brListName="Preferência",this.brListNamePlural="Preferências",this.columns$=new zn.t([{formControlName:"codLbrPref",fieldPath:"codLbrPref",label:"ID"},{formControlName:"nomeLbrPref",fieldPath:"nomeLbrPref",label:"Nome"},{formControlName:"campoPref",fieldPath:"campoPref",label:"Nome do campo"},{formControlName:"tipoCampo",fieldPath:"tipoCampo",label:"Tipo"},{formControlName:"conteudo",fieldPath:"conteudo",label:"Conteúdo"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codLbrPref",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeLbrPref",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Nome do campo",formControlName:"campoPref",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Tipo do campo",formControlName:"tipoCampo",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Conteúdo",formControlName:"conteudo",control:new an.MJ(null),showOnFilter:!1,typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function LbrPrefService_Factory(te){return new(te||LbrPrefService)};static#t=this.ɵprov=fe.jDH({token:LbrPrefService,factory:LbrPrefService.ɵfac,providedIn:"root"})}return LbrPrefService})(),Pp=(()=>{class LbrPrefComponent{constructor(){this.lbrPrefService=(0,fe.WQX)(Op)}header(){return"Configuração de Preferências"}icon(){return"fa-light fa-gear"}static#e=this.ɵfac=function LbrPrefComponent_Factory(te){return new(te||LbrPrefComponent)};static#t=this.ɵcmp=fe.VBU({type:LbrPrefComponent,selectors:[["br-lbr-pref"]],standalone:!0,features:[fe.Jv_([Op]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function LbrPrefComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.lbrPrefService)},dependencies:[Kn.K]})}return LbrPrefComponent})(),Fp=(()=>{class LbrRelService extends Un.O7{constructor(){super("lbr-rel"),this.brListName="Relatório",this.brListNamePlural="Relatórios",this.columns$=new zn.t([{formControlName:"codLbrRel",fieldPath:"codLbrRel",label:"ID"},{formControlName:"nomeLbrRel",fieldPath:"nomeLbrRel",label:"Nome do relatório"},{formControlName:"codLbrRotina",fieldPath:"lbrRotina.nomeLbrRotina",label:"Rotina"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codLbrRel",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome do relatório",formControlName:"nomeLbrRel",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Rotina",formControlName:"codLbrRotina",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeLbrRotina",optionValue:"codLbrRotina",foreignEndpoint:"lbr-rotina"}]}]}static#e=this.ɵfac=function LbrRelService_Factory(te){return new(te||LbrRelService)};static#t=this.ɵprov=fe.jDH({token:LbrRelService,factory:LbrRelService.ɵfac,providedIn:"root"})}return LbrRelService})(),Gp=(()=>{class LbrRelComponent{constructor(){this.lbrRelService=(0,fe.WQX)(Fp)}header(){return"Relatórios"}icon(){return"fa-light fa-file-contract"}static#e=this.ɵfac=function LbrRelComponent_Factory(te){return new(te||LbrRelComponent)};static#t=this.ɵcmp=fe.VBU({type:LbrRelComponent,selectors:[["br-lbr-rel"]],standalone:!0,features:[fe.Jv_([Fp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function LbrRelComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.lbrRelService)},dependencies:[Kn.K]})}return LbrRelComponent})(),zp=(()=>{class LbrTipoUsuarioService extends Un.O7{constructor(){super("lbr-tipo-usuario"),this.brListName="Tipo de Usuário",this.brListNamePlural="Tipos de Usuário",this.columns$=new zn.t([{formControlName:"codLbrTipoUsuario",fieldPath:"codLbrTipoUsuario",label:"ID"},{formControlName:"nomeTipoUsuario",fieldPath:"nomeTipoUsuario",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codLbrTipoUsuario",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeTipoUsuario",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function LbrTipoUsuarioService_Factory(te){return new(te||LbrTipoUsuarioService)};static#t=this.ɵprov=fe.jDH({token:LbrTipoUsuarioService,factory:LbrTipoUsuarioService.ɵfac,providedIn:"root"})}return LbrTipoUsuarioService})(),Up=(()=>{class LbrTipoUsuarioComponent{constructor(){this.lbrTipoUsuarioService=(0,fe.WQX)(zp)}header(){return"Tipos de Usuários"}icon(){return"fa-light fa-user-group"}static#e=this.ɵfac=function LbrTipoUsuarioComponent_Factory(te){return new(te||LbrTipoUsuarioComponent)};static#t=this.ɵcmp=fe.VBU({type:LbrTipoUsuarioComponent,selectors:[["br-list-lbr-tipo-usuario"]],standalone:!0,features:[fe.Jv_([zp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function LbrTipoUsuarioComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.lbrTipoUsuarioService)},dependencies:[Kn.K]})}return LbrTipoUsuarioComponent})();var Yp=ie(5433);let Wp=(()=>{class ModeloEmailService extends Un.O7{constructor(){super("modelo-email"),this.brListName="Modelo de Email",this.brListNamePlural="Modelos de Email",this.columns$=new zn.t([{formControlName:"codModeloEmail",fieldPath:"codModeloEmail",label:"ID"},{formControlName:"nomeModeloEmail",fieldPath:"nomeModeloEmail",label:"Nome"},{formControlName:"assuntoModeloEmail",fieldPath:"assuntoModeloEmail",label:"Assunto"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codModeloEmail",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeModeloEmail",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Assunto",formControlName:"assuntoModeloEmail",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Corpo",formControlName:"corpoModeloEmail",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Editor}]}]}static#e=this.ɵfac=function ModeloEmailService_Factory(te){return new(te||ModeloEmailService)};static#t=this.ɵprov=fe.jDH({token:ModeloEmailService,factory:ModeloEmailService.ɵfac,providedIn:"root"})}return ModeloEmailService})(),Qp=(()=>{class ModeloEmailComponent{constructor(){this.modeloEmailService=(0,fe.WQX)(Wp)}header(){return"Modelos de E-mail"}icon(){return"fa-light fa-square-envelope"}static#e=this.ɵfac=function ModeloEmailComponent_Factory(te){return new(te||ModeloEmailComponent)};static#t=this.ɵcmp=fe.VBU({type:ModeloEmailComponent,selectors:[["br-list-modelo-email"]],standalone:!0,features:[fe.Jv_([Wp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function ModeloEmailComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.modeloEmailService)},dependencies:[Kn.K]})}return ModeloEmailComponent})(),Jp=(()=>{class ModeloHtmlService extends Un.O7{constructor(){super("modelo-html"),this.brListName="Modelo de Html",this.brListNamePlural="Modelos de Html",this.columns$=new zn.t([{formControlName:"codModeloHtml",fieldPath:"codModeloHtml",label:"ID"},{formControlName:"nomeModeloHtml",fieldPath:"nomeModeloHtml",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codModeloHtml",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeModeloHtml",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Corpo do Html",formControlName:"textoHtml",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Editor}]}]}static#e=this.ɵfac=function ModeloHtmlService_Factory(te){return new(te||ModeloHtmlService)};static#t=this.ɵprov=fe.jDH({token:ModeloHtmlService,factory:ModeloHtmlService.ɵfac,providedIn:"root"})}return ModeloHtmlService})(),Zp=(()=>{class ModeloHtmlComponent{constructor(){this.modeloHtmlService=(0,fe.WQX)(Jp)}header(){return"Modelos de HTML"}icon(){return"fa-light fa-grid-2"}static#e=this.ɵfac=function ModeloHtmlComponent_Factory(te){return new(te||ModeloHtmlComponent)};static#t=this.ɵcmp=fe.VBU({type:ModeloHtmlComponent,selectors:[["br-list-modelo-html"]],standalone:!0,features:[fe.Jv_([Jp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function ModeloHtmlComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.modeloHtmlService)},dependencies:[Kn.K]})}return ModeloHtmlComponent})(),lh=(()=>{class MotivoDesligamentoService extends Un.O7{constructor(){super("motivo-desligamento"),this.brListName="Motivo de Desligamento",this.brListNamePlural="Motivos de Desligamento",this.columns$=new zn.t([{formControlName:"codMotivoDesligamento",fieldPath:"codMotivoDesligamento",label:"ID"},{formControlName:"nomeMotivoDesligamento",fieldPath:"nomeMotivoDesligamento",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codMotivoDesligamento",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeMotivoDesligamento",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function MotivoDesligamentoService_Factory(te){return new(te||MotivoDesligamentoService)};static#t=this.ɵprov=fe.jDH({token:MotivoDesligamentoService,factory:MotivoDesligamentoService.ɵfac,providedIn:"root"})}return MotivoDesligamentoService})(),Xh=(()=>{class MotivoDesligamentoComponent{constructor(){this.motivoDesligamentoService=(0,fe.WQX)(lh)}header(){return"Motivos de Desligamento"}icon(){return"fa-light fa-question"}static#e=this.ɵfac=function MotivoDesligamentoComponent_Factory(te){return new(te||MotivoDesligamentoComponent)};static#t=this.ɵcmp=fe.VBU({type:MotivoDesligamentoComponent,selectors:[["br-list-motivo-desligamento"]],standalone:!0,features:[fe.Jv_([lh]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function MotivoDesligamentoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.motivoDesligamentoService)},dependencies:[Kn.K]})}return MotivoDesligamentoComponent})(),Qh=(()=>{class NacionalidadeService extends Un.O7{constructor(){super("nacionalidade"),this.brListName="Nacionalidade",this.brListNamePlural="Nacionalidades",this.columns$=new zn.t([{formControlName:"codNacionalidade",fieldPath:"codNacionalidade",label:"ID"},{formControlName:"nomeNacionalidade",fieldPath:"nomeNacionalidade",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNacionalidade",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeNacionalidade",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function NacionalidadeService_Factory(te){return new(te||NacionalidadeService)};static#t=this.ɵprov=fe.jDH({token:NacionalidadeService,factory:NacionalidadeService.ɵfac,providedIn:"root"})}return NacionalidadeService})(),em=(()=>{class NacionalidadeComponent{constructor(){this.nacionalidadeService=(0,fe.WQX)(Qh)}header(){return"Nacionalidades"}icon(){return"fa-light fa-flag"}static#e=this.ɵfac=function NacionalidadeComponent_Factory(te){return new(te||NacionalidadeComponent)};static#t=this.ɵcmp=fe.VBU({type:NacionalidadeComponent,selectors:[["br-list-nacionalidade"]],standalone:!0,features:[fe.Jv_([Qh]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NacionalidadeComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nacionalidadeService)},dependencies:[Kn.K]})}return NacionalidadeComponent})(),tm=(()=>{class NbrAgendaService extends Un.O7{constructor(){super("nbr-agenda"),this.menuMais=[],this.brListName="Evento na Agenda",this.brListNamePlural="Eventos na Agenda",this.state={...this.state,podeVer:!0,podeApagar:!0,podeAlterar:!0,podeInserir:!0},this.columns$=new zn.t([{formControlName:"codNbrAgenda",fieldPath:"codNbrAgenda",label:"ID"},{formControlName:"nomeNbrAgenda",fieldPath:"nomeNbrAgenda",label:"Título do evento"},{fieldPath:"idEventoGoogle",label:"Sincronizado com Google Agenda",typeColumn:Un.Ii.CheckBoxUnsafe,formControlName:"idEventoGoogle"},{formControlName:"dataHoraInicial",fieldPath:"dataHoraInicial",label:"Data inicial",typeColumn:Un.Ii.DateTime},{formControlName:"dataHoraFinal",fieldPath:"dataHoraFinal",label:"Data final",typeColumn:Un.Ii.DateTime},{formControlName:"publico",fieldPath:"publico",label:"Público",typeColumn:Un.Ii.CheckBox}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrAgenda",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Título do evento",formControlName:"nomeNbrAgenda",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Data inicial",formControlName:"dataHoraInicial",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Date,showTime:!0},{label:"Data final",formControlName:"dataHoraFinal",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Date,showTime:!0},{label:"Público",formControlName:"publico",control:new an.MJ(null),typeInput:Un.St.CheckBox},{label:"Descrição do evento",formControlName:"descrAgenda",control:new an.MJ(null),typeInput:Un.St.Editor},{label:"Sincronizado com Google Agenda",formControlName:"idEventoGoogle",control:new an.MJ(null),typeInput:Un.St.Text,showOnFilter:!1,showOnDetails:!1}]}],this.authService.usuario?.usaGoogleAgenda&&this.menuMais.push({label:"Sincronizar com Google Agendas",icon:"pi pi-google",command:()=>{if(this.selectedRows.length>0){const te=this.selectedRows.map((te=>te.codNbrAgenda));this.syncEventosGoogleAgenda({codsNbrAgenda:te}).pipe((0,Wt.n)((()=>this.refreshData()))).subscribe()}else this.brMessageService.info("É necessário selecionar algum registro antes")}})}getGoogleAuthUrl(){return this.http.get(`${this.environmentService.environment.serverUrl}/nbr-agenda/google-auth-url`,{responseType:"text"})}syncEventosGoogleAgenda(te){return this.http.post(`${this.environmentService.environment.serverUrl}/nbr-agenda/sync`,te)}static#e=this.ɵfac=function NbrAgendaService_Factory(te){return new(te||NbrAgendaService)};static#t=this.ɵprov=fe.jDH({token:NbrAgendaService,factory:NbrAgendaService.ɵfac,providedIn:"root"})}return NbrAgendaService})(),nm=(()=>{class NbrAgendaComponent{constructor(){this.nbrAgendaService=(0,fe.WQX)(tm)}header(){return"Eventos da Agenda"}icon(){return"fa-light fa-fw fa-calendar-circle-exclamation"}static#e=this.ɵfac=function NbrAgendaComponent_Factory(te){return new(te||NbrAgendaComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrAgendaComponent,selectors:[["br-list-nbr-agenda"]],standalone:!0,features:[fe.Jv_([tm]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrAgendaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrAgendaService)},dependencies:[Kn.K]})}return NbrAgendaComponent})(),im=(()=>{class NbrAreaAtendimentoService extends Un.O7{constructor(){super("nbr-area-atendimento"),this.brListName="Área de Atendimento",this.brListNamePlural="Áreas de Atendimento",this.columns$=new zn.t([{label:"ID",formControlName:"codNbrAreaAtendimento",fieldPath:"codNbrAreaAtendimento"},{label:"Nome",formControlName:"nomeNbrAreaAtendimento",fieldPath:"nomeNbrAreaAtendimento"},{label:"Tipo de atendimento",fieldPath:"nbrTipoAtendimentoNbrAreaAtendimentoCodNbrTipoAtendimentoTonbrTipoAtendimento.nomeNbrTipoAtendimento",formControlName:"codNbrTipoAtendimento"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrAreaAtendimento",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeNbrAreaAtendimento",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Tipo",formControlName:"codNbrTipoAtendimento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrTipoAtendimento",optionValue:"codNbrTipoAtendimento",foreignEndpoint:"nbr-tipo-atendimento"}]}]}static#e=this.ɵfac=function NbrAreaAtendimentoService_Factory(te){return new(te||NbrAreaAtendimentoService)};static#t=this.ɵprov=fe.jDH({token:NbrAreaAtendimentoService,factory:NbrAreaAtendimentoService.ɵfac,providedIn:"root"})}return NbrAreaAtendimentoService})(),om=(()=>{class NbrAreaAtendimentoComponent{constructor(){this.nbrAreaAtendimentoService=(0,fe.WQX)(im)}header(){return"Áreas de Atendimento"}icon(){return"fa-light fa-gear"}static#e=this.ɵfac=function NbrAreaAtendimentoComponent_Factory(te){return new(te||NbrAreaAtendimentoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrAreaAtendimentoComponent,selectors:[["br-list-nbr-area-atendimento"]],standalone:!0,features:[fe.Jv_([im]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrAreaAtendimentoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrAreaAtendimentoService)},dependencies:[Kn.K]})}return NbrAreaAtendimentoComponent})(),sm=(()=>{class NbrBloqueioAtendimentoService extends Un.O7{constructor(){super("nbr-bloqueio-atendimento"),this.brListName="Bloqueio de Atendimento",this.brListNamePlural="Bloqueios de Atendimento",this.columns$=new zn.t([{formControlName:"codNbrBloqueioAtendimento",fieldPath:"codNbrBloqueioAtendimento",label:"ID"},{fieldPath:"lbrUsuario.nomeUsuario",label:"Usuário",formControlName:"codLbrUsuario"},{fieldPath:"nbrTipoAtendimento.nomeNbrTipoAtendimento",label:"Tipo de atendimento",formControlName:"codNbrTipoAtendimento"},{formControlName:"dataInicialBloqueio",fieldPath:"dataInicialBloqueio",label:"Data inicial",typeColumn:Un.Ii.Date},{formControlName:"dataFinalBloqueio",fieldPath:"dataFinalBloqueio",label:"Data final",typeColumn:Un.Ii.Date},{formControlName:"registroAtivo",fieldPath:"registroAtivo",label:"Ativo",typeColumn:Un.Ii.CheckBox}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrBloqueioAtendimento",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Usuário",formControlName:"codLbrUsuario",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpf",foreignEndpoint:"lbr-usuario"},{label:"Tipo de atendimento",formControlName:"codNbrTipoAtendimento",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrTipoAtendimento",optionValue:"codNbrTipoAtendimento",foreignEndpoint:"nbr-tipo-atendimento"},{label:"Data inicial",formControlName:"dataInicialBloqueio",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Date},{label:"Data final",formControlName:"dataFinalBloqueio",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Date},{label:"Ativo",formControlName:"registroAtivo",control:new an.MJ(null),typeInput:Un.St.CheckBox},{label:"Motivo",formControlName:"descrMotivo",control:new an.MJ(null),typeInput:Un.St.Editor}]}]}static#e=this.ɵfac=function NbrBloqueioAtendimentoService_Factory(te){return new(te||NbrBloqueioAtendimentoService)};static#t=this.ɵprov=fe.jDH({token:NbrBloqueioAtendimentoService,factory:NbrBloqueioAtendimentoService.ɵfac,providedIn:"root"})}return NbrBloqueioAtendimentoService})(),lm=(()=>{class NbrBloqueioAtendimentoComponent{constructor(){this.nbrBloqueioAtendimentoService=(0,fe.WQX)(sm)}header(){return"Bloqueio de Atendimento"}icon(){return"fa-light fa-ban"}static#e=this.ɵfac=function NbrBloqueioAtendimentoComponent_Factory(te){return new(te||NbrBloqueioAtendimentoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrBloqueioAtendimentoComponent,selectors:[["br-list-nbr-bloqueio-atendimento"]],standalone:!0,features:[fe.Jv_([sm]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrBloqueioAtendimentoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrBloqueioAtendimentoService)},dependencies:[Kn.K]})}return NbrBloqueioAtendimentoComponent})(),dm=(()=>{class NbrConfigComponenteService extends Un.O7{constructor(){super("nbr-config-componente"),this.brListName="Configuração de Componente",this.brListNamePlural="Configurações de Componentes",this.columns$=new zn.t([{formControlName:"codNbrConfigComponente",fieldPath:"nbrConfigComponente",label:"ID"},{formControlName:"codLbrUsuario",fieldPath:"lbrUsuario.nomeUsuario",label:"Usuário"},{formControlName:"nomeClasse",fieldPath:"nomeClasse",label:"Componente"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrConfigComponente",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Usuário",formControlName:"codLbrUsuario",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpf",foreignEndpoint:"lbr-usuario"},{label:"Componente",formControlName:"nomeClasse",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Conteúdo",formControlName:"jsonComponente",control:new an.MJ(null,an.k0.required),typeInput:Un.St.TextArea}]}]}static#e=this.ɵfac=function NbrConfigComponenteService_Factory(te){return new(te||NbrConfigComponenteService)};static#t=this.ɵprov=fe.jDH({token:NbrConfigComponenteService,factory:NbrConfigComponenteService.ɵfac,providedIn:"root"})}return NbrConfigComponenteService})(),um=(()=>{class NbrConfigComponenteComponent{constructor(){this.nbrConfigComponenteService=(0,fe.WQX)(dm)}header(){return"Configuração de Componentes"}icon(){return"fa-light fa-gear"}static#e=this.ɵfac=function NbrConfigComponenteComponent_Factory(te){return new(te||NbrConfigComponenteComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrConfigComponenteComponent,selectors:[["br-list-nbr-config-componente"]],standalone:!0,features:[fe.Jv_([dm]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrConfigComponenteComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrConfigComponenteService)},dependencies:[Kn.K]})}return NbrConfigComponenteComponent})();var gm=ie(7287);let fm=(()=>{class NbrDemandaJuridicoEmAbertoService extends zo.v{constructor(){super(),this.fixedFilters={...this.fixedFilters,codNbrTipoAtendimento:[1],situacaoDemanda:io.X.EmAberto,...this.authService.usuario.isAdmin||this.authService.usuario.isRespGrupo?void 0:{codLbrUsuarioExecutor:[this.authService.usuario.codLbrUsuario]}}}static#e=this.ɵfac=function NbrDemandaJuridicoEmAbertoService_Factory(te){return new(te||NbrDemandaJuridicoEmAbertoService)};static#t=this.ɵprov=fe.jDH({token:NbrDemandaJuridicoEmAbertoService,factory:NbrDemandaJuridicoEmAbertoService.ɵfac,providedIn:"root"})}return NbrDemandaJuridicoEmAbertoService})();function NbrDemandaJuridicoEmAbertoComponent_ng_template_1_Template(te,ne){if(1&te&&fe.nrm(0,"demanda-linha-do-tempo",2),2&te){const te=fe.XpG();fe.Y8G("nbrDemandaService",te.nbrDemandaJuridicoEmAbertoService)}}let bm=(()=>{class NbrDemandaJuridicoEmAbertoComponent{constructor(){this.nbrDemandaJuridicoEmAbertoService=(0,fe.WQX)(fm)}header(){return"Demandas em Aberto (Jurídico)"}icon(){return"fa-light fa-scale-balanced"}static#e=this.ɵfac=function NbrDemandaJuridicoEmAbertoComponent_Factory(te){return new(te||NbrDemandaJuridicoEmAbertoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrDemandaJuridicoEmAbertoComponent,selectors:[["br-list-nbr-demanda-juridico-em-aberto"]],standalone:!0,features:[fe.Jv_([fm]),fe.aNF],decls:3,vars:1,consts:[[3,"brListService"],["alterar",""],[3,"nbrDemandaService"]],template:function NbrDemandaJuridicoEmAbertoComponent_Template(te,ne){1&te&&(fe.j41(0,"br-list",0),fe.DNE(1,NbrDemandaJuridicoEmAbertoComponent_ng_template_1_Template,1,1,"ng-template",null,1,fe.C5r),fe.k0s()),2&te&&fe.Y8G("brListService",ne.nbrDemandaJuridicoEmAbertoService)},dependencies:[Kn.K,kr.w],styles:["[_nghost-%COMP%]     .br-sidebar.br-sidebar{height:70vh}"]})}return NbrDemandaJuridicoEmAbertoComponent})();function NbrDemandaJuridicoComponent_ng_template_1_Template(te,ne){if(1&te&&fe.nrm(0,"demanda-linha-do-tempo",2),2&te){const te=fe.XpG();fe.Y8G("nbrDemandaService",te.nbrDemandaJuridicoService)}}let Gm=(()=>{class NbrDemandaJuridicoComponent{constructor(){this.nbrDemandaJuridicoService=(0,fe.WQX)(zo.v)}header(){return"Demandas (Jurídico)"}icon(){return"fa-light fa-scale-balanced"}static#e=this.ɵfac=function NbrDemandaJuridicoComponent_Factory(te){return new(te||NbrDemandaJuridicoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrDemandaJuridicoComponent,selectors:[["br-list-nbr-demanda-juridico"]],standalone:!0,features:[fe.Jv_([zo.v]),fe.aNF],decls:3,vars:1,consts:[[3,"brListService"],["alterar",""],[3,"nbrDemandaService"]],template:function NbrDemandaJuridicoComponent_Template(te,ne){1&te&&(fe.j41(0,"br-list",0),fe.DNE(1,NbrDemandaJuridicoComponent_ng_template_1_Template,1,1,"ng-template",null,1,fe.C5r),fe.k0s()),2&te&&fe.Y8G("brListService",ne.nbrDemandaJuridicoService)},dependencies:[Kn.K,kr.w],styles:["[_nghost-%COMP%]     .br-sidebar.br-sidebar{height:70vh}"]})}return NbrDemandaJuridicoComponent})(),$m=(()=>{class NbrDemandaPsicologicoEmAbertoService extends wa.T{constructor(){super(),this.fixedFilters={...this.fixedFilters,situacaoDemanda:io.X.EmAberto},this.appliedFilters={...this.appliedFilters,order:{path:"codNbrDemanda",ordem:"desc"}}}static#e=this.ɵfac=function NbrDemandaPsicologicoEmAbertoService_Factory(te){return new(te||NbrDemandaPsicologicoEmAbertoService)};static#t=this.ɵprov=fe.jDH({token:NbrDemandaPsicologicoEmAbertoService,factory:NbrDemandaPsicologicoEmAbertoService.ɵfac,providedIn:"root"})}return NbrDemandaPsicologicoEmAbertoService})();function NbrDemandaPsicologicoEmAbertoComponent_ng_template_1_Template(te,ne){if(1&te&&fe.nrm(0,"demanda-linha-do-tempo",2),2&te){const te=fe.XpG();fe.Y8G("nbrDemandaService",te.nbrDemandaPsicologicoEmAbertoService)}}let qm=(()=>{class NbrDemandaPsicologicoEmAbertoComponent{constructor(){this.nbrDemandaPsicologicoEmAbertoService=(0,fe.WQX)($m)}header(){return"Consultas em Aberto (Mente Tática)"}icon(){return"fa-light fa-brain-circuit"}static#e=this.ɵfac=function NbrDemandaPsicologicoEmAbertoComponent_Factory(te){return new(te||NbrDemandaPsicologicoEmAbertoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrDemandaPsicologicoEmAbertoComponent,selectors:[["br-list-nbr-demanda-mente-tatica-em-aberto"]],standalone:!0,features:[fe.Jv_([$m]),fe.aNF],decls:3,vars:1,consts:[[3,"brListService"],["alterar",""],[3,"nbrDemandaService"]],template:function NbrDemandaPsicologicoEmAbertoComponent_Template(te,ne){1&te&&(fe.j41(0,"br-list",0),fe.DNE(1,NbrDemandaPsicologicoEmAbertoComponent_ng_template_1_Template,1,1,"ng-template",null,1,fe.C5r),fe.k0s()),2&te&&fe.Y8G("brListService",ne.nbrDemandaPsicologicoEmAbertoService)},dependencies:[Kn.K,kr.w],styles:["[_nghost-%COMP%]     .br-sidebar.br-sidebar{height:70vh}[_ngcontent-%COMP%]:is()   span[_ngcontent-%COMP%]{color:#00a73e}[_ngcontent-%COMP%]:is()   span[_ngcontent-%COMP%]{color:red}[_ngcontent-%COMP%]:is()   span[_ngcontent-%COMP%]{color:#2789ba}[_nghost-%COMP%]     .consulta-confirmada span{color:#00a73e}[_nghost-%COMP%]     .consulta-realizada span{color:red}[_nghost-%COMP%]     .solicitao-consulta span{color:#2789ba}"]})}return NbrDemandaPsicologicoEmAbertoComponent})();function NbrDemandaPsicologicoComponent_ng_template_1_Template(te,ne){if(1&te&&fe.nrm(0,"demanda-linha-do-tempo",2),2&te){const te=fe.XpG();fe.Y8G("nbrDemandaService",te.nbrDemandaPsicologicoService)}}let Wm=(()=>{class NbrDemandaPsicologicoComponent{constructor(){this.nbrDemandaPsicologicoService=(0,fe.WQX)(wa.T)}header(){return"Consultas (Mente Tática)"}icon(){return"fa-light fa-brain-circuit"}static#e=this.ɵfac=function NbrDemandaPsicologicoComponent_Factory(te){return new(te||NbrDemandaPsicologicoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrDemandaPsicologicoComponent,selectors:[["br-list-nbr-demanda-mente-tatica"]],standalone:!0,features:[fe.Jv_([wa.T]),fe.aNF],decls:3,vars:1,consts:[[3,"brListService"],["alterar",""],[3,"nbrDemandaService"]],template:function NbrDemandaPsicologicoComponent_Template(te,ne){1&te&&(fe.j41(0,"br-list",0),fe.DNE(1,NbrDemandaPsicologicoComponent_ng_template_1_Template,1,1,"ng-template",null,1,fe.C5r),fe.k0s()),2&te&&fe.Y8G("brListService",ne.nbrDemandaPsicologicoService)},dependencies:[Kn.K,kr.w],styles:["[_nghost-%COMP%]     .br-sidebar.br-sidebar{height:70vh}[_nghost-%COMP%]     .consulta-confirmada span{color:#00a73e}[_nghost-%COMP%]     .consulta-realizada span{color:red}[_nghost-%COMP%]     .solicitao-consulta span{color:#2789ba}"]})}return NbrDemandaPsicologicoComponent})();var Km=ie(7718);const Zm=["input"],primeng_radiobutton_c1=(te,ne,ie)=>({"p-radiobutton-label":!0,"p-radiobutton-label-active":te,"p-disabled":ne,"p-radiobutton-label-focus":ie});function RadioButton_label_6_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"label",7),fe.bIt("click",(function RadioButton_label_6_Template_label_click_0_listener(ne){fe.eBV(te);const ie=fe.XpG();return fe.Njj(ie.select(ne))})),fe.EFF(1),fe.k0s()}if(2&te){const te=fe.XpG(),ne=fe.sdS(3);fe.HbH(te.labelStyleClass),fe.Y8G("ngClass",fe.sMw(6,primeng_radiobutton_c1,ne.checked,te.disabled,te.focused)),fe.BMQ("for",te.inputId)("data-pc-section","label"),fe.R7$(),fe.JRh(te.label)}}const primeng_radiobutton_c2=(te,ne,ie,re)=>({"p-radiobutton p-component":!0,"p-radiobutton-checked":te,"p-radiobutton-disabled":ne,"p-radiobutton-focused":ie,"p-variant-filled":re}),primeng_radiobutton_c3=(te,ne,ie)=>({"p-radiobutton-box":!0,"p-highlight":te,"p-disabled":ne,"p-focus":ie}),ig={provide:an.kq,useExisting:(0,fe.Rfq)((()=>ag)),multi:!0};let og=(()=>{class RadioControlRegistry{accessors=[];add(te,ne){this.accessors.push([te,ne])}remove(te){this.accessors=this.accessors.filter((ne=>ne[1]!==te))}select(te){this.accessors.forEach((ne=>{this.isSameGroup(ne,te)&&ne[1]!==te&&ne[1].writeValue(te.value)}))}isSameGroup(te,ne){return!!te[0].control&&(te[0].control.root===ne.control.control.root&&te[1].name===ne.name)}static ɵfac=function RadioControlRegistry_Factory(te){return new(te||RadioControlRegistry)};static ɵprov=fe.jDH({token:RadioControlRegistry,factory:RadioControlRegistry.ɵfac,providedIn:"root"})}return RadioControlRegistry})(),ag=(()=>{class RadioButton{cd;injector;registry;config;value;formControlName;name;disabled;label;variant="outlined";tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;autofocus;onClick=new fe.bkB;onFocus=new fe.bkB;onBlur=new fe.bkB;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(te,ne,ie,re){this.cd=te,this.injector=ne,this.registry=ie,this.config=re}ngOnInit(){this.control=this.injector.get(an.vO),this.checkName(),this.registry.add(this.control,this)}handleClick(te,ne,ie){te.preventDefault(),this.disabled||(this.select(te),ie&&ne.focus())}select(te){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:te,value:this.value}))}writeValue(te){this.checked=te==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}onInputFocus(te){this.focused=!0,this.onFocus.emit(te)}onInputBlur(te){this.focused=!1,this.onModelTouched(),this.onBlur.emit(te)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n          If you define both a name and a formControlName attribute on your radio button, their values\n          must match. Ex: <p-radioButton formControlName="food" name="food"></p-radioButton>\n        ')}static ɵfac=function RadioButton_Factory(te){return new(te||RadioButton)(fe.rXU(fe.gRc),fe.rXU(fe.zZn),fe.rXU(og),fe.rXU(Ht.r1))};static ɵcmp=fe.VBU({type:RadioButton,selectors:[["p-radioButton"]],viewQuery:function RadioButton_Query(te,ne){if(1&te&&fe.GBs(Zm,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.inputViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:[fe.Mj6.HasDecoratorInputTransform,"disabled","disabled",fe.L39],label:"label",variant:"variant",tabindex:[fe.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",fe.Udg],inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",autofocus:[fe.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",fe.L39]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[fe.Jv_([ig]),fe.GFd],decls:7,vars:31,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","radio","pAutoFocus","",3,"checked","disabled","value","autofocus","focus","blur"],["input",""],[3,"ngClass"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function RadioButton_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",0),fe.bIt("click",(function RadioButton_Template_div_click_0_listener(ie){fe.eBV(te);const re=fe.sdS(3);return fe.Njj(ne.handleClick(ie,re,!0))})),fe.j41(1,"div",1)(2,"input",2,3),fe.bIt("focus",(function RadioButton_Template_input_focus_2_listener(te){return ne.onInputFocus(te)}))("blur",(function RadioButton_Template_input_blur_2_listener(te){return ne.onInputBlur(te)})),fe.k0s()(),fe.j41(4,"div",4),fe.nrm(5,"span",5),fe.k0s()(),fe.DNE(6,RadioButton_label_6_Template,2,10,"label",6)}2&te&&(fe.HbH(ne.styleClass),fe.Y8G("ngStyle",ne.style)("ngClass",fe.ziG(22,primeng_radiobutton_c2,ne.checked,ne.disabled,ne.focused,"filled"===ne.variant||"filled"===ne.config.inputStyle())),fe.BMQ("data-pc-name","radiobutton")("data-pc-section","root"),fe.R7$(),fe.BMQ("data-pc-section","hiddenInputWrapper"),fe.R7$(),fe.Y8G("checked",ne.checked)("disabled",ne.disabled)("value",ne.value)("autofocus",ne.autofocus),fe.BMQ("id",ne.inputId)("name",ne.name)("aria-labelledby",ne.ariaLabelledBy)("aria-label",ne.ariaLabel)("tabindex",ne.tabindex)("aria-checked",ne.checked)("data-pc-section","hiddenInput"),fe.R7$(2),fe.Y8G("ngClass",fe.sMw(27,primeng_radiobutton_c3,ne.checked,ne.disabled,ne.focused)),fe.BMQ("data-pc-section","input"),fe.R7$(),fe.BMQ("data-pc-section","icon"),fe.R7$(),fe.Y8G("ngIf",ne.label))},dependencies:[de.YU,de.bT,de.B3,bs.q],encapsulation:2,changeDetection:0})}return RadioButton})(),sg=(()=>{class RadioButtonModule{static ɵfac=function RadioButtonModule_Factory(te){return new(te||RadioButtonModule)};static ɵmod=fe.$C({type:RadioButtonModule});static ɵinj=fe.G2t({imports:[de.MD,bs.u]})}return RadioButtonModule})();var cg=ie(4924),dg=ie(605);let ug=(()=>{class BrRelatorioService{constructor(){this.http=(0,fe.WQX)(ue.Qq),this.environmentService=(0,fe.WQX)(oo.v)}listRelatorios(te){return this.http.get(`${this.environmentService.environment.serverUrl}/lbr-rel/rotina/${te}`)}static#e=this.ɵfac=function BrRelatorioService_Factory(te){return new(te||BrRelatorioService)};static#t=this.ɵprov=fe.jDH({token:BrRelatorioService,factory:BrRelatorioService.ɵfac,providedIn:"root"})}return BrRelatorioService})();function BrRelatorioComponent_p_dropdown_3_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"p-dropdown",11),fe.mxI("ngModelChange",(function BrRelatorioComponent_p_dropdown_3_Template_p_dropdown_ngModelChange_0_listener(ne){fe.eBV(te);const ie=fe.XpG();return fe.DH7(ie.relatorioSelecionado,ne)||(ie.relatorioSelecionado=ne),fe.Njj(ne)})),fe.k0s()}if(2&te){const te=fe.XpG();fe.R50("ngModel",te.relatorioSelecionado),fe.Y8G("options",te.relatorios)}}let hg=(()=>{class BrRelatorioComponent{constructor(){this.confirmationService=(0,fe.WQX)(Ht.td),this.relatorioService=(0,fe.WQX)(ug),this.tabService=(0,fe.WQX)(Yn.r),this.validadorFormularioService=(0,fe.WQX)(Zr.E),this.logAcessoService=(0,fe.WQX)(dg.C),this.keyConfirmDialog=(0,Zo.A)(),this.formatosDeVisualizacao=[{label:"PDF",value:"pdf"},{label:"Excel",value:"excel"}]}ngOnInit(){this.brListService.state.isFilterLoading=!1,(0,Kt.p)([this.relatorioService.listRelatorios(this.rotina),this.brListService.configComponente()]).subscribe({next:te=>{this.relatorios=te[0];const ne=this.brListService.appliedFilters.relatorioSelecionado;ne?this.relatorioSelecionado=ne:this.relatorios.length>0&&(this.relatorioSelecionado=this.relatorios[0]);const ie=this.brListService.appliedFilters.formatoVisalizacao;this.formatoVisualizacao=ie||this.formatosDeVisualizacao[0].value}})}get form(){return this.brListService.formFilters}get brFormulario(){return this.brListService.brFormulario}get appliedFilters(){return this.brListService.appliedFilters}set appliedFilters(te){this.brListService.appliedFilters=te}abrirRalatorio(){const te=this.validadorFormularioService.validaFormulario(this.form,this.brFormulario);te.valido||this.confirmationService.confirm({message:te.mensagemErro,header:"Aviso",icon:Ht.EE.EXCLAMATION_TRIANGLE,dismissableMask:!0,rejectVisible:!1,acceptVisible:!1,key:this.keyConfirmDialog}),this.brListService.columns.forEach((te=>te.searchValue=void 0));const ne=this.form.getRawValue(),ie=Object.keys(ne).filter((te=>null!==ne[te]&&void 0!==ne[te])).reduce(((te,ie)=>(te[ie]=ne[ie],te)),{});this.appliedFilters={...ie,relatorioSelecionado:this.relatorioSelecionado,formatoVisalizacao:this.formatoVisualizacao},this.brListService.saveBrListConfig().subscribe();const re={operacao:"rel_incorp",rotina:this.rotina,formatoVisualizacao:this.formatoVisualizacao,codRel:this.relatorioSelecionado?.codLbrRel,...ie};this.logAcessoService.addEvento(dg.X.VisualizaRelatorio,{descricao:JSON.stringify({nomeRelatorio:this.relatorioSelecionado.nomeLbrRel,...re}),registrarRotinaMenu:!0}),this.tabService.openChild({parentId:this.tabRef.parentId,child:{header:this.relatorioSelecionado.nomeLbrRel,component:Wn.g,data:{params:re}}})}static#e=this.ɵfac=function BrRelatorioComponent_Factory(te){return new(te||BrRelatorioComponent)};static#t=this.ɵcmp=fe.VBU({type:BrRelatorioComponent,selectors:[["br-relatorio"]],inputs:{brListService:"brListService",rotina:"rotina",tabRef:"tabRef"},standalone:!0,features:[fe.aNF],decls:15,vars:7,consts:[[1,"container-relatorio"],[1,"container-selecao-relatorio"],["label","Relatório","id","rel","optionLabel","nomeLbrRel",3,"ngModel","options","ngModelChange",4,"ngIf"],["for","rel"],["label","Relatório","id","formatoVisualizacao",3,"ngModel","options","ngModelChange"],["for","formatoVisualizacao"],["label","Visualizar",3,"disabled","onClick"],["toggler","header","header","Filtros",1,"w-full",3,"toggleable"],[1,"panel-container",2,"padding","1rem"],[3,"brListService"],["appendTo","body",3,"key"],["label","Relatório","id","rel","optionLabel","nomeLbrRel",3,"ngModel","options","ngModelChange"]],template:function BrRelatorioComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"div",1)(2,"p-floatLabel"),fe.DNE(3,BrRelatorioComponent_p_dropdown_3_Template,1,2,"p-dropdown",2),fe.j41(4,"label",3),fe.EFF(5,"Relatório"),fe.k0s()(),fe.j41(6,"p-floatLabel")(7,"p-dropdown",4),fe.mxI("ngModelChange",(function BrRelatorioComponent_Template_p_dropdown_ngModelChange_7_listener(te){return fe.DH7(ne.formatoVisualizacao,te)||(ne.formatoVisualizacao=te),te})),fe.k0s(),fe.j41(8,"label",5),fe.EFF(9,"Formato de visalização"),fe.k0s()(),fe.j41(10,"p-button",6),fe.bIt("onClick",(function BrRelatorioComponent_Template_p_button_onClick_10_listener(){return ne.abrirRalatorio()})),fe.k0s()(),fe.j41(11,"p-panel",7)(12,"div",8),fe.nrm(13,"br-filter",9),fe.k0s()()(),fe.nrm(14,"p-confirmDialog",10)),2&te&&(fe.R7$(3),fe.Y8G("ngIf",ne.relatorios),fe.R7$(4),fe.R50("ngModel",ne.formatoVisualizacao),fe.Y8G("options",ne.formatosDeVisualizacao),fe.R7$(3),fe.Y8G("disabled",!ne.relatorioSelecionado),fe.R7$(),fe.Y8G("toggleable",!1),fe.R7$(2),fe.Y8G("brListService",ne.brListService),fe.R7$(),fe.Y8G("key",ne.keyConfirmDialog))},dependencies:[de.MD,de.bT,an.X1,an.BC,hr.kr,hr.ms,Km.b,Km.Z,sn.tm,sn.$n,Po.F,Po.T,cg.i,an.YN,an.vS,yn.f,yn.V,sg],styles:[".container-relatorio[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:30px 20px;gap:20px}.container-selecao-relatorio[_ngcontent-%COMP%]{display:flex;gap:20px}.panel-container[_ngcontent-%COMP%]{width:100%}"]})}return BrRelatorioComponent})();var Ig=ie(9746);let Sg=(()=>{class NbrDemandaRelatorioService extends io.m{constructor(){super(...arguments),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"Demandas",formControlName:"situacaoDemanda",control:new an.MJ(null),typeInput:Un.St.Dropdown,dataList:[{label:"Em Aberto",value:io.X.EmAberto},{label:"Encerradas",value:io.X.Encerradas},{label:"Todas",value:io.X.Todas}],optionLabel:"label",optionValue:"value",showOnFilter:!0,showOnDetails:!1},{label:"ID",formControlName:"codNbrDemanda",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1,showOnFilter:!1},{label:"Solicitante",formControlName:"codLbrUsuario",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpfCliente",foreignEndpoint:"lbr-usuario"},{label:"Área",formControlName:"codNbrAreaAtendimento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrAreaAtendimento",optionValue:"codNbrAreaAtendimento",foreignEndpoint:"nbr-area-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)})},{label:"Status",formControlName:"codNbrStatusDemanda",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)})},{label:"Executor",formControlName:"codLbrUsuarioExecutor",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpfCliente",foreignEndpoint:"lbr-usuario",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(1)})},{label:"Data inicial",formControlName:"dataInicial",control:new an.MJ(null),typeInput:Un.St.Date},{label:"Data final",formControlName:"dataFinal",control:new an.MJ(null),typeInput:Un.St.Date}]}]}static#e=this.ɵfac=(()=>{let te;return function NbrDemandaRelatorioService_Factory(ne){return(te||(te=fe.xGo(NbrDemandaRelatorioService)))(ne||NbrDemandaRelatorioService)}})();static#t=this.ɵprov=fe.jDH({token:NbrDemandaRelatorioService,factory:NbrDemandaRelatorioService.ɵfac,providedIn:"root"})}return NbrDemandaRelatorioService})(),xg=(()=>{class NbrDemandasRelatorioComponent{constructor(){this.nbrDemandaRelatorioService=(0,fe.WQX)(Sg),this.tabRef=(0,fe.WQX)(Ig.l)}header(){return"Relatórios - Jurídico"}icon(){return"fa-light fa-fw fa-memo-pad"}static#e=this.ɵfac=function NbrDemandasRelatorioComponent_Factory(te){return new(te||NbrDemandasRelatorioComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrDemandasRelatorioComponent,selectors:[["ng-component"]],standalone:!0,features:[fe.aNF],decls:1,vars:2,consts:[["rotina","DemandaDbRelDm",3,"brListService","tabRef"]],template:function NbrDemandasRelatorioComponent_Template(te,ne){1&te&&fe.nrm(0,"br-relatorio",0),2&te&&fe.Y8G("brListService",ne.nbrDemandaRelatorioService)("tabRef",ne.tabRef)},dependencies:[hg]})}return NbrDemandasRelatorioComponent})(),Eg=(()=>{class NbrDemandaPsicologicoCompletoRelatorioService extends io.m{constructor(){super(...arguments),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"Solicitante",formControlName:"codLbrUsuario",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario",foreignEndpoint:"lbr-usuario"},{label:"Área",formControlName:"codNbrAreaAtendimento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrAreaAtendimento",optionValue:"codNbrAreaAtendimento",foreignEndpoint:"nbr-area-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(2)}),showOnFilter:!1},{label:"Modo",formControlName:"codNbrModoAtendimento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrModoAtendimento",optionValue:"codNbrModoAtendimento",foreignEndpoint:"nbr-modo-atendimento",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(2)}),showOnFilter:!1},{label:"Forma de atendimento",formControlName:"codNbrFormaAtendimento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrFormaAtendimento",optionValue:"codNbrFormaAtendimento",foreignEndpoint:"nbr-forma-atendimento"},{label:"Status",formControlName:"codNbrStatusDemanda",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(2)}),showOnDetails:!1},{showOnDetails:!1,label:"Psicólogo/Executor",formControlName:"codLbrUsuarioExecutor",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpfCliente",foreignEndpoint:"lbr-usuario",foreignMinQuery:new URLSearchParams({codNbrTipoAtendimento:String(2)})},{showOnDetails:!1,label:"Solicitação",formControlName:"dataInicial",control:new an.MJ(null),typeInput:Un.St.Date,showTime:!0},{showOnDetails:!1,label:"Atendimento",formControlName:"dataFinal",control:new an.MJ(null),typeInput:Un.St.Date,showTime:!0},{showOnDetails:!1,showOnFilter:!1,label:"Data de cancelamento",formControlName:"dataHoraCancelamento",control:new an.MJ(null),typeInput:Un.St.Date,showTime:!0}]}]}static#e=this.ɵfac=(()=>{let te;return function NbrDemandaPsicologicoCompletoRelatorioService_Factory(ne){return(te||(te=fe.xGo(NbrDemandaPsicologicoCompletoRelatorioService)))(ne||NbrDemandaPsicologicoCompletoRelatorioService)}})();static#t=this.ɵprov=fe.jDH({token:NbrDemandaPsicologicoCompletoRelatorioService,factory:NbrDemandaPsicologicoCompletoRelatorioService.ɵfac,providedIn:"root"})}return NbrDemandaPsicologicoCompletoRelatorioService})(),Mg=(()=>{class NbrDemandasPsicologicoCompletoRelatorioComponent{constructor(){this.nbrDemandaRelatorioService=(0,fe.WQX)(Eg),this.tabRef=(0,fe.WQX)(Ig.l)}header(){return"Relatório Completo - Psicológico"}icon(){return"fa-light fa-fw fa-memo-pad"}static#e=this.ɵfac=function NbrDemandasPsicologicoCompletoRelatorioComponent_Factory(te){return new(te||NbrDemandasPsicologicoCompletoRelatorioComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrDemandasPsicologicoCompletoRelatorioComponent,selectors:[["ng-component"]],standalone:!0,features:[fe.aNF],decls:1,vars:2,consts:[["rotina","DemandaPsicologicoCompletoDbRelDm",3,"brListService","tabRef"]],template:function NbrDemandasPsicologicoCompletoRelatorioComponent_Template(te,ne){1&te&&fe.nrm(0,"br-relatorio",0),2&te&&fe.Y8G("brListService",ne.nbrDemandaRelatorioService)("tabRef",ne.tabRef)},dependencies:[hg]})}return NbrDemandasPsicologicoCompletoRelatorioComponent})(),Ng=(()=>{class NbrDemandaPsicologicoRelatorioService extends Un.O7{constructor(){super("nbr-demanda"),this.columns$=new zn.t([]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"Referência",formControlName:"codReferencia",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeReferencia",optionValue:"codReferencia",foreignEndpoint:"referencia",foreignMinQuery:new URLSearchParams({apenasUltimoMes:"true"})}]}],this.brListName="Consulta",this.brListNamePlural="Consultas",this.hideFiltroDataCriacao=!0}static#e=this.ɵfac=function NbrDemandaPsicologicoRelatorioService_Factory(te){return new(te||NbrDemandaPsicologicoRelatorioService)};static#t=this.ɵprov=fe.jDH({token:NbrDemandaPsicologicoRelatorioService,factory:NbrDemandaPsicologicoRelatorioService.ɵfac,providedIn:"root"})}return NbrDemandaPsicologicoRelatorioService})(),Lg=(()=>{class NbrDemandasPsicologicoRelatorioComponent{constructor(){this.nbrDemandaRelatorioService=(0,fe.WQX)(Ng),this.tabRef=(0,fe.WQX)(Ig.l)}header(){return"Relatórios Simplificado - Psicológico"}icon(){return"fa-light fa-fw fa-memo-pad"}static#e=this.ɵfac=function NbrDemandasPsicologicoRelatorioComponent_Factory(te){return new(te||NbrDemandasPsicologicoRelatorioComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrDemandasPsicologicoRelatorioComponent,selectors:[["ng-component"]],standalone:!0,features:[fe.aNF],decls:1,vars:2,consts:[["rotina","DemandaPsicologicoDbRelDm",3,"brListService","tabRef"]],template:function NbrDemandasPsicologicoRelatorioComponent_Template(te,ne){1&te&&fe.nrm(0,"br-relatorio",0),2&te&&fe.Y8G("brListService",ne.nbrDemandaRelatorioService)("tabRef",ne.tabRef)},dependencies:[hg]})}return NbrDemandasPsicologicoRelatorioComponent})(),Gg=(()=>{class NbrDespesaGrupoComponent{constructor(){this.nbrDespesaGrupoService=(0,fe.WQX)(fr)}header(){return"Grupos de Despesas"}icon(){return"fa-light fa-user-gear"}static#e=this.ɵfac=function NbrDespesaGrupoComponent_Factory(te){return new(te||NbrDespesaGrupoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrDespesaGrupoComponent,selectors:[["br-list-nbr-despesa-grupo"]],standalone:!0,features:[fe.Jv_([fr]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrDespesaGrupoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrDespesaGrupoService)},dependencies:[Kn.K]})}return NbrDespesaGrupoComponent})(),Hg=(()=>{class NbrDespesaService extends Un.O7{constructor(){super("nbr-despesa"),this.brListName="Tipo de Despesa",this.brListNamePlural="Tipos de Despesas",this.columns$=new zn.t([{formControlName:"codNbrDespesa",fieldPath:"codNbrDespesa"},{formControlName:"nomeNbrDespesa",fieldPath:"nomeNbrDespesa"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrDespesa",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome da despesa",formControlName:"nomeNbrDespesa",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function NbrDespesaService_Factory(te){return new(te||NbrDespesaService)};static#t=this.ɵprov=fe.jDH({token:NbrDespesaService,factory:NbrDespesaService.ɵfac,providedIn:"root"})}return NbrDespesaService})(),Ug=(()=>{class NbrDespesaComponent{constructor(){this.nbrDespesaService=(0,fe.WQX)(Hg)}header(){return"Tipos de Despesas"}icon(){return"fa-light fa-gear"}static#e=this.ɵfac=function NbrDespesaComponent_Factory(te){return new(te||NbrDespesaComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrDespesaComponent,selectors:[["br-list-nbr-despesa"]],standalone:!0,features:[fe.Jv_([Hg]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrDespesaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrDespesaService)},dependencies:[Kn.K]})}return NbrDespesaComponent})(),$g=(()=>{class NbrFormaAtendimentoService extends Un.O7{constructor(){super("nbr-forma-atendimento"),this.brListName="Forma de Atendimento",this.brListNamePlural="Formas de Atendimento",this.columns$=new zn.t([{formControlName:"codNbrFormaAtendimento",fieldPath:"codNbrFormaAtendimento",label:"ID"},{formControlName:"nomeNbrFormaAtendimento",fieldPath:"nomeNbrFormaAtendimento",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrFormaAtendimento",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeNbrFormaAtendimento",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function NbrFormaAtendimentoService_Factory(te){return new(te||NbrFormaAtendimentoService)};static#t=this.ɵprov=fe.jDH({token:NbrFormaAtendimentoService,factory:NbrFormaAtendimentoService.ɵfac,providedIn:"root"})}return NbrFormaAtendimentoService})(),qg=(()=>{class NbrFormaAtendimentoComponent{constructor(){this.nbrFormaAtendimentoService=(0,fe.WQX)($g)}header(){return"Formas de Atendimento"}icon(){return"fa-light fa-gear"}static#e=this.ɵfac=function NbrFormaAtendimentoComponent_Factory(te){return new(te||NbrFormaAtendimentoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrFormaAtendimentoComponent,selectors:[["br-list-nbr-forma-atendimento"]],standalone:!0,features:[fe.Jv_([$g]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrFormaAtendimentoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrFormaAtendimentoService)},dependencies:[Kn.K]})}return NbrFormaAtendimentoComponent})();var Yg=ie(407),Wg=ie(1646),Xg=ie(7825),Jg=ie(6253),Zg=ie(883),rf=ie(9935),sf=ie(5774);const primeng_tree_c0=te=>({"p-treenode-droppoint-active":te});function UITreeNode_ng_template_0_li_0_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"li",4),fe.bIt("drop",(function UITreeNode_ng_template_0_li_0_Template_li_drop_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropPoint(ne,-1))}))("dragover",(function UITreeNode_ng_template_0_li_0_Template_li_dragover_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropPointDragOver(ne))}))("dragenter",(function UITreeNode_ng_template_0_li_0_Template_li_dragenter_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropPointDragEnter(ne,-1))}))("dragleave",(function UITreeNode_ng_template_0_li_0_Template_li_dragleave_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropPointDragLeave(ne))})),fe.k0s()}if(2&te){const te=fe.XpG(2);fe.Y8G("ngClass",fe.eq3(2,primeng_tree_c0,te.draghoverPrev)),fe.BMQ("aria-hidden",!0)}}function UITreeNode_ng_template_0_li_1_ng_container_3_ng_container_1_ChevronRightIcon_1_Template(te,ne){1&te&&fe.nrm(0,"ChevronRightIcon",14),2&te&&fe.Y8G("styleClass","p-tree-toggler-icon")}function UITreeNode_ng_template_0_li_1_ng_container_3_ng_container_1_ChevronDownIcon_2_Template(te,ne){1&te&&fe.nrm(0,"ChevronDownIcon",14),2&te&&fe.Y8G("styleClass","p-tree-toggler-icon")}function UITreeNode_ng_template_0_li_1_ng_container_3_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,UITreeNode_ng_template_0_li_1_ng_container_3_ng_container_1_ChevronRightIcon_1_Template,1,1,"ChevronRightIcon",13)(2,UITreeNode_ng_template_0_li_1_ng_container_3_ng_container_1_ChevronDownIcon_2_Template,1,1,"ChevronDownIcon",13),fe.bVm()),2&te){const te=fe.XpG(4);fe.R7$(),fe.Y8G("ngIf",!te.node.expanded),fe.R7$(),fe.Y8G("ngIf",te.node.expanded)}}function UITreeNode_ng_template_0_li_1_ng_container_3_ng_container_2_Template(te,ne){1&te&&(fe.qex(0),fe.nrm(1,"SpinnerIcon",15),fe.bVm()),2&te&&(fe.R7$(),fe.Y8G("spin",!0)("styleClass","p-tree-node-toggler-icon"))}function UITreeNode_ng_template_0_li_1_ng_container_3_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,UITreeNode_ng_template_0_li_1_ng_container_3_ng_container_1_Template,3,2,"ng-container",8)(2,UITreeNode_ng_template_0_li_1_ng_container_3_ng_container_2_Template,2,2,"ng-container",8),fe.bVm()),2&te){const te=fe.XpG(3);fe.R7$(),fe.Y8G("ngIf",!te.node.loading),fe.R7$(),fe.Y8G("ngIf","icon"===te.loadingMode&&te.node.loading)}}function UITreeNode_ng_template_0_li_1_span_4_1_ng_template_0_Template(te,ne){}function UITreeNode_ng_template_0_li_1_span_4_1_Template(te,ne){1&te&&fe.DNE(0,UITreeNode_ng_template_0_li_1_span_4_1_ng_template_0_Template,0,0,"ng-template")}const primeng_tree_c1=te=>({$implicit:te});function UITreeNode_ng_template_0_li_1_span_4_Template(te,ne){if(1&te&&(fe.j41(0,"span",16),fe.DNE(1,UITreeNode_ng_template_0_li_1_span_4_1_Template,1,0,null,17),fe.k0s()),2&te){const te=fe.XpG(3);fe.R7$(),fe.Y8G("ngTemplateOutlet",te.tree.togglerIconTemplate)("ngTemplateOutletContext",fe.eq3(2,primeng_tree_c1,te.node.expanded))}}function UITreeNode_ng_template_0_li_1_div_5_ng_container_2_CheckIcon_1_Template(te,ne){1&te&&fe.nrm(0,"CheckIcon",14),2&te&&fe.Y8G("styleClass","p-checkbox-icon")}function UITreeNode_ng_template_0_li_1_div_5_ng_container_2_MinusIcon_2_Template(te,ne){1&te&&fe.nrm(0,"MinusIcon",14),2&te&&fe.Y8G("styleClass","p-checkbox-icon")}function UITreeNode_ng_template_0_li_1_div_5_ng_container_2_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,UITreeNode_ng_template_0_li_1_div_5_ng_container_2_CheckIcon_1_Template,1,1,"CheckIcon",13)(2,UITreeNode_ng_template_0_li_1_div_5_ng_container_2_MinusIcon_2_Template,1,1,"MinusIcon",13),fe.bVm()),2&te){const te=fe.XpG(4);fe.R7$(),fe.Y8G("ngIf",!te.node.partialSelected&&te.isSelected()),fe.R7$(),fe.Y8G("ngIf",te.node.partialSelected)}}function UITreeNode_ng_template_0_li_1_div_5_3_ng_template_0_Template(te,ne){}function UITreeNode_ng_template_0_li_1_div_5_3_Template(te,ne){1&te&&fe.DNE(0,UITreeNode_ng_template_0_li_1_div_5_3_ng_template_0_Template,0,0,"ng-template")}const primeng_tree_c2=(te,ne)=>({"p-checkbox-disabled p-disabled":te,"p-variant-filled":ne}),primeng_tree_c3=(te,ne)=>({"p-highlight":te,"p-indeterminate":ne}),primeng_tree_c4=(te,ne)=>({$implicit:te,partialSelected:ne});function UITreeNode_ng_template_0_li_1_div_5_Template(te,ne){if(1&te&&(fe.j41(0,"div",18)(1,"div",19),fe.DNE(2,UITreeNode_ng_template_0_li_1_div_5_ng_container_2_Template,3,2,"ng-container",8)(3,UITreeNode_ng_template_0_li_1_div_5_3_Template,1,0,null,17),fe.k0s()()),2&te){const te=fe.XpG(3);fe.Y8G("ngClass",fe.l_i(5,primeng_tree_c2,!1===te.node.selectable,"filled"===(null==te.tree?null:te.tree.config.inputStyle()))),fe.R7$(),fe.Y8G("ngClass",fe.l_i(8,primeng_tree_c3,te.isSelected(),te.node.partialSelected)),fe.R7$(),fe.Y8G("ngIf",!te.tree.checkboxIconTemplate),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.tree.checkboxIconTemplate)("ngTemplateOutletContext",fe.l_i(11,primeng_tree_c4,te.isSelected(),te.node.partialSelected))}}function UITreeNode_ng_template_0_li_1_span_6_Template(te,ne){if(1&te&&fe.nrm(0,"span"),2&te){const te=fe.XpG(3);fe.HbH(te.getIcon())}}function UITreeNode_ng_template_0_li_1_span_8_Template(te,ne){if(1&te&&(fe.j41(0,"span"),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(3);fe.R7$(),fe.JRh(te.node.label)}}function UITreeNode_ng_template_0_li_1_span_9_ng_container_1_Template(te,ne){1&te&&fe.eu8(0)}function UITreeNode_ng_template_0_li_1_span_9_Template(te,ne){if(1&te&&(fe.j41(0,"span"),fe.DNE(1,UITreeNode_ng_template_0_li_1_span_9_ng_container_1_Template,1,0,"ng-container",17),fe.k0s()),2&te){const te=fe.XpG(3);fe.R7$(),fe.Y8G("ngTemplateOutlet",te.tree.getTemplateForNode(te.node))("ngTemplateOutletContext",fe.eq3(2,primeng_tree_c1,te.node))}}function UITreeNode_ng_template_0_li_1_ul_10_p_treeNode_1_Template(te,ne){if(1&te&&fe.nrm(0,"p-treeNode",22),2&te){const te=ne.$implicit,ie=ne.first,re=ne.last,le=ne.index,ce=fe.XpG(4);fe.Y8G("node",te)("parentNode",ce.node)("firstChild",ie)("lastChild",re)("index",le)("itemSize",ce.itemSize)("level",ce.level+1)("loadingMode",ce.loadingMode)}}const primeng_tree_c5=te=>({display:te});function UITreeNode_ng_template_0_li_1_ul_10_Template(te,ne){if(1&te&&(fe.j41(0,"ul",20),fe.DNE(1,UITreeNode_ng_template_0_li_1_ul_10_p_treeNode_1_Template,1,8,"p-treeNode",21),fe.k0s()),2&te){const te=fe.XpG(3);fe.Y8G("ngStyle",fe.eq3(3,primeng_tree_c5,te.node.expanded?"block":"none")),fe.R7$(),fe.Y8G("ngForOf",te.node.children)("ngForTrackBy",te.tree.trackBy)}}const primeng_tree_c6=(te,ne)=>["p-treenode",te,ne],primeng_tree_c7=te=>({height:te}),primeng_tree_c8=te=>({"padding-left":te}),primeng_tree_c9=(te,ne,ie)=>({"p-treenode-selectable":te,"p-treenode-dragover":ne,"p-highlight":ie});function UITreeNode_ng_template_0_li_1_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"li",5),fe.bIt("keydown",(function UITreeNode_ng_template_0_li_1_Template_li_keydown_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onKeyDown(ne))})),fe.j41(1,"div",6),fe.bIt("click",(function UITreeNode_ng_template_0_li_1_Template_div_click_1_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onNodeClick(ne))}))("contextmenu",(function UITreeNode_ng_template_0_li_1_Template_div_contextmenu_1_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onNodeRightClick(ne))}))("touchend",(function UITreeNode_ng_template_0_li_1_Template_div_touchend_1_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.onNodeTouchEnd())}))("drop",(function UITreeNode_ng_template_0_li_1_Template_div_drop_1_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropNode(ne))}))("dragover",(function UITreeNode_ng_template_0_li_1_Template_div_dragover_1_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropNodeDragOver(ne))}))("dragenter",(function UITreeNode_ng_template_0_li_1_Template_div_dragenter_1_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropNodeDragEnter(ne))}))("dragleave",(function UITreeNode_ng_template_0_li_1_Template_div_dragleave_1_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropNodeDragLeave(ne))}))("dragstart",(function UITreeNode_ng_template_0_li_1_Template_div_dragstart_1_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDragStart(ne))}))("dragend",(function UITreeNode_ng_template_0_li_1_Template_div_dragend_1_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDragStop(ne))})),fe.j41(2,"button",7),fe.bIt("click",(function UITreeNode_ng_template_0_li_1_Template_button_click_2_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.toggle(ne))})),fe.DNE(3,UITreeNode_ng_template_0_li_1_ng_container_3_Template,3,2,"ng-container",8)(4,UITreeNode_ng_template_0_li_1_span_4_Template,2,4,"span",9),fe.k0s(),fe.DNE(5,UITreeNode_ng_template_0_li_1_div_5_Template,4,14,"div",10)(6,UITreeNode_ng_template_0_li_1_span_6_Template,1,2,"span",3),fe.j41(7,"span",11),fe.DNE(8,UITreeNode_ng_template_0_li_1_span_8_Template,2,1,"span",8)(9,UITreeNode_ng_template_0_li_1_span_9_Template,2,4,"span",8),fe.k0s()(),fe.DNE(10,UITreeNode_ng_template_0_li_1_ul_10_Template,2,5,"ul",12),fe.k0s()}if(2&te){const te=fe.XpG(2);fe.Aen(te.node.style),fe.Y8G("ngClass",fe.l_i(24,primeng_tree_c6,te.node.styleClass||"",te.isLeaf()?"p-treenode-leaf":""))("ngStyle",fe.eq3(27,primeng_tree_c7,te.itemSize+"px")),fe.BMQ("aria-label",te.node.label)("aria-checked",te.ariaChecked)("aria-setsize",te.node.children?te.node.children.length:0)("aria-selected",te.ariaSelected)("aria-expanded",te.node.expanded)("aria-posinset",te.index+1)("aria-level",te.level+1)("tabindex",0===te.index?0:-1)("data-id",te.node.key),fe.R7$(),fe.Y8G("ngStyle",fe.eq3(29,primeng_tree_c8,te.level*te.indentation+"rem"))("draggable",te.tree.draggableNodes)("ngClass",fe.sMw(31,primeng_tree_c9,te.tree.selectionMode&&!1!==te.node.selectable,te.draghoverNode,te.isSelected())),fe.R7$(),fe.BMQ("data-pc-section","toggler"),fe.R7$(),fe.Y8G("ngIf",!te.tree.togglerIconTemplate),fe.R7$(),fe.Y8G("ngIf",te.tree.togglerIconTemplate),fe.R7$(),fe.Y8G("ngIf","checkbox"==te.tree.selectionMode),fe.R7$(),fe.Y8G("ngIf",te.node.icon||te.node.expandedIcon||te.node.collapsedIcon),fe.R7$(2),fe.Y8G("ngIf",!te.tree.getTemplateForNode(te.node)),fe.R7$(),fe.Y8G("ngIf",te.tree.getTemplateForNode(te.node)),fe.R7$(),fe.Y8G("ngIf",!te.tree.virtualScroll&&te.node.children&&te.node.expanded)}}function UITreeNode_ng_template_0_li_2_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"li",4),fe.bIt("drop",(function UITreeNode_ng_template_0_li_2_Template_li_drop_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropPoint(ne,1))}))("dragover",(function UITreeNode_ng_template_0_li_2_Template_li_dragover_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropPointDragOver(ne))}))("dragenter",(function UITreeNode_ng_template_0_li_2_Template_li_dragenter_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropPointDragEnter(ne,1))}))("dragleave",(function UITreeNode_ng_template_0_li_2_Template_li_dragleave_0_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onDropPointDragLeave(ne))})),fe.k0s()}if(2&te){const te=fe.XpG(2);fe.Y8G("ngClass",fe.eq3(2,primeng_tree_c0,te.draghoverNext)),fe.BMQ("aria-hidden",!0)}}const _c10=te=>({"p-treenode-connector-line":te});function UITreeNode_ng_template_0_table_3_td_3_Template(te,ne){if(1&te&&(fe.j41(0,"td",28)(1,"table",29)(2,"tbody")(3,"tr"),fe.nrm(4,"td",30),fe.k0s(),fe.j41(5,"tr"),fe.nrm(6,"td",30),fe.k0s()()()()),2&te){const te=fe.XpG(3);fe.R7$(4),fe.Y8G("ngClass",fe.eq3(2,_c10,!te.firstChild)),fe.R7$(2),fe.Y8G("ngClass",fe.eq3(4,_c10,!te.lastChild))}}function UITreeNode_ng_template_0_table_3_span_6_ng_container_1_PlusIcon_1_Template(te,ne){if(1&te&&fe.nrm(0,"PlusIcon",33),2&te){const te=fe.XpG(5);fe.Y8G("styleClass","p-tree-toggler-icon")("ariaLabel",te.tree.togglerAriaLabel)}}function UITreeNode_ng_template_0_table_3_span_6_ng_container_1_MinusIcon_2_Template(te,ne){if(1&te&&fe.nrm(0,"MinusIcon",33),2&te){const te=fe.XpG(5);fe.Y8G("styleClass","p-tree-toggler-icon")("ariaLabel",te.tree.togglerAriaLabel)}}function UITreeNode_ng_template_0_table_3_span_6_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,UITreeNode_ng_template_0_table_3_span_6_ng_container_1_PlusIcon_1_Template,1,2,"PlusIcon",32)(2,UITreeNode_ng_template_0_table_3_span_6_ng_container_1_MinusIcon_2_Template,1,2,"MinusIcon",32),fe.bVm()),2&te){const te=fe.XpG(4);fe.R7$(),fe.Y8G("ngIf",!te.node.expanded),fe.R7$(),fe.Y8G("ngIf",te.node.expanded)}}function UITreeNode_ng_template_0_table_3_span_6_span_2_1_ng_template_0_Template(te,ne){}function UITreeNode_ng_template_0_table_3_span_6_span_2_1_Template(te,ne){1&te&&fe.DNE(0,UITreeNode_ng_template_0_table_3_span_6_span_2_1_ng_template_0_Template,0,0,"ng-template")}function UITreeNode_ng_template_0_table_3_span_6_span_2_Template(te,ne){if(1&te&&(fe.j41(0,"span",16),fe.DNE(1,UITreeNode_ng_template_0_table_3_span_6_span_2_1_Template,1,0,null,17),fe.k0s()),2&te){const te=fe.XpG(4);fe.R7$(),fe.Y8G("ngTemplateOutlet",te.tree.togglerIconTemplate)("ngTemplateOutletContext",fe.eq3(2,primeng_tree_c1,te.node.expanded))}}function UITreeNode_ng_template_0_table_3_span_6_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"span",31),fe.bIt("click",(function UITreeNode_ng_template_0_table_3_span_6_Template_span_click_0_listener(ne){fe.eBV(te);const ie=fe.XpG(3);return fe.Njj(ie.toggle(ne))})),fe.DNE(1,UITreeNode_ng_template_0_table_3_span_6_ng_container_1_Template,3,2,"ng-container",8)(2,UITreeNode_ng_template_0_table_3_span_6_span_2_Template,2,4,"span",9),fe.k0s()}if(2&te){const te=fe.XpG(3);fe.Y8G("ngClass","p-tree-toggler"),fe.R7$(),fe.Y8G("ngIf",!te.tree.togglerIconTemplate),fe.R7$(),fe.Y8G("ngIf",te.tree.togglerIconTemplate)}}function UITreeNode_ng_template_0_table_3_span_7_Template(te,ne){if(1&te&&fe.nrm(0,"span"),2&te){const te=fe.XpG(3);fe.HbH(te.getIcon())}}function UITreeNode_ng_template_0_table_3_span_9_Template(te,ne){if(1&te&&(fe.j41(0,"span"),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG(3);fe.R7$(),fe.JRh(te.node.label)}}function UITreeNode_ng_template_0_table_3_span_10_ng_container_1_Template(te,ne){1&te&&fe.eu8(0)}function UITreeNode_ng_template_0_table_3_span_10_Template(te,ne){if(1&te&&(fe.j41(0,"span"),fe.DNE(1,UITreeNode_ng_template_0_table_3_span_10_ng_container_1_Template,1,0,"ng-container",17),fe.k0s()),2&te){const te=fe.XpG(3);fe.R7$(),fe.Y8G("ngTemplateOutlet",te.tree.getTemplateForNode(te.node))("ngTemplateOutletContext",fe.eq3(2,primeng_tree_c1,te.node))}}function UITreeNode_ng_template_0_table_3_td_11_p_treeNode_2_Template(te,ne){if(1&te&&fe.nrm(0,"p-treeNode",37),2&te){const te=ne.$implicit,ie=ne.first,re=ne.last;fe.Y8G("node",te)("firstChild",ie)("lastChild",re)}}function UITreeNode_ng_template_0_table_3_td_11_Template(te,ne){if(1&te&&(fe.j41(0,"td",34)(1,"div",35),fe.DNE(2,UITreeNode_ng_template_0_table_3_td_11_p_treeNode_2_Template,1,3,"p-treeNode",36),fe.k0s()()),2&te){const te=fe.XpG(3);fe.Y8G("ngStyle",fe.eq3(3,primeng_tree_c5,te.node.expanded?"table-cell":"none")),fe.R7$(2),fe.Y8G("ngForOf",te.node.children)("ngForTrackBy",te.tree.trackBy)}}const _c11=te=>({"p-treenode-collapsed":te}),_c12=(te,ne)=>({"p-treenode-selectable":te,"p-highlight":ne});function UITreeNode_ng_template_0_table_3_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"table")(1,"tbody")(2,"tr"),fe.DNE(3,UITreeNode_ng_template_0_table_3_td_3_Template,7,6,"td",23),fe.j41(4,"td",24)(5,"div",25),fe.bIt("click",(function UITreeNode_ng_template_0_table_3_Template_div_click_5_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onNodeClick(ne))}))("contextmenu",(function UITreeNode_ng_template_0_table_3_Template_div_contextmenu_5_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onNodeRightClick(ne))}))("touchend",(function UITreeNode_ng_template_0_table_3_Template_div_touchend_5_listener(){fe.eBV(te);const ne=fe.XpG(2);return fe.Njj(ne.onNodeTouchEnd())}))("keydown",(function UITreeNode_ng_template_0_table_3_Template_div_keydown_5_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.onNodeKeydown(ne))})),fe.DNE(6,UITreeNode_ng_template_0_table_3_span_6_Template,3,3,"span",26)(7,UITreeNode_ng_template_0_table_3_span_7_Template,1,2,"span",3),fe.j41(8,"span",11),fe.DNE(9,UITreeNode_ng_template_0_table_3_span_9_Template,2,1,"span",8)(10,UITreeNode_ng_template_0_table_3_span_10_Template,2,4,"span",8),fe.k0s()()(),fe.DNE(11,UITreeNode_ng_template_0_table_3_td_11_Template,3,5,"td",27),fe.k0s()()()}if(2&te){const te=fe.XpG(2);fe.HbH(te.node.styleClass),fe.R7$(3),fe.Y8G("ngIf",!te.root),fe.R7$(),fe.Y8G("ngClass",fe.eq3(10,_c11,!te.node.expanded)),fe.R7$(),fe.Y8G("ngClass",fe.l_i(12,_c12,te.tree.selectionMode,te.isSelected())),fe.R7$(),fe.Y8G("ngIf",!te.isLeaf()),fe.R7$(),fe.Y8G("ngIf",te.node.icon||te.node.expandedIcon||te.node.collapsedIcon),fe.R7$(2),fe.Y8G("ngIf",!te.tree.getTemplateForNode(te.node)),fe.R7$(),fe.Y8G("ngIf",te.tree.getTemplateForNode(te.node)),fe.R7$(),fe.Y8G("ngIf",te.node.children&&te.node.expanded)}}function UITreeNode_ng_template_0_Template(te,ne){if(1&te&&fe.DNE(0,UITreeNode_ng_template_0_li_0_Template,1,4,"li",1)(1,UITreeNode_ng_template_0_li_1_Template,11,35,"li",2)(2,UITreeNode_ng_template_0_li_2_Template,1,4,"li",1)(3,UITreeNode_ng_template_0_table_3_Template,12,15,"table",3),2&te){const te=fe.XpG();fe.Y8G("ngIf",te.tree.droppableNodes),fe.R7$(),fe.Y8G("ngIf",!te.tree.horizontal),fe.R7$(),fe.Y8G("ngIf",te.tree.droppableNodes&&te.lastChild),fe.R7$(),fe.Y8G("ngIf",te.tree.horizontal)}}const uf=["filter"],mf=["scroller"],_f=["wrapper"];function Tree_div_0_div_1_i_1_Template(te,ne){if(1&te&&fe.nrm(0,"i"),2&te){const te=fe.XpG(3);fe.HbH("p-tree-loading-icon pi-spin "+te.loadingIcon)}}function Tree_div_0_div_1_ng_container_2_SpinnerIcon_1_Template(te,ne){1&te&&fe.nrm(0,"SpinnerIcon",12),2&te&&fe.Y8G("spin",!0)("styleClass","p-tree-loading-icon")}function Tree_div_0_div_1_ng_container_2_span_2_1_ng_template_0_Template(te,ne){}function Tree_div_0_div_1_ng_container_2_span_2_1_Template(te,ne){1&te&&fe.DNE(0,Tree_div_0_div_1_ng_container_2_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Tree_div_0_div_1_ng_container_2_span_2_Template(te,ne){if(1&te&&(fe.j41(0,"span",13),fe.DNE(1,Tree_div_0_div_1_ng_container_2_span_2_1_Template,1,0,null,4),fe.k0s()),2&te){const te=fe.XpG(4);fe.R7$(),fe.Y8G("ngTemplateOutlet",te.loadingIconTemplate)}}function Tree_div_0_div_1_ng_container_2_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Tree_div_0_div_1_ng_container_2_SpinnerIcon_1_Template,1,2,"SpinnerIcon",10)(2,Tree_div_0_div_1_ng_container_2_span_2_Template,2,1,"span",11),fe.bVm()),2&te){const te=fe.XpG(3);fe.R7$(),fe.Y8G("ngIf",!te.loadingIconTemplate),fe.R7$(),fe.Y8G("ngIf",te.loadingIconTemplate)}}function Tree_div_0_div_1_Template(te,ne){if(1&te&&(fe.j41(0,"div",8),fe.DNE(1,Tree_div_0_div_1_i_1_Template,1,2,"i",9)(2,Tree_div_0_div_1_ng_container_2_Template,3,2,"ng-container",6),fe.k0s()),2&te){const te=fe.XpG(2);fe.R7$(),fe.Y8G("ngIf",te.loadingIcon),fe.R7$(),fe.Y8G("ngIf",!te.loadingIcon)}}function Tree_div_0_ng_container_2_Template(te,ne){1&te&&fe.eu8(0)}function Tree_div_0_div_3_SearchIcon_3_Template(te,ne){1&te&&fe.nrm(0,"SearchIcon",19),2&te&&fe.Y8G("styleClass","p-tree-filter-icon")}function Tree_div_0_div_3_span_4_1_ng_template_0_Template(te,ne){}function Tree_div_0_div_3_span_4_1_Template(te,ne){1&te&&fe.DNE(0,Tree_div_0_div_3_span_4_1_ng_template_0_Template,0,0,"ng-template")}function Tree_div_0_div_3_span_4_Template(te,ne){if(1&te&&(fe.j41(0,"span",20),fe.DNE(1,Tree_div_0_div_3_span_4_1_Template,1,0,null,4),fe.k0s()),2&te){const te=fe.XpG(3);fe.R7$(),fe.Y8G("ngTemplateOutlet",te.filterIconTemplate)}}function Tree_div_0_div_3_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",14)(1,"input",15,16),fe.bIt("keydown.enter",(function Tree_div_0_div_3_Template_input_keydown_enter_1_listener(te){return te.preventDefault()}))("input",(function Tree_div_0_div_3_Template_input_input_1_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie._filter(ne.target.value))})),fe.k0s(),fe.DNE(3,Tree_div_0_div_3_SearchIcon_3_Template,1,1,"SearchIcon",17)(4,Tree_div_0_div_3_span_4_Template,2,1,"span",18),fe.k0s()}if(2&te){const te=fe.XpG(2);fe.R7$(),fe.BMQ("placeholder",te.filterPlaceholder),fe.R7$(2),fe.Y8G("ngIf",!te.filterIconTemplate),fe.R7$(),fe.Y8G("ngIf",te.filterIconTemplate)}}function Tree_div_0_ng_container_4_p_scroller_1_ng_template_2_ul_0_p_treeNode_1_Template(te,ne){if(1&te&&fe.nrm(0,"p-treeNode",28,29),2&te){const te=ne.$implicit,ie=ne.first,re=ne.last,le=ne.index,ce=fe.XpG(2).options,de=fe.XpG(4);fe.Y8G("level",te.level)("rowNode",te)("node",te.node)("parentNode",te.parent)("firstChild",ie)("lastChild",re)("index",de.getIndex(ce,le))("itemSize",ce.itemSize)("indentation",de.indentation)("loadingMode",de.loadingMode)}}function Tree_div_0_ng_container_4_p_scroller_1_ng_template_2_ul_0_Template(te,ne){if(1&te&&(fe.j41(0,"ul",26),fe.DNE(1,Tree_div_0_ng_container_4_p_scroller_1_ng_template_2_ul_0_p_treeNode_1_Template,2,10,"p-treeNode",27),fe.k0s()),2&te){const te=fe.XpG(),ne=te.options,ie=te.$implicit,re=fe.XpG(4);fe.Aen(ne.contentStyle),fe.Y8G("ngClass",ne.contentStyleClass),fe.BMQ("aria-label",re.ariaLabel)("aria-labelledby",re.ariaLabelledBy),fe.R7$(),fe.Y8G("ngForOf",ie)("ngForTrackBy",re.trackBy)}}function Tree_div_0_ng_container_4_p_scroller_1_ng_template_2_Template(te,ne){if(1&te&&fe.DNE(0,Tree_div_0_ng_container_4_p_scroller_1_ng_template_2_ul_0_Template,2,7,"ul",25),2&te){const te=ne.$implicit;fe.Y8G("ngIf",te)}}function Tree_div_0_ng_container_4_p_scroller_1_ng_container_3_ng_template_1_ng_container_0_Template(te,ne){1&te&&fe.eu8(0)}const _c16=te=>({options:te});function Tree_div_0_ng_container_4_p_scroller_1_ng_container_3_ng_template_1_Template(te,ne){if(1&te&&fe.DNE(0,Tree_div_0_ng_container_4_p_scroller_1_ng_container_3_ng_template_1_ng_container_0_Template,1,0,"ng-container",31),2&te){const te=ne.options,ie=fe.XpG(5);fe.Y8G("ngTemplateOutlet",ie.loaderTemplate)("ngTemplateOutletContext",fe.eq3(2,_c16,te))}}function Tree_div_0_ng_container_4_p_scroller_1_ng_container_3_Template(te,ne){1&te&&(fe.qex(0),fe.DNE(1,Tree_div_0_ng_container_4_p_scroller_1_ng_container_3_ng_template_1_Template,1,4,"ng-template",30),fe.bVm())}function Tree_div_0_ng_container_4_p_scroller_1_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"p-scroller",22,23),fe.bIt("onScroll",(function Tree_div_0_ng_container_4_p_scroller_1_Template_p_scroller_onScroll_0_listener(ne){fe.eBV(te);const ie=fe.XpG(3);return fe.Njj(ie.onScroll.emit(ne))}))("onScrollIndexChange",(function Tree_div_0_ng_container_4_p_scroller_1_Template_p_scroller_onScrollIndexChange_0_listener(ne){fe.eBV(te);const ie=fe.XpG(3);return fe.Njj(ie.onScrollIndexChange.emit(ne))}))("onLazyLoad",(function Tree_div_0_ng_container_4_p_scroller_1_Template_p_scroller_onLazyLoad_0_listener(ne){fe.eBV(te);const ie=fe.XpG(3);return fe.Njj(ie.onLazyLoad.emit(ne))})),fe.DNE(2,Tree_div_0_ng_container_4_p_scroller_1_ng_template_2_Template,1,1,"ng-template",24)(3,Tree_div_0_ng_container_4_p_scroller_1_ng_container_3_Template,2,0,"ng-container",6),fe.k0s()}if(2&te){const te=fe.XpG(3);fe.Aen(fe.eq3(9,primeng_tree_c7,"flex"!==te.scrollHeight?te.scrollHeight:void 0)),fe.Y8G("items",te.serializedValue)("tabindex",-1)("scrollHeight","flex"!==te.scrollHeight?void 0:"100%")("itemSize",te.virtualScrollItemSize||te._virtualNodeHeight)("lazy",te.lazy)("options",te.virtualScrollOptions),fe.R7$(3),fe.Y8G("ngIf",te.loaderTemplate)}}function Tree_div_0_ng_container_4_ng_container_2_ul_3_p_treeNode_1_Template(te,ne){if(1&te&&fe.nrm(0,"p-treeNode",37),2&te){const te=ne.$implicit,ie=ne.first,re=ne.last,le=ne.index,ce=fe.XpG(5);fe.Y8G("node",te)("firstChild",ie)("lastChild",re)("index",le)("level",0)("loadingMode",ce.loadingMode)}}function Tree_div_0_ng_container_4_ng_container_2_ul_3_Template(te,ne){if(1&te&&(fe.j41(0,"ul",35),fe.DNE(1,Tree_div_0_ng_container_4_ng_container_2_ul_3_p_treeNode_1_Template,1,6,"p-treeNode",36),fe.k0s()),2&te){const te=fe.XpG(4);fe.BMQ("aria-label",te.ariaLabel)("aria-labelledby",te.ariaLabelledBy),fe.R7$(),fe.Y8G("ngForOf",te.getRootNode())("ngForTrackBy",te.trackBy)}}const _c17=te=>({"max-height":te});function Tree_div_0_ng_container_4_ng_container_2_Template(te,ne){if(1&te&&(fe.qex(0),fe.j41(1,"div",32,33),fe.DNE(3,Tree_div_0_ng_container_4_ng_container_2_ul_3_Template,2,4,"ul",34),fe.k0s(),fe.bVm()),2&te){const te=fe.XpG(3);fe.R7$(),fe.Y8G("ngStyle",fe.eq3(2,_c17,te.scrollHeight)),fe.R7$(2),fe.Y8G("ngIf",te.getRootNode())}}function Tree_div_0_ng_container_4_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Tree_div_0_ng_container_4_p_scroller_1_Template,4,11,"p-scroller",21)(2,Tree_div_0_ng_container_4_ng_container_2_Template,4,4,"ng-container",6),fe.bVm()),2&te){const te=fe.XpG(2);fe.R7$(),fe.Y8G("ngIf",te.virtualScroll),fe.R7$(),fe.Y8G("ngIf",!te.virtualScroll)}}function Tree_div_0_div_5_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.EFF(1),fe.bVm()),2&te){const te=fe.XpG(3);fe.R7$(),fe.SpI(" ",te.emptyMessageLabel," ")}}function Tree_div_0_div_5_ng_container_2_Template(te,ne){1&te&&fe.eu8(0,null,40)}function Tree_div_0_div_5_Template(te,ne){if(1&te&&(fe.j41(0,"div",38),fe.DNE(1,Tree_div_0_div_5_ng_container_1_Template,2,1,"ng-container",39)(2,Tree_div_0_div_5_ng_container_2_Template,2,0,"ng-container",4),fe.k0s()),2&te){const te=fe.XpG(2);fe.R7$(),fe.Y8G("ngIf",!te.emptyMessageTemplate)("ngIfElse",te.emptyFilter),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.emptyMessageTemplate)}}function Tree_div_0_ng_container_6_Template(te,ne){1&te&&fe.eu8(0)}const _c18=(te,ne,ie,re)=>({"p-tree p-component":!0,"p-tree-selectable":te,"p-treenode-dragover":ne,"p-tree-loading":ie,"p-tree-flex-scrollable":re});function Tree_div_0_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",2),fe.bIt("drop",(function Tree_div_0_Template_div_drop_0_listener(ne){fe.eBV(te);const ie=fe.XpG();return fe.Njj(ie.onDrop(ne))}))("dragover",(function Tree_div_0_Template_div_dragover_0_listener(ne){fe.eBV(te);const ie=fe.XpG();return fe.Njj(ie.onDragOver(ne))}))("dragenter",(function Tree_div_0_Template_div_dragenter_0_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.onDragEnter())}))("dragleave",(function Tree_div_0_Template_div_dragleave_0_listener(ne){fe.eBV(te);const ie=fe.XpG();return fe.Njj(ie.onDragLeave(ne))})),fe.DNE(1,Tree_div_0_div_1_Template,3,2,"div",3)(2,Tree_div_0_ng_container_2_Template,1,0,"ng-container",4)(3,Tree_div_0_div_3_Template,5,3,"div",5)(4,Tree_div_0_ng_container_4_Template,3,2,"ng-container",6)(5,Tree_div_0_div_5_Template,3,3,"div",7)(6,Tree_div_0_ng_container_6_Template,1,0,"ng-container",4),fe.k0s()}if(2&te){const te=fe.XpG();let ne;fe.HbH(te.styleClass),fe.Y8G("ngClass",fe.ziG(10,_c18,te.selectionMode,te.dragHover,te.loading,"flex"===te.scrollHeight))("ngStyle",te.style),fe.R7$(),fe.Y8G("ngIf",te.loading&&"mask"===te.loadingMode),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.headerTemplate),fe.R7$(),fe.Y8G("ngIf",te.filter),fe.R7$(),fe.Y8G("ngIf",null==(ne=te.getRootNode())?null:ne.length),fe.R7$(),fe.Y8G("ngIf",!te.loading&&(null==te.getRootNode()||0===te.getRootNode().length)),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.footerTemplate)}}function Tree_div_1_ng_container_1_Template(te,ne){1&te&&fe.eu8(0)}function Tree_div_1_div_2_i_1_Template(te,ne){if(1&te&&fe.nrm(0,"i"),2&te){const te=fe.XpG(3);fe.HbH("p-tree-loading-icon pi-spin "+te.loadingIcon)}}function Tree_div_1_div_2_ng_container_2_SpinnerIcon_1_Template(te,ne){1&te&&fe.nrm(0,"SpinnerIcon",12),2&te&&fe.Y8G("spin",!0)("styleClass","p-tree-loading-icon")}function Tree_div_1_div_2_ng_container_2_span_2_1_ng_template_0_Template(te,ne){}function Tree_div_1_div_2_ng_container_2_span_2_1_Template(te,ne){1&te&&fe.DNE(0,Tree_div_1_div_2_ng_container_2_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Tree_div_1_div_2_ng_container_2_span_2_Template(te,ne){if(1&te&&(fe.j41(0,"span",13),fe.DNE(1,Tree_div_1_div_2_ng_container_2_span_2_1_Template,1,0,null,4),fe.k0s()),2&te){const te=fe.XpG(4);fe.R7$(),fe.Y8G("ngTemplateOutlet",te.loadingIconTemplate)}}function Tree_div_1_div_2_ng_container_2_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,Tree_div_1_div_2_ng_container_2_SpinnerIcon_1_Template,1,2,"SpinnerIcon",10)(2,Tree_div_1_div_2_ng_container_2_span_2_Template,2,1,"span",11),fe.bVm()),2&te){const te=fe.XpG(3);fe.R7$(),fe.Y8G("ngIf",!te.loadingIconTemplate),fe.R7$(),fe.Y8G("ngIf",te.loadingIconTemplate)}}function Tree_div_1_div_2_Template(te,ne){if(1&te&&(fe.j41(0,"div",43),fe.DNE(1,Tree_div_1_div_2_i_1_Template,1,2,"i",9)(2,Tree_div_1_div_2_ng_container_2_Template,3,2,"ng-container",6),fe.k0s()),2&te){const te=fe.XpG(2);fe.R7$(),fe.Y8G("ngIf",te.loadingIcon),fe.R7$(),fe.Y8G("ngIf",!te.loadingIcon)}}function Tree_div_1_table_3_Template(te,ne){if(1&te&&(fe.j41(0,"table"),fe.nrm(1,"p-treeNode",44),fe.k0s()),2&te){const te=fe.XpG(2);fe.R7$(),fe.Y8G("node",te.value[0])("root",!0)}}function Tree_div_1_div_4_ng_container_1_Template(te,ne){if(1&te&&(fe.qex(0),fe.EFF(1),fe.bVm()),2&te){const te=fe.XpG(3);fe.R7$(),fe.SpI(" ",te.emptyMessageLabel," ")}}function Tree_div_1_div_4_ng_container_2_Template(te,ne){1&te&&fe.eu8(0,null,40)}function Tree_div_1_div_4_Template(te,ne){if(1&te&&(fe.j41(0,"div",38),fe.DNE(1,Tree_div_1_div_4_ng_container_1_Template,2,1,"ng-container",39)(2,Tree_div_1_div_4_ng_container_2_Template,2,0,"ng-container",4),fe.k0s()),2&te){const te=fe.XpG(2);fe.R7$(),fe.Y8G("ngIf",!te.emptyMessageTemplate)("ngIfElse",te.emptyFilter),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.emptyMessageTemplate)}}function Tree_div_1_ng_container_5_Template(te,ne){1&te&&fe.eu8(0)}const _c19=te=>({"p-tree p-tree-horizontal p-component":!0,"p-tree-selectable":te});function Tree_div_1_Template(te,ne){if(1&te&&(fe.j41(0,"div",41),fe.DNE(1,Tree_div_1_ng_container_1_Template,1,0,"ng-container",4)(2,Tree_div_1_div_2_Template,3,2,"div",42)(3,Tree_div_1_table_3_Template,2,2,"table",6)(4,Tree_div_1_div_4_Template,3,3,"div",7)(5,Tree_div_1_ng_container_5_Template,1,0,"ng-container",4),fe.k0s()),2&te){const te=fe.XpG();fe.HbH(te.styleClass),fe.Y8G("ngClass",fe.eq3(9,_c19,te.selectionMode))("ngStyle",te.style),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.headerTemplate),fe.R7$(),fe.Y8G("ngIf",te.loading),fe.R7$(),fe.Y8G("ngIf",te.value&&te.value[0]),fe.R7$(),fe.Y8G("ngIf",!te.loading&&(null==te.getRootNode()||0===te.getRootNode().length)),fe.R7$(),fe.Y8G("ngTemplateOutlet",te.footerTemplate)}}let Cf=(()=>{class UITreeNode{static ICON_CLASS="p-treenode-icon ";rowNode;node;parentNode;root;index;firstChild;lastChild;level;indentation;itemSize;loadingMode;tree;timeout;draghoverPrev;draghoverNext;draghoverNode;get ariaSelected(){return"single"===this.tree.selectionMode||"multiple"===this.tree.selectionMode?this.isSelected():void 0}get ariaChecked(){return"checkbox"===this.tree.selectionMode?this.isSelected():void 0}constructor(te){this.tree=te}ngOnInit(){this.node.parent=this.parentNode;const te=this.tree.el.nativeElement.closest("p-dialog");this.parentNode&&!te&&(this.setAllNodesTabIndexes(),this.tree.syncNodeOption(this.node,this.tree.value,"parent",this.tree.getNodeWithKey(this.parentNode.key,this.tree.value)))}getIcon(){let te;return te=this.node.icon?this.node.icon:this.node.expanded&&this.node.children&&this.node.children?.length?this.node.expandedIcon:this.node.collapsedIcon,UITreeNode.ICON_CLASS+" "+te}isLeaf(){return this.tree.isNodeLeaf(this.node)}toggle(te){this.node.expanded?this.collapse(te):this.expand(te),te.stopPropagation()}expand(te){this.node.expanded=!0,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeExpand.emit({originalEvent:te,node:this.node})}collapse(te){this.node.expanded=!1,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeCollapse.emit({originalEvent:te,node:this.node})}onNodeClick(te){this.tree.onNodeClick(te,this.node)}onNodeKeydown(te){"Enter"===te.key&&this.tree.onNodeClick(te,this.node)}onNodeTouchEnd(){this.tree.onNodeTouchEnd()}onNodeRightClick(te){this.tree.onNodeRightClick(te,this.node)}isSelected(){return this.tree.isSelected(this.node)}isSameNode(te){return te.currentTarget&&(te.currentTarget.isSameNode(te.target)||te.currentTarget.isSameNode(te.target.closest('[role="treeitem"]')))}onDropPoint(te,ne){te.preventDefault();let ie=this.tree.dragNode,re=this.tree.dragNodeIndex,le=this.tree.dragNodeScope,ce=this.tree.dragNodeTree!==this.tree||(1===ne||re!==this.index-1);if(this.tree.allowDrop(ie,this.node,le)&&ce){let re={...this.createDropPointEventMetadata(ne)};this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:te,dragNode:ie,dropNode:this.node,index:this.index,accept:()=>{this.processPointDrop(re)}}):(this.processPointDrop(re),this.tree.onNodeDrop.emit({originalEvent:te,dragNode:ie,dropNode:this.node,index:this.index}))}this.draghoverPrev=!1,this.draghoverNext=!1}processPointDrop(te){let ne=te.dropNode.parent?te.dropNode.parent.children:this.tree.value;te.dragNodeSubNodes.splice(te.dragNodeIndex,1);let ie=this.index;te.position<0?(ie=te.dragNodeSubNodes===ne?te.dragNodeIndex>te.index?te.index:te.index-1:te.index,ne.splice(ie,0,te.dragNode)):(ie=ne.length,ne.push(te.dragNode)),this.tree.dragDropService.stopDrag({node:te.dragNode,subNodes:te.dropNode.parent?te.dropNode.parent.children:this.tree.value,index:te.dragNodeIndex})}createDropPointEventMetadata(te){return{dragNode:this.tree.dragNode,dragNodeIndex:this.tree.dragNodeIndex,dragNodeSubNodes:this.tree.dragNodeSubNodes,dropNode:this.node,index:this.index,position:te}}onDropPointDragOver(te){te.dataTransfer.dropEffect="move",te.preventDefault()}onDropPointDragEnter(te,ne){this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)&&(ne<0?this.draghoverPrev=!0:this.draghoverNext=!0)}onDropPointDragLeave(te){this.draghoverPrev=!1,this.draghoverNext=!1}onDragStart(te){this.tree.draggableNodes&&!1!==this.node.draggable?(te.dataTransfer.setData("text","data"),this.tree.dragDropService.startDrag({tree:this,node:this.node,subNodes:this.node?.parent?this.node.parent.children:this.tree.value,index:this.index,scope:this.tree.draggableScope})):te.preventDefault()}onDragStop(te){this.tree.dragDropService.stopDrag({node:this.node,subNodes:this.node?.parent?this.node.parent.children:this.tree.value,index:this.index})}onDropNodeDragOver(te){te.dataTransfer.dropEffect="move",this.tree.droppableNodes&&(te.preventDefault(),te.stopPropagation())}onDropNode(te){if(this.tree.droppableNodes&&!1!==this.node?.droppable){let ne=this.tree.dragNode;if(this.tree.allowDrop(ne,this.node,this.tree.dragNodeScope)){let ie={...this.createDropNodeEventMetadata()};this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:te,dragNode:ne,dropNode:this.node,index:this.index,accept:()=>{this.processNodeDrop(ie)}}):(this.processNodeDrop(ie),this.tree.onNodeDrop.emit({originalEvent:te,dragNode:ne,dropNode:this.node,index:this.index}))}}te.preventDefault(),te.stopPropagation(),this.draghoverNode=!1}createDropNodeEventMetadata(){return{dragNode:this.tree.dragNode,dragNodeIndex:this.tree.dragNodeIndex,dragNodeSubNodes:this.tree.dragNodeSubNodes,dropNode:this.node}}processNodeDrop(te){let ne=te.dragNodeIndex;te.dragNodeSubNodes.splice(ne,1),te.dropNode.children?te.dropNode.children.push(te.dragNode):te.dropNode.children=[te.dragNode],this.tree.dragDropService.stopDrag({node:te.dragNode,subNodes:te.dropNode.parent?te.dropNode.parent.children:this.tree.value,index:ne})}onDropNodeDragEnter(te){this.tree.droppableNodes&&!1!==this.node?.droppable&&this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)&&(this.draghoverNode=!0)}onDropNodeDragLeave(te){if(this.tree.droppableNodes){let ne=te.currentTarget.getBoundingClientRect();(te.x>ne.left+ne.width||te.x<ne.left||te.y>=Math.floor(ne.top+ne.height)||te.y<ne.top)&&(this.draghoverNode=!1)}}onKeyDown(te){if(this.isSameNode(te)&&(!this.tree.contextMenu||"block"!==this.tree.contextMenu.containerViewChild?.nativeElement.style.display))switch(te.code){case"ArrowDown":this.onArrowDown(te);break;case"ArrowUp":this.onArrowUp(te);break;case"ArrowRight":this.onArrowRight(te);break;case"ArrowLeft":this.onArrowLeft(te);break;case"Enter":case"NumpadEnter":this.onEnter(te);break;case"Space":const ne=te.target instanceof HTMLElement&&te.target.nodeName;["INPUT"].includes(ne)||this.onEnter(te);break;case"Tab":this.setAllNodesTabIndexes()}}onArrowUp(te){const ne="toggler"===te.target.getAttribute("data-pc-section")?te.target.closest('[role="treeitem"]'):te.target.parentElement;if(ne.previousElementSibling)this.focusRowChange(ne,ne.previousElementSibling,this.findLastVisibleDescendant(ne.previousElementSibling));else{let te=this.getParentNodeElement(ne);te&&this.focusRowChange(ne,te)}te.preventDefault()}onArrowDown(te){const ne="toggler"===te.target.getAttribute("data-pc-section")?te.target.closest('[role="treeitem"]'):te.target,ie=ne.children[1];if(ie&&ie.children.length>0)this.focusRowChange(ne,ie.children[0]);else if(ne.parentElement.nextElementSibling)this.focusRowChange(ne,ne.parentElement.nextElementSibling);else{let te=this.findNextSiblingOfAncestor(ne.parentElement);te&&this.focusRowChange(ne,te)}te.preventDefault()}onArrowRight(te){this.node?.expanded||this.tree.isNodeLeaf(this.node)||(this.expand(te),te.currentTarget.tabIndex=-1,setTimeout((()=>{this.onArrowDown(te)}),1)),te.preventDefault()}onArrowLeft(te){const ne="toggler"===te.target.getAttribute("data-pc-section")?te.target.closest('[role="treeitem"]'):te.target;if(0===this.level&&!this.node?.expanded)return!1;if(this.node?.expanded)return void this.collapse(te);let ie=this.getParentNodeElement(ne.parentElement);ie&&this.focusRowChange(te.currentTarget,ie),te.preventDefault()}isActionableElement(te){const ne=te.target;return ne instanceof HTMLElement&&("A"==ne.nodeName||"BUTTON"==ne.nodeName)}onEnter(te){this.tree.onNodeClick(te,this.node),this.setTabIndexForSelectionMode(te,this.tree.nodeTouched),this.isActionableElement(te)||te.preventDefault()}setAllNodesTabIndexes(){const te=le.D.find(this.tree.el.nativeElement,".p-treenode"),ne=[...te].some((te=>"true"===te.getAttribute("aria-selected")||"true"===te.getAttribute("aria-checked")));if([...te].forEach((te=>{te.tabIndex=-1})),ne){[...te].filter((te=>"true"===te.getAttribute("aria-selected")||"true"===te.getAttribute("aria-checked")))[0].tabIndex=0}else[...te][0].tabIndex=0}setTabIndexForSelectionMode(te,ne){if(null!==this.tree.selectionMode){const ie=[...le.D.find(this.tree.el.nativeElement,".p-treenode")];te.currentTarget.tabIndex=!1===ne?-1:0,ie.every((te=>-1===te.tabIndex))&&(ie[0].tabIndex=0)}}findNextSiblingOfAncestor(te){let ne=this.getParentNodeElement(te);return ne?ne.nextElementSibling?ne.nextElementSibling:this.findNextSiblingOfAncestor(ne):null}findLastVisibleDescendant(te){const ne=Array.from(te.children).find((te=>le.D.hasClass(te,"p-treenode"))).children[1];if(ne&&ne.children.length>0){const te=ne.children[ne.children.length-1];return this.findLastVisibleDescendant(te)}return te}getParentNodeElement(te){const ne=te.parentElement?.parentElement?.parentElement;return"P-TREENODE"===ne?.tagName?ne:null}focusNode(te){this.tree.droppableNodes?te.children[1].focus():te.children[0].focus()}focusRowChange(te,ne,ie){te.tabIndex="-1",ne.children[0].tabIndex="0",this.focusNode(ie||ne)}focusVirtualNode(){this.timeout=setTimeout((()=>{let te=le.D.findSingle(document.body,`[data-id="${this.node?.key??this.node?.data}"]`);le.D.focus(te)}),1)}static ɵfac=function UITreeNode_Factory(te){return new(te||UITreeNode)(fe.rXU((0,fe.Rfq)((()=>vf))))};static ɵcmp=fe.VBU({type:UITreeNode,selectors:[["p-treeNode"]],hostAttrs:[1,"p-element"],inputs:{rowNode:"rowNode",node:"node",parentNode:"parentNode",root:[fe.Mj6.HasDecoratorInputTransform,"root","root",fe.L39],index:[fe.Mj6.HasDecoratorInputTransform,"index","index",fe.Udg],firstChild:[fe.Mj6.HasDecoratorInputTransform,"firstChild","firstChild",fe.L39],lastChild:[fe.Mj6.HasDecoratorInputTransform,"lastChild","lastChild",fe.L39],level:[fe.Mj6.HasDecoratorInputTransform,"level","level",fe.Udg],indentation:[fe.Mj6.HasDecoratorInputTransform,"indentation","indentation",fe.Udg],itemSize:[fe.Mj6.HasDecoratorInputTransform,"itemSize","itemSize",fe.Udg],loadingMode:"loadingMode"},features:[fe.GFd],decls:1,vars:1,consts:[[3,"ngIf"],["class","p-treenode-droppoint",3,"ngClass","drop","dragover","dragenter","dragleave",4,"ngIf"],["role","treeitem",3,"ngClass","ngStyle","style","keydown",4,"ngIf"],[3,"class",4,"ngIf"],[1,"p-treenode-droppoint",3,"ngClass","drop","dragover","dragenter","dragleave"],["role","treeitem",3,"ngClass","ngStyle","keydown"],[1,"p-treenode-content",3,"ngStyle","draggable","ngClass","click","contextmenu","touchend","drop","dragover","dragenter","dragleave","dragstart","dragend"],["type","button","pRipple","","tabindex","-1",1,"p-tree-toggler","p-link",3,"click"],[4,"ngIf"],["class","p-tree-toggler-icon",4,"ngIf"],["class","p-checkbox p-component","aria-hidden","true",3,"ngClass",4,"ngIf"],[1,"p-treenode-label"],["class","p-treenode-children","role","group",3,"ngStyle",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[3,"spin","styleClass"],[1,"p-tree-toggler-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"p-checkbox","p-component",3,"ngClass"],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],["role","group",1,"p-treenode-children",3,"ngStyle"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode"],["class","p-treenode-connector",4,"ngIf"],[1,"p-treenode",3,"ngClass"],["tabindex","0",1,"p-treenode-content",3,"ngClass","click","contextmenu","touchend","keydown"],[3,"ngClass","click",4,"ngIf"],["class","p-treenode-children-container",3,"ngStyle",4,"ngIf"],[1,"p-treenode-connector"],[1,"p-treenode-connector-table"],[3,"ngClass"],[3,"ngClass","click"],[3,"styleClass","ariaLabel",4,"ngIf"],[3,"styleClass","ariaLabel"],[1,"p-treenode-children-container",3,"ngStyle"],[1,"p-treenode-children"],[3,"node","firstChild","lastChild",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","firstChild","lastChild"]],template:function UITreeNode_Template(te,ne){1&te&&fe.DNE(0,UITreeNode_ng_template_0_Template,4,4,"ng-template",0),2&te&&fe.Y8G("ngIf",ne.node)},dependencies:()=>[de.YU,de.Sq,de.bT,de.T3,de.B3,Wg.n,Xg.S,ts.D,_o.v,Jg.Q,sf.N,Zg.c,UITreeNode],encapsulation:2})}return UITreeNode})(),vf=(()=>{class Tree{el;dragDropService;config;cd;value;selectionMode;loadingMode="mask";selection;style;styleClass;contextMenu;layout="vertical";draggableScope;droppableScope;draggableNodes;droppableNodes;metaKeySelection=!1;propagateSelectionUp=!0;propagateSelectionDown=!0;loading;loadingIcon;emptyMessage="";ariaLabel;togglerAriaLabel;ariaLabelledBy;validateDrop;filter;filterBy="label";filterMode="lenient";filterPlaceholder;filteredNodes;filterLocale;scrollHeight;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;indentation=1.5;_templateMap;trackBy=(te,ne)=>ne;_virtualNodeHeight;get virtualNodeHeight(){return this._virtualNodeHeight}set virtualNodeHeight(te){this._virtualNodeHeight=te,console.warn("The virtualNodeHeight property is deprecated, use virtualScrollItemSize property instead.")}selectionChange=new fe.bkB;onNodeSelect=new fe.bkB;onNodeUnselect=new fe.bkB;onNodeExpand=new fe.bkB;onNodeCollapse=new fe.bkB;onNodeContextMenuSelect=new fe.bkB;onNodeDrop=new fe.bkB;onLazyLoad=new fe.bkB;onScroll=new fe.bkB;onScrollIndexChange=new fe.bkB;onFilter=new fe.bkB;templates;filterViewChild;scroller;wrapperViewChild;serializedValue;headerTemplate;footerTemplate;loaderTemplate;emptyMessageTemplate;togglerIconTemplate;checkboxIconTemplate;loadingIconTemplate;filterIconTemplate;nodeTouched;dragNodeTree;dragNode;dragNodeSubNodes;dragNodeIndex;dragNodeScope;dragHover;dragStartSubscription;dragStopSubscription;constructor(te,ne,ie,re){this.el=te,this.dragDropService=ne,this.config=ie,this.cd=re}ngOnInit(){this.droppableNodes&&(this.dragStartSubscription=this.dragDropService.dragStart$.subscribe((te=>{this.dragNodeTree=te.tree,this.dragNode=te.node,this.dragNodeSubNodes=te.subNodes,this.dragNodeIndex=te.index,this.dragNodeScope=te.scope})),this.dragStopSubscription=this.dragDropService.dragStop$.subscribe((te=>{this.dragNodeTree=null,this.dragNode=null,this.dragNodeSubNodes=null,this.dragNodeIndex=null,this.dragNodeScope=null,this.dragHover=!1})))}ngOnChanges(te){te.value&&(this.updateSerializedValue(),this.hasFilterActive()&&this._filter(this.filterViewChild.nativeElement.value))}get horizontal(){return"horizontal"==this.layout}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Ht.Yj.EMPTY_MESSAGE)}ngAfterContentInit(){this.templates.length&&(this._templateMap={}),this.templates.forEach((te=>{switch(te.getType()){case"header":this.headerTemplate=te.template;break;case"empty":this.emptyMessageTemplate=te.template;break;case"footer":this.footerTemplate=te.template;break;case"loader":this.loaderTemplate=te.template;break;case"togglericon":this.togglerIconTemplate=te.template;break;case"checkboxicon":this.checkboxIconTemplate=te.template;break;case"loadingicon":this.loadingIconTemplate=te.template;break;case"filtericon":this.filterIconTemplate=te.template;break;default:this._templateMap[te.name]=te.template}}))}updateSerializedValue(){this.serializedValue=[],this.serializeNodes(null,this.getRootNode(),0,!0)}serializeNodes(te,ne,ie,re){if(ne&&ne.length)for(let le of ne){le.parent=te;const ne={node:le,parent:te,level:ie,visible:re&&(!te||te.expanded)};this.serializedValue.push(ne),ne.visible&&le.expanded&&this.serializeNodes(le,le.children,ie+1,ne.visible)}}onNodeClick(te,ne){let ie=te.target;if(!le.D.hasClass(ie,"p-tree-toggler")&&!le.D.hasClass(ie,"p-tree-toggler-icon")){if(this.selectionMode){if(!1===ne.selectable)return void(ne.style="--p-focus-ring-color: none;");if(ne.style="--p-focus-ring-color: var(--primary-color)",this.hasFilteredNodes()&&!(ne=this.getNodeWithKey(ne.key,this.filteredNodes)))return;let ie=this.findIndexInSelection(ne),re=ie>=0;if(this.isCheckboxSelectionMode())re?(this.propagateSelectionDown?this.propagateDown(ne,!1):this.selection=this.selection.filter(((te,ne)=>ne!=ie)),this.propagateSelectionUp&&ne.parent&&this.propagateUp(ne.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:te,node:ne})):(this.propagateSelectionDown?this.propagateDown(ne,!0):this.selection=[...this.selection||[],ne],this.propagateSelectionUp&&ne.parent&&this.propagateUp(ne.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:te,node:ne}));else{if(!this.nodeTouched&&this.metaKeySelection){let le=te.metaKey||te.ctrlKey;re&&le?(this.isSingleSelectionMode()?this.selectionChange.emit(null):(this.selection=this.selection.filter(((te,ne)=>ne!=ie)),this.selectionChange.emit(this.selection)),this.onNodeUnselect.emit({originalEvent:te,node:ne})):(this.isSingleSelectionMode()?this.selectionChange.emit(ne):this.isMultipleSelectionMode()&&(this.selection=le&&this.selection||[],this.selection=[...this.selection,ne],this.selectionChange.emit(this.selection)),this.onNodeSelect.emit({originalEvent:te,node:ne}))}else this.isSingleSelectionMode()?re?(this.selection=null,this.onNodeUnselect.emit({originalEvent:te,node:ne})):(this.selection=ne,setTimeout((()=>{this.onNodeSelect.emit({originalEvent:te,node:ne})}))):re?(this.selection=this.selection.filter(((te,ne)=>ne!=ie)),this.onNodeUnselect.emit({originalEvent:te,node:ne})):(this.selection=[...this.selection||[],ne],setTimeout((()=>{this.onNodeSelect.emit({originalEvent:te,node:ne})}))),this.selectionChange.emit(this.selection)}}this.nodeTouched=!1}}onNodeTouchEnd(){this.nodeTouched=!0}onNodeRightClick(te,ne){if(this.contextMenu){let ie=te.target.getAttribute("class");if(ie&&ie.includes("p-tree-toggler"))return;this.findIndexInSelection(ne)>=0||(this.isSingleSelectionMode()?this.selectionChange.emit(ne):this.selectionChange.emit([ne])),this.contextMenu.show(te),this.onNodeContextMenuSelect.emit({originalEvent:te,node:ne})}}findIndexInSelection(te){let ne=-1;if(this.selectionMode&&this.selection)if(this.isSingleSelectionMode()){ne=this.selection.key&&this.selection.key===te.key||this.selection==te?0:-1}else for(let ie=0;ie<this.selection.length;ie++){let re=this.selection[ie];if(re.key&&re.key===te.key||re==te){ne=ie;break}}return ne}syncNodeOption(te,ne,ie,re){const le=this.hasFilteredNodes()?this.getNodeWithKey(te.key,ne):null;le&&(le[ie]=re||te[ie])}hasFilteredNodes(){return this.filter&&this.filteredNodes&&this.filteredNodes.length}hasFilterActive(){return this.filter&&this.filterViewChild?.nativeElement?.value.length>0}getNodeWithKey(te,ne){for(let ie of ne){if(ie.key===te)return ie;if(ie.children){let ne=this.getNodeWithKey(te,ie.children);if(ne)return ne}}}propagateUp(te,ne){if(te.children&&te.children.length){let ie=0,re=!1;for(let ne of te.children)this.isSelected(ne)?ie++:ne.partialSelected&&(re=!0);if(ne&&ie==te.children.length)this.selection=[...this.selection||[],te],te.partialSelected=!1;else{if(!ne){let ne=this.findIndexInSelection(te);ne>=0&&(this.selection=this.selection.filter(((te,ie)=>ie!=ne)))}re||ie>0&&ie!=te.children.length?te.partialSelected=!0:te.partialSelected=!1}this.syncNodeOption(te,this.filteredNodes,"partialSelected")}let ie=te.parent;ie&&this.propagateUp(ie,ne)}propagateDown(te,ne){let ie=this.findIndexInSelection(te);if(ne&&-1==ie?this.selection=[...this.selection||[],te]:!ne&&ie>-1&&(this.selection=this.selection.filter(((te,ne)=>ne!=ie))),te.partialSelected=!1,this.syncNodeOption(te,this.filteredNodes,"partialSelected"),te.children&&te.children.length)for(let ie of te.children)this.propagateDown(ie,ne)}isSelected(te){return-1!=this.findIndexInSelection(te)}isSingleSelectionMode(){return this.selectionMode&&"single"==this.selectionMode}isMultipleSelectionMode(){return this.selectionMode&&"multiple"==this.selectionMode}isCheckboxSelectionMode(){return this.selectionMode&&"checkbox"==this.selectionMode}isNodeLeaf(te){return 0!=te.leaf&&!(te.children&&te.children.length)}getRootNode(){return this.filteredNodes?this.filteredNodes:this.value}getTemplateForNode(te){return this._templateMap?te.type?this._templateMap[te.type]:this._templateMap.default:null}onDragOver(te){!this.droppableNodes||this.value&&0!==this.value.length||(te.dataTransfer.dropEffect="move",te.preventDefault())}onDrop(te){if(this.droppableNodes&&(!this.value||0===this.value.length)){te.preventDefault();let ne=this.dragNode;if(this.allowDrop(ne,null,this.dragNodeScope)){let ie=this.dragNodeIndex;this.value=this.value||[],this.validateDrop?this.onNodeDrop.emit({originalEvent:te,dragNode:ne,dropNode:null,index:ie,accept:()=>{this.processTreeDrop(ne,ie)}}):(this.onNodeDrop.emit({originalEvent:te,dragNode:ne,dropNode:null,index:ie}),this.processTreeDrop(ne,ie))}}}processTreeDrop(te,ne){this.dragNodeSubNodes.splice(ne,1),this.value.push(te),this.dragDropService.stopDrag({node:te})}onDragEnter(){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)&&(this.dragHover=!0)}onDragLeave(te){if(this.droppableNodes){let ne=te.currentTarget.getBoundingClientRect();(te.x>ne.left+ne.width||te.x<ne.left||te.y>ne.top+ne.height||te.y<ne.top)&&(this.dragHover=!1)}}allowDrop(te,ne,ie){if(te){if(this.isValidDragScope(ie)){let ie=!0;if(ne)if(te===ne)ie=!1;else{let re=ne.parent;for(;null!=re;){if(re===te){ie=!1;break}re=re.parent}}return ie}return!1}return!1}isValidDragScope(te){let ne=this.droppableScope;if(ne){if("string"==typeof ne){if("string"==typeof te)return ne===te;if(Array.isArray(te))return-1!=te.indexOf(ne)}else if(Array.isArray(ne)){if("string"==typeof te)return-1!=ne.indexOf(te);if(Array.isArray(te))for(let ie of ne)for(let ne of te)if(ie===ne)return!0}return!1}return!0}_filter(te){let ne=te;if(""===ne)this.filteredNodes=null;else{this.filteredNodes=[];const te=this.filterBy.split(","),ie=Co.BF.removeAccents(ne).toLocaleLowerCase(this.filterLocale),re="strict"===this.filterMode;for(let ne of this.value){let le={...ne},ce={searchFields:te,filterText:ie,isStrictMode:re};(re&&(this.findFilteredNodes(le,ce)||this.isFilterMatched(le,ce))||!re&&(this.isFilterMatched(le,ce)||this.findFilteredNodes(le,ce)))&&this.filteredNodes.push(le)}}this.updateSerializedValue(),this.onFilter.emit({filter:ne,filteredValue:this.filteredNodes})}resetFilter(){this.filteredNodes=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}scrollToVirtualIndex(te){this.virtualScroll&&this.scroller?.scrollToIndex(te)}scrollTo(te){this.virtualScroll?this.scroller?.scrollTo(te):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(te):(this.wrapperViewChild.nativeElement.scrollLeft=te.left,this.wrapperViewChild.nativeElement.scrollTop=te.top))}findFilteredNodes(te,ne){if(te){let ie=!1;if(te.children){let re=[...te.children];te.children=[];for(let le of re){let re={...le};this.isFilterMatched(re,ne)&&(ie=!0,te.children.push(re))}}if(ie)return te.expanded=!0,!0}}isFilterMatched(te,ne){let{searchFields:ie,filterText:re,isStrictMode:le}=ne,ce=!1;for(let ne of ie){Co.BF.removeAccents(String(Co.BF.resolveFieldData(te,ne))).toLocaleLowerCase(this.filterLocale).indexOf(re)>-1&&(ce=!0)}return(!ce||le&&!this.isNodeLeaf(te))&&(ce=this.findFilteredNodes(te,{searchFields:ie,filterText:re,isStrictMode:le})||ce),ce}getIndex(te,ne){const ie=te.getItemOptions;return ie?ie(ne).index:ne}getBlockableElement(){return this.el.nativeElement.children[0]}ngOnDestroy(){this.dragStartSubscription&&this.dragStartSubscription.unsubscribe(),this.dragStopSubscription&&this.dragStopSubscription.unsubscribe()}static ɵfac=function Tree_Factory(te){return new(te||Tree)(fe.rXU(fe.aKT),fe.rXU(Ht.$9,8),fe.rXU(Ht.r1),fe.rXU(fe.gRc))};static ɵcmp=fe.VBU({type:Tree,selectors:[["p-tree"]],contentQueries:function Tree_ContentQueries(te,ne,ie){if(1&te&&fe.wni(ie,Ht.Ei,4),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.templates=te)}},viewQuery:function Tree_Query(te,ne){if(1&te&&(fe.GBs(uf,5),fe.GBs(mf,5),fe.GBs(_f,5)),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.filterViewChild=te.first),fe.mGM(te=fe.lsd())&&(ne.scroller=te.first),fe.mGM(te=fe.lsd())&&(ne.wrapperViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",selectionMode:"selectionMode",loadingMode:"loadingMode",selection:"selection",style:"style",styleClass:"styleClass",contextMenu:"contextMenu",layout:"layout",draggableScope:"draggableScope",droppableScope:"droppableScope",draggableNodes:[fe.Mj6.HasDecoratorInputTransform,"draggableNodes","draggableNodes",fe.L39],droppableNodes:[fe.Mj6.HasDecoratorInputTransform,"droppableNodes","droppableNodes",fe.L39],metaKeySelection:[fe.Mj6.HasDecoratorInputTransform,"metaKeySelection","metaKeySelection",fe.L39],propagateSelectionUp:[fe.Mj6.HasDecoratorInputTransform,"propagateSelectionUp","propagateSelectionUp",fe.L39],propagateSelectionDown:[fe.Mj6.HasDecoratorInputTransform,"propagateSelectionDown","propagateSelectionDown",fe.L39],loading:[fe.Mj6.HasDecoratorInputTransform,"loading","loading",fe.L39],loadingIcon:"loadingIcon",emptyMessage:"emptyMessage",ariaLabel:"ariaLabel",togglerAriaLabel:"togglerAriaLabel",ariaLabelledBy:"ariaLabelledBy",validateDrop:[fe.Mj6.HasDecoratorInputTransform,"validateDrop","validateDrop",fe.L39],filter:[fe.Mj6.HasDecoratorInputTransform,"filter","filter",fe.L39],filterBy:"filterBy",filterMode:"filterMode",filterPlaceholder:"filterPlaceholder",filteredNodes:"filteredNodes",filterLocale:"filterLocale",scrollHeight:"scrollHeight",lazy:[fe.Mj6.HasDecoratorInputTransform,"lazy","lazy",fe.L39],virtualScroll:[fe.Mj6.HasDecoratorInputTransform,"virtualScroll","virtualScroll",fe.L39],virtualScrollItemSize:[fe.Mj6.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",fe.Udg],virtualScrollOptions:"virtualScrollOptions",indentation:[fe.Mj6.HasDecoratorInputTransform,"indentation","indentation",fe.Udg],_templateMap:"_templateMap",trackBy:"trackBy",virtualNodeHeight:"virtualNodeHeight"},outputs:{selectionChange:"selectionChange",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onNodeContextMenuSelect:"onNodeContextMenuSelect",onNodeDrop:"onNodeDrop",onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange",onFilter:"onFilter"},features:[fe.GFd,fe.OA$],decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class","drop","dragover","dragenter","dragleave",4,"ngIf"],[3,"ngClass","ngStyle","class",4,"ngIf"],[3,"ngClass","ngStyle","drop","dragover","dragenter","dragleave"],["class","p-tree-loading-overlay p-component-overlay",4,"ngIf"],[4,"ngTemplateOutlet"],["class","p-tree-filter-container",4,"ngIf"],[4,"ngIf"],["class","p-tree-empty-message",4,"ngIf"],[1,"p-tree-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-tree-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-tree-loading-icon"],[1,"p-tree-filter-container"],["type","search","autocomplete","off",1,"p-tree-filter","p-inputtext","p-component",3,"keydown.enter","input"],["filter",""],[3,"styleClass",4,"ngIf"],["class","p-tree-filter-icon",4,"ngIf"],[3,"styleClass"],[1,"p-tree-filter-icon"],["styleClass","p-tree-wrapper",3,"items","tabindex","style","scrollHeight","itemSize","lazy","options","onScroll","onScrollIndexChange","onLazyLoad",4,"ngIf"],["styleClass","p-tree-wrapper",3,"items","tabindex","scrollHeight","itemSize","lazy","options","onScroll","onScrollIndexChange","onLazyLoad"],["scroller",""],["pTemplate","content"],["class","p-tree-container","role","tree",3,"ngClass","style",4,"ngIf"],["role","tree",1,"p-tree-container",3,"ngClass"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode"],["treeNode",""],["pTemplate","loader"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-tree-wrapper",3,"ngStyle"],["wrapper",""],["class","p-tree-container","role","tree",4,"ngIf"],["role","tree",1,"p-tree-container"],[3,"node","firstChild","lastChild","index","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","firstChild","lastChild","index","level","loadingMode"],[1,"p-tree-empty-message"],[4,"ngIf","ngIfElse"],["emptyFilter",""],[3,"ngClass","ngStyle"],["class","p-tree-loading-mask p-component-overlay",4,"ngIf"],[1,"p-tree-loading-mask","p-component-overlay"],[3,"node","root"]],template:function Tree_Template(te,ne){1&te&&fe.DNE(0,Tree_div_0_Template,7,15,"div",0)(1,Tree_div_1_Template,6,11,"div",1),2&te&&(fe.Y8G("ngIf",!ne.horizontal),fe.R7$(),fe.Y8G("ngIf",ne.horizontal))},dependencies:()=>[de.YU,de.Sq,de.bT,de.T3,de.B3,Ht.Ei,ce.H,rf.W,sf.N,Cf],styles:["@layer primeng{.p-tree-container{margin:0;padding:0;list-style-type:none;overflow:auto}.p-treenode-children{margin:0;padding:0;list-style-type:none}.p-tree-wrapper{overflow:auto}.p-treenode-selectable{cursor:pointer;-webkit-user-select:none;user-select:none}.p-tree-toggler{cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative;flex-shrink:0}.p-treenode-leaf>.p-treenode-content .p-tree-toggler{visibility:hidden}.p-treenode-content{display:flex;align-items:center}.p-tree-filter{width:100%}.p-tree-filter-container{position:relative;display:block;width:100%}.p-tree-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-tree-loading{position:relative;min-height:4rem}.p-tree .p-tree-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-tree-flex-scrollable{display:flex;flex:1;height:100%;flex-direction:column}.p-tree-flex-scrollable .p-tree-wrapper{flex:1}.p-tree .p-treenode-droppoint{height:4px;list-style-type:none}.p-tree .p-treenode-droppoint-active{border:0 none}.p-tree-horizontal{width:auto;padding-left:0;padding-right:0;overflow:auto}.p-tree.p-tree-horizontal table,.p-tree.p-tree-horizontal tr,.p-tree.p-tree-horizontal td{border-collapse:collapse;margin:0;padding:0;vertical-align:middle}.p-tree-horizontal .p-treenode-content{font-weight:400;padding:.4em 1em .4em .2em;display:flex;align-items:center}.p-tree-horizontal .p-treenode-parent .p-treenode-content{font-weight:400;white-space:nowrap}.p-tree.p-tree-horizontal .p-treenode{background:url(data:image/gif;base64,R0lGODlhAQABAIAAALGxsf///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNC4xLWMwMzQgNDYuMjcyOTc2LCBTYXQgSmFuIDI3IDIwMDcgMjI6Mzc6MzcgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhhcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx4YXA6Q3JlYXRvclRvb2w+QWRvYmUgRmlyZXdvcmtzIENTMzwveGFwOkNyZWF0b3JUb29sPgogICAgICAgICA8eGFwOkNyZWF0ZURhdGU+MjAxMC0wMy0xMVQxMDoxNjo0MVo8L3hhcDpDcmVhdGVEYXRlPgogICAgICAgICA8eGFwOk1vZGlmeURhdGU+MjAxMC0wMy0xMVQxMjo0NDoxOVo8L3hhcDpNb2RpZnlEYXRlPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIj4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9naWY8L2RjOmZvcm1hdD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4B//79/Pv6+fj39vX08/Lx8O/u7ezr6uno5+bl5OPi4eDf3t3c29rZ2NfW1dTT0tHQz87NzMvKycjHxsXEw8LBwL++vby7urm4t7a1tLOysbCvrq2sq6qpqKempaSjoqGgn56dnJuamZiXlpWUk5KRkI+OjYyLiomIh4aFhIOCgYB/fn18e3p5eHd2dXRzcnFwb25tbGtqaWhnZmVkY2JhYF9eXVxbWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkFAPz49PAA6OTg3NjU0MzIxMC8uLSwrKikoJyYlJCMiISAfHh0cGxoZGBcWFRQTEhEQDw4NDAsKCQgHBgUEAwIBAAAh+QQABwD/ACwAAAAAAQABAAACAkQBADs=) repeat-x scroll center center transparent;padding:.25rem 2.5rem}.p-tree.p-tree-horizontal .p-treenode.p-treenode-leaf,.p-tree.p-tree-horizontal .p-treenode.p-treenode-collapsed{padding-right:0}.p-tree.p-tree-horizontal .p-treenode-children{padding:0;margin:0}.p-tree.p-tree-horizontal .p-treenode-connector{width:1px}.p-tree.p-tree-horizontal .p-treenode-connector-table{height:100%;width:1px}.p-tree.p-tree-horizontal .p-treenode-connector-line{background:url(data:image/gif;base64,R0lGODlhAQABAIAAALGxsf///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNC4xLWMwMzQgNDYuMjcyOTc2LCBTYXQgSmFuIDI3IDIwMDcgMjI6Mzc6MzcgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhhcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx4YXA6Q3JlYXRvclRvb2w+QWRvYmUgRmlyZXdvcmtzIENTMzwveGFwOkNyZWF0b3JUb29sPgogICAgICAgICA8eGFwOkNyZWF0ZURhdGU+MjAxMC0wMy0xMVQxMDoxNjo0MVo8L3hhcDpDcmVhdGVEYXRlPgogICAgICAgICA8eGFwOk1vZGlmeURhdGU+MjAxMC0wMy0xMVQxMjo0NDoxOVo8L3hhcDpNb2RpZnlEYXRlPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIj4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9naWY8L2RjOmZvcm1hdD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4B//79/Pv6+fj39vX08/Lx8O/u7ezr6uno5+bl5OPi4eDf3t3c29rZ2NfW1dTT0tHQz87NzMvKycjHxsXEw8LBwL++vby7urm4t7a1tLOysbCvrq2sq6qpqKempaSjoqGgn56dnJuamZiXlpWUk5KRkI+OjYyLiomIh4aFhIOCgYB/fn18e3p5eHd2dXRzcnFwb25tbGtqaWhnZmVkY2JhYF9eXVxbWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkFAPz49PAA6OTg3NjU0MzIxMC8uLSwrKikoJyYlJCMiISAfHh0cGxoZGBcWFRQTEhEQDw4NDAsKCQgHBgUEAwIBAAAh+QQABwD/ACwAAAAAAQABAAACAkQBADs=) repeat-y scroll 0 0 transparent;width:1px}.p-tree.p-tree-horizontal table{height:0}.p-scroller .p-tree-container{overflow:visible}}\n"],encapsulation:2})}return Tree})(),yf=(()=>{class TreeModule{static ɵfac=function TreeModule_Factory(te){return new(te||TreeModule)};static ɵmod=fe.$C({type:TreeModule});static ɵinj=fe.G2t({imports:[de.MD,Ht.Gg,Wg.Z,ce.h,Xg.S,ts.D,_o.v,Jg.Q,rf.W,sf.N,Zg.c,Ht.Gg,ce.h]})}return TreeModule})(),Af=(()=>{class GerenciarAcessosService{constructor(){this.http=(0,fe.WQX)(ue.Qq),this.environmentService=(0,fe.WQX)(oo.v)}upsertRotinaGrupoAcesso(te){return this.http.put(`${this.environmentService.environment.serverUrl}/nbr-rotina-grupo-acesso`,te)}criaFavoritoAdmin(te){return this.http.post(`${this.environmentService.environment.serverUrl}/nbr-rotina-grupo-acesso/favorito-admin`,te)}listAllNbrRotinaGrupoAcesso(){return this.http.post(`${this.environmentService.environment.serverUrl}/nbr-rotina-grupo-acesso/filtro`,{pageSize:"all"}).pipe((0,Zt.T)((te=>te.data)))}listAllNbrTipoAcesso(){return this.http.post(`${this.environmentService.environment.serverUrl}/nbr-tipo-acesso/filtro`,{pageSize:"all"}).pipe((0,Zt.T)((te=>te.data)))}static#e=this.ɵfac=function GerenciarAcessosService_Factory(te){return new(te||GerenciarAcessosService)};static#t=this.ɵprov=fe.jDH({token:GerenciarAcessosService,factory:GerenciarAcessosService.ɵfac,providedIn:"root"})}return GerenciarAcessosService})();function GerenciarAcessosComponent_form_12_span_4_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"span",20)(1,"p-radioButton",23),fe.bIt("onClick",(function GerenciarAcessosComponent_form_12_span_4_Template_p_radioButton_onClick_1_listener(ne){fe.eBV(te);const ie=fe.XpG(2);return fe.Njj(ie.checkTipoAcesso(ne))})),fe.k0s()()}if(2&te){const te=ne.$implicit;fe.R7$(),fe.Y8G("inputId",te.nomeNbrTipoAcesso)("label",te.nomeNbrTipoAcesso)("value",te.codNbrTipoAcesso)}}function GerenciarAcessosComponent_form_12_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"form",11)(1,"div",12)(2,"span"),fe.EFF(3),fe.k0s()(),fe.DNE(4,GerenciarAcessosComponent_form_12_span_4_Template,2,3,"span",13),fe.j41(5,"p-checkbox",14),fe.bIt("valueChange",(function GerenciarAcessosComponent_form_12_Template_p_checkbox_valueChange_5_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.patchChildren())})),fe.k0s(),fe.j41(6,"p-checkbox",15),fe.bIt("valueChange",(function GerenciarAcessosComponent_form_12_Template_p_checkbox_valueChange_6_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.patchChildren())})),fe.k0s(),fe.j41(7,"p-checkbox",16),fe.bIt("valueChange",(function GerenciarAcessosComponent_form_12_Template_p_checkbox_valueChange_7_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.patchChildren())})),fe.k0s(),fe.j41(8,"p-checkbox",17),fe.bIt("valueChange",(function GerenciarAcessosComponent_form_12_Template_p_checkbox_valueChange_8_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.patchChildren())})),fe.k0s(),fe.j41(9,"p-checkbox",18),fe.bIt("valueChange",(function GerenciarAcessosComponent_form_12_Template_p_checkbox_valueChange_9_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.patchChildren())})),fe.k0s(),fe.j41(10,"p-checkbox",19),fe.bIt("valueChange",(function GerenciarAcessosComponent_form_12_Template_p_checkbox_valueChange_10_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.patchChildren())})),fe.k0s(),fe.j41(11,"p-floatLabel",20),fe.nrm(12,"input",21),fe.j41(13,"label",22),fe.EFF(14,"Nome nos Favoritos"),fe.k0s()()()}if(2&te){const te=fe.XpG();fe.Y8G("formGroup",te.selectedNode.data),fe.R7$(3),fe.JRh(te.headerAcessos),fe.R7$(),fe.Y8G("ngForOf",te.tipoAcessoList),fe.R7$(),fe.Y8G("binary",!0),fe.R7$(),fe.Y8G("binary",!0),fe.R7$(),fe.Y8G("binary",!0),fe.R7$(),fe.Y8G("binary",!0),fe.R7$(),fe.Y8G("binary",!0),fe.R7$(),fe.Y8G("binary",!0)}}const gerenciar_acessos_component_c0=()=>({standalone:!0});var If=function(te){return te[te.SemAcesso=1]="SemAcesso",te[te.ControleTotal=2]="ControleTotal",te[te.Permissoes=3]="Permissoes",te}(If||{});let Sf=(()=>{class GerenciarAcessosComponent{constructor(){this.rotinasTreeNode=[],this.rotinasTreeNodeOriginal=[],this.rotinaGrupoAcessoList=[],this.tipoAcessoList=[],this.isLoading=!1,this.layoutService=(0,fe.WQX)(Ul.Y),this.formBuilder=(0,fe.WQX)(an.ok),this.brMessageService=(0,fe.WQX)(bn.h),this.gerenciarAcessosService=(0,fe.WQX)(Af),this.tabRef=(0,fe.WQX)(Ig.l),this.authService=(0,fe.WQX)(rn.u)}get headerAcessos(){return this.selectedNode?this.selectedNode.children.length>0?`Permissões da Pasta "${this.selectedNode.label}"`:`Permissões de "${this.selectedNode.label}"`:"Selecione uma Rotina"}header(){return"fa-light fa-user-lock"}icon(){return"Controle de Acesso"}ngOnInit(){this.isLoading=!0,this.codNbrGrupoAcesso=this.tabRef.data?.codNbrGrupoAcesso,(0,Kt.p)({tipoAcessoList:this.gerenciarAcessosService.listAllNbrTipoAcesso(),rotinaGrupoAcessoList:this.gerenciarAcessosService.listAllNbrRotinaGrupoAcesso()}).pipe((0,tn.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),un.w))),(0,Jt.M)((te=>{this.rotinaGrupoAcessoList=te.rotinaGrupoAcessoList,this.tipoAcessoList=te.tipoAcessoList})),(0,pn.j)((()=>this.isLoading=!1))).subscribe((()=>{const te=this.layoutService.itensMenu;"favoritos"===te[0].items[0].id&&te[0].items.shift(),this.rotinasTreeNode=te.map((te=>this.mapToTreeNode(te))),this.rotinasTreeNodeOriginal=Yg.cloneDeep(this.rotinasTreeNode)}))}cancelar(){this.selectedNode=void 0,this.rotinasTreeNode=Yg.cloneDeep(this.rotinasTreeNodeOriginal)}salvar(){this.isLoading=!0;const te=this.transformaNodeEmRotinaGrupoAcesso(this.rotinasTreeNode);this.gerenciarAcessosService.upsertRotinaGrupoAcesso({codNbrGrupoAcesso:this.codNbrGrupoAcesso,rotinaGrupoAcesso:te}).pipe((0,Wt.n)((()=>this.authService.getPerfilUsuario())),(0,tn.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),un.w))),(0,Jt.M)((te=>{this.authService.usuario=te,this.brMessageService.success(),this.tabRef.close()})),(0,pn.j)((()=>this.isLoading=!1))).subscribe()}patchChildren(){const te=this.getFormDeNodeFlat([this.selectedNode]),ne=this.selectedNode?.data.value;for(const ie of te)ie.patchValue({podeVer:ne.podeVer,podeInserir:ne.podeInserir,podeAlterar:ne.podeAlterar,podeApagar:ne.podeApagar,podeExportar:ne.podeExportar,possuiFavorito:ne.possuiFavorito,tituloFavorito:ne.tituloFavorito})}patchTreeNode(){const te=this.layoutService.itensMenu;"favoritos"===te[0].items[0].id&&te[0].items.shift(),this.rotinasTreeNode=te.map((te=>this.mapToTreeNode(te)))}checkTipoAcesso(te){switch(te.value){case If.Permissoes:this.adicionaControlePermissoes(),this.selectedNode.styleClass="tree-permissoes";break;case If.ControleTotal:this.adicionaControleAcessoTotal(),this.selectedNode.styleClass="tree-acesso-total";break;case If.SemAcesso:this.adicionaControleSemAcesso(),this.selectedNode.styleClass="tree-sem-acesso"}const ne=this.transformaNodeFlat([this.selectedNode]);for(const te of ne)te.styleClass=this.selectedNode?.styleClass}transformaNodeEmRotinaGrupoAcesso(te){const ne=[];for(const ie of te)ie.children&&ie.children.length>0?ne.push(...this.transformaNodeEmRotinaGrupoAcesso(ie.children)):ie.data.value.classIncorp&&ne.push(ie.data.getRawValue());return ne}transformaNodeFlat(te){const ne=[];for(const ie of te)ie.children&&ie.children.length>0?(ne.push(ie),ne.push(...this.transformaNodeFlat(ie.children))):ne.push(ie);return ne}getFormDeNodeFlat(te){return this.transformaNodeFlat(te).map((te=>te.data))}criarFormulario(te,ne){let ie=null;return ne&&ne.id&&(ie=te?te.codNbrTipoAcesso:If.SemAcesso),this.formBuilder.group({codNbrRotinaMenu:[te?te.codNbrRotinaMenu:null],codNbrTipoAcesso:[ie],classIncorp:[ne?ne.id:null],nomeNbrRotinaMenu:[ne?ne.label:null],podeVer:[te?te.podeVer:"F"],podeInserir:[te?te.podeInserir:"F"],podeAlterar:[te?te.podeAlterar:"F"],podeApagar:[te?te.podeApagar:"F"],podeExportar:[te?te.podeExportar:"F"],possuiFavorito:[te?te.possuiFavorito:"F"],tituloFavorito:[te?te.tituloFavorito:null]})}mapToTreeNode(te){const ne=te.id?this.criarFormulario(this.getRotinaRecord(te.id),te):this.criarFormulario();let ie="";switch(ne.value.codNbrTipoAcesso){case If.Permissoes:ie="tree-permissoes";break;case If.ControleTotal:ie="tree-acesso-total";break;case If.SemAcesso:ie="tree-sem-acesso"}const re={label:te.label,data:ne,icon:te.icon,children:[],leaf:!te.items||0===te.items.length,parent:void 0,styleClass:`${te.styleClass} ${ie}`,selectable:!0,key:te.id||"SEM ID CADASTRADO",expanded:!0};return te.items&&(re.children=te.items.map((te=>this.mapToTreeNode(te))),re.children.forEach((te=>te.parent=re))),re}getRotinaRecord(te){return this.rotinaGrupoAcessoList.find((ne=>ne.codNbrGrupoAcesso===this.codNbrGrupoAcesso&&ne.nbrRotinaMenu?.classeIncorp===te))}adicionaControlePermissoes(){const te=this.getFormDeNodeFlat([this.selectedNode]);for(const ne of te)ne.patchValue({codNbrTipoAcesso:If.Permissoes}),ne.get("podeVer")?.enable(),ne.get("podeInserir")?.enable(),ne.get("podeAlterar")?.enable(),ne.get("podeApagar")?.enable(),ne.get("podeExportar")?.enable(),ne.get("possuiFavorito")?.enable()}adicionaControleAcessoTotal(){const te=this.getFormDeNodeFlat([this.selectedNode]);for(const ne of te)this.adicionaValorDesabilitaControle(ne,"V",If.ControleTotal)}adicionaControleSemAcesso(){const te=this.getFormDeNodeFlat([this.selectedNode]);for(const ne of te)this.adicionaValorDesabilitaControle(ne,"F",If.SemAcesso)}adicionaValorDesabilitaControle(te,ne,ie){te.patchValue({podeVer:ne,podeInserir:ne,podeAlterar:ne,podeApagar:ne,podeExportar:ne,codNbrTipoAcesso:ie}),te.get("podeVer")?.disable(),te.get("podeInserir")?.disable(),te.get("podeAlterar")?.disable(),te.get("podeApagar")?.disable(),te.get("podeExportar")?.disable()}static#e=this.ɵfac=function GerenciarAcessosComponent_Factory(te){return new(te||GerenciarAcessosComponent)};static#t=this.ɵcmp=fe.VBU({type:GerenciarAcessosComponent,selectors:[["app-gerenciar-acessos"]],standalone:!0,features:[fe.aNF],decls:13,vars:8,consts:[[1,"container"],[1,"header"],[1,"mr-auto",2,"min-width","30vw"],["size","100%","placeholder","Grupo de Acesso","endpoint","nbr-grupo-acesso","optionLabel","nomeNbrGrupoAcesso","optionValue","codNbrGrupoAcesso",3,"ngModel","ngModelOptions","ngModelChange"],[1,"botoes"],["label","Salvar","icon","pi pi-check","styleClass","p-button-success p-button-raised p-button-rounded",3,"disabled","onClick"],["label","Cancelar","icon","pi pi-times","styleClass","p-button-danger p-button-raised p-button-rounded","pTooltip","Cancelar","tooltipPosition","bottom",3,"onClick"],[1,"controle-acesso-card"],[1,"body"],["selectionMode","single","filterPlaceholder","Pesquisar",1,"w-full",3,"value","selection","filter","selectionChange"],["class","form fadein animation-duration-200",3,"formGroup",4,"ngIf"],[1,"form","fadein","animation-duration-200",3,"formGroup"],[1,"header-permissoes"],["style","grid-column: 1 / -1",4,"ngFor","ngForOf"],["label","Permitido Ver","formControlName","podeVer","trueValue","V","falseValue","F",3,"binary","valueChange"],["label","Permitido Alterar","formControlName","podeAlterar","trueValue","V","falseValue","F",3,"binary","valueChange"],["label","Permitido Inserir","formControlName","podeInserir","trueValue","V","falseValue","F",3,"binary","valueChange"],["label","Permitido Apagar","formControlName","podeApagar","trueValue","V","falseValue","F",3,"binary","valueChange"],["label","Permitido Exportar","formControlName","podeExportar","trueValue","V","falseValue","F",3,"binary","valueChange"],["label","Favoritar","formControlName","possuiFavorito","trueValue","V","falseValue","F",3,"binary","valueChange"],[2,"grid-column","1 / -1"],["id","Título nos Favoritos","type","text","formControlName","tituloFavorito","brInputText","",2,"width","100%"],["for","Nome nos Favoritos"],["formControlName","codNbrTipoAcesso",3,"inputId","label","value","onClick"]],template:function GerenciarAcessosComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"div",1)(2,"span",2)(3,"br-foreign-key",3),fe.mxI("ngModelChange",(function GerenciarAcessosComponent_Template_br_foreign_key_ngModelChange_3_listener(te){return fe.DH7(ne.codNbrGrupoAcesso,te)||(ne.codNbrGrupoAcesso=te),te})),fe.bIt("ngModelChange",(function GerenciarAcessosComponent_Template_br_foreign_key_ngModelChange_3_listener(){return ne.patchTreeNode()})),fe.k0s()(),fe.j41(4,"div",4)(5,"p-button",5),fe.bIt("onClick",(function GerenciarAcessosComponent_Template_p_button_onClick_5_listener(){return ne.salvar()})),fe.k0s(),fe.j41(6,"p-button",6),fe.bIt("onClick",(function GerenciarAcessosComponent_Template_p_button_onClick_6_listener(){return ne.cancelar()})),fe.k0s()()(),fe.j41(7,"div",7)(8,"p-card")(9,"div",8)(10,"div")(11,"p-tree",9),fe.mxI("selectionChange",(function GerenciarAcessosComponent_Template_p_tree_selectionChange_11_listener(te){return fe.DH7(ne.selectedNode,te)||(ne.selectedNode=te),te})),fe.k0s()(),fe.DNE(12,GerenciarAcessosComponent_form_12_Template,15,9,"form",10),fe.k0s()()()()),2&te&&(fe.R7$(3),fe.R50("ngModel",ne.codNbrGrupoAcesso),fe.Y8G("ngModelOptions",fe.lJ4(7,gerenciar_acessos_component_c0)),fe.R7$(2),fe.Y8G("disabled",!ne.selectedNode),fe.R7$(6),fe.Y8G("value",ne.rotinasTreeNode),fe.R50("selection",ne.selectedNode),fe.Y8G("filter",!0),fe.R7$(),fe.Y8G("ngIf",ne.selectedNode))},dependencies:[de.MD,de.Sq,de.bT,an.YN,an.qT,an.me,an.BC,an.cb,an.vS,sn.tm,sn.$n,dn.D,dn.Z,yf,vf,lo.q4,lo.Sc,sg,ag,yn.f,yn.V,_n.B,an.X1,an.j4,an.JD,Ur.L],styles:[".container[_ngcontent-%COMP%]{height:100%;width:100%;padding:2rem;display:flex;flex-direction:column;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.controle-acesso-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}[_nghost-%COMP%]     .p-tree{max-height:calc(100vh - 200px);overflow-y:auto;width:25vw}[_nghost-%COMP%]     .p-tree .p-treenode-label>*{font-size:1.15rem}[_nghost-%COMP%]     .p-tree .p-treenode-icon{font-size:1.5rem}[_nghost-%COMP%]     .p-tree .p-tree-container .root>.p-treenode-content{display:none}[_nghost-%COMP%]     .p-tree .p-tree-container .root>.p-treenode-children{padding:0}[_nghost-%COMP%]     .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler{width:2rem;height:2rem!important}.header[_ngcontent-%COMP%]{background-color:var(--primary-color);color:var(--primary-color-text);padding:.5rem .5rem .5rem 1.5rem;border-radius:1.5rem 1.5rem 0 0;display:flex;align-items:center}.body[_ngcontent-%COMP%]{display:flex;gap:2rem}.form[_ngcontent-%COMP%]{display:grid;gap:1.5rem;align-content:start;grid-template-columns:repeat(auto-fit,minmax(30rem,1fr));width:100%}.form[_ngcontent-%COMP%]   .header-permissoes[_ngcontent-%COMP%]{grid-column:1/-1;background:var(--primary-color);color:var(--primary-color-text);border-radius:1.5rem;padding:.5rem;text-align:center}.form[_ngcontent-%COMP%]   .header-permissoes[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:500}.botoes[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.hidden[_ngcontent-%COMP%]{visibility:hidden}[_nghost-%COMP%]     .p-card{border-radius:0 0 6px 6px;box-shadow:none!important}[_nghost-%COMP%]     .p-card .p-card-body{border:1px solid var(--primary-color);border-radius:0 0 1.5rem 1.5rem}[_nghost-%COMP%]     .p-card .p-card-content{padding:0}[_nghost-%COMP%]     .modal-loading .p-card{border-radius:6px}[_nghost-%COMP%]     .tree-acesso-total .p-treenode-content{background-color:#22c55e75!important}[_nghost-%COMP%]     .tree-acesso-total .p-treenode-content:hover{background-color:#218646b4}[_nghost-%COMP%]     .tree-acesso-total .tree-sem-acesso .p-treenode-content{background-color:#ef44447a!important}[_nghost-%COMP%]     .tree-acesso-total .tree-permissoes .p-treenode-content{background-color:#fcff41a8!important}[_nghost-%COMP%]     .tree-sem-acesso .p-treenode-content{background-color:#ef44447a!important}[_nghost-%COMP%]     .tree-sem-acesso .tree-acesso-total .p-treenode-content{background-color:#22c55e75!important}[_nghost-%COMP%]     .tree-sem-acesso .tree-permissoes .p-treenode-content{background-color:#fcff41a8!important}[_nghost-%COMP%]     .tree-permissoes .p-treenode-content{background-color:#fcff41a8!important}[_nghost-%COMP%]     .tree-permissoes .tree-acesso-total .p-treenode-content{background-color:#22c55e75!important}[_nghost-%COMP%]     .tree-permissoes .tree-sem-acesso .p-treenode-content{background-color:#ef44447a!important}"]})}return GerenciarAcessosComponent})(),Tf=(()=>{class NbrGrupoAcessoUsuarioService extends Un.O7{constructor(){super("nbr-grupo-acesso-usuario"),this.tabService=(0,fe.WQX)(Yn.r),this.brListName="Grupo de Acesso do Usuário",this.brListNamePlural="Grupos de Acesso de Usuário",this.columns$=new zn.t([{label:"ID",formControlName:"codNbrGrupoAcessoUsuario",fieldPath:"codNbrGrupoAcessoUsuario"},{label:"Grupo de acesso",fieldPath:"nbrGrupoAcesso.nomeNbrGrupoAcesso",formControlName:"codNbrGrupoAcesso"},{label:"Usuário",fieldPath:"lbrUsuario.nomeUsuario",formControlName:"codLbrUsuario"},{formControlName:"respGrupo",label:"Responsável pelo grupo",fieldPath:"respGrupo",typeColumn:Un.Ii.CheckBox}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrGrupoAcessoUsuario",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Grupo de acesso",formControlName:"codNbrGrupoAcesso",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrGrupoAcesso",optionValue:"codNbrGrupoAcesso",filterBy:"nomeNbrGrupoAcesso",foreignEndpoint:"nbr-grupo-acesso"},{label:"Usuário",formControlName:"codLbrUsuario",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario",foreignEndpoint:"lbr-usuario"},{label:"Responsável pelo grupo",formControlName:"respGrupo",control:new an.MJ(null),typeInput:Un.St.CheckBox}]}],this.menuMais=[{label:"Configurar Controle de Acesso",icon:"pi pi-cog",command:()=>{this.selectedRows?.length>0?this.tabService.open({component:Sf,data:{codNbrGrupoAcesso:this.selectedRows[0].codNbrGrupoAcesso}}):this.brMessageService.info("É necessário selecionar algum registro antes")}},{label:"Gerenciar Usuários do Grupo",icon:"pi pi-users",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>te.codNbrGrupoAcesso||0));this.tabService.open({header:"Usuários",icon:"fa-light fa-users",component:Zn,data:{appliedFilters:{codNbrGrupoAcessoUltimo:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}}]}static#e=this.ɵfac=function NbrGrupoAcessoUsuarioService_Factory(te){return new(te||NbrGrupoAcessoUsuarioService)};static#t=this.ɵprov=fe.jDH({token:NbrGrupoAcessoUsuarioService,factory:NbrGrupoAcessoUsuarioService.ɵfac,providedIn:"root"})}return NbrGrupoAcessoUsuarioService})(),Rf=(()=>{class NbrGrupoAcessoUsuarioComponent{constructor(){this.nbrGrupoAcessoUsuarioService=(0,fe.WQX)(Tf)}header(){return"Grupos de Acesso com Usuários"}icon(){return"fa-light fa-screen-users"}static#e=this.ɵfac=function NbrGrupoAcessoUsuarioComponent_Factory(te){return new(te||NbrGrupoAcessoUsuarioComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrGrupoAcessoUsuarioComponent,selectors:[["br-list-nbr-grupo-acesso-usuario"]],standalone:!0,features:[fe.Jv_([Tf]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrGrupoAcessoUsuarioComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrGrupoAcessoUsuarioService)},dependencies:[Kn.K]})}return NbrGrupoAcessoUsuarioComponent})(),Lf=(()=>{class NbrGrupoAcessoService extends Un.O7{constructor(){super("nbr-grupo-acesso"),this.tabService=(0,fe.WQX)(Yn.r),this.brListName="Grupo de Acesso",this.brListNamePlural="Grupos de Acesso",this.columns$=new zn.t([{formControlName:"codNbrGrupoAcesso",fieldPath:"codNbrGrupoAcesso",label:"ID"},{formControlName:"nomeNbrGrupoAcesso",fieldPath:"nomeNbrGrupoAcesso",label:"Nome"},{fieldPath:"lbrUsuarioNbrGrupoAcessoCodLbrUsuarioRespTolbrUsuario.nomeUsuario",label:"Usuário responsável",formControlName:"codLbrUsuarioResp"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrGrupoAcesso",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeNbrGrupoAcesso",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Usuário responsável",formControlName:"codLbrUsuarioResp",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpf",foreignEndpoint:"lbr-usuario"}]}],this.menuMais=[{label:"Configurar Controle de Acesso",icon:"pi pi-cog",command:()=>{this.selectedRows?.length>0?this.tabService.open({component:Sf,data:{codNbrGrupoAcesso:this.selectedRows[0].codNbrGrupoAcesso}}):this.brMessageService.info("É necessário selecionar algum registro antes")}},{label:"Gerenciar Usuários do Grupo",icon:"pi pi-users",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>te.codNbrGrupoAcesso||0));this.tabService.open({component:Zn,data:{appliedFilters:{codNbrGrupoAcessoUltimo:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}}]}static#e=this.ɵfac=function NbrGrupoAcessoService_Factory(te){return new(te||NbrGrupoAcessoService)};static#t=this.ɵprov=fe.jDH({token:NbrGrupoAcessoService,factory:NbrGrupoAcessoService.ɵfac,providedIn:"root"})}return NbrGrupoAcessoService})(),Of=(()=>{class NbrGrupoAcessoComponent{constructor(){this.nbrGrupoAcessoService=(0,fe.WQX)(Lf)}header(){return"Configuração de Acessos"}icon(){return"fa-light fa-screen-users"}static#e=this.ɵfac=function NbrGrupoAcessoComponent_Factory(te){return new(te||NbrGrupoAcessoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrGrupoAcessoComponent,selectors:[["br-list-nbr-grupo-acesso"]],standalone:!0,features:[fe.Jv_([Lf]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrGrupoAcessoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrGrupoAcessoService)},dependencies:[Kn.K]})}return NbrGrupoAcessoComponent})(),Pf=(()=>{class NbrLogAcessoService extends Un.O7{constructor(){super("nbr-log-acesso"),this.brListName="Histórico de Acesso",this.brListNamePlural="Históricos de Acesso",this.state={...this.state,isReadOnly:!0},this.columns$=new zn.t([{label:"ID",fieldPath:"codNbrLogAcesso",formControlName:"codNbrLogAcesso"},{label:"Data de criação",fieldPath:"dataCriacaoRegistro",formControlName:"dataCriacaoRegistro",typeColumn:Un.Ii.DateTime},{label:"Operação",fieldPath:"nbrOperLogAcesso.nomeNbrOperLogAcesso",formControlName:"codNbrOperLogAcesso"},{label:"Rotina",fieldPath:"nbrRotinaMenu.nomeNbrRotinaMenu",formControlName:"codNbrRotinaMenu"},{label:"Descrição",fieldPath:"descrNbrLogAcesso",formControlName:"descrNbrLogAcesso"},{label:"Usuário",fieldPath:"lbrUsuario.nomeUsuario",formControlName:"codLbrUsuario"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrLogAcesso",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Operação",formControlName:"codNbrOperLogAcesso",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrOperLogAcesso",optionValue:"codNbrOperLogAcesso",foreignEndpoint:"nbr-oper-log-acesso"},{label:"Rotina",formControlName:"codNbrRotinaMenu",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrRotinaMenu",optionValue:"codNbrRotinaMenu",foreignEndpoint:"nbr-rotina-menu"},{label:"Usuário",formControlName:"codLbrUsuario",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",foreignEndpoint:"lbr-usuario"},{label:"Descrição",formControlName:"descrNbrLogAcesso",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Data de criação",showOnDetails:!1,showOnFilter:!1,formControlName:"dataCriacaoRegistro",control:new an.MJ(null),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function NbrLogAcessoService_Factory(te){return new(te||NbrLogAcessoService)};static#t=this.ɵprov=fe.jDH({token:NbrLogAcessoService,factory:NbrLogAcessoService.ɵfac,providedIn:"root"})}return NbrLogAcessoService})(),jf=(()=>{class NbrLogAcessoComponent{constructor(){this.nbrLogAcessoService=(0,fe.WQX)(Pf)}header(){return"Histórico de Operações"}icon(){return"pi pi-history"}static#e=this.ɵfac=function NbrLogAcessoComponent_Factory(te){return new(te||NbrLogAcessoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrLogAcessoComponent,selectors:[["br-list-nbr-log-acesso"]],standalone:!0,features:[fe.Jv_([Pf]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrLogAcessoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrLogAcessoService)},dependencies:[Kn.K]})}return NbrLogAcessoComponent})(),Vf=(()=>{class NbrModoAtendimentoService extends Un.O7{constructor(){super("nbr-modo-atendimento"),this.brListName="Modo de Atendimento",this.brListNamePlural="Modos de Atendimento",this.columns$=new zn.t([{formControlName:"codNbrModoAtendimento",fieldPath:"codNbrModoAtendimento",label:"ID"},{formControlName:"nomeNbrModoAtendimento",fieldPath:"nomeNbrModoAtendimento",label:"Nome"},{formControlName:"codNbrTipoAtendimento",fieldPath:"nbrTipoAtendimentoNbrModoAtendimentoCodNbrTipoAtendimentoTonbrTipoAtendimento.nomeNbrTipoAtendimento",label:"Tipo de atendimento"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrModoAtendimento",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeNbrModoAtendimento",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Tipo de atendimento",formControlName:"codNbrTipoAtendimento",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrTipoAtendimento",optionValue:"codNbrTipoAtendimento",foreignEndpoint:"nbr-tipo-atendimento"}]}]}static#e=this.ɵfac=function NbrModoAtendimentoService_Factory(te){return new(te||NbrModoAtendimentoService)};static#t=this.ɵprov=fe.jDH({token:NbrModoAtendimentoService,factory:NbrModoAtendimentoService.ɵfac,providedIn:"root"})}return NbrModoAtendimentoService})(),Gf=(()=>{class NbrModoAtendimentoComponent{constructor(){this.nbrModoAtendimentoService=(0,fe.WQX)(Vf)}header(){return"Modos de Atendimento"}icon(){return"fa-light fa-gear"}static#e=this.ɵfac=function NbrModoAtendimentoComponent_Factory(te){return new(te||NbrModoAtendimentoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrModoAtendimentoComponent,selectors:[["br-list-nbr-modo-atendimento"]],standalone:!0,features:[fe.Jv_([Vf]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrModoAtendimentoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrModoAtendimentoService)},dependencies:[Kn.K]})}return NbrModoAtendimentoComponent})(),Hf=(()=>{class NbrReembolsoComponent{constructor(){this.nbrReembolsoService=(0,fe.WQX)(_r.Q),this.nbrDespesaGrupoService=(0,fe.WQX)(fr)}ngAfterViewInit(){const te=this.nbrReembolsoService.everyBrFormControl.find((te=>"Despesa"===te.label)).brListIntegradoService;this.nbrReembolsoService.formDetails?.get("codNbrTipoReembolso").valueChanges.subscribe((ne=>{te.everyBrFormControl.find((te=>"codNbrDespesa"===te.formControlName)).foreignMinQuery=new URLSearchParams({codNbrTipoReembolso:String(ne)})}));const ne=te.everyBrFormControl.find((te=>"quantidade"===te.formControlName)),ie=te.everyBrFormControl.find((te=>"valorUnitario"===te.formControlName));ne&&ie&&(ne.control.valueChanges.subscribe((ne=>{const re=ie.control.value;te.formDetails?.get("valorTotal")?.setValue(Number(ne)*Number(re))})),ie.control.valueChanges.subscribe((ie=>{const re=ne.control.value;te.formDetails?.get("valorTotal")?.setValue(Number(re)*Number(ie))})));te.everyBrFormControl.find((te=>"codNbrDespesa"===te.formControlName)).control.valueChanges.subscribe((ne=>{const ie=this.nbrReembolsoService.formDetails?.get("codNbrTipoReembolso").value;this.nbrDespesaGrupoService.filterRecords({codNbrDespesa:ne?[ne]:null,codNbrTipoReembolso:ie?[ie]:null}).subscribe((ne=>{const ie=ne.data.length?ne.data[0]:void 0;ie&&te.formDetails?.get("valorUnitario")?.setValue(ie.valorUnitario??null)}))}))}header(){return"Reembolsos"}icon(){return"fa-light fa-hand-holding-circle-dollar"}static#e=this.ɵfac=function NbrReembolsoComponent_Factory(te){return new(te||NbrReembolsoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrReembolsoComponent,selectors:[["br-list-nbr-reembolso"]],standalone:!0,features:[fe.Jv_([_r.Q,fr]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrReembolsoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrReembolsoService)},dependencies:[Kn.K],styles:["[_nghost-%COMP%]     .br-details-content{display:grid;grid-template-columns:30% 70%;gap:.5rem}[_nghost-%COMP%]     .br-details-content p-tabview{margin-top:.5rem}[_nghost-%COMP%]     .br-sidebar.br-sidebar{height:555px}"]})}return NbrReembolsoComponent})(),$f=(()=>{class NbrReembolsoRelatorioService extends _r.Q{static#e=this.ɵfac=(()=>{let te;return function NbrReembolsoRelatorioService_Factory(ne){return(te||(te=fe.xGo(NbrReembolsoRelatorioService)))(ne||NbrReembolsoRelatorioService)}})();static#t=this.ɵprov=fe.jDH({token:NbrReembolsoRelatorioService,factory:NbrReembolsoRelatorioService.ɵfac,providedIn:"root"})}return NbrReembolsoRelatorioService})(),qf=(()=>{class NbrRelatorioReembolsoComponent{constructor(){this.nbrReembolsoRelatorioService=(0,fe.WQX)($f),this.tabRef=(0,fe.WQX)(Ig.l)}header(){return"Relatório de Reembolso"}icon(){return"fa-light fa-fw fa-file-invoice-dollar"}static#e=this.ɵfac=function NbrRelatorioReembolsoComponent_Factory(te){return new(te||NbrRelatorioReembolsoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrRelatorioReembolsoComponent,selectors:[["ng-component"]],standalone:!0,features:[fe.aNF],decls:1,vars:2,consts:[["rotina","ReembolsoDbRelDm",3,"brListService","tabRef"]],template:function NbrRelatorioReembolsoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-relatorio",0),2&te&&fe.Y8G("brListService",ne.nbrReembolsoRelatorioService)("tabRef",ne.tabRef)},dependencies:[hg]})}return NbrRelatorioReembolsoComponent})(),Yf=(()=>{class NbrRotinaMenuService extends Un.O7{constructor(){super("nbr-rotina-menu"),this.brListName="Rotina",this.brListNamePlural="Rotinas",this.columns$=new zn.t([{formControlName:"codNbrRotinaMenu",fieldPath:"codNbrRotinaMenu",label:"ID"},{formControlName:"nomeNbrRotinaMenu",fieldPath:"nomeNbrRotinaMenu",label:"Nome"},{formControlName:"classeIncorp",fieldPath:"classeIncorp",label:"Componente"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrRotinaMenu",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeNbrRotinaMenu",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Componente",formControlName:"classeIncorp",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function NbrRotinaMenuService_Factory(te){return new(te||NbrRotinaMenuService)};static#t=this.ɵprov=fe.jDH({token:NbrRotinaMenuService,factory:NbrRotinaMenuService.ɵfac,providedIn:"root"})}return NbrRotinaMenuService})(),Xf=(()=>{class NbrRotinaMenuComponent{constructor(){this.nbrRotinaMenuService=(0,fe.WQX)(Yf)}header(){return"Rotinas do Sistema"}icon(){return"fa-light fa-list-ul"}static#e=this.ɵfac=function NbrRotinaMenuComponent_Factory(te){return new(te||NbrRotinaMenuComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrRotinaMenuComponent,selectors:[["br-list-nbr-rotina-menu"]],standalone:!0,features:[fe.Jv_([Yf]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrRotinaMenuComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrRotinaMenuService)},dependencies:[Kn.K]})}return NbrRotinaMenuComponent})();var Kf=ie(7914);let Qf=(()=>{class NbrStatusDemandaComponent{constructor(){this.nbrStatusDemandaService=(0,fe.WQX)(Kf.U)}header(){return"Status da Demanda"}icon(){return"fa-light fa-diagram-cells"}static#e=this.ɵfac=function NbrStatusDemandaComponent_Factory(te){return new(te||NbrStatusDemandaComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrStatusDemandaComponent,selectors:[["br-list-nbr-status-demanda"]],standalone:!0,features:[fe.Jv_([Kf.U]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrStatusDemandaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrStatusDemandaService)},dependencies:[Kn.K]})}return NbrStatusDemandaComponent})(),Zf=(()=>{class NbrTipoAtendTipoUsuarioService extends Un.O7{constructor(){super("nbr-tipo-atend-tipo-usuario"),this.brListName="Tipo de Usuário por Atendimento",this.brListNamePlural="Tipos de Usuário por Atendimento",this.columns$=new zn.t([{formControlName:"codNbrTipoAtendTipoUsuario",fieldPath:"codNbrTipoAtendTipoUsuario",label:"ID"},{formControlName:"codNbrTipoAtendimento",fieldPath:"nbrTipoAtendimento.nomeNbrTipoAtendimento",label:"Tipo de atendimento"},{formControlName:"codLbrTipoUsuario",fieldPath:"lbrTipoUsuario.nomeTipoUsuario",label:"Tipo de usuário"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrTipoAtendTipoUsuario",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Tipo de atendimento",formControlName:"codNbrTipoAtendimento",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrTipoAtendimento",optionValue:"codNbrTipoAtendimento",foreignEndpoint:"nbr-tipo-atendimento"},{label:"Tipo de usuário",formControlName:"codLbrTipoUsuario",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeTipoUsuario",optionValue:"codLbrTipoUsuario",foreignEndpoint:"lbr-tipo-usuario"}]}]}static#e=this.ɵfac=function NbrTipoAtendTipoUsuarioService_Factory(te){return new(te||NbrTipoAtendTipoUsuarioService)};static#t=this.ɵprov=fe.jDH({token:NbrTipoAtendTipoUsuarioService,factory:NbrTipoAtendTipoUsuarioService.ɵfac,providedIn:"root"})}return NbrTipoAtendTipoUsuarioService})(),t_=(()=>{class NbrTipoAtendTipoUsuarioComponent{constructor(){this.nbrTipoAtendTipoUsuarioService=(0,fe.WQX)(Zf)}header(){return"Tipos de Usuário por Atendimento"}icon(){return"fa-light fa-user-group"}static#e=this.ɵfac=function NbrTipoAtendTipoUsuarioComponent_Factory(te){return new(te||NbrTipoAtendTipoUsuarioComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrTipoAtendTipoUsuarioComponent,selectors:[["br-list-nbr-tipo-atend-tipo-usuario"]],standalone:!0,features:[fe.Jv_([Zf]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrTipoAtendTipoUsuarioComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrTipoAtendTipoUsuarioService)},dependencies:[Kn.K]})}return NbrTipoAtendTipoUsuarioComponent})(),n_=(()=>{class NbrTipoAtendimentoComponent{constructor(){this.nbrTipoAtendimentoService=(0,fe.WQX)(vr.Q)}header(){return"Tipos de Atendimento"}icon(){return"fa-light fa-gear"}static#e=this.ɵfac=function NbrTipoAtendimentoComponent_Factory(te){return new(te||NbrTipoAtendimentoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrTipoAtendimentoComponent,selectors:[["br-list-nbr-tipo-atendimento"]],standalone:!0,features:[fe.Jv_([vr.Q]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrTipoAtendimentoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrTipoAtendimentoService)},dependencies:[Kn.K]})}return NbrTipoAtendimentoComponent})(),i_=(()=>{class NbrTipoReembolsoGrupoService extends Un.O7{constructor(){super("nbr-tipo-reembolso-grupo"),this.brListName="Tipos de Reembolso por Grupo",this.brListNamePlural="Tipos de Reembolso por Grupo",this.columns$=new zn.t([{label:"ID",fieldPath:"codNbrTipoReembolsoGrupo",formControlName:"codNbrTipoReembolsoGrupo"},{fieldPath:"nbrTipoReembolso.nomeNbrTipoReembolso",formControlName:"codNbrTipoReembolso"},{fieldPath:"divisaoGrupoPessoal.nomeDivisaoGrupoPessoal",formControlName:"codDivisaoGrupoPessoal"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrTipoReembolsoGrupo",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Tipo de reembolso",formControlName:"codNbrTipoReembolso",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrTipoReembolso",optionValue:"codNbrTipoReembolso",foreignEndpoint:"nbr-tipo-reembolso"},{label:"Divisão de grupo pessoal",formControlName:"codDivisaoGrupoPessoal",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeDivisaoGrupoPessoal",optionValue:"codDivisaoGrupoPessoal",foreignEndpoint:"divisao-grupo-pessoal"}]}]}static#e=this.ɵfac=function NbrTipoReembolsoGrupoService_Factory(te){return new(te||NbrTipoReembolsoGrupoService)};static#t=this.ɵprov=fe.jDH({token:NbrTipoReembolsoGrupoService,factory:NbrTipoReembolsoGrupoService.ɵfac,providedIn:"root"})}return NbrTipoReembolsoGrupoService})(),a_=(()=>{class NbrTipoReembolsoGrupoComponent{constructor(){this.nbrTipoReembolsoGrupoService=(0,fe.WQX)(i_)}header(){return"Divisões dos Tipos de Reembolso"}icon(){return"fa-light fa-money-check-dollar-pen"}static#e=this.ɵfac=function NbrTipoReembolsoGrupoComponent_Factory(te){return new(te||NbrTipoReembolsoGrupoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrTipoReembolsoGrupoComponent,selectors:[["br-list-nbr-tipo-reembolso-grupo"]],standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrTipoReembolsoGrupoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrTipoReembolsoGrupoService)},dependencies:[Kn.K]})}return NbrTipoReembolsoGrupoComponent})(),l_=(()=>{class NbrTipoReembolsoService extends Un.O7{constructor(){super("nbr-tipo-reembolso"),this.tabService=(0,fe.WQX)(Yn.r),this.menuMais=[{label:"Divisões do Tipo de Reembolso",icon:"pi pi-tag",command:()=>{if(this.selectedRows?.length>0){const te=this.selectedRows.map((te=>te.codNbrTipoReembolso||0));this.tabService.open({component:a_,data:{appliedFilters:{codNbrTipoReembolso:te}}})}else this.brMessageService.info("É necessário selecionar algum registro antes")}}],this.brListName="Tipo de Reembolso",this.brListNamePlural="Tipos de Reembolso",this.columns$=new zn.t([{formControlName:"codNbrTipoReembolso",fieldPath:"codNbrTipoReembolso",label:"ID"},{formControlName:"nomeNbrTipoReembolso",fieldPath:"nomeNbrTipoReembolso",label:"Nome"},{fieldPath:"nbrStatusDemanda.nomeNbrStatusDemanda",label:"Status inicial",formControlName:"codNbrStatusDemanda"},{fieldPath:"lbrUsuario.nomeUsuario",label:"Usuário responsável",formControlName:"codLbrUsuarioResp"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codNbrTipoReembolso",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeNbrTipoReembolso",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Usuário responsável",formControlName:"codLbrUsuarioResp",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeUsuario",optionValue:"codLbrUsuario",filterBy:"nomeUsuario,cpf",foreignEndpoint:"lbr-usuario"},{label:"Status inicial",formControlName:"codNbrStatusInicial",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda"},{label:"Relatório",formControlName:"codLbrRel",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeLbrRel",optionValue:"codLbrRel",foreignEndpoint:"lbr-rel"},{label:"Relatório de declaração",formControlName:"codLbrRelDeclaracao",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeLbrRel",optionValue:"codLbrRel",foreignEndpoint:"lbr-rel"}]}]}listRecordsByUserDivisaoGrupoPessoal(){return this.http.get(`${this.environmentService.environment.serverUrl}/nbr-tipo-reembolso/divisao-grupo-pessoal`).pipe((0,tn.W)((te=>(this.brMessageService.error(te.error.message),un.w))))}static#e=this.ɵfac=function NbrTipoReembolsoService_Factory(te){return new(te||NbrTipoReembolsoService)};static#t=this.ɵprov=fe.jDH({token:NbrTipoReembolsoService,factory:NbrTipoReembolsoService.ɵfac,providedIn:"root"})}return NbrTipoReembolsoService})(),c_=(()=>{class NbrTipoReembolsoComponent{constructor(){this.nbrTipoReembolsoService=(0,fe.WQX)(l_)}header(){return"Tipos de Reembolsos"}icon(){return"fa-light fa-money-check-dollar-pen"}static#e=this.ɵfac=function NbrTipoReembolsoComponent_Factory(te){return new(te||NbrTipoReembolsoComponent)};static#t=this.ɵcmp=fe.VBU({type:NbrTipoReembolsoComponent,selectors:[["br-list-nbr-tipo-reembolso"]],standalone:!0,features:[fe.Jv_([l_]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function NbrTipoReembolsoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.nbrTipoReembolsoService)},dependencies:[Kn.K]})}return NbrTipoReembolsoComponent})(),d_=(()=>{class OperIntegEstadoService extends Un.O7{constructor(){super("oper-integ-estado"),this.brListName="Operação de Integração",this.brListNamePlural="Operações de Integração",this.columns$=new zn.t([{formControlName:"codOperIntegEstado",fieldPath:"codOperIntegEstado",label:"ID"},{formControlName:"nomeOperIntegEstado",fieldPath:"nomeOperIntegEstado",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codOperIntegEstado",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeOperIntegEstado",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function OperIntegEstadoService_Factory(te){return new(te||OperIntegEstadoService)};static#t=this.ɵprov=fe.jDH({token:OperIntegEstadoService,factory:OperIntegEstadoService.ɵfac,providedIn:"root"})}return OperIntegEstadoService})(),h_=(()=>{class OperIntegEstadoComponent{constructor(){this.operIntegEstadoService=(0,fe.WQX)(d_)}header(){return"Operações de Integração"}icon(){return"fa-light fa-link-horizontal"}static#e=this.ɵfac=function OperIntegEstadoComponent_Factory(te){return new(te||OperIntegEstadoComponent)};static#t=this.ɵcmp=fe.VBU({type:OperIntegEstadoComponent,selectors:[["br-list-oper-integ-estado"]],standalone:!0,features:[fe.Jv_([d_]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function OperIntegEstadoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.operIntegEstadoService)},dependencies:[Kn.K]})}return OperIntegEstadoComponent})(),O_=(()=>{class OrdBancoService extends Un.O7{constructor(){super("ord-banco"),this.brListName="Banco",this.brListNamePlural="Bancos",this.columns$=new zn.t([{formControlName:"codBanco",fieldPath:"codBanco",label:"ID"},{formControlName:"nomeBanco",fieldPath:"nomeBanco",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codBanco",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeBanco",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function OrdBancoService_Factory(te){return new(te||OrdBancoService)};static#t=this.ɵprov=fe.jDH({token:OrdBancoService,factory:OrdBancoService.ɵfac,providedIn:"root"})}return OrdBancoService})(),G_=(()=>{class OrdBancoComponent{constructor(){this.ordBancoService=(0,fe.WQX)(O_)}header(){return"Bancos"}icon(){return"fa-light fa-sack-dollar"}static#e=this.ɵfac=function OrdBancoComponent_Factory(te){return new(te||OrdBancoComponent)};static#t=this.ɵcmp=fe.VBU({type:OrdBancoComponent,selectors:[["br-list-ord-banco"]],standalone:!0,features:[fe.Jv_([O_]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function OrdBancoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.ordBancoService)},dependencies:[Kn.K]})}return OrdBancoComponent})(),H_=(()=>{class OrgaoService extends Un.O7{constructor(){super("orgao"),this.brListName="Orgão",this.brListNamePlural="Orgãos",this.columns$=new zn.t([{formControlName:"codOrgao",fieldPath:"codOrgao",label:"ID"},{formControlName:"nomeOrgao",fieldPath:"nomeOrgao",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codOrgao",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeOrgao",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function OrgaoService_Factory(te){return new(te||OrgaoService)};static#t=this.ɵprov=fe.jDH({token:OrgaoService,factory:OrgaoService.ɵfac,providedIn:"root"})}return OrgaoService})(),U_=(()=>{class OrgaoComponent{constructor(){this.orgaoService=(0,fe.WQX)(H_)}header(){return"Órgãos"}icon(){return"fa-light fa-user-tie"}static#e=this.ɵfac=function OrgaoComponent_Factory(te){return new(te||OrgaoComponent)};static#t=this.ɵcmp=fe.VBU({type:OrgaoComponent,selectors:[["br-list-orgao"]],standalone:!0,features:[fe.Jv_([H_]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function OrgaoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.orgaoService)},dependencies:[Kn.K]})}return OrgaoComponent})(),W_=(()=>{class PessoaEmpresaComponent{constructor(){this.pessoaEmpresaService=(0,fe.WQX)(Ma),this.cidadeService=(0,fe.WQX)(ta),this.bairroService=(0,fe.WQX)(ic),this.estadoService=(0,fe.WQX)(sp),this.cepService=(0,fe.WQX)(dp)}ngAfterViewInit(){const te=this.pessoaEmpresaService.formDetails;te?.get("cep")?.valueChanges.pipe((0,Wt.n)((te=>this.cepService.mapCepToIds(te)))).subscribe((ne=>{te.patchValue({codCidade:ne.codCidade??null,codBairro:ne.codBairro??null,enderecoCompleto:ne.logradouro})}))}header(){return"Pessoas"}icon(){return"fa-light fa-users"}static#e=this.ɵfac=function PessoaEmpresaComponent_Factory(te){return new(te||PessoaEmpresaComponent)};static#t=this.ɵcmp=fe.VBU({type:PessoaEmpresaComponent,selectors:[["br-list-pessoa-empresa"]],standalone:!0,features:[fe.Jv_([Ma]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function PessoaEmpresaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.pessoaEmpresaService)},dependencies:[Kn.K]})}return PessoaEmpresaComponent})(),eb=(()=>{class ProcessoJuridicoService extends Un.O7{constructor(){super("processo-juridico"),this.brListName="Processo Jurídico",this.brListNamePlural="Processos Jurídico",this.columns$=new zn.t([{label:"ID",formControlName:"codProcessoJuridico",fieldPath:"codProcessoJuridico"},{label:"Título",formControlName:"tituloProcessoJuridico",fieldPath:"tituloProcessoJuridico"},{label:"Número",formControlName:"numeroProcesso",fieldPath:"numeroProcesso"},{label:"Autor",fieldPath:"vtcentroCusto.nomeCc",formControlName:"codCc"},{label:"Réu",fieldPath:"reuJuridico.nomeReuJuridico",formControlName:"codReuJuridico"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codProcessoJuridico",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Título",formControlName:"tituloProcessoJuridico",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Número",formControlName:"numeroProcesso",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Mask,inputMask:"9999999-99.9999.9.99.9999"},{label:"Autor",formControlName:"codCc",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeCc",optionValue:"codCc",filterBy:"nomeCc,cpfCliente",foreignEndpoint:"vt-centro-custo"},{label:"Réu",formControlName:"codReuJuridico",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeReuJuridico",optionValue:"codReuJuridico",foreignEndpoint:"reu-juridico"},{label:"Link",formControlName:"linkProcesso",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function ProcessoJuridicoService_Factory(te){return new(te||ProcessoJuridicoService)};static#t=this.ɵprov=fe.jDH({token:ProcessoJuridicoService,factory:ProcessoJuridicoService.ɵfac,providedIn:"root"})}return ProcessoJuridicoService})(),nb=(()=>{class ProcessoJuridicoComponent{constructor(){this.processoJuridicoService=(0,fe.WQX)(eb)}header(){return"Processos Jurídicos"}icon(){return"fa-light fa-file-contract"}static#e=this.ɵfac=function ProcessoJuridicoComponent_Factory(te){return new(te||ProcessoJuridicoComponent)};static#t=this.ɵcmp=fe.VBU({type:ProcessoJuridicoComponent,selectors:[["br-list-processo-juridico"]],standalone:!0,features:[fe.Jv_([eb]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function ProcessoJuridicoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.processoJuridicoService)},dependencies:[Kn.K]})}return ProcessoJuridicoComponent})(),ob=(()=>{class ReferenciaService extends Un.O7{constructor(){super("referencia"),this.brListName="Referência",this.brListNamePlural="Referências",this.columns$=new zn.t([{formControlName:"codReferencia",fieldPath:"codReferencia",label:"ID"},{formControlName:"nomeReferencia",fieldPath:"nomeReferencia",label:"Nome"},{formControlName:"nomeReduzido",fieldPath:"nomeReduzido",label:"Nome reduzido"},{formControlName:"dataInicio",fieldPath:"dataInicio",label:"Data inicial",typeColumn:Un.Ii.Date},{formControlName:"dataFim",fieldPath:"dataFim",label:"Data final",typeColumn:Un.Ii.Date}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codReferencia",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeReferencia",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Nome reduzido",formControlName:"nomeReduzido",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Data inicial",formControlName:"dataInicio",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Date},{label:"Data final",formControlName:"dataFim",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Date}]}]}static#e=this.ɵfac=function ReferenciaService_Factory(te){return new(te||ReferenciaService)};static#t=this.ɵprov=fe.jDH({token:ReferenciaService,factory:ReferenciaService.ɵfac,providedIn:"root"})}return ReferenciaService})(),rb=(()=>{class ReferenciaComponent{constructor(){this.referenciaService=(0,fe.WQX)(ob)}header(){return"Referências de Data"}icon(){return"fa-light fa-calendars"}static#e=this.ɵfac=function ReferenciaComponent_Factory(te){return new(te||ReferenciaComponent)};static#t=this.ɵcmp=fe.VBU({type:ReferenciaComponent,selectors:[["br-list-referencia"]],standalone:!0,features:[fe.Jv_([ob]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function ReferenciaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.referenciaService)},dependencies:[Kn.K]})}return ReferenciaComponent})(),db=(()=>{class RegiaoUfService extends Un.O7{constructor(){super("regiao-uf"),this.brListName="Região Estadual",this.brListNamePlural="Regiões Estaduais",this.columns$=new zn.t([{formControlName:"codRegiaoUf",fieldPath:"codRegiaoUf",label:"ID"},{formControlName:"nomeRegiaoUf",fieldPath:"nomeRegiaoUf",label:"Nome"},{fieldPath:"grupoPessoal.nomeGrupoPessoal",label:"Grupo para Atendimento Jurídico",formControlName:"codGrupoPessoal"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codRegiaoUf",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeRegiaoUf",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Grupo para Atendimento Jurídico",formControlName:"codGrupoPessoal",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeGrupoPessoal",optionValue:"codGrupoPessoal",foreignEndpoint:"grupo-pessoal"}]}]}static#e=this.ɵfac=function RegiaoUfService_Factory(te){return new(te||RegiaoUfService)};static#t=this.ɵprov=fe.jDH({token:RegiaoUfService,factory:RegiaoUfService.ɵfac,providedIn:"root"})}return RegiaoUfService})(),_b=(()=>{class RegiaoUfComponent{constructor(){this.regiaoUfService=(0,fe.WQX)(db)}header(){return"Regiões do Estado"}icon(){return"fa-light fa-map-pin"}static#e=this.ɵfac=function RegiaoUfComponent_Factory(te){return new(te||RegiaoUfComponent)};static#t=this.ɵcmp=fe.VBU({type:RegiaoUfComponent,selectors:[["br-list-regiao-uf"]],standalone:!0,features:[fe.Jv_([db]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function RegiaoUfComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.regiaoUfService)},dependencies:[Kn.K]})}return RegiaoUfComponent})(),vb=(()=>{class RegionalService extends Un.O7{constructor(){super("regional"),this.brListName="Regional",this.brListNamePlural="Regionais",this.columns$=new zn.t([{formControlName:"codRegional",fieldPath:"codRegional",label:"ID"},{formControlName:"nomeRegional",fieldPath:"nomeRegional",label:"Nome"},{fieldPath:"diretoriaRegional.nomeDiretoriaRegional",label:"Diretoria",formControlName:"codDiretoriaRegional"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codRegional",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeRegional",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Diretoria Regional",formControlName:"codDiretoriaRegional",control:new an.MJ(null,an.k0.required),typeInput:Un.St.ForeignKey,optionLabel:"nomeDiretoriaRegional",optionValue:"codDiretoriaRegional",foreignEndpoint:"diretoria-regional"}]}]}static#e=this.ɵfac=function RegionalService_Factory(te){return new(te||RegionalService)};static#t=this.ɵprov=fe.jDH({token:RegionalService,factory:RegionalService.ɵfac,providedIn:"root"})}return RegionalService})(),Db=(()=>{class RegionalComponent{constructor(){this.regionalService=(0,fe.WQX)(vb)}header(){return"Regionais"}icon(){return"fa-light fa-map-location-dot"}static#e=this.ɵfac=function RegionalComponent_Factory(te){return new(te||RegionalComponent)};static#t=this.ɵcmp=fe.VBU({type:RegionalComponent,selectors:[["br-list-regional"]],standalone:!0,features:[fe.Jv_([vb]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function RegionalComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.regionalService)},dependencies:[Kn.K]})}return RegionalComponent})(),Eb=(()=>{class ReuJuridicoService extends Un.O7{constructor(){super("reu-juridico"),this.brListName="Réu Jurídico",this.brListNamePlural="Réus Jurídicos",this.columns$=new zn.t([{formControlName:"codReuJuridico",fieldPath:"codReuJuridico",label:"ID"},{formControlName:"nomeReuJuridico",fieldPath:"nomeReuJuridico",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codReuJuridico",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeReuJuridico",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function ReuJuridicoService_Factory(te){return new(te||ReuJuridicoService)};static#t=this.ɵprov=fe.jDH({token:ReuJuridicoService,factory:ReuJuridicoService.ɵfac,providedIn:"root"})}return ReuJuridicoService})(),Lb=(()=>{class ReuJuridicoComponent{constructor(){this.reuJuridicoService=(0,fe.WQX)(Eb)}header(){return"Réus"}icon(){return"fa-light fa-user-group-simple"}static#e=this.ɵfac=function ReuJuridicoComponent_Factory(te){return new(te||ReuJuridicoComponent)};static#t=this.ɵcmp=fe.VBU({type:ReuJuridicoComponent,selectors:[["br-list-reu-juridico"]],standalone:!0,features:[fe.Jv_([Eb]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function ReuJuridicoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.reuJuridicoService)},dependencies:[Kn.K]})}return ReuJuridicoComponent})(),Ob=(()=>{class SexoService extends Un.O7{constructor(){super("sexo"),this.brListName="Sexo",this.brListNamePlural="Sexos",this.columns$=new zn.t([{formControlName:"codSexo",fieldPath:"codSexo",label:"ID"},{formControlName:"nomeSexo",fieldPath:"nomeSexo",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codSexo",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeSexo",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function SexoService_Factory(te){return new(te||SexoService)};static#t=this.ɵprov=fe.jDH({token:SexoService,factory:SexoService.ɵfac,providedIn:"root"})}return SexoService})(),Pb=(()=>{class SexoComponent{constructor(){this.sexoService=(0,fe.WQX)(Ob)}header(){return"Gêneros"}icon(){return"fa-light fa-venus-mars"}static#e=this.ɵfac=function SexoComponent_Factory(te){return new(te||SexoComponent)};static#t=this.ɵcmp=fe.VBU({type:SexoComponent,selectors:[["br-list-sexo"]],standalone:!0,features:[fe.Jv_([Ob]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function SexoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.sexoService)},dependencies:[Kn.K]})}return SexoComponent})(),qb=(()=>{class SituacaoFinanceiraService extends Un.O7{constructor(){super("situacao-financeira"),this.brListName="Situação Financeira",this.brListNamePlural="Situações Financeiras",this.columns$=new zn.t([{formControlName:"codSituacaoFinanceira",fieldPath:"codSituacaoFinanceira",label:"ID"},{formControlName:"nomeSituacaoFinanceira",fieldPath:"nomeSituacaoFinanceira",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codSituacaoFinanceira",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeSituacaoFinanceira",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function SituacaoFinanceiraService_Factory(te){return new(te||SituacaoFinanceiraService)};static#t=this.ɵprov=fe.jDH({token:SituacaoFinanceiraService,factory:SituacaoFinanceiraService.ɵfac,providedIn:"root"})}return SituacaoFinanceiraService})(),Yb=(()=>{class SituacaoFinanceiraComponent{constructor(){this.situacaoFinanceiraService=(0,fe.WQX)(qb)}header(){return"Situações Financeiras"}icon(){return"fa-light fa-money-bill-wave"}static#e=this.ɵfac=function SituacaoFinanceiraComponent_Factory(te){return new(te||SituacaoFinanceiraComponent)};static#t=this.ɵcmp=fe.VBU({type:SituacaoFinanceiraComponent,selectors:[["br-list-situacao-financeira"]],standalone:!0,features:[fe.Jv_([qb]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function SituacaoFinanceiraComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.situacaoFinanceiraService)},dependencies:[Kn.K]})}return SituacaoFinanceiraComponent})(),Xb=(()=>{class SolicitacaoMembroService extends Un.O7{constructor(){super("solicitacao-membro"),this.brListName="Solicitação de Membro",this.brListNamePlural="Solicitações de Membro",this.columns$=new zn.t([{formControlName:"codSolicitacaoMembro",fieldPath:"codSolicitacaoMembro",label:"ID"},{formControlName:"nomeSolicitacaoMembro",fieldPath:"nomeSolicitacaoMembro",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codSolicitacaoMembro",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeSolicitacaoMembro",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Modelo de e-mail criação",formControlName:"codModeloEmailCriacao",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeModeloEmail",optionValue:"codModeloEmail",foreignEndpoint:"modelo-email"},{label:"Modelo de e-mail aceite",formControlName:"codModeloEmailAceite",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeModeloEmail",optionValue:"codModeloEmail",foreignEndpoint:"modelo-email"},{label:"Modelo de e-mail recusa",formControlName:"codModeloEmailNaoAceite",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeModeloEmail",optionValue:"codModeloEmail",foreignEndpoint:"modelo-email"},{label:"Modelo de e-mail pós-pendente",formControlName:"codModeloEmailPosPendente",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeModeloEmail",optionValue:"codModeloEmail",foreignEndpoint:"modelo-email"}]}]}static#e=this.ɵfac=function SolicitacaoMembroService_Factory(te){return new(te||SolicitacaoMembroService)};static#t=this.ɵprov=fe.jDH({token:SolicitacaoMembroService,factory:SolicitacaoMembroService.ɵfac,providedIn:"root"})}return SolicitacaoMembroService})(),Kb=(()=>{class SolicitacaoMembroComponent{constructor(){this.solicitacaoMembroService=(0,fe.WQX)(Xb)}header(){return"Tipos de Solicitação"}icon(){return"fa-light fa-tags text-2xl"}static#e=this.ɵfac=function SolicitacaoMembroComponent_Factory(te){return new(te||SolicitacaoMembroComponent)};static#t=this.ɵcmp=fe.VBU({type:SolicitacaoMembroComponent,selectors:[["br-list-solicitacao-membro"]],standalone:!0,features:[fe.Jv_([Xb]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function SolicitacaoMembroComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.solicitacaoMembroService)},dependencies:[Kn.K]})}return SolicitacaoMembroComponent})(),Qb=(()=>{class StatusAtalhoService extends Un.O7{constructor(){super("status-atalho"),this.brListName="Status atalho",this.brListNamePlural="Status atalho",this.columns$=new zn.t([{formControlName:"codStatusAtalho",fieldPath:"codStatusAtalho",label:"ID"},{formControlName:"nomeStatusAtalho",fieldPath:"nomeStatusAtalho",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codStatusAtalho",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeStatusAtalho",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function StatusAtalhoService_Factory(te){return new(te||StatusAtalhoService)};static#t=this.ɵprov=fe.jDH({token:StatusAtalhoService,factory:StatusAtalhoService.ɵfac,providedIn:"root"})}return StatusAtalhoService})(),Jb=(()=>{class StatusAtalhoComponent{constructor(){this.statusAtalhoService=(0,fe.WQX)(Qb)}header(){return"Status atalho"}icon(){return"fa-light fa-bars"}static#e=this.ɵfac=function StatusAtalhoComponent_Factory(te){return new(te||StatusAtalhoComponent)};static#t=this.ɵcmp=fe.VBU({type:StatusAtalhoComponent,selectors:[["br-list-status-acesso-usuario"]],standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function StatusAtalhoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.statusAtalhoService)},dependencies:[Kn.K]})}return StatusAtalhoComponent})(),eC=(()=>{class TipoClienteService extends Un.O7{constructor(){super("tipo-cliente"),this.brListName="Tipo de Cliente",this.brListNamePlural="Tipos de Cliente",this.columns$=new zn.t([{formControlName:"codTipoCliente",fieldPath:"codTipoCliente",label:"ID"},{formControlName:"nomeTipoCliente",fieldPath:"nomeTipoCliente",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codTipoCliente",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeTipoCliente",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function TipoClienteService_Factory(te){return new(te||TipoClienteService)};static#t=this.ɵprov=fe.jDH({token:TipoClienteService,factory:TipoClienteService.ɵfac,providedIn:"root"})}return TipoClienteService})(),tC=(()=>{class TipoClienteComponent{constructor(){this.tipoClienteService=(0,fe.WQX)(eC)}header(){return"Tipos de Pessoa"}icon(){return"fa-light fa-user-group"}static#e=this.ɵfac=function TipoClienteComponent_Factory(te){return new(te||TipoClienteComponent)};static#t=this.ɵcmp=fe.VBU({type:TipoClienteComponent,selectors:[["br-list-tipo-cliente"]],standalone:!0,features:[fe.Jv_([eC]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function TipoClienteComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.tipoClienteService)},dependencies:[Kn.K]})}return TipoClienteComponent})(),nC=(()=>{class TipoFornecedorService extends Un.O7{constructor(){super("tipo-fornecedor"),this.brListName="Tipo de Fornecedor",this.brListNamePlural="Tipos de Fornecedor",this.columns$=new zn.t([{formControlName:"codTipoFornecedor",fieldPath:"codTipoFornecedor",label:"ID"},{formControlName:"nomeTipoFornecedor",fieldPath:"nomeTipoFornecedor",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codTipoFornecedor",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeTipoFornecedor",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function TipoFornecedorService_Factory(te){return new(te||TipoFornecedorService)};static#t=this.ɵprov=fe.jDH({token:TipoFornecedorService,factory:TipoFornecedorService.ɵfac,providedIn:"root"})}return TipoFornecedorService})(),iC=(()=>{class TipoFornecedorComponent{constructor(){this.tipoFornecedorService=(0,fe.WQX)(nC)}header(){return"Tipos de Fornecedor"}icon(){return"fa-light fa-hands-holding"}static#e=this.ɵfac=function TipoFornecedorComponent_Factory(te){return new(te||TipoFornecedorComponent)};static#t=this.ɵcmp=fe.VBU({type:TipoFornecedorComponent,selectors:[["br-list-tipo-fornecedor"]],standalone:!0,features:[fe.Jv_([nC]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function TipoFornecedorComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.tipoFornecedorService)},dependencies:[Kn.K]})}return TipoFornecedorComponent})(),oC=(()=>{class TipoLancService extends Un.O7{constructor(){super("tipo-lanc"),this.brListName="Tipo de Lançamento",this.brListNamePlural="Tipos de Lançamento",this.columns$=new zn.t([{formControlName:"codTipoLanc",fieldPath:"codTipoLanc",label:"ID"},{formControlName:"nomeTipoLanc",fieldPath:"nomeTipoLanc",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codTipoLanc",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeTipoLanc",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function TipoLancService_Factory(te){return new(te||TipoLancService)};static#t=this.ɵprov=fe.jDH({token:TipoLancService,factory:TipoLancService.ɵfac,providedIn:"root"})}return TipoLancService})(),rC=(()=>{class TipoLancComponent{constructor(){this.tipoLancService=(0,fe.WQX)(oC)}header(){return"Tipos de Lançamento"}icon(){return"fa-light fa-grid-2"}static#e=this.ɵfac=function TipoLancComponent_Factory(te){return new(te||TipoLancComponent)};static#t=this.ɵcmp=fe.VBU({type:TipoLancComponent,selectors:[["br-list-tipo-lanc"]],standalone:!0,features:[fe.Jv_([oC]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function TipoLancComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.tipoLancService)},dependencies:[Kn.K]})}return TipoLancComponent})(),aC=(()=>{class TipoMsgComuniqueService extends Un.O7{constructor(){super("tipo-msg-comunique"),this.brListName="Tipo de mensagem",this.brListNamePlural="Tipos de mensagem",this.columns$=new zn.t([{formControlName:"codTipoMsgComunique",fieldPath:"codTipoMsgComunique",label:"ID"},{formControlName:"nomeTipoMsgComunique",fieldPath:"nomeTipoMsgComunique",label:"Nome"},{formControlName:"labelLink",fieldPath:"labelLink",label:"Label link"},{formControlName:"urlLink",fieldPath:"urlLink",label:"URL link"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codTipoMsgComunique",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeTipoMsgComunique",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Label link",formControlName:"labelLink",control:new an.MJ(null),typeInput:Un.St.Text},{label:"URL link",formControlName:"urlLink",control:new an.MJ(null),typeInput:Un.St.Text},{showOnFilter:!1,label:"Formato da mensagem",formControlName:"codFormatoMsgComunique",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeFormatoMsgComunique",optionValue:"codFormatoMsgComunique",foreignEndpoint:"formato-msg-comunique"}]}]}static#e=this.ɵfac=function TipoMsgComuniqueService_Factory(te){return new(te||TipoMsgComuniqueService)};static#t=this.ɵprov=fe.jDH({token:TipoMsgComuniqueService,factory:TipoMsgComuniqueService.ɵfac,providedIn:"root"})}return TipoMsgComuniqueService})(),sC=(()=>{class TipoMsgComuniqueComponent{constructor(){this.tipoMsgComuniqueService=(0,fe.WQX)(aC)}header(){return"Tipos de Mensagem"}icon(){return"fa-light fa-mobile"}static#e=this.ɵfac=function TipoMsgComuniqueComponent_Factory(te){return new(te||TipoMsgComuniqueComponent)};static#t=this.ɵcmp=fe.VBU({type:TipoMsgComuniqueComponent,selectors:[["br-list-tipo-msg-comunique"]],standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function TipoMsgComuniqueComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.tipoMsgComuniqueService)},dependencies:[Kn.K]})}return TipoMsgComuniqueComponent})(),lC=(()=>{class TipoPessoaEmpresaService extends Un.O7{constructor(){super("tipo-pessoa-empresa"),this.brListName="Tipo de Pessoa na Empresa",this.brListNamePlural="Tipos de Pessoa na Empresa",this.columns$=new zn.t([{label:"ID",formControlName:"codTipoPessoaEmpresa",fieldPath:"codTipoPessoaEmpresa"},{label:"Nome",formControlName:"nomeTipoPessoaEmpresa",fieldPath:"nomeTipoPessoaEmpresa"},{label:"Tipo de usuário",fieldPath:"lbrTipoUsuario.nomeTipoUsuario",formControlName:"codLbrTipoUsuario"},{label:"Grupo de acesso",fieldPath:"nbrGrupoAcesso.nomeNbrGrupoAcesso",formControlName:"codNbrGrupoAcesso"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codTipoPessoaEmpresa",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeTipoPessoaEmpresa",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text},{label:"Tipo de usuário",formControlName:"codLbrTipoUsuario",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeTipoUsuario",optionValue:"codLbrTipoUsuario",foreignEndpoint:"lbr-tipo-usuario"},{label:"Grupo de acesso",formControlName:"codNbrGrupoAcesso",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrGrupoAcesso",optionValue:"codNbrGrupoAcesso",foreignEndpoint:"nbr-grupo-acesso"}]}]}static#e=this.ɵfac=function TipoPessoaEmpresaService_Factory(te){return new(te||TipoPessoaEmpresaService)};static#t=this.ɵprov=fe.jDH({token:TipoPessoaEmpresaService,factory:TipoPessoaEmpresaService.ɵfac,providedIn:"root"})}return TipoPessoaEmpresaService})(),cC=(()=>{class TipoPessoaEmpresaComponent{constructor(){this.tipoPessoaEmpresaService=(0,fe.WQX)(lC)}header(){return"Tipos de Pessoa"}icon(){return"fa-light fa-user-group"}static#e=this.ɵfac=function TipoPessoaEmpresaComponent_Factory(te){return new(te||TipoPessoaEmpresaComponent)};static#t=this.ɵcmp=fe.VBU({type:TipoPessoaEmpresaComponent,selectors:[["br-list-tipo-pessoa-empresa"]],standalone:!0,features:[fe.Jv_([lC]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function TipoPessoaEmpresaComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.tipoPessoaEmpresaService)},dependencies:[Kn.K]})}return TipoPessoaEmpresaComponent})(),dC=(()=>{class TipoSangueService extends Un.O7{constructor(){super("tipo-sangue"),this.brListName="Tipo Sanguíneo",this.brListNamePlural="Tipos Sanguíneos",this.columns$=new zn.t([{formControlName:"codTipoSangue",fieldPath:"codTipoSangue",label:"ID"},{formControlName:"nomeTipoSangue",fieldPath:"nomeTipoSangue",label:"Nome"}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codTipoSangue",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Nome",formControlName:"nomeTipoSangue",control:new an.MJ(null,an.k0.required),typeInput:Un.St.Text}]}]}static#e=this.ɵfac=function TipoSangueService_Factory(te){return new(te||TipoSangueService)};static#t=this.ɵprov=fe.jDH({token:TipoSangueService,factory:TipoSangueService.ɵfac,providedIn:"root"})}return TipoSangueService})(),uC=(()=>{class TipoSangueComponent{constructor(){this.tipoSangueService=(0,fe.WQX)(dC)}header(){return"Tipos Sanguíneos"}icon(){return"fa-light fa-droplet"}static#e=this.ɵfac=function TipoSangueComponent_Factory(te){return new(te||TipoSangueComponent)};static#t=this.ɵcmp=fe.VBU({type:TipoSangueComponent,selectors:[["br-list-tipo-sangue"]],standalone:!0,features:[fe.Jv_([dC]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function TipoSangueComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.tipoSangueService)},dependencies:[Kn.K]})}return TipoSangueComponent})(),pC=(()=>{class AniversarianteRelatorioService extends Un.O7{constructor(){super("vt-centro-custo"),this.captionMembroService=(0,fe.WQX)($n.q),this.fixedFilters={codCategoriaCadastro:[1]},this.brListName=`${this.captionMembroService.transform("membro")}`,this.brListNamePlural=`${this.captionMembroService.transform("membro")}s`,this.columns$=new zn.t([]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"Nome completo",formControlName:"nomeCc",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Cargo",formControlName:"codCargoTrabalho",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeFuncao",optionValue:"codFuncao",foreignEndpoint:"funcao"},{label:this.captionMembroService.transform("Situação do membro"),formControlName:"codSituacaoCc",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeSituacaoCc",optionValue:"codSituacaoCc",foreignEndpoint:"ger-situacao-cc"},{showOnDetails:!1,label:"Mês de aniversário",formControlName:"mesAniversario",control:new an.MJ(null),typeInput:Un.St.Dropdown,dataList:[{name:"Janeiro",value:1},{name:"Fevereiro",value:2},{name:"Março",value:3},{name:"Abril",value:4},{name:"Maio",value:5},{name:"Junho",value:6},{name:"Julho",value:7},{name:"Agosto",value:8},{name:"Setembro",value:9},{name:"Outubro",value:10},{name:"Novembro",value:11},{name:"Dezembro",value:12}],optionLabel:"name",optionValue:"value"},{showOnDetails:!1,label:"Dia de aniversário",formControlName:"diaAniversario",control:new an.MJ(null),typeInput:Un.St.Dropdown,dataList:Array.from({length:31},((te,ne)=>({day:ne+1}))),optionLabel:"day",optionValue:"day"}]}]}static#e=this.ɵfac=function AniversarianteRelatorioService_Factory(te){return new(te||AniversarianteRelatorioService)};static#t=this.ɵprov=fe.jDH({token:AniversarianteRelatorioService,factory:AniversarianteRelatorioService.ɵfac,providedIn:"root"})}return AniversarianteRelatorioService})(),hC=(()=>{class AniversarianteRelatorioComponent{constructor(){this.membroRelatorioService=(0,fe.WQX)(pC),this.tabRef=(0,fe.WQX)(Ig.l)}header(){return $n.q.instancia.transform("Relatório de Aniversariantes")}icon(){return"fa-light fa-fw fa-calendar-circle-user"}static#e=this.ɵfac=function AniversarianteRelatorioComponent_Factory(te){return new(te||AniversarianteRelatorioComponent)};static#t=this.ɵcmp=fe.VBU({type:AniversarianteRelatorioComponent,selectors:[["ng-component"]],standalone:!0,features:[fe.aNF],decls:1,vars:2,consts:[["rotina","AniversarianteDbRelDm",3,"brListService","tabRef"]],template:function AniversarianteRelatorioComponent_Template(te,ne){1&te&&fe.nrm(0,"br-relatorio",0),2&te&&fe.Y8G("brListService",ne.membroRelatorioService)("tabRef",ne.tabRef)},dependencies:[hg]})}return AniversarianteRelatorioComponent})(),mC=(()=>{class VtCentroCustoRelatorioService extends no{static#e=this.ɵfac=(()=>{let te;return function VtCentroCustoRelatorioService_Factory(ne){return(te||(te=fe.xGo(VtCentroCustoRelatorioService)))(ne||VtCentroCustoRelatorioService)}})();static#t=this.ɵprov=fe.jDH({token:VtCentroCustoRelatorioService,factory:VtCentroCustoRelatorioService.ɵfac,providedIn:"root"})}return VtCentroCustoRelatorioService})(),gC=(()=>{class MembroRelatorioComponent{constructor(){this.membroRelatorioService=(0,fe.WQX)(mC),this.tabRef=(0,fe.WQX)(Ig.l)}header(){return $n.q.instancia.transform("Relatórios de Membro")}icon(){return"fa-light fa-fw fa-file-user"}static#e=this.ɵfac=function MembroRelatorioComponent_Factory(te){return new(te||MembroRelatorioComponent)};static#t=this.ɵcmp=fe.VBU({type:MembroRelatorioComponent,selectors:[["ng-component"]],standalone:!0,features:[fe.aNF],decls:1,vars:2,consts:[["rotina","MembroDbRelDm",3,"brListService","tabRef"]],template:function MembroRelatorioComponent_Template(te,ne){1&te&&fe.nrm(0,"br-relatorio",0),2&te&&fe.Y8G("brListService",ne.membroRelatorioService)("tabRef",ne.tabRef)},dependencies:[hg]})}return MembroRelatorioComponent})(),fC=(()=>{class RecadastramentoService extends eo{constructor(){super(...arguments),this.fixedFilters={codCategoriaCadastro:[2],codSolicitacaoMembro:[3]},this.brListName="Recadastramento",this.brListNamePlural="Recadastramentos"}static#e=this.ɵfac=(()=>{let te;return function RecadastramentoService_Factory(ne){return(te||(te=fe.xGo(RecadastramentoService)))(ne||RecadastramentoService)}})();static#t=this.ɵprov=fe.jDH({token:RecadastramentoService,factory:RecadastramentoService.ɵfac,providedIn:"root"})}return RecadastramentoService})(),bC=(()=>{class RecadastramentoListComponent{constructor(){this.recadastramentoService=(0,fe.WQX)(fC)}header(){return"Recadastramentos"}icon(){return"fa-light fa-user-tag"}static#e=this.ɵfac=function RecadastramentoListComponent_Factory(te){return new(te||RecadastramentoListComponent)};static#t=this.ɵcmp=fe.VBU({type:RecadastramentoListComponent,selectors:[["br-list-recadastramento"]],standalone:!0,features:[fe.Jv_([fC]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function RecadastramentoListComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.recadastramentoService)},dependencies:[Kn.K],styles:['@charset "UTF-8";[_nghost-%COMP%]     .solicitacao-aceita td[data-labelColumn="Nome completo"] span{color:#00a73e}[_nghost-%COMP%]     .solicitacao-aceita .p-tag{background-color:#22c55e}[_nghost-%COMP%]     .solicitacao-nao-aceita td[data-labelColumn="Nome completo"] span{color:red}[_nghost-%COMP%]     .solicitacao-nao-aceita .p-tag{background-color:#ef4444}[_nghost-%COMP%]     .associacao td[data-labelColumn=Solicita\\e7\\e3o] span{color:#00a73e}[_nghost-%COMP%]     .desassociacao td[data-labelColumn=Solicita\\e7\\e3o] span{color:red}[_nghost-%COMP%]     .recadastramento td[data-labelColumn=Solicita\\e7\\e3o] span{color:#e55c00}[_nghost-%COMP%]     .pendente td[data-labelColumn="Nome completo"] span{color:#e55c00}  .nao-aceitar-solicitacao-menu-mais .p-menuitem-link{background-color:#ef4444;margin-bottom:5px}  .nao-aceitar-solicitacao-menu-mais .p-menuitem-link:hover{background-color:#e04040!important}  .aceitar-solicitacao-menu-mais .p-menuitem-link{background-color:#22c55e;margin-bottom:5px}  .aceitar-solicitacao-menu-mais .p-menuitem-link:hover{background-color:#24ac56!important}[_nghost-%COMP%]     .filiado-nome td[data-labelColumn="Nome completo"] span{color:#185e32}[_nghost-%COMP%]     .desligado-nome td[data-labelColumn="Nome completo"] span{color:#b90000}[_nghost-%COMP%]     .pendente-nome td[data-labelColumn="Nome completo"] span{color:#e55c00}[_nghost-%COMP%]     .filiado .p-tag{background-color:#277945}[_nghost-%COMP%]     .desligado .p-tag{background-color:#a52424}[_nghost-%COMP%]     .pendente .p-tag{background-color:#ff8533}']})}return RecadastramentoListComponent})(),CC=(()=>{class VtCidadeComponent{constructor(){this.vtCidadeService=(0,fe.WQX)(ta)}header(){return"Cidades"}icon(){return"fa-light fa-house-building"}static#e=this.ɵfac=function VtCidadeComponent_Factory(te){return new(te||VtCidadeComponent)};static#t=this.ɵcmp=fe.VBU({type:VtCidadeComponent,selectors:[["br-list-vt-cidade"]],standalone:!0,features:[fe.Jv_([ta]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function VtCidadeComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.vtCidadeService)},dependencies:[Kn.K]})}return VtCidadeComponent})(),vC=(()=>{class VtEstadoComponent{constructor(){this.vtEstadoService=(0,fe.WQX)(sp)}header(){return"Estados"}icon(){return"fa-light fa-location-dot"}static#e=this.ɵfac=function VtEstadoComponent_Factory(te){return new(te||VtEstadoComponent)};static#t=this.ɵcmp=fe.VBU({type:VtEstadoComponent,selectors:[["br-list-vt-estado"]],standalone:!0,features:[fe.Jv_([sp]),fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function VtEstadoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.vtEstadoService)},dependencies:[Kn.K]})}return VtEstadoComponent})();var yC,wC,AC,IC,SC,TC,DC,xC,EC,MC={},NC=[],LC=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(te,ne){for(var ie in ne)te[ie]=ne[ie];return te}function v(te){var ne=te.parentNode;ne&&ne.removeChild(te)}function y(te,ne,ie){var re,le,ce,de={};for(ce in ne)"key"==ce?re=ne[ce]:"ref"==ce?le=ne[ce]:de[ce]=ne[ce];if(arguments.length>2&&(de.children=arguments.length>3?yC.call(arguments,2):ie),"function"==typeof te&&null!=te.defaultProps)for(ce in te.defaultProps)void 0===de[ce]&&(de[ce]=te.defaultProps[ce]);return p(te,de,re,le,null)}function p(te,ne,ie,re,le){var ce={type:te,props:ne,key:ie,ref:re,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==le?++AC:le};return null==le&&null!=wC.vnode&&wC.vnode(ce),ce}function _(te){return te.children}function b(te,ne,ie){"-"===ne[0]?te.setProperty(ne,null==ie?"":ie):te[ne]=null==ie?"":"number"!=typeof ie||LC.test(ne)?ie:ie+"px"}function g(te,ne,ie,re,le){var ce;e:if("style"===ne)if("string"==typeof ie)te.style.cssText=ie;else{if("string"==typeof re&&(te.style.cssText=re=""),re)for(ne in re)ie&&ne in ie||b(te.style,ne,"");if(ie)for(ne in ie)re&&ie[ne]===re[ne]||b(te.style,ne,ie[ne])}else if("o"===ne[0]&&"n"===ne[1])ce=ne!==(ne=ne.replace(/Capture$/,"")),ne=ne.toLowerCase()in te?ne.toLowerCase().slice(2):ne.slice(2),te.l||(te.l={}),te.l[ne+ce]=ie,ie?re||te.addEventListener(ne,ce?w:m,ce):te.removeEventListener(ne,ce?w:m,ce);else if("dangerouslySetInnerHTML"!==ne){if(le)ne=ne.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==ne&&"height"!==ne&&"href"!==ne&&"list"!==ne&&"form"!==ne&&"tabIndex"!==ne&&"download"!==ne&&ne in te)try{te[ne]=null==ie?"":ie;break e}catch(te){}"function"==typeof ie||(null==ie||!1===ie&&-1==ne.indexOf("-")?te.removeAttribute(ne):te.setAttribute(ne,ie))}}function m(te){SC=!0;try{return this.l[te.type+!1](wC.event?wC.event(te):te)}finally{SC=!1}}function w(te){SC=!0;try{return this.l[te.type+!0](wC.event?wC.event(te):te)}finally{SC=!1}}function x(te,ne){this.props=te,this.context=ne}function A(te,ne){if(null==ne)return te.__?A(te.__,te.__.__k.indexOf(te)+1):null;for(var ie;ne<te.__k.length;ne++)if(null!=(ie=te.__k[ne])&&null!=ie.__e)return ie.__e;return"function"==typeof te.type?A(te):null}function P(te){var ne,ie;if(null!=(te=te.__)&&null!=te.__c){for(te.__e=te.__c.base=null,ne=0;ne<te.__k.length;ne++)if(null!=(ie=te.__k[ne])&&null!=ie.__e){te.__e=te.__c.base=ie.__e;break}return P(te)}}function C(te){SC?setTimeout(te):xC(te)}function T(te){(!te.__d&&(te.__d=!0)&&TC.push(te)&&!$.__r++||DC!==wC.debounceRendering)&&((DC=wC.debounceRendering)||C)($)}function $(){var te,ne,ie,re,le,ce,de,ue;for(TC.sort((function(te,ne){return te.__v.__b-ne.__v.__b}));te=TC.shift();)te.__d&&(ne=TC.length,re=void 0,le=void 0,de=(ce=(ie=te).__v).__e,(ue=ie.__P)&&(re=[],(le=h({},ce)).__v=ce.__v+1,M(ue,ce,le,ie.__n,void 0!==ue.ownerSVGElement,null!=ce.__h?[de]:null,re,null==de?A(ce):de,ce.__h),N(re,ce),ce.__e!=de&&P(ce)),TC.length>ne&&TC.sort((function(te,ne){return te.__v.__b-ne.__v.__b})));$.__r=0}function H(te,ne,ie,re,le,ce,de,ue,me,ge){var fe,_e,be,Ce,ye,we,ke,Se=re&&re.__k||NC,xe=Se.length;for(ie.__k=[],fe=0;fe<ne.length;fe++)if(null!=(Ce=ie.__k[fe]=null==(Ce=ne[fe])||"boolean"==typeof Ce?null:"string"==typeof Ce||"number"==typeof Ce||"bigint"==typeof Ce?p(null,Ce,null,null,Ce):Array.isArray(Ce)?p(_,{children:Ce},null,null,null):Ce.__b>0?p(Ce.type,Ce.props,Ce.key,Ce.ref?Ce.ref:null,Ce.__v):Ce)){if(Ce.__=ie,Ce.__b=ie.__b+1,null===(be=Se[fe])||be&&Ce.key==be.key&&Ce.type===be.type)Se[fe]=void 0;else for(_e=0;_e<xe;_e++){if((be=Se[_e])&&Ce.key==be.key&&Ce.type===be.type){Se[_e]=void 0;break}be=null}M(te,Ce,be=be||MC,le,ce,de,ue,me,ge),ye=Ce.__e,(_e=Ce.ref)&&be.ref!=_e&&(ke||(ke=[]),be.ref&&ke.push(be.ref,null,Ce),ke.push(_e,Ce.__c||ye,Ce)),null!=ye?(null==we&&(we=ye),"function"==typeof Ce.type&&Ce.__k===be.__k?Ce.__d=me=I(Ce,me,te):me=z(te,Ce,be,Se,ye,me),"function"==typeof ie.type&&(ie.__d=me)):me&&be.__e==me&&me.parentNode!=te&&(me=A(be))}for(ie.__e=we,fe=xe;fe--;)null!=Se[fe]&&("function"==typeof ie.type&&null!=Se[fe].__e&&Se[fe].__e==ie.__d&&(ie.__d=L(re).nextSibling),q(Se[fe],Se[fe]));if(ke)for(fe=0;fe<ke.length;fe++)S(ke[fe],ke[++fe],ke[++fe])}function I(te,ne,ie){for(var re,le=te.__k,ce=0;le&&ce<le.length;ce++)(re=le[ce])&&(re.__=te,ne="function"==typeof re.type?I(re,ne,ie):z(ie,re,re,le,re.__e,ne));return ne}function j(te,ne){return ne=ne||[],null==te||"boolean"==typeof te||(Array.isArray(te)?te.some((function(te){j(te,ne)})):ne.push(te)),ne}function z(te,ne,ie,re,le,ce){var de,ue,me;if(void 0!==ne.__d)de=ne.__d,ne.__d=void 0;else if(null==ie||le!=ce||null==le.parentNode)e:if(null==ce||ce.parentNode!==te)te.appendChild(le),de=null;else{for(ue=ce,me=0;(ue=ue.nextSibling)&&me<re.length;me+=1)if(ue==le)break e;te.insertBefore(le,ce),de=ce}return void 0!==de?de:le.nextSibling}function L(te){var ne,ie,re;if(null==te.type||"string"==typeof te.type)return te.__e;if(te.__k)for(ne=te.__k.length-1;ne>=0;ne--)if((ie=te.__k[ne])&&(re=L(ie)))return re;return null}function M(te,ne,ie,re,le,ce,de,ue,me){var ge,fe,_e,be,Ce,ye,we,ke,Se,xe,Ee,Me,Ne,Re,Le,Oe=ne.type;if(void 0!==ne.constructor)return null;null!=ie.__h&&(me=ie.__h,ue=ne.__e=ie.__e,ne.__h=null,ce=[ue]),(ge=wC.__b)&&ge(ne);try{e:if("function"==typeof Oe){if(ke=ne.props,Se=(ge=Oe.contextType)&&re[ge.__c],xe=ge?Se?Se.props.value:ge.__:re,ie.__c?we=(fe=ne.__c=ie.__c).__=fe.__E:("prototype"in Oe&&Oe.prototype.render?ne.__c=fe=new Oe(ke,xe):(ne.__c=fe=new x(ke,xe),fe.constructor=Oe,fe.render=B),Se&&Se.sub(fe),fe.props=ke,fe.state||(fe.state={}),fe.context=xe,fe.__n=re,_e=fe.__d=!0,fe.__h=[],fe._sb=[]),null==fe.__s&&(fe.__s=fe.state),null!=Oe.getDerivedStateFromProps&&(fe.__s==fe.state&&(fe.__s=h({},fe.__s)),h(fe.__s,Oe.getDerivedStateFromProps(ke,fe.__s))),be=fe.props,Ce=fe.state,fe.__v=ne,_e)null==Oe.getDerivedStateFromProps&&null!=fe.componentWillMount&&fe.componentWillMount(),null!=fe.componentDidMount&&fe.__h.push(fe.componentDidMount);else{if(null==Oe.getDerivedStateFromProps&&ke!==be&&null!=fe.componentWillReceiveProps&&fe.componentWillReceiveProps(ke,xe),!fe.__e&&null!=fe.shouldComponentUpdate&&!1===fe.shouldComponentUpdate(ke,fe.__s,xe)||ne.__v===ie.__v){for(ne.__v!==ie.__v&&(fe.props=ke,fe.state=fe.__s,fe.__d=!1),ne.__e=ie.__e,ne.__k=ie.__k,ne.__k.forEach((function(te){te&&(te.__=ne)})),Ee=0;Ee<fe._sb.length;Ee++)fe.__h.push(fe._sb[Ee]);fe._sb=[],fe.__h.length&&de.push(fe);break e}null!=fe.componentWillUpdate&&fe.componentWillUpdate(ke,fe.__s,xe),null!=fe.componentDidUpdate&&fe.__h.push((function(){fe.componentDidUpdate(be,Ce,ye)}))}if(fe.context=xe,fe.props=ke,fe.__P=te,Me=wC.__r,Ne=0,"prototype"in Oe&&Oe.prototype.render){for(fe.state=fe.__s,fe.__d=!1,Me&&Me(ne),ge=fe.render(fe.props,fe.state,fe.context),Re=0;Re<fe._sb.length;Re++)fe.__h.push(fe._sb[Re]);fe._sb=[]}else do{fe.__d=!1,Me&&Me(ne),ge=fe.render(fe.props,fe.state,fe.context),fe.state=fe.__s}while(fe.__d&&++Ne<25);fe.state=fe.__s,null!=fe.getChildContext&&(re=h(h({},re),fe.getChildContext())),_e||null==fe.getSnapshotBeforeUpdate||(ye=fe.getSnapshotBeforeUpdate(be,Ce)),Le=null!=ge&&ge.type===_&&null==ge.key?ge.props.children:ge,H(te,Array.isArray(Le)?Le:[Le],ne,ie,re,le,ce,de,ue,me),fe.base=ne.__e,ne.__h=null,fe.__h.length&&de.push(fe),we&&(fe.__E=fe.__=null),fe.__e=!1}else null==ce&&ne.__v===ie.__v?(ne.__k=ie.__k,ne.__e=ie.__e):ne.__e=O(ie.__e,ne,ie,re,le,ce,de,me);(ge=wC.diffed)&&ge(ne)}catch(te){ne.__v=null,(me||null!=ce)&&(ne.__e=ue,ne.__h=!!me,ce[ce.indexOf(ue)]=null),wC.__e(te,ne,ie)}}function N(te,ne){wC.__c&&wC.__c(ne,te),te.some((function(ne){try{te=ne.__h,ne.__h=[],te.some((function(te){te.call(ne)}))}catch(te){wC.__e(te,ne.__v)}}))}function O(te,ne,ie,re,le,ce,de,ue){var me,ge,fe,_e=ie.props,be=ne.props,Ce=ne.type,ye=0;if("svg"===Ce&&(le=!0),null!=ce)for(;ye<ce.length;ye++)if((me=ce[ye])&&"setAttribute"in me==!!Ce&&(Ce?me.localName===Ce:3===me.nodeType)){te=me,ce[ye]=null;break}if(null==te){if(null===Ce)return document.createTextNode(be);te=le?document.createElementNS("http://www.w3.org/2000/svg",Ce):document.createElement(Ce,be.is&&be),ce=null,ue=!1}if(null===Ce)_e===be||ue&&te.data===be||(te.data=be);else{if(ce=ce&&yC.call(te.childNodes),ge=(_e=ie.props||MC).dangerouslySetInnerHTML,fe=be.dangerouslySetInnerHTML,!ue){if(null!=ce)for(_e={},ye=0;ye<te.attributes.length;ye++)_e[te.attributes[ye].name]=te.attributes[ye].value;(fe||ge)&&(fe&&(ge&&fe.__html==ge.__html||fe.__html===te.innerHTML)||(te.innerHTML=fe&&fe.__html||""))}if(function k(te,ne,ie,re,le){var ce;for(ce in ie)"children"===ce||"key"===ce||ce in ne||g(te,ce,null,ie[ce],re);for(ce in ne)le&&"function"!=typeof ne[ce]||"children"===ce||"key"===ce||"value"===ce||"checked"===ce||ie[ce]===ne[ce]||g(te,ce,ne[ce],ie[ce],re)}(te,be,_e,le,ue),fe)ne.__k=[];else if(ye=ne.props.children,H(te,Array.isArray(ye)?ye:[ye],ne,ie,re,le&&"foreignObject"!==Ce,ce,de,ce?ce[0]:ie.__k&&A(ie,0),ue),null!=ce)for(ye=ce.length;ye--;)null!=ce[ye]&&v(ce[ye]);ue||("value"in be&&void 0!==(ye=be.value)&&(ye!==te.value||"progress"===Ce&&!ye||"option"===Ce&&ye!==_e.value)&&g(te,"value",ye,_e.value,!1),"checked"in be&&void 0!==(ye=be.checked)&&ye!==te.checked&&g(te,"checked",ye,_e.checked,!1))}return te}function S(te,ne,ie){try{"function"==typeof te?te(ne):te.current=ne}catch(te){wC.__e(te,ie)}}function q(te,ne,ie){var re,le;if(wC.unmount&&wC.unmount(te),(re=te.ref)&&(re.current&&re.current!==te.__e||S(re,null,ne)),null!=(re=te.__c)){if(re.componentWillUnmount)try{re.componentWillUnmount()}catch(te){wC.__e(te,ne)}re.base=re.__P=null,te.__c=void 0}if(re=te.__k)for(le=0;le<re.length;le++)re[le]&&q(re[le],ne,ie||"function"!=typeof te.type);ie||null==te.__e||v(te.__e),te.__=te.__e=te.__d=void 0}function B(te,ne,ie){return this.constructor(te,ie)}function D(te,ne,ie){var re,le,ce;wC.__&&wC.__(te,ne),le=(re="function"==typeof ie)?null:ie&&ie.__k||ne.__k,ce=[],M(ne,te=(!re&&ie||ne).__k=y(_,null,[te]),le||MC,MC,void 0!==ne.ownerSVGElement,!re&&ie?[ie]:le?null:ne.firstChild?yC.call(ne.childNodes):null,ce,!re&&ie?ie:le?le.__e:ne.firstChild,re),N(ce,te)}function G(te,ne){var ie={__c:ne="__cC"+EC++,__:te,Consumer:function(te,ne){return te.children(ne)},Provider:function(te){var ie,re;return this.getChildContext||(ie=[],(re={})[ne]=this,this.getChildContext=function(){return re},this.shouldComponentUpdate=function(te){this.props.value!==te.value&&ie.some((function(te){te.__e=!0,T(te)}))},this.sub=function(te){ie.push(te);var ne=te.componentWillUnmount;te.componentWillUnmount=function(){ie.splice(ie.indexOf(te),1),ne&&ne.call(te)}}),te.children}};return ie.Provider.__=ie.Consumer.contextType=ie}yC=NC.slice,wC={__e:function(te,ne,ie,re){for(var le,ce,de;ne=ne.__;)if((le=ne.__c)&&!le.__)try{if((ce=le.constructor)&&null!=ce.getDerivedStateFromError&&(le.setState(ce.getDerivedStateFromError(te)),de=le.__d),null!=le.componentDidCatch&&(le.componentDidCatch(te,re||{}),de=le.__d),de)return le.__E=le}catch(ne){te=ne}throw te}},AC=0,IC=function(te){return null!=te&&void 0===te.constructor},SC=!1,x.prototype.setState=function(te,ne){var ie;ie=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof te&&(te=te(h({},ie),this.props)),te&&h(ie,te),null!=te&&this.__v&&(ne&&this._sb.push(ne),T(this))},x.prototype.forceUpdate=function(te){this.__v&&(this.__e=!0,te&&this.__h.push(te),T(this))},x.prototype.render=_,TC=[],xC="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$.__r=0,EC=0;var PC,BC,VC,zC=[],XC=[],JC=wC.__b,iv=wC.__r,rv=wC.diffed,lv=wC.__c,cv=wC.unmount;function hooks_module_b(){for(var te;te=zC.shift();)if(te.__P&&te.__H)try{te.__H.__h.forEach(hooks_module_k),te.__H.__h.forEach(hooks_module_w),te.__H.__h=[]}catch(ne){te.__H.__h=[],wC.__e(ne,te.__v)}}wC.__b=function(te){PC=null,JC&&JC(te)},wC.__r=function(te){iv&&iv(te),0;var ne=(PC=te.__c).__H;ne&&(BC===PC?(ne.__h=[],PC.__h=[],ne.__.forEach((function(te){te.__N&&(te.__=te.__N),te.__V=XC,te.__N=te.i=void 0}))):(ne.__h.forEach(hooks_module_k),ne.__h.forEach(hooks_module_w),ne.__h=[])),BC=PC},wC.diffed=function(te){rv&&rv(te);var ne=te.__c;ne&&ne.__H&&(ne.__H.__h.length&&(1!==zC.push(ne)&&VC===wC.requestAnimationFrame||((VC=wC.requestAnimationFrame)||hooks_module_j)(hooks_module_b)),ne.__H.__.forEach((function(te){te.i&&(te.__H=te.i),te.__V!==XC&&(te.__=te.__V),te.i=void 0,te.__V=XC}))),BC=PC=null},wC.__c=function(te,ne){ne.some((function(te){try{te.__h.forEach(hooks_module_k),te.__h=te.__h.filter((function(te){return!te.__||hooks_module_w(te)}))}catch(ie){ne.some((function(te){te.__h&&(te.__h=[])})),ne=[],wC.__e(ie,te.__v)}})),lv&&lv(te,ne)},wC.unmount=function(te){cv&&cv(te);var ne,ie=te.__c;ie&&ie.__H&&(ie.__H.__.forEach((function(te){try{hooks_module_k(te)}catch(te){ne=te}})),ie.__H=void 0,ne&&wC.__e(ne,ie.__v))};var mv="function"==typeof requestAnimationFrame;function hooks_module_j(te){var ne,r=function(){clearTimeout(ie),mv&&cancelAnimationFrame(ne),setTimeout(te)},ie=setTimeout(r,100);mv&&(ne=requestAnimationFrame(r))}function hooks_module_k(te){var ne=PC,ie=te.__c;"function"==typeof ie&&(te.__c=void 0,ie()),PC=ne}function hooks_module_w(te){var ne=PC;te.__c=te.__(),PC=ne}function compat_module_g(te,ne){for(var ie in ne)te[ie]=ne[ie];return te}function compat_module_C(te,ne){for(var ie in te)if("__source"!==ie&&!(ie in ne))return!0;for(var re in ne)if("__source"!==re&&te[re]!==ne[re])return!0;return!1}function compat_module_w(te){this.props=te}(compat_module_w.prototype=new x).isPureReactComponent=!0,compat_module_w.prototype.shouldComponentUpdate=function(te,ne){return compat_module_C(this.props,te)||compat_module_C(this.state,ne)};var gv=wC.__b;wC.__b=function(te){te.type&&te.type.__f&&te.ref&&(te.props.ref=te.ref,te.ref=null),gv&&gv(te)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var bv=wC.__e;wC.__e=function(te,ne,ie,re){if(te.then)for(var le,ce=ne;ce=ce.__;)if((le=ce.__c)&&le.__c)return null==ne.__e&&(ne.__e=ie.__e,ne.__k=ie.__k),le.__c(te,ne);bv(te,ne,ie,re)};var wv=wC.unmount;function compat_module_L(te,ne,ie){return te&&(te.__c&&te.__c.__H&&(te.__c.__H.__.forEach((function(te){"function"==typeof te.__c&&te.__c()})),te.__c.__H=null),null!=(te=compat_module_g({},te)).__c&&(te.__c.__P===ie&&(te.__c.__P=ne),te.__c=null),te.__k=te.__k&&te.__k.map((function(te){return compat_module_L(te,ne,ie)}))),te}function U(te,ne,ie){return te&&(te.__v=null,te.__k=te.__k&&te.__k.map((function(te){return U(te,ne,ie)})),te.__c&&te.__c.__P===ne&&(te.__e&&ie.insertBefore(te.__e,te.__d),te.__c.__e=!0,te.__c.__P=ie)),te}function compat_module_D(){this.__u=0,this.t=null,this.__b=null}function compat_module_F(te){var ne=te.__.__c;return ne&&ne.__a&&ne.__a(te)}function compat_module_V(){this.u=null,this.o=null}wC.unmount=function(te){var ne=te.__c;ne&&ne.__R&&ne.__R(),ne&&!0===te.__h&&(te.type=null),wv&&wv(te)},(compat_module_D.prototype=new x).__c=function(te,ne){var ie=ne.__c,re=this;null==re.t&&(re.t=[]),re.t.push(ie);var le=compat_module_F(re.__v),ce=!1,i=function(){ce||(ce=!0,ie.__R=null,le?le(l):l())};ie.__R=i;var l=function(){if(! --re.__u){if(re.state.__a){var te=re.state.__a;re.__v.__k[0]=U(te,te.__c.__P,te.__c.__O)}var ne;for(re.setState({__a:re.__b=null});ne=re.t.pop();)ne.forceUpdate()}},de=!0===ne.__h;re.__u++||de||re.setState({__a:re.__b=re.__v.__k[0]}),te.then(i,i)},compat_module_D.prototype.componentWillUnmount=function(){this.t=[]},compat_module_D.prototype.render=function(te,ne){if(this.__b){if(this.__v.__k){var ie=document.createElement("div"),re=this.__v.__k[0].__c;this.__v.__k[0]=compat_module_L(this.__b,ie,re.__O=re.__P)}this.__b=null}var le=ne.__a&&y(_,null,te.fallback);return le&&(le.__h=null),[y(_,null,ne.__a?null:te.children),le]};var W=function(te,ne,ie){if(++ie[1]===ie[0]&&te.o.delete(ne),te.props.revealOrder&&("t"!==te.props.revealOrder[0]||!te.o.size))for(ie=te.u;ie;){for(;ie.length>3;)ie.pop()();if(ie[1]<ie[0])break;te.u=ie=ie[2]}};function compat_module_P(te){return this.getChildContext=function(){return te.context},te.children}function compat_module_$(te){var ne=this,ie=te.i;ne.componentWillUnmount=function(){D(null,ne.l),ne.l=null,ne.i=null},ne.i&&ne.i!==ie&&ne.componentWillUnmount(),te.__v?(ne.l||(ne.i=ie,ne.l={nodeType:1,parentNode:ie,childNodes:[],appendChild:function(te){this.childNodes.push(te),ne.i.appendChild(te)},insertBefore:function(te,ie){this.childNodes.push(te),ne.i.appendChild(te)},removeChild:function(te){this.childNodes.splice(this.childNodes.indexOf(te)>>>1,1),ne.i.removeChild(te)}}),D(y(compat_module_P,{context:ne.context},te.__v),ne.l)):ne.l&&ne.componentWillUnmount()}function compat_module_j(te,ne){var ie=y(compat_module_$,{__v:te,i:ne});return ie.containerInfo=ne,ie}(compat_module_V.prototype=new x).__a=function(te){var ne=this,ie=compat_module_F(ne.__v),re=ne.o.get(te);return re[0]++,function(le){var o=function(){ne.props.revealOrder?(re.push(le),W(ne,te,re)):le()};ie?ie(o):o()}},compat_module_V.prototype.render=function(te){this.u=null,this.o=new Map;var ne=j(te.children);te.revealOrder&&"b"===te.revealOrder[0]&&ne.reverse();for(var ie=ne.length;ie--;)this.o.set(ne[ie],this.u=[1,0,this.u]);return te.children},compat_module_V.prototype.componentDidUpdate=compat_module_V.prototype.componentDidMount=function(){var te=this;this.o.forEach((function(ne,ie){W(te,ie,ne)}))};var Iv="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Mv=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Nv="undefined"!=typeof document,Z=function(te){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(te)};x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(te){Object.defineProperty(x.prototype,te,{configurable:!0,get:function(){return this["UNSAFE_"+te]},set:function(ne){Object.defineProperty(this,te,{configurable:!0,writable:!0,value:ne})}})}));var Pv=wC.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}wC.event=function(te){return Pv&&(te=Pv(te)),te.persist=J,te.isPropagationStopped=K,te.isDefaultPrevented=Q,te.nativeEvent=te};var Bv={configurable:!0,get:function(){return this.class}},zv=wC.vnode;wC.vnode=function(te){var ne=te.type,ie=te.props,re=ie;if("string"==typeof ne){var le=-1===ne.indexOf("-");for(var ce in re={},ie){var de=ie[ce];Nv&&"children"===ce&&"noscript"===ne||"value"===ce&&"defaultValue"in ie&&null==de||("defaultValue"===ce&&"value"in ie&&null==ie.value?ce="value":"download"===ce&&!0===de?de="":/ondoubleclick/i.test(ce)?ce="ondblclick":/^onchange(textarea|input)/i.test(ce+ne)&&!Z(ie.type)?ce="oninput":/^onfocus$/i.test(ce)?ce="onfocusin":/^onblur$/i.test(ce)?ce="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(ce)?ce=ce.toLowerCase():le&&Mv.test(ce)?ce=ce.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===de&&(de=void 0),/^oninput$/i.test(ce)&&(ce=ce.toLowerCase(),re[ce]&&(ce="oninputCapture")),re[ce]=de)}"select"==ne&&re.multiple&&Array.isArray(re.value)&&(re.value=j(ie.children).forEach((function(te){te.props.selected=-1!=re.value.indexOf(te.props.value)}))),"select"==ne&&null!=re.defaultValue&&(re.value=j(ie.children).forEach((function(te){te.props.selected=re.multiple?-1!=re.defaultValue.indexOf(te.props.value):re.defaultValue==te.props.value}))),te.props=re,ie.class!=ie.className&&(Bv.enumerable="className"in ie,null!=ie.className&&(re.class=ie.className),Object.defineProperty(re,"className",Bv))}te.$$typeof=Iv,zv&&zv(te)};var Yv=wC.__r;wC.__r=function(te){Yv&&Yv(te),te.__c};const Xv=[],Jv=new Map;function injectStyles(te){Xv.push(te),Jv.forEach((ne=>{appendStylesTo(ne,te)}))}function registerStylesRoot(te){let ne=Jv.get(te);if(!ne||!ne.isConnected){if(ne=te.querySelector("style[data-fullcalendar]"),!ne){ne=document.createElement("style"),ne.setAttribute("data-fullcalendar","");const ie=function getNonceValue(){void 0===Zv&&(Zv=function queryNonceValue(){const te=document.querySelector('meta[name="csp-nonce"]');if(te&&te.hasAttribute("content"))return te.getAttribute("content");const ne=document.querySelector("script[nonce]");if(ne)return ne.nonce||"";return""}());return Zv}();ie&&(ne.nonce=ie);const re=te===document?document.head:te,le=te===document?re.querySelector("script,link[rel=stylesheet],link[as=style],style"):re.firstChild;re.insertBefore(ne,le)}Jv.set(te,ne),function hydrateStylesRoot(te){for(const ne of Xv)appendStylesTo(te,ne)}(ne)}}function appendStylesTo(te,ne){const{sheet:ie}=te,re=ie.cssRules.length;ne.split("}").forEach(((te,ne)=>{(te=te.trim())&&ie.insertRule(te+"}",re+ne)}))}let Zv;"undefined"!=typeof document&&registerStylesRoot(document);injectStyles(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');class DelayedRunner{constructor(te){this.drainedOption=te,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(te){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==te?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),te))}pause(te=""){let{pauseDepths:ne}=this;ne[te]=(ne[te]||0)+1,this.clearTimeout()}resume(te="",ne){let{pauseDepths:ie}=this;if(te in ie){if(ne)delete ie[te];else{ie[te]-=1,ie[te]<=0&&delete ie[te]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function removeElement(te){te.parentNode&&te.parentNode.removeChild(te)}function elementClosest(te,ne){if(te.closest)return te.closest(ne);if(!document.documentElement.contains(te))return null;do{if(internal_common_elementMatches(te,ne))return te;te=te.parentElement||te.parentNode}while(null!==te&&1===te.nodeType);return null}function internal_common_elementMatches(te,ne){return(te.matches||te.matchesSelector||te.msMatchesSelector).call(te,ne)}const ey=/(top|left|right|bottom|width|height)$/i;function applyStyle(te,ne){for(let ie in ne)applyStyleProp(te,ie,ne[ie])}function applyStyleProp(te,ne,ie){null==ie?te.style[ne]="":"number"==typeof ie&&ey.test(ne)?te.style[ne]=`${ie}px`:te.style[ne]=ie}function getEventTargetViaRoot(te){var ne,ie;return null!==(ie=null===(ne=te.composedPath)||void 0===ne?void 0:ne.call(te)[0])&&void 0!==ie?ie:te.target}let ny=0;function getUniqueDomId(){return ny+=1,"fc-dom-"+ny}function preventDefault(te){te.preventDefault()}function listenBySelector(te,ne,ie,re){let le=function buildDelegationHandler(te,ne){return ie=>{let re=elementClosest(ie.target,te);re&&ne.call(re,ie,re)}}(ie,re);return te.addEventListener(ne,le),()=>{te.removeEventListener(ne,le)}}const iy=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function createAriaClickAttrs(te){return Object.assign({onClick:te},createAriaKeyboardAttrs(te))}function createAriaKeyboardAttrs(te){return{tabIndex:0,onKeyDown(ne){"Enter"!==ne.key&&" "!==ne.key||(te(ne),ne.preventDefault())}}}let oy=0;function guid(){return oy+=1,String(oy)}function internal_common_disableCursor(){document.body.classList.add("fc-not-allowed")}function internal_common_enableCursor(){document.body.classList.remove("fc-not-allowed")}function compareByFieldSpec(te,ne,ie){return ie.func?ie.func(te,ne):function flexibleCompare(te,ne){if(!te&&!ne)return 0;if(null==ne)return-1;if(null==te)return 1;if("string"==typeof te||"string"==typeof ne)return String(te).localeCompare(String(ne));return te-ne}(te[ie.field],ne[ie.field])*(ie.order||1)}function padStart(te,ne){let ie=String(te);return"000".substr(0,ne-ie.length)+ie}function formatWithOrdinals(te,ne,ie){return"function"==typeof te?te(...ne):"string"==typeof te?ne.reduce(((te,ne,ie)=>te.replace("$"+ie,ne||"")),te):ie}function compareNumbers(te,ne){return te-ne}function isInt(te){return te%1==0}function computeSmallestCellWidth(te){let ne=te.querySelector(".fc-scrollgrid-shrink-frame"),ie=te.querySelector(".fc-scrollgrid-shrink-cushion");if(!ne)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!ie)throw new Error("needs fc-scrollgrid-shrink-cushion className");return te.getBoundingClientRect().width-ne.getBoundingClientRect().width+ie.getBoundingClientRect().width}const ry=["years","months","days","milliseconds"],ay=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function createDuration(te,ne){return"string"==typeof te?function parseString(te){let ne=ay.exec(te);if(ne){let te=ne[1]?-1:1;return{years:0,months:0,days:te*(ne[2]?parseInt(ne[2],10):0),milliseconds:te*(60*(ne[3]?parseInt(ne[3],10):0)*60*1e3+60*(ne[4]?parseInt(ne[4],10):0)*1e3+1e3*(ne[5]?parseInt(ne[5],10):0)+(ne[6]?parseInt(ne[6],10):0))}}return null}(te):"object"==typeof te&&te?parseObject(te):"number"==typeof te?parseObject({[ne||"milliseconds"]:te}):null}function parseObject(te){let ne={years:te.years||te.year||0,months:te.months||te.month||0,days:te.days||te.day||0,milliseconds:60*(te.hours||te.hour||0)*60*1e3+60*(te.minutes||te.minute||0)*1e3+1e3*(te.seconds||te.second||0)+(te.milliseconds||te.millisecond||te.ms||0)},ie=te.weeks||te.week;return ie&&(ne.days+=7*ie,ne.specifiedWeeks=!0),ne}function addDurations(te,ne){return{years:te.years+ne.years,months:te.months+ne.months,days:te.days+ne.days,milliseconds:te.milliseconds+ne.milliseconds}}function asRoughDays(te){return asRoughMs(te)/864e5}function asRoughMs(te){return 31536e6*te.years+2592e6*te.months+864e5*te.days+te.milliseconds}function wholeDivideDurations(te,ne){let ie=null;for(let re=0;re<ry.length;re+=1){let le=ry[re];if(ne[le]){let re=te[le]/ne[le];if(!isInt(re)||null!==ie&&ie!==re)return null;ie=re}else if(te[le])return null}return ie}function greatestDurationDenominator(te){let ne=te.milliseconds;if(ne){if(ne%1e3!=0)return{unit:"millisecond",value:ne};if(ne%6e4!=0)return{unit:"second",value:ne/1e3};if(ne%36e5!=0)return{unit:"minute",value:ne/6e4};if(ne)return{unit:"hour",value:ne/36e5}}return te.days?te.specifiedWeeks&&te.days%7==0?{unit:"week",value:te.days/7}:{unit:"day",value:te.days}:te.months?{unit:"month",value:te.months}:te.years?{unit:"year",value:te.years}:{unit:"millisecond",value:0}}function isArraysEqual(te,ne,ie){if(te===ne)return!0;let re,le=te.length;if(le!==ne.length)return!1;for(re=0;re<le;re+=1)if(!(ie?ie(te[re],ne[re]):te[re]===ne[re]))return!1;return!0}const sy=["sun","mon","tue","wed","thu","fri","sat"];function addWeeks(te,ne){let ie=dateToUtcArray(te);return ie[2]+=7*ne,arrayToUtcDate(ie)}function addDays(te,ne){let ie=dateToUtcArray(te);return ie[2]+=ne,arrayToUtcDate(ie)}function addMs(te,ne){let ie=dateToUtcArray(te);return ie[6]+=ne,arrayToUtcDate(ie)}function diffDays(te,ne){return(ne.valueOf()-te.valueOf())/864e5}function diffWholeDays(te,ne){return timeAsMs(te)===timeAsMs(ne)?Math.round(diffDays(te,ne)):null}function startOfDay(te){return arrayToUtcDate([te.getUTCFullYear(),te.getUTCMonth(),te.getUTCDate()])}function weekOfGivenYear(te,ne,ie,re){let le=arrayToUtcDate([ne,0,1+firstWeekOffset(ne,ie,re)]),ce=startOfDay(te),de=Math.round(diffDays(le,ce));return Math.floor(de/7)+1}function firstWeekOffset(te,ne,ie){let re=7+ne-ie;return-((7+arrayToUtcDate([te,0,re]).getUTCDay()-ne)%7)+re-1}function dateToLocalArray(te){return[te.getFullYear(),te.getMonth(),te.getDate(),te.getHours(),te.getMinutes(),te.getSeconds(),te.getMilliseconds()]}function arrayToLocalDate(te){return new Date(te[0],te[1]||0,null==te[2]?1:te[2],te[3]||0,te[4]||0,te[5]||0)}function dateToUtcArray(te){return[te.getUTCFullYear(),te.getUTCMonth(),te.getUTCDate(),te.getUTCHours(),te.getUTCMinutes(),te.getUTCSeconds(),te.getUTCMilliseconds()]}function arrayToUtcDate(te){return 1===te.length&&(te=te.concat([0])),new Date(Date.UTC(...te))}function isValidDate(te){return!isNaN(te.valueOf())}function timeAsMs(te){return 1e3*te.getUTCHours()*60*60+1e3*te.getUTCMinutes()*60+1e3*te.getUTCSeconds()+te.getUTCMilliseconds()}function buildIsoString(te,ne,ie=!1){let re=te.toISOString();return re=re.replace(".000",""),ie&&(re=re.replace("T00:00:00Z","")),re.length>10&&(null==ne?re=re.replace("Z",""):0!==ne&&(re=re.replace("Z",formatTimeZoneOffset(ne,!0)))),re}function formatDayString(te){return te.toISOString().replace(/T.*$/,"")}function formatTimeZoneOffset(te,ne=!1){let ie=te<0?"-":"+",re=Math.abs(te),le=Math.floor(re/60),ce=Math.round(re%60);return ne?`${ie+padStart(le,2)}:${padStart(ce,2)}`:`GMT${ie}${le}${ce?`:${padStart(ce,2)}`:""}`}function memoize(te,ne,ie){let re,le;return function(...ce){if(re){if(!isArraysEqual(re,ce)){ie&&ie(le);let re=te.apply(this,ce);ne&&ne(re,le)||(le=re)}}else le=te.apply(this,ce);return re=ce,le}}function memoizeObjArg(te,ne,ie){let re,le;return ce=>{if(re){if(!isPropsEqual(re,ce)){ie&&ie(le);let re=te.call(this,ce);ne&&ne(re,le)||(le=re)}}else le=te.call(this,ce);return re=ce,le}}const ly={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},cy={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},dy=/\s*([ap])\.?m\.?/i,uy=/,/g,py=/\s+/g,fy=/\u200e/g,Iy=/UTC|GMT/;class NativeFormatter{constructor(te){let ne={},ie={},re=0;for(let le in te)le in ly?(ie[le]=te[le],re=Math.max(ly[le],re)):(ne[le]=te[le],le in cy&&(re=Math.max(cy[le],re)));this.standardDateProps=ne,this.extendedSettings=ie,this.severity=re,this.buildFormattingFunc=memoize(buildFormattingFunc)}format(te,ne){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,ne)(te)}formatRange(te,ne,ie,re){let{standardDateProps:le,extendedSettings:ce}=this,de=function computeMarkerDiffSeverity(te,ne,ie){if(ie.getMarkerYear(te)!==ie.getMarkerYear(ne))return 5;if(ie.getMarkerMonth(te)!==ie.getMarkerMonth(ne))return 4;if(ie.getMarkerDay(te)!==ie.getMarkerDay(ne))return 2;if(timeAsMs(te)!==timeAsMs(ne))return 1;return 0}(te.marker,ne.marker,ie.calendarSystem);if(!de)return this.format(te,ie);let ue=de;!(ue>1)||"numeric"!==le.year&&"2-digit"!==le.year||"numeric"!==le.month&&"2-digit"!==le.month||"numeric"!==le.day&&"2-digit"!==le.day||(ue=1);let me=this.format(te,ie),ge=this.format(ne,ie);if(me===ge)return me;let fe=buildFormattingFunc(function computePartialFormattingOptions(te,ne){let ie={};for(let re in te)(!(re in cy)||cy[re]<=ne)&&(ie[re]=te[re]);return ie}(le,ue),ce,ie),_e=fe(te),be=fe(ne),Ce=function findCommonInsertion(te,ne,ie,re){let le=0;for(;le<te.length;){let ce=te.indexOf(ne,le);if(-1===ce)break;let de=te.substr(0,ce);le=ce+ne.length;let ue=te.substr(le),me=0;for(;me<ie.length;){let te=ie.indexOf(re,me);if(-1===te)break;let ne=ie.substr(0,te);me=te+re.length;let le=ie.substr(me);if(de===ne&&ue===le)return{before:de,after:ue}}}return null}(me,_e,ge,be),ye=ce.separator||re||ie.defaultSeparator||"";return Ce?Ce.before+_e+ye+be+Ce.after:me+ye+ge}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function buildFormattingFunc(te,ne,ie){let re=Object.keys(te).length;return 1===re&&"short"===te.timeZoneName?te=>formatTimeZoneOffset(te.timeZoneOffset):0===re&&ne.week?te=>function formatWeekNumber(te,ne,ie,re,le){let ce=[];"long"===le?ce.push(ie):"short"!==le&&"narrow"!==le||ce.push(ne);"long"!==le&&"short"!==le||ce.push(" ");ce.push(re.simpleNumberFormat.format(te)),"rtl"===re.options.direction&&ce.reverse();return ce.join("")}(ie.computeWeekNumber(te.marker),ie.weekText,ie.weekTextLong,ie.locale,ne.week):function buildNativeFormattingFunc(te,ne,ie){te=Object.assign({},te),ne=Object.assign({},ne),function sanitizeSettings(te,ne){te.timeZoneName&&(te.hour||(te.hour="2-digit"),te.minute||(te.minute="2-digit"));"long"===te.timeZoneName&&(te.timeZoneName="short");ne.omitZeroMinute&&(te.second||te.millisecond)&&delete ne.omitZeroMinute}(te,ne),te.timeZone="UTC";let re,le=new Intl.DateTimeFormat(ie.locale.codes,te);if(ne.omitZeroMinute){let ne=Object.assign({},te);delete ne.minute,re=new Intl.DateTimeFormat(ie.locale.codes,ne)}return ce=>{let de,{marker:ue}=ce;return de=re&&!ue.getUTCMinutes()?re:le,function postProcess(te,ne,ie,re,le){te=te.replace(fy,""),"short"===ie.timeZoneName&&(te=function injectTzoStr(te,ne){let ie=!1;te=te.replace(Iy,(()=>(ie=!0,ne))),ie||(te+=` ${ne}`);return te}(te,"UTC"===le.timeZone||null==ne.timeZoneOffset?"UTC":formatTimeZoneOffset(ne.timeZoneOffset)));re.omitCommas&&(te=te.replace(uy,"").trim());re.omitZeroMinute&&(te=te.replace(":00",""));!1===re.meridiem?te=te.replace(dy,"").trim():"narrow"===re.meridiem?te=te.replace(dy,((te,ne)=>ne.toLocaleLowerCase())):"short"===re.meridiem?te=te.replace(dy,((te,ne)=>`${ne.toLocaleLowerCase()}m`)):"lowercase"===re.meridiem&&(te=te.replace(dy,(te=>te.toLocaleLowerCase())));return te=te.replace(py," "),te=te.trim(),te}(de.format(ue),ce,te,ne,ie)}}(te,ne,ie)}function expandZonedMarker(te,ne){let ie=ne.markerToArray(te.marker);return{marker:te.marker,timeZoneOffset:te.timeZoneOffset,array:ie,year:ie[0],month:ie[1],day:ie[2],hour:ie[3],minute:ie[4],second:ie[5],millisecond:ie[6]}}function createVerboseFormattingArg(te,ne,ie,re){let le=expandZonedMarker(te,ie.calendarSystem);return{date:le,start:le,end:ne?expandZonedMarker(ne,ie.calendarSystem):null,timeZone:ie.timeZone,localeCodes:ie.locale.codes,defaultSeparator:re||ie.defaultSeparator}}class CmdFormatter{constructor(te){this.cmdStr=te}format(te,ne,ie){return ne.cmdFormatter(this.cmdStr,createVerboseFormattingArg(te,null,ne,ie))}formatRange(te,ne,ie,re){return ie.cmdFormatter(this.cmdStr,createVerboseFormattingArg(te,ne,ie,re))}}class FuncFormatter{constructor(te){this.func=te}format(te,ne,ie){return this.func(createVerboseFormattingArg(te,null,ne,ie))}formatRange(te,ne,ie,re){return this.func(createVerboseFormattingArg(te,ne,ie,re))}}function internal_common_createFormatter(te){return"object"==typeof te&&te?new NativeFormatter(te):"string"==typeof te?new CmdFormatter(te):"function"==typeof te?new FuncFormatter(te):null}const Sy={navLinkDayClick:identity,navLinkWeekClick:identity,duration:createDuration,bootstrapFontAwesome:identity,buttonIcons:identity,customButtons:identity,defaultAllDayEventDuration:createDuration,defaultTimedEventDuration:createDuration,nextDayThreshold:createDuration,scrollTime:createDuration,scrollTimeReset:Boolean,slotMinTime:createDuration,slotMaxTime:createDuration,dayPopoverFormat:internal_common_createFormatter,slotDuration:createDuration,snapDuration:createDuration,headerToolbar:identity,footerToolbar:identity,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:internal_common_createFormatter,dayHeaderClassNames:identity,dayHeaderContent:identity,dayHeaderDidMount:identity,dayHeaderWillUnmount:identity,dayCellClassNames:identity,dayCellContent:identity,dayCellDidMount:identity,dayCellWillUnmount:identity,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:identity,weekNumbers:Boolean,weekNumberClassNames:identity,weekNumberContent:identity,weekNumberDidMount:identity,weekNumberWillUnmount:identity,editable:Boolean,viewClassNames:identity,viewDidMount:identity,viewWillUnmount:identity,nowIndicator:Boolean,nowIndicatorClassNames:identity,nowIndicatorContent:identity,nowIndicatorDidMount:identity,nowIndicatorWillUnmount:identity,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:identity,locale:identity,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:identity,eventOrder:function parseFieldSpecs(te){let ne,ie,re=[],le=[];for("string"==typeof te?le=te.split(/\s*,\s*/):"function"==typeof te?le=[te]:Array.isArray(te)&&(le=te),ne=0;ne<le.length;ne+=1)ie=le[ne],"string"==typeof ie?re.push("-"===ie.charAt(0)?{field:ie.substring(1),order:-1}:{field:ie,order:1}):"function"==typeof ie&&re.push({func:ie});return re},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:identity,contentHeight:identity,direction:String,weekNumberFormat:internal_common_createFormatter,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:identity,initialDate:identity,now:identity,eventDataTransform:identity,stickyHeaderDates:identity,stickyFooterScrollbar:identity,viewHeight:identity,defaultAllDay:Boolean,eventSourceFailure:identity,eventSourceSuccess:identity,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:identity,eventConstraint:identity,eventAllow:identity,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:identity,eventContent:identity,eventDidMount:identity,eventWillUnmount:identity,selectConstraint:identity,selectOverlap:identity,selectAllow:identity,droppable:Boolean,unselectCancel:String,slotLabelFormat:identity,slotLaneClassNames:identity,slotLaneContent:identity,slotLaneDidMount:identity,slotLaneWillUnmount:identity,slotLabelClassNames:identity,slotLabelContent:identity,slotLabelDidMount:identity,slotLabelWillUnmount:identity,dayMaxEvents:identity,dayMaxEventRows:identity,dayMinWidth:Number,slotLabelInterval:createDuration,allDayText:String,allDayClassNames:identity,allDayContent:identity,allDayDidMount:identity,allDayWillUnmount:identity,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:internal_common_createFormatter,rerenderDelay:Number,moreLinkText:identity,moreLinkHint:identity,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:identity,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:createDuration,hiddenDays:identity,fixedWeekCount:Boolean,validRange:identity,visibleRange:identity,titleFormat:identity,eventInteractive:Boolean,noEventsText:String,viewHint:identity,navLinkHint:identity,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:identity,moreLinkClassNames:identity,moreLinkContent:identity,moreLinkDidMount:identity,moreLinkWillUnmount:identity,monthStartFormat:internal_common_createFormatter,handleCustomRendering:identity,customRenderingMetaMap:identity,customRenderingReplaces:Boolean},Ty={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},Ey={datesSet:identity,eventsSet:identity,eventAdd:identity,eventChange:identity,eventRemove:identity,windowResize:identity,eventClick:identity,eventMouseEnter:identity,eventMouseLeave:identity,select:identity,unselect:identity,loading:identity,_unmount:identity,_beforeprint:identity,_afterprint:identity,_noEventDrop:identity,_noEventResize:identity,_resize:identity,_scrollRequest:identity},My={buttonText:identity,buttonHints:identity,views:identity,plugins:identity,initialEvents:identity,events:identity,eventSources:identity},By={headerToolbar:isMaybeObjectsEqual,footerToolbar:isMaybeObjectsEqual,buttonText:isMaybeObjectsEqual,buttonHints:isMaybeObjectsEqual,buttonIcons:isMaybeObjectsEqual,dateIncrement:isMaybeObjectsEqual,plugins:isMaybeArraysEqual,events:isMaybeArraysEqual,eventSources:isMaybeArraysEqual,resources:isMaybeArraysEqual};function isMaybeObjectsEqual(te,ne){return"object"==typeof te&&"object"==typeof ne&&te&&ne?isPropsEqual(te,ne):te===ne}function isMaybeArraysEqual(te,ne){return Array.isArray(te)&&Array.isArray(ne)?isArraysEqual(te,ne):te===ne}const Gy={type:String,component:identity,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:identity,usesMinMaxTime:Boolean,classNames:identity,content:identity,didMount:identity,willUnmount:identity};function mergeRawOptions(te){return mergeProps(te,By)}function refineProps(te,ne){let ie={},re={};for(let re in ne)re in te&&(ie[re]=ne[re](te[re]));for(let ie in te)ie in ne||(re[ie]=te[ie]);return{refined:ie,extra:re}}function identity(te){return te}const{hasOwnProperty:Uy}=Object.prototype;function mergeProps(te,ne){let ie={};if(ne)for(let re in ne)if(ne[re]===isMaybeObjectsEqual){let ne=[];for(let le=te.length-1;le>=0;le-=1){let ce=te[le][re];if("object"==typeof ce&&ce)ne.unshift(ce);else if(void 0!==ce){ie[re]=ce;break}}ne.length&&(ie[re]=mergeProps(ne))}for(let ne=te.length-1;ne>=0;ne-=1){let re=te[ne];for(let te in re)te in ie||(ie[te]=re[te])}return ie}function filterHash(te,ne){let ie={};for(let re in te)ne(te[re],re)&&(ie[re]=te[re]);return ie}function mapHash(te,ne){let ie={};for(let re in te)ie[re]=ne(te[re],re);return ie}function arrayToHash(te){let ne={};for(let ie of te)ne[ie]=!0;return ne}function hashValuesToArray(te){let ne=[];for(let ie in te)ne.push(te[ie]);return ne}function isPropsEqual(te,ne){if(te===ne)return!0;for(let ie in te)if(Uy.call(te,ie)&&!(ie in ne))return!1;for(let ie in ne)if(Uy.call(ne,ie)&&te[ie]!==ne[ie])return!1;return!0}const $y=/^on[A-Z]/;function getUnequalProps(te,ne){let ie=[];for(let re in te)Uy.call(te,re)&&(re in ne||ie.push(re));for(let re in ne)Uy.call(ne,re)&&te[re]!==ne[re]&&ie.push(re);return ie}function compareObjs(te,ne,ie={}){if(te===ne)return!0;for(let re in ne)if(!(re in te)||!isObjValsEqual(te[re],ne[re],ie[re]))return!1;for(let ie in te)if(!(ie in ne))return!1;return!0}function isObjValsEqual(te,ne,ie){return te===ne||!0===ie||!!ie&&ie(te,ne)}let qy={};!function registerCalendarSystem(te,ne){qy[te]=ne}("gregory",class GregorianCalendarSystem{getMarkerYear(te){return te.getUTCFullYear()}getMarkerMonth(te){return te.getUTCMonth()}getMarkerDay(te){return te.getUTCDate()}arrayToMarker(te){return arrayToUtcDate(te)}markerToArray(te){return dateToUtcArray(te)}});const Wy=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class internal_common_DateEnv{constructor(te){let ne=this.timeZone=te.timeZone,ie="local"!==ne&&"UTC"!==ne;te.namedTimeZoneImpl&&ie&&(this.namedTimeZoneImpl=new te.namedTimeZoneImpl(ne)),this.canComputeOffset=Boolean(!ie||this.namedTimeZoneImpl),this.calendarSystem=function createCalendarSystem(te){return new qy[te]}(te.calendarSystem),this.locale=te.locale,this.weekDow=te.locale.week.dow,this.weekDoy=te.locale.week.doy,"ISO"===te.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof te.firstDay&&(this.weekDow=te.firstDay),"function"==typeof te.weekNumberCalculation&&(this.weekNumberFunc=te.weekNumberCalculation),this.weekText=null!=te.weekText?te.weekText:te.locale.options.weekText,this.weekTextLong=(null!=te.weekTextLong?te.weekTextLong:te.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=te.cmdFormatter,this.defaultSeparator=te.defaultSeparator}createMarker(te){let ne=this.createMarkerMeta(te);return null===ne?null:ne.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):arrayToUtcDate(dateToLocalArray(new Date))}createMarkerMeta(te){if("string"==typeof te)return this.parse(te);let ne=null;return"number"==typeof te?ne=this.timestampToMarker(te):te instanceof Date?(te=te.valueOf(),isNaN(te)||(ne=this.timestampToMarker(te))):Array.isArray(te)&&(ne=arrayToUtcDate(te)),null!==ne&&isValidDate(ne)?{marker:ne,isTimeUnspecified:!1,forcedTzo:null}:null}parse(te){let ne=function parse(te){let ne=Wy.exec(te);if(ne){let te=new Date(Date.UTC(Number(ne[1]),ne[3]?Number(ne[3])-1:0,Number(ne[5]||1),Number(ne[7]||0),Number(ne[8]||0),Number(ne[10]||0),ne[12]?1e3*Number(`0.${ne[12]}`):0));if(isValidDate(te)){let ie=null;return ne[13]&&(ie=("-"===ne[15]?-1:1)*(60*Number(ne[16]||0)+Number(ne[18]||0))),{marker:te,isTimeUnspecified:!ne[6],timeZoneOffset:ie}}}return null}(te);if(null===ne)return null;let{marker:ie}=ne,re=null;return null!==ne.timeZoneOffset&&(this.canComputeOffset?ie=this.timestampToMarker(ie.valueOf()-60*ne.timeZoneOffset*1e3):re=ne.timeZoneOffset),{marker:ie,isTimeUnspecified:ne.isTimeUnspecified,forcedTzo:re}}getYear(te){return this.calendarSystem.getMarkerYear(te)}getMonth(te){return this.calendarSystem.getMarkerMonth(te)}getDay(te){return this.calendarSystem.getMarkerDay(te)}add(te,ne){let ie=this.calendarSystem.markerToArray(te);return ie[0]+=ne.years,ie[1]+=ne.months,ie[2]+=ne.days,ie[6]+=ne.milliseconds,this.calendarSystem.arrayToMarker(ie)}subtract(te,ne){let ie=this.calendarSystem.markerToArray(te);return ie[0]-=ne.years,ie[1]-=ne.months,ie[2]-=ne.days,ie[6]-=ne.milliseconds,this.calendarSystem.arrayToMarker(ie)}addYears(te,ne){let ie=this.calendarSystem.markerToArray(te);return ie[0]+=ne,this.calendarSystem.arrayToMarker(ie)}addMonths(te,ne){let ie=this.calendarSystem.markerToArray(te);return ie[1]+=ne,this.calendarSystem.arrayToMarker(ie)}diffWholeYears(te,ne){let{calendarSystem:ie}=this;return timeAsMs(te)===timeAsMs(ne)&&ie.getMarkerDay(te)===ie.getMarkerDay(ne)&&ie.getMarkerMonth(te)===ie.getMarkerMonth(ne)?ie.getMarkerYear(ne)-ie.getMarkerYear(te):null}diffWholeMonths(te,ne){let{calendarSystem:ie}=this;return timeAsMs(te)===timeAsMs(ne)&&ie.getMarkerDay(te)===ie.getMarkerDay(ne)?ie.getMarkerMonth(ne)-ie.getMarkerMonth(te)+12*(ie.getMarkerYear(ne)-ie.getMarkerYear(te)):null}greatestWholeUnit(te,ne){let ie=this.diffWholeYears(te,ne);return null!==ie?{unit:"year",value:ie}:(ie=this.diffWholeMonths(te,ne),null!==ie?{unit:"month",value:ie}:(ie=function diffWholeWeeks(te,ne){let ie=diffWholeDays(te,ne);return null!==ie&&ie%7==0?ie/7:null}(te,ne),null!==ie?{unit:"week",value:ie}:(ie=diffWholeDays(te,ne),null!==ie?{unit:"day",value:ie}:(ie=function diffHours(te,ne){return(ne.valueOf()-te.valueOf())/36e5}(te,ne),isInt(ie)?{unit:"hour",value:ie}:(ie=function diffMinutes(te,ne){return(ne.valueOf()-te.valueOf())/6e4}(te,ne),isInt(ie)?{unit:"minute",value:ie}:(ie=function diffSeconds(te,ne){return(ne.valueOf()-te.valueOf())/1e3}(te,ne),isInt(ie)?{unit:"second",value:ie}:{unit:"millisecond",value:ne.valueOf()-te.valueOf()}))))))}countDurationsBetween(te,ne,ie){let re;return ie.years&&(re=this.diffWholeYears(te,ne),null!==re)?re/function asRoughYears(te){return asRoughDays(te)/365}(ie):ie.months&&(re=this.diffWholeMonths(te,ne),null!==re)?re/function asRoughMonths(te){return asRoughDays(te)/30}(ie):ie.days&&(re=diffWholeDays(te,ne),null!==re)?re/asRoughDays(ie):(ne.valueOf()-te.valueOf())/asRoughMs(ie)}startOf(te,ne){return"year"===ne?this.startOfYear(te):"month"===ne?this.startOfMonth(te):"week"===ne?this.startOfWeek(te):"day"===ne?startOfDay(te):"hour"===ne?function startOfHour(te){return arrayToUtcDate([te.getUTCFullYear(),te.getUTCMonth(),te.getUTCDate(),te.getUTCHours()])}(te):"minute"===ne?function startOfMinute(te){return arrayToUtcDate([te.getUTCFullYear(),te.getUTCMonth(),te.getUTCDate(),te.getUTCHours(),te.getUTCMinutes()])}(te):"second"===ne?function startOfSecond(te){return arrayToUtcDate([te.getUTCFullYear(),te.getUTCMonth(),te.getUTCDate(),te.getUTCHours(),te.getUTCMinutes(),te.getUTCSeconds()])}(te):null}startOfYear(te){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(te)])}startOfMonth(te){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(te),this.calendarSystem.getMarkerMonth(te)])}startOfWeek(te){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(te),this.calendarSystem.getMarkerMonth(te),te.getUTCDate()-(te.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(te){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(te)):function weekOfYear(te,ne,ie){let re=te.getUTCFullYear(),le=weekOfGivenYear(te,re,ne,ie);if(le<1)return weekOfGivenYear(te,re-1,ne,ie);let ce=weekOfGivenYear(te,re+1,ne,ie);return ce>=1?Math.min(le,ce):le}(te,this.weekDow,this.weekDoy)}format(te,ne,ie={}){return ne.format({marker:te,timeZoneOffset:null!=ie.forcedTzo?ie.forcedTzo:this.offsetForMarker(te)},this)}formatRange(te,ne,ie,re={}){return re.isEndExclusive&&(ne=addMs(ne,-1)),ie.formatRange({marker:te,timeZoneOffset:null!=re.forcedStartTzo?re.forcedStartTzo:this.offsetForMarker(te)},{marker:ne,timeZoneOffset:null!=re.forcedEndTzo?re.forcedEndTzo:this.offsetForMarker(ne)},this,re.defaultSeparator)}formatIso(te,ne={}){let ie=null;return ne.omitTimeZoneOffset||(ie=null!=ne.forcedTzo?ne.forcedTzo:this.offsetForMarker(te)),buildIsoString(te,ie,ne.omitTime)}timestampToMarker(te){return"local"===this.timeZone?arrayToUtcDate(dateToLocalArray(new Date(te))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?arrayToUtcDate(this.namedTimeZoneImpl.timestampToArray(te)):new Date(te)}offsetForMarker(te){return"local"===this.timeZone?-arrayToLocalDate(dateToUtcArray(te)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(te)):null}toDate(te,ne){return"local"===this.timeZone?arrayToLocalDate(dateToUtcArray(te)):"UTC"===this.timeZone?new Date(te.valueOf()):this.namedTimeZoneImpl?new Date(te.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(te))*60):new Date(te.valueOf()-(ne||0))}}class Theme{constructor(te){this.iconOverrideOption&&this.setIconOverride(te[this.iconOverrideOption])}setIconOverride(te){let ne,ie;if("object"==typeof te&&te){for(ie in ne=Object.assign({},this.iconClasses),te)ne[ie]=this.applyIconOverridePrefix(te[ie]);this.iconClasses=ne}else!1===te&&(this.iconClasses={})}applyIconOverridePrefix(te){let ne=this.iconOverridePrefix;return ne&&0!==te.indexOf(ne)&&(te=ne+te),te}getClass(te){return this.classes[te]||""}getIconClass(te,ne){let ie;return ie=ne&&this.rtlIconClasses&&this.rtlIconClasses[te]||this.iconClasses[te],ie?`${this.baseIconClass} ${ie}`:""}getCustomButtonIconClass(te){let ne;return this.iconOverrideCustomButtonOption&&(ne=te[this.iconOverrideCustomButtonOption],ne)?`${this.baseIconClass} ${this.applyIconOverridePrefix(ne)}`:""}}function flushSync(te){te();let ne=wC.debounceRendering,ie=[];for(wC.debounceRendering=function execCallbackSync(te){ie.push(te)},D(y(FakeComponent,{}),document.createElement("div"));ie.length;)ie.shift()();wC.debounceRendering=ne}Theme.prototype.classes={},Theme.prototype.iconClasses={},Theme.prototype.baseIconClass="",Theme.prototype.iconOverridePrefix="";class FakeComponent extends x{render(){return y("div",{})}componentDidMount(){this.setState({})}}function createContext(te){let ne=G(te),ie=ne.Provider;return ne.Provider=function(){let te=!this.getChildContext,ne=ie.apply(this,arguments);if(te){let te=[];this.shouldComponentUpdate=ne=>{this.props.value!==ne.value&&te.forEach((te=>{te.context=ne.value,te.forceUpdate()}))},this.sub=ne=>{te.push(ne);let ie=ne.componentWillUnmount;ne.componentWillUnmount=()=>{te.splice(te.indexOf(ne),1),ie&&ie.call(ne)}}}return ne},ne}class ScrollResponder{constructor(te,ne,ie,re){this.execFunc=te,this.emitter=ne,this.scrollTime=ie,this.scrollTimeReset=re,this.handleScrollRequest=te=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},te),this.drain()},ne.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(te){te&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Ky=createContext({});function buildViewContext(te,ne,ie,re,le,ce,de,ue,me,ge,fe,_e,be){return{dateEnv:le,options:ie,pluginHooks:de,emitter:ge,dispatch:ue,getCurrentData:me,calendarApi:fe,viewSpec:te,viewApi:ne,dateProfileGenerator:re,theme:ce,isRtl:"rtl"===ie.direction,addResizeHandler(te){ge.on("_resize",te)},removeResizeHandler(te){ge.off("_resize",te)},createScrollResponder:te=>new ScrollResponder(te,ge,createDuration(ie.scrollTime),ie.scrollTimeReset),registerInteractiveComponent:_e,unregisterInteractiveComponent:be}}let Qy=(()=>{class PureComponent extends x{shouldComponentUpdate(te,ne){return this.debug&&console.log(getUnequalProps(te,this.props),getUnequalProps(ne,this.state)),!compareObjs(this.props,te,this.propEquality)||!compareObjs(this.state,ne,this.stateEquality)}safeSetState(te){compareObjs(this.state,Object.assign(Object.assign({},this.state),te),this.stateEquality)||this.setState(te)}}return PureComponent.addPropsEquality=addPropsEquality,PureComponent.addStateEquality=addStateEquality,PureComponent.contextType=Ky,PureComponent})();Qy.prototype.propEquality={},Qy.prototype.stateEquality={};let Jy=(()=>{class BaseComponent extends Qy{}return BaseComponent.contextType=Ky,BaseComponent})();function addPropsEquality(te){let ne=Object.create(this.prototype.propEquality);Object.assign(ne,te),this.prototype.propEquality=ne}function addStateEquality(te){let ne=Object.create(this.prototype.stateEquality);Object.assign(ne,te),this.prototype.stateEquality=ne}function setRef(te,ne){"function"==typeof te?te(ne):te&&(te.current=ne)}class ContentInjector extends Jy{constructor(){super(...arguments),this.id=guid(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=te=>{const{options:ne}=this.context,{generatorName:ie}=this.props;ne.customRenderingReplaces&&hasCustomRenderingHandler(ie,ne)||this.updateElRef(te)},this.updateElRef=te=>{this.props.elRef&&setRef(this.props.elRef,te)}}render(){const{props:te,context:ne}=this,{options:ie}=ne,{customGenerator:re,defaultGenerator:le,renderProps:ce}=te,de=buildElAttrs(te,[],this.handleEl);let ue,me,ge=!1,fe=[];if(null!=re){const te="function"==typeof re?re(ce,y):re;if(!0===te)ge=!0;else{const ne=te&&"object"==typeof te;ne&&"html"in te?de.dangerouslySetInnerHTML={__html:te.html}:ne&&"domNodes"in te?fe=Array.prototype.slice.call(te.domNodes):(ne?IC(te):"function"!=typeof te)?ue=te:me=te}}else ge=!hasCustomRenderingHandler(te.generatorName,ie);return ge&&le&&(ue=le(ce)),this.queuedDomNodes=fe,this.currentGeneratorMeta=me,y(te.elTag,de,ue)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(te){var ne;const{props:ie,context:re}=this,{handleCustomRendering:le,customRenderingMetaMap:ce}=re.options;if(le){const re=null!==(ne=this.currentGeneratorMeta)&&void 0!==ne?ne:null==ce?void 0:ce[ie.generatorName];re&&le(Object.assign(Object.assign({id:this.id,isActive:te,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:re},ie),{elClasses:(ie.elClasses||[]).filter(isTruthy)}))}}applyQueueudDomNodes(){const{queuedDomNodes:te,currentDomNodes:ne}=this,ie=this.base;if(!isArraysEqual(te,ne)){ne.forEach(removeElement);for(let ne of te)ie.appendChild(ne);this.currentDomNodes=te}}}function hasCustomRenderingHandler(te,ne){var ie;return Boolean(ne.handleCustomRendering&&te&&(null===(ie=ne.customRenderingMetaMap)||void 0===ie?void 0:ie[te]))}function buildElAttrs(te,ne,ie){const re=Object.assign(Object.assign({},te.elAttrs),{ref:ie});return(te.elClasses||ne)&&(re.className=(te.elClasses||[]).concat(ne||[]).concat(re.className||[]).filter(Boolean).join(" ")),te.elStyle&&(re.style=te.elStyle),re}function isTruthy(te){return Boolean(te)}ContentInjector.addPropsEquality({elClasses:isArraysEqual,elStyle:isPropsEqual,elAttrs:function isNonHandlerPropsEqual(te,ne){const ie=getUnequalProps(te,ne);for(let te of ie)if(!$y.test(te))return!1;return!0},renderProps:isPropsEqual});const iw=createContext(0);let rw=(()=>{class ContentContainer extends x{constructor(){super(...arguments),this.InnerContent=InnerContentInjector.bind(void 0,this),this.handleEl=te=>{this.el=te,this.props.elRef&&(setRef(this.props.elRef,te),te&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:te}=this,ne=function generateClassNames(te,ne){const ie="function"==typeof te?te(ne):te||[];return"string"==typeof ie?[ie]:ie}(te.classNameGenerator,te.renderProps);if(te.children){const ie=buildElAttrs(te,ne,this.handleEl),re=te.children(this.InnerContent,te.renderProps,ie);return te.elTag?y(te.elTag,ie,re):re}return y(ContentInjector,Object.assign(Object.assign({},te),{elRef:this.handleEl,elTag:te.elTag||"div",elClasses:(te.elClasses||[]).concat(ne),renderId:this.context}))}componentDidMount(){var te,ne;this.el?null===(ne=(te=this.props).didMount)||void 0===ne||ne.call(te,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var te,ne;null===(ne=(te=this.props).willUnmount)||void 0===ne||ne.call(te,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}return ContentContainer.contextType=iw,ContentContainer})();function InnerContentInjector(te,ne){const ie=te.props;return y(ContentInjector,Object.assign({renderProps:ie.renderProps,generatorName:ie.generatorName,customGenerator:ie.customGenerator,defaultGenerator:ie.defaultGenerator,renderId:te.context},ne))}class ViewContainer extends Jy{render(){let{props:te,context:ne}=this,{options:ie}=ne,re={view:ne.viewApi};return y(rw,Object.assign({},te,{elTag:te.elTag||"div",elClasses:[...buildViewClassNames(te.viewSpec),...te.elClasses||[]],renderProps:re,classNameGenerator:ie.viewClassNames,generatorName:void 0,didMount:ie.viewDidMount,willUnmount:ie.viewWillUnmount}),(()=>te.children))}}function buildViewClassNames(te){return[`fc-${te.type}-view`,"fc-view"]}function invertRanges(te,ne){let ie,re,le=[],{start:ce}=ne;for(te.sort(compareRanges),ie=0;ie<te.length;ie+=1)re=te[ie],re.start>ce&&le.push({start:ce,end:re.start}),re.end>ce&&(ce=re.end);return ce<ne.end&&le.push({start:ce,end:ne.end}),le}function compareRanges(te,ne){return te.start.valueOf()-ne.start.valueOf()}function intersectRanges(te,ne){let{start:ie,end:re}=te,le=null;return null!==ne.start&&(ie=null===ie?ne.start:new Date(Math.max(ie.valueOf(),ne.start.valueOf()))),null!=ne.end&&(re=null===re?ne.end:new Date(Math.min(re.valueOf(),ne.end.valueOf()))),(null===ie||null===re||ie<re)&&(le={start:ie,end:re}),le}function rangesIntersect(te,ne){return(null===te.end||null===ne.start||te.end>ne.start)&&(null===te.start||null===ne.end||te.start<ne.end)}function rangeContainsRange(te,ne){return(null===te.start||null!==ne.start&&ne.start>=te.start)&&(null===te.end||null!==ne.end&&ne.end<=te.end)}function rangeContainsMarker(te,ne){return(null===te.start||ne>=te.start)&&(null===te.end||ne<te.end)}function computeAlignedDayRange(te){let ne=Math.floor(diffDays(te.start,te.end))||1,ie=startOfDay(te.start);return{start:ie,end:addDays(ie,ne)}}function computeVisibleDayRange(te,ne=createDuration(0)){let ie=null,re=null;if(te.end){re=startOfDay(te.end);let ie=te.end.valueOf()-re.valueOf();ie&&ie>=asRoughMs(ne)&&(re=addDays(re,1))}return te.start&&(ie=startOfDay(te.start),re&&re<=ie&&(re=addDays(ie,1))),{start:ie,end:re}}function diffDates(te,ne,ie,re){return"year"===re?createDuration(ie.diffWholeYears(te,ne),"year"):"month"===re?createDuration(ie.diffWholeMonths(te,ne),"month"):function diffDayAndTime(te,ne){let ie=startOfDay(te),re=startOfDay(ne);return{years:0,months:0,days:Math.round(diffDays(ie,re)),milliseconds:ne.valueOf()-re.valueOf()-(te.valueOf()-ie.valueOf())}}(te,ne)}function getNow(te,ne){return"function"==typeof te&&(te=te()),null==te?ne.createNowMarker():ne.createMarker(te)}class DateProfileGenerator{constructor(te){this.props=te,this.nowDate=getNow(te.nowInput,te.dateEnv),this.initHiddenDays()}buildPrev(te,ne,ie){let{dateEnv:re}=this.props,le=re.subtract(re.startOf(ne,te.currentRangeUnit),te.dateIncrement);return this.build(le,-1,ie)}buildNext(te,ne,ie){let{dateEnv:re}=this.props,le=re.add(re.startOf(ne,te.currentRangeUnit),te.dateIncrement);return this.build(le,1,ie)}build(te,ne,ie=!0){let re,le,ce,de,ue,me,{props:ge}=this;return re=this.buildValidRange(),re=this.trimHiddenDays(re),ie&&(te=function constrainMarkerToRange(te,ne){return null!=ne.start&&te<ne.start?ne.start:null!=ne.end&&te>=ne.end?new Date(ne.end.valueOf()-1):te}(te,re)),le=this.buildCurrentRangeInfo(te,ne),ce=/^(year|month|week|day)$/.test(le.unit),de=this.buildRenderRange(this.trimHiddenDays(le.range),le.unit,ce),de=this.trimHiddenDays(de),ue=de,ge.showNonCurrentDates||(ue=intersectRanges(ue,le.range)),ue=this.adjustActiveRange(ue),ue=intersectRanges(ue,re),me=rangesIntersect(le.range,re),rangeContainsMarker(de,te)||(te=de.start),{currentDate:te,validRange:re,currentRange:le.range,currentRangeUnit:le.unit,isRangeAllDay:ce,activeRange:ue,renderRange:de,slotMinTime:ge.slotMinTime,slotMaxTime:ge.slotMaxTime,isValid:me,dateIncrement:this.buildDateIncrement(le.duration)}}buildValidRange(){let te=this.props.validRangeInput,ne="function"==typeof te?te.call(this.props.calendarApi,this.nowDate):te;return this.refineRange(ne)||{start:null,end:null}}buildCurrentRangeInfo(te,ne){let ie,{props:re}=this,le=null,ce=null,de=null;return re.duration?(le=re.duration,ce=re.durationUnit,de=this.buildRangeFromDuration(te,ne,le,ce)):(ie=this.props.dayCount)?(ce="day",de=this.buildRangeFromDayCount(te,ne,ie)):(de=this.buildCustomVisibleRange(te))?ce=re.dateEnv.greatestWholeUnit(de.start,de.end).unit:(le=this.getFallbackDuration(),ce=greatestDurationDenominator(le).unit,de=this.buildRangeFromDuration(te,ne,le,ce)),{duration:le,unit:ce,range:de}}getFallbackDuration(){return createDuration({day:1})}adjustActiveRange(te){let{dateEnv:ne,usesMinMaxTime:ie,slotMinTime:re,slotMaxTime:le}=this.props,{start:ce,end:de}=te;return ie&&(asRoughDays(re)<0&&(ce=startOfDay(ce),ce=ne.add(ce,re)),asRoughDays(le)>1&&(de=startOfDay(de),de=addDays(de,-1),de=ne.add(de,le))),{start:ce,end:de}}buildRangeFromDuration(te,ne,ie,re){let le,ce,de,{dateEnv:ue,dateAlignment:me}=this.props;if(!me){let{dateIncrement:te}=this.props;me=te&&asRoughMs(te)<asRoughMs(ie)?greatestDurationDenominator(te).unit:re}function computeRes(){le=ue.startOf(te,me),ce=ue.add(le,ie),de={start:le,end:ce}}return asRoughDays(ie)<=1&&this.isHiddenDay(le)&&(le=this.skipHiddenDays(le,ne),le=startOfDay(le)),computeRes(),this.trimHiddenDays(de)||(te=this.skipHiddenDays(te,ne),computeRes()),de}buildRangeFromDayCount(te,ne,ie){let re,{dateEnv:le,dateAlignment:ce}=this.props,de=0,ue=te;ce&&(ue=le.startOf(ue,ce)),ue=startOfDay(ue),ue=this.skipHiddenDays(ue,ne),re=ue;do{re=addDays(re,1),this.isHiddenDay(re)||(de+=1)}while(de<ie);return{start:ue,end:re}}buildCustomVisibleRange(te){let{props:ne}=this,ie=ne.visibleRangeInput,re="function"==typeof ie?ie.call(ne.calendarApi,ne.dateEnv.toDate(te)):ie,le=this.refineRange(re);return!le||null!=le.start&&null!=le.end?le:null}buildRenderRange(te,ne,ie){return te}buildDateIncrement(te){let ne,{dateIncrement:ie}=this.props;return ie||((ne=this.props.dateAlignment)?createDuration(1,ne):te||createDuration({days:1}))}refineRange(te){if(te){let ne=function parseRange(te,ne){let ie=null,re=null;return te.start&&(ie=ne.createMarker(te.start)),te.end&&(re=ne.createMarker(te.end)),ie||re?ie&&re&&re<ie?null:{start:ie,end:re}:null}(te,this.props.dateEnv);return ne&&(ne=computeVisibleDayRange(ne)),ne}return null}initHiddenDays(){let te,ne=this.props.hiddenDays||[],ie=[],re=0;for(!1===this.props.weekends&&ne.push(0,6),te=0;te<7;te+=1)(ie[te]=-1!==ne.indexOf(te))||(re+=1);if(!re)throw new Error("invalid hiddenDays");this.isHiddenDayHash=ie}trimHiddenDays(te){let{start:ne,end:ie}=te;return ne&&(ne=this.skipHiddenDays(ne)),ie&&(ie=this.skipHiddenDays(ie,-1,!0)),null==ne||null==ie||ne<ie?{start:ne,end:ie}:null}isHiddenDay(te){return te instanceof Date&&(te=te.getUTCDay()),this.isHiddenDayHash[te]}skipHiddenDays(te,ne=1,ie=!1){for(;this.isHiddenDayHash[(te.getUTCDay()+(ie?ne:0)+7)%7];)te=addDays(te,ne);return te}}function internal_common_createEventInstance(te,ne,ie,re){return{instanceId:guid(),defId:te,range:ne,forcedStartTzo:null==ie?null:ie,forcedEndTzo:null==re?null:re}}function expandRecurring(te,ne,ie){let{dateEnv:re,pluginHooks:le,options:ce}=ie,{defs:de,instances:ue}=te;ue=filterHash(ue,(te=>!de[te.defId].recurringDef));for(let te in de){let ie=de[te];if(ie.recurringDef){let{duration:de}=ie.recurringDef;de||(de=ie.allDay?ce.defaultAllDayEventDuration:ce.defaultTimedEventDuration);let me=expandRecurringRanges(ie,de,ne,re,le.recurringTypes);for(let ne of me){let ie=internal_common_createEventInstance(te,{start:ne,end:re.add(ne,de)});ue[ie.instanceId]=ie}}}return{defs:de,instances:ue}}function expandRecurringRanges(te,ne,ie,re,le){let ce=le[te.recurringDef.typeId].expand(te.recurringDef.typeData,{start:re.subtract(ie.start,ne),end:ie.end},re);return te.allDay&&(ce=ce.map(startOfDay)),ce}const pw={id:String,groupId:String,title:String,url:String,interactive:Boolean},fw={start:identity,end:identity,date:identity,allDay:Boolean},bw=Object.assign(Object.assign(Object.assign({},pw),fw),{extendedProps:identity});function parseEvent(te,ne,ie,re,le=buildEventRefiners(ie),ce,de){let{refined:ue,extra:me}=internal_common_refineEventDef(te,ie,le),ge=function computeIsDefaultAllDay(te,ne){let ie=null;te&&(ie=te.defaultAllDay);null==ie&&(ie=ne.options.defaultAllDay);return ie}(ne,ie),fe=function parseRecurring(te,ne,ie,re){for(let le=0;le<re.length;le+=1){let ce=re[le].parse(te,ie);if(ce){let{allDay:ie}=te;return null==ie&&(ie=ne,null==ie&&(ie=ce.allDayGuess,null==ie&&(ie=!1))),{allDay:ie,duration:ce.duration,typeData:ce.typeData,typeId:le}}}return null}(ue,ge,ie.dateEnv,ie.pluginHooks.recurringTypes);if(fe){let te=internal_common_parseEventDef(ue,me,ne?ne.sourceId:"",fe.allDay,Boolean(fe.duration),ie,ce);return te.recurringDef={typeId:fe.typeId,typeData:fe.typeData,duration:fe.duration},{def:te,instance:null}}let _e=function parseSingle(te,ne,ie,re){let le,ce,{allDay:de}=te,ue=null,me=!1,ge=null,fe=null!=te.start?te.start:te.date;if(le=ie.dateEnv.createMarkerMeta(fe),le)ue=le.marker;else if(!re)return null;null!=te.end&&(ce=ie.dateEnv.createMarkerMeta(te.end));null==de&&(de=null!=ne?ne:(!le||le.isTimeUnspecified)&&(!ce||ce.isTimeUnspecified));de&&ue&&(ue=startOfDay(ue));ce&&(ge=ce.marker,de&&(ge=startOfDay(ge)),ue&&ge<=ue&&(ge=null));ge?me=!0:re||(me=ie.options.forceEventDuration||!1,ge=ie.dateEnv.add(ue,de?ie.options.defaultAllDayEventDuration:ie.options.defaultTimedEventDuration));return{allDay:de,hasEnd:me,range:{start:ue,end:ge},forcedStartTzo:le?le.forcedTzo:null,forcedEndTzo:ce?ce.forcedTzo:null}}(ue,ge,ie,re);if(_e){let te=internal_common_parseEventDef(ue,me,ne?ne.sourceId:"",_e.allDay,_e.hasEnd,ie,ce),re=internal_common_createEventInstance(te.defId,_e.range,_e.forcedStartTzo,_e.forcedEndTzo);return de&&te.publicId&&de[te.publicId]&&(re.instanceId=de[te.publicId]),{def:te,instance:re}}return null}function internal_common_refineEventDef(te,ne,ie=buildEventRefiners(ne)){return refineProps(te,ie)}function buildEventRefiners(te){return Object.assign(Object.assign(Object.assign({},Sw),bw),te.pluginHooks.eventRefiners)}function internal_common_parseEventDef(te,ne,ie,re,le,ce,de){let ue={title:te.title||"",groupId:te.groupId||"",publicId:te.id||"",url:te.url||"",recurringDef:null,defId:(de&&te.id?de[te.id]:"")||guid(),sourceId:ie,allDay:re,hasEnd:le,interactive:te.interactive,ui:createEventUi(te,ce),extendedProps:Object.assign(Object.assign({},te.extendedProps||{}),ne)};for(let ne of ce.pluginHooks.eventDefMemberAdders)Object.assign(ue,ne(te));return Object.freeze(ue.ui.classNames),Object.freeze(ue.extendedProps),ue}function parseEvents(te,ne,ie,re,le,ce){let de={defs:{},instances:{}},ue=buildEventRefiners(ie);for(let me of te){let te=parseEvent(me,ne,ie,re,ue,le,ce);te&&internal_common_eventTupleToStore(te,de)}return de}function internal_common_eventTupleToStore(te,ne={defs:{},instances:{}}){return ne.defs[te.def.defId]=te.def,te.instance&&(ne.instances[te.instance.instanceId]=te.instance),ne}function getRelevantEvents(te,ne){let ie=te.instances[ne];if(ie){let ne=te.defs[ie.defId],re=filterEventStoreDefs(te,(te=>function isEventDefsGrouped(te,ne){return Boolean(te.groupId&&te.groupId===ne.groupId)}(ne,te)));return re.defs[ne.defId]=ne,re.instances[ie.instanceId]=ie,re}return{defs:{},instances:{}}}function mergeEventStores(te,ne){return{defs:Object.assign(Object.assign({},te.defs),ne.defs),instances:Object.assign(Object.assign({},te.instances),ne.instances)}}function filterEventStoreDefs(te,ne){let ie=filterHash(te.defs,ne),re=filterHash(te.instances,(te=>ie[te.defId]));return{defs:ie,instances:re}}function parseClassNames(te){return Array.isArray(te)?te:"string"==typeof te?te.split(/\s+/):[]}const Sw={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:identity,overlap:identity,allow:identity,className:parseClassNames,classNames:parseClassNames,color:String,backgroundColor:String,borderColor:String,textColor:String},Dw={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function createEventUi(te,ne){let ie=function normalizeConstraint(te,ne){return Array.isArray(te)?parseEvents(te,null,ne,!0):"object"==typeof te&&te?parseEvents([te],null,ne,!0):null!=te?String(te):null}(te.constraint,ne);return{display:te.display||null,startEditable:null!=te.startEditable?te.startEditable:te.editable,durationEditable:null!=te.durationEditable?te.durationEditable:te.editable,constraints:null!=ie?[ie]:[],overlap:null!=te.overlap?te.overlap:null,allows:null!=te.allow?[te.allow]:[],backgroundColor:te.backgroundColor||te.color||"",borderColor:te.borderColor||te.color||"",textColor:te.textColor||"",classNames:(te.className||[]).concat(te.classNames||[])}}function combineEventUis(te){return te.reduce(combineTwoEventUis,Dw)}function combineTwoEventUis(te,ne){return{display:null!=ne.display?ne.display:te.display,startEditable:null!=ne.startEditable?ne.startEditable:te.startEditable,durationEditable:null!=ne.durationEditable?ne.durationEditable:te.durationEditable,constraints:te.constraints.concat(ne.constraints),overlap:"boolean"==typeof ne.overlap?ne.overlap:te.overlap,allows:te.allows.concat(ne.allows),backgroundColor:ne.backgroundColor||te.backgroundColor,borderColor:ne.borderColor||te.borderColor,textColor:ne.textColor||te.textColor,classNames:te.classNames.concat(ne.classNames)}}const Ow={id:String,defaultAllDay:Boolean,url:String,format:String,events:identity,eventDataTransform:identity,success:identity,failure:identity};function parseEventSource(te,ne,ie=buildEventSourceRefiners(ne)){let re;if("string"==typeof te?re={url:te}:"function"==typeof te||Array.isArray(te)?re={events:te}:"object"==typeof te&&te&&(re=te),re){let{refined:le,extra:ce}=refineProps(re,ie),de=function buildEventSourceMeta(te,ne){let ie=ne.pluginHooks.eventSourceDefs;for(let ne=ie.length-1;ne>=0;ne-=1){let re=ie[ne].parseMeta(te);if(re)return{sourceDefId:ne,meta:re}}return null}(le,ne);if(de)return{_raw:te,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:le.defaultAllDay,eventDataTransform:le.eventDataTransform,success:le.success,failure:le.failure,publicId:le.id||"",sourceId:guid(),sourceDefId:de.sourceDefId,meta:de.meta,ui:createEventUi(le,ne),extendedProps:ce}}return null}function buildEventSourceRefiners(te){return Object.assign(Object.assign(Object.assign({},Sw),Ow),te.pluginHooks.eventSourceRefiners)}function reduceEventStore(te,ne,ie,re,le){switch(ne.type){case"RECEIVE_EVENTS":return function receiveRawEvents(te,ne,ie,re,le,ce){if(ne&&ie===ne.latestFetchId){let ie=parseEvents(transformRawEvents(le,ne,ce),ne,ce);return re&&(ie=expandRecurring(ie,re,ce)),mergeEventStores(excludeEventsBySourceId(te,ne.sourceId),ie)}return te}(te,ie[ne.sourceId],ne.fetchId,ne.fetchRange,ne.rawEvents,le);case"RESET_RAW_EVENTS":return function resetRawEvents(te,ne,ie,re,le){const{defIdMap:ce,instanceIdMap:de}=function buildPublicIdMaps(te){const{defs:ne,instances:ie}=te,re={},le={};for(let te in ne){const ie=ne[te],{publicId:le}=ie;le&&(re[le]=te)}for(let te in ie){const re=ne[ie[te].defId],{publicId:ce}=re;ce&&(le[ce]=te)}return{defIdMap:re,instanceIdMap:le}}(te);let ue=parseEvents(transformRawEvents(ie,ne,le),ne,le,!1,ce,de);return expandRecurring(ue,re,le)}(te,ie[ne.sourceId],ne.rawEvents,re.activeRange,le);case"ADD_EVENTS":return function addEvent(te,ne,ie,re){ie&&(ne=expandRecurring(ne,ie,re));return mergeEventStores(te,ne)}(te,ne.eventStore,re?re.activeRange:null,le);case"RESET_EVENTS":return ne.eventStore;case"MERGE_EVENTS":return mergeEventStores(te,ne.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return re?expandRecurring(te,re.activeRange,le):te;case"REMOVE_EVENTS":return function excludeSubEventStore(te,ne){let{defs:ie,instances:re}=te,le={},ce={};for(let te in ie)ne.defs[te]||(le[te]=ie[te]);for(let te in re)!ne.instances[te]&&le[re[te].defId]&&(ce[te]=re[te]);return{defs:le,instances:ce}}(te,ne.eventStore);case"REMOVE_EVENT_SOURCE":return excludeEventsBySourceId(te,ne.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return filterEventStoreDefs(te,(te=>!te.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return te}}function transformRawEvents(te,ne,ie){let re=ie.options.eventDataTransform,le=ne?ne.eventDataTransform:null;return le&&(te=transformEachRawEvent(te,le)),re&&(te=transformEachRawEvent(te,re)),te}function transformEachRawEvent(te,ne){let ie;if(ne){ie=[];for(let re of te){let te=ne(re);te?ie.push(te):null==te&&ie.push(re)}}else ie=te;return ie}function rezoneEventStoreDates(te,ne,ie){let{defs:re}=te,le=mapHash(te.instances,(te=>re[te.defId].allDay?te:Object.assign(Object.assign({},te),{range:{start:ie.createMarker(ne.toDate(te.range.start,te.forcedStartTzo)),end:ie.createMarker(ne.toDate(te.range.end,te.forcedEndTzo))},forcedStartTzo:ie.canComputeOffset?null:te.forcedStartTzo,forcedEndTzo:ie.canComputeOffset?null:te.forcedEndTzo})));return{defs:re,instances:le}}function excludeEventsBySourceId(te,ne){return filterEventStoreDefs(te,(te=>te.sourceId!==ne))}class Emitter{constructor(){this.handlers={},this.thisContext=null}setThisContext(te){this.thisContext=te}setOptions(te){this.options=te}on(te,ne){!function addToHash(te,ne,ie){(te[ne]||(te[ne]=[])).push(ie)}(this.handlers,te,ne)}off(te,ne){!function removeFromHash(te,ne,ie){ie?te[ne]&&(te[ne]=te[ne].filter((te=>te!==ie))):delete te[ne]}(this.handlers,te,ne)}trigger(te,...ne){let ie=this.handlers[te]||[],re=this.options&&this.options[te],le=[].concat(re||[],ie);for(let te of le)te.apply(this.thisContext,ne)}hasHandlers(te){return Boolean(this.handlers[te]&&this.handlers[te].length||this.options&&this.options[te])}}const Yw={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function parseBusinessHours(te,ne){return parseEvents(function refineInputs(te){let ne;ne=!0===te?[{}]:Array.isArray(te)?te.filter((te=>te.daysOfWeek)):"object"==typeof te&&te?[te]:[];return ne=ne.map((te=>Object.assign(Object.assign({},Yw),te))),ne}(te),null,ne)}function triggerDateSelect(te,ne,ie){ie.emitter.trigger("select",Object.assign(Object.assign({},buildDateSpanApiWithContext(te,ie)),{jsEvent:ne?ne.origEvent:null,view:ie.viewApi||ie.calendarApi.view}))}function buildDateSpanApiWithContext(te,ne){let ie={};for(let re of ne.pluginHooks.dateSpanTransforms)Object.assign(ie,re(te,ne));return Object.assign(ie,function buildDateSpanApi(te,ne){return Object.assign(Object.assign({},buildRangeApi(te.range,ne,te.allDay)),{allDay:te.allDay})}(te,ne.dateEnv)),ie}function internal_common_getDefaultEventEnd(te,ne,ie){let{dateEnv:re,options:le}=ie,ce=ne;return te?(ce=startOfDay(ce),ce=re.add(ce,le.defaultAllDayEventDuration)):ce=re.add(ce,le.defaultTimedEventDuration),ce}function applyMutationToEventStore(te,ne,ie,re){let le=compileEventUis(te.defs,ne),ce={defs:{},instances:{}};for(let ne in te.defs){let de=te.defs[ne];ce.defs[ne]=applyMutationToEventDef(de,le[ne],ie,re)}for(let ne in te.instances){let de=te.instances[ne],ue=ce.defs[de.defId];ce.instances[ne]=applyMutationToEventInstance(de,ue,le[de.defId],ie,re)}return ce}function applyMutationToEventDef(te,ne,ie,re){let le=ie.standardProps||{};null==le.hasEnd&&ne.durationEditable&&(ie.startDelta||ie.endDelta)&&(le.hasEnd=!0);let ce=Object.assign(Object.assign(Object.assign({},te),le),{ui:Object.assign(Object.assign({},te.ui),le.ui)});ie.extendedProps&&(ce.extendedProps=Object.assign(Object.assign({},ce.extendedProps),ie.extendedProps));for(let te of re.pluginHooks.eventDefMutationAppliers)te(ce,ie,re);return!ce.hasEnd&&re.options.forceEventDuration&&(ce.hasEnd=!0),ce}function applyMutationToEventInstance(te,ne,ie,re,le){let{dateEnv:ce}=le,de=re.standardProps&&!0===re.standardProps.allDay,ue=re.standardProps&&!1===re.standardProps.hasEnd,me=Object.assign({},te);return de&&(me.range=computeAlignedDayRange(me.range)),re.datesDelta&&ie.startEditable&&(me.range={start:ce.add(me.range.start,re.datesDelta),end:ce.add(me.range.end,re.datesDelta)}),re.startDelta&&ie.durationEditable&&(me.range={start:ce.add(me.range.start,re.startDelta),end:me.range.end}),re.endDelta&&ie.durationEditable&&(me.range={start:me.range.start,end:ce.add(me.range.end,re.endDelta)}),ue&&(me.range={start:me.range.start,end:internal_common_getDefaultEventEnd(ne.allDay,me.range.start,le)}),ne.allDay&&(me.range={start:startOfDay(me.range.start),end:startOfDay(me.range.end)}),me.range.end<me.range.start&&(me.range.end=internal_common_getDefaultEventEnd(ne.allDay,me.range.start,le)),me}class EventSourceImpl{constructor(te,ne){this.context=te,this.internalEventSource=ne}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class internal_common_EventImpl{constructor(te,ne,ie){this._context=te,this._def=ne,this._instance=ie||null}setProp(te,ne){if(te in fw)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===te)ne=pw[te](ne),this.mutate({standardProps:{publicId:ne}});else if(te in pw)ne=pw[te](ne),this.mutate({standardProps:{[te]:ne}});else if(te in Sw){let ie=Sw[te](ne);ie="color"===te?{backgroundColor:ne,borderColor:ne}:"editable"===te?{startEditable:ne,durationEditable:ne}:{[te]:ne},this.mutate({standardProps:{ui:ie}})}else console.warn(`Could not set prop '${te}'. Use setExtendedProp instead.`)}setExtendedProp(te,ne){this.mutate({extendedProps:{[te]:ne}})}setStart(te,ne={}){let{dateEnv:ie}=this._context,re=ie.createMarker(te);if(re&&this._instance){let te=diffDates(this._instance.range.start,re,ie,ne.granularity);ne.maintainDuration?this.mutate({datesDelta:te}):this.mutate({startDelta:te})}}setEnd(te,ne={}){let ie,{dateEnv:re}=this._context;if((null==te||(ie=re.createMarker(te),ie))&&this._instance)if(ie){let te=diffDates(this._instance.range.end,ie,re,ne.granularity);this.mutate({endDelta:te})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(te,ne,ie={}){let re,{dateEnv:le}=this._context,ce={allDay:ie.allDay},de=le.createMarker(te);if(de&&(null==ne||(re=le.createMarker(ne),re))&&this._instance){let te=this._instance.range;!0===ie.allDay&&(te=computeAlignedDayRange(te));let ne=diffDates(te.start,de,le,ie.granularity);if(re){let de=diffDates(te.end,re,le,ie.granularity);!function durationsEqual(te,ne){return te.years===ne.years&&te.months===ne.months&&te.days===ne.days&&te.milliseconds===ne.milliseconds}(ne,de)?this.mutate({startDelta:ne,endDelta:de,standardProps:ce}):this.mutate({datesDelta:ne,standardProps:ce})}else ce.hasEnd=!1,this.mutate({datesDelta:ne,standardProps:ce})}}moveStart(te){let ne=createDuration(te);ne&&this.mutate({startDelta:ne})}moveEnd(te){let ne=createDuration(te);ne&&this.mutate({endDelta:ne})}moveDates(te){let ne=createDuration(te);ne&&this.mutate({datesDelta:ne})}setAllDay(te,ne={}){let ie={allDay:te},{maintainDuration:re}=ne;null==re&&(re=this._context.options.allDayMaintainDuration),this._def.allDay!==te&&(ie.hasEnd=re),this.mutate({standardProps:ie})}formatRange(te){let{dateEnv:ne}=this._context,ie=this._instance,re=internal_common_createFormatter(te);return this._def.hasEnd?ne.formatRange(ie.range.start,ie.range.end,re,{forcedStartTzo:ie.forcedStartTzo,forcedEndTzo:ie.forcedEndTzo}):ne.format(ie.range.start,re,{forcedTzo:ie.forcedStartTzo})}mutate(te){let ne=this._instance;if(ne){let ie=this._def,re=this._context,{eventStore:le}=re.getCurrentData(),ce=getRelevantEvents(le,ne.instanceId);ce=applyMutationToEventStore(ce,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},te,re);let de=new internal_common_EventImpl(re,ie,ne);this._def=ce.defs[ie.defId],this._instance=ce.instances[ne.instanceId],re.dispatch({type:"MERGE_EVENTS",eventStore:ce}),re.emitter.trigger("eventChange",{oldEvent:de,event:this,relatedEvents:buildEventApis(ce,re,ne),revert(){re.dispatch({type:"RESET_EVENTS",eventStore:le})}})}}remove(){let te=this._context,ne=eventApiToStore(this);te.dispatch({type:"REMOVE_EVENTS",eventStore:ne}),te.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){te.dispatch({type:"MERGE_EVENTS",eventStore:ne})}})}get source(){let{sourceId:te}=this._def;return te?new EventSourceImpl(this._context,this._context.getCurrentData().eventSources[te]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let te=this._instance;return te?this._context.dateEnv.formatIso(te.range.start,{omitTime:this._def.allDay,forcedTzo:te.forcedStartTzo}):""}get endStr(){let te=this._instance;return te&&this._def.hasEnd?this._context.dateEnv.formatIso(te.range.end,{omitTime:this._def.allDay,forcedTzo:te.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(te={}){let ne=this._def,{ui:ie}=ne,{startStr:re,endStr:le}=this,ce={allDay:ne.allDay};return ne.title&&(ce.title=ne.title),re&&(ce.start=re),le&&(ce.end=le),ne.publicId&&(ce.id=ne.publicId),ne.groupId&&(ce.groupId=ne.groupId),ne.url&&(ce.url=ne.url),ie.display&&"auto"!==ie.display&&(ce.display=ie.display),te.collapseColor&&ie.backgroundColor&&ie.backgroundColor===ie.borderColor?ce.color=ie.backgroundColor:(ie.backgroundColor&&(ce.backgroundColor=ie.backgroundColor),ie.borderColor&&(ce.borderColor=ie.borderColor)),ie.textColor&&(ce.textColor=ie.textColor),ie.classNames.length&&(ce.classNames=ie.classNames),Object.keys(ne.extendedProps).length&&(te.collapseExtendedProps?Object.assign(ce,ne.extendedProps):ce.extendedProps=ne.extendedProps),ce}toJSON(){return this.toPlainObject()}}function eventApiToStore(te){let ne=te._def,ie=te._instance;return{defs:{[ne.defId]:ne},instances:ie?{[ie.instanceId]:ie}:{}}}function buildEventApis(te,ne,ie){let{defs:re,instances:le}=te,ce=[],de=ie?ie.instanceId:"";for(let te in le){let ie=le[te],ue=re[ie.defId];ie.instanceId!==de&&ce.push(new internal_common_EventImpl(ne,ue,ie))}return ce}function internal_common_sliceEventStore(te,ne,ie,re){let le={},ce={},de={},ue=[],me=[],ge=compileEventUis(te.defs,ne);for(let ne in te.defs){let ie=te.defs[ne];"inverse-background"===ge[ie.defId].display&&(ie.groupId?(le[ie.groupId]=[],de[ie.groupId]||(de[ie.groupId]=ie)):ce[ne]=[])}for(let ne in te.instances){let de=te.instances[ne],fe=te.defs[de.defId],_e=ge[fe.defId],be=de.range,Ce=!fe.allDay&&re?computeVisibleDayRange(be,re):be,ye=intersectRanges(Ce,ie);ye&&("inverse-background"===_e.display?fe.groupId?le[fe.groupId].push(ye):ce[de.defId].push(ye):"none"!==_e.display&&("background"===_e.display?ue:me).push({def:fe,ui:_e,instance:de,range:ye,isStart:Ce.start&&Ce.start.valueOf()===ye.start.valueOf(),isEnd:Ce.end&&Ce.end.valueOf()===ye.end.valueOf()}))}for(let te in le){let ne=invertRanges(le[te],ie);for(let ie of ne){let ne=de[te],re=ge[ne.defId];ue.push({def:ne,ui:re,instance:null,range:ie,isStart:!1,isEnd:!1})}}for(let ne in ce){let re=invertRanges(ce[ne],ie);for(let ie of re)ue.push({def:te.defs[ne],ui:ge[ne],instance:null,range:ie,isStart:!1,isEnd:!1})}return{bg:ue,fg:me}}function setElSeg(te,ne){te.fcSeg=ne}function getElSeg(te){return te.fcSeg||te.parentNode.fcSeg||null}function compileEventUis(te,ne){return mapHash(te,(te=>compileEventUi(te,ne)))}function compileEventUi(te,ne){let ie=[];return ne[""]&&ie.push(ne[""]),ne[te.defId]&&ie.push(ne[te.defId]),ie.push(te.ui),combineEventUis(ie)}function sortEventSegs(te,ne){let ie=te.map(buildSegCompareObj);return ie.sort(((te,ie)=>function compareByFieldSpecs(te,ne,ie){let re,le;for(re=0;re<ie.length;re+=1)if(le=compareByFieldSpec(te,ne,ie[re]),le)return le;return 0}(te,ie,ne))),ie.map((te=>te._seg))}function buildSegCompareObj(te){let{eventRange:ne}=te,ie=ne.def,re=ne.instance?ne.instance.range:ne.range,le=re.start?re.start.valueOf():0,ce=re.end?re.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},ie.extendedProps),ie),{id:ie.publicId,start:le,end:ce,duration:ce-le,allDay:Number(ie.allDay),_seg:te})}function computeSegDraggable(te,ne){let{pluginHooks:ie}=ne,re=ie.isDraggableTransformers,{def:le,ui:ce}=te.eventRange,de=ce.startEditable;for(let te of re)de=te(de,le,ce,ne);return de}function computeSegStartResizable(te,ne){return te.isStart&&te.eventRange.ui.durationEditable&&ne.options.eventResizableFromStart}function computeSegEndResizable(te,ne){return te.isEnd&&te.eventRange.ui.durationEditable}function buildSegTimeText(te,ne,ie,re,le,ce,de){let{dateEnv:ue,options:me}=ie,{displayEventTime:ge,displayEventEnd:fe}=me,_e=te.eventRange.def,be=te.eventRange.instance;null==ge&&(ge=!1!==re),null==fe&&(fe=!1!==le);let Ce=be.range.start,ye=be.range.end,we=ce||te.start||te.eventRange.range.start,ke=de||te.end||te.eventRange.range.end,Se=startOfDay(Ce).valueOf()===startOfDay(we).valueOf(),xe=startOfDay(addMs(ye,-1)).valueOf()===startOfDay(addMs(ke,-1)).valueOf();return ge&&!_e.allDay&&(Se||xe)?(we=Se?Ce:we,ke=xe?ye:ke,fe&&_e.hasEnd?ue.formatRange(we,ke,ne,{forcedStartTzo:ce?null:be.forcedStartTzo,forcedEndTzo:de?null:be.forcedEndTzo}):ue.format(we,ne,{forcedTzo:ce?null:be.forcedStartTzo})):""}function getSegMeta(te,ne,ie){let re=te.eventRange.range;return{isPast:re.end<=(ie||ne.start),isFuture:re.start>=(ie||ne.end),isToday:ne&&rangeContainsMarker(ne,re.start)}}function getEventClassNames(te){let ne=["fc-event"];return te.isMirror&&ne.push("fc-event-mirror"),te.isDraggable&&ne.push("fc-event-draggable"),(te.isStartResizable||te.isEndResizable)&&ne.push("fc-event-resizable"),te.isDragging&&ne.push("fc-event-dragging"),te.isResizing&&ne.push("fc-event-resizing"),te.isSelected&&ne.push("fc-event-selected"),te.isStart&&ne.push("fc-event-start"),te.isEnd&&ne.push("fc-event-end"),te.isPast&&ne.push("fc-event-past"),te.isToday&&ne.push("fc-event-today"),te.isFuture&&ne.push("fc-event-future"),ne}function buildEventRangeKey(te){return te.instance?te.instance.instanceId:`${te.def.defId}:${te.range.start.toISOString()}`}function getSegAnchorAttrs(te,ne){let{def:ie,instance:re}=te.eventRange,{url:le}=ie;if(le)return{href:le};let{emitter:ce,options:de}=ne,{eventInteractive:ue}=de;return null==ue&&(ue=ie.interactive,null==ue&&(ue=Boolean(ce.hasHandlers("eventClick")))),ue?createAriaKeyboardAttrs((te=>{ce.trigger("eventClick",{el:te.target,event:new internal_common_EventImpl(ne,ie,re),jsEvent:te,view:ne.viewApi})})):{}}const Qw={start:identity,end:identity,allDay:Boolean};function parseDateSpan(te,ne,ie){let re=function parseOpenDateSpan(te,ne){let{refined:ie,extra:re}=refineProps(te,Qw),le=ie.start?ne.createMarkerMeta(ie.start):null,ce=ie.end?ne.createMarkerMeta(ie.end):null,{allDay:de}=ie;null==de&&(de=le&&le.isTimeUnspecified&&(!ce||ce.isTimeUnspecified));return Object.assign({range:{start:le?le.marker:null,end:ce?ce.marker:null},allDay:de},re)}(te,ne),{range:le}=re;if(!le.start)return null;if(!le.end){if(null==ie)return null;le.end=ne.add(le.start,ie)}return re}function buildRangeApiWithTimeZone(te,ne,ie){return Object.assign(Object.assign({},buildRangeApi(te,ne,ie)),{timeZone:ne.timeZone})}function buildRangeApi(te,ne,ie){return{start:ne.toDate(te.start),end:ne.toDate(te.end),startStr:ne.formatIso(te.start,{omitTime:ie}),endStr:ne.formatIso(te.end,{omitTime:ie})}}class JsonRequestError extends Error{constructor(te,ne){super(te),this.response=ne}}let Jw;function getCanVGrowWithinCell(){return null==Jw&&(Jw=function computeCanVGrowWithinCell(){if("undefined"==typeof document)return!0;let te=document.createElement("div");te.style.position="absolute",te.style.top="0px",te.style.left="0px",te.innerHTML="<table><tr><td><div></div></td></tr></table>",te.querySelector("table").style.height="100px",te.querySelector("div").style.height="100%",document.body.appendChild(te);let ne=te.querySelector("div").offsetHeight>0;return document.body.removeChild(te),ne}()),Jw}class CalendarRoot extends Jy{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{flushSync((()=>{this.setState({forPrint:!0})}))},this.handleAfterPrint=()=>{flushSync((()=>{this.setState({forPrint:!1})}))}}render(){let{props:te}=this,{options:ne}=te,{forPrint:ie}=this.state,re=ie||"auto"===ne.height||"auto"===ne.contentHeight,le=re||null==ne.height?"":ne.height,ce=["fc",ie?"fc-media-print":"fc-media-screen",`fc-direction-${ne.direction}`,te.theme.getClass("root")];return getCanVGrowWithinCell()||ce.push("fc-liquid-hack"),te.children(ce,le,re,ie)}componentDidMount(){let{emitter:te}=this.props;te.on("_beforeprint",this.handleBeforePrint),te.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:te}=this.props;te.off("_beforeprint",this.handleBeforePrint),te.off("_afterprint",this.handleAfterPrint)}}class Interaction{constructor(te){this.component=te.component,this.isHitComboAllowed=te.isHitComboAllowed||null}destroy(){}}function interactionSettingsToStore(te){return{[te.component.uid]:te}}const dA={};class CalendarImpl{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(te){this.currentDataManager.dispatch(te)}get view(){return this.getCurrentData().viewApi}batchRendering(te){te()}updateSize(){this.trigger("_resize",!0)}setOption(te,ne){this.dispatch({type:"SET_OPTION",optionName:te,rawOptionValue:ne})}getOption(te){return this.currentDataManager.currentCalendarOptionsInput[te]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(te,ne){let{currentDataManager:ie}=this;ie.currentCalendarOptionsRefiners[te]?ie.emitter.on(te,ne):console.warn(`Unknown listener name '${te}'`)}off(te,ne){this.currentDataManager.emitter.off(te,ne)}trigger(te,...ne){this.currentDataManager.emitter.trigger(te,...ne)}changeView(te,ne){this.batchRendering((()=>{if(this.unselect(),ne)if(ne.start&&ne.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:te}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:ne});else{let{dateEnv:ie}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:te,dateMarker:ie.createMarker(ne)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:te})}))}zoomTo(te,ne){let ie;ne=ne||"day",ie=this.getCurrentData().viewSpecs[ne]||this.getUnitViewSpec(ne),this.unselect(),ie?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:ie.type,dateMarker:te}):this.dispatch({type:"CHANGE_DATE",dateMarker:te})}getUnitViewSpec(te){let ne,ie,{viewSpecs:re,toolbarConfig:le}=this.getCurrentData(),ce=[].concat(le.header?le.header.viewsWithButtons:[],le.footer?le.footer.viewsWithButtons:[]);for(let te in re)ce.push(te);for(ne=0;ne<ce.length;ne+=1)if(ie=re[ce[ne]],ie&&ie.singleUnit===te)return ie;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let te=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:te.dateEnv.addYears(te.currentDate,-1)})}nextYear(){let te=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:te.dateEnv.addYears(te.currentDate,1)})}today(){let te=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:getNow(te.calendarOptions.now,te.dateEnv)})}gotoDate(te){let ne=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:ne.dateEnv.createMarker(te)})}incrementDate(te){let ne=this.getCurrentData(),ie=createDuration(te);ie&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:ne.dateEnv.add(ne.currentDate,ie)}))}getDate(){let te=this.getCurrentData();return te.dateEnv.toDate(te.currentDate)}formatDate(te,ne){let{dateEnv:ie}=this.getCurrentData();return ie.format(ie.createMarker(te),internal_common_createFormatter(ne))}formatRange(te,ne,ie){let{dateEnv:re}=this.getCurrentData();return re.formatRange(re.createMarker(te),re.createMarker(ne),internal_common_createFormatter(ie),ie)}formatIso(te,ne){let{dateEnv:ie}=this.getCurrentData();return ie.formatIso(ie.createMarker(te),{omitTime:ne})}select(te,ne){let ie;ie=null==ne?null!=te.start?te:{start:te,end:null}:{start:te,end:ne};let re=this.getCurrentData(),le=parseDateSpan(ie,re.dateEnv,createDuration({days:1}));le&&(this.dispatch({type:"SELECT_DATES",selection:le}),triggerDateSelect(le,null,re))}unselect(te){let ne=this.getCurrentData();ne.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function triggerDateUnselect(te,ne){ne.emitter.trigger("unselect",{jsEvent:te?te.origEvent:null,view:ne.viewApi||ne.calendarApi.view})}(te,ne))}addEvent(te,ne){if(te instanceof internal_common_EventImpl){let ne=te._def,ie=te._instance;return this.getCurrentData().eventStore.defs[ne.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:internal_common_eventTupleToStore({def:ne,instance:ie})}),this.triggerEventAdd(te)),te}let ie,re=this.getCurrentData();if(ne instanceof EventSourceImpl)ie=ne.internalEventSource;else if("boolean"==typeof ne)ne&&([ie]=hashValuesToArray(re.eventSources));else if(null!=ne){let te=this.getEventSourceById(ne);if(!te)return console.warn(`Could not find an event source with ID "${ne}"`),null;ie=te.internalEventSource}let le=parseEvent(te,ie,re,!1);if(le){let te=new internal_common_EventImpl(re,le.def,le.def.recurringDef?null:le.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:internal_common_eventTupleToStore(le)}),this.triggerEventAdd(te),te}return null}triggerEventAdd(te){let{emitter:ne}=this.getCurrentData();ne.trigger("eventAdd",{event:te,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:eventApiToStore(te)})}})}getEventById(te){let ne=this.getCurrentData(),{defs:ie,instances:re}=ne.eventStore;te=String(te);for(let le in ie){let ce=ie[le];if(ce.publicId===te){if(ce.recurringDef)return new internal_common_EventImpl(ne,ce,null);for(let te in re){let ie=re[te];if(ie.defId===ce.defId)return new internal_common_EventImpl(ne,ce,ie)}}}return null}getEvents(){let te=this.getCurrentData();return buildEventApis(te.eventStore,te)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let te=this.getCurrentData(),ne=te.eventSources,ie=[];for(let re in ne)ie.push(new EventSourceImpl(te,ne[re]));return ie}getEventSourceById(te){let ne=this.getCurrentData(),ie=ne.eventSources;te=String(te);for(let re in ie)if(ie[re].publicId===te)return new EventSourceImpl(ne,ie[re]);return null}addEventSource(te){let ne=this.getCurrentData();if(te instanceof EventSourceImpl)return ne.eventSources[te.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[te.internalEventSource]}),te;let ie=parseEventSource(te,ne);return ie?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[ie]}),new EventSourceImpl(ne,ie)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(te){let ne=createDuration(te);ne&&this.trigger("_scrollRequest",{time:ne})}}function pointInsideRect(te,ne){return te.left>=ne.left&&te.left<ne.right&&te.top>=ne.top&&te.top<ne.bottom}function intersectRects(te,ne){let ie={left:Math.max(te.left,ne.left),right:Math.min(te.right,ne.right),top:Math.max(te.top,ne.top),bottom:Math.min(te.bottom,ne.bottom)};return ie.left<ie.right&&ie.top<ie.bottom&&ie}const uA={defs:{},instances:{}};class Splitter{constructor(){this.getKeysForEventDefs=memoize(this._getKeysForEventDefs),this.splitDateSelection=memoize(this._splitDateSpan),this.splitEventStore=memoize(this._splitEventStore),this.splitIndividualUi=memoize(this._splitIndividualUi),this.splitEventDrag=memoize(this._splitInteraction),this.splitEventResize=memoize(this._splitInteraction),this.eventUiBuilders={}}splitProps(te){let ne=this.getKeyInfo(te),ie=this.getKeysForEventDefs(te.eventStore),re=this.splitDateSelection(te.dateSelection),le=this.splitIndividualUi(te.eventUiBases,ie),ce=this.splitEventStore(te.eventStore,ie),de=this.splitEventDrag(te.eventDrag),ue=this.splitEventResize(te.eventResize),me={};this.eventUiBuilders=mapHash(ne,((te,ne)=>this.eventUiBuilders[ne]||memoize(buildEventUiForKey)));for(let ie in ne){let ge=ne[ie],fe=ce[ie]||uA,_e=this.eventUiBuilders[ie];me[ie]={businessHours:ge.businessHours||te.businessHours,dateSelection:re[ie]||null,eventStore:fe,eventUiBases:_e(te.eventUiBases[""],ge.ui,le[ie]),eventSelection:fe.instances[te.eventSelection]?te.eventSelection:"",eventDrag:de[ie]||null,eventResize:ue[ie]||null}}return me}_splitDateSpan(te){let ne={};if(te){let ie=this.getKeysForDateSpan(te);for(let re of ie)ne[re]=te}return ne}_getKeysForEventDefs(te){return mapHash(te.defs,(te=>this.getKeysForEventDef(te)))}_splitEventStore(te,ne){let{defs:ie,instances:re}=te,le={};for(let te in ie)for(let re of ne[te])le[re]||(le[re]={defs:{},instances:{}}),le[re].defs[te]=ie[te];for(let te in re){let ie=re[te];for(let re of ne[ie.defId])le[re]&&(le[re].instances[te]=ie)}return le}_splitIndividualUi(te,ne){let ie={};for(let re in te)if(re)for(let le of ne[re])ie[le]||(ie[le]={}),ie[le][re]=te[re];return ie}_splitInteraction(te){let ne={};if(te){let ie=this._splitEventStore(te.affectedEvents,this._getKeysForEventDefs(te.affectedEvents)),re=this._getKeysForEventDefs(te.mutatedEvents),le=this._splitEventStore(te.mutatedEvents,re),populate=re=>{ne[re]||(ne[re]={affectedEvents:ie[re]||uA,mutatedEvents:le[re]||uA,isEvent:te.isEvent})};for(let te in ie)populate(te);for(let te in le)populate(te)}return ne}}function buildEventUiForKey(te,ne,ie){let re=[];te&&re.push(te),ne&&re.push(ne);let le={"":combineEventUis(re)};return ie&&Object.assign(le,ie),le}function getDateMeta(te,ne,ie,re){return{dow:te.getUTCDay(),isDisabled:Boolean(re&&!rangeContainsMarker(re.activeRange,te)),isOther:Boolean(re&&!rangeContainsMarker(re.currentRange,te)),isToday:Boolean(ne&&rangeContainsMarker(ne,te)),isPast:Boolean(ie?te<ie:!!ne&&te<ne.start),isFuture:Boolean(ie?te>ie:!!ne&&te>=ne.end)}}function getDayClassNames(te,ne){let ie=["fc-day",`fc-day-${sy[te.dow]}`];return te.isDisabled?ie.push("fc-day-disabled"):(te.isToday&&(ie.push("fc-day-today"),ie.push(ne.getClass("today"))),te.isPast&&ie.push("fc-day-past"),te.isFuture&&ie.push("fc-day-future"),te.isOther&&ie.push("fc-day-other")),ie}const pA=internal_common_createFormatter({year:"numeric",month:"long",day:"numeric"}),gA=internal_common_createFormatter({week:"long"});function buildNavLinkAttrs(te,ne,ie="day",re=!0){const{dateEnv:le,options:ce,calendarApi:de}=te;let ue=le.format(ne,"week"===ie?gA:pA);if(ce.navLinks){let te=le.toDate(ne);const handleInteraction=te=>{let re="day"===ie?ce.navLinkDayClick:"week"===ie?ce.navLinkWeekClick:null;"function"==typeof re?re.call(de,le.toDate(ne),te):("string"==typeof re&&(ie=re),de.zoomTo(ne,ie))};return Object.assign({title:formatWithOrdinals(ce.navLinkHint,[ue,te],ue),"data-navlink":""},re?createAriaClickAttrs(handleInteraction):{onClick:handleInteraction})}return{"aria-label":ue}}let IA,SA=null;function getIsRtlScrollbarOnLeft(){return null===SA&&(SA=function computeIsRtlScrollbarOnLeft(){let te=document.createElement("div");applyStyle(te,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),te.innerHTML="<div></div>",document.body.appendChild(te);let ne=te.firstChild.getBoundingClientRect().left>te.getBoundingClientRect().left;return removeElement(te),ne}()),SA}function getScrollbarWidths(){return IA||(IA=function computeScrollbarWidths(){let te=document.createElement("div");te.style.overflow="scroll",te.style.position="absolute",te.style.top="-9999px",te.style.left="-9999px",document.body.appendChild(te);let ne=computeScrollbarWidthsForEl(te);return document.body.removeChild(te),ne}()),IA}function computeScrollbarWidthsForEl(te){return{x:te.offsetHeight-te.clientHeight,y:te.offsetWidth-te.clientWidth}}function computeInnerRect(te,ne=!1,ie){let re=ie?te.getBoundingClientRect():computeRect(te),le=function computeEdges(te,ne=!1){let ie=window.getComputedStyle(te),re=parseInt(ie.borderLeftWidth,10)||0,le=parseInt(ie.borderRightWidth,10)||0,ce=parseInt(ie.borderTopWidth,10)||0,de=parseInt(ie.borderBottomWidth,10)||0,ue=computeScrollbarWidthsForEl(te),me=ue.y-re-le,ge={borderLeft:re,borderRight:le,borderTop:ce,borderBottom:de,scrollbarBottom:ue.x-ce-de,scrollbarLeft:0,scrollbarRight:0};return getIsRtlScrollbarOnLeft()&&"rtl"===ie.direction?ge.scrollbarLeft=me:ge.scrollbarRight=me,ne&&(ge.paddingLeft=parseInt(ie.paddingLeft,10)||0,ge.paddingRight=parseInt(ie.paddingRight,10)||0,ge.paddingTop=parseInt(ie.paddingTop,10)||0,ge.paddingBottom=parseInt(ie.paddingBottom,10)||0),ge}(te,ne),ce={left:re.left+le.borderLeft+le.scrollbarLeft,right:re.right-le.borderRight-le.scrollbarRight,top:re.top+le.borderTop,bottom:re.bottom-le.borderBottom-le.scrollbarBottom};return ne&&(ce.left+=le.paddingLeft,ce.right-=le.paddingRight,ce.top+=le.paddingTop,ce.bottom-=le.paddingBottom),ce}function computeRect(te){let ne=te.getBoundingClientRect();return{left:ne.left+window.scrollX,top:ne.top+window.scrollY,right:ne.right+window.scrollX,bottom:ne.bottom+window.scrollY}}function getClippingParents(te){let ne=[];for(;te instanceof HTMLElement;){let ie=window.getComputedStyle(te);if("fixed"===ie.position)break;/(auto|scroll)/.test(ie.overflow+ie.overflowY+ie.overflowX)&&ne.push(te),te=te.parentNode}return ne}class PositionCache{constructor(te,ne,ie,re){this.els=ne;let le=this.originClientRect=te.getBoundingClientRect();ie&&this.buildElHorizontals(le.left),re&&this.buildElVerticals(le.top)}buildElHorizontals(te){let ne=[],ie=[];for(let re of this.els){let le=re.getBoundingClientRect();ne.push(le.left-te),ie.push(le.right-te)}this.lefts=ne,this.rights=ie}buildElVerticals(te){let ne=[],ie=[];for(let re of this.els){let le=re.getBoundingClientRect();ne.push(le.top-te),ie.push(le.bottom-te)}this.tops=ne,this.bottoms=ie}leftToIndex(te){let ne,{lefts:ie,rights:re}=this,le=ie.length;for(ne=0;ne<le;ne+=1)if(te>=ie[ne]&&te<re[ne])return ne}topToIndex(te){let ne,{tops:ie,bottoms:re}=this,le=ie.length;for(ne=0;ne<le;ne+=1)if(te>=ie[ne]&&te<re[ne])return ne}getWidth(te){return this.rights[te]-this.lefts[te]}getHeight(te){return this.bottoms[te]-this.tops[te]}similarTo(te){return similarNumArrays(this.tops||[],te.tops||[])&&similarNumArrays(this.bottoms||[],te.bottoms||[])&&similarNumArrays(this.lefts||[],te.lefts||[])&&similarNumArrays(this.rights||[],te.rights||[])}}function similarNumArrays(te,ne){const ie=te.length;if(ie!==ne.length)return!1;for(let re=0;re<ie;re++)if(Math.round(te[re])!==Math.round(ne[re]))return!1;return!0}class ScrollController{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class ElementScrollController extends ScrollController{constructor(te){super(),this.el=te}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(te){this.el.scrollTop=te}setScrollLeft(te){this.el.scrollLeft=te}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class WindowScrollController extends ScrollController{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(te){window.scroll(window.scrollX,te)}setScrollLeft(te){window.scroll(te,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class DateComponent extends Jy{constructor(){super(...arguments),this.uid=guid()}prepareHits(){}queryHit(te,ne,ie,re){return null}isValidSegDownEl(te){return!this.props.eventDrag&&!this.props.eventResize&&!elementClosest(te,".fc-event-mirror")}isValidDateDownEl(te){return!(elementClosest(te,".fc-event:not(.fc-bg-event)")||elementClosest(te,".fc-more-link")||elementClosest(te,"a[data-navlink]")||elementClosest(te,".fc-popover"))}}class SegHierarchy{constructor(te=(te=>te.thickness||1)){this.getEntryThickness=te,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(te){let ne=[];for(let ie of te)this.insertEntry(ie,ne);return ne}insertEntry(te,ne){let ie=this.findInsertion(te);this.isInsertionValid(ie,te)?this.insertEntryAt(te,ie):this.handleInvalidInsertion(ie,te,ne)}isInsertionValid(te,ne){return(-1===this.maxCoord||te.levelCoord+this.getEntryThickness(ne)<=this.maxCoord)&&(-1===this.maxStackCnt||te.stackCnt<this.maxStackCnt)}handleInvalidInsertion(te,ne,ie){if(this.allowReslicing&&te.touchingEntry){const re=Object.assign(Object.assign({},ne),{span:intersectSpans(ne.span,te.touchingEntry.span)});ie.push(re),this.splitEntry(ne,te.touchingEntry,ie)}else ie.push(ne)}splitEntry(te,ne,ie){let re=te.span,le=ne.span;re.start<le.start&&this.insertEntry({index:te.index,thickness:te.thickness,span:{start:re.start,end:le.start}},ie),re.end>le.end&&this.insertEntry({index:te.index,thickness:te.thickness,span:{start:le.end,end:re.end}},ie)}insertEntryAt(te,ne){let{entriesByLevel:ie,levelCoords:re}=this;-1===ne.lateral?(insertAt(re,ne.level,ne.levelCoord),insertAt(ie,ne.level,[te])):insertAt(ie[ne.level],ne.lateral,te),this.stackCnts[buildEntryKey(te)]=ne.stackCnt}findInsertion(te){let{levelCoords:ne,entriesByLevel:ie,strictOrder:re,stackCnts:le}=this,ce=ne.length,de=0,ue=-1,me=-1,ge=null,fe=0;for(let _e=0;_e<ce;_e+=1){const ce=ne[_e];if(!re&&ce>=de+this.getEntryThickness(te))break;let be,Ce=ie[_e],ye=binarySearch(Ce,te.span.start,getEntrySpanEnd),we=ye[0]+ye[1];for(;(be=Ce[we])&&be.span.start<te.span.end;){let te=ce+this.getEntryThickness(be);te>de&&(de=te,ge=be,ue=_e,me=we),te===de&&(fe=Math.max(fe,le[buildEntryKey(be)]+1)),we+=1}}let _e=0;if(ge)for(_e=ue+1;_e<ce&&ne[_e]<de;)_e+=1;let be=-1;return _e<ce&&ne[_e]===de&&(be=binarySearch(ie[_e],te.span.end,getEntrySpanEnd)[0]),{touchingLevel:ue,touchingLateral:me,touchingEntry:ge,stackCnt:fe,levelCoord:de,level:_e,lateral:be}}toRects(){let{entriesByLevel:te,levelCoords:ne}=this,ie=te.length,re=[];for(let le=0;le<ie;le+=1){let ie=te[le],ce=ne[le];for(let te of ie)re.push(Object.assign(Object.assign({},te),{thickness:this.getEntryThickness(te),levelCoord:ce}))}return re}}function getEntrySpanEnd(te){return te.span.end}function buildEntryKey(te){return te.index+":"+te.span.start}function intersectSpans(te,ne){let ie=Math.max(te.start,ne.start),re=Math.min(te.end,ne.end);return ie<re?{start:ie,end:re}:null}function insertAt(te,ne,ie){te.splice(ne,0,ie)}function binarySearch(te,ne,ie){let re=0,le=te.length;if(!le||ne<ie(te[re]))return[0,0];if(ne>ie(te[le-1]))return[le,0];for(;re<le;){let ce=Math.floor(re+(le-re)/2),de=ie(te[ce]);if(ne<de)le=ce;else{if(!(ne>de))return[ce,1];re=ce+1}}return[re,0]}class ElementDragging{constructor(te,ne){this.emitter=new Emitter}destroy(){}setMirrorIsVisible(te){}setMirrorNeedsRevert(te){}setAutoScrollEnabled(te){}}const xA={};Boolean;const MA="fc-col-header-cell";function renderInner$1(te){return te.text}class TableDateCell extends Jy{render(){let{dateEnv:te,options:ne,theme:ie,viewApi:re}=this.context,{props:le}=this,{date:ce,dateProfile:de}=le,ue=getDateMeta(ce,le.todayRange,null,de),me=[MA].concat(getDayClassNames(ue,ie)),ge=te.format(ce,le.dayHeaderFormat),fe=!ue.isDisabled&&le.colCnt>1?buildNavLinkAttrs(this.context,ce):{},_e=Object.assign(Object.assign(Object.assign({date:te.toDate(ce),view:re},le.extraRenderProps),{text:ge}),ue);return y(rw,{elTag:"th",elClasses:me,elAttrs:Object.assign({role:"columnheader",colSpan:le.colSpan,"data-date":ue.isDisabled?void 0:formatDayString(ce)},le.extraDataAttrs),renderProps:_e,generatorName:"dayHeaderContent",customGenerator:ne.dayHeaderContent,defaultGenerator:renderInner$1,classNameGenerator:ne.dayHeaderClassNames,didMount:ne.dayHeaderDidMount,willUnmount:ne.dayHeaderWillUnmount},(te=>y("div",{className:"fc-scrollgrid-sync-inner"},!ue.isDisabled&&y(te,{elTag:"a",elAttrs:fe,elClasses:["fc-col-header-cell-cushion",le.isSticky&&"fc-sticky"]}))))}}const LA=internal_common_createFormatter({weekday:"long"});class TableDowCell extends Jy{render(){let{props:te}=this,{dateEnv:ne,theme:ie,viewApi:re,options:le}=this.context,ce=addDays(new Date(2592e5),te.dow),de={dow:te.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},ue=ne.format(ce,te.dayHeaderFormat),me=Object.assign(Object.assign(Object.assign(Object.assign({date:ce},de),{view:re}),te.extraRenderProps),{text:ue});return y(rw,{elTag:"th",elClasses:[MA,...getDayClassNames(de,ie),...te.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:te.colSpan},te.extraDataAttrs),renderProps:me,generatorName:"dayHeaderContent",customGenerator:le.dayHeaderContent,defaultGenerator:renderInner$1,classNameGenerator:le.dayHeaderClassNames,didMount:le.dayHeaderDidMount,willUnmount:le.dayHeaderWillUnmount},(ie=>y("div",{className:"fc-scrollgrid-sync-inner"},y(ie,{elTag:"a",elClasses:["fc-col-header-cell-cushion",te.isSticky&&"fc-sticky"],elAttrs:{"aria-label":ne.format(ce,LA)}}))))}}let PA=(()=>{class NowTimer extends x{constructor(te,ne){super(te,ne),this.initialNowDate=getNow(ne.options.now,ne.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:te,state:ne}=this;return te.children(ne.nowDate,ne.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(te){te.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:te,context:ne}=this,ie=addMs(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),re=ne.dateEnv.startOf(ie,te.unit),le=ne.dateEnv.add(re,createDuration(1,te.unit)),ce=le.valueOf()-ie.valueOf();return ce=Math.min(864e5,ce),{currentState:{nowDate:re,todayRange:buildDayRange(re)},nextState:{nowDate:le,todayRange:buildDayRange(le)},waitMs:ce}}setTimeout(){let{nextState:te,waitMs:ne}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(te,(()=>{this.setTimeout()}))}),ne)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}return NowTimer.contextType=Ky,NowTimer})();function buildDayRange(te){let ne=startOfDay(te);return{start:ne,end:addDays(ne,1)}}class DayHeader extends Jy{constructor(){super(...arguments),this.createDayHeaderFormatter=memoize(createDayHeaderFormatter)}render(){let{context:te}=this,{dates:ne,dateProfile:ie,datesRepDistinctDays:re,renderIntro:le}=this.props,ce=this.createDayHeaderFormatter(te.options.dayHeaderFormat,re,ne.length);return y(PA,{unit:"day"},((te,de)=>y("tr",{role:"row"},le&&le("day"),ne.map((te=>re?y(TableDateCell,{key:te.toISOString(),date:te,dateProfile:ie,todayRange:de,colCnt:ne.length,dayHeaderFormat:ce}):y(TableDowCell,{key:te.getUTCDay(),dow:te.getUTCDay(),dayHeaderFormat:ce}))))))}}function createDayHeaderFormatter(te,ne,ie){return te||function computeFallbackHeaderFormat(te,ne){return internal_common_createFormatter(!te||ne>10?{weekday:"short"}:ne>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(ne,ie)}class DaySeriesModel{constructor(te,ne){let ie=te.start,{end:re}=te,le=[],ce=[],de=-1;for(;ie<re;)ne.isHiddenDay(ie)?le.push(de+.5):(de+=1,le.push(de),ce.push(ie)),ie=addDays(ie,1);this.dates=ce,this.indices=le,this.cnt=ce.length}sliceRange(te){let ne=this.getDateDayIndex(te.start),ie=this.getDateDayIndex(addDays(te.end,-1)),re=Math.max(0,ne),le=Math.min(this.cnt-1,ie);return re=Math.ceil(re),le=Math.floor(le),re<=le?{firstIndex:re,lastIndex:le,isStart:ne===re,isEnd:ie===le}:null}getDateDayIndex(te){let{indices:ne}=this,ie=Math.floor(diffDays(this.dates[0],te));return ie<0?ne[0]-1:ie>=ne.length?ne[ne.length-1]+1:ne[ie]}}class DayTableModel{constructor(te,ne){let ie,re,le,{dates:ce}=te;if(ne){for(re=ce[0].getUTCDay(),ie=1;ie<ce.length&&ce[ie].getUTCDay()!==re;ie+=1);le=Math.ceil(ce.length/ie)}else le=1,ie=ce.length;this.rowCnt=le,this.colCnt=ie,this.daySeries=te,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let te=[];for(let ne=0;ne<this.rowCnt;ne+=1){let ie=[];for(let te=0;te<this.colCnt;te+=1)ie.push(this.buildCell(ne,te));te.push(ie)}return te}buildCell(te,ne){let ie=this.daySeries.dates[te*this.colCnt+ne];return{key:ie.toISOString(),date:ie}}buildHeaderDates(){let te=[];for(let ne=0;ne<this.colCnt;ne+=1)te.push(this.cells[0][ne].date);return te}sliceRange(te){let{colCnt:ne}=this,ie=this.daySeries.sliceRange(te),re=[];if(ie){let{firstIndex:te,lastIndex:le}=ie,ce=te;for(;ce<=le;){let de=Math.floor(ce/ne),ue=Math.min((de+1)*ne,le+1);re.push({row:de,firstCol:ce%ne,lastCol:(ue-1)%ne,isStart:ie.isStart&&ce===te,isEnd:ie.isEnd&&ue-1===le}),ce=ue}}return re}}class Slicer{constructor(){this.sliceBusinessHours=memoize(this._sliceBusinessHours),this.sliceDateSelection=memoize(this._sliceDateSpan),this.sliceEventStore=memoize(this._sliceEventStore),this.sliceEventDrag=memoize(this._sliceInteraction),this.sliceEventResize=memoize(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(te,ne,ie,re,...le){let{eventUiBases:ce}=te,de=this.sliceEventStore(te.eventStore,ce,ne,ie,...le);return{dateSelectionSegs:this.sliceDateSelection(te.dateSelection,ne,ie,ce,re,...le),businessHourSegs:this.sliceBusinessHours(te.businessHours,ne,ie,re,...le),fgEventSegs:de.fg,bgEventSegs:de.bg,eventDrag:this.sliceEventDrag(te.eventDrag,ce,ne,ie,...le),eventResize:this.sliceEventResize(te.eventResize,ce,ne,ie,...le),eventSelection:te.eventSelection}}sliceNowDate(te,ne,ie,re,...le){return this._sliceDateSpan({range:{start:te,end:addMs(te,1)},allDay:!1},ne,ie,{},re,...le)}_sliceBusinessHours(te,ne,ie,re,...le){return te?this._sliceEventStore(expandRecurring(te,computeActiveRange(ne,Boolean(ie)),re),{},ne,ie,...le).bg:[]}_sliceEventStore(te,ne,ie,re,...le){if(te){let ce=internal_common_sliceEventStore(te,ne,computeActiveRange(ie,Boolean(re)),re);return{bg:this.sliceEventRanges(ce.bg,le),fg:this.sliceEventRanges(ce.fg,le)}}return{bg:[],fg:[]}}_sliceInteraction(te,ne,ie,re,...le){if(!te)return null;let ce=internal_common_sliceEventStore(te.mutatedEvents,ne,computeActiveRange(ie,Boolean(re)),re);return{segs:this.sliceEventRanges(ce.fg,le),affectedInstances:te.affectedEvents.instances,isEvent:te.isEvent}}_sliceDateSpan(te,ne,ie,re,le,...ce){if(!te)return[];let de=computeActiveRange(ne,Boolean(ie)),ue=intersectRanges(te.range,de);if(ue){let ne=function fabricateEventRange(te,ne,ie){let re=internal_common_refineEventDef({editable:!1},ie),le=internal_common_parseEventDef(re.refined,re.extra,"",te.allDay,!0,ie);return{def:le,ui:compileEventUi(le,ne),instance:internal_common_createEventInstance(le.defId,te.range),range:te.range,isStart:!0,isEnd:!0}}(te=Object.assign(Object.assign({},te),{range:ue}),re,le),ie=this.sliceRange(te.range,...ce);for(let te of ie)te.eventRange=ne;return ie}return[]}sliceEventRanges(te,ne){let ie=[];for(let re of te)ie.push(...this.sliceEventRange(re,ne));return ie}sliceEventRange(te,ne){let ie=te.range;this.forceDayIfListItem&&"list-item"===te.ui.display&&(ie={start:ie.start,end:addDays(ie.start,1)});let re=this.sliceRange(ie,...ne);for(let ne of re)ne.eventRange=te,ne.isStart=te.isStart&&ne.isStart,ne.isEnd=te.isEnd&&ne.isEnd;return re}}function computeActiveRange(te,ne){let ie=te.activeRange;return ne?ie:{start:addMs(ie.start,te.slotMinTime.milliseconds),end:addMs(ie.end,te.slotMaxTime.milliseconds-864e5)}}function internal_common_isInteractionValid(te,ne,ie){let{instances:re}=te.mutatedEvents;for(let te in re)if(!rangeContainsRange(ne.validRange,re[te].range))return!1;return isNewPropsValid({eventDrag:te},ie)}function isNewPropsValid(te,ne){let ie=ne.getCurrentData(),re=Object.assign({businessHours:ie.businessHours,dateSelection:"",eventStore:ie.eventStore,eventUiBases:ie.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},te);return(ne.pluginHooks.isPropsValid||isPropsValid)(re,ne)}function isPropsValid(te,ne,ie={},re){return!(te.eventDrag&&!function isInteractionPropsValid(te,ne,ie,re){let le=ne.getCurrentData(),ce=te.eventDrag,de=ce.mutatedEvents,ue=de.defs,me=de.instances,ge=compileEventUis(ue,ce.isEvent?te.eventUiBases:{"":le.selectionConfig});re&&(ge=mapHash(ge,re));let fe=function excludeInstances(te,ne){return{defs:te.defs,instances:filterHash(te.instances,(te=>!ne[te.instanceId]))}}(te.eventStore,ce.affectedEvents.instances),_e=fe.defs,be=fe.instances,Ce=compileEventUis(_e,te.eventUiBases);for(let re in me){let de=me[re],ye=de.range,we=ge[de.defId],ke=ue[de.defId];if(!allConstraintsPass(we.constraints,ye,fe,te.businessHours,ne))return!1;let{eventOverlap:Se}=ne.options,xe="function"==typeof Se?Se:null;for(let te in be){let ie=be[te];if(rangesIntersect(ye,ie.range)){if(!1===Ce[ie.defId].overlap&&ce.isEvent)return!1;if(!1===we.overlap)return!1;if(xe&&!xe(new internal_common_EventImpl(ne,_e[ie.defId],ie),new internal_common_EventImpl(ne,ke,de)))return!1}}let Ee=le.eventStore;for(let te of we.allows){let le,ce=Object.assign(Object.assign({},ie),{range:de.range,allDay:ke.allDay}),ue=Ee.defs[ke.defId],me=Ee.instances[re];if(le=ue?new internal_common_EventImpl(ne,ue,me):new internal_common_EventImpl(ne,ke),!te(buildDateSpanApiWithContext(ce,ne),le))return!1}}return!0}(te,ne,ie,re))&&!(te.dateSelection&&!function isDateSelectionPropsValid(te,ne,ie,re){let le=te.eventStore,ce=le.defs,de=le.instances,ue=te.dateSelection,me=ue.range,{selectionConfig:ge}=ne.getCurrentData();re&&(ge=re(ge));if(!allConstraintsPass(ge.constraints,me,le,te.businessHours,ne))return!1;let{selectOverlap:fe}=ne.options,_e="function"==typeof fe?fe:null;for(let te in de){let ie=de[te];if(rangesIntersect(me,ie.range)){if(!1===ge.overlap)return!1;if(_e&&!_e(new internal_common_EventImpl(ne,ce[ie.defId],ie),null))return!1}}for(let te of ge.allows){if(!te(buildDateSpanApiWithContext(Object.assign(Object.assign({},ie),ue),ne),null))return!1}return!0}(te,ne,ie,re))}function allConstraintsPass(te,ne,ie,re,le){for(let ce of te)if(!anyRangesContainRange(constraintToRanges(ce,ne,ie,re,le),ne))return!1;return!0}function constraintToRanges(te,ne,ie,re,le){return"businessHours"===te?eventStoreToRanges(expandRecurring(re,ne,le)):"string"==typeof te?eventStoreToRanges(filterEventStoreDefs(ie,(ne=>ne.groupId===te))):"object"==typeof te&&te?eventStoreToRanges(expandRecurring(te,ne,le)):[]}function eventStoreToRanges(te){let{instances:ne}=te,ie=[];for(let te in ne)ie.push(ne[te].range);return ie}function anyRangesContainRange(te,ne){for(let ie of te)if(rangeContainsRange(ie,ne))return!0;return!1}const FA=/^(visible|hidden)$/;class Scroller extends Jy{constructor(){super(...arguments),this.handleEl=te=>{this.el=te,setRef(this.props.elRef,te)}}render(){let{props:te}=this,{liquid:ne,liquidIsAbsolute:ie}=te,re=ne&&ie,le=["fc-scroller"];return ne&&(ie?le.push("fc-scroller-liquid-absolute"):le.push("fc-scroller-liquid")),y("div",{ref:this.handleEl,className:le.join(" "),style:{overflowX:te.overflowX,overflowY:te.overflowY,left:re&&-(te.overcomeLeft||0)||"",right:re&&-(te.overcomeRight||0)||"",bottom:re&&-(te.overcomeBottom||0)||"",marginLeft:!re&&-(te.overcomeLeft||0)||"",marginRight:!re&&-(te.overcomeRight||0)||"",marginBottom:!re&&-(te.overcomeBottom||0)||"",maxHeight:te.maxHeight||""}},te.children)}needsXScrolling(){if(FA.test(this.props.overflowX))return!1;let{el:te}=this,ne=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:ie}=te;for(let te=0;te<ie.length;te+=1){if(ie[te].getBoundingClientRect().width>ne)return!0}return!1}needsYScrolling(){if(FA.test(this.props.overflowY))return!1;let{el:te}=this,ne=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:ie}=te;for(let te=0;te<ie.length;te+=1){if(ie[te].getBoundingClientRect().height>ne)return!0}return!1}getXScrollbarWidth(){return FA.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return FA.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class RefMap{constructor(te){this.masterCallback=te,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(te,ne)=>{let{depths:ie,currentMap:re}=this,le=!1,ce=!1;null!==te?(le=ne in re,re[ne]=te,ie[ne]=(ie[ne]||0)+1,ce=!0):(ie[ne]-=1,ie[ne]||(delete re[ne],delete this.callbackMap[ne],le=!0)),this.masterCallback&&(le&&this.masterCallback(null,String(ne)),ce&&this.masterCallback(te,String(ne)))}}createRef(te){let ne=this.callbackMap[te];return ne||(ne=this.callbackMap[te]=ne=>{this.handleValue(ne,String(te))}),ne}collect(te,ne,ie){return function collectFromHash(te,ne=0,ie,re=1){let le=[];null==ie&&(ie=Object.keys(te).length);for(let ce=ne;ce<ie;ce+=re){let ne=te[ce];void 0!==ne&&le.push(ne)}return le}(this.currentMap,te,ne,ie)}getAll(){return hashValuesToArray(this.currentMap)}}function computeShrinkWidth(te){let ne=function findElements(te,ne){let ie=te instanceof HTMLElement?[te]:te,re=[];for(let te=0;te<ie.length;te+=1){let le=ie[te].querySelectorAll(ne);for(let te=0;te<le.length;te+=1)re.push(le[te])}return re}(te,".fc-scrollgrid-shrink"),ie=0;for(let te of ne)ie=Math.max(ie,computeSmallestCellWidth(te));return Math.ceil(ie)}function getSectionHasLiquidHeight(te,ne){return te.liquid&&ne.liquid}function isColPropsEqual(te,ne){return isArraysEqual(te,ne,isPropsEqual)}function renderMicroColGroup(te,ne){let ie=[];for(let re of te){let te=re.span||1;for(let le=0;le<te;le+=1)ie.push(y("col",{style:{width:"shrink"===re.width?sanitizeShrinkWidth(ne):re.width||"",minWidth:re.minWidth||""}}))}return y("colgroup",{},...ie)}function sanitizeShrinkWidth(te){return null==te?4:te}function getSectionClassNames(te,ne){let ie=["fc-scrollgrid-section",`fc-scrollgrid-section-${te.type}`,te.className];return ne&&te.liquid&&null==te.maxHeight&&ie.push("fc-scrollgrid-section-liquid"),te.isSticky&&ie.push("fc-scrollgrid-section-sticky"),ie}function renderScrollShim(te){return y("div",{className:"fc-scrollgrid-sticky-shim",style:{width:te.clientWidth,minWidth:te.tableMinWidth}})}function getStickyHeaderDates(te){let{stickyHeaderDates:ne}=te;return null!=ne&&"auto"!==ne||(ne="auto"===te.height||"auto"===te.viewHeight),ne}function getStickyFooterScrollbar(te){let{stickyFooterScrollbar:ne}=te;return null!=ne&&"auto"!==ne||(ne="auto"===te.height||"auto"===te.viewHeight),ne}class SimpleScrollGrid extends Jy{constructor(){super(...arguments),this.processCols=memoize((te=>te),isColPropsEqual),this.renderMicroColGroup=memoize(renderMicroColGroup),this.scrollerRefs=new RefMap,this.scrollerElRefs=new RefMap(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:te,state:ne,context:ie}=this,re=te.sections||[],le=this.processCols(te.cols),ce=this.renderMicroColGroup(le,ne.shrinkWidth),de=function getScrollGridClassNames(te,ne){let ie=["fc-scrollgrid",ne.theme.getClass("table")];return te&&ie.push("fc-scrollgrid-liquid"),ie}(te.liquid,ie);te.collapsibleWidth&&de.push("fc-scrollgrid-collapsible");let ue,me=re.length,ge=0,fe=[],_e=[],be=[];for(;ge<me&&"header"===(ue=re[ge]).type;)fe.push(this.renderSection(ue,ce,!0)),ge+=1;for(;ge<me&&"body"===(ue=re[ge]).type;)_e.push(this.renderSection(ue,ce,!1)),ge+=1;for(;ge<me&&"footer"===(ue=re[ge]).type;)be.push(this.renderSection(ue,ce,!0)),ge+=1;let Ce=!getCanVGrowWithinCell();const ye={role:"rowgroup"};return y("table",{role:"grid",className:de.join(" "),style:{height:te.height}},Boolean(!Ce&&fe.length)&&y("thead",ye,...fe),Boolean(!Ce&&_e.length)&&y("tbody",ye,..._e),Boolean(!Ce&&be.length)&&y("tfoot",ye,...be),Ce&&y("tbody",ye,...fe,..._e,...be))}renderSection(te,ne,ie){return"outerContent"in te?y(_,{key:te.key},te.outerContent):y("tr",{key:te.key,role:"presentation",className:getSectionClassNames(te,this.props.liquid).join(" ")},this.renderChunkTd(te,ne,te.chunk,ie))}renderChunkTd(te,ne,ie,re){if("outerContent"in ie)return ie.outerContent;let{props:le}=this,{forceYScrollbars:ce,scrollerClientWidths:de,scrollerClientHeights:ue}=this.state,me=function getAllowYScrolling(te,ne){return null!=ne.maxHeight||getSectionHasLiquidHeight(te,ne)}(le,te),ge=getSectionHasLiquidHeight(le,te),fe=le.liquid?ce?"scroll":me?"auto":"hidden":"visible",_e=te.key,be=function renderChunkContent(te,ne,ie,re){let{expandRows:le}=ie;return"function"==typeof ne.content?ne.content(ie):y("table",{role:"presentation",className:[ne.tableClassName,te.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:ie.tableMinWidth,width:ie.clientWidth,height:le?ie.clientHeight:""}},ie.tableColGroupNode,y(re?"thead":"tbody",{role:"presentation"},"function"==typeof ne.rowContent?ne.rowContent(ie):ne.rowContent))}(te,ie,{tableColGroupNode:ne,tableMinWidth:"",clientWidth:le.collapsibleWidth||void 0===de[_e]?null:de[_e],clientHeight:void 0!==ue[_e]?ue[_e]:null,expandRows:te.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},re);return y(re?"th":"td",{ref:ie.elRef,role:"presentation"},y("div",{className:"fc-scroller-harness"+(ge?" fc-scroller-harness-liquid":"")},y(Scroller,{ref:this.scrollerRefs.createRef(_e),elRef:this.scrollerElRefs.createRef(_e),overflowY:fe,overflowX:le.liquid?"hidden":"visible",maxHeight:te.maxHeight,liquid:ge,liquidIsAbsolute:!0},be)))}_handleScrollerEl(te,ne){let ie=function getSectionByKey(te,ne){for(let ie of te)if(ie.key===ne)return ie;return null}(this.props.sections,ne);ie&&setRef(ie.chunk.scrollerElRef,te)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return function hasShrinkWidth(te){for(let ne of te)if("shrink"===ne.width)return!0;return!1}(this.props.cols)?computeShrinkWidth(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let te=getScrollbarWidths(),{scrollerRefs:ne,scrollerElRefs:ie}=this,re=!1,le={},ce={};for(let te in ne.currentMap){let ie=ne.currentMap[te];if(ie&&ie.needsYScrolling()){re=!0;break}}for(let ne of this.props.sections){let de=ne.key,ue=ie.currentMap[de];if(ue){let ne=ue.parentNode;le[de]=Math.floor(ne.getBoundingClientRect().width-(re?te.y:0)),ce[de]=Math.floor(ne.getBoundingClientRect().height)}}return{forceYScrollbars:re,scrollerClientWidths:le,scrollerClientHeights:ce}}}SimpleScrollGrid.addStateEquality({scrollerClientWidths:isPropsEqual,scrollerClientHeights:isPropsEqual});class EventContainer extends Jy{constructor(){super(...arguments),this.handleEl=te=>{this.el=te,te&&setElSeg(te,this.props.seg)}}render(){const{props:te,context:ne}=this,{options:ie}=ne,{seg:re}=te,{eventRange:le}=re,{ui:ce}=le,de={event:new internal_common_EventImpl(ne,le.def,le.instance),view:ne.viewApi,timeText:te.timeText,textColor:ce.textColor,backgroundColor:ce.backgroundColor,borderColor:ce.borderColor,isDraggable:!te.disableDragging&&computeSegDraggable(re,ne),isStartResizable:!te.disableResizing&&computeSegStartResizable(re,ne),isEndResizable:!te.disableResizing&&computeSegEndResizable(re),isMirror:Boolean(te.isDragging||te.isResizing||te.isDateSelecting),isStart:Boolean(re.isStart),isEnd:Boolean(re.isEnd),isPast:Boolean(te.isPast),isFuture:Boolean(te.isFuture),isToday:Boolean(te.isToday),isSelected:Boolean(te.isSelected),isDragging:Boolean(te.isDragging),isResizing:Boolean(te.isResizing)};return y(rw,Object.assign({},te,{elRef:this.handleEl,elClasses:[...getEventClassNames(de),...re.eventRange.ui.classNames,...te.elClasses||[]],renderProps:de,generatorName:"eventContent",customGenerator:ie.eventContent,defaultGenerator:te.defaultGenerator,classNameGenerator:ie.eventClassNames,didMount:ie.eventDidMount,willUnmount:ie.eventWillUnmount}))}componentDidUpdate(te){this.el&&this.props.seg!==te.seg&&setElSeg(this.el,this.props.seg)}}class StandardEvent extends Jy{render(){let{props:te,context:ne}=this,{options:ie}=ne,{seg:re}=te,{ui:le}=re.eventRange,ce=buildSegTimeText(re,ie.eventTimeFormat||te.defaultTimeFormat,ne,te.defaultDisplayEventTime,te.defaultDisplayEventEnd);return y(EventContainer,Object.assign({},te,{elTag:"a",elStyle:{borderColor:le.borderColor,backgroundColor:le.backgroundColor},elAttrs:getSegAnchorAttrs(re,ne),defaultGenerator:renderInnerContent$1,timeText:ce}),((te,ne)=>y(_,null,y(te,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:ne.textColor}}),Boolean(ne.isStartResizable)&&y("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(ne.isEndResizable)&&y("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function renderInnerContent$1(te){return y("div",{className:"fc-event-main-frame"},te.timeText&&y("div",{className:"fc-event-time"},te.timeText),y("div",{className:"fc-event-title-container"},y("div",{className:"fc-event-title fc-sticky"},te.event.title||y(_,null," "))))}const NowIndicatorContainer=te=>y(Ky.Consumer,null,(ne=>{let{options:ie}=ne,re={isAxis:te.isAxis,date:ne.dateEnv.toDate(te.date),view:ne.viewApi};return y(rw,Object.assign({},te,{elTag:te.elTag||"div",renderProps:re,generatorName:"nowIndicatorContent",customGenerator:ie.nowIndicatorContent,classNameGenerator:ie.nowIndicatorClassNames,didMount:ie.nowIndicatorDidMount,willUnmount:ie.nowIndicatorWillUnmount}))})),jA=internal_common_createFormatter({day:"numeric"});class DayCellContainer extends Jy{constructor(){super(...arguments),this.refineRenderProps=memoizeObjArg(refineRenderProps)}render(){let{props:te,context:ne}=this,{options:ie}=ne,re=this.refineRenderProps({date:te.date,dateProfile:te.dateProfile,todayRange:te.todayRange,isMonthStart:te.isMonthStart||!1,showDayNumber:te.showDayNumber,extraRenderProps:te.extraRenderProps,viewApi:ne.viewApi,dateEnv:ne.dateEnv,monthStartFormat:ie.monthStartFormat});return y(rw,Object.assign({},te,{elClasses:[...getDayClassNames(re,ne.theme),...te.elClasses||[]],elAttrs:Object.assign(Object.assign({},te.elAttrs),re.isDisabled?{}:{"data-date":formatDayString(te.date)}),renderProps:re,generatorName:"dayCellContent",customGenerator:ie.dayCellContent,defaultGenerator:te.defaultGenerator,classNameGenerator:re.isDisabled?void 0:ie.dayCellClassNames,didMount:ie.dayCellDidMount,willUnmount:ie.dayCellWillUnmount}))}}function hasCustomDayCellContent(te){return Boolean(te.dayCellContent||hasCustomRenderingHandler("dayCellContent",te))}function refineRenderProps(te){let{date:ne,dateEnv:ie,dateProfile:re,isMonthStart:le}=te,ce=getDateMeta(ne,te.todayRange,null,re),de=te.showDayNumber?ie.format(ne,le?te.monthStartFormat:jA):"";return Object.assign(Object.assign(Object.assign({date:ie.toDate(ne),view:te.viewApi},ce),{isMonthStart:le,dayNumberText:de}),te.extraRenderProps)}class BgEvent extends Jy{render(){let{props:te}=this,{seg:ne}=te;return y(EventContainer,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:ne.eventRange.ui.backgroundColor},defaultGenerator:renderInnerContent,seg:ne,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:te.isPast,isFuture:te.isFuture,isToday:te.isToday,disableDragging:!0,disableResizing:!0})}}function renderInnerContent(te){let{title:ne}=te.event;return ne&&y("div",{className:"fc-event-title"},te.event.title)}function renderFill(te){return y("div",{className:`fc-${te}`})}const WeekNumberContainer=te=>y(Ky.Consumer,null,(ne=>{let{dateEnv:ie,options:re}=ne,{date:le}=te,ce=re.weekNumberFormat||te.defaultFormat,de={num:ie.computeWeekNumber(le),text:ie.format(le,ce),date:le};return y(rw,Object.assign({},te,{renderProps:de,generatorName:"weekNumberContent",customGenerator:re.weekNumberContent,defaultGenerator:renderInner,classNameGenerator:re.weekNumberClassNames,didMount:re.weekNumberDidMount,willUnmount:re.weekNumberWillUnmount}))}));function renderInner(te){return te.text}class Popover extends Jy{constructor(){super(...arguments),this.state={titleId:getUniqueDomId()},this.handleRootEl=te=>{this.rootEl=te,this.props.elRef&&setRef(this.props.elRef,te)},this.handleDocumentMouseDown=te=>{const ne=getEventTargetViaRoot(te);this.rootEl.contains(ne)||this.handleCloseClick()},this.handleDocumentKeyDown=te=>{"Escape"===te.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:te}=this.props;te&&te()}}render(){let{theme:te,options:ne}=this.context,{props:ie,state:re}=this,le=["fc-popover",te.getClass("popover")].concat(ie.extraClassNames||[]);return compat_module_j(y("div",Object.assign({},ie.extraAttrs,{id:ie.id,className:le.join(" "),"aria-labelledby":re.titleId,ref:this.handleRootEl}),y("div",{className:"fc-popover-header "+te.getClass("popoverHeader")},y("span",{className:"fc-popover-title",id:re.titleId},ie.title),y("span",{className:"fc-popover-close "+te.getIconClass("close"),title:ne.closeHint,onClick:this.handleCloseClick})),y("div",{className:"fc-popover-body "+te.getClass("popoverContent")},ie.children)),ie.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:te}=this.context,{alignmentEl:ne,alignGridTop:ie}=this.props,{rootEl:re}=this,le=function computeClippedClientRect(te){let ne=getClippingParents(te),ie=te.getBoundingClientRect();for(let te of ne){let ne=intersectRects(ie,te.getBoundingClientRect());if(!ne)return null;ie=ne}return ie}(ne);if(le){let ce=re.getBoundingClientRect(),de=ie?elementClosest(ne,".fc-scrollgrid").getBoundingClientRect().top:le.top,ue=te?le.right-ce.width:le.left;de=Math.max(de,10),ue=Math.min(ue,document.documentElement.clientWidth-10-ce.width),ue=Math.max(ue,10);let me=re.offsetParent.getBoundingClientRect();applyStyle(re,{top:de-me.top,left:ue-me.left})}}}class MorePopover extends DateComponent{constructor(){super(...arguments),this.handleRootEl=te=>{this.rootEl=te,te?this.context.registerInteractiveComponent(this,{el:te,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:te,dateEnv:ne}=this.context,{props:ie}=this,{startDate:re,todayRange:le,dateProfile:ce}=ie,de=ne.format(re,te.dayPopoverFormat);return y(DayCellContainer,{elRef:this.handleRootEl,date:re,dateProfile:ce,todayRange:le},((ne,re,le)=>y(Popover,{elRef:le.ref,id:ie.id,title:de,extraClassNames:["fc-more-popover"].concat(le.className||[]),extraAttrs:le,parentEl:ie.parentEl,alignmentEl:ie.alignmentEl,alignGridTop:ie.alignGridTop,onClose:ie.onClose},hasCustomDayCellContent(te)&&y(ne,{elTag:"div",elClasses:["fc-more-popover-misc"]}),ie.children)))}queryHit(te,ne,ie,re){let{rootEl:le,props:ce}=this;return te>=0&&te<ie&&ne>=0&&ne<re?{dateProfile:ce.dateProfile,dateSpan:Object.assign({allDay:!ce.forceTimed,range:{start:ce.startDate,end:ce.endDate}},ce.extraDateSpan),dayEl:le,rect:{left:0,top:0,right:ie,bottom:re},layer:1}:null}}class MoreLinkContainer extends Jy{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:getUniqueDomId()},this.handleLinkEl=te=>{this.linkEl=te,this.props.elRef&&setRef(this.props.elRef,te)},this.handleClick=te=>{let{props:ne,context:ie}=this,{moreLinkClick:re}=ie.options,le=computeRange(ne).start;function buildPublicSeg(te){let{def:ne,instance:re,range:le}=te.eventRange;return{event:new internal_common_EventImpl(ie,ne,re),start:ie.dateEnv.toDate(le.start),end:ie.dateEnv.toDate(le.end),isStart:te.isStart,isEnd:te.isEnd}}"function"==typeof re&&(re=re({date:le,allDay:Boolean(ne.allDayDate),allSegs:ne.allSegs.map(buildPublicSeg),hiddenSegs:ne.hiddenSegs.map(buildPublicSeg),jsEvent:te,view:ie.viewApi})),re&&"popover"!==re?"string"==typeof re&&ie.calendarApi.zoomTo(le,re):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:te,state:ne}=this;return y(Ky.Consumer,null,(ie=>{let{viewApi:re,options:le,calendarApi:ce}=ie,{moreLinkText:de}=le,{moreCnt:ue}=te,me=computeRange(te),ge="function"==typeof de?de.call(ce,ue):`+${ue} ${de}`,fe=formatWithOrdinals(le.moreLinkHint,[ue],ge),_e={num:ue,shortText:`+${ue}`,text:ge,view:re};return y(_,null,Boolean(te.moreCnt)&&y(rw,{elTag:te.elTag||"a",elRef:this.handleLinkEl,elClasses:[...te.elClasses||[],"fc-more-link"],elStyle:te.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},te.elAttrs),createAriaClickAttrs(this.handleClick)),{title:fe,"aria-expanded":ne.isPopoverOpen,"aria-controls":ne.isPopoverOpen?ne.popoverId:""}),renderProps:_e,generatorName:"moreLinkContent",customGenerator:le.moreLinkContent,defaultGenerator:te.defaultGenerator||renderMoreLinkInner,classNameGenerator:le.moreLinkClassNames,didMount:le.moreLinkDidMount,willUnmount:le.moreLinkWillUnmount},te.children),ne.isPopoverOpen&&y(MorePopover,{id:ne.popoverId,startDate:me.start,endDate:me.end,dateProfile:te.dateProfile,todayRange:te.todayRange,extraDateSpan:te.extraDateSpan,parentEl:this.parentEl,alignmentEl:te.alignmentElRef?te.alignmentElRef.current:this.linkEl,alignGridTop:te.alignGridTop,forceTimed:te.forceTimed,onClose:this.handlePopoverClose},te.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=elementClosest(this.linkEl,".fc-view-harness"))}}function renderMoreLinkInner(te){return te.text}function computeRange(te){if(te.allDayDate)return{start:te.allDayDate,end:addDays(te.allDayDate,1)};let{hiddenSegs:ne}=te;return{start:computeEarliestSegStart(ne),end:(ie=ne,ie.reduce(pickLatestEnd).eventRange.range.end)};var ie}function computeEarliestSegStart(te){return te.reduce(pickEarliestStart).eventRange.range.start}function pickEarliestStart(te,ne){return te.eventRange.range.start<ne.eventRange.range.start?te:ne}function pickLatestEnd(te,ne){return te.eventRange.range.end>ne.eventRange.range.end?te:ne}class Store{constructor(){this.handlers=[]}set(te){this.currentValue=te;for(let ne of this.handlers)ne(te)}subscribe(te){this.handlers.push(te),void 0!==this.currentValue&&te(this.currentValue)}}class CustomRenderingStore extends Store{constructor(){super(...arguments),this.map=new Map}handle(te){const{map:ne}=this;let ie=!1;te.isActive?(ne.set(te.id,te),ie=!0):ne.has(te.id)&&(ne.delete(te.id),ie=!0),ie&&this.set(ne)}}const VA=[],GA={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},HA=Object.assign(Object.assign({},GA),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(te,ne)=>"day"===ne?"Today":`This ${te}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:te=>`Show ${te} more event${1===te?"":"s"}`});function organizeRawLocales(te){let ne=te.length>0?te[0].code:"en",ie=VA.concat(te),re={en:HA};for(let te of ie)re[te.code]=te;return{map:re,defaultCode:ne}}function buildLocale(te,ne){return"object"!=typeof te||Array.isArray(te)?function queryLocale(te,ne){let ie=[].concat(te||[]),re=function queryRawLocale(te,ne){for(let ie=0;ie<te.length;ie+=1){let re=te[ie].toLocaleLowerCase().split("-");for(let te=re.length;te>0;te-=1){let ie=re.slice(0,te).join("-");if(ne[ie])return ne[ie]}}return null}(ie,ne)||HA;return parseLocale(te,ie,re)}(te,ne):parseLocale(te.code,[te.code],te)}function parseLocale(te,ne,ie){let re=mergeProps([GA,ie],["buttonText"]);delete re.code;let{week:le}=re;return delete re.week,{codeArg:te,codes:ne,week:le,simpleNumberFormat:new Intl.NumberFormat(te),options:re}}function createPlugin(te){return{id:guid(),name:te.name,premiumReleaseDate:te.premiumReleaseDate?new Date(te.premiumReleaseDate):void 0,deps:te.deps||[],reducers:te.reducers||[],isLoadingFuncs:te.isLoadingFuncs||[],contextInit:[].concat(te.contextInit||[]),eventRefiners:te.eventRefiners||{},eventDefMemberAdders:te.eventDefMemberAdders||[],eventSourceRefiners:te.eventSourceRefiners||{},isDraggableTransformers:te.isDraggableTransformers||[],eventDragMutationMassagers:te.eventDragMutationMassagers||[],eventDefMutationAppliers:te.eventDefMutationAppliers||[],dateSelectionTransformers:te.dateSelectionTransformers||[],datePointTransforms:te.datePointTransforms||[],dateSpanTransforms:te.dateSpanTransforms||[],views:te.views||{},viewPropsTransformers:te.viewPropsTransformers||[],isPropsValid:te.isPropsValid||null,externalDefTransforms:te.externalDefTransforms||[],viewContainerAppends:te.viewContainerAppends||[],eventDropTransformers:te.eventDropTransformers||[],componentInteractions:te.componentInteractions||[],calendarInteractions:te.calendarInteractions||[],themeClasses:te.themeClasses||{},eventSourceDefs:te.eventSourceDefs||[],cmdFormatter:te.cmdFormatter,recurringTypes:te.recurringTypes||[],namedTimeZonedImpl:te.namedTimeZonedImpl,initialView:te.initialView||"",elementDraggingImpl:te.elementDraggingImpl,optionChangeHandlers:te.optionChangeHandlers||{},scrollGridImpl:te.scrollGridImpl||null,listenerRefiners:te.listenerRefiners||{},optionRefiners:te.optionRefiners||{},propSetHandlers:te.propSetHandlers||{}}}function buildBuildPluginHooks(){let te,ne=[],ie=[];return(re,le)=>(te&&isArraysEqual(re,ne)&&isArraysEqual(le,ie)||(te=function buildPluginHooks(te,ne){let ie={},re={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function addDefs(te){for(let ce of te){const te=ce.name,de=ie[te];void 0===de?(ie[te]=ce.id,addDefs(ce.deps),le=ce,re={premiumReleaseDate:compareOptionalDates((ne=re).premiumReleaseDate,le.premiumReleaseDate),reducers:ne.reducers.concat(le.reducers),isLoadingFuncs:ne.isLoadingFuncs.concat(le.isLoadingFuncs),contextInit:ne.contextInit.concat(le.contextInit),eventRefiners:Object.assign(Object.assign({},ne.eventRefiners),le.eventRefiners),eventDefMemberAdders:ne.eventDefMemberAdders.concat(le.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},ne.eventSourceRefiners),le.eventSourceRefiners),isDraggableTransformers:ne.isDraggableTransformers.concat(le.isDraggableTransformers),eventDragMutationMassagers:ne.eventDragMutationMassagers.concat(le.eventDragMutationMassagers),eventDefMutationAppliers:ne.eventDefMutationAppliers.concat(le.eventDefMutationAppliers),dateSelectionTransformers:ne.dateSelectionTransformers.concat(le.dateSelectionTransformers),datePointTransforms:ne.datePointTransforms.concat(le.datePointTransforms),dateSpanTransforms:ne.dateSpanTransforms.concat(le.dateSpanTransforms),views:Object.assign(Object.assign({},ne.views),le.views),viewPropsTransformers:ne.viewPropsTransformers.concat(le.viewPropsTransformers),isPropsValid:le.isPropsValid||ne.isPropsValid,externalDefTransforms:ne.externalDefTransforms.concat(le.externalDefTransforms),viewContainerAppends:ne.viewContainerAppends.concat(le.viewContainerAppends),eventDropTransformers:ne.eventDropTransformers.concat(le.eventDropTransformers),calendarInteractions:ne.calendarInteractions.concat(le.calendarInteractions),componentInteractions:ne.componentInteractions.concat(le.componentInteractions),themeClasses:Object.assign(Object.assign({},ne.themeClasses),le.themeClasses),eventSourceDefs:ne.eventSourceDefs.concat(le.eventSourceDefs),cmdFormatter:le.cmdFormatter||ne.cmdFormatter,recurringTypes:ne.recurringTypes.concat(le.recurringTypes),namedTimeZonedImpl:le.namedTimeZonedImpl||ne.namedTimeZonedImpl,initialView:ne.initialView||le.initialView,elementDraggingImpl:ne.elementDraggingImpl||le.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},ne.optionChangeHandlers),le.optionChangeHandlers),scrollGridImpl:le.scrollGridImpl||ne.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},ne.listenerRefiners),le.listenerRefiners),optionRefiners:Object.assign(Object.assign({},ne.optionRefiners),le.optionRefiners),propSetHandlers:Object.assign(Object.assign({},ne.propSetHandlers),le.propSetHandlers)}):de!==ce.id&&console.warn(`Duplicate plugin '${te}'`)}var ne,le}return te&&addDefs(te),addDefs(ne),re}(re,le)),ne=re,ie=le,te)}function compareOptionalDates(te,ne){return void 0===te?ne:void 0===ne?te:new Date(Math.max(te.valueOf(),ne.valueOf()))}class StandardTheme extends Theme{}function ensureViewDef(te,ne,ie,re){if(ne[te])return ne[te];let le=function buildViewDef(te,ne,ie,re){let le=ie[te],ce=re[te],queryProp=te=>le&&null!==le[te]?le[te]:ce&&null!==ce[te]?ce[te]:null,de=queryProp("component"),ue=queryProp("superType"),me=null;if(ue){if(ue===te)throw new Error("Can't have a custom view type that references itself");me=ensureViewDef(ue,ne,ie,re)}!de&&me&&(de=me.component);if(!de)return null;return{type:te,component:de,defaults:Object.assign(Object.assign({},me?me.defaults:{}),le?le.rawOptions:{}),overrides:Object.assign(Object.assign({},me?me.overrides:{}),ce?ce.rawOptions:{})}}(te,ne,ie,re);return le&&(ne[te]=le),le}function parseViewConfigs(te){return mapHash(te,parseViewConfig)}function parseViewConfig(te){let ne="function"==typeof te?{component:te}:te,{component:ie}=ne;return ne.content?ie=createViewHookComponent(ne):!ie||ie.prototype instanceof Jy||(ie=createViewHookComponent(Object.assign(Object.assign({},ne),{content:ie}))),{superType:ne.type,component:ie,rawOptions:ne}}function createViewHookComponent(te){return ne=>y(Ky.Consumer,null,(ie=>y(rw,{elTag:"div",elClasses:buildViewClassNames(ie.viewSpec),renderProps:Object.assign(Object.assign({},ne),{nextDayThreshold:ie.options.nextDayThreshold}),generatorName:void 0,customGenerator:te.content,classNameGenerator:te.classNames,didMount:te.didMount,willUnmount:te.willUnmount})))}function buildViewSpecs(te,ne,ie,re){let le=parseViewConfigs(te),ce=parseViewConfigs(ne.views),de=function compileViewDefs(te,ne){let ie,re={};for(ie in te)ensureViewDef(ie,re,te,ne);for(ie in ne)ensureViewDef(ie,re,te,ne);return re}(le,ce);return mapHash(de,(te=>function buildViewSpec(te,ne,ie,re,le){let ce=te.overrides.duration||te.defaults.duration||re.duration||ie.duration,de=null,ue="",me="",ge={};if(ce&&(de=function createDurationCached(te){let ne=JSON.stringify(te),ie=UA[ne];void 0===ie&&(ie=createDuration(te),UA[ne]=ie);return ie}(ce),de)){let te=greatestDurationDenominator(de);ue=te.unit,1===te.value&&(me=ue,ge=ne[ue]?ne[ue].rawOptions:{})}let queryButtonText=ne=>{let ie=ne.buttonText||{},re=te.defaults.buttonTextKey;return null!=re&&null!=ie[re]?ie[re]:null!=ie[te.type]?ie[te.type]:null!=ie[me]?ie[me]:null},queryButtonTitle=ne=>{let ie=ne.buttonHints||{},re=te.defaults.buttonTextKey;return null!=re&&null!=ie[re]?ie[re]:null!=ie[te.type]?ie[te.type]:null!=ie[me]?ie[me]:null};return{type:te.type,component:te.component,duration:de,durationUnit:ue,singleUnit:me,optionDefaults:te.defaults,optionOverrides:Object.assign(Object.assign({},ge),te.overrides),buttonTextOverride:queryButtonText(re)||queryButtonText(ie)||te.overrides.buttonText,buttonTextDefault:queryButtonText(le)||te.defaults.buttonText||queryButtonText(Ty)||te.type,buttonTitleOverride:queryButtonTitle(re)||queryButtonTitle(ie)||te.overrides.buttonHint,buttonTitleDefault:queryButtonTitle(le)||te.defaults.buttonHint||queryButtonTitle(Ty)}}(te,ce,ne,ie,re)))}StandardTheme.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},StandardTheme.prototype.baseIconClass="fc-icon",StandardTheme.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},StandardTheme.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},StandardTheme.prototype.iconOverrideOption="buttonIcons",StandardTheme.prototype.iconOverrideCustomButtonOption="icon",StandardTheme.prototype.iconOverridePrefix="fc-icon-";let UA={};function initEventSources(te,ne,ie){let re=ne?ne.activeRange:null;return addSources({},function parseInitialSources(te,ne){let ie=buildEventSourceRefiners(ne),re=[].concat(te.eventSources||[]),le=[];te.initialEvents&&re.unshift(te.initialEvents);te.events&&re.unshift(te.events);for(let te of re){let re=parseEventSource(te,ne,ie);re&&le.push(re)}return le}(te,ie),re,ie)}function reduceEventSources(te,ne,ie,re){let le=ie?ie.activeRange:null;switch(ne.type){case"ADD_EVENT_SOURCES":return addSources(te,ne.sources,le,re);case"REMOVE_EVENT_SOURCE":return function removeSource(te,ne){return filterHash(te,(te=>te.sourceId!==ne))}(te,ne.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return ie?fetchDirtySources(te,le,re):te;case"FETCH_EVENT_SOURCES":return fetchSourcesByIds(te,ne.sourceIds?arrayToHash(ne.sourceIds):excludeStaticSources(te,re),le,ne.isRefetch||!1,re);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function receiveResponse(te,ne,ie,re){let le=te[ne];if(le&&ie===le.latestFetchId)return Object.assign(Object.assign({},te),{[ne]:Object.assign(Object.assign({},le),{isFetching:!1,fetchRange:re})});return te}(te,ne.sourceId,ne.fetchId,ne.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return te}}function computeEventSourcesLoading(te){for(let ne in te)if(te[ne].isFetching)return!0;return!1}function addSources(te,ne,ie,re){let le={};for(let te of ne)le[te.sourceId]=te;return ie&&(le=fetchDirtySources(le,ie,re)),Object.assign(Object.assign({},te),le)}function fetchDirtySources(te,ne,ie){return fetchSourcesByIds(te,filterHash(te,(te=>function isSourceDirty(te,ne,ie){if(!doesSourceNeedRange(te,ie))return!te.latestFetchId;return!ie.options.lazyFetching||!te.fetchRange||te.isFetching||ne.start<te.fetchRange.start||ne.end>te.fetchRange.end}(te,ne,ie))),ne,!1,ie)}function fetchSourcesByIds(te,ne,ie,re,le){let ce={};for(let de in te){let ue=te[de];ne[de]?ce[de]=fetchSource(ue,ie,re,le):ce[de]=ue}return ce}function fetchSource(te,ne,ie,re){let{options:le,calendarApi:ce}=re,de=re.pluginHooks.eventSourceDefs[te.sourceDefId],ue=guid();return de.fetch({eventSource:te,range:ne,isRefetch:ie,context:re},(ie=>{let{rawEvents:de}=ie;le.eventSourceSuccess&&(de=le.eventSourceSuccess.call(ce,de,ie.response)||de),te.success&&(de=te.success.call(ce,de,ie.response)||de),re.dispatch({type:"RECEIVE_EVENTS",sourceId:te.sourceId,fetchId:ue,fetchRange:ne,rawEvents:de})}),(ie=>{let de=!1;le.eventSourceFailure&&(le.eventSourceFailure.call(ce,ie),de=!0),te.failure&&(te.failure(ie),de=!0),de||console.warn(ie.message,ie),re.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:te.sourceId,fetchId:ue,fetchRange:ne,error:ie})})),Object.assign(Object.assign({},te),{isFetching:!0,latestFetchId:ue})}function excludeStaticSources(te,ne){return filterHash(te,(te=>doesSourceNeedRange(te,ne)))}function doesSourceNeedRange(te,ne){return!ne.pluginHooks.eventSourceDefs[te.sourceDefId].ignoreRange}function reduceDateSelection(te,ne){switch(ne.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return ne.selection;default:return te}}function reduceSelectedEvent(te,ne){switch(ne.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return ne.eventInstanceId;default:return te}}function reduceEventDrag(te,ne){let ie;switch(ne.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return ie=ne.state,{affectedEvents:ie.affectedEvents,mutatedEvents:ie.mutatedEvents,isEvent:ie.isEvent};default:return te}}function reduceEventResize(te,ne){let ie;switch(ne.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return ie=ne.state,{affectedEvents:ie.affectedEvents,mutatedEvents:ie.mutatedEvents,isEvent:ie.isEvent};default:return te}}function parseToolbars(te,ne,ie,re,le){return{header:te.headerToolbar?parseToolbar(te.headerToolbar,te,ne,ie,re,le):null,footer:te.footerToolbar?parseToolbar(te.footerToolbar,te,ne,ie,re,le):null}}function parseToolbar(te,ne,ie,re,le,ce){let de={},ue=[],me=!1;for(let ge in te){let fe=parseSection(te[ge],ne,ie,re,le,ce);de[ge]=fe.widgets,ue.push(...fe.viewsWithButtons),me=me||fe.hasTitle}return{sectionWidgets:de,viewsWithButtons:ue,hasTitle:me}}function parseSection(te,ne,ie,re,le,ce){let de="rtl"===ne.direction,ue=ne.customButtons||{},me=ie.buttonText||{},ge=ne.buttonText||{},fe=ie.buttonHints||{},_e=ne.buttonHints||{},be=te?te.split(" "):[],Ce=[],ye=!1;return{widgets:be.map((te=>te.split(",").map((te=>{if("title"===te)return ye=!0,{buttonName:te};let ie,be,we,ke,Se,xe;if(ie=ue[te])we=te=>{ie.click&&ie.click.call(te.target,te,te.target)},(ke=re.getCustomButtonIconClass(ie))||(ke=re.getIconClass(te,de))||(Se=ie.text),xe=ie.hint||ie.text;else if(be=le[te]){Ce.push(te),we=()=>{ce.changeView(te)},(Se=be.buttonTextOverride)||(ke=re.getIconClass(te,de))||(Se=be.buttonTextDefault);let ie=be.buttonTextOverride||be.buttonTextDefault;xe=formatWithOrdinals(be.buttonTitleOverride||be.buttonTitleDefault||ne.viewHint,[ie,te],ie)}else if(ce[te])if(we=()=>{ce[te]()},(Se=me[te])||(ke=re.getIconClass(te,de))||(Se=ge[te]),"prevYear"===te||"nextYear"===te){let ne="prevYear"===te?"prev":"next";xe=formatWithOrdinals(fe[ne]||_e[ne],[ge.year||"year","year"],ge[te])}else xe=ne=>formatWithOrdinals(fe[te]||_e[te],[ge[ne]||ne,ne],ge[te]);return{buttonName:te,buttonClick:we,buttonIcon:ke,buttonText:Se,buttonHint:xe}})))),viewsWithButtons:Ce,hasTitle:ye}}class ViewImpl{constructor(te,ne,ie){this.type=te,this.getCurrentData=ne,this.dateEnv=ie}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(te){return this.getCurrentData().options[te]}}function handleEventSources(te,ne){let ie=hashValuesToArray(ne.getCurrentData().eventSources);if(1===ie.length&&1===te.length&&Array.isArray(ie[0]._raw)&&Array.isArray(te[0]))return void ne.dispatch({type:"RESET_RAW_EVENTS",sourceId:ie[0].sourceId,rawEvents:te[0]});let re=[];for(let ne of te){let te=!1;for(let re=0;re<ie.length;re+=1)if(ie[re]._raw===ne){ie.splice(re,1),te=!0;break}te||re.push(ne)}for(let te of ie)ne.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:te.sourceId});for(let te of re)ne.calendarApi.addEventSource(te)}const $A=[createPlugin({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:te=>Array.isArray(te.events)?te.events:null,fetch(te,ne){ne({rawEvents:te.eventSource.meta})}}]}),createPlugin({name:"func-event-source",eventSourceDefs:[{parseMeta:te=>"function"==typeof te.events?te.events:null,fetch(te,ne,ie){const{dateEnv:re}=te.context;!function unpromisify(te,ne,ie){let re=!1,wrappedSuccess=function(te){re||(re=!0,ne(te))},wrappedFailure=function(te){re||(re=!0,ie(te))},le=te(wrappedSuccess,wrappedFailure);le&&"function"==typeof le.then&&le.then(wrappedSuccess,wrappedFailure)}(te.eventSource.meta.bind(null,buildRangeApiWithTimeZone(te.range,re)),(te=>ne({rawEvents:te})),ie)}}]}),createPlugin({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:identity,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:te=>!te.url||"json"!==te.format&&te.format?null:{url:te.url,format:"json",method:(te.method||"GET").toUpperCase(),extraParams:te.extraParams,startParam:te.startParam,endParam:te.endParam,timeZoneParam:te.timeZoneParam},fetch(te,ne,ie){const{meta:re}=te.eventSource,le=function buildRequestParams(te,ne,ie){let re,le,ce,de,{dateEnv:ue,options:me}=ie,ge={};re=te.startParam,null==re&&(re=me.startParam);le=te.endParam,null==le&&(le=me.endParam);ce=te.timeZoneParam,null==ce&&(ce=me.timeZoneParam);de="function"==typeof te.extraParams?te.extraParams():te.extraParams||{};Object.assign(ge,de),ge[re]=ue.formatIso(ne.start),ge[le]=ue.formatIso(ne.end),"local"!==ue.timeZone&&(ge[ce]=ue.timeZone);return ge}(re,te.range,te.context);(function requestJson(te,ne,ie){const re={method:te=te.toUpperCase()};return"GET"===te?ne+=(-1===ne.indexOf("?")?"?":"&")+new URLSearchParams(ie):(re.body=new URLSearchParams(ie),re.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(ne,re).then((te=>{if(te.ok)return te.json().then((ne=>[ne,te]),(()=>{throw new JsonRequestError("Failure parsing JSON",te)}));throw new JsonRequestError("Request failed",te)}))})(re.method,re.url,le).then((([te,ie])=>{ne({rawEvents:te,response:ie})}),ie)}}]}),createPlugin({name:"simple-recurring-event",recurringTypes:[{parse(te,ne){if(te.daysOfWeek||te.startTime||te.endTime||te.startRecur||te.endRecur){let ie,re={daysOfWeek:te.daysOfWeek||null,startTime:te.startTime||null,endTime:te.endTime||null,startRecur:te.startRecur?ne.createMarker(te.startRecur):null,endRecur:te.endRecur?ne.createMarker(te.endRecur):null};return te.duration&&(ie=te.duration),!ie&&te.startTime&&te.endTime&&(ie=function subtractDurations(te,ne){return{years:te.years-ne.years,months:te.months-ne.months,days:te.days-ne.days,milliseconds:te.milliseconds-ne.milliseconds}}(te.endTime,te.startTime)),{allDayGuess:Boolean(!te.startTime&&!te.endTime),duration:ie,typeData:re}}return null},expand(te,ne,ie){let re=intersectRanges(ne,{start:te.startRecur,end:te.endRecur});return re?function expandRanges(te,ne,ie,re){let le=te?arrayToHash(te):null,ce=startOfDay(ie.start),de=ie.end,ue=[];for(;ce<de;){let te;le&&!le[ce.getUTCDay()]||(te=ne?re.add(ce,ne):ce,ue.push(te)),ce=addDays(ce,1)}return ue}(te.daysOfWeek,te.startTime,re,ie):[]}}],eventRefiners:{daysOfWeek:identity,startTime:createDuration,endTime:createDuration,duration:createDuration,startRecur:identity,endRecur:identity}}),createPlugin({name:"change-handler",optionChangeHandlers:{events(te,ne){handleEventSources([te],ne)},eventSources:handleEventSources}}),createPlugin({name:"misc",isLoadingFuncs:[te=>computeEventSourcesLoading(te.eventSources)],propSetHandlers:{dateProfile:function handleDateProfile(te,ne){ne.emitter.trigger("datesSet",Object.assign(Object.assign({},buildRangeApiWithTimeZone(te.activeRange,ne.dateEnv)),{view:ne.viewApi}))},eventStore:function handleEventStore(te,ne){let{emitter:ie}=ne;ie.hasHandlers("eventsSet")&&ie.trigger("eventsSet",buildEventApis(te,ne))}}})];class TaskRunner{constructor(te,ne){this.runTaskOption=te,this.drainedOption=ne,this.queue=[],this.delayedRunner=new DelayedRunner(this.drain.bind(this))}request(te,ne){this.queue.push(te),this.delayedRunner.request(ne)}pause(te){this.delayedRunner.pause(te)}resume(te,ne){this.delayedRunner.resume(te,ne)}drain(){let{queue:te}=this;for(;te.length;){let ne,ie=[];for(;ne=te.shift();)this.runTask(ne),ie.push(ne);this.drained(ie)}}runTask(te){this.runTaskOption&&this.runTaskOption(te)}drained(te){this.drainedOption&&this.drainedOption(te)}}function buildTitle(te,ne,ie){let re;return re=/^(year|month)$/.test(te.currentRangeUnit)?te.currentRange:te.activeRange,ie.formatRange(re.start,re.end,internal_common_createFormatter(ne.titleFormat||function buildTitleFormat(te){let{currentRangeUnit:ne}=te;if("year"===ne)return{year:"numeric"};if("month"===ne)return{year:"numeric",month:"long"};let ie=diffWholeDays(te.currentRange.start,te.currentRange.end);if(null!==ie&&ie>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(te)),{isEndExclusive:te.isRangeAllDay,defaultSeparator:ne.titleRangeSeparator})}class CalendarDataManager{constructor(te){this.computeCurrentViewData=memoize(this._computeCurrentViewData),this.organizeRawLocales=memoize(organizeRawLocales),this.buildLocale=memoize(buildLocale),this.buildPluginHooks=buildBuildPluginHooks(),this.buildDateEnv=memoize(buildDateEnv$1),this.buildTheme=memoize(buildTheme),this.parseToolbars=memoize(parseToolbars),this.buildViewSpecs=memoize(buildViewSpecs),this.buildDateProfileGenerator=memoizeObjArg(buildDateProfileGenerator),this.buildViewApi=memoize(buildViewApi),this.buildViewUiProps=memoizeObjArg(buildViewUiProps),this.buildEventUiBySource=memoize(buildEventUiBySource,isPropsEqual),this.buildEventUiBases=memoize(buildEventUiBases),this.parseContextBusinessHours=memoizeObjArg(parseContextBusinessHours),this.buildTitle=memoize(buildTitle),this.emitter=new Emitter,this.actionRunner=new TaskRunner(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=te=>{this.actionRunner.request(te)},this.props=te,this.actionRunner.pause();let ne={},ie=this.computeOptionsData(te.optionOverrides,ne,te.calendarApi),re=ie.calendarOptions.initialView||ie.pluginHooks.initialView,le=this.computeCurrentViewData(re,ie,te.optionOverrides,ne);te.calendarApi.currentDataManager=this,this.emitter.setThisContext(te.calendarApi),this.emitter.setOptions(le.options);let ce=function getInitialDate(te,ne){let ie=te.initialDate;return null!=ie?ne.createMarker(ie):getNow(te.now,ne)}(ie.calendarOptions,ie.dateEnv),de=le.dateProfileGenerator.build(ce);rangeContainsMarker(de.activeRange,ce)||(ce=de.currentRange.start);let ue={dateEnv:ie.dateEnv,options:ie.calendarOptions,pluginHooks:ie.pluginHooks,calendarApi:te.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let te of ie.pluginHooks.contextInit)te(ue);let me=initEventSources(ie.calendarOptions,de,ue),ge={dynamicOptionOverrides:ne,currentViewType:re,currentDate:ce,dateProfile:de,businessHours:this.parseContextBusinessHours(ue),eventSources:me,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(ue).selectionConfig},fe=Object.assign(Object.assign({},ue),ge);for(let te of ie.pluginHooks.reducers)Object.assign(ge,te(null,null,fe));computeIsLoading(ge,ue)&&this.emitter.trigger("loading",!0),this.state=ge,this.updateData(),this.actionRunner.resume()}resetOptions(te,ne){let{props:ie}=this;void 0===ne?ie.optionOverrides=te:(ie.optionOverrides=Object.assign(Object.assign({},ie.optionOverrides||{}),te),this.optionsForRefining.push(...ne)),(void 0===ne||ne.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(te){let{props:ne,state:ie,emitter:re}=this,le=function reduceDynamicOptionOverrides(te,ne){return"SET_OPTION"===ne.type?Object.assign(Object.assign({},te),{[ne.optionName]:ne.rawOptionValue}):te}(ie.dynamicOptionOverrides,te),ce=this.computeOptionsData(ne.optionOverrides,le,ne.calendarApi),de=function reduceViewType(te,ne){"CHANGE_VIEW_TYPE"===ne.type&&(te=ne.viewType);return te}(ie.currentViewType,te),ue=this.computeCurrentViewData(de,ce,ne.optionOverrides,le);ne.calendarApi.currentDataManager=this,re.setThisContext(ne.calendarApi),re.setOptions(ue.options);let me={dateEnv:ce.dateEnv,options:ce.calendarOptions,pluginHooks:ce.pluginHooks,calendarApi:ne.calendarApi,dispatch:this.dispatch,emitter:re,getCurrentData:this.getCurrentData},{currentDate:ge,dateProfile:fe}=ie;this.data&&this.data.dateProfileGenerator!==ue.dateProfileGenerator&&(fe=ue.dateProfileGenerator.build(ge)),ge=function reduceCurrentDate(te,ne){return"CHANGE_DATE"===ne.type?ne.dateMarker:te}(ge,te),fe=function reduceDateProfile(te,ne,ie,re){let le;switch(ne.type){case"CHANGE_VIEW_TYPE":return re.build(ne.dateMarker||ie);case"CHANGE_DATE":return re.build(ne.dateMarker);case"PREV":if(le=re.buildPrev(te,ie),le.isValid)return le;break;case"NEXT":if(le=re.buildNext(te,ie),le.isValid)return le}return te}(fe,te,ge,ue.dateProfileGenerator),"PREV"!==te.type&&"NEXT"!==te.type&&rangeContainsMarker(fe.currentRange,ge)||(ge=fe.currentRange.start);let _e=reduceEventSources(ie.eventSources,te,fe,me),be=reduceEventStore(ie.eventStore,te,_e,fe,me),Ce=computeEventSourcesLoading(_e)&&!ue.options.progressiveEventRendering&&ie.renderableEventStore||be,{eventUiSingleBase:ye,selectionConfig:we}=this.buildViewUiProps(me),ke=this.buildEventUiBySource(_e),Se={dynamicOptionOverrides:le,currentViewType:de,currentDate:ge,dateProfile:fe,eventSources:_e,eventStore:be,renderableEventStore:Ce,selectionConfig:we,eventUiBases:this.buildEventUiBases(Ce.defs,ye,ke),businessHours:this.parseContextBusinessHours(me),dateSelection:reduceDateSelection(ie.dateSelection,te),eventSelection:reduceSelectedEvent(ie.eventSelection,te),eventDrag:reduceEventDrag(ie.eventDrag,te),eventResize:reduceEventResize(ie.eventResize,te)},xe=Object.assign(Object.assign({},me),Se);for(let ne of ce.pluginHooks.reducers)Object.assign(Se,ne(ie,te,xe));let Ee=computeIsLoading(ie,me),Me=computeIsLoading(Se,me);!Ee&&Me?re.trigger("loading",!0):Ee&&!Me&&re.trigger("loading",!1),this.state=Se,ne.onAction&&ne.onAction(te)}updateData(){let{props:te,state:ne}=this,ie=this.data,re=this.computeOptionsData(te.optionOverrides,ne.dynamicOptionOverrides,te.calendarApi),le=this.computeCurrentViewData(ne.currentViewType,re,te.optionOverrides,ne.dynamicOptionOverrides),ce=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(ne.dateProfile,le.options,re.dateEnv),calendarApi:te.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},re),le),ne),de=re.pluginHooks.optionChangeHandlers,ue=ie&&ie.calendarOptions,me=re.calendarOptions;if(ue&&ue!==me){ue.timeZone!==me.timeZone&&(ne.eventSources=ce.eventSources=function reduceEventSourcesNewTimeZone(te,ne,ie){let re=ne?ne.activeRange:null;return fetchSourcesByIds(te,excludeStaticSources(te,ie),re,!0,ie)}(ce.eventSources,ne.dateProfile,ce),ne.eventStore=ce.eventStore=rezoneEventStoreDates(ce.eventStore,ie.dateEnv,ce.dateEnv),ne.renderableEventStore=ce.renderableEventStore=rezoneEventStoreDates(ce.renderableEventStore,ie.dateEnv,ce.dateEnv));for(let te in de)-1===this.optionsForHandling.indexOf(te)&&ue[te]===me[te]||de[te](me[te],ce)}this.optionsForHandling=[],te.onData&&te.onData(ce)}computeOptionsData(te,ne,ie){if(!this.optionsForRefining.length&&te===this.stableOptionOverrides&&ne===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:re,pluginHooks:le,localeDefaults:ce,availableLocaleData:de,extra:ue}=this.processRawCalendarOptions(te,ne);warnUnknownOptions(ue);let me=this.buildDateEnv(re.timeZone,re.locale,re.weekNumberCalculation,re.firstDay,re.weekText,le,de,re.defaultRangeSeparator),ge=this.buildViewSpecs(le.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,ce),fe=this.buildTheme(re,le),_e=this.parseToolbars(re,this.stableOptionOverrides,fe,ge,ie);return this.stableCalendarOptionsData={calendarOptions:re,pluginHooks:le,dateEnv:me,viewSpecs:ge,theme:fe,toolbarConfig:_e,localeDefaults:ce,availableRawLocales:de.map}}processRawCalendarOptions(te,ne){let{locales:ie,locale:re}=mergeRawOptions([Ty,te,ne]),le=this.organizeRawLocales(ie),ce=le.map,de=this.buildLocale(re||le.defaultCode,ce).options,ue=this.buildPluginHooks(te.plugins||[],$A),me=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Sy),Ey),My),ue.listenerRefiners),ue.optionRefiners),ge={},fe=mergeRawOptions([Ty,de,te,ne]),_e={},be=this.currentCalendarOptionsInput,Ce=this.currentCalendarOptionsRefined,ye=!1;for(let te in fe)-1===this.optionsForRefining.indexOf(te)&&(fe[te]===be[te]||By[te]&&te in be&&By[te](be[te],fe[te]))?_e[te]=Ce[te]:me[te]?(_e[te]=me[te](fe[te]),ye=!0):ge[te]=be[te];return ye&&(this.currentCalendarOptionsInput=fe,this.currentCalendarOptionsRefined=_e,this.stableOptionOverrides=te,this.stableDynamicOptionOverrides=ne),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:ue,availableLocaleData:le,localeDefaults:de,extra:ge}}_computeCurrentViewData(te,ne,ie,re){let le=ne.viewSpecs[te];if(!le)throw new Error(`viewType "${te}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:ce,extra:de}=this.processRawViewOptions(le,ne.pluginHooks,ne.localeDefaults,ie,re);return warnUnknownOptions(de),{viewSpec:le,options:ce,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:le.optionDefaults.dateProfileGeneratorClass,duration:le.duration,durationUnit:le.durationUnit,usesMinMaxTime:le.optionDefaults.usesMinMaxTime,dateEnv:ne.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:ce.slotMinTime,slotMaxTime:ce.slotMaxTime,showNonCurrentDates:ce.showNonCurrentDates,dayCount:ce.dayCount,dateAlignment:ce.dateAlignment,dateIncrement:ce.dateIncrement,hiddenDays:ce.hiddenDays,weekends:ce.weekends,nowInput:ce.now,validRangeInput:ce.validRange,visibleRangeInput:ce.visibleRange,fixedWeekCount:ce.fixedWeekCount}),viewApi:this.buildViewApi(te,this.getCurrentData,ne.dateEnv)}}processRawViewOptions(te,ne,ie,re,le){let ce=mergeRawOptions([Ty,te.optionDefaults,ie,re,te.optionOverrides,le]),de=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Sy),Ey),My),Gy),ne.listenerRefiners),ne.optionRefiners),ue={},me=this.currentViewOptionsInput,ge=this.currentViewOptionsRefined,fe=!1,_e={};for(let te in ce)ce[te]===me[te]||By[te]&&By[te](ce[te],me[te])?ue[te]=ge[te]:(ce[te]===this.currentCalendarOptionsInput[te]||By[te]&&By[te](ce[te],this.currentCalendarOptionsInput[te])?te in this.currentCalendarOptionsRefined&&(ue[te]=this.currentCalendarOptionsRefined[te]):de[te]?ue[te]=de[te](ce[te]):_e[te]=ce[te],fe=!0);return fe&&(this.currentViewOptionsInput=ce,this.currentViewOptionsRefined=ue),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:_e}}}function buildDateEnv$1(te,ne,ie,re,le,ce,de,ue){let me=buildLocale(ne||de.defaultCode,de.map);return new internal_common_DateEnv({calendarSystem:"gregory",timeZone:te,namedTimeZoneImpl:ce.namedTimeZonedImpl,locale:me,weekNumberCalculation:ie,firstDay:re,weekText:le,cmdFormatter:ce.cmdFormatter,defaultSeparator:ue})}function buildTheme(te,ne){return new(ne.themeClasses[te.themeSystem]||StandardTheme)(te)}function buildDateProfileGenerator(te){return new(te.dateProfileGeneratorClass||DateProfileGenerator)(te)}function buildViewApi(te,ne,ie){return new ViewImpl(te,ne,ie)}function buildEventUiBySource(te){return mapHash(te,(te=>te.ui))}function buildEventUiBases(te,ne,ie){let re={"":ne};for(let ne in te){let le=te[ne];le.sourceId&&ie[le.sourceId]&&(re[ne]=ie[le.sourceId])}return re}function buildViewUiProps(te){let{options:ne}=te;return{eventUiSingleBase:createEventUi({display:ne.eventDisplay,editable:ne.editable,startEditable:ne.eventStartEditable,durationEditable:ne.eventDurationEditable,constraint:ne.eventConstraint,overlap:"boolean"==typeof ne.eventOverlap?ne.eventOverlap:void 0,allow:ne.eventAllow,backgroundColor:ne.eventBackgroundColor,borderColor:ne.eventBorderColor,textColor:ne.eventTextColor,color:ne.eventColor},te),selectionConfig:createEventUi({constraint:ne.selectConstraint,overlap:"boolean"==typeof ne.selectOverlap?ne.selectOverlap:void 0,allow:ne.selectAllow},te)}}function computeIsLoading(te,ne){for(let ie of ne.pluginHooks.isLoadingFuncs)if(ie(te))return!0;return!1}function parseContextBusinessHours(te){return parseBusinessHours(te.options.businessHours,te)}function warnUnknownOptions(te,ne){for(let ie in te)console.warn(`Unknown option '${ie}'`+(ne?` for view '${ne}'`:""))}class ToolbarSection extends Jy{render(){return y("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map((te=>this.renderWidgetGroup(te))))}renderWidgetGroup(te){let{props:ne}=this,{theme:ie}=this.context,re=[],le=!0;for(let ce of te){let{buttonName:te,buttonClick:de,buttonText:ue,buttonIcon:me,buttonHint:ge}=ce;if("title"===te)le=!1,re.push(y("h2",{className:"fc-toolbar-title",id:ne.titleId},ne.title));else{let le=te===ne.activeButton,ce=!ne.isTodayEnabled&&"today"===te||!ne.isPrevEnabled&&"prev"===te||!ne.isNextEnabled&&"next"===te,fe=[`fc-${te}-button`,ie.getClass("button")];le&&fe.push(ie.getClass("buttonActive")),re.push(y("button",{type:"button",title:"function"==typeof ge?ge(ne.navUnit):ge,disabled:ce,"aria-pressed":le,className:fe.join(" "),onClick:de},ue||(me?y("span",{className:me,role:"img"}):"")))}}if(re.length>1){return y("div",{className:le&&ie.getClass("buttonGroup")||""},...re)}return re[0]}}class Toolbar extends Jy{render(){let te,ne,{model:ie,extraClassName:re}=this.props,le=!1,ce=ie.sectionWidgets,de=ce.center;return ce.left?(le=!0,te=ce.left):te=ce.start,ce.right?(le=!0,ne=ce.right):ne=ce.end,y("div",{className:[re||"","fc-toolbar",le?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",te||[]),this.renderSection("center",de||[]),this.renderSection("end",ne||[]))}renderSection(te,ne){let{props:ie}=this;return y(ToolbarSection,{key:te,widgetGroups:ne,title:ie.title,navUnit:ie.navUnit,activeButton:ie.activeButton,isTodayEnabled:ie.isTodayEnabled,isPrevEnabled:ie.isPrevEnabled,isNextEnabled:ie.isNextEnabled,titleId:ie.titleId})}}class ViewHarness extends Jy{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=te=>{this.el=te,setRef(this.props.elRef,te),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:te,state:ne}=this,{aspectRatio:ie}=te,re=["fc-view-harness",ie||te.liquid||te.height?"fc-view-harness-active":"fc-view-harness-passive"],le="",ce="";return ie?null!==ne.availableWidth?le=ne.availableWidth/ie:ce=1/ie*100+"%":le=te.height||"",y("div",{"aria-labelledby":te.labeledById,ref:this.handleEl,className:re.join(" "),style:{height:le,paddingBottom:ce}},te.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class EventClicking extends Interaction{constructor(te){super(te),this.handleSegClick=(te,ne)=>{let{component:ie}=this,{context:re}=ie,le=getElSeg(ne);if(le&&ie.isValidSegDownEl(te.target)){let ce=elementClosest(te.target,".fc-event-forced-url"),de=ce?ce.querySelector("a[href]").href:"";re.emitter.trigger("eventClick",{el:ne,event:new internal_common_EventImpl(ie.context,le.eventRange.def,le.eventRange.instance),jsEvent:te,view:re.viewApi}),de&&!te.defaultPrevented&&(window.location.href=de)}},this.destroy=listenBySelector(te.el,"click",".fc-event",this.handleSegClick)}}class EventHovering extends Interaction{constructor(te){super(te),this.handleEventElRemove=te=>{te===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(te,ne)=>{getElSeg(ne)&&(this.currentSegEl=ne,this.triggerEvent("eventMouseEnter",te,ne))},this.handleSegLeave=(te,ne)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",te,ne))},this.removeHoverListeners=function listenToHoverBySelector(te,ne,ie,re){let le;return listenBySelector(te,"mouseover",ne,((te,ne)=>{if(ne!==le){le=ne,ie(te,ne);let realOnMouseLeave=te=>{le=null,re(te,ne),ne.removeEventListener("mouseleave",realOnMouseLeave)};ne.addEventListener("mouseleave",realOnMouseLeave)}}))}(te.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(te,ne,ie){let{component:re}=this,{context:le}=re,ce=getElSeg(ie);ne&&!re.isValidSegDownEl(ne.target)||le.emitter.trigger(te,{el:ie,event:new internal_common_EventImpl(le,ce.eventRange.def,ce.eventRange.instance),jsEvent:ne,view:le.viewApi})}}class CalendarContent extends Qy{constructor(){super(...arguments),this.buildViewContext=memoize(buildViewContext),this.buildViewPropTransformers=memoize(buildViewPropTransformers),this.buildToolbarProps=memoize(buildToolbarProps),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:getUniqueDomId()},this.registerInteractiveComponent=(te,ne)=>{let ie=function parseInteractionSettings(te,ne){return{component:te,el:ne.el,useEventCenter:null==ne.useEventCenter||ne.useEventCenter,isHitComboAllowed:ne.isHitComboAllowed||null}}(te,ne),re=[EventClicking,EventHovering].concat(this.props.pluginHooks.componentInteractions).map((te=>new te(ie)));this.interactionsStore[te.uid]=re,dA[te.uid]=ie},this.unregisterInteractiveComponent=te=>{let ne=this.interactionsStore[te.uid];if(ne){for(let te of ne)te.destroy();delete this.interactionsStore[te.uid]}delete dA[te.uid]},this.resizeRunner=new DelayedRunner((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=te=>{let{options:ne}=this.props;ne.handleWindowResize&&te.target===window&&this.resizeRunner.request(ne.windowResizeDelay)}}render(){let te,{props:ne}=this,{toolbarConfig:ie,options:re}=ne,le=this.buildToolbarProps(ne.viewSpec,ne.dateProfile,ne.dateProfileGenerator,ne.currentDate,getNow(ne.options.now,ne.dateEnv),ne.viewTitle),ce=!1,de="";ne.isHeightAuto||ne.forPrint?de="":null!=re.height?ce=!0:null!=re.contentHeight?de=re.contentHeight:te=Math.max(re.aspectRatio,.5);let ue=this.buildViewContext(ne.viewSpec,ne.viewApi,ne.options,ne.dateProfileGenerator,ne.dateEnv,ne.theme,ne.pluginHooks,ne.dispatch,ne.getCurrentData,ne.emitter,ne.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),me=ie.header&&ie.header.hasTitle?this.state.viewLabelId:void 0;return y(Ky.Provider,{value:ue},ie.header&&y(Toolbar,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:ie.header,titleId:me},le)),y(ViewHarness,{liquid:ce,height:de,aspectRatio:te,labeledById:me},this.renderView(ne),this.buildAppendContent()),ie.footer&&y(Toolbar,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:ie.footer,titleId:""},le)))}componentDidMount(){let{props:te}=this;this.calendarInteractions=te.pluginHooks.calendarInteractions.map((ne=>new ne(te))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:ne}=te.pluginHooks;for(let ie in ne)ne[ie](te[ie],te)}componentDidUpdate(te){let{props:ne}=this,{propSetHandlers:ie}=ne.pluginHooks;for(let re in ie)ne[re]!==te[re]&&ie[re](ne[re],ne)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let te of this.calendarInteractions)te.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:te}=this;return y(_,{},...te.pluginHooks.viewContainerAppends.map((ne=>ne(te))))}renderView(te){let{pluginHooks:ne}=te,{viewSpec:ie}=te,re={dateProfile:te.dateProfile,businessHours:te.businessHours,eventStore:te.renderableEventStore,eventUiBases:te.eventUiBases,dateSelection:te.dateSelection,eventSelection:te.eventSelection,eventDrag:te.eventDrag,eventResize:te.eventResize,isHeightAuto:te.isHeightAuto,forPrint:te.forPrint},le=this.buildViewPropTransformers(ne.viewPropsTransformers);for(let ne of le)Object.assign(re,ne.transform(re,te));return y(ie.component,Object.assign({},re))}}function buildToolbarProps(te,ne,ie,re,le,ce){let de=ie.build(le,void 0,!1),ue=ie.buildPrev(ne,re,!1),me=ie.buildNext(ne,re,!1);return{title:ce,activeButton:te.type,navUnit:te.singleUnit,isTodayEnabled:de.isValid&&!rangeContainsMarker(ne.currentRange,le),isPrevEnabled:ue.isValid,isNextEnabled:me.isValid}}function buildViewPropTransformers(te){return te.map((te=>new te))}class Calendar extends CalendarImpl{constructor(te,ne={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=te=>{switch(te.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=te=>{this.currentData=te,this.renderRunner.request(te.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:te}=this;flushSync((()=>{D(y(CalendarRoot,{options:te.calendarOptions,theme:te.theme,emitter:te.emitter},((ne,ie,re,le)=>(this.setClassNames(ne),this.setHeight(ie),y(iw.Provider,{value:this.customContentRenderId},y(CalendarContent,Object.assign({isHeightAuto:re,forPrint:le},te)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,D(null,this.el),this.setClassNames([]),this.setHeight(""))},function ensureElHasStyles(te){te.isConnected&&te.getRootNode&&registerStylesRoot(te.getRootNode())}(te),this.el=te,this.renderRunner=new DelayedRunner(this.handleRenderRequest),new CalendarDataManager({optionOverrides:ne,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let te=this.isRendering;te?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),te&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){flushSync((()=>{super.updateSize()}))}batchRendering(te){this.renderRunner.pause("batchRendering"),te(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(te,ne){this.currentDataManager.resetOptions(te,ne)}setClassNames(te){if(!isArraysEqual(te,this.currentClassNames)){let{classList:ne}=this.el;for(let te of this.currentClassNames)ne.remove(te);for(let ie of te)ne.add(ie);this.currentClassNames=te}}setHeight(te){applyStyleProp(this.el,"height",te)}}class TableView extends DateComponent{constructor(){super(...arguments),this.headerElRef={current:null}}renderSimpleLayout(te,ne){let{props:ie,context:re}=this,le=[],ce=getStickyHeaderDates(re.options);return te&&le.push({type:"header",key:"header",isSticky:ce,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:te}}),le.push({type:"body",key:"body",liquid:!0,chunk:{content:ne}}),y(ViewContainer,{elClasses:["fc-daygrid"],viewSpec:re.viewSpec},y(SimpleScrollGrid,{liquid:!ie.isHeightAuto&&!ie.forPrint,collapsibleWidth:ie.forPrint,cols:[],sections:le}))}renderHScrollLayout(te,ne,ie,re){let le=this.context.pluginHooks.scrollGridImpl;if(!le)throw new Error("No ScrollGrid implementation");let{props:ce,context:de}=this,ue=!ce.forPrint&&getStickyHeaderDates(de.options),me=!ce.forPrint&&getStickyFooterScrollbar(de.options),ge=[];return te&&ge.push({type:"header",key:"header",isSticky:ue,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:te}]}),ge.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:ne}]}),me&&ge.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:renderScrollShim}]}),y(ViewContainer,{elClasses:["fc-daygrid"],viewSpec:de.viewSpec},y(le,{liquid:!ce.isHeightAuto&&!ce.forPrint,forPrint:ce.forPrint,collapsibleWidth:ce.forPrint,colGroups:[{cols:[{span:ie,minWidth:re}]}],sections:ge}))}}function splitSegsByRow(te,ne){let ie=[];for(let te=0;te<ne;te+=1)ie[te]=[];for(let ne of te)ie[ne.row].push(ne);return ie}function splitSegsByFirstCol(te,ne){let ie=[];for(let te=0;te<ne;te+=1)ie[te]=[];for(let ne of te)ie[ne.firstCol].push(ne);return ie}function splitInteractionByRow(te,ne){let ie=[];if(te){for(let re=0;re<ne;re+=1)ie[re]={affectedInstances:te.affectedInstances,isEvent:te.isEvent,segs:[]};for(let ne of te.segs)ie[ne.row].segs.push(ne)}else for(let te=0;te<ne;te+=1)ie[te]=null;return ie}const qA=internal_common_createFormatter({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function hasListItemDisplay(te){let{display:ne}=te.eventRange.ui;return"list-item"===ne||"auto"===ne&&!te.eventRange.def.allDay&&te.firstCol===te.lastCol&&te.isStart&&te.isEnd}class TableBlockEvent extends Jy{render(){let{props:te}=this;return y(StandardEvent,Object.assign({},te,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:qA,defaultDisplayEventEnd:te.defaultDisplayEventEnd,disableResizing:!te.seg.eventRange.def.allDay}))}}class TableListItemEvent extends Jy{render(){let{props:te,context:ne}=this,{options:ie}=ne,{seg:re}=te,le=buildSegTimeText(re,ie.eventTimeFormat||qA,ne,!0,te.defaultDisplayEventEnd);return y(EventContainer,Object.assign({},te,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:getSegAnchorAttrs(te.seg,ne),defaultGenerator:internal_renderInnerContent,timeText:le,isResizing:!1,isDateSelecting:!1}))}}function internal_renderInnerContent(te){return y(_,null,y("div",{className:"fc-daygrid-event-dot",style:{borderColor:te.borderColor||te.backgroundColor}}),te.timeText&&y("div",{className:"fc-event-time"},te.timeText),y("div",{className:"fc-event-title"},te.event.title||y(_,null," ")))}class TableCellMoreLink extends Jy{constructor(){super(...arguments),this.compileSegs=memoize(compileSegs)}render(){let{props:te}=this,{allSegs:ne,invisibleSegs:ie}=this.compileSegs(te.singlePlacements);return y(MoreLinkContainer,{elClasses:["fc-daygrid-more-link"],dateProfile:te.dateProfile,todayRange:te.todayRange,allDayDate:te.allDayDate,moreCnt:te.moreCnt,allSegs:ne,hiddenSegs:ie,alignmentElRef:te.alignmentElRef,alignGridTop:te.alignGridTop,extraDateSpan:te.extraDateSpan,popoverContent:()=>{let ie=(te.eventDrag?te.eventDrag.affectedInstances:null)||(te.eventResize?te.eventResize.affectedInstances:null)||{};return y(_,null,ne.map((ne=>{let re=ne.eventRange.instance.instanceId;return y("div",{className:"fc-daygrid-event-harness",key:re,style:{visibility:ie[re]?"hidden":""}},hasListItemDisplay(ne)?y(TableListItemEvent,Object.assign({seg:ne,isDragging:!1,isSelected:re===te.eventSelection,defaultDisplayEventEnd:!1},getSegMeta(ne,te.todayRange))):y(TableBlockEvent,Object.assign({seg:ne,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:re===te.eventSelection,defaultDisplayEventEnd:!1},getSegMeta(ne,te.todayRange))))})))}})}}function compileSegs(te){let ne=[],ie=[];for(let re of te)ne.push(re.seg),re.isVisible||ie.push(re.seg);return{allSegs:ne,invisibleSegs:ie}}const YA=internal_common_createFormatter({week:"narrow"});class TableCell extends DateComponent{constructor(){super(...arguments),this.rootElRef={current:null},this.state={dayNumberId:getUniqueDomId()},this.handleRootEl=te=>{setRef(this.rootElRef,te),setRef(this.props.elRef,te)}}render(){let{context:te,props:ne,state:ie,rootElRef:re}=this,{options:le,dateEnv:ce}=te,{date:de,dateProfile:ue}=ne;const me=ne.showDayNumber&&function shouldDisplayMonthStart(te,ne,ie){const{start:re,end:le}=ne,ce=addMs(le,-1),de=ie.getYear(re),ue=ie.getMonth(re),me=ie.getYear(ce),ge=ie.getMonth(ce);return!(de===me&&ue===ge)&&Boolean(te.valueOf()===re.valueOf()||1===ie.getDay(te)&&te.valueOf()<le.valueOf())}(de,ue.currentRange,ce);return y(DayCellContainer,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...ne.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},ne.extraDataAttrs),ne.showDayNumber?{"aria-labelledby":ie.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:renderTopInner,date:de,dateProfile:ue,todayRange:ne.todayRange,showDayNumber:ne.showDayNumber,isMonthStart:me,extraRenderProps:ne.extraRenderProps},((ce,ue)=>y("div",{ref:ne.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:ne.minHeight}},ne.showWeekNumber&&y(WeekNumberContainer,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:buildNavLinkAttrs(te,de,"week"),date:de,defaultFormat:YA}),!ue.isDisabled&&(ne.showDayNumber||hasCustomDayCellContent(le)||ne.forceDayTop)?y("div",{className:"fc-daygrid-day-top"},y(ce,{elTag:"a",elClasses:["fc-daygrid-day-number",me&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},buildNavLinkAttrs(te,de)),{id:ie.dayNumberId})})):ne.showDayNumber?y("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},y("a",{className:"fc-daygrid-day-number"}," ")):void 0,y("div",{className:"fc-daygrid-day-events",ref:ne.fgContentElRef},ne.fgContent,y("div",{className:"fc-daygrid-day-bottom",style:{marginTop:ne.moreMarginTop}},y(TableCellMoreLink,{allDayDate:de,singlePlacements:ne.singlePlacements,moreCnt:ne.moreCnt,alignmentElRef:re,alignGridTop:!ne.showDayNumber,extraDateSpan:ne.extraDateSpan,dateProfile:ne.dateProfile,eventSelection:ne.eventSelection,eventDrag:ne.eventDrag,eventResize:ne.eventResize,todayRange:ne.todayRange}))),y("div",{className:"fc-daygrid-day-bg"},ne.bgContent))))}}function renderTopInner(te){return te.dayNumberText||y(_,null," ")}function generateSegKey(te){return te.eventRange.instance.instanceId+":"+te.firstCol}function generateSegUid(te){return generateSegKey(te)+":"+te.lastCol}function computeFgSegPlacement(te,ne,ie,re,le,ce,de){let ue=new DayGridSegHierarchy((ne=>{let ie=te[ne.index].eventRange.instance.instanceId+":"+ne.span.start+":"+(ne.span.end-1);return le[ie]||1}));ue.allowReslicing=!0,ue.strictOrder=re,!0===ne||!0===ie?(ue.maxCoord=ce,ue.hiddenConsumes=!0):"number"==typeof ne?ue.maxStackCnt=ne:"number"==typeof ie&&(ue.maxStackCnt=ie,ue.hiddenConsumes=!0);let me=[],ge=[];for(let ne=0;ne<te.length;ne+=1){let ie=te[ne],re=generateSegUid(ie);null!=le[re]?me.push({index:ne,span:{start:ie.firstCol,end:ie.lastCol+1}}):ge.push(ie)}let fe=ue.addSegs(me),_e=ue.toRects(),{singleColPlacements:be,multiColPlacements:Ce,leftoverMargins:ye}=function placeRects(te,ne,ie){let re=function groupRectsByEachCol(te,ne){let ie=[];for(let te=0;te<ne;te+=1)ie.push([]);for(let ne of te)for(let te=ne.span.start;te<ne.span.end;te+=1)ie[te].push(ne);return ie}(te,ie.length),le=[],ce=[],de=[];for(let te=0;te<ie.length;te+=1){let ue=re[te],me=[],ge=0,fe=0;for(let re of ue){let le=ne[re.index];me.push({seg:resliceSeg(le,te,te+1,ie),isVisible:!0,isAbsolute:!1,absoluteTop:re.levelCoord,marginTop:re.levelCoord-ge}),ge=re.levelCoord+re.thickness}let _e=[];ge=0,fe=0;for(let re of ue){let le=ne[re.index],ce=re.span.end-re.span.start>1,de=re.span.start===te;fe+=re.levelCoord-ge,ge=re.levelCoord+re.thickness,ce?(fe+=re.thickness,de&&_e.push({seg:resliceSeg(le,re.span.start,re.span.end,ie),isVisible:!0,isAbsolute:!0,absoluteTop:re.levelCoord,marginTop:0})):de&&(_e.push({seg:resliceSeg(le,re.span.start,re.span.end,ie),isVisible:!0,isAbsolute:!1,absoluteTop:re.levelCoord,marginTop:fe}),fe=0)}le.push(me),ce.push(_e),de.push(fe)}return{singleColPlacements:le,multiColPlacements:ce,leftoverMargins:de}}(_e,te,de),we=[],ke=[];for(let te of ge){Ce[te.firstCol].push({seg:te,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let ne=te.firstCol;ne<=te.lastCol;ne+=1)be[ne].push({seg:resliceSeg(te,ne,ne+1,de),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let te=0;te<de.length;te+=1)we.push(0);for(let ne of fe){let ie=te[ne.index],re=ne.span;Ce[re.start].push({seg:resliceSeg(ie,re.start,re.end,de),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let te=re.start;te<re.end;te+=1)we[te]+=1,be[te].push({seg:resliceSeg(ie,te,te+1,de),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let te=0;te<de.length;te+=1)ke.push(ye[te]);return{singleColPlacements:be,multiColPlacements:Ce,moreCnts:we,moreMarginTops:ke}}function resliceSeg(te,ne,ie,re){if(te.firstCol===ne&&te.lastCol===ie-1)return te;let le=te.eventRange,ce=le.range,de=intersectRanges(ce,{start:re[ne].date,end:addDays(re[ie-1].date,1)});return Object.assign(Object.assign({},te),{firstCol:ne,lastCol:ie-1,eventRange:{def:le.def,ui:Object.assign(Object.assign({},le.ui),{durationEditable:!1}),instance:le.instance,range:de},isStart:te.isStart&&de.start.valueOf()===ce.start.valueOf(),isEnd:te.isEnd&&de.end.valueOf()===ce.end.valueOf()})}class DayGridSegHierarchy extends SegHierarchy{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(te){const ne=super.addSegs(te),{entriesByLevel:ie}=this,excludeHidden=te=>!this.forceHidden[buildEntryKey(te)];for(let te=0;te<ie.length;te+=1)ie[te]=ie[te].filter(excludeHidden);return ne}handleInvalidInsertion(te,ne,ie){const{entriesByLevel:re,forceHidden:le}=this,{touchingEntry:ce,touchingLevel:de,touchingLateral:ue}=te;if(this.hiddenConsumes&&ce){const te=buildEntryKey(ce);if(!le[te])if(this.allowReslicing){const te=Object.assign(Object.assign({},ce),{span:intersectSpans(ce.span,ne.span)});le[buildEntryKey(te)]=!0,re[de][ue]=te,ie.push(te),this.splitEntry(ce,ne,ie)}else le[te]=!0,ie.push(ce)}super.handleInvalidInsertion(te,ne,ie)}}class TableRow extends DateComponent{constructor(){super(...arguments),this.cellElRefs=new RefMap,this.frameElRefs=new RefMap,this.fgElRefs=new RefMap,this.segHarnessRefs=new RefMap,this.rootElRef={current:null},this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=te=>{te&&this.updateSizing(!0)}}render(){let{props:te,state:ne,context:ie}=this,{options:re}=ie,le=te.cells.length,ce=splitSegsByFirstCol(te.businessHourSegs,le),de=splitSegsByFirstCol(te.bgEventSegs,le),ue=splitSegsByFirstCol(this.getHighlightSegs(),le),me=splitSegsByFirstCol(this.getMirrorSegs(),le),{singleColPlacements:ge,multiColPlacements:fe,moreCnts:_e,moreMarginTops:be}=computeFgSegPlacement(sortEventSegs(te.fgEventSegs,re.eventOrder),te.dayMaxEvents,te.dayMaxEventRows,re.eventOrderStrict,ne.segHeights,ne.maxContentHeight,te.cells),Ce=te.eventDrag&&te.eventDrag.affectedInstances||te.eventResize&&te.eventResize.affectedInstances||{};return y("tr",{ref:this.rootElRef,role:"row"},te.renderIntro&&te.renderIntro(),te.cells.map(((ne,ie)=>{let re=this.renderFgSegs(ie,te.forPrint?ge[ie]:fe[ie],te.todayRange,Ce),le=this.renderFgSegs(ie,function buildMirrorPlacements(te,ne){if(!te.length)return[];let ie=function buildAbsoluteTopHash(te){let ne={};for(let ie of te)for(let te of ie)ne[te.seg.eventRange.instance.instanceId]=te.absoluteTop;return ne}(ne);return te.map((te=>({seg:te,isVisible:!0,isAbsolute:!0,absoluteTop:ie[te.eventRange.instance.instanceId],marginTop:0})))}(me[ie],fe),te.todayRange,{},Boolean(te.eventDrag),Boolean(te.eventResize),!1);return y(TableCell,{key:ne.key,elRef:this.cellElRefs.createRef(ne.key),innerElRef:this.frameElRefs.createRef(ne.key),dateProfile:te.dateProfile,date:ne.date,showDayNumber:te.showDayNumbers,showWeekNumber:te.showWeekNumbers&&0===ie,forceDayTop:te.showWeekNumbers,todayRange:te.todayRange,eventSelection:te.eventSelection,eventDrag:te.eventDrag,eventResize:te.eventResize,extraRenderProps:ne.extraRenderProps,extraDataAttrs:ne.extraDataAttrs,extraClassNames:ne.extraClassNames,extraDateSpan:ne.extraDateSpan,moreCnt:_e[ie],moreMarginTop:be[ie],singlePlacements:ge[ie],fgContentElRef:this.fgElRefs.createRef(ne.key),fgContent:y(_,null,y(_,null,re),y(_,null,le)),bgContent:y(_,null,this.renderFillSegs(ue[ie],"highlight"),this.renderFillSegs(ce[ie],"non-business"),this.renderFillSegs(de[ie],"bg-event")),minHeight:te.cellMinHeight})})))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(te,ne){let ie=this.props;this.updateSizing(!isPropsEqual(te,ie))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:te}=this;return te.eventDrag&&te.eventDrag.segs.length?te.eventDrag.segs:te.eventResize&&te.eventResize.segs.length?te.eventResize.segs:te.dateSelectionSegs}getMirrorSegs(){let{props:te}=this;return te.eventResize&&te.eventResize.segs.length?te.eventResize.segs:[]}renderFgSegs(te,ne,ie,re,le,ce,de){let{context:ue}=this,{eventSelection:me}=this.props,{framePositions:ge}=this.state,fe=1===this.props.cells.length,_e=le||ce||de,be=[];if(ge)for(let te of ne){let{seg:ne}=te,{instanceId:Ce}=ne.eventRange.instance,ye=te.isVisible&&!re[Ce],we=te.isAbsolute,ke="",Se="";we&&(ue.isRtl?(Se=0,ke=ge.lefts[ne.lastCol]-ge.lefts[ne.firstCol]):(ke=0,Se=ge.rights[ne.firstCol]-ge.rights[ne.lastCol])),be.push(y("div",{className:"fc-daygrid-event-harness"+(we?" fc-daygrid-event-harness-abs":""),key:generateSegKey(ne),ref:_e?null:this.segHarnessRefs.createRef(generateSegUid(ne)),style:{visibility:ye?"":"hidden",marginTop:we?"":te.marginTop,top:we?te.absoluteTop:"",left:ke,right:Se}},hasListItemDisplay(ne)?y(TableListItemEvent,Object.assign({seg:ne,isDragging:le,isSelected:Ce===me,defaultDisplayEventEnd:fe},getSegMeta(ne,ie))):y(TableBlockEvent,Object.assign({seg:ne,isDragging:le,isResizing:ce,isDateSelecting:de,isSelected:Ce===me,defaultDisplayEventEnd:fe},getSegMeta(ne,ie)))))}return be}renderFillSegs(te,ne){let{isRtl:ie}=this.context,{todayRange:re}=this.props,{framePositions:le}=this.state,ce=[];if(le)for(let de of te){let te=ie?{right:0,left:le.lefts[de.lastCol]-le.lefts[de.firstCol]}:{left:0,right:le.rights[de.firstCol]-le.rights[de.lastCol]};ce.push(y("div",{key:buildEventRangeKey(de.eventRange),className:"fc-daygrid-bg-harness",style:te},"bg-event"===ne?y(BgEvent,Object.assign({seg:de},getSegMeta(de,re))):renderFill(ne)))}return y(_,{},...ce)}updateSizing(te){let{props:ne,state:ie,frameElRefs:re}=this;if(!ne.forPrint&&null!==ne.clientWidth){if(te){let te=ne.cells.map((te=>re.currentMap[te.key]));if(te.length){let ne=this.rootElRef.current,re=new PositionCache(ne,te,!0,!1);ie.framePositions&&ie.framePositions.similarTo(re)||this.setState({framePositions:new PositionCache(ne,te,!0,!1)})}}const le=this.state.segHeights,ce=this.querySegHeights(),de=!0===ne.dayMaxEvents||!0===ne.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},le),ce),maxContentHeight:de?this.computeMaxContentHeight():null})}}querySegHeights(){let te=this.segHarnessRefs.currentMap,ne={};for(let ie in te){let re=Math.round(te[ie].getBoundingClientRect().height);ne[ie]=Math.max(ne[ie]||0,re)}return ne}computeMaxContentHeight(){let te=this.props.cells[0].key,ne=this.cellElRefs.currentMap[te],ie=this.fgElRefs.currentMap[te];return ne.getBoundingClientRect().bottom-ie.getBoundingClientRect().top}getCellEls(){let te=this.cellElRefs.currentMap;return this.props.cells.map((ne=>te[ne.key]))}}TableRow.addStateEquality({segHeights:isPropsEqual});class TableRows extends DateComponent{constructor(){super(...arguments),this.splitBusinessHourSegs=memoize(splitSegsByRow),this.splitBgEventSegs=memoize(splitSegsByRow),this.splitFgEventSegs=memoize(splitSegsByRow),this.splitDateSelectionSegs=memoize(splitSegsByRow),this.splitEventDrag=memoize(splitInteractionByRow),this.splitEventResize=memoize(splitInteractionByRow),this.rowRefs=new RefMap}render(){let{props:te,context:ne}=this,ie=te.cells.length,re=this.splitBusinessHourSegs(te.businessHourSegs,ie),le=this.splitBgEventSegs(te.bgEventSegs,ie),ce=this.splitFgEventSegs(te.fgEventSegs,ie),de=this.splitDateSelectionSegs(te.dateSelectionSegs,ie),ue=this.splitEventDrag(te.eventDrag,ie),me=this.splitEventResize(te.eventResize,ie),ge=ie>=7&&te.clientWidth?te.clientWidth/ne.options.aspectRatio/6:null;return y(PA,{unit:"day"},((ne,fe)=>y(_,null,te.cells.map(((ne,_e)=>y(TableRow,{ref:this.rowRefs.createRef(_e),key:ne.length?ne[0].date.toISOString():_e,showDayNumbers:ie>1,showWeekNumbers:te.showWeekNumbers,todayRange:fe,dateProfile:te.dateProfile,cells:ne,renderIntro:te.renderRowIntro,businessHourSegs:re[_e],eventSelection:te.eventSelection,bgEventSegs:le[_e].filter(isSegAllDay),fgEventSegs:ce[_e],dateSelectionSegs:de[_e],eventDrag:ue[_e],eventResize:me[_e],dayMaxEvents:te.dayMaxEvents,dayMaxEventRows:te.dayMaxEventRows,clientWidth:te.clientWidth,clientHeight:te.clientHeight,cellMinHeight:ge,forPrint:te.forPrint}))))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const te=this.rowRefs.currentMap[0].getCellEls()[0],ne=te?te.closest(".fc-daygrid-body"):null;ne&&(this.rootEl=ne,this.context.registerInteractiveComponent(this,{el:ne,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new PositionCache(this.rootEl,this.rowRefs.collect().map((te=>te.getCellEls()[0])),!1,!0),this.colPositions=new PositionCache(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(te,ne){let{colPositions:ie,rowPositions:re}=this,le=ie.leftToIndex(te),ce=re.topToIndex(ne);if(null!=ce&&null!=le){let te=this.props.cells[ce][le];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(ce,le),allDay:!0},te.extraDateSpan),dayEl:this.getCellEl(ce,le),rect:{left:ie.lefts[le],right:ie.rights[le],top:re.tops[ce],bottom:re.bottoms[ce]},layer:0}}return null}getCellEl(te,ne){return this.rowRefs.currentMap[te].getCellEls()[ne]}getCellRange(te,ne){let ie=this.props.cells[te][ne].date;return{start:ie,end:addDays(ie,1)}}}function isSegAllDay(te){return te.eventRange.def.allDay}class Table extends DateComponent{constructor(){super(...arguments),this.elRef={current:null},this.needsScrollReset=!1}render(){let{props:te}=this,{dayMaxEventRows:ne,dayMaxEvents:ie,expandRows:re}=te,le=!0===ie||!0===ne;le&&!re&&(le=!1,ne=null,ie=null);let ce=["fc-daygrid-body",le?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",re?"":"fc-daygrid-body-natural"];return y("div",{ref:this.elRef,className:ce.join(" "),style:{width:te.clientWidth,minWidth:te.tableMinWidth}},y("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:te.clientWidth,minWidth:te.tableMinWidth,height:re?te.clientHeight:""}},te.colGroupNode,y("tbody",{role:"presentation"},y(TableRows,{dateProfile:te.dateProfile,cells:te.cells,renderRowIntro:te.renderRowIntro,showWeekNumbers:te.showWeekNumbers,clientWidth:te.clientWidth,clientHeight:te.clientHeight,businessHourSegs:te.businessHourSegs,bgEventSegs:te.bgEventSegs,fgEventSegs:te.fgEventSegs,dateSelectionSegs:te.dateSelectionSegs,eventSelection:te.eventSelection,eventDrag:te.eventDrag,eventResize:te.eventResize,dayMaxEvents:ie,dayMaxEventRows:ne,forPrint:te.forPrint,isHitComboAllowed:te.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(te){te.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const te=function getScrollSubjectEl(te,ne){let ie;ne.currentRangeUnit.match(/year|month/)&&(ie=te.querySelector(`[data-date="${function formatIsoMonthStr(te){return te.toISOString().match(/^\d{4}-\d{2}/)[0]}(ne.currentDate)}-01"]`));ie||(ie=te.querySelector(`[data-date="${formatDayString(ne.currentDate)}"]`));return ie}(this.elRef.current,this.props.dateProfile);if(te){const ne=te.closest(".fc-daygrid-body"),ie=ne.closest(".fc-scroller"),re=te.getBoundingClientRect().top-ne.getBoundingClientRect().top;ie.scrollTop=re?re+1:0}this.needsScrollReset=!1}}}class DayTableSlicer extends Slicer{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(te,ne){return ne.sliceRange(te)}}class DayTable extends DateComponent{constructor(){super(...arguments),this.slicer=new DayTableSlicer,this.tableRef={current:null}}render(){let{props:te,context:ne}=this;return y(Table,Object.assign({ref:this.tableRef},this.slicer.sliceProps(te,te.dateProfile,te.nextDayThreshold,ne,te.dayTableModel),{dateProfile:te.dateProfile,cells:te.dayTableModel.cells,colGroupNode:te.colGroupNode,tableMinWidth:te.tableMinWidth,renderRowIntro:te.renderRowIntro,dayMaxEvents:te.dayMaxEvents,dayMaxEventRows:te.dayMaxEventRows,showWeekNumbers:te.showWeekNumbers,expandRows:te.expandRows,headerAlignElRef:te.headerAlignElRef,clientWidth:te.clientWidth,clientHeight:te.clientHeight,forPrint:te.forPrint}))}}function buildDayTableModel(te,ne){let ie=new DaySeriesModel(te.renderRange,ne);return new DayTableModel(ie,/year|month|week/.test(te.currentRangeUnit))}injectStyles(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var WA=createPlugin({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class DayTableView extends TableView{constructor(){super(...arguments),this.buildDayTableModel=memoize(buildDayTableModel),this.headerRef={current:null},this.tableRef={current:null}}render(){let{options:te,dateProfileGenerator:ne}=this.context,{props:ie}=this,re=this.buildDayTableModel(ie.dateProfile,ne),le=te.dayHeaders&&y(DayHeader,{ref:this.headerRef,dateProfile:ie.dateProfile,dates:re.headerDates,datesRepDistinctDays:1===re.rowCnt}),bodyContent=ne=>y(DayTable,{ref:this.tableRef,dateProfile:ie.dateProfile,dayTableModel:re,businessHours:ie.businessHours,dateSelection:ie.dateSelection,eventStore:ie.eventStore,eventUiBases:ie.eventUiBases,eventSelection:ie.eventSelection,eventDrag:ie.eventDrag,eventResize:ie.eventResize,nextDayThreshold:te.nextDayThreshold,colGroupNode:ne.tableColGroupNode,tableMinWidth:ne.tableMinWidth,dayMaxEvents:te.dayMaxEvents,dayMaxEventRows:te.dayMaxEventRows,showWeekNumbers:te.weekNumbers,expandRows:!ie.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:ne.clientWidth,clientHeight:ne.clientHeight,forPrint:ie.forPrint});return te.dayMinWidth?this.renderHScrollLayout(le,bodyContent,re.colCnt,te.dayMinWidth):this.renderSimpleLayout(le,bodyContent)}},dateProfileGeneratorClass:class TableDateProfileGenerator extends DateProfileGenerator{buildRenderRange(te,ne,ie){let re=super.buildRenderRange(te,ne,ie),{props:le}=this;return function buildDayTableRenderRange(te){let ne,{dateEnv:ie,currentRange:re}=te,{start:le,end:ce}=re;te.snapToWeek&&(le=ie.startOfWeek(le),ne=ie.startOfWeek(ce),ne.valueOf()!==ce.valueOf()&&(ce=addWeeks(ne,1)));if(te.fixedWeekCount){let te=ie.startOfWeek(ie.startOfMonth(addDays(re.end,-1)));ce=addWeeks(ce,6-Math.ceil(function diffWeeks(te,ne){return diffDays(te,ne)/7}(te,ce)))}return{start:le,end:ce}}({currentRange:re,snapToWeek:/^(year|month)$/.test(ne),fixedWeekCount:le.fixedWeekCount,dateEnv:le.dateEnv})}}},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});xA.touchMouseIgnoreWait=500;let XA=0,KA=0,QA=!1;class PointerDragging{constructor(te){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=te=>{if(!this.shouldIgnoreMouse()&&function isPrimaryMouseButton(te){return 0===te.button&&!te.ctrlKey}(te)&&this.tryStart(te)){let ne=this.createEventFromMouse(te,!0);this.emitter.trigger("pointerdown",ne),this.initScrollWatch(ne),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=te=>{let ne=this.createEventFromMouse(te);this.recordCoords(ne),this.emitter.trigger("pointermove",ne)},this.handleMouseUp=te=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(te)),this.cleanup()},this.handleTouchStart=te=>{if(this.tryStart(te)){this.isTouchDragging=!0;let ne=this.createEventFromTouch(te,!0);this.emitter.trigger("pointerdown",ne),this.initScrollWatch(ne);let ie=te.target;this.shouldIgnoreMove||ie.addEventListener("touchmove",this.handleTouchMove),ie.addEventListener("touchend",this.handleTouchEnd),ie.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=te=>{let ne=this.createEventFromTouch(te);this.recordCoords(ne),this.emitter.trigger("pointermove",ne)},this.handleTouchEnd=te=>{if(this.isDragging){let ne=te.target;ne.removeEventListener("touchmove",this.handleTouchMove),ne.removeEventListener("touchend",this.handleTouchEnd),ne.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(te)),this.cleanup(),this.isTouchDragging=!1,function startIgnoringMouse(){XA+=1,setTimeout((()=>{XA-=1}),xA.touchMouseIgnoreWait)}()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=te=>{if(!this.shouldIgnoreMove){let ne=window.pageXOffset-this.prevScrollX+this.prevPageX,ie=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:te,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:ne,pageY:ie,deltaX:ne-this.origPageX,deltaY:ie-this.origPageY})}},this.containerEl=te,this.emitter=new Emitter,te.addEventListener("mousedown",this.handleMouseDown),te.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),function listenerCreated(){KA+=1,1===KA&&window.addEventListener("touchmove",onWindowTouchMove,{passive:!1})}()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),function listenerDestroyed(){KA-=1,KA||window.removeEventListener("touchmove",onWindowTouchMove,{passive:!1})}()}tryStart(te){let ne=this.querySubjectEl(te),ie=te.target;return!(!ne||this.handleSelector&&!elementClosest(ie,this.handleSelector))&&(this.subjectEl=ne,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){QA=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(te){return this.selector?elementClosest(te.target,this.selector):this.containerEl}shouldIgnoreMouse(){return XA||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(QA=!0)}initScrollWatch(te){this.shouldWatchScroll&&(this.recordCoords(te),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(te){this.shouldWatchScroll&&(this.prevPageX=te.pageX,this.prevPageY=te.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(te,ne){let ie=0,re=0;return ne?(this.origPageX=te.pageX,this.origPageY=te.pageY):(ie=te.pageX-this.origPageX,re=te.pageY-this.origPageY),{origEvent:te,isTouch:!1,subjectEl:this.subjectEl,pageX:te.pageX,pageY:te.pageY,deltaX:ie,deltaY:re}}createEventFromTouch(te,ne){let ie,re,le=te.touches,ce=0,de=0;return le&&le.length?(ie=le[0].pageX,re=le[0].pageY):(ie=te.pageX,re=te.pageY),ne?(this.origPageX=ie,this.origPageY=re):(ce=ie-this.origPageX,de=re-this.origPageY),{origEvent:te,isTouch:!0,subjectEl:this.subjectEl,pageX:ie,pageY:re,deltaX:ce,deltaY:de}}}function onWindowTouchMove(te){QA&&te.preventDefault()}class ElementMirror{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(te,ne,ie){this.sourceEl=te,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=ne-window.pageXOffset,this.origScreenY=ie-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(te,ne){this.deltaX=te-window.pageXOffset-this.origScreenX,this.deltaY=ne-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(te){te?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=te,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=te)}stop(te,ne){let done=()=>{this.cleanup(),ne()};te&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(done,this.revertDuration):setTimeout(done,0)}doRevertAnimation(te,ne){let ie=this.mirrorEl,re=this.sourceEl.getBoundingClientRect();ie.style.transition="top "+ne+"ms,left "+ne+"ms",applyStyle(ie,{left:re.left,top:re.top}),function whenTransitionDone(te,ne){let realCallback=ie=>{ne(ie),iy.forEach((ne=>{te.removeEventListener(ne,realCallback)}))};iy.forEach((ne=>{te.addEventListener(ne,realCallback)}))}(ie,(()=>{ie.style.transition="",te()}))}cleanup(){this.mirrorEl&&(removeElement(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&applyStyle(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let te=this.sourceElRect,ne=this.mirrorEl;return ne||(ne=this.mirrorEl=this.sourceEl.cloneNode(!0),ne.style.userSelect="none",ne.style.webkitUserSelect="none",ne.classList.add("fc-event-dragging"),applyStyle(ne,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:te.right-te.left,height:te.bottom-te.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(ne)),ne}}class ScrollGeomCache extends ScrollController{constructor(te,ne){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=te,this.doesListening=ne,this.scrollTop=this.origScrollTop=te.getScrollTop(),this.scrollLeft=this.origScrollLeft=te.getScrollLeft(),this.scrollWidth=te.getScrollWidth(),this.scrollHeight=te.getScrollHeight(),this.clientWidth=te.getClientWidth(),this.clientHeight=te.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(te){this.scrollController.setScrollTop(te),this.doesListening||(this.scrollTop=Math.max(Math.min(te,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(te){this.scrollController.setScrollLeft(te),this.doesListening||(this.scrollLeft=Math.max(Math.min(te,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class ElementScrollGeomCache extends ScrollGeomCache{constructor(te,ne){super(new ElementScrollController(te),ne)}getEventTarget(){return this.scrollController.el}computeClientRect(){return computeInnerRect(this.scrollController.el)}}class WindowScrollGeomCache extends ScrollGeomCache{constructor(te){super(new WindowScrollController,te)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const JA="function"==typeof performance?performance.now:Date.now;class AutoScroller{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let te=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(te){let ne=JA();this.handleSide(te,(ne-this.msSinceRequest)/1e3),this.requestAnimation(ne)}else this.isAnimating=!1}}}start(te,ne,ie){this.isEnabled&&(this.scrollCaches=this.buildCaches(ie),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(te,ne))}handleMove(te,ne){if(this.isEnabled){let ie=te-window.pageXOffset,re=ne-window.pageYOffset,le=null===this.pointerScreenY?0:re-this.pointerScreenY,ce=null===this.pointerScreenX?0:ie-this.pointerScreenX;le<0?this.everMovedUp=!0:le>0&&(this.everMovedDown=!0),ce<0?this.everMovedLeft=!0:ce>0&&(this.everMovedRight=!0),this.pointerScreenX=ie,this.pointerScreenY=re,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(JA()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let te of this.scrollCaches)te.destroy();this.scrollCaches=null}}requestAnimation(te){this.msSinceRequest=te,requestAnimationFrame(this.animate)}handleSide(te,ne){let{scrollCache:ie}=te,{edgeThreshold:re}=this,le=re-te.distance,ce=le*le/(re*re)*this.maxVelocity*ne,de=1;switch(te.name){case"left":de=-1;case"right":ie.setScrollLeft(ie.getScrollLeft()+ce*de);break;case"top":de=-1;case"bottom":ie.setScrollTop(ie.getScrollTop()+ce*de)}}computeBestEdge(te,ne){let{edgeThreshold:ie}=this,re=null,le=this.scrollCaches||[];for(let ce of le){let le=ce.clientRect,de=te-le.left,ue=le.right-te,me=ne-le.top,ge=le.bottom-ne;de>=0&&ue>=0&&me>=0&&ge>=0&&(me<=ie&&this.everMovedUp&&ce.canScrollUp()&&(!re||re.distance>me)&&(re={scrollCache:ce,name:"top",distance:me}),ge<=ie&&this.everMovedDown&&ce.canScrollDown()&&(!re||re.distance>ge)&&(re={scrollCache:ce,name:"bottom",distance:ge}),de<=ie&&this.everMovedLeft&&ce.canScrollLeft()&&(!re||re.distance>de)&&(re={scrollCache:ce,name:"left",distance:de}),ue<=ie&&this.everMovedRight&&ce.canScrollRight()&&(!re||re.distance>ue)&&(re={scrollCache:ce,name:"right",distance:ue}))}return re}buildCaches(te){return this.queryScrollEls(te).map((te=>te===window?new WindowScrollGeomCache(!1):new ElementScrollGeomCache(te,!1)))}queryScrollEls(te){let ne=[];for(let ie of this.scrollQuery)"object"==typeof ie?ne.push(ie):ne.push(...Array.prototype.slice.call(te.getRootNode().querySelectorAll(ie)));return ne}}class FeaturefulElementDragging extends ElementDragging{constructor(te,ne){super(te),this.containerEl=te,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=te=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,function preventSelection(te){te.style.userSelect="none",te.style.webkitUserSelect="none",te.addEventListener("selectstart",preventDefault)}(document.body),function preventContextMenu(te){te.addEventListener("contextmenu",preventDefault)}(document.body),te.isTouch||te.origEvent.preventDefault(),this.emitter.trigger("pointerdown",te),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(te.subjectEl,te.pageX,te.pageY),this.startDelay(te),this.minDistance||this.handleDistanceSurpassed(te)))},this.onPointerMove=te=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",te),!this.isDistanceSurpassed){let ne,ie=this.minDistance,{deltaX:re,deltaY:le}=te;ne=re*re+le*le,ne>=ie*ie&&this.handleDistanceSurpassed(te)}this.isDragging&&("scroll"!==te.origEvent.type&&(this.mirror.handleMove(te.pageX,te.pageY),this.autoScroller.handleMove(te.pageX,te.pageY)),this.emitter.trigger("dragmove",te))}},this.onPointerUp=te=>{this.isInteracting&&(this.isInteracting=!1,function allowSelection(te){te.style.userSelect="",te.style.webkitUserSelect="",te.removeEventListener("selectstart",preventDefault)}(document.body),function allowContextMenu(te){te.removeEventListener("contextmenu",preventDefault)}(document.body),this.emitter.trigger("pointerup",te),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(te)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let ie=this.pointer=new PointerDragging(te);ie.emitter.on("pointerdown",this.onPointerDown),ie.emitter.on("pointermove",this.onPointerMove),ie.emitter.on("pointerup",this.onPointerUp),ne&&(ie.selector=ne),this.mirror=new ElementMirror,this.autoScroller=new AutoScroller}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(te){"number"==typeof this.delay?this.delayTimeoutId=setTimeout((()=>{this.delayTimeoutId=null,this.handleDelayEnd(te)}),this.delay):this.handleDelayEnd(te)}handleDelayEnd(te){this.isDelayEnded=!0,this.tryStartDrag(te)}handleDistanceSurpassed(te){this.isDistanceSurpassed=!0,this.tryStartDrag(te)}tryStartDrag(te){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(te.pageX,te.pageY,this.containerEl),this.emitter.trigger("dragstart",te),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))}tryStopDrag(te){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,te))}stopDrag(te){this.isDragging=!1,this.emitter.trigger("dragend",te)}setIgnoreMove(te){this.pointer.shouldIgnoreMove=te}setMirrorIsVisible(te){this.mirror.setIsVisible(te)}setMirrorNeedsRevert(te){this.mirrorNeedsRevert=te}setAutoScrollEnabled(te){this.autoScroller.isEnabled=te}}class OffsetTracker{constructor(te){this.origRect=computeRect(te),this.scrollCaches=getClippingParents(te).map((te=>new ElementScrollGeomCache(te,!0)))}destroy(){for(let te of this.scrollCaches)te.destroy()}computeLeft(){let te=this.origRect.left;for(let ne of this.scrollCaches)te+=ne.origScrollLeft-ne.getScrollLeft();return te}computeTop(){let te=this.origRect.top;for(let ne of this.scrollCaches)te+=ne.origScrollTop-ne.getScrollTop();return te}isWithinClipping(te,ne){let ie={left:te,top:ne};for(let te of this.scrollCaches)if(!isIgnoredClipping(te.getEventTarget())&&!pointInsideRect(ie,te.clientRect))return!1;return!0}}function isIgnoredClipping(te){let ne=te.tagName;return"HTML"===ne||"BODY"===ne}class HitDragging{constructor(te,ne){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=te=>{let{dragging:ne}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(te),this.initialHit||!this.requireInitial?(ne.setIgnoreMove(!1),this.emitter.trigger("pointerdown",te)):ne.setIgnoreMove(!0)},this.handleDragStart=te=>{this.emitter.trigger("dragstart",te),this.handleMove(te,!0)},this.handleDragMove=te=>{this.emitter.trigger("dragmove",te),this.handleMove(te)},this.handlePointerUp=te=>{this.releaseHits(),this.emitter.trigger("pointerup",te)},this.handleDragEnd=te=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,te),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",te)},this.droppableStore=ne,te.emitter.on("pointerdown",this.handlePointerDown),te.emitter.on("dragstart",this.handleDragStart),te.emitter.on("dragmove",this.handleDragMove),te.emitter.on("pointerup",this.handlePointerUp),te.emitter.on("dragend",this.handleDragEnd),this.dragging=te,this.emitter=new Emitter}processFirstCoord(te){let ne,ie={left:te.pageX,top:te.pageY},re=ie,le=te.subjectEl;le instanceof HTMLElement&&(ne=computeRect(le),re=function constrainPoint(te,ne){return{left:Math.min(Math.max(te.left,ne.left),ne.right),top:Math.min(Math.max(te.top,ne.top),ne.bottom)}}(re,ne));let ce=this.initialHit=this.queryHitForOffset(re.left,re.top);if(ce){if(this.useSubjectCenter&&ne){let te=intersectRects(ne,ce.rect);te&&(re=function getRectCenter(te){return{left:(te.left+te.right)/2,top:(te.top+te.bottom)/2}}(te))}this.coordAdjust=function diffPoints(te,ne){return{left:te.left-ne.left,top:te.top-ne.top}}(re,ie)}else this.coordAdjust={left:0,top:0}}handleMove(te,ne){let ie=this.queryHitForOffset(te.pageX+this.coordAdjust.left,te.pageY+this.coordAdjust.top);!ne&&isHitsEqual(this.movingHit,ie)||(this.movingHit=ie,this.emitter.trigger("hitupdate",ie,!1,te))}prepareHits(){this.offsetTrackers=mapHash(this.droppableStore,(te=>(te.component.prepareHits(),new OffsetTracker(te.el))))}releaseHits(){let{offsetTrackers:te}=this;for(let ne in te)te[ne].destroy();this.offsetTrackers={}}queryHitForOffset(te,ne){let{droppableStore:ie,offsetTrackers:re}=this,le=null;for(let ce in ie){let de=ie[ce].component,ue=re[ce];if(ue&&ue.isWithinClipping(te,ne)){let ie=ue.computeLeft(),re=ue.computeTop(),me=te-ie,ge=ne-re,{origRect:fe}=ue,_e=fe.right-fe.left,be=fe.bottom-fe.top;if(me>=0&&me<_e&&ge>=0&&ge<be){let te=de.queryHit(me,ge,_e,be);te&&rangeContainsRange(te.dateProfile.activeRange,te.dateSpan.range)&&(!le||te.layer>le.layer)&&(te.componentId=ce,te.context=de.context,te.rect.left+=ie,te.rect.right+=ie,te.rect.top+=re,te.rect.bottom+=re,le=te)}}}return le}}function isHitsEqual(te,ne){return!te&&!ne||Boolean(te)===Boolean(ne)&&function isDateSpansEqual(te,ne){return function rangesEqual(te,ne){return(null===te.start?null:te.start.valueOf())===(null===ne.start?null:ne.start.valueOf())&&(null===te.end?null:te.end.valueOf())===(null===ne.end?null:ne.end.valueOf())}(te.range,ne.range)&&te.allDay===ne.allDay&&function isSpanPropsEqual(te,ne){for(let ie in ne)if("range"!==ie&&"allDay"!==ie&&te[ie]!==ne[ie])return!1;for(let ie in te)if(!(ie in ne))return!1;return!0}(te,ne)}(te.dateSpan,ne.dateSpan)}function buildDatePointApiWithContext(te,ne){let ie={};for(let re of ne.pluginHooks.datePointTransforms)Object.assign(ie,re(te,ne));return Object.assign(ie,function buildDatePointApi(te,ne){return{date:ne.toDate(te.range.start),dateStr:ne.formatIso(te.range.start,{omitTime:te.allDay}),allDay:te.allDay}}(te,ne.dateEnv)),ie}let ZA=(()=>{class EventDragging extends Interaction{constructor(te){super(te),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=te=>{let ne=te.origEvent.target,{component:ie,dragging:re}=this,{mirror:le}=re,{options:ce}=ie.context,de=ie.context;this.subjectEl=te.subjectEl;let ue=this.subjectSeg=getElSeg(te.subjectEl),me=(this.eventRange=ue.eventRange).instance.instanceId;this.relevantEvents=getRelevantEvents(de.getCurrentData().eventStore,me),re.minDistance=te.isTouch?0:ce.eventDragMinDistance,re.delay=te.isTouch&&me!==ie.props.eventSelection?function getComponentTouchDelay(te){let{options:ne}=te.context,ie=ne.eventLongPressDelay;null==ie&&(ie=ne.longPressDelay);return ie}(ie):null,ce.fixedMirrorParent?le.parentNode=ce.fixedMirrorParent:le.parentNode=elementClosest(ne,".fc"),le.revertDuration=ce.dragRevertDuration;let ge=ie.isValidSegDownEl(ne)&&!elementClosest(ne,".fc-event-resizer");re.setIgnoreMove(!ge),this.isDragging=ge&&te.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=te=>{let ne=this.component.context,ie=this.eventRange,re=ie.instance.instanceId;te.isTouch?re!==this.component.props.eventSelection&&ne.dispatch({type:"SELECT_EVENT",eventInstanceId:re}):ne.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(ne.calendarApi.unselect(te),ne.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new internal_common_EventImpl(ne,ie.def,ie.instance),jsEvent:te.origEvent,view:ne.viewApi}))},this.handleHitUpdate=(te,ne)=>{if(!this.isDragging)return;let ie=this.relevantEvents,re=this.hitDragging.initialHit,le=this.component.context,ce=null,de=null,ue=null,me=!1,ge={affectedEvents:ie,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(te){ce=te.context;let ne=ce.options;le===ce||ne.editable&&ne.droppable?(de=function computeEventMutation(te,ne,ie){let re=te.dateSpan,le=ne.dateSpan,ce=re.range.start,de=le.range.start,ue={};re.allDay!==le.allDay&&(ue.allDay=le.allDay,ue.hasEnd=ne.context.options.allDayMaintainDuration,le.allDay&&(ce=startOfDay(ce)));let me=diffDates(ce,de,te.context.dateEnv,te.componentId===ne.componentId?te.largeUnit:null);me.milliseconds&&(ue.allDay=!1);let ge={datesDelta:me,standardProps:ue};for(let re of ie)re(ge,te,ne);return ge}(re,te,ce.getCurrentData().pluginHooks.eventDragMutationMassagers),de&&(ue=applyMutationToEventStore(ie,ce.getCurrentData().eventUiBases,de,ce),ge.mutatedEvents=ue,internal_common_isInteractionValid(ge,te.dateProfile,ce)||(me=!0,de=null,ue=null,ge.mutatedEvents={defs:{},instances:{}}))):ce=null}this.displayDrag(ce,ge),me?internal_common_disableCursor():internal_common_enableCursor(),ne||(le===ce&&isHitsEqual(re,te)&&(de=null),this.dragging.setMirrorNeedsRevert(!de),this.dragging.setMirrorIsVisible(!te||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=ce,this.validMutation=de,this.mutatedRelevantEvents=ue)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=te=>{if(this.isDragging){let ne=this.component.context,ie=ne.viewApi,{receivingContext:re,validMutation:le}=this,ce=this.eventRange.def,de=this.eventRange.instance,ue=new internal_common_EventImpl(ne,ce,de),me=this.relevantEvents,ge=this.mutatedRelevantEvents,{finalHit:fe}=this.hitDragging;if(this.clearDrag(),ne.emitter.trigger("eventDragStop",{el:this.subjectEl,event:ue,jsEvent:te.origEvent,view:ie}),le){if(re===ne){let re=new internal_common_EventImpl(ne,ge.defs[ce.defId],de?ge.instances[de.instanceId]:null);ne.dispatch({type:"MERGE_EVENTS",eventStore:ge});let fe={oldEvent:ue,event:re,relatedEvents:buildEventApis(ge,ne,de),revert(){ne.dispatch({type:"MERGE_EVENTS",eventStore:me})}},_e={};for(let te of ne.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(_e,te(le,ne));ne.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},fe),_e),{el:te.subjectEl,delta:le.datesDelta,jsEvent:te.origEvent,view:ie})),ne.emitter.trigger("eventChange",fe)}else if(re){let le={event:ue,relatedEvents:buildEventApis(me,ne,de),revert(){ne.dispatch({type:"MERGE_EVENTS",eventStore:me})}};ne.emitter.trigger("eventLeave",Object.assign(Object.assign({},le),{draggedEl:te.subjectEl,view:ie})),ne.dispatch({type:"REMOVE_EVENTS",eventStore:me}),ne.emitter.trigger("eventRemove",le);let _e=ge.defs[ce.defId],be=ge.instances[de.instanceId],Ce=new internal_common_EventImpl(re,_e,be);re.dispatch({type:"MERGE_EVENTS",eventStore:ge});let ye={event:Ce,relatedEvents:buildEventApis(ge,re,be),revert(){re.dispatch({type:"REMOVE_EVENTS",eventStore:ge})}};re.emitter.trigger("eventAdd",ye),te.isTouch&&re.dispatch({type:"SELECT_EVENT",eventInstanceId:de.instanceId}),re.emitter.trigger("drop",Object.assign(Object.assign({},buildDatePointApiWithContext(fe.dateSpan,re)),{draggedEl:te.subjectEl,jsEvent:te.origEvent,view:fe.context.viewApi})),re.emitter.trigger("eventReceive",Object.assign(Object.assign({},ye),{draggedEl:te.subjectEl,view:fe.context.viewApi}))}}else ne.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:ne}=this,{options:ie}=ne.context,re=this.dragging=new FeaturefulElementDragging(te.el);re.pointer.selector=EventDragging.SELECTOR,re.touchScrollAllowed=!1,re.autoScroller.isEnabled=ie.dragScroll;let le=this.hitDragging=new HitDragging(this.dragging,dA);le.useSubjectCenter=te.useEventCenter,le.emitter.on("pointerdown",this.handlePointerDown),le.emitter.on("dragstart",this.handleDragStart),le.emitter.on("hitupdate",this.handleHitUpdate),le.emitter.on("pointerup",this.handlePointerUp),le.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(te,ne){let ie=this.component.context,re=this.receivingContext;re&&re!==te&&(re===ie?re.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:ne.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):re.dispatch({type:"UNSET_EVENT_DRAG"})),te&&te.dispatch({type:"SET_EVENT_DRAG",state:ne})}clearDrag(){let te=this.component.context,{receivingContext:ne}=this;ne&&ne.dispatch({type:"UNSET_EVENT_DRAG"}),te!==ne&&te.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}return EventDragging.SELECTOR=".fc-event-draggable, .fc-event-resizable",EventDragging})();const tk={fixedMirrorParent:identity},lk={dateClick:identity,eventDragStart:identity,eventDragStop:identity,eventDrop:identity,eventResizeStart:identity,eventResizeStop:identity,eventResize:identity,drop:identity,eventReceive:identity,eventLeave:identity};xA.dataAttrPrefix="";var uk=createPlugin({name:"@fullcalendar/interaction",componentInteractions:[class DateClicking extends Interaction{constructor(te){super(te),this.handlePointerDown=te=>{let{dragging:ne}=this,ie=te.origEvent.target;ne.setIgnoreMove(!this.component.isValidDateDownEl(ie))},this.handleDragEnd=te=>{let{component:ne}=this,{pointer:ie}=this.dragging;if(!ie.wasTouchScroll){let{initialHit:ie,finalHit:re}=this.hitDragging;if(ie&&re&&isHitsEqual(ie,re)){let{context:re}=ne,le=Object.assign(Object.assign({},buildDatePointApiWithContext(ie.dateSpan,re)),{dayEl:ie.dayEl,jsEvent:te.origEvent,view:re.viewApi||re.calendarApi.view});re.emitter.trigger("dateClick",le)}}},this.dragging=new FeaturefulElementDragging(te.el),this.dragging.autoScroller.isEnabled=!1;let ne=this.hitDragging=new HitDragging(this.dragging,interactionSettingsToStore(te));ne.emitter.on("pointerdown",this.handlePointerDown),ne.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class DateSelecting extends Interaction{constructor(te){super(te),this.dragSelection=null,this.handlePointerDown=te=>{let{component:ne,dragging:ie}=this,{options:re}=ne.context,le=re.selectable&&ne.isValidDateDownEl(te.origEvent.target);ie.setIgnoreMove(!le),ie.delay=te.isTouch?function getComponentTouchDelay$1(te){let{options:ne}=te.context,ie=ne.selectLongPressDelay;null==ie&&(ie=ne.longPressDelay);return ie}(ne):null},this.handleDragStart=te=>{this.component.context.calendarApi.unselect(te)},this.handleHitUpdate=(te,ne)=>{let{context:ie}=this.component,re=null,le=!1;if(te){let ne=this.hitDragging.initialHit;te.componentId===ne.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(ne,te)||(re=function joinHitsIntoSelection(te,ne,ie){let re=te.dateSpan,le=ne.dateSpan,ce=[re.range.start,re.range.end,le.range.start,le.range.end];ce.sort(compareNumbers);let de={};for(let re of ie){let ie=re(te,ne);if(!1===ie)return null;ie&&Object.assign(de,ie)}return de.range={start:ce[0],end:ce[3]},de.allDay=re.allDay,de}(ne,te,ie.pluginHooks.dateSelectionTransformers)),re&&function isDateSelectionValid(te,ne,ie){return!!rangeContainsRange(ne.validRange,te.range)&&isNewPropsValid({dateSelection:te},ie)}(re,te.dateProfile,ie)||(le=!0,re=null)}re?ie.dispatch({type:"SELECT_DATES",selection:re}):ne||ie.dispatch({type:"UNSELECT_DATES"}),le?internal_common_disableCursor():internal_common_enableCursor(),ne||(this.dragSelection=re)},this.handlePointerUp=te=>{this.dragSelection&&(triggerDateSelect(this.dragSelection,te,this.component.context),this.dragSelection=null)};let{component:ne}=te,{options:ie}=ne.context,re=this.dragging=new FeaturefulElementDragging(te.el);re.touchScrollAllowed=!1,re.minDistance=ie.selectMinDistance||0,re.autoScroller.isEnabled=ie.dragScroll;let le=this.hitDragging=new HitDragging(this.dragging,interactionSettingsToStore(te));le.emitter.on("pointerdown",this.handlePointerDown),le.emitter.on("dragstart",this.handleDragStart),le.emitter.on("hitupdate",this.handleHitUpdate),le.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}},ZA,class EventResizing extends Interaction{constructor(te){super(te),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=te=>{let{component:ne}=this,ie=getElSeg(this.querySegEl(te)),re=this.eventRange=ie.eventRange;this.dragging.minDistance=ne.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(te.origEvent.target)||te.isTouch&&this.component.props.eventSelection!==re.instance.instanceId)},this.handleDragStart=te=>{let{context:ne}=this.component,ie=this.eventRange;this.relevantEvents=getRelevantEvents(ne.getCurrentData().eventStore,this.eventRange.instance.instanceId);let re=this.querySegEl(te);this.draggingSegEl=re,this.draggingSeg=getElSeg(re),ne.calendarApi.unselect(),ne.emitter.trigger("eventResizeStart",{el:re,event:new internal_common_EventImpl(ne,ie.def,ie.instance),jsEvent:te.origEvent,view:ne.viewApi})},this.handleHitUpdate=(te,ne,ie)=>{let{context:re}=this.component,le=this.relevantEvents,ce=this.hitDragging.initialHit,de=this.eventRange.instance,ue=null,me=null,ge=!1,fe={affectedEvents:le,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(te){te.componentId===ce.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(ce,te)||(ue=function computeMutation(te,ne,ie,re){let le=te.context.dateEnv,ce=te.dateSpan.range.start,de=ne.dateSpan.range.start,ue=diffDates(ce,de,le,te.largeUnit);if(ie){if(le.add(re.start,ue)<re.end)return{startDelta:ue}}else if(le.add(re.end,ue)>re.start)return{endDelta:ue};return null}(ce,te,ie.subjectEl.classList.contains("fc-event-resizer-start"),de.range))}ue&&(me=applyMutationToEventStore(le,re.getCurrentData().eventUiBases,ue,re),fe.mutatedEvents=me,internal_common_isInteractionValid(fe,te.dateProfile,re)||(ge=!0,ue=null,me=null,fe.mutatedEvents=null)),me?re.dispatch({type:"SET_EVENT_RESIZE",state:fe}):re.dispatch({type:"UNSET_EVENT_RESIZE"}),ge?internal_common_disableCursor():internal_common_enableCursor(),ne||(ue&&isHitsEqual(ce,te)&&(ue=null),this.validMutation=ue,this.mutatedRelevantEvents=me)},this.handleDragEnd=te=>{let{context:ne}=this.component,ie=this.eventRange.def,re=this.eventRange.instance,le=new internal_common_EventImpl(ne,ie,re),ce=this.relevantEvents,de=this.mutatedRelevantEvents;if(ne.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:le,jsEvent:te.origEvent,view:ne.viewApi}),this.validMutation){let ue=new internal_common_EventImpl(ne,de.defs[ie.defId],re?de.instances[re.instanceId]:null);ne.dispatch({type:"MERGE_EVENTS",eventStore:de});let me={oldEvent:le,event:ue,relatedEvents:buildEventApis(de,ne,re),revert(){ne.dispatch({type:"MERGE_EVENTS",eventStore:ce})}};ne.emitter.trigger("eventResize",Object.assign(Object.assign({},me),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||createDuration(0),endDelta:this.validMutation.endDelta||createDuration(0),jsEvent:te.origEvent,view:ne.viewApi})),ne.emitter.trigger("eventChange",me)}else ne.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:ne}=te,ie=this.dragging=new FeaturefulElementDragging(te.el);ie.pointer.selector=".fc-event-resizer",ie.touchScrollAllowed=!1,ie.autoScroller.isEnabled=ne.context.options.dragScroll;let re=this.hitDragging=new HitDragging(this.dragging,interactionSettingsToStore(te));re.emitter.on("pointerdown",this.handlePointerDown),re.emitter.on("dragstart",this.handleDragStart),re.emitter.on("hitupdate",this.handleHitUpdate),re.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(te){return elementClosest(te.subjectEl,".fc-event")}}],calendarInteractions:[class UnselectAuto{constructor(te){this.context=te,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=te=>{te.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=te=>{let ne=this.context.options.unselectCancel,ie=getEventTargetViaRoot(te.origEvent);this.matchesCancel=!!elementClosest(ie,ne),this.matchesEvent=!!elementClosest(ie,ZA.SELECTOR)},this.onDocumentPointerUp=te=>{let{context:ne}=this,{documentPointer:ie}=this,re=ne.getCurrentData();if(!ie.wasTouchScroll){if(re.dateSelection&&!this.isRecentPointerDateSelect){let ie=ne.options.unselectAuto;!ie||ie&&this.matchesCancel||ne.calendarApi.unselect(te)}re.eventSelection&&!this.matchesEvent&&ne.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let ne=this.documentPointer=new PointerDragging(document);ne.shouldIgnoreMove=!0,ne.shouldWatchScroll=!1,ne.emitter.on("pointerdown",this.onDocumentPointerDown),ne.emitter.on("pointerup",this.onDocumentPointerUp),te.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}],elementDraggingImpl:FeaturefulElementDragging,optionRefiners:tk,listenerRefiners:lk});class AllDaySplitter extends Splitter{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(te){return te.allDay?["allDay"]:["timed"]}getKeysForEventDef(te){return te.allDay?function hasBgRendering(te){return"background"===te.ui.display||"inverse-background"===te.ui.display}(te)?["timed","allDay"]:["allDay"]:["timed"]}}const gk=internal_common_createFormatter({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function TimeColsAxisCell(te){let ne=["fc-timegrid-slot","fc-timegrid-slot-label",te.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return y(Ky.Consumer,null,(ie=>{if(!te.isLabeled)return y("td",{className:ne.join(" "),"data-time":te.isoTimeStr});let{dateEnv:re,options:le,viewApi:ce}=ie,de=null==le.slotLabelFormat?gk:Array.isArray(le.slotLabelFormat)?internal_common_createFormatter(le.slotLabelFormat[0]):internal_common_createFormatter(le.slotLabelFormat),ue={level:0,time:te.time,date:re.toDate(te.date),view:ce,text:re.format(te.date,de)};return y(rw,{elTag:"td",elClasses:ne,elAttrs:{"data-time":te.isoTimeStr},renderProps:ue,generatorName:"slotLabelContent",customGenerator:le.slotLabelContent,defaultGenerator:timegrid_internal_renderInnerContent,classNameGenerator:le.slotLabelClassNames,didMount:le.slotLabelDidMount,willUnmount:le.slotLabelWillUnmount},(te=>y("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},y(te,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]}))))}))}function timegrid_internal_renderInnerContent(te){return te.text}class TimeBodyAxis extends Jy{render(){return this.props.slatMetas.map((te=>y("tr",{key:te.key},y(TimeColsAxisCell,Object.assign({},te)))))}}const bk=internal_common_createFormatter({week:"short"});class TimeColsView extends DateComponent{constructor(){super(...arguments),this.allDaySplitter=new AllDaySplitter,this.headerElRef={current:null},this.rootElRef={current:null},this.scrollerElRef={current:null},this.state={slatCoords:null},this.handleScrollTopRequest=te=>{let ne=this.scrollerElRef.current;ne&&(ne.scrollTop=te)},this.renderHeadAxis=(te,ne="")=>{let{options:ie}=this.context,{dateProfile:re}=this.props,le=re.renderRange,ce=1===diffDays(le.start,le.end)?buildNavLinkAttrs(this.context,le.start,"week"):{};return ie.weekNumbers&&"day"===te?y(WeekNumberContainer,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:le.start,defaultFormat:bk},(te=>y("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:ne}},y(te,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:ce})))):y("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},y("div",{className:"fc-timegrid-axis-frame",style:{height:ne}}))},this.renderTableRowAxis=te=>{let{options:ne,viewApi:ie}=this.context,re={text:ne.allDayText,view:ie};return y(rw,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:re,generatorName:"allDayContent",customGenerator:ne.allDayContent,defaultGenerator:renderAllDayInner,classNameGenerator:ne.allDayClassNames,didMount:ne.allDayDidMount,willUnmount:ne.allDayWillUnmount},(ne=>y("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==te?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:te}},y(ne,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]}))))},this.handleSlatCoords=te=>{this.setState({slatCoords:te})}}renderSimpleLayout(te,ne,ie){let{context:re,props:le}=this,ce=[],de=getStickyHeaderDates(re.options);return te&&ce.push({type:"header",key:"header",isSticky:de,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:te}}),ne&&(ce.push({type:"body",key:"all-day",chunk:{content:ne}}),ce.push({type:"body",key:"all-day-divider",outerContent:y("tr",{role:"presentation",className:"fc-scrollgrid-section"},y("td",{className:"fc-timegrid-divider "+re.theme.getClass("tableCellShaded")}))})),ce.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(re.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:ie}}),y(ViewContainer,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:re.viewSpec},y(SimpleScrollGrid,{liquid:!le.isHeightAuto&&!le.forPrint,collapsibleWidth:le.forPrint,cols:[{width:"shrink"}],sections:ce}))}renderHScrollLayout(te,ne,ie,re,le,ce,de){let ue=this.context.pluginHooks.scrollGridImpl;if(!ue)throw new Error("No ScrollGrid implementation");let{context:me,props:ge}=this,fe=!ge.forPrint&&getStickyHeaderDates(me.options),_e=!ge.forPrint&&getStickyFooterScrollbar(me.options),be=[];te&&be.push({type:"header",key:"header",isSticky:fe,syncRowHeights:!0,chunks:[{key:"axis",rowContent:te=>y("tr",{role:"presentation"},this.renderHeadAxis("day",te.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:te}]}),ne&&(be.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:te=>y("tr",{role:"presentation"},this.renderTableRowAxis(te.rowSyncHeights[0]))},{key:"cols",content:ne}]}),be.push({key:"all-day-divider",type:"body",outerContent:y("tr",{role:"presentation",className:"fc-scrollgrid-section"},y("td",{colSpan:2,className:"fc-timegrid-divider "+me.theme.getClass("tableCellShaded")}))}));let Ce=me.options.nowIndicator;return be.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(me.options.expandRows),chunks:[{key:"axis",content:te=>y("div",{className:"fc-timegrid-axis-chunk"},y("table",{"aria-hidden":!0,style:{height:te.expandRows?te.clientHeight:""}},te.tableColGroupNode,y("tbody",null,y(TimeBodyAxis,{slatMetas:ce}))),y("div",{className:"fc-timegrid-now-indicator-container"},y(PA,{unit:Ce?"minute":"day"},(te=>{let ne=Ce&&de&&de.safeComputeTop(te);return"number"==typeof ne?y(NowIndicatorContainer,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:ne},isAxis:!0,date:te}):null}))))},{key:"cols",scrollerElRef:this.scrollerElRef,content:ie}]}),_e&&be.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:renderScrollShim},{key:"cols",content:renderScrollShim}]}),y(ViewContainer,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:me.viewSpec},y(ue,{liquid:!ge.isHeightAuto&&!ge.forPrint,forPrint:ge.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:re,minWidth:le}]}],sections:be}))}getAllDayMaxEventProps(){let{dayMaxEvents:te,dayMaxEventRows:ne}=this.context.options;return!0!==te&&!0!==ne||(te=void 0,ne=5),{dayMaxEvents:te,dayMaxEventRows:ne}}}function renderAllDayInner(te){return te.text}class TimeColsSlatsCoords{constructor(te,ne,ie){this.positions=te,this.dateProfile=ne,this.slotDuration=ie}safeComputeTop(te){let{dateProfile:ne}=this;if(rangeContainsMarker(ne.currentRange,te)){let ie=startOfDay(te),re=te.valueOf()-ie.valueOf();if(re>=asRoughMs(ne.slotMinTime)&&re<asRoughMs(ne.slotMaxTime))return this.computeTimeTop(createDuration(re))}return null}computeDateTop(te,ne){return ne||(ne=startOfDay(te)),this.computeTimeTop(createDuration(te.valueOf()-ne.valueOf()))}computeTimeTop(te){let ne,ie,{positions:re,dateProfile:le}=this,ce=re.els.length,de=(te.milliseconds-asRoughMs(le.slotMinTime))/asRoughMs(this.slotDuration);return de=Math.max(0,de),de=Math.min(ce,de),ne=Math.floor(de),ne=Math.min(ne,ce-1),ie=de-ne,re.tops[ne]+re.getHeight(ne)*ie}}class TimeColsSlatsBody extends Jy{render(){let{props:te,context:ne}=this,{options:ie}=ne,{slatElRefs:re}=te;return y("tbody",null,te.slatMetas.map(((le,ce)=>{let de={time:le.time,date:ne.dateEnv.toDate(le.date),view:ne.viewApi};return y("tr",{key:le.key,ref:re.createRef(le.key)},te.axis&&y(TimeColsAxisCell,Object.assign({},le)),y(rw,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!le.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":le.isoTimeStr},renderProps:de,generatorName:"slotLaneContent",customGenerator:ie.slotLaneContent,classNameGenerator:ie.slotLaneClassNames,didMount:ie.slotLaneDidMount,willUnmount:ie.slotLaneWillUnmount}))})))}}class TimeColsSlats extends Jy{constructor(){super(...arguments),this.rootElRef={current:null},this.slatElRefs=new RefMap}render(){let{props:te,context:ne}=this;return y("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},y("table",{"aria-hidden":!0,className:ne.theme.getClass("table"),style:{minWidth:te.tableMinWidth,width:te.clientWidth,height:te.minHeight}},te.tableColGroupNode,y(TimeColsSlatsBody,{slatElRefs:this.slatElRefs,axis:te.axis,slatMetas:te.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:te,props:ne}=this;if(ne.onCoords&&null!==ne.clientWidth){this.rootElRef.current.offsetHeight&&ne.onCoords(new TimeColsSlatsCoords(new PositionCache(this.rootElRef.current,function collectSlatEls(te,ne){return ne.map((ne=>te[ne.key]))}(this.slatElRefs.currentMap,ne.slatMetas),!1,!0),this.props.dateProfile,te.options.slotDuration))}}}function splitSegsByCol(te,ne){let ie,re=[];for(ie=0;ie<ne;ie+=1)re.push([]);if(te)for(ie=0;ie<te.length;ie+=1)re[te[ie].col].push(te[ie]);return re}function splitInteractionByCol(te,ne){let ie=[];if(te){for(let re=0;re<ne;re+=1)ie[re]={affectedInstances:te.affectedInstances,isEvent:te.isEvent,segs:[]};for(let ne of te.segs)ie[ne.col].segs.push(ne)}else for(let te=0;te<ne;te+=1)ie[te]=null;return ie}class TimeColMoreLink extends Jy{render(){let{props:te}=this;return y(MoreLinkContainer,{elClasses:["fc-timegrid-more-link"],elStyle:{top:te.top,bottom:te.bottom},allDayDate:null,moreCnt:te.hiddenSegs.length,allSegs:te.hiddenSegs,hiddenSegs:te.hiddenSegs,extraDateSpan:te.extraDateSpan,dateProfile:te.dateProfile,todayRange:te.todayRange,popoverContent:()=>renderPlainFgSegs(te.hiddenSegs,te),defaultGenerator:internal_renderMoreLinkInner,forceTimed:!0},(te=>y(te,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]})))}}function internal_renderMoreLinkInner(te){return te.shortText}function buildPositioning(te,ne,ie){let re=new SegHierarchy;null!=ne&&(re.strictOrder=ne),null!=ie&&(re.maxStackCnt=ie);let le=function groupIntersectingEntries(te){let ne=[];for(let le of te){let te=[],ce={span:le.span,entries:[le]};for(let le of ne)intersectSpans(le.span,ce.span)?ce={entries:le.entries.concat(ce.entries),span:(ie=le.span,re=ce.span,{start:Math.min(ie.start,re.start),end:Math.max(ie.end,re.end)})}:te.push(le);te.push(ce),ne=te}var ie,re;return ne}(re.addSegs(te)),ce=function buildWeb(te){const{entriesByLevel:ne}=te,ie=cacheable(((te,ne)=>te+":"+ne),((re,le)=>{let ce=function findNextLevelSegs(te,ne,ie){let{levelCoords:re,entriesByLevel:le}=te,ce=le[ne][ie],de=re[ne]+ce.thickness,ue=re.length,me=ne;for(;me<ue&&re[me]<de;me+=1);for(;me<ue;me+=1){let te,ne=le[me],ie=binarySearch(ne,ce.span.start,getEntrySpanEnd),re=ie[0]+ie[1],de=re;for(;(te=ne[de])&&te.span.start<ce.span.end;)de+=1;if(re<de)return{level:me,lateralStart:re,lateralEnd:de}}return null}(te,re,le),de=buildNodes(ce,ie),ue=ne[re][le];return[Object.assign(Object.assign({},ue),{nextLevelNodes:de[0]}),ue.thickness+de[1]]}));return buildNodes(ne.length?{level:0,lateralStart:0,lateralEnd:ne[0].length}:null,ie)[0]}(re);return ce=function stretchWeb(te,ne){const ie=cacheable(((te,ne,ie)=>buildEntryKey(te)),((te,re,le)=>{let ce,{nextLevelNodes:de,thickness:ue}=te,me=ue+le,ge=ue/me,fe=[];if(de.length)for(let te of de)if(void 0===ce){let ne=ie(te,re,me);ce=ne[0],fe.push(ne[1])}else{let ne=ie(te,ce,0);fe.push(ne[1])}else ce=ne;let _e=(ce-re)*ge;return[ce-_e,Object.assign(Object.assign({},te),{thickness:_e,nextLevelNodes:fe})]}));return te.map((te=>ie(te,0,0)[1]))}(ce,1),{segRects:function webToRects(te){let ne=[];const ie=cacheable(((te,ne,ie)=>buildEntryKey(te)),((te,ie,re)=>{let le=Object.assign(Object.assign({},te),{levelCoord:ie,stackDepth:re,stackForward:0});return ne.push(le),le.stackForward=processNodes(te.nextLevelNodes,ie+te.thickness,re+1)+1}));function processNodes(te,ne,re){let le=0;for(let ce of te)le=Math.max(ie(ce,ne,re),le);return le}return processNodes(te,0,0),ne}(ce),hiddenGroups:le}}function buildNodes(te,ne){if(!te)return[[],0];let{level:ie,lateralStart:re,lateralEnd:le}=te,ce=re,de=[];for(;ce<le;)de.push(ne(ie,ce)),ce+=1;return de.sort(cmpDescPressures),[de.map(extractNode),de[0][1]]}function cmpDescPressures(te,ne){return ne[1]-te[1]}function extractNode(te){return te[0]}function cacheable(te,ne){const ie={};return(...re)=>{let le=te(...re);return le in ie?ie[le]:ie[le]=ne(...re)}}function computeSegVCoords(te,ne,ie=null,re=0){let le=[];if(ie)for(let ce=0;ce<te.length;ce+=1){let de=te[ce],ue=ie.computeDateTop(de.start,ne),me=Math.max(ue+(re||0),ie.computeDateTop(de.end,ne));le.push({start:Math.round(ue),end:Math.round(me)})}return le}const Ck=internal_common_createFormatter({hour:"numeric",minute:"2-digit",meridiem:!1});class TimeColEvent extends Jy{render(){return y(StandardEvent,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Ck}))}}class TimeCol extends Jy{constructor(){super(...arguments),this.sortEventSegs=memoize(sortEventSegs)}render(){let{props:te,context:ne}=this,{options:ie}=ne,re=ie.selectMirror,le=te.eventDrag&&te.eventDrag.segs||te.eventResize&&te.eventResize.segs||re&&te.dateSelectionSegs||[],ce=te.eventDrag&&te.eventDrag.affectedInstances||te.eventResize&&te.eventResize.affectedInstances||{},de=this.sortEventSegs(te.fgEventSegs,ie.eventOrder);return y(DayCellContainer,{elTag:"td",elRef:te.elRef,elClasses:["fc-timegrid-col",...te.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},te.extraDataAttrs),date:te.date,dateProfile:te.dateProfile,todayRange:te.todayRange,extraRenderProps:te.extraRenderProps},(ne=>y("div",{className:"fc-timegrid-col-frame"},y("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(te.businessHourSegs,"non-business"),this.renderFillSegs(te.bgEventSegs,"bg-event"),this.renderFillSegs(te.dateSelectionSegs,"highlight")),y("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(de,ce,!1,!1,!1)),y("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(le,{},Boolean(te.eventDrag),Boolean(te.eventResize),Boolean(re),"mirror")),y("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(te.nowIndicatorSegs)),hasCustomDayCellContent(ie)&&y(ne,{elTag:"div",elClasses:["fc-timegrid-col-misc"]}))))}renderFgSegs(te,ne,ie,re,le,ce){let{props:de}=this;return de.forPrint?renderPlainFgSegs(te,de):this.renderPositionedFgSegs(te,ne,ie,re,le,ce)}renderPositionedFgSegs(te,ne,ie,re,le,ce){let{eventMaxStack:de,eventShortHeight:ue,eventOrderStrict:me,eventMinHeight:ge}=this.context.options,{date:fe,slatCoords:_e,eventSelection:be,todayRange:Ce,nowDate:ye}=this.props,we=ie||re||le,ke=computeSegVCoords(te,fe,_e,ge),{segPlacements:Se,hiddenGroups:xe}=function computeFgSegPlacements(te,ne,ie,re){let le=[],ce=[];for(let ie=0;ie<te.length;ie+=1){let re=ne[ie];re?le.push({index:ie,thickness:1,span:re}):ce.push(te[ie])}let{segRects:de,hiddenGroups:ue}=buildPositioning(le,ie,re),me=[];for(let ne of de)me.push({seg:te[ne.index],rect:ne});for(let te of ce)me.push({seg:te,rect:null});return{segPlacements:me,hiddenGroups:ue}}(te,ke,me,de);return y(_,null,this.renderHiddenGroups(xe,te),Se.map((te=>{let{seg:de,rect:me}=te,ge=de.eventRange.instance.instanceId,fe=we||Boolean(!ne[ge]&&me),_e=computeSegVStyle(me&&me.span),ke=!we&&me?this.computeSegHStyle(me):{left:0,right:0},Se=Boolean(me)&&me.stackForward>0,xe=Boolean(me)&&me.span.end-me.span.start<ue;return y("div",{className:"fc-timegrid-event-harness"+(Se?" fc-timegrid-event-harness-inset":""),key:ce||ge,style:Object.assign(Object.assign({visibility:fe?"":"hidden"},_e),ke)},y(TimeColEvent,Object.assign({seg:de,isDragging:ie,isResizing:re,isDateSelecting:le,isSelected:ge===be,isShort:xe},getSegMeta(de,Ce,ye))))})))}renderHiddenGroups(te,ne){let{extraDateSpan:ie,dateProfile:re,todayRange:le,nowDate:ce,eventSelection:de,eventDrag:ue,eventResize:me}=this.props;return y(_,null,te.map((te=>{let ge=computeSegVStyle(te.span),fe=function compileSegsFromEntries(te,ne){return te.map((te=>ne[te.index]))}(te.entries,ne);return y(TimeColMoreLink,{key:buildIsoString(computeEarliestSegStart(fe)),hiddenSegs:fe,top:ge.top,bottom:ge.bottom,extraDateSpan:ie,dateProfile:re,todayRange:le,nowDate:ce,eventSelection:de,eventDrag:ue,eventResize:me})})))}renderFillSegs(te,ne){let{props:ie,context:re}=this,le=computeSegVCoords(te,ie.date,ie.slatCoords,re.options.eventMinHeight).map(((re,le)=>{let ce=te[le];return y("div",{key:buildEventRangeKey(ce.eventRange),className:"fc-timegrid-bg-harness",style:computeSegVStyle(re)},"bg-event"===ne?y(BgEvent,Object.assign({seg:ce},getSegMeta(ce,ie.todayRange,ie.nowDate))):renderFill(ne))}));return y(_,null,le)}renderNowIndicator(te){let{slatCoords:ne,date:ie}=this.props;return ne?te.map(((te,re)=>y(NowIndicatorContainer,{key:re,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:ne.computeDateTop(te.start,ie)},isAxis:!1,date:ie}))):null}computeSegHStyle(te){let ne,ie,{isRtl:re,options:le}=this.context,ce=le.slotEventOverlap,de=te.levelCoord,ue=te.levelCoord+te.thickness;ce&&(ue=Math.min(1,de+2*(ue-de))),re?(ne=1-ue,ie=de):(ne=de,ie=1-ue);let me={zIndex:te.stackDepth+1,left:100*ne+"%",right:100*ie+"%"};return ce&&!te.stackForward&&(me[re?"marginLeft":"marginRight"]=20),me}}function renderPlainFgSegs(te,{todayRange:ne,nowDate:ie,eventSelection:re,eventDrag:le,eventResize:ce}){let de=(le?le.affectedInstances:null)||(ce?ce.affectedInstances:null)||{};return y(_,null,te.map((te=>{let le=te.eventRange.instance.instanceId;return y("div",{key:le,style:{visibility:de[le]?"hidden":""}},y(TimeColEvent,Object.assign({seg:te,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:le===re,isShort:!1},getSegMeta(te,ne,ie))))})))}function computeSegVStyle(te){return te?{top:te.start,bottom:-te.end}:{top:"",bottom:""}}class TimeColsContent extends Jy{constructor(){super(...arguments),this.splitFgEventSegs=memoize(splitSegsByCol),this.splitBgEventSegs=memoize(splitSegsByCol),this.splitBusinessHourSegs=memoize(splitSegsByCol),this.splitNowIndicatorSegs=memoize(splitSegsByCol),this.splitDateSelectionSegs=memoize(splitSegsByCol),this.splitEventDrag=memoize(splitInteractionByCol),this.splitEventResize=memoize(splitInteractionByCol),this.rootElRef={current:null},this.cellElRefs=new RefMap}render(){let{props:te,context:ne}=this,ie=ne.options.nowIndicator&&te.slatCoords&&te.slatCoords.safeComputeTop(te.nowDate),re=te.cells.length,le=this.splitFgEventSegs(te.fgEventSegs,re),ce=this.splitBgEventSegs(te.bgEventSegs,re),de=this.splitBusinessHourSegs(te.businessHourSegs,re),ue=this.splitNowIndicatorSegs(te.nowIndicatorSegs,re),me=this.splitDateSelectionSegs(te.dateSelectionSegs,re),ge=this.splitEventDrag(te.eventDrag,re),fe=this.splitEventResize(te.eventResize,re);return y("div",{className:"fc-timegrid-cols",ref:this.rootElRef},y("table",{role:"presentation",style:{minWidth:te.tableMinWidth,width:te.clientWidth}},te.tableColGroupNode,y("tbody",{role:"presentation"},y("tr",{role:"row"},te.axis&&y("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},y("div",{className:"fc-timegrid-col-frame"},y("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof ie&&y(NowIndicatorContainer,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:ie},isAxis:!0,date:te.nowDate})))),te.cells.map(((ne,ie)=>y(TimeCol,{key:ne.key,elRef:this.cellElRefs.createRef(ne.key),dateProfile:te.dateProfile,date:ne.date,nowDate:te.nowDate,todayRange:te.todayRange,extraRenderProps:ne.extraRenderProps,extraDataAttrs:ne.extraDataAttrs,extraClassNames:ne.extraClassNames,extraDateSpan:ne.extraDateSpan,fgEventSegs:le[ie],bgEventSegs:ce[ie],businessHourSegs:de[ie],nowIndicatorSegs:ue[ie],dateSelectionSegs:me[ie],eventDrag:ge[ie],eventResize:fe[ie],slatCoords:te.slatCoords,eventSelection:te.eventSelection,forPrint:te.forPrint})))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:te}=this;te.onColCoords&&null!==te.clientWidth&&te.onColCoords(new PositionCache(this.rootElRef.current,function collectCellEls(te,ne){return ne.map((ne=>te[ne.key]))}(this.cellElRefs.currentMap,te.cells),!0,!1))}}class TimeCols extends DateComponent{constructor(){super(...arguments),this.processSlotOptions=memoize(processSlotOptions),this.state={slatCoords:null},this.handleRootEl=te=>{te?this.context.registerInteractiveComponent(this,{el:te,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=te=>{let{onScrollTopRequest:ne}=this.props,{slatCoords:ie}=this.state;if(ne&&ie){if(te.time){let re=ie.computeTimeTop(te.time);re=Math.ceil(re),re&&(re+=1),ne(re)}return!0}return!1},this.handleColCoords=te=>{this.colCoords=te},this.handleSlatCoords=te=>{this.setState({slatCoords:te}),this.props.onSlatCoords&&this.props.onSlatCoords(te)}}render(){let{props:te,state:ne}=this;return y("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:te.clientWidth,minWidth:te.tableMinWidth}},y(TimeColsSlats,{axis:te.axis,dateProfile:te.dateProfile,slatMetas:te.slatMetas,clientWidth:te.clientWidth,minHeight:te.expandRows?te.clientHeight:"",tableMinWidth:te.tableMinWidth,tableColGroupNode:te.axis?te.tableColGroupNode:null,onCoords:this.handleSlatCoords}),y(TimeColsContent,{cells:te.cells,axis:te.axis,dateProfile:te.dateProfile,businessHourSegs:te.businessHourSegs,bgEventSegs:te.bgEventSegs,fgEventSegs:te.fgEventSegs,dateSelectionSegs:te.dateSelectionSegs,eventSelection:te.eventSelection,eventDrag:te.eventDrag,eventResize:te.eventResize,todayRange:te.todayRange,nowDate:te.nowDate,nowIndicatorSegs:te.nowIndicatorSegs,clientWidth:te.clientWidth,tableMinWidth:te.tableMinWidth,tableColGroupNode:te.tableColGroupNode,slatCoords:ne.slatCoords,onColCoords:this.handleColCoords,forPrint:te.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(te){this.scrollResponder.update(te.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(te,ne){let{dateEnv:ie,options:re}=this.context,{colCoords:le}=this,{dateProfile:ce}=this.props,{slatCoords:de}=this.state,{snapDuration:ue,snapsPerSlot:me}=this.processSlotOptions(this.props.slotDuration,re.snapDuration),ge=le.leftToIndex(te),fe=de.positions.topToIndex(ne);if(null!=ge&&null!=fe){let te=this.props.cells[ge],re=de.positions.tops[fe],_e=de.positions.getHeight(fe),be=(ne-re)/_e,Ce=fe*me+Math.floor(be*me),ye=this.props.cells[ge].date,we=addDurations(ce.slotMinTime,function multiplyDuration(te,ne){return{years:te.years*ne,months:te.months*ne,days:te.days*ne,milliseconds:te.milliseconds*ne}}(ue,Ce)),ke=ie.add(ye,we),Se=ie.add(ke,ue);return{dateProfile:ce,dateSpan:Object.assign({range:{start:ke,end:Se},allDay:!1},te.extraDateSpan),dayEl:le.els[ge],rect:{left:le.lefts[ge],right:le.rights[ge],top:re,bottom:re+_e},layer:0}}return null}}function processSlotOptions(te,ne){let ie=ne||te,re=wholeDivideDurations(te,ie);return null===re&&(ie=te,re=1),{snapDuration:ie,snapsPerSlot:re}}class DayTimeColsSlicer extends Slicer{sliceRange(te,ne){let ie=[];for(let re=0;re<ne.length;re+=1){let le=intersectRanges(te,ne[re]);le&&ie.push({start:le.start,end:le.end,isStart:le.start.valueOf()===te.start.valueOf(),isEnd:le.end.valueOf()===te.end.valueOf(),col:re})}return ie}}class DayTimeCols extends DateComponent{constructor(){super(...arguments),this.buildDayRanges=memoize(buildDayRanges),this.slicer=new DayTimeColsSlicer,this.timeColsRef={current:null}}render(){let{props:te,context:ne}=this,{dateProfile:ie,dayTableModel:re}=te,{nowIndicator:le,nextDayThreshold:ce}=ne.options,de=this.buildDayRanges(re,ie,ne.dateEnv);return y(PA,{unit:le?"minute":"day"},((ue,me)=>y(TimeCols,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(te,ie,null,ne,de),{forPrint:te.forPrint,axis:te.axis,dateProfile:ie,slatMetas:te.slatMetas,slotDuration:te.slotDuration,cells:re.cells[0],tableColGroupNode:te.tableColGroupNode,tableMinWidth:te.tableMinWidth,clientWidth:te.clientWidth,clientHeight:te.clientHeight,expandRows:te.expandRows,nowDate:ue,nowIndicatorSegs:le&&this.slicer.sliceNowDate(ue,ie,ce,ne,de),todayRange:me,onScrollTopRequest:te.onScrollTopRequest,onSlatCoords:te.onSlatCoords}))))}}function buildDayRanges(te,ne,ie){let re=[];for(let le of te.headerDates)re.push({start:ie.add(le,ne.slotMinTime),end:ie.add(le,ne.slotMaxTime)});return re}const yk=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function buildSlatMetas(te,ne,ie,re,le){let ce=new Date(0),de=te,ue=createDuration(0),me=ie||function computeLabelInterval(te){let ne,ie,re;for(ne=yk.length-1;ne>=0;ne-=1)if(ie=createDuration(yk[ne]),re=wholeDivideDurations(ie,te),null!==re&&re>1)return ie;return te}(re),ge=[];for(;asRoughMs(de)<asRoughMs(ne);){let te=le.add(ce,de),ne=null!==wholeDivideDurations(ue,me);ge.push({date:te,time:de,key:te.toISOString(),isoTimeStr:(fe=te,padStart(fe.getUTCHours(),2)+":"+padStart(fe.getUTCMinutes(),2)+":"+padStart(fe.getUTCSeconds(),2)),isLabeled:ne}),de=addDurations(de,re),ue=addDurations(ue,re)}var fe;return ge}function buildTimeColsModel(te,ne){let ie=new DaySeriesModel(te.renderRange,ne);return new DayTableModel(ie,!1)}injectStyles('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var Ik=createPlugin({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:class DayTimeColsView extends TimeColsView{constructor(){super(...arguments),this.buildTimeColsModel=memoize(buildTimeColsModel),this.buildSlatMetas=memoize(buildSlatMetas)}render(){let{options:te,dateEnv:ne,dateProfileGenerator:ie}=this.context,{props:re}=this,{dateProfile:le}=re,ce=this.buildTimeColsModel(le,ie),de=this.allDaySplitter.splitProps(re),ue=this.buildSlatMetas(le.slotMinTime,le.slotMaxTime,te.slotLabelInterval,te.slotDuration,ne),{dayMinWidth:me}=te,ge=!me,fe=me,_e=te.dayHeaders&&y(DayHeader,{dates:ce.headerDates,dateProfile:le,datesRepDistinctDays:!0,renderIntro:ge?this.renderHeadAxis:null}),be=!1!==te.allDaySlot&&(ne=>y(DayTable,Object.assign({},de.allDay,{dateProfile:le,dayTableModel:ce,nextDayThreshold:te.nextDayThreshold,tableMinWidth:ne.tableMinWidth,colGroupNode:ne.tableColGroupNode,renderRowIntro:ge?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:ne.clientWidth,clientHeight:ne.clientHeight,forPrint:re.forPrint},this.getAllDayMaxEventProps()))),timeGridContent=ne=>y(DayTimeCols,Object.assign({},de.timed,{dayTableModel:ce,dateProfile:le,axis:ge,slotDuration:te.slotDuration,slatMetas:ue,forPrint:re.forPrint,tableColGroupNode:ne.tableColGroupNode,tableMinWidth:ne.tableMinWidth,clientWidth:ne.clientWidth,clientHeight:ne.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:ne.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return fe?this.renderHScrollLayout(_e,be,timeGridContent,ce.colCnt,me,ue,this.state.slatCoords):this.renderSimpleLayout(_e,be,timeGridContent)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),Ek=ie(344);const Rk=["*"],Lk=["rootEl"],fullcalendar_angular_c2=te=>({$implicit:te});function TransportContainerComponent_ng_template_0_Template(te,ne){if(1&te&&(fe.j41(0,"div",1,2),fe.eu8(2,3),fe.k0s()),2&te){const te=fe.XpG();fe.Y8G("ngClass",te.elClasses||"")("ngStyle",te.elStyle||null),fe.R7$(2),fe.Y8G("ngTemplateOutlet",te.template)("ngTemplateOutletContext",fe.eq3(4,fullcalendar_angular_c2,te.renderProps))}}function TransportContainerComponent_ng_template_1_Template(te,ne){if(1&te&&(fe.j41(0,"span",1,2),fe.eu8(2,3),fe.k0s()),2&te){const te=fe.XpG();fe.Y8G("ngClass",te.elClasses||"")("ngStyle",te.elStyle||null),fe.R7$(2),fe.Y8G("ngTemplateOutlet",te.template)("ngTemplateOutletContext",fe.eq3(4,fullcalendar_angular_c2,te.renderProps))}}function TransportContainerComponent_ng_template_2_Template(te,ne){if(1&te&&(fe.j41(0,"a",1,2),fe.eu8(2,3),fe.k0s()),2&te){const te=fe.XpG();fe.Y8G("ngClass",te.elClasses||"")("ngStyle",te.elStyle||null),fe.R7$(2),fe.Y8G("ngTemplateOutlet",te.template)("ngTemplateOutletContext",fe.eq3(4,fullcalendar_angular_c2,te.renderProps))}}function TransportContainerComponent_ng_template_3_Template(te,ne){if(1&te&&(fe.j41(0,"tr",1,2),fe.eu8(2,3),fe.k0s()),2&te){const te=fe.XpG();fe.Y8G("ngClass",te.elClasses||"")("ngStyle",te.elStyle||null),fe.R7$(2),fe.Y8G("ngTemplateOutlet",te.template)("ngTemplateOutletContext",fe.eq3(4,fullcalendar_angular_c2,te.renderProps))}}function TransportContainerComponent_ng_template_4_Template(te,ne){if(1&te&&(fe.j41(0,"th",1,2),fe.eu8(2,3),fe.k0s()),2&te){const te=fe.XpG();fe.Y8G("ngClass",te.elClasses||"")("ngStyle",te.elStyle||null),fe.R7$(2),fe.Y8G("ngTemplateOutlet",te.template)("ngTemplateOutletContext",fe.eq3(4,fullcalendar_angular_c2,te.renderProps))}}function TransportContainerComponent_ng_template_5_Template(te,ne){if(1&te&&(fe.j41(0,"td",1,2),fe.eu8(2,3),fe.k0s()),2&te){const te=fe.XpG();fe.Y8G("ngClass",te.elClasses||"")("ngStyle",te.elStyle||null),fe.R7$(2),fe.Y8G("ngTemplateOutlet",te.template)("ngTemplateOutletContext",fe.eq3(4,fullcalendar_angular_c2,te.renderProps))}}const Ok=["dayHeaderContent"],Pk=["dayCellContent"],Vk=["weekNumberContent"],nI=["nowIndicatorContent"],iI=["eventContent"],oI=["slotLaneContent"],aI=["slotLabelContent"],cI=["allDayContent"],dI=["moreLinkContent"],pI=["noEventsContent"],gI=["resourceAreaHeaderContent"],_I=["resourceGroupLabelContent"],bI=["resourceLabelContent"],CI=["resourceLaneContent"],vI=["resourceGroupLaneContent"];function FullCalendarComponent_transport_container_1_Template(te,ne){if(1&te&&fe.nrm(0,"transport-container",1),2&te){const te=ne.$implicit,ie=fe.XpG();fe.Y8G("inPlaceOf",te.containerEl)("reportEl",te.reportNewContainerEl)("elTag",te.elTag)("elClasses",te.elClasses)("elStyle",te.elStyle)("elAttrs",te.elAttrs)("template",ie.templateMap[te.generatorName])("renderProps",te.renderProps)}}const yI={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},wI=["events","eventSources","resources"],AI=Object.prototype.hasOwnProperty;function deepCopy(te){return Array.isArray(te)?te.map(deepCopy):te instanceof Date?new Date(te.valueOf()):"object"==typeof te&&te?fullcalendar_angular_mapHash(te,deepCopy):te}function fullcalendar_angular_mapHash(te,ne){const ie={};for(const re in te)AI.call(te,re)&&(ie[re]=ne(te[re],re));return ie}function deepEqual(te,ne){if(te===ne)return!0;if(te&&ne&&"object"==typeof te&&"object"==typeof ne){if(te.constructor!==ne.constructor)return!1;var ie,re,le;if(Array.isArray(te)){if((ie=te.length)!=ne.length)return!1;for(re=ie;0!=re--;)if(!deepEqual(te[re],ne[re]))return!1;return!0}if(te.constructor===RegExp)return te.source===ne.source&&te.flags===ne.flags;if(te.valueOf!==Object.prototype.valueOf)return te.valueOf()===ne.valueOf();if(te.toString!==Object.prototype.toString)return te.toString()===ne.toString();if((ie=(le=Object.keys(te)).length)!==Object.keys(ne).length)return!1;for(re=ie;0!=re--;)if(!Object.prototype.hasOwnProperty.call(ne,le[re]))return!1;for(re=ie;0!=re--;){var ce=le[re];if(!deepEqual(te[ce],ne[ce]))return!1}return!0}return te!=te&&ne!=ne}const kI="undefined"!=typeof document?document.createDocumentFragment():null;let II=(()=>{class OffscreenFragmentComponent{constructor(te){this.element=te}ngAfterViewInit(){kI&&kI.appendChild(this.element.nativeElement)}ngOnDestroy(){kI&&kI.removeChild(this.element.nativeElement)}}return OffscreenFragmentComponent.ɵfac=function OffscreenFragmentComponent_Factory(te){return new(te||OffscreenFragmentComponent)(fe.rXU(fe.aKT))},OffscreenFragmentComponent.ɵcmp=fe.VBU({type:OffscreenFragmentComponent,selectors:[["offscreen-fragment"]],ngContentSelectors:Rk,decls:1,vars:0,template:function OffscreenFragmentComponent_Template(te,ne){1&te&&(fe.NAR(),fe.SdG(0))},encapsulation:2}),OffscreenFragmentComponent})();const SI="undefined"!=typeof document?document.createDocumentFragment():null;let TI=(()=>{class TransportContainerComponent{ngAfterViewInit(){const te=this.rootElRef?.nativeElement;replaceEl(te,this.inPlaceOf),applyElAttrs(te,void 0,this.elAttrs),this.inPlaceOf.style.display="none",this.reportEl(te)}ngOnChanges(te){const ne=this.rootElRef?.nativeElement;if(ne)if(this.inPlaceOf.parentNode!==SI)replaceEl(ne,this.inPlaceOf),applyElAttrs(ne,void 0,this.elAttrs),this.reportEl(ne);else{const ie=te.elAttrs;ie&&applyElAttrs(ne,ie.previousValue,ie.currentValue)}}ngOnDestroy(){this.inPlaceOf.parentNode===SI&&SI&&SI.removeChild(this.inPlaceOf),this.reportEl(null)}}return TransportContainerComponent.ɵfac=function TransportContainerComponent_Factory(te){return new(te||TransportContainerComponent)},TransportContainerComponent.ɵcmp=fe.VBU({type:TransportContainerComponent,selectors:[["transport-container"]],viewQuery:function TransportContainerComponent_Query(te,ne){if(1&te&&fe.GBs(Lk,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.rootElRef=te.first)}},inputs:{inPlaceOf:"inPlaceOf",reportEl:"reportEl",elTag:"elTag",elClasses:"elClasses",elStyle:"elStyle",elAttrs:"elAttrs",template:"template",renderProps:"renderProps"},features:[fe.OA$],decls:6,vars:6,consts:[[3,"ngIf"],[3,"ngClass","ngStyle"],["rootEl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function TransportContainerComponent_Template(te,ne){1&te&&fe.DNE(0,TransportContainerComponent_ng_template_0_Template,3,6,"ng-template",0)(1,TransportContainerComponent_ng_template_1_Template,3,6,"ng-template",0)(2,TransportContainerComponent_ng_template_2_Template,3,6,"ng-template",0)(3,TransportContainerComponent_ng_template_3_Template,3,6,"ng-template",0)(4,TransportContainerComponent_ng_template_4_Template,3,6,"ng-template",0)(5,TransportContainerComponent_ng_template_5_Template,3,6,"ng-template",0),2&te&&(fe.Y8G("ngIf","div"==ne.elTag),fe.R7$(),fe.Y8G("ngIf","span"==ne.elTag),fe.R7$(),fe.Y8G("ngIf","a"==ne.elTag),fe.R7$(),fe.Y8G("ngIf","tr"==ne.elTag),fe.R7$(),fe.Y8G("ngIf","th"==ne.elTag),fe.R7$(),fe.Y8G("ngIf","td"==ne.elTag))},dependencies:[de.bT,de.YU,de.B3,de.T3],encapsulation:2}),TransportContainerComponent})();function replaceEl(te,ne){ne.parentNode?.insertBefore(te,ne.nextSibling),SI&&SI.appendChild(ne)}function applyElAttrs(te,ne={},ie={}){for(const re in ne)re in ie||(te[re]=null);for(const ne in ie)te[ne]=ie[ne]}let DI=(()=>{class FullCalendarComponent{constructor(te,ne){this.element=te,this.calendar=null,this.optionSnapshot={},this.customRenderingMap=new Map,this.templateMap={};const ie=new CustomRenderingStore;ie.subscribe((te=>{this.customRenderingMap=te,this.customRenderingArray=void 0,ne.detectChanges()})),this.handleCustomRendering=ie.handle.bind(ie),this.templateMap=this}ngAfterViewInit(){const{deepChangeDetection:te}=this,ne={...this.options,...this.buildInputOptions()};this.optionSnapshot=fullcalendar_angular_mapHash(ne,((ne,ie)=>te&&yI[ie]?deepCopy(ne):ne));const ie=this.element.nativeElement,re=this.calendar=new Calendar(ie,{...ne,...this.buildExtraOptions()}),le=ie.closest("ion-content");le&&le.componentOnReady?le.componentOnReady().then((()=>{window.requestAnimationFrame((()=>{re.render()}))})):re.render()}ngDoCheck(){if(this.calendar){const{deepChangeDetection:te,optionSnapshot:ne}=this,ie={...this.options,...this.buildInputOptions()},re={},le=[];for(const ce in ie)if(ie.hasOwnProperty(ce)){let de=ie[ce];te&&yI[ce]?deepEqual(ne[ce],de)||(ne[ce]=deepCopy(de),le.push(ce)):ne[ce]!==de&&(ne[ce]=de,le.push(ce)),re[ce]=de}const ce=Object.keys(ne);for(const te of ce)te in ie||(delete ne[te],le.push(te));le.length&&(this.calendar.pauseRendering(),this.calendar.resetOptions({...re,...this.buildExtraOptions()},le))}}ngAfterContentChecked(){this.calendar&&this.calendar.resumeRendering()}ngOnDestroy(){this.calendar&&(this.calendar.destroy(),this.calendar=null)}get customRenderings(){return this.customRenderingArray||(this.customRenderingArray=[...this.customRenderingMap.values()])}getApi(){return this.calendar}buildInputOptions(){const te={};for(const ne of wI){const ie=this[ne];null!=ie&&(te[ne]=ie)}return te}buildExtraOptions(){return{handleCustomRendering:this.handleCustomRendering,customRenderingMetaMap:this.templateMap,customRenderingReplaces:!0}}trackCustomRendering(te,ne){return ne.id}}return FullCalendarComponent.ɵfac=function FullCalendarComponent_Factory(te){return new(te||FullCalendarComponent)(fe.rXU(fe.aKT),fe.rXU(fe.gRc))},FullCalendarComponent.ɵcmp=fe.VBU({type:FullCalendarComponent,selectors:[["full-calendar"]],contentQueries:function FullCalendarComponent_ContentQueries(te,ne,ie){if(1&te&&(fe.wni(ie,Ok,7),fe.wni(ie,Pk,7),fe.wni(ie,Vk,7),fe.wni(ie,nI,7),fe.wni(ie,iI,7),fe.wni(ie,oI,7),fe.wni(ie,aI,7),fe.wni(ie,cI,7),fe.wni(ie,dI,7),fe.wni(ie,pI,7),fe.wni(ie,gI,7),fe.wni(ie,_I,7),fe.wni(ie,bI,7),fe.wni(ie,CI,7),fe.wni(ie,vI,7)),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.dayHeaderContent=te.first),fe.mGM(te=fe.lsd())&&(ne.dayCellContent=te.first),fe.mGM(te=fe.lsd())&&(ne.weekNumberContent=te.first),fe.mGM(te=fe.lsd())&&(ne.nowIndicatorContent=te.first),fe.mGM(te=fe.lsd())&&(ne.eventContent=te.first),fe.mGM(te=fe.lsd())&&(ne.slotLaneContent=te.first),fe.mGM(te=fe.lsd())&&(ne.slotLabelContent=te.first),fe.mGM(te=fe.lsd())&&(ne.allDayContent=te.first),fe.mGM(te=fe.lsd())&&(ne.moreLinkContent=te.first),fe.mGM(te=fe.lsd())&&(ne.noEventsContent=te.first),fe.mGM(te=fe.lsd())&&(ne.resourceAreaHeaderContent=te.first),fe.mGM(te=fe.lsd())&&(ne.resourceGroupLabelContent=te.first),fe.mGM(te=fe.lsd())&&(ne.resourceLabelContent=te.first),fe.mGM(te=fe.lsd())&&(ne.resourceLaneContent=te.first),fe.mGM(te=fe.lsd())&&(ne.resourceGroupLaneContent=te.first)}},inputs:{options:"options",deepChangeDetection:"deepChangeDetection",events:"events",eventSources:"eventSources",resources:"resources"},decls:2,vars:2,consts:[[3,"inPlaceOf","reportEl","elTag","elClasses","elStyle","elAttrs","template","renderProps",4,"ngFor","ngForOf","ngForTrackBy"],[3,"inPlaceOf","reportEl","elTag","elClasses","elStyle","elAttrs","template","renderProps"]],template:function FullCalendarComponent_Template(te,ne){1&te&&(fe.j41(0,"offscreen-fragment"),fe.DNE(1,FullCalendarComponent_transport_container_1_Template,1,8,"transport-container",0),fe.k0s()),2&te&&(fe.R7$(),fe.Y8G("ngForOf",ne.customRenderings)("ngForTrackBy",ne.trackCustomRendering))},dependencies:[II,TI,de.Sq],encapsulation:2}),FullCalendarComponent})(),xI=(()=>{class FullCalendarModule{}return FullCalendarModule.ɵfac=function FullCalendarModule_Factory(te){return new(te||FullCalendarModule)},FullCalendarModule.ɵmod=fe.$C({type:FullCalendarModule}),FullCalendarModule.ɵinj=fe.G2t({imports:[[de.MD]]}),FullCalendarModule})(),EI=(()=>{class BrAgendaComponent{constructor(){this.events=[],this.options={plugins:[WA],locale:"pt-br",initialView:"dayGridMonth"}}static#e=this.ɵfac=function BrAgendaComponent_Factory(te){return new(te||BrAgendaComponent)};static#t=this.ɵcmp=fe.VBU({type:BrAgendaComponent,selectors:[["br-agenda"]],inputs:{events:"events",options:"options"},standalone:!0,features:[fe.aNF],decls:1,vars:2,consts:[[3,"events","options"]],template:function BrAgendaComponent_Template(te,ne){1&te&&fe.nrm(0,"full-calendar",0),2&te&&fe.Y8G("events",ne.events)("options",ne.options)},dependencies:[xI,DI],styles:["[_nghost-%COMP%]     .p-calendar{width:100%}[_nghost-%COMP%]     .hide-clear-button .p-calendar-clear-icon{display:none}"]})}return BrAgendaComponent})();const MI=["agendaDetails"];function CalendarioAgendaComponent_p_button_5_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"p-button",11),fe.bIt("onClick",(function CalendarioAgendaComponent_p_button_5_Template_p_button_onClick_0_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.oauthSignIn())})),fe.k0s()}}function CalendarioAgendaComponent_div_10_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",12)(1,"span",13),fe.EFF(2,"Evento"),fe.k0s(),fe.j41(3,"p-button",14),fe.bIt("onClick",(function CalendarioAgendaComponent_div_10_Template_p_button_onClick_3_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.dialogVisible=!1)})),fe.k0s()()}2&te&&(fe.R7$(3),fe.Y8G("rounded",!0))}function CalendarioAgendaComponent_div_11_Template(te,ne){if(1&te&&(fe.j41(0,"div",15)(1,"div",16)(2,"span",17),fe.EFF(3,"Título do evento: "),fe.j41(4,"span",18),fe.EFF(5),fe.k0s()(),fe.j41(6,"span",17),fe.EFF(7,"Data/hora inicial: "),fe.j41(8,"span",18),fe.EFF(9),fe.nI1(10,"date"),fe.k0s()(),fe.j41(11,"span",17),fe.EFF(12,"Data/hora final: "),fe.j41(13,"span",18),fe.EFF(14),fe.nI1(15,"date"),fe.k0s()()(),fe.j41(16,"span",19),fe.EFF(17,"Descrição do evento:"),fe.k0s(),fe.nrm(18,"br-editor-view",20),fe.k0s()),2&te){const te=fe.XpG();fe.R7$(5),fe.JRh(te.eventoVisualizado.nomeNbrAgenda),fe.R7$(4),fe.JRh(fe.i5U(10,4,te.eventoVisualizado.dataHoraInicial,"dd/MM/yyyy HH:mm:ss")),fe.R7$(5),fe.JRh(fe.i5U(15,7,te.eventoVisualizado.dataHoraFinal,"dd/MM/yyyy HH:mm:ss")),fe.R7$(4),fe.Y8G("texto",""!=te.eventoVisualizado.descrAgenda?te.eventoVisualizado.descrAgenda:"Descrição não fornecida")}}const calendario_agenda_component_c1=()=>({"1199px":"75vw","575px":"90vw"});let NI=(()=>{class CalendarioAgendaComponent{constructor(){this.agendaService=(0,fe.WQX)(tm),this.loadingService=(0,fe.WQX)(Fi.T),this.authService=(0,fe.WQX)(rn.u),this.agendaDetails=null,this.usuario$=this.authService.usuario$,this.dialogVisible=!1,this.isLoading=!1,this.eventosLista=[],this.eventos$=this.agendaService.listRecords(),this.calendarOptions={plugins:[WA,Ik,uk],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},buttonText:{today:"Hoje",month:"Mês",week:"Semana",day:"Dia",next:">>",prev:"<<"},eventTimeFormat:{hour:"numeric",minute:"2-digit",meridiem:!1,omitZeroMinute:!1},height:"100%",locale:"pt-br",initialView:"dayGridMonth",weekends:!0,dayMaxEvents:!0,eventClick:te=>{this.eventClick(te)},dateClick:te=>this.openCriarNovoEventoModal(te)}}ngOnInit(){this.refresh()}eventClick(te){this.isLoading=!0,this.agendaService.getRecord(Number(te.event.id)).subscribe((te=>{this.eventoVisualizado=te,this.isLoading=!1,this.dialogVisible=!0}))}onCriarNovoEvento(){this.dialogVisible=!1,this.openCriarNovoEventoModal()}openCriarNovoEventoModal(te){this.agendaService.openDetails(),te&&this.agendaService.formDetails?.patchValue({dataHoraInicial:te.date}),this.agendaDetails?.registroSalvo$.subscribe((()=>this.refresh()))}refresh(){this.isLoading=!0,this.loadingService.show(),this.eventos$.pipe((0,Zt.T)((te=>te.data.map((te=>({id:String(te.codNbrAgenda),title:te.nomeNbrAgenda,start:new Date(te.dataHoraInicial),end:new Date(te.dataHoraFinal)}))))),(0,pn.j)((()=>{this.isLoading=!1,this.loadingService.hide()}))).subscribe((te=>this.eventosLista=te))}oauthSignIn(){this.agendaService.getGoogleAuthUrl().subscribe((te=>window.location.assign(te)))}header(){return"Calendário"}icon(){return"fa-light fa-fw fa-calendar-days"}static#e=this.ɵfac=function CalendarioAgendaComponent_Factory(te){return new(te||CalendarioAgendaComponent)};static#t=this.ɵcmp=fe.VBU({type:CalendarioAgendaComponent,selectors:[["app-calendario-agenda"]],viewQuery:function CalendarioAgendaComponent_Query(te,ne){if(1&te&&fe.GBs(MI,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.agendaDetails=te.first)}},standalone:!0,features:[fe.Jv_([Ut.o3]),fe.aNF],decls:12,vars:14,consts:[[1,"m-4",2,"height","calc(100% - 100px)","width","auto"],[3,"events","options"],[1,"flex","justify-content-center","my-3","gap-2",2,"width","100%"],["icon","pi pi-refresh","label","Atualizar",3,"onClick"],["icon","pi pi-external-link","label","Criar evento","styleClass","p-button-success",3,"onClick"],["icon","pi pi-google","label","Sincronizar com Google Agenda",3,"onClick",4,"ngIf"],[3,"modal","brListService"],["agendaDetails",""],[1,"dialog",3,"modal","visible","showHeader","breakpoints","visibleChange"],["class","header-dialog",4,"ngIf"],["class","flex flex-column p-3 text-lg",4,"ngIf"],["icon","pi pi-google","label","Sincronizar com Google Agenda",3,"onClick"],[1,"header-dialog"],[1,"header-text"],["label","Fechar","icon","pi pi-times","severity","danger",1,"mr-2",3,"rounded","onClick"],[1,"flex","flex-column","p-3","text-lg"],[1,"flex","flex-row","justify-content-between","gap-3"],[1,"font-bold","flex","flex-column","gap-1"],[1,"font-normal"],[1,"font-bold","mt-3"],[1,"mt-1",3,"texto"]],template:function CalendarioAgendaComponent_Template(te,ne){if(1&te&&(fe.j41(0,"div",0),fe.nrm(1,"br-agenda",1),fe.j41(2,"div",2)(3,"p-button",3),fe.bIt("onClick",(function CalendarioAgendaComponent_Template_p_button_onClick_3_listener(){return ne.refresh()})),fe.k0s(),fe.j41(4,"p-button",4),fe.bIt("onClick",(function CalendarioAgendaComponent_Template_p_button_onClick_4_listener(){return ne.onCriarNovoEvento()})),fe.k0s(),fe.DNE(5,CalendarioAgendaComponent_p_button_5_Template,1,0,"p-button",5),fe.nI1(6,"async"),fe.k0s()(),fe.nrm(7,"br-list-details",6,7),fe.j41(9,"p-dialog",8),fe.mxI("visibleChange",(function CalendarioAgendaComponent_Template_p_dialog_visibleChange_9_listener(te){return fe.DH7(ne.dialogVisible,te)||(ne.dialogVisible=te),te})),fe.DNE(10,CalendarioAgendaComponent_div_10_Template,4,1,"div",9)(11,CalendarioAgendaComponent_div_11_Template,19,10,"div",10),fe.k0s()),2&te){let te;fe.R7$(),fe.Y8G("events",ne.eventosLista)("options",ne.calendarOptions),fe.R7$(4),fe.Y8G("ngIf",!(null!=(te=fe.bMT(6,11,ne.usuario$))&&te.usaGoogleAgenda)),fe.R7$(2),fe.Y8G("modal",!0)("brListService",ne.agendaService),fe.R7$(2),fe.Y8G("modal",!0),fe.R50("visible",ne.dialogVisible),fe.Y8G("showHeader",!1)("breakpoints",fe.lJ4(13,calendario_agenda_component_c1)),fe.R7$(),fe.Y8G("ngIf",!ne.isLoading&&ne.eventoVisualizado),fe.R7$(),fe.Y8G("ngIf",!ne.isLoading&&ne.eventoVisualizado)}},dependencies:[sn.tm,sn.$n,Ek.P,Ek.l,EI,de.bT,xa.E,de.vh,de.Jj,Fo.M],styles:["[_nghost-%COMP%]     .fc-toolbar-chunk .fc-prev-button{margin-right:.5rem!important;border-radius:var(--border-radius)!important}[_nghost-%COMP%]     .fc-toolbar-chunk .fc-next-button{border-radius:var(--border-radius)!important}[_nghost-%COMP%]     .dialog .p-dialog-content{border-radius:6px;padding:0;min-width:50rem}[_nghost-%COMP%]     .dialog .p-dialog-content .header-dialog{display:flex;align-items:center;padding:1rem;width:100%;background-color:var(--primary-color)}[_nghost-%COMP%]     .dialog .p-dialog-content .header-dialog .header-text{color:var(--primary-color-text);font-size:1.5rem;margin-right:auto}"]})}return CalendarioAgendaComponent})();var RI=ie(5823),LI=ie(36);const arrReducer=(te,ne)=>(te.push(ne),te);function toArray(){return(0,In.N)(((te,ne)=>{(function reduce(te,ne){return(0,In.N)((0,LI.S)(te,ne,arguments.length>=2,!1,!0))})(arrReducer,[])(te).subscribe(ne)}))}var OI=ie(3968);let PI=(()=>{class ConfigAtendimentoService{constructor(){this.environmentService=(0,fe.WQX)(oo.v),this.http=(0,fe.WQX)(ue.Qq)}saveConfigAtendimento(te){return this.http.put(`${this.environmentService.environment.serverUrl}/config-atendimento`,te)}static#e=this.ɵfac=function ConfigAtendimentoService_Factory(te){return new(te||ConfigAtendimentoService)};static#t=this.ɵprov=fe.jDH({token:ConfigAtendimentoService,factory:ConfigAtendimentoService.ɵfac,providedIn:"root"})}return ConfigAtendimentoService})(),FI=(()=>{class ConfigAtendimentoComponent{constructor(){this.brPanel={header:"Configurações",controls:[{label:"Modelo de e-mail para avisar sobre andamento novo",formControlName:"codModeloEmailDemanda",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeModeloEmail",optionValue:"codModeloEmail",foreignEndpoint:"modelo-email"},{label:"Grupos de escritório de advocacia",formControlName:"codsGrupoEscrAdv",control:new an.MJ(null),typeInput:Un.St.Text},{label:"HTML para mostrar no rodapé da área restrita",formControlName:"nbrMenuCodModeloHtml",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeModeloHtml",optionValue:"codModeloHtml",foreignEndpoint:"modelo-html"},{label:"Assinatura digital",formControlName:"codNbrStatusAssDigital",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeNbrStatusDemanda",optionValue:"codNbrStatusDemanda",foreignEndpoint:"nbr-status-demanda"}]},this.configMap={codModeloEmailDemanda:"COD_MODELO_EMAIL_DEMANDA",codsGrupoEscrAdv:"CODS_GRUPO_ESCR_ADV",nbrMenuCodModeloHtml:"NBR_MENU_COD_MODELO_HTML",codNbrStatusAssDigital:"COD_NBR_STATUS_ASS_DIGITAL"},this.preferenciaService=(0,fe.WQX)(qn.v),this.tabService=(0,fe.WQX)(Yn.r),this.brMessageService=(0,fe.WQX)(bn.h),this.configAtendimentoService=(0,fe.WQX)(PI),this.fb=(0,fe.WQX)(an.ok),this.loading=!1,this.formDetails=this.fb.group(this.brPanel.controls.reduce(((te,ne)=>({...te,[ne.formControlName]:ne.control})),{}))}ngAfterViewInit(){(0,Hn.H)(Object.entries(this.configMap)).pipe((0,RI.Z)((([te,ne])=>(0,Hn.H)(this.preferenciaService.get(ne)).pipe((0,Zt.T)((ne=>({key:te,preferencia:!isNaN(Number(ne))&&"string"==typeof ne&&ne.length?Number(ne):ne}))),(0,tn.W)((()=>(0,nn.of)({key:te,preferencia:null})))))),toArray(),(0,Zt.T)((te=>te.reduce(((te,{key:ne,preferencia:ie})=>(te[ne]=ie,te)),{})))).subscribe((te=>this.formDetails?.patchValue(te)))}saveConfigAtendimento(){this.loading=!0,this.configAtendimentoService.saveConfigAtendimento(this.formDetails?.value).pipe((0,tn.W)((te=>(this.brMessageService.error(te.message),un.w))),(0,Jt.M)((()=>this.loading=!1)),(0,Jt.M)((()=>this.brMessageService.success()))).subscribe((()=>{this.tabService.closeTab(this.tabService.abaAtual.id)}))}cancel(){this.tabService.closeTab(this.tabService.abaAtual.id)}header(){return"Configurações"}icon(){return"fa-light fa-gear"}static#e=this.ɵfac=function ConfigAtendimentoComponent_Factory(te){return new(te||ConfigAtendimentoComponent)};static#t=this.ɵcmp=fe.VBU({type:ConfigAtendimentoComponent,selectors:[["br-config-atendimento"]],standalone:!0,features:[fe.aNF],decls:6,vars:7,consts:[[1,"p-4","max-w-screen"],[1,"mb-5","flex","gap-3"],["icon","pi pi-times","severity","danger","label","Cancelar",3,"loading","disabled","onClick"],["icon","pi pi-check","severity","success","label","Salvar",3,"loading","disabled","onClick"],[3,"isLoading","brPanel","_form"]],template:function ConfigAtendimentoComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"p-card")(2,"div",1)(3,"p-button",2),fe.bIt("onClick",(function ConfigAtendimentoComponent_Template_p_button_onClick_3_listener(){return ne.cancel()})),fe.k0s(),fe.j41(4,"p-button",3),fe.bIt("onClick",(function ConfigAtendimentoComponent_Template_p_button_onClick_4_listener(){return ne.saveConfigAtendimento()})),fe.k0s()(),fe.nrm(5,"br-formulario",4),fe.k0s()()),2&te&&(fe.R7$(3),fe.Y8G("loading",ne.loading)("disabled",ne.loading||ne.formDetails.invalid),fe.R7$(),fe.Y8G("loading",ne.loading)("disabled",ne.loading||ne.formDetails.invalid),fe.R7$(),fe.Y8G("isLoading",ne.loading)("brPanel",ne.brPanel)("_form",ne.formDetails))},dependencies:[de.MD,an.X1,hr.kr,lo.q4,sn.tm,sn.$n,yn.f,OI.A,dn.D,dn.Z]})}return ConfigAtendimentoComponent})(),BI=(()=>{class ConfigComuniqueService{constructor(){this.configGeralService=(0,fe.WQX)(go.F),this.fb=(0,fe.WQX)(an.ok),this.brPanel={header:"Configurações",controls:[{label:"Nome reduzido Brcomunique",formControlName:"comuniqueNomeReduzido",control:new an.MJ(null),typeInput:Un.St.Text},{label:"ID App empresa",formControlName:"idAppEmpresa",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Site empresa",formControlName:"siteEmpresa",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Facebook",formControlName:"facebook",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Twitter",formControlName:"twitter",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Youtube",formControlName:"youtube",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Whatsapp suporte",formControlName:"whatsappSuporte",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Instagram",formControlName:"instagram",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Caption Brcomunique",formControlName:"captionBrcomunique",control:new an.MJ(null),typeInput:Un.St.Text},{label:"Mostrar login das redes socias",formControlName:"mostrarRedesSociaisLogin",control:new an.MJ(null),typeInput:Un.St.CheckBox},{label:"Mostrar suporte técnico",formControlName:"mostrarSuporteTecnico",control:new an.MJ(null),typeInput:Un.St.CheckBox}]},this.formDetails=this.fb.group(this.brPanel.controls.reduce(((te,ne)=>({...te,[ne.formControlName]:ne.control})),{}))}saveConfigComunique(){return this.configGeralService.updateConfigGeral(this.formDetails?.value)}static#e=this.ɵfac=function ConfigComuniqueService_Factory(te){return new(te||ConfigComuniqueService)};static#t=this.ɵprov=fe.jDH({token:ConfigComuniqueService,factory:ConfigComuniqueService.ɵfac,providedIn:"root"})}return ConfigComuniqueService})(),jI=(()=>{class ActionFooterComponent{constructor(){this.brMessageService=(0,fe.WQX)(bn.h),this.configComuniqueService=(0,fe.WQX)(BI),this.tabService=(0,fe.WQX)(Yn.r)}get formDetails(){return this.configComuniqueService.formDetails}saveConfigComunique(){this.configComuniqueService.saveConfigComunique().pipe((0,tn.W)((te=>(this.brMessageService.error(te.message),un.w)))).subscribe((()=>{this.brMessageService.success(),this.tabService.closeTab(this.tabService.abaAtual.parentId)}))}cancel(){this.tabService.closeTab(this.tabService.abaAtual.parentId)}static#e=this.ɵfac=function ActionFooterComponent_Factory(te){return new(te||ActionFooterComponent)};static#t=this.ɵcmp=fe.VBU({type:ActionFooterComponent,selectors:[["br-action-footer"]],standalone:!0,features:[fe.aNF],decls:3,vars:4,consts:[[1,"p-3","bg-white","shadow-2","flex","gap-3"],["icon","pi pi-check","severity","success","label","Salvar",3,"disabled","rounded","onClick"],["icon","pi pi-times","severity","danger","label","Cancelar",3,"disabled","rounded","onClick"]],template:function ActionFooterComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"p-button",1),fe.bIt("onClick",(function ActionFooterComponent_Template_p_button_onClick_1_listener(){return ne.saveConfigComunique()})),fe.k0s(),fe.j41(2,"p-button",2),fe.bIt("onClick",(function ActionFooterComponent_Template_p_button_onClick_2_listener(){return ne.cancel()})),fe.k0s()()),2&te&&(fe.R7$(),fe.Y8G("disabled",ne.formDetails.invalid)("rounded",!0),fe.R7$(),fe.Y8G("disabled",ne.formDetails.invalid)("rounded",!0))},dependencies:[sn.tm,sn.$n]})}return ActionFooterComponent})(),VI=(()=>{class ComuniqueAtalhoService extends Un.O7{constructor(){super("comunique-atalho"),this.brListName="Comunique atalhos",this.brListNamePlural="Comunique atalhos",this.columns$=new zn.t([{label:"ID",formControlName:"codComuniqueAtalho",fieldPath:"codComuniqueAtalho"},{label:"Comunique rotina",formControlName:"codComuniqueRotina",fieldPath:"comuniqueRotina.nomeComuniqueRotina"},{label:"Status atalho",formControlName:"codStatusAtalho",fieldPath:"statusAtalho.nomeStatusAtalho"},{label:"Ordem rotina",formControlName:"ordemRotina",fieldPath:"ordemRotina"},{label:"Mostrar nav externo",formControlName:"mostrarNavExterno",fieldPath:"mostrarNavExterno",typeColumn:Un.Ii.CheckBox}]),this.brFormulario=[{header:"Dados Gerais",controls:[{label:"ID",formControlName:"codComuniqueAtalho",control:new an.MJ(null),typeInput:Un.St.Text,showOnDetails:!1},{label:"Comunique rotina",formControlName:"codComuniqueRotina",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeComuniqueRotina",optionValue:"codComuniqueRotina",foreignEndpoint:"comunique-rotina"},{label:"Status atalho",formControlName:"codStatusAtalho",control:new an.MJ(null),typeInput:Un.St.ForeignKey,optionLabel:"nomeStatusAtalho",optionValue:"codStatusAtalho",foreignEndpoint:"status-atalho"},{label:"Ordem rotina",formControlName:"ordemRotina",control:new an.MJ(null),typeInput:Un.St.Number},{label:"Mostrar nav externo",formControlName:"mostrarNavExterno",control:new an.MJ(null),typeInput:Un.St.CheckBox}]}]}static#e=this.ɵfac=function ComuniqueAtalhoService_Factory(te){return new(te||ComuniqueAtalhoService)};static#t=this.ɵprov=fe.jDH({token:ComuniqueAtalhoService,factory:ComuniqueAtalhoService.ɵfac,providedIn:"root"})}return ComuniqueAtalhoService})(),GI=(()=>{class ComuniqueAtalhoComponent{constructor(){this.comuniqueAtalhoService=(0,fe.WQX)(VI)}header(){return"Comunique atalhos"}icon(){return"fa-light fa-list-ul"}static#e=this.ɵfac=function ComuniqueAtalhoComponent_Factory(te){return new(te||ComuniqueAtalhoComponent)};static#t=this.ɵcmp=fe.VBU({type:ComuniqueAtalhoComponent,selectors:[["br-list-comunique-rotina"]],standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[[3,"brListService"]],template:function ComuniqueAtalhoComponent_Template(te,ne){1&te&&fe.nrm(0,"br-list",0),2&te&&fe.Y8G("brListService",ne.comuniqueAtalhoService)},dependencies:[Kn.K]})}return ComuniqueAtalhoComponent})(),zI=(()=>{class ConfigComuniqueComponent{constructor(){this.configComuniqueService=(0,fe.WQX)(BI),this.configGeralService=(0,fe.WQX)(go.F),this.preferenciasService=(0,fe.WQX)(qn.v),this.tabService=(0,fe.WQX)(Yn.r),this.configComuniqueMap={comuniqueNomeReduzido:"COMUNIQUE_NOME_REDUZIDO",idAppEmpresa:"ID_APP_EMPRESA",siteEmpresa:"SITE_EMPRESA",facebook:"FACEBOOK",twitter:"TWITTER",youtube:"YOUTUBE",whatsappSuporte:"WHATSAPP_SUPORTE",instagram:"INSTAGRAM",mostrarRedesSociaisLogin:"MOSTRAR_REDES_SOCIAIS_LOGIN",mostrarSuporteTecnico:"MOSTRAR_SUPORTE_TECNICO"},this.lbrPrefMap={captionBrcomunique:"CAPTION_BRCOMUNIQUE"}}get brPanel(){return this.configComuniqueService.brPanel}get formDetails(){return this.configComuniqueService.formDetails}ngAfterViewInit(){const te=this.getConfig(this.configComuniqueMap,(te=>this.configGeralService.get(te))),ne=this.getConfig(this.lbrPrefMap,(te=>this.preferenciasService.get(te)));(0,Kt.p)({configComunique:te,prefConfig:ne}).subscribe((te=>{this.formDetails?.patchValue({...te.prefConfig,...te.configComunique})}))}getConfig(te,ne){return(0,Hn.H)(Object.entries(te)).pipe((0,RI.Z)((([te,ie])=>(0,Hn.H)(ne(ie)).pipe((0,Zt.T)((ne=>({formControlName:te,value:!isNaN(Number(ne))&&"string"==typeof ne&&ne.length?Number(ne):ne}))),(0,tn.W)((()=>(0,nn.of)({formControlName:te,value:null})))))),toArray(),(0,Zt.T)((te=>te.reduce(((te,{formControlName:ne,value:ie})=>(te[ne]=ie,te)),{}))))}openComuniqueAtalho(){this.tabService.openChild({child:{component:GI},parentId:this.tabService.abaAtual.parentId})}header(){return"Configurações"}icon(){return"fa-light fa-gear"}static#e=this.ɵfac=function ConfigComuniqueComponent_Factory(te){return new(te||ConfigComuniqueComponent)};static#t=this.ɵcmp=fe.VBU({type:ConfigComuniqueComponent,selectors:[["br-config-comunique"]],standalone:!0,features:[fe.aNF],decls:6,vars:2,consts:[[1,"p-4","max-w-screen"],[1,"pt-4"],[3,"brPanel","_form"],[1,"mt-5","flex","justify-content-center","gap-3"],["icon","pi pi-link","severity","info","label","Configurar atalhos",3,"onClick"]],template:function ConfigComuniqueComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"p-card")(2,"div",1),fe.nrm(3,"br-formulario",2),fe.k0s(),fe.j41(4,"div",3)(5,"p-button",4),fe.bIt("onClick",(function ConfigComuniqueComponent_Template_p_button_onClick_5_listener(){return ne.openComuniqueAtalho()})),fe.k0s()()()()),2&te&&(fe.R7$(3),fe.Y8G("brPanel",ne.brPanel)("_form",ne.formDetails))},dependencies:[de.MD,an.X1,hr.kr,lo.q4,sn.tm,sn.$n,yn.f,OI.A,dn.D,dn.Z]})}return ConfigComuniqueComponent})();var HI=ie(5501),UI=ie(5670);let $I=(()=>{class EmailService{constructor(te,ne){this.http=te,this.environmentService=ne}enviarEmail(te){return this.http.post(`${this.environmentService.environment.serverUrl}/emails`,te)}buscarModelos(){return this.http.get(`${this.environmentService.environment.serverUrl}/modelo-email/min`)}criarModelo(te){return this.http.post(`${this.environmentService.environment.serverUrl}/modelo-email/`,te)}alterarModelo(te){return this.http.put(`${this.environmentService.environment.serverUrl}/modelo-email/${te.id}`,te)}removerModelo(te){return this.http.delete(`${this.environmentService.environment.serverUrl}/modelo-email/${te}`)}buscarModelo(te){return this.http.get(`${this.environmentService.environment.serverUrl}/modelo-email/${te}`)}static#e=this.ɵfac=function EmailService_Factory(te){return new(te||EmailService)(fe.KVO(ue.Qq),fe.KVO(oo.v))};static#t=this.ɵprov=fe.jDH({token:EmailService,factory:EmailService.ɵfac,providedIn:"root"})}return EmailService})();const enviar_email_component_c0=()=>({"min-width":"100%","max-width":"100%"}),enviar_email_component_c1=()=>({"min-width":"100%"}),enviar_email_component_c2=()=>["application/pdf","image/*"];function EnviarEmailComponent_div_0_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",1)(1,"p-floatLabel"),fe.nrm(2,"input",2),fe.j41(3,"label",3),fe.EFF(4,"De"),fe.k0s()(),fe.j41(5,"p-floatLabel")(6,"p-chips",4),fe.bIt("onAdd",(function EnviarEmailComponent_div_0_Template_p_chips_onAdd_6_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.checkEmail("to"))})),fe.k0s(),fe.j41(7,"label",5),fe.EFF(8,"Para"),fe.k0s()(),fe.j41(9,"p-floatLabel")(10,"p-chips",6),fe.bIt("onAdd",(function EnviarEmailComponent_div_0_Template_p_chips_onAdd_10_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.checkEmail("cc"))})),fe.k0s(),fe.j41(11,"label",7),fe.EFF(12,"Cópia"),fe.k0s()(),fe.nrm(13,"br-foreign-key",8),fe.j41(14,"p-floatLabel",9),fe.nrm(15,"input",10),fe.j41(16,"label",11),fe.EFF(17,"Assunto"),fe.k0s()(),fe.nrm(18,"br-editor",12)(19,"br-file-upload",13),fe.j41(20,"div",14)(21,"p-button",15),fe.bIt("onClick",(function EnviarEmailComponent_div_0_Template_p_button_onClick_21_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.enviarEmail())})),fe.k0s()()()}if(2&te){const te=fe.XpG();fe.Y8G("formGroup",te.form),fe.R7$(6),fe.Aen(fe.lJ4(19,enviar_email_component_c0)),fe.Y8G("showClear",!0)("allowDuplicate",!1)("addOnTab",!0)("addOnBlur",!0)("inputStyle",fe.lJ4(20,enviar_email_component_c1)),fe.R7$(4),fe.Aen(fe.lJ4(21,enviar_email_component_c0)),fe.Y8G("showClear",!0)("allowDuplicate",!1)("addOnTab",!0)("addOnBlur",!0)("inputStyle",fe.lJ4(22,enviar_email_component_c1)),fe.R7$(9),fe.Y8G("multiple",!0)("accept",fe.lJ4(23,enviar_email_component_c2)),fe.R7$(2),fe.Y8G("disabled",te.form&&te.form.invalid)("loading",te.isLoading)}}let qI=(()=>{class EnviarEmailComponent{constructor(){this.isLoading=!1,this.formBuilder=(0,fe.WQX)(an.ok),this.authService=(0,fe.WQX)(rn.u),this.emailService=(0,fe.WQX)($I),this.brMessageService=(0,fe.WQX)(bn.h),this.tabRef=(0,fe.WQX)(Ig.l),this.modelosOptions=[]}ngOnInit(){this.emailService.buscarModelos().subscribe((te=>this.modelosOptions=te)),this.form=this.formBuilder.group({from:[{value:this.authService.usuario.emailConta.email,disabled:!0}],to:[null,[an.k0.required]],replyTo:[null],cc:[null],modelo:[null],subject:[null,[an.k0.required]],content:[null,[an.k0.required]],idArquivos:[null]}),this.sub=this.form.get("modelo")?.valueChanges.subscribe((()=>this.patchModelo()))}ngOnDestroy(){this.sub?.unsubscribe()}patchModelo(){const te=this.form.get("modelo").value;te&&this.emailService.buscarModelo(te).pipe((0,tn.W)((te=>(console.error(te),this.brMessageService.error("Erro ao carregar o modelo de email"),un.w)))).subscribe((te=>{this.form.patchValue({subject:te?.assuntoModeloEmail,content:te?.corpoModeloEmail})}))}enviarEmail(){this.isLoading=!0,this.fileUploadComponent?.uploadFiles().pipe((0,UI.U)(null)).subscribe({next:()=>{const te=this.form?.getRawValue(),ne={from:{email:te.from},to:te.to.map((te=>({email:te}))),replyTo:te.replyTo,cc:te.cc,subject:te.subject,content:te.content,idArquivos:te.idArquivos};return this.emailService.enviarEmail(ne).pipe((0,tn.W)((te=>(console.error(te),this.brMessageService.error(te.error.message),un.w))),(0,pn.j)((()=>this.isLoading=!1)),(0,Jt.M)((()=>{this.brMessageService.success("E-mail enviado com sucesso"),this.tabRef.close()}))).subscribe()}})}checkEmail(te){const ne=new RegExp("[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"),ie=this.form.value[te];ne.test(ie[ie.length-1])||ie.pop()}header(){return"Enviar E-mail"}icon(){return"fa-light fa-paper-plane-top"}static#e=this.ɵfac=function EnviarEmailComponent_Factory(te){return new(te||EnviarEmailComponent)};static#t=this.ɵcmp=fe.VBU({type:EnviarEmailComponent,selectors:[["br-enviar-email"]],viewQuery:function EnviarEmailComponent_Query(te,ne){if(1&te&&fe.GBs(Hr.r,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.fileUploadComponent=te.first)}},standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[["class","form-container",3,"formGroup",4,"ngIf"],[1,"form-container",3,"formGroup"],["id","De","type","text","formControlName","from","brInputText","",2,"min-width","100%"],["for","De"],["id","Para","formControlName","to","label","Para","separator",",",3,"showClear","allowDuplicate","addOnTab","addOnBlur","inputStyle","onAdd"],["for","Para"],["id","Cópia","formControlName","cc","label","Cópia","separator",",",3,"showClear","allowDuplicate","addOnTab","addOnBlur","inputStyle","onAdd"],["for","Cópia"],["formControlName","modelo","optionLabel","nomeModeloEmail","optionValue","codModeloEmail","endpoint","modelo-email","label","Modelo"],[2,"grid-column","1 / -1"],["id","Assunto","type","text","formControlName","subject","brInputText","",2,"min-width","100%"],["for","Assunto"],["formControlName","content","altura","20rem","label","Corpo do e-mail","size","100%",2,"grid-column","1 / -1"],["formControlName","idArquivos","label","Anexo","size","100%",2,"grid-column","1 / -1",3,"multiple","accept"],[1,"container-botao-enviar-email"],["label","Enviar Email","styleClass","p-button-success",3,"disabled","loading","onClick"]],template:function EnviarEmailComponent_Template(te,ne){1&te&&fe.DNE(0,EnviarEmailComponent_div_0_Template,22,24,"div",0),2&te&&fe.Y8G("ngIf",ne.form)},dependencies:[de.MD,de.bT,_n.B,yn.f,yn.V,an.X1,an.me,an.BC,an.cb,an.j4,an.JD,HI.AV,HI.C4,sn.tm,sn.$n,Ta.P,Hr.r,Ur.L],styles:['[_nghost-%COMP%]     .form-container{display:grid;grid-template-columns:1fr;gap:1rem;row-gap:2rem;margin:2.5rem;margin-bottom:0}[_nghost-%COMP%]     .form-container p-button[label="Enviar Email"]{grid-column:1/-1}[_nghost-%COMP%]     .form-container p-button[label="Enviar Email"] .p-button{width:100%}.container-botao-enviar-email[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;position:sticky;bottom:0;z-index:2;background:#fff;width:15%}.container-botao-enviar-email[_ngcontent-%COMP%]   p-button[_ngcontent-%COMP%]{width:100%}']})}return EnviarEmailComponent})();var YI=ie(7721),WI=ie(8);let XI=(()=>{class IntegEstadoRemessaModalComponent{constructor(){this.formBuilder=(0,fe.WQX)(an.ok),this.tabService=(0,fe.WQX)(Yn.r),this.dynamicDialogRef=(0,fe.WQX)(Ut.Pw),this.dynamicDialogConfig=(0,fe.WQX)(Ut.sb),this.brMessageService=(0,fe.WQX)(bn.h),this.validadorFormularioService=(0,fe.WQX)(Zr.E),this.dynamicDialogConfig.data?.onConfirmarEmitter.subscribe((()=>{this.processaRemessa()})),this.form=this.formBuilder.group({codReferencia:[null,an.k0.required]})}processaRemessa(){const te=this.validadorFormularioService.validaFormulario(this.form);if(!te.valido)return(0,WI.QE)(this.form),void this.brMessageService.error(te.mensagemErro);this.tabService.open({header:"Criar Arquivo para Remessa",component:Wn.g,icon:"pi pi-user-edit",data:{params:{codReferencia:this.form.value.codReferencia,rotinaWeb:"IntegFolhaRemessaInCorpFrame"}}}),this.dynamicDialogRef.close()}static#e=this.ɵfac=function IntegEstadoRemessaModalComponent_Factory(te){return new(te||IntegEstadoRemessaModalComponent)};static#t=this.ɵcmp=fe.VBU({type:IntegEstadoRemessaModalComponent,selectors:[["app-integ-estado-remessa-modal"]],standalone:!0,features:[fe.Jv_([Ut.o3]),fe.aNF],decls:2,vars:1,consts:[[1,"p-3",3,"formGroup"],["label","Referência","formControlName","codReferencia","optionValue","codReferencia","endpoint","referencia","optionLabel","nomeReferencia"]],template:function IntegEstadoRemessaModalComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0),fe.nrm(1,"br-foreign-key",1),fe.k0s()),2&te&&fe.Y8G("formGroup",ne.form)},dependencies:[de.MD,YI.u,an.X1,an.BC,an.cb,an.j4,an.JD,sn.tm,Ur.L]})}return IntegEstadoRemessaModalComponent})(),KI=(()=>{class IntegEstadoRemessaComponent{constructor(){this.brDialogService=(0,fe.WQX)(fi.i),this.tabRef=(0,fe.WQX)(Ig.l)}ngOnInit(){this.brDialogService.open(XI,{header:"Integração com Estado - Remessa",onConfirmar:()=>{}}).onClose.subscribe((()=>{this.tabRef.close()}))}header(){return"Enviar Remessa"}icon(){return"fa-light fa-paper-plane"}static#e=this.ɵfac=function IntegEstadoRemessaComponent_Factory(te){return new(te||IntegEstadoRemessaComponent)};static#t=this.ɵcmp=fe.VBU({type:IntegEstadoRemessaComponent,selectors:[["app-integ-estado-remessa"]],standalone:!0,features:[fe.aNF],decls:0,vars:0,template:function IntegEstadoRemessaComponent_Template(te,ne){}})}return IntegEstadoRemessaComponent})();const integ_estado_retorno_modal_component_c0=()=>["text/plain"];let QI=(()=>{class IntegEstadoRetornoModalComponent{constructor(){this.formBuilder=(0,fe.WQX)(an.ok),this.dynamicDialogRef=(0,fe.WQX)(Ut.Pw),this.tabService=(0,fe.WQX)(Yn.r),this.brMessageService=(0,fe.WQX)(bn.h),this.dynamicDialogConfig=(0,fe.WQX)(Ut.sb),this.validadorFormularioService=(0,fe.WQX)(Zr.E),this.dynamicDialogConfig.data?.onConfirmarEmitter.subscribe((()=>{this.processaRetorno()})),this.form=this.formBuilder.group({codReferencia:[null,an.k0.required],arquivos:[null,an.k0.required]})}processaRetorno(){const te=this.validadorFormularioService.validaFormulario(this.form);if(!te.valido)return(0,WI.QE)(this.form),void this.brMessageService.error(te.mensagemErro);this.brFileUpload?.uploadFiles().pipe((0,tn.W)((te=>(console.error(te),this.brMessageService.error(),un.w)))).subscribe((()=>{this.tabService.open({header:"Processar Arquivo de Retorno",component:Wn.g,icon:"pi pi-user-edit",data:{params:{codReferencia:this.form.value.codReferencia,codsDocEmpresa:this.form.value.arquivos,rotinaWeb:"IntegFolhaRetornoInCorpFrame"}}}),this.close()}))}close(){this.dynamicDialogRef.close()}static#e=this.ɵfac=function IntegEstadoRetornoModalComponent_Factory(te){return new(te||IntegEstadoRetornoModalComponent)};static#t=this.ɵcmp=fe.VBU({type:IntegEstadoRetornoModalComponent,selectors:[["app-integ-estado-retorno-modal"]],viewQuery:function IntegEstadoRetornoModalComponent_Query(te,ne){if(1&te&&fe.GBs(Hr.r,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.brFileUpload=te.first)}},standalone:!0,features:[fe.aNF],decls:5,vars:4,consts:[["body","",1,"flex","flex-column","justify-content-center","gap-5","align-items-center",3,"formGroup"],["label","Referência","formControlName","codReferencia","optionValue","codReferencia","optionLabel","nomeReferencia","endpoint","referencia"],["formControlName","arquivos","label","Arquivos",3,"accept","fileLimit"]],template:function IntegEstadoRetornoModalComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0)(1,"span"),fe.EFF(2,"Selecione o mês/ano de referência e informe o(s) arquivo(s) recebidos do Estado."),fe.k0s(),fe.nrm(3,"br-foreign-key",1)(4,"br-file-upload",2),fe.k0s()),2&te&&(fe.Y8G("formGroup",ne.form),fe.R7$(4),fe.Y8G("accept",fe.lJ4(3,integ_estado_retorno_modal_component_c0))("fileLimit",100))},dependencies:[de.MD,YI.u,an.X1,an.BC,an.cb,an.j4,an.JD,sn.tm,Ur.L,Hr.r]})}return IntegEstadoRetornoModalComponent})(),JI=(()=>{class IntegEstadoRetornoComponent{constructor(){this.brDialogService=(0,fe.WQX)(fi.i),this.tabRef=(0,fe.WQX)(Ig.l)}ngOnInit(){this.brDialogService.open(QI,{header:"Integração com Estado - Retorno",onConfirmar:()=>{}}).onClose.subscribe((()=>{this.tabRef.close()}))}header(){return"Enviar Remessa"}icon(){return"fa-light fa-fw fa-calendar-days"}static#e=this.ɵfac=function IntegEstadoRetornoComponent_Factory(te){return new(te||IntegEstadoRetornoComponent)};static#t=this.ɵcmp=fe.VBU({type:IntegEstadoRetornoComponent,selectors:[["app-integ-estado-retorno"]],standalone:!0,features:[fe.aNF],decls:0,vars:0,template:function IntegEstadoRetornoComponent_Template(te,ne){}})}return IntegEstadoRetornoComponent})();function RotinaIncorpNg_iframe_0_Template(te,ne){if(1&te&&fe.nrm(0,"iframe",1),2&te){const te=fe.XpG();fe.Y8G("src",te.url,fe.f$h)}}let ZI=(()=>{class RotinaIncorpNg{constructor(){this.tabRef=(0,fe.WQX)(Ig.l),this.sanitizer=(0,fe.WQX)(re.up),this.url=this.sanitizer.bypassSecurityTrustResourceUrl(this.tabRef.data.url)}header(){return"Jurídico"}icon(){return"fa-light fa-fw fa-scale-balanced"}static#e=this.ɵfac=function RotinaIncorpNg_Factory(te){return new(te||RotinaIncorpNg)};static#t=this.ɵcmp=fe.VBU({type:RotinaIncorpNg,selectors:[["app-rotina-incorp-ng"]],standalone:!0,features:[fe.aNF],decls:1,vars:1,consts:[[3,"src",4,"ngIf"],[3,"src"]],template:function RotinaIncorpNg_Template(te,ne){1&te&&fe.DNE(0,RotinaIncorpNg_iframe_0_Template,1,1,"iframe",0),2&te&&fe.Y8G("ngIf",ne.url)},dependencies:[Yt.MB,de.bT],styles:["iframe[_ngcontent-%COMP%]{height:100%;width:100%;border:0px}"]})}return RotinaIncorpNg})();let vS=(()=>{class SobreComponent{constructor(){this.environmentService=(0,fe.WQX)(oo.v),this.version=this.environmentService.getVersaoProjeto(),this.timeStamp="28/10/2024, 16:49:26"}header(){return"Sobre"}icon(){return"fa-light fa-circle-info"}static#e=this.ɵfac=function SobreComponent_Factory(te){return new(te||SobreComponent)};static#t=this.ɵcmp=fe.VBU({type:SobreComponent,selectors:[["br-sobre"]],standalone:!0,features:[fe.aNF],decls:12,vars:2,consts:[["styleClass","m-3"],[1,"mb-1","text-2xl"],[1,"font-bold","ml-1"],["src","../../../../../assets/layout/images/logo-infobr.svg","alt","",1,"block","ml-1","w-12rem","h-6rem"]],template:function SobreComponent_Template(te,ne){1&te&&(fe.j41(0,"p-card",0)(1,"h2",1),fe.EFF(2,"Sistema:"),fe.k0s(),fe.j41(3,"p",2),fe.EFF(4,"InCorp"),fe.k0s(),fe.j41(5,"h2",1),fe.EFF(6,"Versão:"),fe.k0s(),fe.j41(7,"p",2),fe.EFF(8),fe.k0s(),fe.j41(9,"h2",1),fe.EFF(10,"Desenvolvido por:"),fe.k0s(),fe.nrm(11,"img",3),fe.k0s()),2&te&&(fe.R7$(8),fe.Lme("",ne.version," - ",ne.timeStamp,""))},dependencies:[de.MD,dn.D,dn.Z]})}return SobreComponent})(),yS=(()=>{class StickyClassDirective{constructor(){this.el=(0,fe.WQX)(fe.aKT),this.renderer=(0,fe.WQX)(fe.sFG)}ngOnInit(){this.observer=new IntersectionObserver((([te])=>this.toggleClass(te)),{threshold:[1]}),this.observer.observe(this.el.nativeElement)}ngOnDestroy(){this.observer&&this.observer.disconnect()}toggleClass(te){te.intersectionRatio<1?this.renderer.addClass(this.el.nativeElement,this.classOnSticky):this.renderer.removeClass(this.el.nativeElement,this.classOnSticky)}static#e=this.ɵfac=function StickyClassDirective_Factory(te){return new(te||StickyClassDirective)};static#t=this.ɵdir=fe.FsC({type:StickyClassDirective,selectors:[["","stickyClass",""]],inputs:{classOnSticky:"classOnSticky"},standalone:!0})}return StickyClassDirective})();var wS=ie(104);const layout_menuitem_component_c0=te=>({invisible:te});function LayoutMenuitemComponent_input_5_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"input",8),fe.mxI("ngModelChange",(function LayoutMenuitemComponent_input_5_Template_input_ngModelChange_0_listener(ne){fe.eBV(te);const ie=fe.XpG();return fe.DH7(ie.item.label,ne)||(ie.item.label=ne),fe.Njj(ne)})),fe.bIt("keydown.enter",(function LayoutMenuitemComponent_input_5_Template_input_keydown_enter_0_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.onInputRenomearBlur())}))("blur",(function LayoutMenuitemComponent_input_5_Template_input_blur_0_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.onInputRenomearBlur())})),fe.k0s()}if(2&te){const te=fe.XpG();fe.Y8G("autofocus",!0),fe.R50("ngModel",te.item.label),fe.Y8G("ngClass",fe.eq3(3,layout_menuitem_component_c0,!te.layoutState.menuActive))}}const layout_menuitem_component_c1=te=>({"invisible ml-0":te});function LayoutMenuitemComponent_span_6_Template(te,ne){if(1&te&&(fe.j41(0,"span",9),fe.EFF(1),fe.k0s()),2&te){const te=fe.XpG();fe.Y8G("ngClass",fe.eq3(2,layout_menuitem_component_c1,!te.layoutState.menuActive)),fe.R7$(),fe.JRh(te.item.label)}}function LayoutMenuitemComponent_i_7_Template(te,ne){if(1&te&&fe.nrm(0,"i",10),2&te){const te=fe.XpG();fe.Y8G("ngClass",fe.eq3(1,layout_menuitem_component_c0,!te.layoutState.menuActive))}}function LayoutMenuitemComponent_ul_8_layout_menuitem_1_Template(te,ne){if(1&te&&fe.nrm(0,"layout-menuitem",12),2&te){const te=ne.$implicit,ie=fe.XpG(2);fe.Y8G("item",te)("parentLabel",ie.key)}}function LayoutMenuitemComponent_ul_8_Template(te,ne){if(1&te&&(fe.j41(0,"ul"),fe.DNE(1,LayoutMenuitemComponent_ul_8_layout_menuitem_1_Template,1,2,"layout-menuitem",11),fe.k0s()),2&te){const te=fe.XpG();fe.Y8G("@children",te.submenuAnimation),fe.R7$(),fe.Y8G("ngForOf",te.item.items)}}function LayoutMenuitemComponent_p_contextMenu_9_Template(te,ne){if(1&te&&fe.nrm(0,"p-contextMenu",13),2&te){const te=fe.XpG(),ne=fe.sdS(2);fe.Y8G("target",ne)("model",te.contextMenu)}}let AS=(()=>{class LayoutMenuitemComponent{constructor(){this.layoutService=(0,fe.WQX)(Ul.Y),this.tabService=(0,fe.WQX)(Yn.r),this.key="",this.contextMenu=[],this.isRenomeando=!1}get isActive(){return!!this.item.id&&this.tabService.getTabOpenComponentName()===this.item.id}get layoutStateClass(){return{...this.layoutService.layoutStateClass,"rotina-ativa":this.isActive,expanded:this.item.items&&this.item.expanded||!1}}get layoutState(){return this.layoutService.state}get submenuAnimation(){return this.item.expanded?"expanded":"collapsed"}ngOnInit(){this.key=this.parentLabel?this.parentLabel+"-"+this.item.label:this.item.label,this.item.id&&"Favoritos"===this.parentLabel?this.contextMenu=[{label:`Desfavoritar "${this.item.label}"`,icon:"fa-light fa-fw fa-heart-crack",command:()=>{this.layoutService.toggleFavorito(!1,this.item).subscribe((()=>{this.layoutService.montaMenu(this.layoutService.getItensMenuSemFavoritos())}))}},{label:"Renomear",icon:"fa-light fa-fw fa-pen-to-square",command:()=>{this.isRenomeando=!0}}]:this.contextMenu=[{label:`Favoritar "${this.item.label}"`,icon:"fa-light fa-fw fa-heart",command:()=>{this.layoutService.isItemFavorito(this.item)||this.layoutService.toggleFavorito(!0,this.item).subscribe((()=>{this.layoutService.montaMenu(this.layoutService.getItensMenuSemFavoritos())}))}}]}onInputRenomearBlur(){this.isRenomeando=!1,this.layoutService.renomearFavorito(this.item).subscribe()}itemClick(te){this.item.command&&!this.isRenomeando&&this.item.command({originalEvent:te,item:this.item}),this.item.items&&(this.item.expanded=!this.item.expanded)}static#e=this.ɵfac=function LayoutMenuitemComponent_Factory(te){return new(te||LayoutMenuitemComponent)};static#t=this.ɵcmp=fe.VBU({type:LayoutMenuitemComponent,selectors:[["layout-menuitem"]],inputs:{item:"item",parentLabel:"parentLabel"},decls:10,vars:9,consts:[["link",""],["tabindex","0",3,"ngClass","click"],[1,"layout-menuitem-icon",3,"ngClass"],["pAutoFocus","","class","input-favoritos",3,"autofocus","ngModel","ngClass","ngModelChange","keydown.enter","blur",4,"ngIf"],["class","ml-2",3,"ngClass",4,"ngIf"],["class","layout-submenu-toggler pi pi-angle-down",3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"target","model",4,"ngIf"],["pAutoFocus","",1,"input-favoritos",3,"autofocus","ngModel","ngClass","ngModelChange","keydown.enter","blur"],[1,"ml-2",3,"ngClass"],[1,"layout-submenu-toggler","pi","pi-angle-down",3,"ngClass"],[3,"item","parentLabel",4,"ngFor","ngForOf"],[3,"item","parentLabel"],[3,"target","model"]],template:function LayoutMenuitemComponent_Template(te,ne){1&te&&(fe.j41(0,"li")(1,"span",null,0)(3,"a",1),fe.bIt("click",(function LayoutMenuitemComponent_Template_a_click_3_listener(te){return ne.itemClick(te)})),fe.nrm(4,"i",2),fe.DNE(5,LayoutMenuitemComponent_input_5_Template,1,5,"input",3)(6,LayoutMenuitemComponent_span_6_Template,2,4,"span",4)(7,LayoutMenuitemComponent_i_7_Template,1,3,"i",5),fe.k0s()(),fe.DNE(8,LayoutMenuitemComponent_ul_8_Template,2,2,"ul",6)(9,LayoutMenuitemComponent_p_contextMenu_9_Template,1,2,"p-contextMenu",7),fe.k0s()),2&te&&(fe.R7$(3),fe.HbH("link-menu "+ne.item.styleClass),fe.Y8G("ngClass",ne.layoutStateClass),fe.R7$(),fe.Y8G("ngClass",ne.item.icon),fe.R7$(),fe.Y8G("ngIf",ne.isRenomeando),fe.R7$(),fe.Y8G("ngIf",!ne.isRenomeando),fe.R7$(),fe.Y8G("ngIf",ne.item.items),fe.R7$(),fe.Y8G("ngIf",ne.item.items),fe.R7$(),fe.Y8G("ngIf",!ne.item.items&&ne.contextMenu))},dependencies:[de.YU,de.Sq,de.bT,an.me,an.BC,an.vS,wS.tz,bs.q,LayoutMenuitemComponent],styles:["[_nghost-%COMP%]     .root{display:none}[_nghost-%COMP%]     .link-menu:not(.root){width:auto;display:flex;align-items:center;position:relative;outline:0 none;color:var(--primary-color-text);cursor:pointer;padding:.75rem 1rem;border-bottom-left-radius:0;border-top-left-radius:0;transition:background-color .2s,border-color .2s,box-shadow .2s,margin-left .2s,border-top-left-radius .2s,border-bottom-left-radius .2s}[_nghost-%COMP%]     .link-menu:not(.root) .layout-menuitem-icon{font-size:1.75rem;width:-moz-fit-content;width:fit-content;min-width:25px;text-align:center}[_nghost-%COMP%]     .link-menu:not(.root) .layout-submenu-toggler{display:block;font-size:75%;margin-left:auto;transition:transform .2s}[_nghost-%COMP%]     .link-menu:not(.root).expanded .layout-submenu-toggler{transform:rotate(180deg)}[_nghost-%COMP%]     .link-menu:not(.root) span{transition:opacity .2s ease-in-out;white-space:nowrap}[_nghost-%COMP%]     .link-menu:not(.root).rotina-ativa{background-color:var(--secondary-color);color:var(--secondary-color-text);cursor:default}[_nghost-%COMP%]     .link-menu:not(.root):not(.rotina-ativa):hover{background-color:var(--menu-hover-bg);color:var(--menu-hover-text-color)}[_nghost-%COMP%]     .link-menu:not(.root):not(.rotina-ativa):hover input{color:var(--menu-hover-text-color)}.input-favoritos[_ngcontent-%COMP%]{font-size:1.2rem;color:var(--primary-color-text);background:none;outline:none;border:none;padding:0;font-weight:400;margin-left:.5rem;font-family:var(--font-family);-webkit-font-smoothing:antialiased;width:80%}.input-favoritos[_ngcontent-%COMP%]:focus{background:none;outline:none;border:none;padding:0}"],data:{animation:[(0,_e.hZ)("children",[(0,_e.wk)("collapsed",(0,_e.iF)({height:"0"})),(0,_e.wk)("expanded",(0,_e.iF)({height:"*"})),(0,_e.wk)("hidden",(0,_e.iF)({display:"none"})),(0,_e.wk)("visible",(0,_e.iF)({display:"block"})),(0,_e.kY)("collapsed <=> expanded",(0,_e.i0)("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])]}})}return LayoutMenuitemComponent})();const SS=["inputSearch"];function LayoutMenuComponent_ng_container_6_layout_menuitem_1_Template(te,ne){if(1&te&&fe.nrm(0,"layout-menuitem",10),2&te){const te=ne.$implicit;fe.Y8G("item",te)}}function LayoutMenuComponent_ng_container_6_Template(te,ne){if(1&te&&(fe.qex(0),fe.DNE(1,LayoutMenuComponent_ng_container_6_layout_menuitem_1_Template,1,1,"layout-menuitem",9),fe.bVm()),2&te){const te=fe.XpG();fe.R7$(),fe.Y8G("ngForOf",te.menuItens)}}const layout_menu_component_c1=te=>({invisible:te});function LayoutMenuComponent_ng_template_7_Template(te,ne){if(1&te&&(fe.j41(0,"p",11),fe.EFF(1," Nenhuma rotina encontrada "),fe.k0s()),2&te){const te=fe.XpG();fe.Y8G("ngClass",fe.eq3(1,layout_menu_component_c1,!te.layoutState.menuActive))}}let TS=(()=>{class LayoutMenuComponent{constructor(){this.tabService=(0,fe.WQX)(Yn.r),this.captionMembroService=(0,fe.WQX)($n.q),this.captionComuniqueService=(0,fe.WQX)(nc),this.authService=(0,fe.WQX)(rn.u),this.layoutService=(0,fe.WQX)(Ul.Y),this.membroService=(0,fe.WQX)(no),this.confirmationService=(0,fe.WQX)(Ht.td),this.loadingService=(0,fe.WQX)(Fi.T),this.keyConformationDialog=(0,Zo.A)(),this.menuSearch=new an.MJ("",{nonNullable:!0}),this.menuAdministrativo=this.criarMenu({label:"Administrativo",icon:"fa-light fa-screwdriver-wrench",items:[ki,to,bC,this.criarInputMenuRelatorio(gC,"Relatórios"),this.criarInputMenuRelatorio(hC,"Relatório de Aniversariantes"),{label:"Cadastros",icon:"fa-light fa-folder",items:[oc,G_,Xu,sc,CC,wc,Pc,vC,ap,zc,hp,Pb,vp,Dp,em,Xh,h_,U_,rb,_b,Db,_p,Yb,iC,rC,tC,Kb,uC]}]}),this.menuFinanceiro=this.criarMenu({label:"Mensalidade",icon:"fa-light fa-light fa-calendar",items:[Jn,{label:"Integrações",icon:"fa-light fa-light fa-chart-network text-2xl",items:[{label:"Estadual",icon:"fa-light fa-location-dot",items:[{label:"Remessa",icon:"fa-light fa-dolly",items:[KI,Lp]},{label:"Retorno",icon:"fa-light fa-arrow-turn-left text-2xl",items:[JI,Ep]}]}]}]}),this.menuAtendimento=this.criarMenu({label:"Atendimento",icon:"fa-light fa-comments text-2xl",items:[{label:"Jurídico",icon:"fa-light fa-scale-balanced text-2xl",items:[{labelMenu:"Demandas em Aberto",component:bm},{labelMenu:"Demandas (Todas)",component:Gm},this.criarInputMenuRelatorio(xg,"Relatórios de Demandas"),{label:"Cadastros",icon:"fa-light fa-folder",items:[nb,Lb]}]},{label:"Mente Tática",icon:"fa-light fa-light fa-brain-circuit text-2xl",items:[{labelMenu:"Consultas em Aberto",component:qm},{labelMenu:"Consultas (Todas)",component:Wm},this.criarInputMenuRelatorio(Lg,"Relatório Simplificado"),this.criarInputMenuRelatorio(Mg,"Relatório Completo"),lm]},{label:"Financeiro",icon:"fa-light fa-light fa-money-bill text-2xl",items:[Hf,{labelMenu:"Demandas em Aberto",component:bm},{labelMenu:"Demandas (Todas)",component:gm.S},this.criarInputMenuRelatorio(qf,"Relatório de Reembolso"),{label:"Cadastros",icon:"fa-light fa-folder",items:[Gg,Ug,c_,a_]}]},{label:"Agenda",icon:"fa-light fa-fw fa-calendar",items:[NI,nm]},{label:"Cadastros",icon:"fa-light fa-folder",items:[om,qg,Gf,Qf,n_,cC,t_]},FI]}),this.menuComunicacao=this.criarMenu({label:"Comunicação",icon:"fa-light fa-phone-volume text-2xl",items:[{label:"E-mail",icon:"fa-light fa-envelope",items:[qI,Nc,{label:"Cadastros",icon:"fa-light fa-folder",items:[Dc,Qp]}]}]}),this.menuFerramentas=this.criarMenu({label:"Ferramentas",icon:"fa-light fa-hammer",items:[{label:"Controle de Acesso",icon:"fa-light fa-key",items:[Zn,Of,Rf]},{label:"Histórico",icon:"fa-light fa-server",items:[Yp.G,jf]},{label:"Cadastros",icon:"fa-light fa-folder",items:[Sc,Sp,Zp,W_,Xf,Up]},{label:"Configurações",icon:"fa-light fa-gear",items:[um,Pp,Gp]}]}),this.menuAreaRestrita=this.criarMenu({label:this.captionMembroService.transform("Área do Membro"),icon:"fa-light fa-lock fa-fw",items:[this.criarInputPaginaExterna({component:ZI,icone:"fa-light fa-fw fa-scale-balanced",labelMenu:"Jurídico",url:window.location.origin+"/area-restrita/demandas",id:"DemandaComponent"}),this.criarInputPaginaExterna({component:ZI,icone:"fa-light fa-fw fa-brain-circuit",labelMenu:"Mente Tática",url:window.location.origin+"/area-restrita/sinpol/mente-tatica",id:"MenteTaticaComponent"}),this.criarInputPaginaExterna({component:ZI,icone:"fa-light fa-fw fa-comments-dollar",labelMenu:"Financeiro",url:window.location.origin+"/area-restrita/reembolso",id:"ReembolsoComponent"}),this.criarInputPaginaExterna({component:ZI,icone:"fa-light fa-fw fa-address-card",labelMenu:"Declaração de Associado",url:"https://sinpolsc.infobrcorp.com.br?operacao=declaracao_membro&cod_membro="+this.authService.usuario?.codCc,id:"RotinaDeclaracaoSocio"}),this.criarInputPaginaExterna({component:ZI,icone:"fa-light fa-fw fa-file-edit",labelMenu:"Atualizar Dados",url:window.location.origin+"/area-restrita/recadastramento",id:"RecadastramentoComponent"}),this.criarInputPaginaExterna({component:ZI,icone:"fa-light fa-fw fa-magnifying-glass",labelMenu:"Portal da Transparência",url:window.location.origin+"/sinpol/portal-transparencia",id:"RotinaPortalTransparencia"}),{label:"Número da Sorte",icon:"fa-light fa-fw fa-slot-machine text-2xl",id:"RotinaNumeroDaSorte",command:()=>{const te=this.authService.usuario?.codCc;return te?(this.loadingService.show(),this.membroService.getNumSorteio(te).pipe((0,pn.j)((()=>this.loadingService.hide()))).subscribe((te=>{this.confirmationService.confirm({header:"Número da Sorte",message:`O seu número da sorte é: ${te?String(te):"Não definido"}`,acceptLabel:"Ok",rejectVisible:!1,key:this.keyConformationDialog})}))):this.confirmationService.confirm({header:"Aviso",message:"Não foi possivel buscar o número da sorte",icon:Ht.EE.EXCLAMATION_TRIANGLE,acceptLabel:"Ok",rejectVisible:!1,key:this.keyConformationDialog})}},this.criarInputPaginaExterna({component:ZI,icone:"fa-light fa-fw fa-arrow-right-from-bracket ",labelMenu:"Desassociação",url:window.location.origin+"/area-restrita/sinpol/solicitacao/desfiliacao",id:"SolicitacaoDesfiliacaoComponent"})]}),this.menuAjuda=this.criarMenu({label:"Ajuda",icon:"fa-light fa-circle-question",items:[vS]}),this.menuBrComunique=this.criarMenu({label:`${this.captionComuniqueService.captionBrComunique}`,icon:"pi pi-tablet",items:[{label:"Cadastros",icon:"fa-light fa-folder",items:[Au,wp,bc,sC,Jb]},{labelMenu:"Configurações",tab:{crossChildFooterComponent:jI,header:zI.prototype.header(),icon:zI.prototype.icon(),child:{header:"App",component:zI}}}]}),this.menuSearch.valueChanges.pipe((0,Kl.pQ)()).subscribe((te=>{if(te.length){const ne=this.layoutService.getItensMenuClone();this.layoutService.filteredMenu=this.layoutService.filterMenuBySearch(te,ne)}else this.layoutService.resetFilteredMenu()})),this.authService.usuario$.pipe((0,Kl.pQ)()).subscribe((()=>this.layoutService.montaMenu([this.menuAdministrativo,this.menuFinanceiro,this.menuAtendimento,this.menuComunicacao,this.menuBrComunique,this.menuFerramentas,this.menuAreaRestrita,this.menuAjuda])))}get layoutStateClass(){return{...this.layoutService.layoutStateClass,"input-focus":this.layoutService.isInputFocused}}get menuItens(){return this.layoutService.filteredMenu}get layoutState(){return this.layoutService.state}get isMenuEmpty(){return 0===this.layoutService.filteredMenu.length&&0===this.layoutService.itensMenu.length||this.layoutService.filteredMenu.length>0}criarInputMenuRelatorio(te,ne){return{labelMenu:ne,tab:{header:te.prototype.header(),icon:te.prototype.icon(),child:{header:"Filtros",component:te}}}}criarInputPaginaExterna(te){return{label:te.labelMenu,icon:te.icone,id:te.id,command:()=>{this.tabService.open({component:te.component,header:te.labelMenu,icon:te.icone,data:{url:te.url}})}}}criarItemMenu(te){return te.hasOwnProperty("id")?te:te.hasOwnProperty("component")?this._criarItemMenu(te.component,te.labelMenu,te.command):te.hasOwnProperty("tab")?{label:te.labelMenu,icon:te.tab.icon+" text-2xl",id:te.tab.child.component.name,command:()=>this.tabService.open({...te.tab})}:this._criarItemMenu(te)}_criarItemMenu(te,ne,ie,re){return{label:ne??te.prototype.header(),icon:(re??te.prototype.icon())+" text-2xl",id:te.name,command:ie??(()=>{this.tabService.open(te)})}}criarMenu(te){return{label:te.label,icon:te.icon,items:te.items?.map((te=>te.hasOwnProperty("items")?this.criarMenu(te):this.criarItemMenu(te)))}}static#e=this.ɵfac=function LayoutMenuComponent_Factory(te){return new(te||LayoutMenuComponent)};static#t=this.ɵcmp=fe.VBU({type:LayoutMenuComponent,selectors:[["layout-menu"]],viewQuery:function LayoutMenuComponent_Query(te,ne){if(1&te&&fe.GBs(SS,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.inputElement=te.first)}},decls:10,vars:10,consts:[["stickyClass","","classOnSticky","search-fixed",1,"container-search",3,"ngClass","click"],[1,"fa-light","fa-magnifying-glass","text-2xl",2,"width","max-content","min-width","25px"],[1,"p-input-icon-right","flex","align-items-center","h-full","w-full"],["type","text","brInputText","","placeholder","Pesquisar",3,"formControl","ngClass","focus","blur"],["inputSearch",""],[1,"layout-menu",3,"ngClass"],[4,"ngIf","ngIfElse"],["nenhumaRotina",""],[1,"dialog-topbar",3,"closable","key"],[3,"item",4,"ngFor","ngForOf"],[3,"item"],[1,"mt-3","flex","justify-content-center","white-space-nowrap",2,"color","var(--primary-color-text)","opacity","1","transition","opacity .2s ease-in-out",3,"ngClass"]],template:function LayoutMenuComponent_Template(te,ne){if(1&te&&(fe.j41(0,"div",0),fe.bIt("click",(function LayoutMenuComponent_Template_div_click_0_listener(){return null==ne.inputElement?null:ne.inputElement.nativeElement.focus()})),fe.nrm(1,"i",1),fe.j41(2,"span",2)(3,"input",3,4),fe.bIt("focus",(function LayoutMenuComponent_Template_input_focus_3_listener(){return ne.layoutService.isInputFocused=!0}))("blur",(function LayoutMenuComponent_Template_input_blur_3_listener(){return ne.layoutService.isInputFocused=!1})),fe.k0s()()(),fe.j41(5,"ul",5),fe.DNE(6,LayoutMenuComponent_ng_container_6_Template,2,1,"ng-container",6),fe.k0s(),fe.DNE(7,LayoutMenuComponent_ng_template_7_Template,2,3,"ng-template",null,7,fe.C5r),fe.nrm(9,"p-confirmDialog",8)),2&te){const te=fe.sdS(8);fe.Y8G("ngClass",ne.layoutStateClass),fe.R7$(3),fe.Y8G("formControl",ne.menuSearch)("ngClass",fe.eq3(8,layout_menu_component_c1,!ne.layoutState.menuActive)),fe.R7$(2),fe.Y8G("ngClass",ne.layoutStateClass),fe.R7$(),fe.Y8G("ngIf",ne.isMenuEmpty)("ngIfElse",te),fe.R7$(3),fe.Y8G("closable",!1)("key",ne.keyConformationDialog)}},dependencies:[de.YU,de.Sq,de.bT,an.me,an.BC,Po.T,an.l_,yS,_n.B,AS],styles:["[_nghost-%COMP%]     .container-search{display:flex;align-items:center;background-color:transparent;cursor:text;height:44px;padding:.75rem 1rem;margin:1rem 0;position:sticky;top:-1px;z-index:2;transition:all .2s ease-in-out}[_nghost-%COMP%]     .container-search input{background-color:transparent;border:none;width:100%;height:100%;color:var(--primary-color-text);margin-left:.5rem;opacity:1;transition:opacity .2s ease-in-out;padding:0;font-size:1.2rem}[_nghost-%COMP%]     .container-search input::placeholder{opacity:1;color:var(--primary-color-text);font-size:1.2rem;transition:color .2s ease-in-out}[_nghost-%COMP%]     .container-search input:focus{box-shadow:none;border:none}[_nghost-%COMP%]     .container-search i{color:var(--primary-color-text)}[_nghost-%COMP%]     .container-search .br-clear-icon{opacity:0;pointer-events:none}[_nghost-%COMP%]     .container-search.input-focus{box-shadow:0 0 5px var(--primary-50)}[_nghost-%COMP%]     .container-search.layout-menu-active{margin:1rem .5rem;border-radius:1.5rem;background-color:var(--menu-profundidade-1)}[_nghost-%COMP%]     .container-search.layout-menu-active .br-clear-icon{opacity:1;pointer-events:auto}[_nghost-%COMP%]     .container-search.layout-menu-active.search-fixed{background-color:var(--secondary-800);transform:translateY(0);border-radius:0;margin:1rem 0rem}[_nghost-%COMP%]     .container-search.search-fixed{color:var(--secondary-color-text);border-radius:0 0 1.5rem 1.5rem;transform:translateY(-100%)}[_nghost-%COMP%]     .container-search.search-fixed i{color:var(--secondary-color-text)}[_nghost-%COMP%]     .container-search.search-fixed::placeholder{color:var(--secondary-color-text)}[_nghost-%COMP%]     .layout-menu{margin:0;padding:0;list-style-type:none}[_nghost-%COMP%]     .layout-menu.layout-menu-active layout-menuitem:has(>li>span>a.expanded)>li>span>a.expanded{border-bottom-left-radius:1rem}[_nghost-%COMP%]     .layout-menu.layout-menu-active layout-menuitem:has(>li>span>a.expanded)+layout-menuitem>li>span>a.link-menu{border-top-left-radius:1rem}[_nghost-%COMP%]     .layout-menu.layout-menu-active>layout-menuitem>li>ul>layout-menuitem:last-child layout-menuitem:last-child>li>span>a:not(.expanded).link-menu{border-bottom-left-radius:1rem}[_nghost-%COMP%]     .layout-menu ul{margin:0;padding:0;list-style-type:none;overflow:hidden}[_nghost-%COMP%]     .layout-menu ul ul li .link-menu{background-color:var(--menu-profundidade-1)}[_nghost-%COMP%]     .layout-menu ul ul li .link-menu.layout-menu-active{margin-left:1rem}[_nghost-%COMP%]     .layout-menu ul ul li li .link-menu{background-color:var(--menu-profundidade-2)}[_nghost-%COMP%]     .layout-menu ul ul li li .link-menu.layout-menu-active{margin-left:2rem}[_nghost-%COMP%]     .layout-menu ul ul li li li .link-menu{background-color:var(--menu-profundidade-3)}[_nghost-%COMP%]     .layout-menu ul ul li li li .link-menu.layout-menu-active{margin-left:3rem}[_nghost-%COMP%]     .layout-menu ul ul li li li li .link-menu{background-color:var(--menu-profundidade-4)}[_nghost-%COMP%]     .layout-menu ul ul li li li li .link-menu.layout-menu-active{margin-left:4rem}"]})}return LayoutMenuComponent})();const layout_sidebar_component_c0=te=>({invisible:te});function LayoutSidebarComponent_img_3_Template(te,ne){if(1&te&&fe.nrm(0,"img",6),2&te){const te=fe.XpG();fe.Y8G("ngClass",fe.eq3(1,layout_sidebar_component_c0,te.layoutState.menuActive))}}const layout_sidebar_component_c1=(te,ne)=>({"pi-lock":te,"pi-lock-open":ne});function LayoutSidebarComponent_button_4_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"button",7),fe.bIt("click",(function LayoutSidebarComponent_button_4_Template_button_click_0_listener(){fe.eBV(te);const ne=fe.XpG();return fe.Njj(ne.toggleAnchor())})),fe.k0s()}if(2&te){const te=fe.XpG();fe.Y8G("ngClass",fe.l_i(1,layout_sidebar_component_c1,te.layoutState.anchored,!te.layoutState.anchored))}}const layout_sidebar_component_c2=(te,ne)=>({invisible:te,"w-3rem":ne});let FS=(()=>{class LayoutSidebarComponent{constructor(){this.el=(0,fe.WQX)(fe.aKT),this.layoutService=(0,fe.WQX)(Ul.Y),this.configComponentService=(0,fe.WQX)($l.p),this.isHovered=!1,this.configComponentService.getConfig(this.constructor.name).subscribe({next:te=>{te&&(this.layoutService.state.anchored=te.config.anchored,this.layoutService.state.menuActive=te.config.menuActive)}})}get layoutStateClass(){return this.layoutService.layoutStateClass}get isDesktop(){return this.layoutService.isDesktop()}get layoutState(){return this.layoutService.state}ngOnInit(){this.sub=this.layoutService.isInputFocused$.subscribe((te=>{te||setTimeout((()=>{this.isHovered||this.layoutService.state.anchored||(this.layoutService.state.menuActive=!1)}),200)}))}ngOnDestroy(){this.sub?.unsubscribe()}onMouseEnter(){this.isHovered=!0,this.layoutService.state.anchored||(this.mouseTimeout&&(clearTimeout(this.mouseTimeout),this.mouseTimeout=void 0),this.layoutService.state.menuActive=!0)}onMouseLeave(){this.isHovered=!1,this.layoutService.state.anchored||this.mouseTimeout||(this.mouseTimeout=setTimeout((()=>{this.layoutService.isInputFocused||(this.layoutService.state.menuActive=!1)}),200))}toggleAnchor(){this.layoutService.toggleAnchorState(),this.configComponentService.save(this.constructor.name,this.layoutService.state).subscribe()}static#e=this.ɵfac=function LayoutSidebarComponent_Factory(te){return new(te||LayoutSidebarComponent)};static#t=this.ɵcmp=fe.VBU({type:LayoutSidebarComponent,selectors:[["layout-sidebar"]],decls:7,vars:7,consts:[[1,"layout-sidebar",3,"ngClass","mouseenter","mouseleave"],[1,"header"],["src","../../assets/empresa/images/logo_menu_extendido.png",1,"logo-extendido",3,"ngClass"],["class","logo-recolhido","src","../../assets/empresa/images/logo_menu_recolhido.png",3,"ngClass",4,"ngIf"],["class","anchor-button p-link pi shadow-none fadein animation-duration-400","type","button",3,"ngClass","click",4,"ngIf"],[1,"layout-menu-container"],["src","../../assets/empresa/images/logo_menu_recolhido.png",1,"logo-recolhido",3,"ngClass"],["type","button",1,"anchor-button","p-link","pi","shadow-none","fadein","animation-duration-400",3,"ngClass","click"]],template:function LayoutSidebarComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0),fe.bIt("mouseenter",(function LayoutSidebarComponent_Template_div_mouseenter_0_listener(){return ne.onMouseEnter()}))("mouseleave",(function LayoutSidebarComponent_Template_div_mouseleave_0_listener(){return ne.onMouseLeave()})),fe.j41(1,"div",1),fe.nrm(2,"img",2),fe.DNE(3,LayoutSidebarComponent_img_3_Template,1,3,"img",3)(4,LayoutSidebarComponent_button_4_Template,1,4,"button",4),fe.k0s(),fe.j41(5,"div",5),fe.nrm(6,"layout-menu"),fe.k0s()()),2&te&&(fe.Y8G("ngClass",ne.layoutStateClass),fe.R7$(2),fe.Y8G("ngClass",fe.l_i(4,layout_sidebar_component_c2,!ne.layoutState.menuActive,!ne.layoutState.menuActive)),fe.R7$(),fe.Y8G("ngIf",ne.isDesktop),fe.R7$(),fe.Y8G("ngIf",ne.layoutState.menuActive))},dependencies:[de.YU,de.bT,TS],styles:["[_nghost-%COMP%]     .layout-sidebar{position:fixed;display:flex;flex-direction:column;height:100%;background:var(--primary-color);transition:width .3s cubic-bezier(0,0,.2,1);top:0;left:0;width:3.5rem;z-index:100}[_nghost-%COMP%]     .layout-sidebar .header{padding:1.5rem 0 1rem;display:flex;justify-content:center;align-items:center;height:110px;position:relative}[_nghost-%COMP%]     .layout-sidebar .header .logo-recolhido{width:3rem;opacity:1;transition:opacity .2s ease-in-out;position:absolute}[_nghost-%COMP%]     .layout-sidebar .header .logo-extendido{width:12rem;opacity:1;transition:opacity .2s ease-in-out,width .15s ease-in-out;position:absolute}[_nghost-%COMP%]     .layout-sidebar .header .anchor-button{position:absolute;right:0;margin-right:2.5rem;color:var(--primary-color-text);font-size:1.25rem}[_nghost-%COMP%]     .layout-sidebar .layout-menu-container{flex:1;font-size:1.2rem;padding-bottom:2rem;overflow-y:auto;overflow-x:hidden;scrollbar-width:0}[_nghost-%COMP%]     .layout-sidebar .layout-menu-container::-webkit-scrollbar{width:0}[_nghost-%COMP%]     .layout-sidebar.layout-menu-active{width:25rem}"]})}return LayoutSidebarComponent})();var VS=ie(1782);const GS=["menubutton"];function LayoutTopbarComponent_div_7_i_4_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"i",25),fe.bIt("click",(function LayoutTopbarComponent_div_7_i_4_Template_i_click_0_listener(){fe.eBV(te);const ne=fe.XpG().$implicit,ie=fe.XpG();return fe.Njj(ie.closeTab(ne.id))})),fe.k0s()}}const layout_topbar_component_c1=te=>({active:te}),layout_topbar_component_c2=te=>[te];function LayoutTopbarComponent_div_7_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",22),fe.bIt("click",(function LayoutTopbarComponent_div_7_Template_div_click_0_listener(){const ne=fe.eBV(te).index,ie=fe.XpG();return fe.Njj(ie.goTo(ne))})),fe.nrm(1,"i",23),fe.j41(2,"span"),fe.EFF(3),fe.k0s(),fe.DNE(4,LayoutTopbarComponent_div_7_i_4_Template,1,0,"i",24),fe.k0s()}if(2&te){const te=ne.$implicit,ie=ne.index,re=fe.XpG();fe.Y8G("ngClass",fe.eq3(4,layout_topbar_component_c1,ie===(null==re.tabLayout?null:re.tabLayout.index))),fe.R7$(),fe.Y8G("ngClass",fe.eq3(6,layout_topbar_component_c2,te.icon)),fe.R7$(2),fe.JRh(te.header),fe.R7$(),fe.Y8G("ngIf",re.tabLayout.tabs.length>1&&!te.proibidoFechar)}}function LayoutTopbarComponent_div_9_div_1_div_1_i_3_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"i",25),fe.bIt("click",(function LayoutTopbarComponent_div_9_div_1_div_1_i_3_Template_i_click_0_listener(){fe.eBV(te);const ne=fe.XpG().$implicit,ie=fe.XpG(2).$implicit,re=fe.XpG();return fe.Njj(re.closeTab(ie.id,ne.id))})),fe.k0s()}}function LayoutTopbarComponent_div_9_div_1_div_1_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",22),fe.bIt("click",(function LayoutTopbarComponent_div_9_div_1_div_1_Template_div_click_0_listener(){const ne=fe.eBV(te).index,ie=fe.XpG(2).index,re=fe.XpG();return fe.Njj(re.goTo(ie,ne))})),fe.j41(1,"span"),fe.EFF(2),fe.k0s(),fe.DNE(3,LayoutTopbarComponent_div_9_div_1_div_1_i_3_Template,1,0,"i",24),fe.k0s()}if(2&te){const te=ne.$implicit,ie=ne.index,re=fe.XpG(2).$implicit;fe.Y8G("ngClass",fe.eq3(3,layout_topbar_component_c1,ie===re.childIndex)),fe.R7$(2),fe.JRh(te.header),fe.R7$(),fe.Y8G("ngIf",re.children.length>1&&!re.proibidoFechar)}}function LayoutTopbarComponent_div_9_div_1_Template(te,ne){if(1&te&&(fe.j41(0,"div",6),fe.DNE(1,LayoutTopbarComponent_div_9_div_1_div_1_Template,4,5,"div",7),fe.k0s()),2&te){const te=fe.XpG().$implicit;fe.R7$(),fe.Y8G("ngForOf",te.children)}}function LayoutTopbarComponent_div_9_Template(te,ne){if(1&te&&(fe.j41(0,"div",26),fe.DNE(1,LayoutTopbarComponent_div_9_div_1_Template,2,1,"div",27),fe.k0s()),2&te){const te=ne.$implicit,ie=ne.index,re=fe.XpG();fe.Y8G("ngClass",ie===(null==re.tabLayout?null:re.tabLayout.index)?"block":"hidden"),fe.R7$(),fe.Y8G("ngIf",re.hasChildren(te))}}const layout_topbar_component_c3=()=>({height:"2rem"});function LayoutTopbarComponent_p_avatar_11_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"p-avatar",28),fe.bIt("click",(function LayoutTopbarComponent_p_avatar_11_Template_p_avatar_click_0_listener(ne){fe.eBV(te),fe.XpG();const ie=fe.sdS(17);return fe.Njj(ie.toggle(ne))})),fe.k0s()}if(2&te){const te=fe.XpG();fe.Aen(fe.lJ4(3,layout_topbar_component_c3)),fe.Y8G("image",null==te.usuario.docEmpresa?null:te.usuario.docEmpresa.url)}}function LayoutTopbarComponent_p_avatar_12_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"p-avatar",29),fe.bIt("click",(function LayoutTopbarComponent_p_avatar_12_Template_p_avatar_click_0_listener(ne){fe.eBV(te),fe.XpG();const ie=fe.sdS(17);return fe.Njj(ie.toggle(ne))})),fe.k0s()}2&te&&fe.Aen(fe.lJ4(2,layout_topbar_component_c3))}function LayoutTopbarComponent_p_avatar_19_Template(te,ne){if(1&te&&fe.nrm(0,"p-avatar",30),2&te){const te=fe.XpG();fe.Y8G("image",null==te.usuario.docEmpresa?null:te.usuario.docEmpresa.url)}}function LayoutTopbarComponent_p_avatar_20_Template(te,ne){1&te&&fe.nrm(0,"p-avatar",31)}const layout_topbar_component_c4=te=>({marginAnchored:te});let qS=(()=>{class LayoutTopbarComponent{constructor(){this.confirmationService=(0,fe.WQX)(Ht.td),this.authService=(0,fe.WQX)(rn.u),this.tabService=(0,fe.WQX)(Yn.r),this.router=(0,fe.WQX)(Qt.Ix),this.layoutService=(0,fe.WQX)(Ul.Y),this.usuario=this.authService.usuario,this.keyConformationDialog=(0,Zo.A)()}get isAnchored(){return this.layoutService.state.anchored}ngOnInit(){this.tabService.tabLayout$.subscribe((te=>this.tabLayout=te))}hasChildren(te){return"children"in te}goTo(te,ne){this.tabService.goTo(te,ne)}closeTab(te,ne){this.tabService.closeTab(te,ne)}toggleMobileMenu(){}signOut(){this.confirmationService.confirm({header:"Aviso",message:"Será necessário informar um usuário e senha novamente",icon:Ht.EE.EXCLAMATION_TRIANGLE,acceptLabel:"Desconectar",rejectLabel:"Cancelar",dismissableMask:!0,defaultFocus:"none",key:this.keyConformationDialog,acceptButtonStyleClass:"p-button-danger",rejectButtonStyleClass:"p-button-danger p-button-outlined",accept:()=>{this.authService.logOutSistema(),this.tabService.fechaAbasLogout(),this.router.navigate(["/auth"])}})}static#e=this.ɵfac=function LayoutTopbarComponent_Factory(te){return new(te||LayoutTopbarComponent)};static#t=this.ɵcmp=fe.VBU({type:LayoutTopbarComponent,selectors:[["layout-topbar"]],viewQuery:function LayoutTopbarComponent_Query(te,ne){if(1&te&&fe.GBs(GS,5),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.menuButton=te.first)}},decls:27,vars:16,consts:[[1,"layout-topbar"],[1,"sm:flex","md:hidden","topbar-start"],["type","button",1,"topbar-menubutton","p-link","p-trigger",3,"click"],["menubutton",""],[1,"pi","pi-bars","primary-color-text"],[1,"grow","topbar-tabs",3,"ngClass"],[1,"tab-row"],["class","tab",3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"topbar-end"],["shape","circle",3,"image","style","click",4,"ngIf"],["icon","pi pi-user","shape","circle",3,"style","click",4,"ngIf"],[1,"white-space-nowrap","font-medium",2,"color","var(--primary-color-text)",3,"click"],["icon","pi pi-sign-out","pTooltip","Desconectar",3,"rounded","text","onClick"],["op",""],[1,"flex","align-items-center","gap-3"],["shape","circle","size","large",3,"image",4,"ngIf"],["icon","pi pi-user","shape","circle","size","large",4,"ngIf"],[1,"flex","flex-column"],[1,"white-space-nowrap","font-medium",2,"font-size","1.125rem"],[1,"white-space-nowrap"],[1,"dialog-topbar",3,"closable","key"],[1,"tab",3,"ngClass","click"],[1,"mr-1",3,"ngClass"],["class","pi pi-times close-tab-icon",3,"click",4,"ngIf"],[1,"pi","pi-times","close-tab-icon",3,"click"],[3,"ngClass"],["class","tab-row",4,"ngIf"],["shape","circle",3,"image","click"],["icon","pi pi-user","shape","circle",3,"click"],["shape","circle","size","large",3,"image"],["icon","pi pi-user","shape","circle","size","large"]],template:function LayoutTopbarComponent_Template(te,ne){if(1&te){const te=fe.RV6();fe.j41(0,"div",0)(1,"div",1)(2,"button",2,3),fe.bIt("click",(function LayoutTopbarComponent_Template_button_click_2_listener(){return ne.toggleMobileMenu()})),fe.nrm(4,"i",4),fe.k0s()(),fe.j41(5,"div",5)(6,"div",6),fe.DNE(7,LayoutTopbarComponent_div_7_Template,5,8,"div",7),fe.k0s(),fe.j41(8,"div"),fe.DNE(9,LayoutTopbarComponent_div_9_Template,2,2,"div",8),fe.k0s()(),fe.j41(10,"div",9),fe.DNE(11,LayoutTopbarComponent_p_avatar_11_Template,1,4,"p-avatar",10)(12,LayoutTopbarComponent_p_avatar_12_Template,1,3,"p-avatar",11),fe.j41(13,"span",12),fe.bIt("click",(function LayoutTopbarComponent_Template_span_click_13_listener(ne){fe.eBV(te);const ie=fe.sdS(17);return fe.Njj(ie.toggle(ne))})),fe.EFF(14),fe.k0s(),fe.j41(15,"p-button",13),fe.bIt("onClick",(function LayoutTopbarComponent_Template_p_button_onClick_15_listener(){return ne.signOut()})),fe.k0s()()(),fe.j41(16,"p-overlayPanel",null,14)(18,"div",15),fe.DNE(19,LayoutTopbarComponent_p_avatar_19_Template,1,1,"p-avatar",16)(20,LayoutTopbarComponent_p_avatar_20_Template,1,0,"p-avatar",17),fe.j41(21,"div",18)(22,"span",19),fe.EFF(23),fe.k0s(),fe.j41(24,"span",20),fe.EFF(25),fe.k0s()()()(),fe.nrm(26,"p-confirmDialog",21)}2&te&&(fe.R7$(5),fe.Y8G("ngClass",fe.eq3(14,layout_topbar_component_c4,ne.isAnchored)),fe.R7$(2),fe.Y8G("ngForOf",null==ne.tabLayout?null:ne.tabLayout.tabs),fe.R7$(2),fe.Y8G("ngForOf",null==ne.tabLayout?null:ne.tabLayout.tabs),fe.R7$(2),fe.Y8G("ngIf",null==ne.usuario.docEmpresa?null:ne.usuario.docEmpresa.url),fe.R7$(),fe.Y8G("ngIf",!(null!=ne.usuario.docEmpresa&&ne.usuario.docEmpresa.url)),fe.R7$(2),fe.JRh(ne.usuario.nomeUsuario),fe.R7$(),fe.Y8G("rounded",!0)("text",!0),fe.R7$(4),fe.Y8G("ngIf",null==ne.usuario.docEmpresa?null:ne.usuario.docEmpresa.url),fe.R7$(),fe.Y8G("ngIf",!(null!=ne.usuario.docEmpresa&&ne.usuario.docEmpresa.url)),fe.R7$(3),fe.JRh(ne.usuario.nomeUsuario),fe.R7$(2),fe.JRh(ne.usuario.nbrGrupoAcesso.nomeNbrGrupoAcesso),fe.R7$(),fe.Y8G("closable",!1)("key",ne.keyConformationDialog))},dependencies:[de.YU,de.Sq,de.bT,Po.T,sn.$n,Ao.m,Pn,VS.j],styles:["[_nghost-%COMP%]     .topbar-tabs{width:-webkit-fill-available;overflow-x:auto}[_nghost-%COMP%]     .topbar-tabs::-webkit-scrollbar-track{background-color:var(--primary-color)}.layout-topbar[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:var(--primary-color);position:relative;z-index:99}.layout-topbar[_ngcontent-%COMP%]   .topbar-start[_ngcontent-%COMP%]{display:flex;align-items:center}.layout-topbar[_ngcontent-%COMP%]   .topbar-start[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}.topbar-tabs[_ngcontent-%COMP%]{display:flex;flex-direction:column}.tab-row[_ngcontent-%COMP%]{display:flex}.tab[_ngcontent-%COMP%]{padding:10px;font-weight:700;border-width:0 0 2px 0;background:var(--primary-color);font-weight:400;color:#fff;white-space:nowrap;display:flex;align-items:center;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}.tab[_ngcontent-%COMP%]:hover:not(.active){background-color:var(--menu-hover-bg)!important;color:var(--menu-hover-text-color)!important;cursor:pointer}.active[_ngcontent-%COMP%]{background:var(--secondary-color);color:var(--secondary-color-text)}.close-tab-icon[_ngcontent-%COMP%]{margin-left:5px;font-size:.8rem;padding:5px;border-radius:50%}.close-tab-icon[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:var(--highlight-bg)}[_nghost-%COMP%]     .topbar-end{cursor:pointer;display:flex;gap:.5rem;justify-content:flex-end;align-items:center;margin-left:.5rem;margin-right:.5rem}[_nghost-%COMP%]     .topbar-end .p-button.p-button-text{color:var(--primary-color-text);padding:.5rem;height:2rem;width:2rem}[_nghost-%COMP%]     .topbar-end .p-button.p-button-text .p-button-icon{font-size:1.25rem}[_nghost-%COMP%]     .topbar-end .p-button.p-button-text:enabled:hover{color:var(--primary-color-text)}[_nghost-%COMP%]     .topbar-end .p-button.p-button-text:enabled:active{color:var(--primary-color-text)}.primary-color-text[_ngcontent-%COMP%]{color:var(--primary-color-text)}"]})}return LayoutTopbarComponent})();new fe.nKC("EventArgument",{providedIn:"root",factory:function defaultEventArgumentFactory(){return"$event"}}),new fe.nKC("IoEventContext"),new fe.nKC("IoEventContextProvider");const iT=new fe.nKC("DynamicComponentInjector");let aT=(()=>{class ComponentOutletInjectorModule{}return ComponentOutletInjectorModule.ɵfac=function ComponentOutletInjectorModule_Factory(te){return new(te||ComponentOutletInjectorModule)},ComponentOutletInjectorModule.ɵmod=fe.$C({type:ComponentOutletInjectorModule}),ComponentOutletInjectorModule.ɵinj=fe.G2t({}),ComponentOutletInjectorModule})(),lT=(()=>{class DynamicIoModule{}return DynamicIoModule.ɵfac=function DynamicIoModule_Factory(te){return new(te||DynamicIoModule)},DynamicIoModule.ɵmod=fe.$C({type:DynamicIoModule}),DynamicIoModule.ɵinj=fe.G2t({imports:[aT]}),DynamicIoModule})(),dT=(()=>{class DynamicComponent{constructor(te){this.vcr=te,this.ndcDynamicCreated=new fe.bkB,this.componentRef=null}ngOnChanges(te){DynamicComponent.UpdateOnInputs.some((ne=>te.hasOwnProperty(ne)))&&this.createDynamicComponent()}createDynamicComponent(){this.vcr.clear(),this.componentRef=null,this.ndcDynamicComponent&&(this.componentRef=this.vcr.createComponent(this.ndcDynamicComponent,{index:0,injector:this._resolveInjector(),projectableNodes:this.ndcDynamicContent,ngModuleRef:this.ndcDynamicNgModuleRef,environmentInjector:this.ndcDynamicEnvironmentInjector}),this.ndcDynamicCreated.emit(this.componentRef))}_resolveInjector(){let te=this.ndcDynamicInjector||this.vcr.injector;return this.ndcDynamicProviders&&(te=fe.zZn.create({providers:this.ndcDynamicProviders,parent:te})),te}}return DynamicComponent.UpdateOnInputs=["ndcDynamicComponent","ndcDynamicInjector","ndcDynamicProviders","ndcDynamicContent","ndcDynamicNgModuleRef","ndcDynamicEnvironmentInjector"],DynamicComponent.ɵfac=function DynamicComponent_Factory(te){return new(te||DynamicComponent)(fe.rXU(fe.c1b))},DynamicComponent.ɵcmp=fe.VBU({type:DynamicComponent,selectors:[["ndc-dynamic"]],inputs:{ndcDynamicComponent:"ndcDynamicComponent",ndcDynamicInjector:"ndcDynamicInjector",ndcDynamicProviders:"ndcDynamicProviders",ndcDynamicContent:"ndcDynamicContent",ndcDynamicNgModuleRef:"ndcDynamicNgModuleRef",ndcDynamicEnvironmentInjector:"ndcDynamicEnvironmentInjector"},outputs:{ndcDynamicCreated:"ndcDynamicCreated"},standalone:!0,features:[fe.Jv_([{provide:iT,useExisting:DynamicComponent}]),fe.OA$,fe.aNF],decls:0,vars:0,template:function DynamicComponent_Template(te,ne){},encapsulation:2}),DynamicComponent})(),uT=(()=>{class DynamicModule{}return DynamicModule.ɵfac=function DynamicModule_Factory(te){return new(te||DynamicModule)},DynamicModule.ɵmod=fe.$C({type:DynamicModule}),DynamicModule.ɵinj=fe.G2t({imports:[lT,dT,lT]}),DynamicModule})();new fe.nKC("ReflectRef",{providedIn:"root",factory:()=>window.Reflect});const pT=["topBarContainer"];function LayoutComponent_div_6_span_1_Template(te,ne){if(1&te&&(fe.j41(0,"span"),fe.nrm(1,"ndc-dynamic",8),fe.k0s()),2&te){const te=fe.XpG().$implicit;fe.R7$(),fe.Y8G("ndcDynamicInjector",te.injector)("ndcDynamicComponent",te.component)}}function LayoutComponent_div_6_span_2_div_1_Template(te,ne){if(1&te&&(fe.j41(0,"div",10),fe.nrm(1,"ndc-dynamic",8),fe.k0s()),2&te){const te=ne.$implicit,ie=ne.index,re=fe.XpG(2).$implicit;fe.Y8G("ngClass",ie===re.childIndex?"block":"hidden"),fe.R7$(),fe.Y8G("ndcDynamicInjector",te.injector)("ndcDynamicComponent",te.component)}}function LayoutComponent_div_6_span_2_Template(te,ne){if(1&te&&(fe.j41(0,"span"),fe.DNE(1,LayoutComponent_div_6_span_2_div_1_Template,2,3,"div",9),fe.k0s()),2&te){const te=fe.XpG().$implicit;fe.R7$(),fe.Y8G("ngForOf",te.children)}}function LayoutComponent_div_6_footer_3_Template(te,ne){if(1&te&&(fe.j41(0,"footer",11),fe.nrm(1,"ndc-dynamic",12),fe.k0s()),2&te){const te=fe.XpG().$implicit;fe.R7$(),fe.Y8G("ndcDynamicComponent",te.crossChildFooterComponent)("ndcDynamicInjector",te.injector)}}function LayoutComponent_div_6_Template(te,ne){if(1&te&&(fe.j41(0,"div",5),fe.DNE(1,LayoutComponent_div_6_span_1_Template,2,2,"span",6)(2,LayoutComponent_div_6_span_2_Template,2,1,"span",6)(3,LayoutComponent_div_6_footer_3_Template,2,2,"footer",7),fe.k0s()),2&te){const te=ne.$implicit,ie=ne.index,re=fe.XpG();fe.HbH("layout-content "+(re.hasChildren(te)?"":"br-tab")),fe.Y8G("ngClass",ie===(null==re.tabLayout?null:re.tabLayout.index)?"block":"hidden")("ngStyle",re.calcHeight),fe.R7$(),fe.Y8G("ngIf",!re.hasChildren(te)),fe.R7$(),fe.Y8G("ngIf",re.hasChildren(te)),fe.R7$(),fe.Y8G("ngIf",te.crossChildFooterComponent)}}const layout_component_c1=()=>({width:"50vw"});let hT=(()=>{class LayoutComponent{constructor(){this.layoutService=(0,fe.WQX)(Ul.Y),this.changeRef=(0,fe.WQX)(fe.gRc),this.tabService=(0,fe.WQX)(Yn.r)}get keyConfirmDialogRoot(){return this.layoutService.keyConfirmDialogRoot}get layoutStateClass(){return this.layoutService.layoutStateClass}get calcHeight(){return{height:this.topBarContainer?`calc(100% - ${this.topBarContainer.nativeElement.offsetHeight}px)`:"100%"}}ngOnInit(){this.tabService.tabLayout$.subscribe((te=>{this.tabLayout=te,this.changeRef.detectChanges()})),this.tabService.open({component:Hl,proibidoFechar:!0})}hasChildren(te){return"children"in te}static#e=this.ɵfac=function LayoutComponent_Factory(te){return new(te||LayoutComponent)};static#t=this.ɵcmp=fe.VBU({type:LayoutComponent,selectors:[["layout"]],viewQuery:function LayoutComponent_Query(te,ne){if(1&te&&(fe.GBs(FS,5),fe.GBs(qS,5),fe.GBs(pT,5)),2&te){let te;fe.mGM(te=fe.lsd())&&(ne.layoutSidebar=te.first),fe.mGM(te=fe.lsd())&&(ne.layoutTopbar=te.first),fe.mGM(te=fe.lsd())&&(ne.topBarContainer=te.first)}},decls:8,vars:6,consts:[[1,"layout-container","p-ripple-disabled","layout-reveal","layout-primarycolor-menu","layout-light",3,"ngClass"],[1,"layout-content-wrapper"],["topBarContainer",""],[3,"class","ngClass","ngStyle",4,"ngFor","ngForOf"],[3,"key"],[3,"ngClass","ngStyle"],[4,"ngIf"],["class","footer",4,"ngIf"],[3,"ndcDynamicInjector","ndcDynamicComponent"],["class","layout-content br-tab",3,"ngClass",4,"ngFor","ngForOf"],[1,"layout-content","br-tab",3,"ngClass"],[1,"footer"],[3,"ndcDynamicComponent","ndcDynamicInjector"]],template:function LayoutComponent_Template(te,ne){1&te&&(fe.j41(0,"div",0),fe.nrm(1,"layout-sidebar"),fe.j41(2,"div",1)(3,"div",null,2),fe.nrm(5,"layout-topbar"),fe.k0s(),fe.DNE(6,LayoutComponent_div_6_Template,4,7,"div",3),fe.nrm(7,"p-confirmDialog",4),fe.k0s()()),2&te&&(fe.Y8G("ngClass",ne.layoutStateClass),fe.R7$(6),fe.Y8G("ngForOf",null==ne.tabLayout?null:ne.tabLayout.tabs),fe.R7$(),fe.Aen(fe.lJ4(5,layout_component_c1)),fe.Y8G("key",ne.keyConfirmDialogRoot))},dependencies:[de.YU,de.Sq,de.bT,de.B3,Po.T,dT,FS,qS],styles:[".layout-container[_ngcontent-%COMP%]{height:100%}.layout-content-wrapper[_ngcontent-%COMP%]{margin-left:3.5rem;display:flex;flex-direction:column;height:100%;transition:margin-left .3s cubic-bezier(0,0,.2,1)}.layout-content[_ngcontent-%COMP%]{height:100%;position:relative;overflow:auto}.layout-menu-anchored[_ngcontent-%COMP%]   .layout-content-wrapper[_ngcontent-%COMP%]{margin-left:25rem}.footer[_ngcontent-%COMP%]{z-index:10;width:100%;position:absolute;bottom:0}"]})}return LayoutComponent})();const mT=[{path:"",component:hT,canActivate:[(te,ne)=>{const ie=(0,fe.WQX)(rn.u),re=(0,fe.WQX)(Qt.Ix),le=ie.getToken(),ce=ie.usuario,de=ie.getJwtClaims();return!ce&&!le||de?.origem!==rn.N.Sistema?re.createUrlTree(["/auth"]):ie.getPerfilUsuario().pipe((0,Jt.M)((te=>ie.usuario=te)),(0,Zt.T)((()=>!0)),(0,tn.W)((()=>(0,nn.of)(re.createUrlTree(["/auth"])))))}]},{path:"area-restrita",children:[{path:"demandas",component:Or,canActivate:[areaRestritaGuard]},{path:"demandas/nova",component:ur,canActivate:[areaRestritaGuard]},{path:"demandas/:id/:origem",component:Ir,canActivate:[areaRestritaGuard]},{path:"recadastramento",component:oa},{path:"reembolso",component:sa,canActivate:[areaRestritaGuard]},{path:"reembolso/novo",component:Ar,canActivate:[areaRestritaGuard]},{path:"sinpol",children:[{path:"solicitacao",component:Xs},{path:"solicitacao/filiacao",component:tl},{path:"solicitacao/desfiliacao",component:zs},{path:"mente-tatica",component:Ha,canActivate:[areaRestritaGuard]},{path:"portal-transparencia",component:fs},{path:"area-do-conveniado",component:da}]},{path:"",component:fo,canActivate:[areaRestritaGuard],pathMatch:"full"},{path:"auth",component:Ln},{path:"**",redirectTo:"/notfound"}]},{path:"google-auth",loadChildren:()=>ie.e(511).then(ie.bind(ie,1511)).then((te=>te.GoogleAuthModule))},{path:"auth",loadChildren:()=>ie.e(701).then(ie.bind(ie,701)).then((te=>te.AuthModule))},{path:"sinpol/portal-transparencia",component:fs},{path:"notfound",loadChildren:()=>ie.e(883).then(ie.bind(ie,1883)).then((te=>te.NotfoundModule))},{path:"login",children:[{path:"forum",component:zl}]},{path:"externo",canActivate:[(te,ne)=>{const ie=(0,fe.WQX)(rn.u),re=(0,fe.WQX)(Qt.Ix),le=te.queryParams.token;return le?(ie.setToken(le),ie.getPerfilUsuario().pipe((0,Jt.M)((te=>ie.usuario=te)),(0,Zt.T)((()=>!0)),(0,tn.W)((()=>(0,nn.of)(re.createUrlTree(["/notfound"])))))):re.createUrlTree(["/notfound"])}],children:[{path:"demanda/:id",component:cl}]},{path:"notfound",loadChildren:()=>ie.e(883).then(ie.bind(ie,1883)).then((te=>te.NotfoundModule))},{path:"**",redirectTo:"/notfound"}];let gT=(()=>{class AppRoutingModule{static#e=this.ɵfac=function AppRoutingModule_Factory(te){return new(te||AppRoutingModule)};static#t=this.ɵmod=fe.$C({type:AppRoutingModule});static#n=this.ɵinj=fe.G2t({imports:[Qt.iI.forRoot(mT),Qt.iI]})}return AppRoutingModule})(),fT=(()=>{class AuthTokenInterceptor{constructor(te){this.authService=te}intercept(te,ne){const ie=this.authService.getToken();return ie&&(te=te.clone({setHeaders:{Authorization:`Bearer ${ie}`}})),ne.handle(te)}static#e=this.ɵfac=function AuthTokenInterceptor_Factory(te){return new(te||AuthTokenInterceptor)(fe.KVO(rn.u))};static#t=this.ɵprov=fe.jDH({token:AuthTokenInterceptor,factory:AuthTokenInterceptor.ɵfac})}return AuthTokenInterceptor})(),wT=(()=>{class LayoutModule{static#e=this.ɵfac=function LayoutModule_Factory(te){return new(te||LayoutModule)};static#t=this.ɵmod=fe.$C({type:LayoutModule});static#n=this.ɵinj=fe.G2t({providers:[Ht.td],imports:[re.Bb,an.YN,ue.q1,zt,Po.F,uT,de.MD,an.X1,wS.rc,Fn,VS.d,YI.u,bs.u]})}return LayoutModule})();function initializeApp(te,ne,ie){return()=>ie.carregarConfiguracao().pipe((0,Wt.n)((()=>(0,Kt.p)([te.getCaptionMembro(),ne.getCaptionBrComunique()]))))}(0,de.EO)(ge);let AT=(()=>{class AppModule{static#e=this.ɵfac=function AppModule_Factory(te){return new(te||AppModule)};static#t=this.ɵmod=fe.$C({type:AppModule,bootstrap:[xn.Z]});static#n=this.ɵinj=fe.G2t({providers:[{provide:fe.xe9,useValue:"pt-BR"},{provide:ue.a7,useClass:fT,multi:!0},{provide:fe.hnV,useFactory:initializeApp,deps:[$n.q,nc,oo.v],multi:!0},Ht.bg,Ht.td,Ut.o3],imports:[gT,wT,re.Bb,zt,Yt.MB,$t.d]})}return AppModule})();re.sG().bootstrapModule(AT).catch((te=>console.error(te))),ce.H.prototype.calculateAutoSize=function(){this._autoSize&&!this.d_loading&&Promise.resolve().then((()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative";const te=this.elementViewChild.nativeElement.scrollTop;this.elementViewChild.nativeElement.style.contain="none";const[ne,ie]=[le.D.getWidth(this.contentEl),le.D.getHeight(this.contentEl)];ne!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),ie!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[re,ce]=[le.D.getWidth(this.elementViewChild.nativeElement),le.D.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=re<this.defaultWidth?re+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=ce<this.defaultHeight?ce+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain="",this.elementViewChild.nativeElement.scrollTop=te}}))}},3277:function(te,ne){var ie,re,le;re=[],void 0===(le="function"==typeof(ie=function(){"use strict";function b(te,ne){return void 0===ne?ne={autoBom:!1}:"object"!=typeof ne&&(console.warn("Deprecated: Expected third argument to be a object"),ne={autoBom:!ne}),ne.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(te.type)?new Blob(["\ufeff",te],{type:te.type}):te}function c(te,ne,ie){var le=new XMLHttpRequest;le.open("GET",te),le.responseType="blob",le.onload=function(){re(le.response,ne,ie)},le.onerror=function(){console.error("could not download file")},le.send()}function d(te){var ne=new XMLHttpRequest;ne.open("HEAD",te,!1);try{ne.send()}catch(te){}return 200<=ne.status&&299>=ne.status}function e(te){try{te.dispatchEvent(new MouseEvent("click"))}catch(ie){var ne=document.createEvent("MouseEvents");ne.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),te.dispatchEvent(ne)}}var ne="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ie=ne.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),re=ne.saveAs||("object"!=typeof window||window!==ne?function(){}:"download"in HTMLAnchorElement.prototype&&!ie?function(te,ie,re){var le=ne.URL||ne.webkitURL,ce=document.createElement("a");ie=ie||te.name||"download",ce.download=ie,ce.rel="noopener","string"==typeof te?(ce.href=te,ce.origin===location.origin?e(ce):d(ce.href)?c(te,ie,re):e(ce,ce.target="_blank")):(ce.href=le.createObjectURL(te),setTimeout((function(){le.revokeObjectURL(ce.href)}),4e4),setTimeout((function(){e(ce)}),0))}:"msSaveOrOpenBlob"in navigator?function(te,ne,ie){if(ne=ne||te.name||"download","string"!=typeof te)navigator.msSaveOrOpenBlob(b(te,ie),ne);else if(d(te))c(te,ne,ie);else{var re=document.createElement("a");re.href=te,re.target="_blank",setTimeout((function(){e(re)}))}}:function(te,re,le,ce){if((ce=ce||open("","_blank"))&&(ce.document.title=ce.document.body.innerText="downloading..."),"string"==typeof te)return c(te,re,le);var de="application/octet-stream"===te.type,ue=/constructor/i.test(ne.HTMLElement)||ne.safari,me=/CriOS\/[\d]+/.test(navigator.userAgent);if((me||de&&ue||ie)&&"undefined"!=typeof FileReader){var ge=new FileReader;ge.onloadend=function(){var te=ge.result;te=me?te:te.replace(/^data:[^;]*;/,"data:attachment/file;"),ce?ce.location.href=te:location=te,ce=null},ge.readAsDataURL(te)}else{var fe=ne.URL||ne.webkitURL,_e=fe.createObjectURL(te);ce?ce.location=_e:location.href=_e,ce=null,setTimeout((function(){fe.revokeObjectURL(_e)}),4e4)}});ne.saveAs=re.saveAs=re,te.exports=re})?ie.apply(ne,re):ie)||(te.exports=le)},9812:function(te){"undefined"!=typeof self&&self,te.exports=function(){"use strict";var te={8741:function(te,ne){Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0;var ie=!("undefined"==typeof window||!window.document||!window.document.createElement);ne.default=ie},3976:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0;var re=ie(2839),le={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(te,ne){return"function"==typeof ne.onBeforeMask?ne.onBeforeMask.call(this,te,ne):te},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[re.keys.Backspace,re.keys.Tab,re.keys.Pause,re.keys.Escape,re.keys.PageUp,re.keys.PageDown,re.keys.End,re.keys.Home,re.keys.ArrowLeft,re.keys.ArrowUp,re.keys.ArrowRight,re.keys.ArrowDown,re.keys.Insert,re.keys.Delete,re.keys.ContextMenu,re.keys.F1,re.keys.F2,re.keys.F3,re.keys.F4,re.keys.F5,re.keys.F6,re.keys.F7,re.keys.F8,re.keys.F9,re.keys.F10,re.keys.F11,re.keys.F12,re.keys.Process,re.keys.Unidentified,re.keys.Shift,re.keys.Control,re.keys.Alt,re.keys.Tab,re.keys.AltGraph,re.keys.CapsLock],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}};ne.default=le},7392:function(te,ne){Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0,ne.default={9:{validator:"[0-9０-９]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-9０-９A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(te,ne){Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=function(te,ne,ie){if(void 0===ie)return te.__data?te.__data[ne]:null;te.__data=te.__data||{},te.__data[ne]=ie}},3776:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.Event=void 0,ne.off=function(te,ne){var ie,re;return f(this[0])&&te&&(ie=this[0].eventRegistry,re=this[0],te.split(" ").forEach((function(te){var le=l(te.split("."),2);(function(te,re){var le,ce,de=[];if(te.length>0)if(void 0===ne)for(le=0,ce=ie[te][re].length;le<ce;le++)de.push({ev:te,namespace:re&&re.length>0?re:"global",handler:ie[te][re][le]});else de.push({ev:te,namespace:re&&re.length>0?re:"global",handler:ne});else if(re.length>0)for(var ue in ie)for(var me in ie[ue])if(me===re)if(void 0===ne)for(le=0,ce=ie[ue][me].length;le<ce;le++)de.push({ev:ue,namespace:me,handler:ie[ue][me][le]});else de.push({ev:ue,namespace:me,handler:ne});return de})(le[0],le[1]).forEach((function(te){var ne=te.ev,le=te.handler;!function(te,ne,le){if(te in ie==1)if(re.removeEventListener?re.removeEventListener(te,le,!1):re.detachEvent&&re.detachEvent("on".concat(te),le),"global"===ne)for(var ce in ie[te])ie[te][ce].splice(ie[te][ce].indexOf(le),1);else ie[te][ne].splice(ie[te][ne].indexOf(le),1)}(ne,te.namespace,le)}))}))),this},ne.on=function(te,ne){if(f(this[0])){var ie=this[0].eventRegistry,re=this[0];te.split(" ").forEach((function(te){var le=l(te.split("."),2),ce=le[0],de=le[1];!function(te,le){re.addEventListener?re.addEventListener(te,ne,!1):re.attachEvent&&re.attachEvent("on".concat(te),ne),ie[te]=ie[te]||{},ie[te][le]=ie[te][le]||[],ie[te][le].push(ne)}(ce,void 0===de?"global":de)}))}return this},ne.trigger=function(te){var ne=arguments;if(f(this[0]))for(var ie=this[0].eventRegistry,re=this[0],ce="string"==typeof te?te.split(" "):[te.type],ue=0;ue<ce.length;ue++){var me=ce[ue].split("."),ge=me[0],fe=me[1]||"global";if(void 0!==document&&"global"===fe){var _e,be={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(document.createEvent){try{"input"===ge?(be.inputType="insertText",_e=new InputEvent(ge,be)):_e=new CustomEvent(ge,be)}catch(te){(_e=document.createEvent("CustomEvent")).initCustomEvent(ge,be.bubbles,be.cancelable,be.detail)}te.type&&(0,le.default)(_e,te),re.dispatchEvent(_e)}else(_e=document.createEventObject()).eventType=ge,_e.detail=arguments[1],te.type&&(0,le.default)(_e,te),re.fireEvent("on"+_e.eventType,_e)}else if(void 0!==ie[ge]){arguments[0]=arguments[0].type?arguments[0]:de.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var Ce=ie[ge];("global"===fe?Object.values(Ce).flat():Ce[fe]).forEach((function(te){return te.apply(re,ne)}))}}return this};var re,le=u(ie(600)),ce=u(ie(9380)),de=u(ie(4963)),ue=u(ie(8741));function l(te,ne){return function(te){if(Array.isArray(te))return te}(te)||function(te,ne){var ie=null==te?null:"undefined"!=typeof Symbol&&te[Symbol.iterator]||te["@@iterator"];if(null!=ie){var re,le,ce,de,ue=[],me=!0,ge=!1;try{if(ce=(ie=ie.call(te)).next,0===ne){if(Object(ie)!==ie)return;me=!1}else for(;!(me=(re=ce.call(ie)).done)&&(ue.push(re.value),ue.length!==ne);me=!0);}catch(te){ge=!0,le=te}finally{try{if(!me&&null!=ie.return&&(de=ie.return(),Object(de)!==de))return}finally{if(ge)throw le}}return ue}}(te,ne)||function(te,ne){if(te){if("string"==typeof te)return c(te,ne);var ie=Object.prototype.toString.call(te).slice(8,-1);return"Object"===ie&&te.constructor&&(ie=te.constructor.name),"Map"===ie||"Set"===ie?Array.from(te):"Arguments"===ie||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie)?c(te,ne):void 0}}(te,ne)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(te,ne){(null==ne||ne>te.length)&&(ne=te.length);for(var ie=0,re=new Array(ne);ie<ne;ie++)re[ie]=te[ie];return re}function u(te){return te&&te.__esModule?te:{default:te}}function f(te){return te instanceof Element}ne.Event=re,"function"==typeof ce.default.CustomEvent?ne.Event=re=ce.default.CustomEvent:ue.default&&(ne.Event=re=function(te,ne){ne=ne||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var ie=document.createEvent("CustomEvent");return ie.initCustomEvent(te,ne.bubbles,ne.cancelable,ne.detail),ie},re.prototype=ce.default.Event.prototype)},600:function(te,ne){function i(te){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(te){return typeof te}:function(te){return te&&"function"==typeof Symbol&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},i(te)}Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=function e(){var te,ne,ie,re,le,ce,de=arguments[0]||{},ue=1,me=arguments.length,ge=!1;for("boolean"==typeof de&&(ge=de,de=arguments[ue]||{},ue++),"object"!==i(de)&&"function"!=typeof de&&(de={});ue<me;ue++)if(null!=(te=arguments[ue]))for(ne in te)ie=de[ne],de!==(re=te[ne])&&(ge&&re&&("[object Object]"===Object.prototype.toString.call(re)||(le=Array.isArray(re)))?(le?(le=!1,ce=ie&&Array.isArray(ie)?ie:[]):ce=ie&&"[object Object]"===Object.prototype.toString.call(ie)?ie:{},de[ne]=e(ge,ce,re)):void 0!==re&&(de[ne]=re));return de}},4963:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0;var re=s(ie(600)),le=s(ie(9380)),ce=s(ie(253)),de=ie(3776);function s(te){return te&&te.__esModule?te:{default:te}}var ue=le.default.document;function c(te){return te instanceof c?te:this instanceof c?void(null!=te&&te!==le.default&&(this[0]=te.nodeName?te:void 0!==te[0]&&te[0].nodeName?te[0]:ue.querySelector(te),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new c(te)}c.prototype={on:de.on,off:de.off,trigger:de.trigger},c.extend=re.default,c.data=ce.default,c.Event=de.Event;var me=c;ne.default=me},9845:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.mobile=ne.iphone=ne.ie=void 0;var re,le=(re=ie(9380))&&re.__esModule?re:{default:re},ce=le.default.navigator&&le.default.navigator.userAgent||"",de=ce.indexOf("MSIE ")>0||ce.indexOf("Trident/")>0,ue=navigator.userAgentData&&navigator.userAgentData.mobile||le.default.navigator&&le.default.navigator.maxTouchPoints||"ontouchstart"in le.default,me=/iphone/i.test(ce);ne.iphone=me,ne.mobile=ue,ne.ie=de},7184:function(te,ne){Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=function(te){return te.replace(ie,"\\$1")};var ie=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.EventHandlers=void 0;var re=ie(8711),le=ie(2839),ce=ie(9845),de=ie(7215),ue=ie(7760),me=ie(4713);function c(te,ne){var ie="undefined"!=typeof Symbol&&te[Symbol.iterator]||te["@@iterator"];if(!ie){if(Array.isArray(te)||(ie=function(te,ne){if(te){if("string"==typeof te)return u(te,ne);var ie=Object.prototype.toString.call(te).slice(8,-1);return"Object"===ie&&te.constructor&&(ie=te.constructor.name),"Map"===ie||"Set"===ie?Array.from(te):"Arguments"===ie||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie)?u(te,ne):void 0}}(te))||ne&&te&&"number"==typeof te.length){ie&&(te=ie);var re=0,a=function(){};return{s:a,n:function(){return re>=te.length?{done:!0}:{done:!1,value:te[re++]}},e:function(te){throw te},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var le,ce=!0,de=!1;return{s:function(){ie=ie.call(te)},n:function(){var te=ie.next();return ce=te.done,te},e:function(te){de=!0,le=te},f:function(){try{ce||null==ie.return||ie.return()}finally{if(de)throw le}}}}function u(te,ne){(null==ne||ne>te.length)&&(ne=te.length);for(var ie=0,re=new Array(ne);ie<ne;ie++)re[ie]=te[ie];return re}var ge={keyEvent:function(te,ne,ie,fe,_e){var be=this.inputmask,Ce=be.opts,ye=be.dependencyLib,we=be.maskset,ke=this,Se=ye(ke),xe=te.key,Ee=re.caret.call(be,ke),Me=Ce.onKeyDown.call(this,te,re.getBuffer.call(be),Ee,Ce);if(void 0!==Me)return Me;if(xe===le.keys.Backspace||xe===le.keys.Delete||ce.iphone&&xe===le.keys.BACKSPACE_SAFARI||te.ctrlKey&&xe===le.keys.x&&!("oncut"in ke))te.preventDefault(),de.handleRemove.call(be,ke,xe,Ee),(0,ue.writeBuffer)(ke,re.getBuffer.call(be,!0),we.p,te,ke.inputmask._valueGet()!==re.getBuffer.call(be).join(""));else if(xe===le.keys.End||xe===le.keys.PageDown){te.preventDefault();var Ne=re.seekNext.call(be,re.getLastValidPosition.call(be));re.caret.call(be,ke,te.shiftKey?Ee.begin:Ne,Ne,!0)}else xe===le.keys.Home&&!te.shiftKey||xe===le.keys.PageUp?(te.preventDefault(),re.caret.call(be,ke,0,te.shiftKey?Ee.begin:0,!0)):Ce.undoOnEscape&&xe===le.keys.Escape&&!0!==te.altKey?((0,ue.checkVal)(ke,!0,!1,be.undoValue.split("")),Se.trigger("click")):xe!==le.keys.Insert||te.shiftKey||te.ctrlKey||void 0!==be.userOptions.insertMode?!0===Ce.tabThrough&&xe===le.keys.Tab?!0===te.shiftKey?(Ee.end=re.seekPrevious.call(be,Ee.end,!0),!0===me.getTest.call(be,Ee.end-1).match.static&&Ee.end--,Ee.begin=re.seekPrevious.call(be,Ee.end,!0),Ee.begin>=0&&Ee.end>0&&(te.preventDefault(),re.caret.call(be,ke,Ee.begin,Ee.end))):(Ee.begin=re.seekNext.call(be,Ee.begin,!0),Ee.end=re.seekNext.call(be,Ee.begin,!0),Ee.end<we.maskLength&&Ee.end--,Ee.begin<=we.maskLength&&(te.preventDefault(),re.caret.call(be,ke,Ee.begin,Ee.end))):te.shiftKey||Ce.insertModeVisual&&!1===Ce.insertMode&&(xe===le.keys.ArrowRight?setTimeout((function(){var te=re.caret.call(be,ke);re.caret.call(be,ke,te.begin)}),0):xe===le.keys.ArrowLeft&&setTimeout((function(){var te=re.translatePosition.call(be,ke.inputmask.caretPos.begin);re.translatePosition.call(be,ke.inputmask.caretPos.end),be.isRTL?re.caret.call(be,ke,te+(te===we.maskLength?0:1)):re.caret.call(be,ke,te-(0===te?0:1))}),0)):de.isSelection.call(be,Ee)?Ce.insertMode=!Ce.insertMode:(Ce.insertMode=!Ce.insertMode,re.caret.call(be,ke,Ee.begin,Ee.begin));return be.isComposing=xe==le.keys.Process||xe==le.keys.Unidentified,be.ignorable=Ce.ignorables.includes(xe),ge.keypressEvent.call(this,te,ne,ie,fe,_e)},keypressEvent:function(te,ne,ie,ce,me){var ge=this.inputmask||this,fe=ge.opts,_e=ge.dependencyLib,be=ge.maskset,Ce=ge.el,ye=_e(Ce),we=te.key;if(!0===ne||te.ctrlKey&&te.altKey||!(te.ctrlKey||te.metaKey||ge.ignorable)){if(we){var ke,Se=ne?{begin:me,end:me}:re.caret.call(ge,Ce);we=fe.substitutes[we]||we,be.writeOutBuffer=!0;var xe=de.isValid.call(ge,Se,we,ce,void 0,void 0,void 0,ne);if(!1!==xe&&(re.resetMaskSet.call(ge,!0),ke=void 0!==xe.caret?xe.caret:re.seekNext.call(ge,xe.pos.begin?xe.pos.begin:xe.pos),be.p=ke),ke=fe.numericInput&&void 0===xe.caret?re.seekPrevious.call(ge,ke):ke,!1!==ie&&(setTimeout((function(){fe.onKeyValidation.call(Ce,we,xe)}),0),be.writeOutBuffer&&!1!==xe)){var Ee=re.getBuffer.call(ge);(0,ue.writeBuffer)(Ce,Ee,ke,te,!0!==ne)}if(te.preventDefault(),ne)return!1!==xe&&(xe.forwardPosition=ke),xe}}else we===le.keys.Enter&&ge.undoValue!==ge._valueGet(!0)&&(ge.undoValue=ge._valueGet(!0),setTimeout((function(){ye.trigger("change")}),0))},pasteEvent:function(te){var ne,ie=this.inputmask,le=ie.opts,ce=ie._valueGet(!0),de=re.caret.call(ie,this);ie.isRTL&&(ne=de.end,de.end=re.translatePosition.call(ie,de.begin),de.begin=re.translatePosition.call(ie,ne));var me=ce.substr(0,de.begin),ge=ce.substr(de.end,ce.length);if(me==(ie.isRTL?re.getBufferTemplate.call(ie).slice().reverse():re.getBufferTemplate.call(ie)).slice(0,de.begin).join("")&&(me=""),ge==(ie.isRTL?re.getBufferTemplate.call(ie).slice().reverse():re.getBufferTemplate.call(ie)).slice(de.end).join("")&&(ge=""),window.clipboardData&&window.clipboardData.getData)ce=me+window.clipboardData.getData("Text")+ge;else{if(!te.clipboardData||!te.clipboardData.getData)return!0;ce=me+te.clipboardData.getData("text/plain")+ge}var fe=ce;if(ie.isRTL){fe=fe.split("");var _e,be=c(re.getBufferTemplate.call(ie));try{for(be.s();!(_e=be.n()).done;){var Ce=_e.value;fe[0]===Ce&&fe.shift()}}catch(te){be.e(te)}finally{be.f()}fe=fe.join("")}if("function"==typeof le.onBeforePaste){if(!1===(fe=le.onBeforePaste.call(ie,fe,le)))return!1;fe||(fe=ce)}(0,ue.checkVal)(this,!0,!1,fe.toString().split(""),te),te.preventDefault()},inputFallBackEvent:function(te){var ne,ie=this.inputmask,de=ie.opts,fe=ie.dependencyLib,_e=this,be=_e.inputmask._valueGet(!0),Ce=(ie.isRTL?re.getBuffer.call(ie).slice().reverse():re.getBuffer.call(ie)).join(""),ye=re.caret.call(ie,_e,void 0,void 0,!0);if(Ce!==be){if(ne=function(te,ne,le){for(var ce,ue,ge,fe=te.substr(0,le.begin).split(""),_e=te.substr(le.begin).split(""),be=ne.substr(0,le.begin).split(""),Ce=ne.substr(le.begin).split(""),ye=fe.length>=be.length?fe.length:be.length,we=_e.length>=Ce.length?_e.length:Ce.length,ke="",Se=[],xe="~";fe.length<ye;)fe.push(xe);for(;be.length<ye;)be.push(xe);for(;_e.length<we;)_e.unshift(xe);for(;Ce.length<we;)Ce.unshift(xe);var Ee=fe.concat(_e),Me=be.concat(Ce);for(ue=0,ce=Ee.length;ue<ce;ue++)switch(ge=me.getPlaceholder.call(ie,re.translatePosition.call(ie,ue)),ke){case"insertText":Me[ue-1]===Ee[ue]&&le.begin==Ee.length-1&&Se.push(Ee[ue]),ue=ce;break;case"insertReplacementText":case"deleteContentBackward":Ee[ue]===xe?le.end++:ue=ce;break;default:Ee[ue]!==Me[ue]&&(Ee[ue+1]!==xe&&Ee[ue+1]!==ge&&void 0!==Ee[ue+1]||(Me[ue]!==ge||Me[ue+1]!==xe)&&Me[ue]!==xe?Me[ue+1]===xe&&Me[ue]===Ee[ue+1]?(ke="insertText",Se.push(Ee[ue]),le.begin--,le.end--):Ee[ue]!==ge&&Ee[ue]!==xe&&(Ee[ue+1]===xe||Me[ue]!==Ee[ue]&&Me[ue+1]===Ee[ue+1])?(ke="insertReplacementText",Se.push(Ee[ue]),le.begin--):Ee[ue]===xe?(ke="deleteContentBackward",(re.isMask.call(ie,re.translatePosition.call(ie,ue),!0)||Me[ue]===de.radixPoint)&&le.end++):ue=ce:(ke="insertText",Se.push(Ee[ue]),le.begin--,le.end--))}return{action:ke,data:Se,caret:le}}(be,Ce,ye),(_e.inputmask.shadowRoot||_e.ownerDocument).activeElement!==_e&&_e.focus(),(0,ue.writeBuffer)(_e,re.getBuffer.call(ie)),re.caret.call(ie,_e,ye.begin,ye.end,!0),!ce.mobile&&ie.skipNextInsert&&"insertText"===te.inputType&&"insertText"===ne.action&&ie.isComposing)return!1;switch("insertCompositionText"===te.inputType&&"insertText"===ne.action&&ie.isComposing?ie.skipNextInsert=!0:ie.skipNextInsert=!1,ne.action){case"insertText":case"insertReplacementText":ne.data.forEach((function(te,ne){var re=new fe.Event("keypress");re.key=te,ie.ignorable=!1,ge.keypressEvent.call(_e,re)})),setTimeout((function(){ie.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var we=new fe.Event("keydown");we.key=le.keys.Backspace,ge.keyEvent.call(_e,we);break;default:(0,ue.applyInputValue)(_e,be),re.caret.call(ie,_e,ye.begin,ye.end,!0)}te.preventDefault()}},setValueEvent:function(te){var ne=this.inputmask,ie=this,le=te&&te.detail?te.detail[0]:arguments[1];void 0===le&&(le=ie.inputmask._valueGet(!0)),(0,ue.applyInputValue)(ie,le),(te.detail&&void 0!==te.detail[1]||void 0!==arguments[2])&&re.caret.call(ne,ie,te.detail?te.detail[1]:arguments[2])},focusEvent:function(te){var ne=this.inputmask,ie=ne.opts,le=null==ne?void 0:ne._valueGet();ie.showMaskOnFocus&&le!==re.getBuffer.call(ne).join("")&&(0,ue.writeBuffer)(this,re.getBuffer.call(ne),re.seekNext.call(ne,re.getLastValidPosition.call(ne))),!0!==ie.positionCaretOnTab||!1!==ne.mouseEnter||de.isComplete.call(ne,re.getBuffer.call(ne))&&-1!==re.getLastValidPosition.call(ne)||ge.clickEvent.apply(this,[te,!0]),ne.undoValue=null==ne?void 0:ne._valueGet(!0)},invalidEvent:function(te){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var te=this.inputmask,ne=te.opts,ie=this;te.mouseEnter=!1,ne.clearMaskOnLostFocus&&(ie.inputmask.shadowRoot||ie.ownerDocument).activeElement!==ie&&(0,ue.HandleNativePlaceholder)(ie,te.originalPlaceholder)},clickEvent:function(te,ne){var ie=this.inputmask;ie.clicked++;var le=this;if((le.inputmask.shadowRoot||le.ownerDocument).activeElement===le){var ce=re.determineNewCaretPosition.call(ie,re.caret.call(ie,le),ne);void 0!==ce&&re.caret.call(ie,le,ce)}},cutEvent:function(te){var ne=this.inputmask,ie=ne.maskset,ce=this,me=re.caret.call(ne,ce),ge=ne.isRTL?re.getBuffer.call(ne).slice(me.end,me.begin):re.getBuffer.call(ne).slice(me.begin,me.end),fe=ne.isRTL?ge.reverse().join(""):ge.join("");window.navigator.clipboard?window.navigator.clipboard.writeText(fe):window.clipboardData&&window.clipboardData.getData&&window.clipboardData.setData("Text",fe),de.handleRemove.call(ne,ce,le.keys.Delete,me),(0,ue.writeBuffer)(ce,re.getBuffer.call(ne),ie.p,te,ne.undoValue!==ne._valueGet(!0))},blurEvent:function(te){var ne=this.inputmask,ie=ne.opts,le=ne.dependencyLib;ne.clicked=0;var ce=le(this),me=this;if(me.inputmask){(0,ue.HandleNativePlaceholder)(me,ne.originalPlaceholder);var ge=me.inputmask._valueGet(),fe=re.getBuffer.call(ne).slice();""!==ge&&(ie.clearMaskOnLostFocus&&(-1===re.getLastValidPosition.call(ne)&&ge===re.getBufferTemplate.call(ne).join("")?fe=[]:ue.clearOptionalTail.call(ne,fe)),!1===de.isComplete.call(ne,fe)&&(setTimeout((function(){ce.trigger("incomplete")}),0),ie.clearIncomplete&&(re.resetMaskSet.call(ne),fe=ie.clearMaskOnLostFocus?[]:re.getBufferTemplate.call(ne).slice())),(0,ue.writeBuffer)(me,fe,void 0,te)),ne.undoValue!==ne._valueGet(!0)&&(ne.undoValue=ne._valueGet(!0),ce.trigger("change"))}},mouseenterEvent:function(){var te=this.inputmask,ne=te.opts.showMaskOnHover,ie=this;if(te.mouseEnter=!0,(ie.inputmask.shadowRoot||ie.ownerDocument).activeElement!==ie){var le=(te.isRTL?re.getBufferTemplate.call(te).slice().reverse():re.getBufferTemplate.call(te)).join("");ne&&(0,ue.HandleNativePlaceholder)(ie,le)}},submitEvent:function(){var te=this.inputmask,ne=te.opts;te.undoValue!==te._valueGet(!0)&&te.$el.trigger("change"),-1===re.getLastValidPosition.call(te)&&te._valueGet&&te._valueGet()===re.getBufferTemplate.call(te).join("")&&te._valueSet(""),ne.clearIncomplete&&!1===de.isComplete.call(te,re.getBuffer.call(te))&&te._valueSet(""),ne.removeMaskOnSubmit&&(te._valueSet(te.unmaskedvalue(),!0),setTimeout((function(){(0,ue.writeBuffer)(te.el,re.getBuffer.call(te))}),0))},resetEvent:function(){var te=this.inputmask;te.refreshValue=!0,setTimeout((function(){(0,ue.applyInputValue)(te.el,te._valueGet(!0))}),0)}};ne.EventHandlers=ge},9716:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.EventRuler=void 0;var re,le=(re=ie(2394))&&re.__esModule?re:{default:re},ce=ie(2839),de=ie(8711),ue=ie(7760),me={on:function(te,ne,ie){var re=te.inputmask.dependencyLib,l=function(ne){ne.originalEvent&&(ne=ne.originalEvent||ne,arguments[0]=ne);var me,ge=this,fe=ge.inputmask,_e=fe?fe.opts:void 0;if(void 0===fe&&"FORM"!==this.nodeName){var be=re.data(ge,"_inputmask_opts");re(ge).off(),be&&new le.default(be).mask(ge)}else{if(["submit","reset","setvalue"].includes(ne.type)||"FORM"===this.nodeName||!(ge.disabled||ge.readOnly&&!("keydown"===ne.type&&ne.ctrlKey&&ne.key===ce.keys.c||!1===_e.tabThrough&&ne.key===ce.keys.Tab))){switch(ne.type){case"input":if(!0===fe.skipInputEvent)return fe.skipInputEvent=!1,ne.preventDefault();break;case"click":case"focus":return fe.validationEvent?(fe.validationEvent=!1,te.blur(),(0,ue.HandleNativePlaceholder)(te,(fe.isRTL?de.getBufferTemplate.call(fe).slice().reverse():de.getBufferTemplate.call(fe)).join("")),setTimeout((function(){te.focus()}),_e.validationEventTimeOut),!1):(me=arguments,void setTimeout((function(){te.inputmask&&ie.apply(ge,me)}),0))}var Ce=ie.apply(ge,arguments);return!1===Ce&&(ne.preventDefault(),ne.stopPropagation()),Ce}ne.preventDefault()}};["submit","reset"].includes(ne)?(l=l.bind(te),null!==te.form&&re(te.form).on(ne,l)):re(te).on(ne,l),te.inputmask.events[ne]=te.inputmask.events[ne]||[],te.inputmask.events[ne].push(l)},off:function(te,ne){if(te.inputmask&&te.inputmask.events){var ie=te.inputmask.dependencyLib,re=te.inputmask.events;for(var le in ne&&((re=[])[ne]=te.inputmask.events[ne]),re){for(var ce=re[le];ce.length>0;){var de=ce.pop();["submit","reset"].includes(le)?null!==te.form&&ie(te.form).off(le,de):ie(te).off(le,de)}delete te.inputmask.events[le]}}}};ne.EventRuler=me},219:function(te,ne,ie){var re=d(ie(2394)),le=ie(2839),ce=d(ie(7184)),de=ie(8711),ue=ie(4713);function l(te,ne){return function(te){if(Array.isArray(te))return te}(te)||function(te,ne){var ie=null==te?null:"undefined"!=typeof Symbol&&te[Symbol.iterator]||te["@@iterator"];if(null!=ie){var re,le,ce,de,ue=[],me=!0,ge=!1;try{if(ce=(ie=ie.call(te)).next,0===ne){if(Object(ie)!==ie)return;me=!1}else for(;!(me=(re=ce.call(ie)).done)&&(ue.push(re.value),ue.length!==ne);me=!0);}catch(te){ge=!0,le=te}finally{try{if(!me&&null!=ie.return&&(de=ie.return(),Object(de)!==de))return}finally{if(ge)throw le}}return ue}}(te,ne)||function(te,ne){if(te){if("string"==typeof te)return c(te,ne);var ie=Object.prototype.toString.call(te).slice(8,-1);return"Object"===ie&&te.constructor&&(ie=te.constructor.name),"Map"===ie||"Set"===ie?Array.from(te):"Arguments"===ie||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie)?c(te,ne):void 0}}(te,ne)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(te,ne){(null==ne||ne>te.length)&&(ne=te.length);for(var ie=0,re=new Array(ne);ie<ne;ie++)re[ie]=te[ie];return re}function u(te){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(te){return typeof te}:function(te){return te&&"function"==typeof Symbol&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},u(te)}function f(te,ne){for(var ie=0;ie<ne.length;ie++){var re=ne[ie];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(te,(le=void 0,le=function(te,ne){if("object"!==u(te)||null===te)return te;var ie=te[Symbol.toPrimitive];if(void 0!==ie){var re=ie.call(te,ne||"default");if("object"!==u(re))return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ne?String:Number)(te)}(re.key,"string"),"symbol"===u(le)?le:String(le)),re)}var le}function d(te){return te&&te.__esModule?te:{default:te}}var me=re.default.dependencyLib,ge=function(){function e(te,ne,ie){!function(te,ne){if(!(te instanceof ne))throw new TypeError("Cannot call a class as a function")}(this,e),this.mask=te,this.format=ne,this.opts=ie,this._date=new Date(1,0,1),this.initDateObject(te,this.opts)}var te,ne,ie;return te=e,(ne=[{key:"date",get:function(){return void 0===this._date&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts)),this._date}},{key:"initDateObject",value:function(te,ne){var ie;for(P(ne).lastIndex=0;ie=P(ne).exec(this.format);){var re=new RegExp("\\d+$").exec(ie[0]),le=re?ie[0][0]+"x":ie[0],ce=void 0;if(void 0!==te){if(re){var de=P(ne).lastIndex,ue=E(ie.index,ne);P(ne).lastIndex=de,ce=te.slice(0,te.indexOf(ue.nextMatch[0]))}else ce=te.slice(0,be[le]&&be[le][4]||le.length);te=te.slice(ce.length)}Object.prototype.hasOwnProperty.call(be,le)&&this.setValue(this,ce,le,be[le][2],be[le][1])}}},{key:"setValue",value:function(te,ne,ie,re,le){if(void 0!==ne&&(te[re]="ampm"===re?ne:ne.replace(/[^0-9]/g,"0"),te["raw"+re]=ne.replace(/\s/g,"_")),void 0!==le){var ce=te[re];("day"===re&&29===parseInt(ce)||"month"===re&&2===parseInt(ce))&&(29!==parseInt(te.day)||2!==parseInt(te.month)||""!==te.year&&void 0!==te.year||te._date.setFullYear(2012,1,29)),"day"===re&&(_e=!0,0===parseInt(ce)&&(ce=1)),"month"===re&&(_e=!0),"year"===re&&(_e=!0,ce.length<4&&(ce=M(ce,4,!0))),""===ce||isNaN(ce)||le.call(te._date,ce),"ampm"===re&&le.call(te._date,ce)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&f(te.prototype,ne),ie&&f(te,ie),Object.defineProperty(te,"prototype",{writable:!1}),e}(),fe=(new Date).getFullYear(),_e=!1,be={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return M(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(te){var ne=te?parseInt(te):0;return ne>0&&ne--,Date.prototype.setMonth.call(this,ne)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(te){var ne=te?parseInt(te):0;return ne>0&&ne--,Date.prototype.setMonth.call(this,ne)},"month",function(){return M(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return M(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return M(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return M(Date.prototype.getHours.call(this),2)}],hx:[function(te){return"[0-9]{".concat(te,"}")},Date.prototype.setHours,"hours",function(te){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return M(Date.prototype.getHours.call(this),2)}],Hx:[function(te){return"[0-9]{".concat(te,"}")},Date.prototype.setHours,"hours",function(te){return function(){return M(Date.prototype.getHours.call(this),te)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return M(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return M(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return M(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return M(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",k,"ampm",b,1],tt:["[ap]m",k,"ampm",b,2],T:["[AP]",k,"ampm",b,1],TT:["[AP]M",k,"ampm",b,2],Z:[".*",void 0,"Z",function(){var te=this.toString().match(/\((.+)\)/)[1];return te.includes(" ")&&(te=(te=te.replace("-"," ").toUpperCase()).split(" ").map((function(te){return l(te,1)[0]})).join("")),te}],o:[""],S:[""]},Ce={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function k(te){var ne=this.getHours();te.toLowerCase().includes("p")?this.setHours(ne+12):te.toLowerCase().includes("a")&&ne>=12&&this.setHours(ne-12)}function b(){var te=this.getHours();return(te=te||12)>=12?"PM":"AM"}function x(te){var ne=new RegExp("\\d+$").exec(te[0]);if(ne&&void 0!==ne[0]){var ie=be[te[0][0]+"x"].slice("");return ie[0]=ie[0](ne[0]),ie[3]=ie[3](ne[0]),ie}if(be[te[0]])return be[te[0]]}function P(te){if(!te.tokenizer){var ne=[],ie=[];for(var re in be)if(/\.*x$/.test(re)){var le=re[0]+"\\d+";-1===ie.indexOf(le)&&ie.push(le)}else-1===ne.indexOf(re[0])&&ne.push(re[0]);te.tokenizer="("+(ie.length>0?ie.join("|")+"|":"")+ne.join("+|")+")+?|.",te.tokenizer=new RegExp(te.tokenizer,"g")}return te.tokenizer}function w(te,ne,ie){if(!_e)return!0;if(void 0===te.rawday||!isFinite(te.rawday)&&new Date(te.date.getFullYear(),isFinite(te.rawmonth)?te.month:te.date.getMonth()+1,0).getDate()>=te.day||"29"==te.day&&(!isFinite(te.rawyear)||void 0===te.rawyear||""===te.rawyear)||new Date(te.date.getFullYear(),isFinite(te.rawmonth)?te.month:te.date.getMonth()+1,0).getDate()>=te.day)return ne;if("29"==te.day){var re=E(ne.pos,ie);if("yyyy"===re.targetMatch[0]&&ne.pos-re.targetMatchIndex==2)return ne.remove=ne.pos+1,ne}else if("02"==te.month&&"30"==te.day&&void 0!==ne.c)return te.day="03",te.date.setDate(3),te.date.setMonth(1),ne.insert=[{pos:ne.pos,c:"0"},{pos:ne.pos+1,c:ne.c}],ne.caret=de.seekNext.call(this,ne.pos+1),ne;return!1}function S(te,ne,ie,re){var le,de,ue="";for(P(ie).lastIndex=0;le=P(ie).exec(te);)if(void 0===ne)if(de=x(le))ue+="("+de[0]+")";else switch(le[0]){case"[":ue+="(";break;case"]":ue+=")?";break;default:ue+=(0,ce.default)(le[0])}else(de=x(le))?!0!==re&&de[3]?ue+=de[3].call(ne.date):de[2]?ue+=ne["raw"+de[2]]:ue+=le[0]:ue+=le[0];return ue}function M(te,ne,ie){for(te=String(te),ne=ne||2;te.length<ne;)te=ie?te+"0":"0"+te;return te}function _(te,ne,ie){return"string"==typeof te?new ge(te,ne,ie):te&&"object"===u(te)&&Object.prototype.hasOwnProperty.call(te,"date")?te:void 0}function O(te,ne){return S(ne.inputFormat,{date:te},ne)}function E(te,ne){var ie,re,le=0,ce=0;for(P(ne).lastIndex=0;re=P(ne).exec(ne.inputFormat);){var de=new RegExp("\\d+$").exec(re[0]);if((le+=ce=de?parseInt(de[0]):re[0].length)>=te+1){ie=re,re=P(ne).exec(ne.inputFormat);break}}return{targetMatchIndex:le-ce,nextMatch:re,targetMatch:ie}}re.default.extendAliases({datetime:{mask:function(te){return te.numericInput=!1,be.S=te.i18n.ordinalSuffix.join("|"),te.inputFormat=Ce[te.inputFormat]||te.inputFormat,te.displayFormat=Ce[te.displayFormat]||te.displayFormat||te.inputFormat,te.outputFormat=Ce[te.outputFormat]||te.outputFormat||te.inputFormat,te.placeholder=""!==te.placeholder?te.placeholder:te.inputFormat.replace(/[[\]]/,""),te.regex=S(te.inputFormat,void 0,te),te.min=_(te.min,te.inputFormat,te),te.max=_(te.max,te.inputFormat,te),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(te,ne,ie,re,le,ce,de,ue){if(ue)return!0;if(isNaN(ie)&&te[ne]!==ie){var me=E(ne,le);if(me.nextMatch&&me.nextMatch[0]===ie&&me.targetMatch[0].length>1){var ge=be[me.targetMatch[0]][0];if(new RegExp(ge).test("0"+te[ne-1]))return te[ne]=te[ne-1],te[ne-1]="0",{fuzzy:!0,buffer:te,refreshFromBuffer:{start:ne-1,end:ne+1},pos:ne+1}}}return!0},postValidation:function(te,ne,ie,re,le,ce,de,me){var ge,_e;if(de)return!0;if(!1===re&&(((ge=E(ne+1,le)).targetMatch&&ge.targetMatchIndex===ne&&ge.targetMatch[0].length>1&&void 0!==be[ge.targetMatch[0]]||(ge=E(ne+2,le)).targetMatch&&ge.targetMatchIndex===ne+1&&ge.targetMatch[0].length>1&&void 0!==be[ge.targetMatch[0]])&&(_e=be[ge.targetMatch[0]][0]),void 0!==_e&&(void 0!==ce.validPositions[ne+1]&&new RegExp(_e).test(ie+"0")?(te[ne]=ie,te[ne+1]="0",re={pos:ne+2,caret:ne}):new RegExp(_e).test("0"+ie)&&(te[ne]="0",te[ne+1]=ie,re={pos:ne+2})),!1===re))return re;if(re.fuzzy&&(te=re.buffer,ne=re.pos),(ge=E(ne,le)).targetMatch&&ge.targetMatch[0]&&void 0!==be[ge.targetMatch[0]]){var Ce=be[ge.targetMatch[0]];_e=Ce[0];var ye=te.slice(ge.targetMatchIndex,ge.targetMatchIndex+ge.targetMatch[0].length);if(!1===new RegExp(_e).test(ye.join(""))&&2===ge.targetMatch[0].length&&ce.validPositions[ge.targetMatchIndex]&&ce.validPositions[ge.targetMatchIndex+1]&&(ce.validPositions[ge.targetMatchIndex+1].input="0"),"year"==Ce[2])for(var we=ue.getMaskTemplate.call(this,!1,1,void 0,!0),ke=ne+1;ke<te.length;ke++)te[ke]=we[ke],delete ce.validPositions[ke]}var Se=re,xe=_(te.join(""),le.inputFormat,le);return Se&&!isNaN(xe.date.getTime())&&(le.prefillYear&&(Se=function(te,ne,ie){if(te.year!==te.rawyear){var re=fe.toString(),le=te.rawyear.replace(/[^0-9]/g,""),ce=re.slice(0,le.length),de=re.slice(le.length);if(2===le.length&&le===ce){var ue=new Date(fe,te.month-1,te.day);te.day==ue.getDate()&&(!ie.max||ie.max.date.getTime()>=ue.getTime())&&(te.date.setFullYear(fe),te.year=re,ne.insert=[{pos:ne.pos+1,c:de[0]},{pos:ne.pos+2,c:de[1]}])}}return ne}(xe,Se,le)),Se=function(te,ne,ie,re,le){if(!ne)return ne;if(ne&&ie.min&&!isNaN(ie.min.date.getTime())){var ce;for(te.reset(),P(ie).lastIndex=0;ce=P(ie).exec(ie.inputFormat);){var de;if((de=x(ce))&&de[3]){for(var ue=de[1],me=te[de[2]],ge=ie.min[de[2]],fe=ie.max?ie.max[de[2]]:ge,_e=[],be=!1,Ce=0;Ce<ge.length;Ce++)void 0!==re.validPositions[Ce+ce.index]||be?(_e[Ce]=me[Ce],be=be||me[Ce]>ge[Ce]):(_e[Ce]=ge[Ce],"year"===de[2]&&me.length-1==Ce&&ge!=fe&&(_e=(parseInt(_e.join(""))+1).toString().split("")),"ampm"===de[2]&&ge!=fe&&ie.min.date.getTime()>te.date.getTime()&&(_e[Ce]=fe[Ce]));ue.call(te._date,_e.join(""))}}ne=ie.min.date.getTime()<=te.date.getTime(),te.reInit()}return ne&&ie.max&&(isNaN(ie.max.date.getTime())||(ne=ie.max.date.getTime()>=te.date.getTime())),ne}(xe,Se=w.call(this,xe,Se,le),le,ce)),void 0!==ne&&Se&&re.pos!==ne?{buffer:S(le.inputFormat,xe,le).split(""),refreshFromBuffer:{start:ne,end:re.pos},pos:re.caret||re.pos}:Se},onKeyDown:function(te,ne,ie,re){te.ctrlKey&&te.key===le.keys.ArrowRight&&(this.inputmask._valueSet(O(new Date,re)),me(this).trigger("setvalue"))},onUnMask:function(te,ne,ie){return ne?S(ie.outputFormat,_(te,ie.inputFormat,ie),ie,!0):ne},casing:function(te,ne,ie,re){return 0==ne.nativeDef.indexOf("[ap]")?te.toLowerCase():0==ne.nativeDef.indexOf("[AP]")?te.toUpperCase():te},onBeforeMask:function(te,ne){return"[object Date]"===Object.prototype.toString.call(te)&&(te=O(te,ne)),te},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(te,ne,ie){var re,le=(re=ie(2394))&&re.__esModule?re:{default:re},ce=ie(8711),de=ie(4713);le.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var ue=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function l(te,ne,ie,re,le){return ie-1>-1&&"."!==ne.buffer[ie-1]?(te=ne.buffer[ie-1]+te,te=ie-2>-1&&"."!==ne.buffer[ie-2]?ne.buffer[ie-2]+te:"0"+te):te="00"+te,ue.test(te)}le.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:l},j:{validator:l},k:{validator:l},l:{validator:l}},onUnMask:function(te,ne,ie){return te},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(te){var ne=te.separator,ie=te.quantifier,re="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",le=re;if(ne)for(var ce=0;ce<ie;ce++)le+="[".concat(ne).concat(re,"]");return le},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(te,ne){return(te=te.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9１-９A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(te,ne,ie){return te},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(te,ne,ie,re,le,ue,me){var ge=de.getMaskTemplate.call(this,!0,ce.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(ge.join(""))}}})},207:function(te,ne,ie){var re=s(ie(2394)),le=s(ie(7184)),ce=ie(8711),de=ie(2839);function s(te){return te&&te.__esModule?te:{default:te}}var ue=re.default.dependencyLib;function c(te,ne){for(var ie="",le=0;le<te.length;le++)re.default.prototype.definitions[te.charAt(le)]||ne.definitions[te.charAt(le)]||ne.optionalmarker[0]===te.charAt(le)||ne.optionalmarker[1]===te.charAt(le)||ne.quantifiermarker[0]===te.charAt(le)||ne.quantifiermarker[1]===te.charAt(le)||ne.groupmarker[0]===te.charAt(le)||ne.groupmarker[1]===te.charAt(le)||ne.alternatormarker===te.charAt(le)?ie+="\\"+te.charAt(le):ie+=te.charAt(le);return ie}function u(te,ne,ie,re){if(te.length>0&&ne>0&&(!ie.digitsOptional||re)){var le=te.indexOf(ie.radixPoint),ce=!1;ie.negationSymbol.back===te[te.length-1]&&(ce=!0,te.length--),-1===le&&(te.push(ie.radixPoint),le=te.length-1);for(var de=1;de<=ne;de++)isFinite(te[le+de])||(te[le+de]="0")}return ce&&te.push(ie.negationSymbol.back),te}function f(te,ne){var ie=0;for(var re in"+"===te&&(ie=ce.seekNext.call(this,ne.validPositions.length-1)),ne.tests)if((re=parseInt(re))>=ie)for(var le=0,de=ne.tests[re].length;le<de;le++)if((void 0===ne.validPositions[re]||"-"===te)&&ne.tests[re][le].match.def===te)return re+(void 0!==ne.validPositions[re]&&"-"!==te?1:0);return ie}function d(te,ne){for(var ie=-1,re=0,le=ne.validPositions.length;re<le;re++){var ce=ne.validPositions[re];if(ce&&ce.match.def===te){ie=re;break}}return ie}function p(te,ne,ie,re,le){var ce=ne.buffer?ne.buffer.indexOf(le.radixPoint):-1,de=(-1!==ce||re&&le.jitMasking)&&new RegExp(le.definitions[9].validator).test(te);return le._radixDance&&-1!==ce&&de&&null==ne.validPositions[ce]?{insert:{pos:ce===ie?ce+1:ce,c:le.radixPoint},pos:ie}:de}re.default.extendAliases({numeric:{mask:function(te){te.repeat=0,te.groupSeparator===te.radixPoint&&te.digits&&"0"!==te.digits&&("."===te.radixPoint?te.groupSeparator=",":","===te.radixPoint?te.groupSeparator=".":te.groupSeparator="")," "===te.groupSeparator&&(te.skipOptionalPartCharacter=void 0),te.placeholder.length>1&&(te.placeholder=te.placeholder.charAt(0)),"radixFocus"===te.positionCaretOnClick&&""===te.placeholder&&(te.positionCaretOnClick="lvp");var ne="0",ie=te.radixPoint;!0===te.numericInput&&void 0===te.__financeInput?(ne="1",te.positionCaretOnClick="radixFocus"===te.positionCaretOnClick?"lvp":te.positionCaretOnClick,te.digitsOptional=!1,isNaN(te.digits)&&(te.digits=2),te._radixDance=!1,ie=","===te.radixPoint?"?":"!",""!==te.radixPoint&&void 0===te.definitions[ie]&&(te.definitions[ie]={},te.definitions[ie].validator="["+te.radixPoint+"]",te.definitions[ie].placeholder=te.radixPoint,te.definitions[ie].static=!0,te.definitions[ie].generated=!0)):(te.__financeInput=!1,te.numericInput=!0);var re,ce="[+]";if(ce+=c(te.prefix,te),""!==te.groupSeparator?(void 0===te.definitions[te.groupSeparator]&&(te.definitions[te.groupSeparator]={},te.definitions[te.groupSeparator].validator="["+te.groupSeparator+"]",te.definitions[te.groupSeparator].placeholder=te.groupSeparator,te.definitions[te.groupSeparator].static=!0,te.definitions[te.groupSeparator].generated=!0),ce+=te._mask(te)):ce+="9{+}",void 0!==te.digits&&0!==te.digits){var de=te.digits.toString().split(",");isFinite(de[0])&&de[1]&&isFinite(de[1])?ce+=ie+ne+"{"+te.digits+"}":(isNaN(te.digits)||parseInt(te.digits)>0)&&(te.digitsOptional||te.jitMasking?(re=ce+ie+ne+"{0,"+te.digits+"}",te.keepStatic=!0):ce+=ie+ne+"{"+te.digits+"}")}else te.inputmode="numeric";return ce+=c(te.suffix,te),ce+="[-]",re&&(ce=[re+c(te.suffix,te)+"[-]",ce]),te.greedy=!1,function(te){void 0===te.parseMinMaxOptions&&(null!==te.min&&(te.min=te.min.toString().replace(new RegExp((0,le.default)(te.groupSeparator),"g"),""),","===te.radixPoint&&(te.min=te.min.replace(te.radixPoint,".")),te.min=isFinite(te.min)?parseFloat(te.min):NaN,isNaN(te.min)&&(te.min=Number.MIN_VALUE)),null!==te.max&&(te.max=te.max.toString().replace(new RegExp((0,le.default)(te.groupSeparator),"g"),""),","===te.radixPoint&&(te.max=te.max.replace(te.radixPoint,".")),te.max=isFinite(te.max)?parseFloat(te.max):NaN,isNaN(te.max)&&(te.max=Number.MAX_VALUE)),te.parseMinMaxOptions="done")}(te),""!==te.radixPoint&&te.substituteRadixPoint&&(te.substitutes["."==te.radixPoint?",":"."]=te.radixPoint),ce},_mask:function(te){return"("+te.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:p},1:{validator:p,definitionSymbol:"9"},9:{validator:"[0-9０-９٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(te,ne,ie,re,le){return le.allowMinus&&("-"===te||te===le.negationSymbol.front)}},"-":{validator:function(te,ne,ie,re,le){return le.allowMinus&&te===le.negationSymbol.back}}},preValidation:function(te,ne,ie,re,le,ce,de,ue){if(!1!==le.__financeInput&&ie===le.radixPoint)return!1;var me=te.indexOf(le.radixPoint),ge=ne;if(ne=function(te,ne,ie,re,le){return le._radixDance&&le.numericInput&&ne!==le.negationSymbol.back&&te<=ie&&(ie>0||ne==le.radixPoint)&&(void 0===re.validPositions[te-1]||re.validPositions[te-1].input!==le.negationSymbol.back)&&(te-=1),te}(ne,ie,me,ce,le),"-"===ie||ie===le.negationSymbol.front){if(!0!==le.allowMinus)return!1;var fe=!1,_e=d("+",ce),be=d("-",ce);return-1!==_e&&(fe=[_e,be]),!1!==fe?{remove:fe,caret:ge-le.negationSymbol.back.length}:{insert:[{pos:f.call(this,"+",ce),c:le.negationSymbol.front,fromIsValid:!0},{pos:f.call(this,"-",ce),c:le.negationSymbol.back,fromIsValid:void 0}],caret:ge+le.negationSymbol.back.length}}if(ie===le.groupSeparator)return{caret:ge};if(ue)return!0;if(-1!==me&&!0===le._radixDance&&!1===re&&ie===le.radixPoint&&void 0!==le.digits&&(isNaN(le.digits)||parseInt(le.digits)>0)&&me!==ne)return{caret:le._radixDance&&ne===me-1?me+1:me};if(!1===le.__financeInput)if(re){if(le.digitsOptional)return{rewritePosition:de.end};if(!le.digitsOptional){if(de.begin>me&&de.end<=me)return ie===le.radixPoint?{insert:{pos:me+1,c:"0",fromIsValid:!0},rewritePosition:me}:{rewritePosition:me+1};if(de.begin<me)return{rewritePosition:de.begin-1}}}else if(!le.showMaskOnHover&&!le.showMaskOnFocus&&!le.digitsOptional&&le.digits>0&&""===this.__valueGet.call(this.el))return{rewritePosition:me};return{rewritePosition:ne}},postValidation:function(te,ne,ie,re,le,ce,de){if(!1===re)return re;if(de)return!0;if(null!==le.min||null!==le.max){var me=le.onUnMask(te.slice().reverse().join(""),void 0,ue.extend({},le,{unmaskAsNumber:!0}));if(null!==le.min&&me<le.min&&(me.toString().length>le.min.toString().length||me<0))return!1;if(null!==le.max&&me>le.max)return!!le.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:u(le.max.toString().replace(".",le.radixPoint).split(""),le.digits,le).reverse()}}return re},onUnMask:function(te,ne,ie){if(""===ne&&!0===ie.nullable)return ne;var re=te.replace(ie.prefix,"");return re=(re=re.replace(ie.suffix,"")).replace(new RegExp((0,le.default)(ie.groupSeparator),"g"),""),""!==ie.placeholder.charAt(0)&&(re=re.replace(new RegExp(ie.placeholder.charAt(0),"g"),"0")),ie.unmaskAsNumber?(""!==ie.radixPoint&&-1!==re.indexOf(ie.radixPoint)&&(re=re.replace(le.default.call(this,ie.radixPoint),".")),re=(re=re.replace(new RegExp("^"+(0,le.default)(ie.negationSymbol.front)),"-")).replace(new RegExp((0,le.default)(ie.negationSymbol.back)+"$"),""),Number(re)):re},isComplete:function(te,ne){var ie=(ne.numericInput?te.slice().reverse():te).join("");return ie=(ie=(ie=(ie=(ie=ie.replace(new RegExp("^"+(0,le.default)(ne.negationSymbol.front)),"-")).replace(new RegExp((0,le.default)(ne.negationSymbol.back)+"$"),"")).replace(ne.prefix,"")).replace(ne.suffix,"")).replace(new RegExp((0,le.default)(ne.groupSeparator)+"([0-9]{3})","g"),"$1"),","===ne.radixPoint&&(ie=ie.replace((0,le.default)(ne.radixPoint),".")),isFinite(ie)},onBeforeMask:function(te,ne){var ie=ne.radixPoint||",";isFinite(ne.digits)&&(ne.digits=parseInt(ne.digits)),"number"!=typeof te&&"number"!==ne.inputType||""===ie||(te=te.toString().replace(".",ie));var re="-"===te.charAt(0)||te.charAt(0)===ne.negationSymbol.front,ce=te.split(ie),de=ce[0].replace(/[^\-0-9]/g,""),ue=ce.length>1?ce[1].replace(/[^0-9]/g,""):"",me=ce.length>1;te=de+(""!==ue?ie+ue:ue);var ge=0;if(""!==ie&&(ge=ne.digitsOptional?ne.digits<ue.length?ne.digits:ue.length:ne.digits,""!==ue||!ne.digitsOptional)){var fe=Math.pow(10,ge||1);te=te.replace((0,le.default)(ie),"."),isNaN(parseFloat(te))||(te=(ne.roundingFN(parseFloat(te)*fe)/fe).toFixed(ge)),te=te.toString().replace(".",ie)}if(0===ne.digits&&-1!==te.indexOf(ie)&&(te=te.substring(0,te.indexOf(ie))),null!==ne.min||null!==ne.max){var _e=te.toString().replace(ie,".");null!==ne.min&&_e<ne.min?te=ne.min.toString().replace(".",ie):null!==ne.max&&_e>ne.max&&(te=ne.max.toString().replace(".",ie))}return re&&"-"!==te.charAt(0)&&(te="-"+te),u(te.toString().split(""),ge,ne,me).join("")},onBeforeWrite:function(te,ne,ie,re){function r(te,ne){if(!1!==re.__financeInput||ne){var ie=te.indexOf(re.radixPoint);-1!==ie&&te.splice(ie,1)}if(""!==re.groupSeparator)for(;-1!==(ie=te.indexOf(re.groupSeparator));)te.splice(ie,1);return te}var ce,de;if(re.stripLeadingZeroes&&(de=function(te,ne){var ie=new RegExp("(^"+(""!==ne.negationSymbol.front?(0,le.default)(ne.negationSymbol.front)+"?":"")+(0,le.default)(ne.prefix)+")(.*)("+(0,le.default)(ne.suffix)+(""!=ne.negationSymbol.back?(0,le.default)(ne.negationSymbol.back)+"?":"")+"$)").exec(te.slice().reverse().join("")),re=ie?ie[2]:"",ce=!1;return re&&(re=re.split(ne.radixPoint.charAt(0))[0],ce=new RegExp("^[0"+ne.groupSeparator+"]*").exec(re)),!(!ce||!(ce[0].length>1||ce[0].length>0&&ce[0].length<re.length))&&ce}(ne,re)))for(var me=ne.join("").lastIndexOf(de[0].split("").reverse().join(""))-(de[0]==de.input?0:1),ge=de[0]==de.input?1:0,fe=de[0].length-ge;fe>0;fe--)delete this.maskset.validPositions[me+fe],delete ne[me+fe];if(te)switch(te.type){case"blur":case"checkval":if(null!==re.min){var _e=re.onUnMask(ne.slice().reverse().join(""),void 0,ue.extend({},re,{unmaskAsNumber:!0}));if(null!==re.min&&_e<re.min)return{refreshFromBuffer:!0,buffer:u(re.min.toString().replace(".",re.radixPoint).split(""),re.digits,re).reverse()}}if(ne[ne.length-1]===re.negationSymbol.front){var be=new RegExp("(^"+(""!=re.negationSymbol.front?(0,le.default)(re.negationSymbol.front)+"?":"")+(0,le.default)(re.prefix)+")(.*)("+(0,le.default)(re.suffix)+(""!=re.negationSymbol.back?(0,le.default)(re.negationSymbol.back)+"?":"")+"$)").exec(r(ne.slice(),!0).reverse().join(""));0==(be?be[2]:"")&&(ce={refreshFromBuffer:!0,buffer:[0]})}else""!==re.radixPoint&&ne.indexOf(re.radixPoint)===re.suffix.length&&(ce&&ce.buffer?ce.buffer.splice(0,1+re.suffix.length):(ne.splice(0,1+re.suffix.length),ce={refreshFromBuffer:!0,buffer:r(ne)}));if(re.enforceDigitsOnBlur){var Ce=(ce=ce||{})&&ce.buffer||ne.slice().reverse();ce.refreshFromBuffer=!0,ce.buffer=u(Ce,re.digits,re,!0).reverse()}}return ce},onKeyDown:function(te,ne,ie,re){var le,ce=ue(this);if(3!=te.location){var me,ge=te.key;if((me=re.shortcuts&&re.shortcuts[ge])&&me.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(me)),ce.trigger("setvalue"),!1}if(te.ctrlKey)switch(te.key){case de.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(re.step)),ce.trigger("setvalue"),!1;case de.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(re.step)),ce.trigger("setvalue"),!1}if(!te.shiftKey&&(te.key===de.keys.Delete||te.key===de.keys.Backspace||te.key===de.keys.BACKSPACE_SAFARI)&&ie.begin!==ne.length){if(ne[te.key===de.keys.Delete?ie.begin-1:ie.end]===re.negationSymbol.front)return le=ne.slice().reverse(),""!==re.negationSymbol.front&&le.shift(),""!==re.negationSymbol.back&&le.pop(),ce.trigger("setvalue",[le.join(""),ie.begin]),!1;if(!0===re._radixDance){var fe=ne.indexOf(re.radixPoint);if(re.digitsOptional){if(0===fe)return(le=ne.slice().reverse()).pop(),ce.trigger("setvalue",[le.join(""),ie.begin>=le.length?le.length:ie.begin]),!1}else if(-1!==fe&&(ie.begin<fe||ie.end<fe||te.key===de.keys.Delete&&(ie.begin===fe||ie.begin-1===fe))){var _e=void 0;return ie.begin===ie.end&&(te.key===de.keys.Backspace||te.key===de.keys.BACKSPACE_SAFARI?ie.begin++:te.key===de.keys.Delete&&ie.begin-1===fe&&(_e=ue.extend({},ie),ie.begin--,ie.end--)),(le=ne.slice().reverse()).splice(le.length-ie.begin,ie.begin-ie.end+1),le=u(le,re.digits,re).join(""),_e&&(ie=_e),ce.trigger("setvalue",[le,ie.begin>=le.length?fe+1:ie.begin]),!1}}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(te){return"("+te.groupSeparator+"99){*|1}("+te.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(te,ne,ie){var re;Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0;var le=((re=ie(8741))&&re.__esModule?re:{default:re}).default?window:{};ne.default=le},7760:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.HandleNativePlaceholder=function(te,ne){var ie=te?te.inputmask:this;if(ue.ie){if(te.inputmask._valueGet()!==ne&&(te.placeholder!==ne||""===te.placeholder)){var re=ce.getBuffer.call(ie).slice(),le=te.inputmask._valueGet();if(le!==ne){var de=ce.getLastValidPosition.call(ie);-1===de&&le===ce.getBufferTemplate.call(ie).join("")?re=[]:-1!==de&&u.call(ie,re),d(te,re)}}}else te.placeholder!==ne&&(te.placeholder=ne,""===te.placeholder&&te.removeAttribute("placeholder"))},ne.applyInputValue=c,ne.checkVal=f,ne.clearOptionalTail=u,ne.unmaskedvalue=function(te){var ne=te?te.inputmask:this,ie=ne.opts,re=ne.maskset;if(te){if(void 0===te.inputmask)return te.value;te.inputmask&&te.inputmask.refreshValue&&c(te,te.inputmask._valueGet(!0))}for(var le=[],de=re.validPositions,ue=0,me=de.length;ue<me;ue++)de[ue]&&de[ue].match&&(1!=de[ue].match.static||Array.isArray(re.metadata)&&!0!==de[ue].generatedInput)&&le.push(de[ue].input);var ge=0===le.length?"":(ne.isRTL?le.reverse():le).join("");if("function"==typeof ie.onUnMask){var fe=(ne.isRTL?ce.getBuffer.call(ne).slice().reverse():ce.getBuffer.call(ne)).join("");ge=ie.onUnMask.call(ne,fe,ge,ie)}return ge},ne.writeBuffer=d;var re=ie(2839),le=ie(4713),ce=ie(8711),de=ie(7215),ue=ie(9845),me=ie(6030);function c(te,ne){var ie=te?te.inputmask:this,re=ie.opts;te.inputmask.refreshValue=!1,"function"==typeof re.onBeforeMask&&(ne=re.onBeforeMask.call(ie,ne,re)||ne),f(te,!0,!1,ne=(ne||"").toString().split("")),ie.undoValue=ie._valueGet(!0),(re.clearMaskOnLostFocus||re.clearIncomplete)&&te.inputmask._valueGet()===ce.getBufferTemplate.call(ie).join("")&&-1===ce.getLastValidPosition.call(ie)&&te.inputmask._valueSet("")}function u(te){te.length=0;for(var ne,ie=le.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(ne=ie.shift());)te.push(ne);return te}function f(te,ne,ie,re,ue){var ge=te?te.inputmask:this,fe=ge.maskset,_e=ge.opts,be=ge.dependencyLib,Ce=re.slice(),ye="",we=-1,ke=void 0,Se=_e.skipOptionalPartCharacter;_e.skipOptionalPartCharacter="",ce.resetMaskSet.call(ge),fe.tests={},we=_e.radixPoint?ce.determineNewCaretPosition.call(ge,{begin:0,end:0},!1,!1===_e.__financeInput?"radixFocus":void 0).begin:0,fe.p=we,ge.caretPos={begin:we};var xe=[],Ee=ge.caretPos;if(Ce.forEach((function(te,ne){if(void 0!==te){var re=new be.Event("_checkval");re.key=te,ye+=te;var de=ce.getLastValidPosition.call(ge,void 0,!0);!function(te,ne){for(var ie=le.getMaskTemplate.call(ge,!0,0).slice(te,ce.seekNext.call(ge,te,!1,!1)).join("").replace(/'/g,""),re=ie.indexOf(ne);re>0&&" "===ie[re-1];)re--;var de=0===re&&!ce.isMask.call(ge,te)&&(le.getTest.call(ge,te).match.nativeDef===ne.charAt(0)||!0===le.getTest.call(ge,te).match.static&&le.getTest.call(ge,te).match.nativeDef==="'"+ne.charAt(0)||" "===le.getTest.call(ge,te).match.nativeDef&&(le.getTest.call(ge,te+1).match.nativeDef===ne.charAt(0)||!0===le.getTest.call(ge,te+1).match.static&&le.getTest.call(ge,te+1).match.nativeDef==="'"+ne.charAt(0)));if(!de&&re>0&&!ce.isMask.call(ge,te,!1,!0)){var ue=ce.seekNext.call(ge,te);ge.caretPos.begin<ue&&(ge.caretPos={begin:ue})}return de}(we,ye)?(ke=me.EventHandlers.keypressEvent.call(ge,re,!0,!1,ie,ge.caretPos.begin))&&(we=ge.caretPos.begin+1,ye=""):ke=me.EventHandlers.keypressEvent.call(ge,re,!0,!1,ie,de+1),ke?(void 0!==ke.pos&&fe.validPositions[ke.pos]&&!0===fe.validPositions[ke.pos].match.static&&void 0===fe.validPositions[ke.pos].alternation&&(xe.push(ke.pos),ge.isRTL||(ke.forwardPosition=ke.pos+1)),d.call(ge,void 0,ce.getBuffer.call(ge),ke.forwardPosition,re,!1),ge.caretPos={begin:ke.forwardPosition,end:ke.forwardPosition},Ee=ge.caretPos):void 0===fe.validPositions[ne]&&Ce[ne]===le.getPlaceholder.call(ge,ne)&&ce.isMask.call(ge,ne,!0)?ge.caretPos.begin++:ge.caretPos=Ee}})),xe.length>0){var Me,Ne,Re=ce.seekNext.call(ge,-1,void 0,!1);if(!de.isComplete.call(ge,ce.getBuffer.call(ge))&&xe.length<=Re||de.isComplete.call(ge,ce.getBuffer.call(ge))&&xe.length>0&&xe.length!==Re&&0===xe[0])for(var Le=Re;void 0!==(Me=xe.shift());){var Oe=new be.Event("_checkval");if((Ne=fe.validPositions[Me]).generatedInput=!0,Oe.key=Ne.input,(ke=me.EventHandlers.keypressEvent.call(ge,Oe,!0,!1,ie,Le))&&void 0!==ke.pos&&ke.pos!==Me&&fe.validPositions[ke.pos]&&!0===fe.validPositions[ke.pos].match.static)xe.push(ke.pos);else if(!ke)break;Le++}}ne&&d.call(ge,te,ce.getBuffer.call(ge),ke?ke.forwardPosition:ge.caretPos.begin,ue||new be.Event("checkval"),ue&&("input"===ue.type&&ge.undoValue!==ce.getBuffer.call(ge).join("")||"paste"===ue.type)),_e.skipOptionalPartCharacter=Se}function d(te,ne,ie,le,ue){var me=te?te.inputmask:this,ge=me.opts,fe=me.dependencyLib;if(le&&"function"==typeof ge.onBeforeWrite){var _e=ge.onBeforeWrite.call(me,le,ne,ie,ge);if(_e){if(_e.refreshFromBuffer){var be=_e.refreshFromBuffer;de.refreshFromBuffer.call(me,!0===be?be:be.start,be.end,_e.buffer||ne),ne=ce.getBuffer.call(me,!0)}void 0!==ie&&(ie=void 0!==_e.caret?_e.caret:ie)}}if(void 0!==te&&(te.inputmask._valueSet(ne.join("")),void 0===ie||void 0!==le&&"blur"===le.type||ce.caret.call(me,te,ie,void 0,void 0,void 0!==le&&"keydown"===le.type&&(le.key===re.keys.Delete||le.key===re.keys.Backspace)),!0===ue)){var Ce=fe(te),ye=te.inputmask._valueGet();te.inputmask.skipInputEvent=!0,Ce.trigger("input"),setTimeout((function(){ye===ce.getBufferTemplate.call(me).join("")?Ce.trigger("cleared"):!0===de.isComplete.call(me,ne)&&Ce.trigger("complete")}),0)}}},2394:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0;var re=ie(157),le=m(ie(4963)),ce=m(ie(9380)),de=ie(2391),ue=ie(4713),me=ie(8711),ge=ie(7215),fe=ie(7760),_e=ie(9716),be=m(ie(7392)),Ce=m(ie(3976)),ye=m(ie(8741));function v(te){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(te){return typeof te}:function(te){return te&&"function"==typeof Symbol&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},v(te)}function m(te){return te&&te.__esModule?te:{default:te}}var we=ce.default.document,ke="_inputmask_opts";function k(te,ne,ie){if(ye.default){if(!(this instanceof k))return new k(te,ne,ie);this.dependencyLib=le.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==ie&&("[object Object]"===Object.prototype.toString.call(te)?ne=te:(ne=ne||{},te&&(ne.alias=te)),this.opts=le.default.extend(!0,{},this.defaults,ne),this.noMasksCache=ne&&void 0!==ne.definitions,this.userOptions=ne||{},b(this.opts.alias,ne,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}}function b(te,ne,ie){var re=k.prototype.aliases[te];return re?(re.alias&&b(re.alias,void 0,ie),le.default.extend(!0,ie,re),le.default.extend(!0,ie,ne),!0):(null===ie.mask&&(ie.mask=te),!1)}k.prototype={dataAttribute:"data-inputmask",defaults:Ce.default,definitions:be.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(te){var ne=this;return"string"==typeof te&&(te=we.getElementById(te)||we.querySelectorAll(te)),(te=te.nodeName?[te]:Array.isArray(te)?te:[].slice.call(te)).forEach((function(te,ie){var ue=le.default.extend(!0,{},ne.opts);if(function(te,ne,ie,re){function o(ne,le){var de=""===re?ne:re+"-"+ne;null!==(le=void 0!==le?le:te.getAttribute(de))&&("string"==typeof le&&(0===ne.indexOf("on")?le=ce.default[le]:"false"===le?le=!1:"true"===le&&(le=!0)),ie[ne]=le)}if(!0===ne.importDataAttributes){var de,ue,me,ge,fe=te.getAttribute(re);if(fe&&""!==fe&&(fe=fe.replace(/'/g,'"'),ue=JSON.parse("{"+fe+"}")),ue)for(ge in me=void 0,ue)if("alias"===ge.toLowerCase()){me=ue[ge];break}for(de in o("alias",me),ie.alias&&b(ie.alias,ie,ne),ne){if(ue)for(ge in me=void 0,ue)if(ge.toLowerCase()===de.toLowerCase()){me=ue[ge];break}o(de,me)}}return le.default.extend(!0,ne,ie),("rtl"===te.dir||ne.rightAlign)&&(te.style.textAlign="right"),("rtl"===te.dir||ne.numericInput)&&(te.dir="ltr",te.removeAttribute("dir"),ne.isRTL=!0),Object.keys(ie).length}(te,ue,le.default.extend(!0,{},ne.userOptions),ne.dataAttribute)){var me=(0,de.generateMaskSet)(ue,ne.noMasksCache);void 0!==me&&(void 0!==te.inputmask&&(te.inputmask.opts.autoUnmask=!0,te.inputmask.remove()),te.inputmask=new k(void 0,void 0,!0),te.inputmask.opts=ue,te.inputmask.noMasksCache=ne.noMasksCache,te.inputmask.userOptions=le.default.extend(!0,{},ne.userOptions),te.inputmask.el=te,te.inputmask.$el=(0,le.default)(te),te.inputmask.maskset=me,le.default.data(te,ke,ne.userOptions),re.mask.call(te.inputmask))}})),te&&te[0]&&te[0].inputmask||this},option:function(te,ne){return"string"==typeof te?this.opts[te]:"object"===v(te)?(le.default.extend(this.userOptions,te),this.el&&!0!==ne&&this.mask(this.el),this):void 0},unmaskedvalue:function(te){if(this.maskset=this.maskset||(0,de.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==te){var ne=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,te,this.opts)||te).split("");fe.checkVal.call(this,void 0,!1,!1,ne),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,me.getBuffer.call(this),0,this.opts)}return fe.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){le.default.data(this.el,ke,null);var te=this.opts.autoUnmask?(0,fe.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);te!==me.getBufferTemplate.call(this).join("")?this._valueSet(te,this.opts.autoUnmask):this._valueSet(""),_e.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):we.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,de.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?me.getBufferTemplate.call(this).reverse():me.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,de.generateMaskSet)(this.opts,this.noMasksCache),ge.isComplete.call(this,me.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,de.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var te=ue.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(ne){return ne.mask!==te||(te=ne,!1)})),te}return this.maskset.metadata},isValid:function(te){if(this.maskset=this.maskset||(0,de.generateMaskSet)(this.opts,this.noMasksCache),te){var ne=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,te,this.opts)||te).split("");fe.checkVal.call(this,void 0,!0,!1,ne)}else te=this.isRTL?me.getBuffer.call(this).slice().reverse().join(""):me.getBuffer.call(this).join("");for(var ie=me.getBuffer.call(this),re=me.determineLastRequiredPosition.call(this),le=ie.length-1;le>re&&!me.isMask.call(this,le);le--);return ie.splice(re,le+1-re),ge.isComplete.call(this,ie)&&te===(this.isRTL?me.getBuffer.call(this).slice().reverse().join(""):me.getBuffer.call(this).join(""))},format:function(te,ne){this.maskset=this.maskset||(0,de.generateMaskSet)(this.opts,this.noMasksCache);var ie=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,te,this.opts)||te).split("");fe.checkVal.call(this,void 0,!0,!1,ie);var re=this.isRTL?me.getBuffer.call(this).slice().reverse().join(""):me.getBuffer.call(this).join("");return ne?{value:re,metadata:this.getmetadata()}:re},setValue:function(te){this.el&&(0,le.default)(this.el).trigger("setvalue",[te])},analyseMask:de.analyseMask},k.extendDefaults=function(te){le.default.extend(!0,k.prototype.defaults,te)},k.extendDefinitions=function(te){le.default.extend(!0,k.prototype.definitions,te)},k.extendAliases=function(te){le.default.extend(!0,k.prototype.aliases,te)},k.format=function(te,ne,ie){return k(ne).format(te,ie)},k.unmask=function(te,ne){return k(ne).unmaskedvalue(te)},k.isValid=function(te,ne){return k(ne).isValid(te)},k.remove=function(te){"string"==typeof te&&(te=we.getElementById(te)||we.querySelectorAll(te)),(te=te.nodeName?[te]:te).forEach((function(te){te.inputmask&&te.inputmask.remove()}))},k.setValue=function(te,ne){"string"==typeof te&&(te=we.getElementById(te)||we.querySelectorAll(te)),(te=te.nodeName?[te]:te).forEach((function(te){te.inputmask?te.inputmask.setValue(ne):(0,le.default)(te).trigger("setvalue",[ne])}))},k.dependencyLib=le.default,ce.default.Inputmask=k;var Se=k;ne.default=Se},5296:function(te,ne,ie){function n(te){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(te){return typeof te}:function(te){return te&&"function"==typeof Symbol&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},n(te)}var re=h(ie(9380)),le=h(ie(2394)),ce=h(ie(8741));function s(te,ne){for(var ie=0;ie<ne.length;ie++){var re=ne[ie];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(te,(le=void 0,le=function(te,ne){if("object"!==n(te)||null===te)return te;var ie=te[Symbol.toPrimitive];if(void 0!==ie){var re=ie.call(te,ne||"default");if("object"!==n(re))return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ne?String:Number)(te)}(re.key,"string"),"symbol"===n(le)?le:String(le)),re)}var le}function l(te){var ne=f();return function(){var ie,re=p(te);if(ne){var le=p(this).constructor;ie=Reflect.construct(re,arguments,le)}else ie=re.apply(this,arguments);return function(te,ne){if(ne&&("object"===n(ne)||"function"==typeof ne))return ne;if(void 0!==ne)throw new TypeError("Derived constructors may only return object or undefined");return function(te){if(void 0===te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te}(te)}(this,ie)}}function c(te){var ne="function"==typeof Map?new Map:void 0;return c=function(te){if(null===te||(ie=te,-1===Function.toString.call(ie).indexOf("[native code]")))return te;var ie;if("function"!=typeof te)throw new TypeError("Super expression must either be null or a function");if(void 0!==ne){if(ne.has(te))return ne.get(te);ne.set(te,n)}function n(){return u(te,arguments,p(this).constructor)}return n.prototype=Object.create(te.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,te)},c(te)}function u(te,ne,ie){return u=f()?Reflect.construct.bind():function(te,ne,ie){var re=[null];re.push.apply(re,ne);var le=new(Function.bind.apply(te,re));return ie&&d(le,ie.prototype),le},u.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(te){return!1}}function d(te,ne){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(te,ne){return te.__proto__=ne,te},d(te,ne)}function p(te){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(te){return te.__proto__||Object.getPrototypeOf(te)},p(te)}function h(te){return te&&te.__esModule?te:{default:te}}var de=re.default.document;if(ce.default&&de&&de.head&&de.head.attachShadow&&re.default.customElements&&void 0===re.default.customElements.get("input-mask")){var ue=function(te){!function(te,ne){if("function"!=typeof ne&&null!==ne)throw new TypeError("Super expression must either be null or a function");te.prototype=Object.create(ne&&ne.prototype,{constructor:{value:te,writable:!0,configurable:!0}}),Object.defineProperty(te,"prototype",{writable:!1}),ne&&d(te,ne)}(o,te);var ne,ie,re,ce=l(o);function o(){var te;!function(te,ne){if(!(te instanceof ne))throw new TypeError("Cannot call a class as a function")}(this,o);var ne=(te=ce.call(this)).getAttributeNames(),ie=te.attachShadow({mode:"closed"}),re=de.createElement("input");for(var ue in re.type="text",ie.appendChild(re),ne)Object.prototype.hasOwnProperty.call(ne,ue)&&re.setAttribute(ne[ue],te.getAttribute(ne[ue]));var me=new le.default;return me.dataAttribute="",me.mask(re),re.inputmask.shadowRoot=ie,te}return ne=o,ie&&s(ne.prototype,ie),re&&s(ne,re),Object.defineProperty(ne,"prototype",{writable:!1}),ne}(c(HTMLElement));re.default.customElements.define("input-mask",ue)}},2839:function(te,ne){function i(te,ne){return function(te){if(Array.isArray(te))return te}(te)||function(te,ne){var ie=null==te?null:"undefined"!=typeof Symbol&&te[Symbol.iterator]||te["@@iterator"];if(null!=ie){var re,le,ce,de,ue=[],me=!0,ge=!1;try{if(ce=(ie=ie.call(te)).next,0===ne){if(Object(ie)!==ie)return;me=!1}else for(;!(me=(re=ce.call(ie)).done)&&(ue.push(re.value),ue.length!==ne);me=!0);}catch(te){ge=!0,le=te}finally{try{if(!me&&null!=ie.return&&(de=ie.return(),Object(de)!==de))return}finally{if(ge)throw le}}return ue}}(te,ne)||function(te,ne){if(te){if("string"==typeof te)return n(te,ne);var ie=Object.prototype.toString.call(te).slice(8,-1);return"Object"===ie&&te.constructor&&(ie=te.constructor.name),"Map"===ie||"Set"===ie?Array.from(te):"Arguments"===ie||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie)?n(te,ne):void 0}}(te,ne)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(te,ne){(null==ne||ne>te.length)&&(ne=te.length);for(var ie=0,re=new Array(ne);ie<ne;ie++)re[ie]=te[ie];return re}Object.defineProperty(ne,"__esModule",{value:!0}),ne.keys=ne.keyCode=void 0,ne.toKey=function(te,ne){return re[te]||(ne?String.fromCharCode(te):String.fromCharCode(te).toLowerCase())},ne.toKeyCode=function(te){return ie[te]};var ie={AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,BACKSPACE_SAFARI:127,CapsLock:20,Delete:46,End:35,Enter:13,Escape:27,Home:36,Insert:45,PageDown:34,PageUp:33,Space:32,Tab:9,c:67,x:88,z:90,Shift:16,Control:17,Alt:18,Pause:19,Meta_LEFT:91,Meta_RIGHT:92,ContextMenu:93,Process:229,Unidentified:229,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123};ne.keyCode=ie;var re=Object.entries(ie).reduce((function(te,ne){var ie=i(ne,2),re=ie[0],le=ie[1];return te[le]=void 0===te[le]?re:te[le],te}),{}),le=Object.entries(ie).reduce((function(te,ne){var ie=i(ne,2),re=ie[0];return ie[1],te[re]="Space"===re?" ":re,te}),{});ne.keys=le},2391:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.analyseMask=function(te,ne,ie){var re,de,ue,me,ge,fe,_e=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,be=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,Ce=!1,ye=new le.default,we=[],ke=[],Se=!1;function y(te,re,le){le=void 0!==le?le:te.matches.length;var de=te.matches[le-1];if(ne){if(0===re.indexOf("[")||Ce&&/\\d|\\s|\\w|\\p/i.test(re)||"."===re){var ue=ie.casing?"i":"";/^\\p\{.*}$/i.test(re)&&(ue+="u"),te.matches.splice(le++,0,{fn:new RegExp(re,ue),static:!1,optionality:!1,newBlockMarker:void 0===de?"master":de.def!==re,casing:null,def:re,placeholder:void 0,nativeDef:re})}else Ce&&(re=re[re.length-1]),re.split("").forEach((function(ne,re){de=te.matches[le-1],te.matches.splice(le++,0,{fn:/[a-z]/i.test(ie.staticDefinitionSymbol||ne)?new RegExp("["+(ie.staticDefinitionSymbol||ne)+"]",ie.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===de?"master":de.def!==ne&&!0!==de.static,casing:null,def:ie.staticDefinitionSymbol||ne,placeholder:void 0!==ie.staticDefinitionSymbol?ne:void 0,nativeDef:(Ce?"'":"")+ne})}));Ce=!1}else{var me=ie.definitions&&ie.definitions[re]||ie.usePrototypeDefinitions&&ce.default.prototype.definitions[re];me&&!Ce?te.matches.splice(le++,0,{fn:me.validator?"string"==typeof me.validator?new RegExp(me.validator,ie.casing?"i":""):new function(){this.test=me.validator}:new RegExp("."),static:me.static||!1,optionality:me.optional||!1,defOptionality:me.optional||!1,newBlockMarker:void 0===de||me.optional?"master":de.def!==(me.definitionSymbol||re),casing:me.casing,def:me.definitionSymbol||re,placeholder:me.placeholder,nativeDef:re,generated:me.generated}):(te.matches.splice(le++,0,{fn:/[a-z]/i.test(ie.staticDefinitionSymbol||re)?new RegExp("["+(ie.staticDefinitionSymbol||re)+"]",ie.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===de?"master":de.def!==re&&!0!==de.static,casing:null,def:ie.staticDefinitionSymbol||re,placeholder:void 0!==ie.staticDefinitionSymbol?re:void 0,nativeDef:(Ce?"'":"")+re}),Ce=!1)}}function k(){if(we.length>0){if(y(me=we[we.length-1],de),me.isAlternator){ge=we.pop();for(var te=0;te<ge.matches.length;te++)ge.matches[te].isGroup&&(ge.matches[te].isGroup=!1);we.length>0?(me=we[we.length-1]).matches.push(ge):ye.matches.push(ge)}}else y(ye,de)}function b(te){var ne=new le.default(!0);return ne.openGroup=!1,ne.matches=te,ne}function x(){if((ue=we.pop()).openGroup=!1,void 0!==ue)if(we.length>0){if((me=we[we.length-1]).matches.push(ue),me.isAlternator){for(var te=(ge=we.pop()).matches[0].matches?ge.matches[0].matches.length:1,ne=0;ne<ge.matches.length;ne++)ge.matches[ne].isGroup=!1,ge.matches[ne].alternatorGroup=!1,null===ie.keepStatic&&te<(ge.matches[ne].matches?ge.matches[ne].matches.length:1)&&(ie.keepStatic=!0),te=ge.matches[ne].matches?ge.matches[ne].matches.length:1;we.length>0?(me=we[we.length-1]).matches.push(ge):ye.matches.push(ge)}}else ye.matches.push(ue);else k()}function P(te){var ne=te.pop();return ne.isQuantifier&&(ne=b([te.pop(),ne])),ne}for(ne&&(ie.optionalmarker[0]=void 0,ie.optionalmarker[1]=void 0);re=ne?be.exec(te):_e.exec(te);){if(de=re[0],ne){switch(de.charAt(0)){case"?":de="{0,1}";break;case"+":case"*":de="{"+de+"}";break;case"|":if(0===we.length){var xe=b(ye.matches);xe.openGroup=!0,we.push(xe),ye.matches=[],Se=!0}}switch(de){case"\\d":de="[0-9]";break;case"\\p":de+=be.exec(te)[0],de+=be.exec(te)[0]}}if(Ce)k();else switch(de.charAt(0)){case"$":case"^":ne||k();break;case ie.escapeChar:Ce=!0,ne&&k();break;case ie.optionalmarker[1]:case ie.groupmarker[1]:x();break;case ie.optionalmarker[0]:we.push(new le.default(!1,!0));break;case ie.groupmarker[0]:we.push(new le.default(!0));break;case ie.quantifiermarker[0]:var Ee=new le.default(!1,!1,!0),Me=(de=de.replace(/[{}?]/g,"")).split("|"),Ne=Me[0].split(","),Re=isNaN(Ne[0])?Ne[0]:parseInt(Ne[0]),Le=1===Ne.length?Re:isNaN(Ne[1])?Ne[1]:parseInt(Ne[1]),Oe=isNaN(Me[1])?Me[1]:parseInt(Me[1]);"*"!==Re&&"+"!==Re||(Re="*"===Le?0:1),Ee.quantifier={min:Re,max:Le,jit:Oe};var Pe=we.length>0?we[we.length-1].matches:ye.matches;(re=Pe.pop()).isGroup||(re=b([re])),Pe.push(re),Pe.push(Ee);break;case ie.alternatormarker:if(we.length>0){var Fe=(me=we[we.length-1]).matches[me.matches.length-1];fe=me.openGroup&&(void 0===Fe.matches||!1===Fe.isGroup&&!1===Fe.isAlternator)?we.pop():P(me.matches)}else fe=P(ye.matches);if(fe.isAlternator)we.push(fe);else if(fe.alternatorGroup?(ge=we.pop(),fe.alternatorGroup=!1):ge=new le.default(!1,!1,!1,!0),ge.matches.push(fe),we.push(ge),fe.openGroup){fe.openGroup=!1;var je=new le.default(!0);je.alternatorGroup=!0,we.push(je)}break;default:k()}}for(Se&&x();we.length>0;)ue=we.pop(),ye.matches.push(ue);return ye.matches.length>0&&(function e(te){te&&te.matches&&te.matches.forEach((function(re,le){var ce=te.matches[le+1];(void 0===ce||void 0===ce.matches||!1===ce.isQuantifier)&&re&&re.isGroup&&(re.isGroup=!1,ne||(y(re,ie.groupmarker[0],0),!0!==re.openGroup&&y(re,ie.groupmarker[1]))),e(re)}))}(ye),ke.push(ye)),(ie.numericInput||ie.isRTL)&&function e(te){for(var ne in te.matches=te.matches.reverse(),te.matches)if(Object.prototype.hasOwnProperty.call(te.matches,ne)){var re=parseInt(ne);if(te.matches[ne].isQuantifier&&te.matches[re+1]&&te.matches[re+1].isGroup){var le=te.matches[ne];te.matches.splice(ne,1),te.matches.splice(re+1,0,le)}void 0!==te.matches[ne].matches?te.matches[ne]=e(te.matches[ne]):te.matches[ne]=((ce=te.matches[ne])===ie.optionalmarker[0]?ce=ie.optionalmarker[1]:ce===ie.optionalmarker[1]?ce=ie.optionalmarker[0]:ce===ie.groupmarker[0]?ce=ie.groupmarker[1]:ce===ie.groupmarker[1]&&(ce=ie.groupmarker[0]),ce)}var ce;return te}(ke[0]),ke},ne.generateMaskSet=function(te,ne){var ie;function a(te,ne){var ie=ne.repeat,re=ne.groupmarker,le=ne.quantifiermarker,ce=ne.keepStatic;if(ie>0||"*"===ie||"+"===ie){var ue="*"===ie?0:"+"===ie?1:ie;te=re[0]+te+re[1]+le[0]+ue+","+ie+le[1]}if(!0===ce){var me=te.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));me&&me.forEach((function(ne,ie){var re=function(te,ne){return function(te){if(Array.isArray(te))return te}(te)||function(te,ne){var ie=null==te?null:"undefined"!=typeof Symbol&&te[Symbol.iterator]||te["@@iterator"];if(null!=ie){var re,le,ce,de,ue=[],me=!0,ge=!1;try{if(ce=(ie=ie.call(te)).next,0===ne){if(Object(ie)!==ie)return;me=!1}else for(;!(me=(re=ce.call(ie)).done)&&(ue.push(re.value),ue.length!==ne);me=!0);}catch(te){ge=!0,le=te}finally{try{if(!me&&null!=ie.return&&(de=ie.return(),Object(de)!==de))return}finally{if(ge)throw le}}return ue}}(te,ne)||function(te,ne){if(te){if("string"==typeof te)return s(te,ne);var ie=Object.prototype.toString.call(te).slice(8,-1);return"Object"===ie&&te.constructor&&(ie=te.constructor.name),"Map"===ie||"Set"===ie?Array.from(te):"Arguments"===ie||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie)?s(te,ne):void 0}}(te,ne)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(ne.split("["),2),le=re[0],ce=re[1];ce=ce.replace("]",""),te=te.replace(new RegExp("".concat((0,de.default)(le),"\\[").concat((0,de.default)(ce),"\\]")),le.charAt(0)===ce.charAt(0)?"(".concat(le,"|").concat(le).concat(ce,")"):"".concat(le,"[").concat(ce,"]"))}))}return te}function l(te,ie,le){var de,ue,me=!1;return null!==te&&""!==te||((me=null!==le.regex)?te=(te=le.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(me=!0,te=".*")),1===te.length&&!1===le.greedy&&0!==le.repeat&&(le.placeholder=""),te=a(te,le),ue=me?"regex_"+le.regex:le.numericInput?te.split("").reverse().join(""):te,null!==le.keepStatic&&(ue="ks_"+le.keepStatic+ue),void 0===ce.default.prototype.masksCache[ue]||!0===ne?(de={mask:te,maskToken:ce.default.prototype.analyseMask(te,me,le),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:ie,maskLength:void 0,jitOffset:{}},!0!==ne&&(ce.default.prototype.masksCache[ue]=de,de=re.default.extend(!0,{},ce.default.prototype.masksCache[ue]))):de=re.default.extend(!0,{},ce.default.prototype.masksCache[ue]),de}if("function"==typeof te.mask&&(te.mask=te.mask(te)),Array.isArray(te.mask)){if(te.mask.length>1){null===te.keepStatic&&(te.keepStatic=!0);var le=te.groupmarker[0];return(te.isRTL?te.mask.reverse():te.mask).forEach((function(ne){le.length>1&&(le+=te.alternatormarker),void 0!==ne.mask&&"function"!=typeof ne.mask?le+=ne.mask:le+=ne})),l(le+=te.groupmarker[1],te.mask,te)}te.mask=te.mask.pop()}return ie=te.mask&&void 0!==te.mask.mask&&"function"!=typeof te.mask.mask?l(te.mask.mask,te.mask,te):l(te.mask,te.mask,te),null===te.keepStatic&&(te.keepStatic=!1),ie};var re=l(ie(4963)),le=l(ie(9695)),ce=l(ie(2394)),de=l(ie(7184));function s(te,ne){(null==ne||ne>te.length)&&(ne=te.length);for(var ie=0,re=new Array(ne);ie<ne;ie++)re[ie]=te[ie];return re}function l(te){return te&&te.__esModule?te:{default:te}}},157:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.mask=function(){var te=this,ne=this.opts,ie=this.el,fe=this.dependencyLib;de.EventRuler.off(ie);var _e=function(ne,ie){"textarea"!==ne.tagName.toLowerCase()&&ie.ignorables.push(re.keys.Enter);var ue=ne.getAttribute("type"),me="input"===ne.tagName.toLowerCase()&&ie.supportsInputType.includes(ue)||ne.isContentEditable||"textarea"===ne.tagName.toLowerCase();if(!me)if("input"===ne.tagName.toLowerCase()){var ge=document.createElement("input");ge.setAttribute("type",ue),me="text"===ge.type,ge=null}else me="partial";return!1!==me?function(ne){var re,ue;function l(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==le.getLastValidPosition.call(te)||!0!==ie.nullable?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&ie.clearMaskOnLostFocus?(te.isRTL?ce.clearOptionalTail.call(te,le.getBuffer.call(te).slice()).reverse():ce.clearOptionalTail.call(te,le.getBuffer.call(te).slice())).join(""):re.call(this):"":re.call(this)}function c(te){ue.call(this,te),this.inputmask&&(0,ce.applyInputValue)(this,te)}if(!ne.inputmask.__valueGet){if(!0!==ie.noValuePatching){if(Object.getOwnPropertyDescriptor){var me=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(ne),"value"):void 0;me&&me.get&&me.set?(re=me.get,ue=me.set,Object.defineProperty(ne,"value",{get:l,set:c,configurable:!0})):"input"!==ne.tagName.toLowerCase()&&(re=function(){return this.textContent},ue=function(te){this.textContent=te},Object.defineProperty(ne,"value",{get:l,set:c,configurable:!0}))}else document.__lookupGetter__&&ne.__lookupGetter__("value")&&(re=ne.__lookupGetter__("value"),ue=ne.__lookupSetter__("value"),ne.__defineGetter__("value",l),ne.__defineSetter__("value",c));ne.inputmask.__valueGet=re,ne.inputmask.__valueSet=ue}ne.inputmask._valueGet=function(ne){return te.isRTL&&!0!==ne?re.call(this.el).split("").reverse().join(""):re.call(this.el)},ne.inputmask._valueSet=function(ne,ie){ue.call(this.el,null==ne?"":!0!==ie&&te.isRTL?ne.split("").reverse().join(""):ne)},void 0===re&&(re=function(){return this.value},ue=function(te){this.value=te},function(ne){if(fe.valHooks&&(void 0===fe.valHooks[ne]||!0!==fe.valHooks[ne].inputmaskpatch)){var re=fe.valHooks[ne]&&fe.valHooks[ne].get?fe.valHooks[ne].get:function(te){return te.value},de=fe.valHooks[ne]&&fe.valHooks[ne].set?fe.valHooks[ne].set:function(te,ne){return te.value=ne,te};fe.valHooks[ne]={get:function(ne){if(ne.inputmask){if(ne.inputmask.opts.autoUnmask)return ne.inputmask.unmaskedvalue();var ce=re(ne);return-1!==le.getLastValidPosition.call(te,void 0,void 0,ne.inputmask.maskset.validPositions)||!0!==ie.nullable?ce:""}return re(ne)},set:function(te,ne){var ie=de(te,ne);return te.inputmask&&(0,ce.applyInputValue)(te,ne),ie},inputmaskpatch:!0}}}(ne.type),function(te){de.EventRuler.on(te,"mouseenter",(function(){var te=this,ne=te.inputmask._valueGet(!0);ne!=(te.inputmask.isRTL?le.getBuffer.call(te.inputmask).slice().reverse():le.getBuffer.call(te.inputmask)).join("")&&(0,ce.applyInputValue)(te,ne)}))}(ne))}}(ne):ne.inputmask=void 0,me}(ie,ne);if(!1!==_e){te.originalPlaceholder=ie.placeholder,te.maxLength=void 0!==ie?ie.maxLength:void 0,-1===te.maxLength&&(te.maxLength=void 0),"inputMode"in ie&&null===ie.getAttribute("inputmode")&&(ie.inputMode=ne.inputmode,ie.setAttribute("inputmode",ne.inputmode)),!0===_e&&(ne.showMaskOnFocus=ne.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(ie.autocomplete),ue.iphone&&(ne.insertModeVisual=!1,ie.setAttribute("autocorrect","off")),de.EventRuler.on(ie,"submit",ge.EventHandlers.submitEvent),de.EventRuler.on(ie,"reset",ge.EventHandlers.resetEvent),de.EventRuler.on(ie,"blur",ge.EventHandlers.blurEvent),de.EventRuler.on(ie,"focus",ge.EventHandlers.focusEvent),de.EventRuler.on(ie,"invalid",ge.EventHandlers.invalidEvent),de.EventRuler.on(ie,"click",ge.EventHandlers.clickEvent),de.EventRuler.on(ie,"mouseleave",ge.EventHandlers.mouseleaveEvent),de.EventRuler.on(ie,"mouseenter",ge.EventHandlers.mouseenterEvent),de.EventRuler.on(ie,"paste",ge.EventHandlers.pasteEvent),de.EventRuler.on(ie,"cut",ge.EventHandlers.cutEvent),de.EventRuler.on(ie,"complete",ne.oncomplete),de.EventRuler.on(ie,"incomplete",ne.onincomplete),de.EventRuler.on(ie,"cleared",ne.oncleared),!0!==ne.inputEventOnly&&de.EventRuler.on(ie,"keydown",ge.EventHandlers.keyEvent),(ue.mobile||ne.inputEventOnly)&&ie.removeAttribute("maxLength"),de.EventRuler.on(ie,"input",ge.EventHandlers.inputFallBackEvent)),de.EventRuler.on(ie,"setvalue",ge.EventHandlers.setValueEvent),le.getBufferTemplate.call(te).join(""),te.undoValue=te._valueGet(!0);var be=(ie.inputmask.shadowRoot||ie.ownerDocument).activeElement;if(""!==ie.inputmask._valueGet(!0)||!1===ne.clearMaskOnLostFocus||be===ie){(0,ce.applyInputValue)(ie,ie.inputmask._valueGet(!0),ne);var Ce=le.getBuffer.call(te).slice();!1===me.isComplete.call(te,Ce)&&ne.clearIncomplete&&le.resetMaskSet.call(te),ne.clearMaskOnLostFocus&&be!==ie&&(-1===le.getLastValidPosition.call(te)?Ce=[]:ce.clearOptionalTail.call(te,Ce)),(!1===ne.clearMaskOnLostFocus||ne.showMaskOnFocus&&be===ie||""!==ie.inputmask._valueGet(!0))&&(0,ce.writeBuffer)(ie,Ce),be===ie&&le.caret.call(te,ie,le.seekNext.call(te,le.getLastValidPosition.call(te)))}}};var re=ie(2839),le=ie(8711),ce=ie(7760),de=ie(9716),ue=ie(9845),me=ie(7215),ge=ie(6030)},9695:function(te,ne){Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=function(te,ne,ie,re){this.matches=[],this.openGroup=te||!1,this.alternatorGroup=!1,this.isGroup=te||!1,this.isOptional=ne||!1,this.isQuantifier=ie||!1,this.isAlternator=re||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(te,ne){if(null==this)throw new TypeError('"this" is null or not defined');var ie=Object(this),re=ie.length>>>0;if(0===re)return!1;for(var le=0|ne,ce=Math.max(le>=0?le:re-Math.abs(le),0);ce<re;){if(ie[ce]===te)return!0;ce++}return!1}})},9302:function(){var te=Function.bind.call(Function.call,Array.prototype.reduce),ne=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),ie=Function.bind.call(Function.call,Array.prototype.concat),re=Object.keys;Object.entries||(Object.entries=function(le){return te(re(le),(function(te,re){return ie(te,"string"==typeof re&&ne(le,re)?[[re,le[re]]]:[])}),[])})},7149:function(){function e(te){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(te){return typeof te}:function(te){return te&&"function"==typeof Symbol&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(te)}"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===e("test".__proto__)?function(te){return te.__proto__}:function(te){return te.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(te,ne){return"number"!=typeof ne&&(ne=0),!(ne+te.length>this.length)&&-1!==this.indexOf(te,ne)})},8711:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.caret=function(te,ne,ie,re,le){var ce,de=this,ue=this.opts;if(void 0===ne)return"selectionStart"in te&&"selectionEnd"in te?(ne=te.selectionStart,ie=te.selectionEnd):window.getSelection?(ce=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==te&&ce.commonAncestorContainer!==te||(ne=ce.startOffset,ie=ce.endOffset):document.selection&&document.selection.createRange&&(ie=(ne=0-(ce=document.selection.createRange()).duplicate().moveStart("character",-te.inputmask._valueGet().length))+ce.text.length),{begin:re?ne:c.call(de,ne),end:re?ie:c.call(de,ie)};if(Array.isArray(ne)&&(ie=de.isRTL?ne[0]:ne[1],ne=de.isRTL?ne[1]:ne[0]),void 0!==ne.begin&&(ie=de.isRTL?ne.begin:ne.end,ne=de.isRTL?ne.end:ne.begin),"number"==typeof ne){ne=re?ne:c.call(de,ne),ie="number"==typeof(ie=re?ie:c.call(de,ie))?ie:ne;var me=parseInt(((te.ownerDocument.defaultView||window).getComputedStyle?(te.ownerDocument.defaultView||window).getComputedStyle(te,null):te.currentStyle).fontSize)*ie;if(te.scrollLeft=me>te.scrollWidth?me:0,te.inputmask.caretPos={begin:ne,end:ie},ue.insertModeVisual&&!1===ue.insertMode&&ne===ie&&(le||ie++),te===(te.inputmask.shadowRoot||te.ownerDocument).activeElement)if("setSelectionRange"in te)te.setSelectionRange(ne,ie);else if(window.getSelection){if(ce=document.createRange(),void 0===te.firstChild||null===te.firstChild){var ge=document.createTextNode("");te.appendChild(ge)}ce.setStart(te.firstChild,ne<te.inputmask._valueGet().length?ne:te.inputmask._valueGet().length),ce.setEnd(te.firstChild,ie<te.inputmask._valueGet().length?ie:te.inputmask._valueGet().length),ce.collapse(!0);var fe=window.getSelection();fe.removeAllRanges(),fe.addRange(ce)}else te.createTextRange&&((ce=te.createTextRange()).collapse(!0),ce.moveEnd("character",ie),ce.moveStart("character",ne),ce.select())}},ne.determineLastRequiredPosition=function(te){var ne,ie,ce=this,de=ce.maskset,ue=ce.dependencyLib,me=re.getMaskTemplate.call(ce,!0,o.call(ce),!0,!0),ge=me.length,fe=o.call(ce),_e={},be=de.validPositions[fe],Ce=void 0!==be?be.locator.slice():void 0;for(ne=fe+1;ne<me.length;ne++)Ce=(ie=re.getTestTemplate.call(ce,ne,Ce,ne-1)).locator.slice(),_e[ne]=ue.extend(!0,{},ie);var ye=be&&void 0!==be.alternation?be.locator[be.alternation]:void 0;for(ne=ge-1;ne>fe&&((ie=_e[ne]).match.optionality||ie.match.optionalQuantifier&&ie.match.newBlockMarker||ye&&(ye!==_e[ne].locator[be.alternation]&&1!=ie.match.static||!0===ie.match.static&&ie.locator[be.alternation]&&le.checkAlternationMatch.call(ce,ie.locator[be.alternation].toString().split(","),ye.toString().split(","))&&""!==re.getTests.call(ce,ne)[0].def))&&me[ne]===re.getPlaceholder.call(ce,ne,ie.match);ne--)ge--;return te?{l:ge,def:_e[ge]?_e[ge].match:void 0}:ge},ne.determineNewCaretPosition=function(te,ne,ie){var le=this,ce=le.maskset,de=le.opts;if(ne&&(le.isRTL?te.end=te.begin:te.begin=te.end),te.begin===te.end){switch(ie=ie||de.positionCaretOnClick){case"none":break;case"select":te={begin:0,end:r.call(le).length};break;case"ignore":te.end=te.begin=l.call(le,o.call(le));break;case"radixFocus":if(le.clicked>1&&0==ce.validPositions.length)break;if(function(te){if(""!==de.radixPoint&&0!==de.digits){var ne=ce.validPositions;if(void 0===ne[te]||ne[te].input===re.getPlaceholder.call(le,te)){if(te<l.call(le,-1))return!0;var ie=r.call(le).indexOf(de.radixPoint);if(-1!==ie){for(var ue=0,me=ne.length;ue<me;ue++)if(ne[ue]&&ie<ue&&ne[ue].input!==re.getPlaceholder.call(le,ue))return!1;return!0}}}return!1}(te.begin)){var ue=r.call(le).join("").indexOf(de.radixPoint);te.end=te.begin=de.numericInput?l.call(le,ue):ue;break}default:var me=te.begin,ge=o.call(le,me,!0),fe=l.call(le,-1!==ge||s.call(le,0)?ge:-1);if(me<=fe)te.end=te.begin=s.call(le,me,!1,!0)?me:l.call(le,me);else{var _e=ce.validPositions[ge],be=re.getTestTemplate.call(le,fe,_e?_e.match.locator:void 0,_e),Ce=re.getPlaceholder.call(le,fe,be.match);if(""!==Ce&&r.call(le)[fe]!==Ce&&!0!==be.match.optionalQuantifier&&!0!==be.match.newBlockMarker||!s.call(le,fe,de.keepStatic,!0)&&be.match.def===Ce){var ye=l.call(le,fe);(me>=ye||me===fe)&&(fe=ye)}te.end=te.begin=fe}}return te}},ne.getBuffer=r,ne.getBufferTemplate=function(){var te=this.maskset;return void 0===te._buffer&&(te._buffer=re.getMaskTemplate.call(this,!1,1),void 0===te.buffer&&(te.buffer=te._buffer.slice())),te._buffer},ne.getLastValidPosition=o,ne.isMask=s,ne.resetMaskSet=function(te){var ne=this.maskset;ne.buffer=void 0,!0!==te&&(ne.validPositions=[],ne.p=0)},ne.seekNext=l,ne.seekPrevious=function(te,ne){var ie=this,le=te-1;if(te<=0)return 0;for(;le>0&&(!0===ne&&(!0!==re.getTest.call(ie,le).match.newBlockMarker||!s.call(ie,le,void 0,!0))||!0!==ne&&!s.call(ie,le,void 0,!0));)le--;return le},ne.translatePosition=c;var re=ie(4713),le=ie(7215);function r(te){var ne=this,ie=ne.maskset;return void 0!==ie.buffer&&!0!==te||(ie.buffer=re.getMaskTemplate.call(ne,!0,o.call(ne),!0),void 0===ie._buffer&&(ie._buffer=ie.buffer.slice())),ie.buffer}function o(te,ne,ie){var re=this.maskset,le=-1,ce=-1,de=ie||re.validPositions;void 0===te&&(te=-1);for(var ue=0,me=de.length;ue<me;ue++)de[ue]&&(ne||!0!==de[ue].generatedInput)&&(ue<=te&&(le=ue),ue>=te&&(ce=ue));return-1===le||le==te?ce:-1==ce||te-le<ce-te?le:ce}function s(te,ne,ie){var le=this,ce=this.maskset,de=re.getTestTemplate.call(le,te).match;if(""===de.def&&(de=re.getTest.call(le,te).match),!0!==de.static)return de.fn;if(!0===ie&&void 0!==ce.validPositions[te]&&!0!==ce.validPositions[te].generatedInput)return!0;if(!0!==ne&&te>-1){if(ie){var ue=re.getTests.call(le,te);return ue.length>1+(""===ue[ue.length-1].match.def?1:0)}var me=re.determineTestTemplate.call(le,te,re.getTests.call(le,te)),ge=re.getPlaceholder.call(le,te,me.match);return me.match.def!==ge}return!1}function l(te,ne,ie){var le=this;void 0===ie&&(ie=!0);for(var ce=te+1;""!==re.getTest.call(le,ce).match.def&&(!0===ne&&(!0!==re.getTest.call(le,ce).match.newBlockMarker||!s.call(le,ce,void 0,!0))||!0!==ne&&!s.call(le,ce,void 0,ie));)ce++;return ce}function c(te){var ne=this.opts,ie=this.el;return!this.isRTL||"number"!=typeof te||ne.greedy&&""===ne.placeholder||!ie||(te=this._valueGet().length-te)<0&&(te=0),te}},4713:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.determineTestTemplate=c,ne.getDecisionTaker=o,ne.getMaskTemplate=function(te,ne,ie,re,le){var ce=this,de=this.opts,ue=this.maskset,me=de.greedy;le&&de.greedy&&(de.greedy=!1,ce.maskset.tests={}),ne=ne||0;var ge,fe,_e,be,Ce=[],ye=0;do{if(!0===te&&ue.validPositions[ye])fe=(_e=le&&ue.validPositions[ye].match.optionality&&void 0===ue.validPositions[ye+1]&&(!0===ue.validPositions[ye].generatedInput||ue.validPositions[ye].input==de.skipOptionalPartCharacter&&ye>0)?c.call(ce,ye,d.call(ce,ye,ge,ye-1)):ue.validPositions[ye]).match,ge=_e.locator.slice(),Ce.push(!0===ie?_e.input:!1===ie?fe.nativeDef:s.call(ce,ye,fe));else{fe=(_e=l.call(ce,ye,ge,ye-1)).match,ge=_e.locator.slice();var we=!0!==re&&(!1!==de.jitMasking?de.jitMasking:fe.jit);(be=(be&&fe.static&&fe.def!==de.groupSeparator&&null===fe.fn||ue.validPositions[ye-1]&&fe.static&&fe.def!==de.groupSeparator&&null===fe.fn)&&ue.tests[ye])||!1===we||void 0===we||"number"==typeof we&&isFinite(we)&&we>ye?Ce.push(!1===ie?fe.nativeDef:s.call(ce,Ce.length,fe)):be=!1}ye++}while(!0!==fe.static||""!==fe.def||ne>ye);return""===Ce[Ce.length-1]&&Ce.pop(),!1===ie&&void 0!==ue.maskLength||(ue.maskLength=ye-1),de.greedy=me,Ce},ne.getPlaceholder=s,ne.getTest=u,ne.getTestTemplate=l,ne.getTests=d,ne.isSubsetOf=f;var re,le=(re=ie(2394))&&re.__esModule?re:{default:re};function r(te,ne){var ie=(null!=te.alternation?te.mloc[o(te)]:te.locator).join("");if(""!==ie)for(;ie.length<ne;)ie+="0";return ie}function o(te){var ne=te.locator[te.alternation];return"string"==typeof ne&&ne.length>0&&(ne=ne.split(",")[0]),void 0!==ne?ne.toString():""}function s(te,ne,ie){var re=this.opts,le=this.maskset;if(void 0!==(ne=ne||u.call(this,te).match).placeholder||!0===ie)return"function"==typeof ne.placeholder?ne.placeholder(re):ne.placeholder;if(!0===ne.static){if(te>-1&&void 0===le.validPositions[te]){var ce,de=d.call(this,te),ue=[];if(de.length>1+(""===de[de.length-1].match.def?1:0))for(var me=0;me<de.length;me++)if(""!==de[me].match.def&&!0!==de[me].match.optionality&&!0!==de[me].match.optionalQuantifier&&(!0===de[me].match.static||void 0===ce||!1!==de[me].match.fn.test(ce.match.def,le,te,!0,re))&&(ue.push(de[me]),!0===de[me].match.static&&(ce=de[me]),ue.length>1&&/[0-9a-bA-Z]/.test(ue[0].match.def)))return re.placeholder.charAt(te%re.placeholder.length)}return ne.def}return re.placeholder.charAt(te%re.placeholder.length)}function l(te,ne,ie){return this.maskset.validPositions[te]||c.call(this,te,d.call(this,te,ne?ne.slice():ne,ie))}function c(te,ne){var ie=this.opts,re=0,le=function(te,ne){var ie=0,re=!1;return ne.forEach((function(te){te.match.optionality&&(0!==ie&&ie!==te.match.optionality&&(re=!0),(0===ie||ie>te.match.optionality)&&(ie=te.match.optionality))})),ie&&(0==te||1==ne.length?ie=0:re||(ie=0)),ie}(te,ne);te=te>0?te-1:0;var ce,de,ue,me=r(u.call(this,te));ie.greedy&&ne.length>1&&""===ne[ne.length-1].match.def&&(re=1);for(var ge=0;ge<ne.length-re;ge++){var fe=ne[ge];ce=r(fe,me.length);var _e=Math.abs(ce-me);(void 0===de||""!==ce&&_e<de||ue&&!ie.greedy&&ue.match.optionality&&ue.match.optionality-le>0&&"master"===ue.match.newBlockMarker&&(!fe.match.optionality||fe.match.optionality-le<1||!fe.match.newBlockMarker)||ue&&!ie.greedy&&ue.match.optionalQuantifier&&!fe.match.optionalQuantifier)&&(de=_e,ue=fe)}return ue}function u(te,ne){var ie=this.maskset;return ie.validPositions[te]?ie.validPositions[te]:(ne||d.call(this,te))[0]}function f(te,ne,ie){function n(te){for(var ne,ie=[],re=-1,le=0,ce=te.length;le<ce;le++)if("-"===te.charAt(le))for(ne=te.charCodeAt(le+1);++re<ne;)ie.push(String.fromCharCode(re));else re=te.charCodeAt(le),ie.push(te.charAt(le));return ie.join("")}return te.match.def===ne.match.nativeDef||!(!(ie.regex||te.match.fn instanceof RegExp&&ne.match.fn instanceof RegExp)||!0===te.match.static||!0===ne.match.static)&&-1!==n(ne.match.fn.toString().replace(/[[\]/]/g,"")).indexOf(n(te.match.fn.toString().replace(/[[\]/]/g,"")))}function d(te,ne,ie){var re,ce,de=this,ue=this.dependencyLib,me=this.maskset,ge=this.opts,fe=this.el,_e=me.maskToken,be=ne?ie:0,Ce=ne?ne.slice():[0],ye=[],we=!1,ke=ne?ne.join(""):"";function k(ne,ie,ce,ue){function c(ce,ue,_e){function v(te,ne){var ie=0===ne.matches.indexOf(te);return ie||ne.matches.every((function(re,le){return!0===re.isQuantifier?ie=v(te,ne.matches[le-1]):Object.prototype.hasOwnProperty.call(re,"matches")&&(ie=v(te,re)),!ie})),ie}function x(te,ne,ie){var re,le;if((me.tests[te]||me.validPositions[te])&&(me.tests[te]||[me.validPositions[te]]).every((function(te,ce){if(te.mloc[ne])return re=te,!1;var de=void 0!==ie?ie:te.alternation,ue=void 0!==te.locator[de]?te.locator[de].toString().indexOf(ne):-1;return(void 0===le||ue<le)&&-1!==ue&&(re=te,le=ue),!0})),re){var ce=re.locator[re.alternation];return(re.mloc[ne]||re.mloc[ce]||re.locator).slice((void 0!==ie?ie:re.alternation)+1)}return void 0!==ie?x(te,ne):void 0}function P(te,ne){var ie=te.alternation,re=void 0===ne||ie===ne.alternation&&-1===te.locator[ie].toString().indexOf(ne.locator[ie]);if(!re&&ie>ne.alternation)for(var le=ne.alternation;le<ie;le++)if(te.locator[le]!==ne.locator[le]){ie=le,re=!0;break}if(re){te.mloc=te.mloc||{};var ce=te.locator[ie];if(void 0!==ce){if("string"==typeof ce&&(ce=ce.split(",")[0]),void 0===te.mloc[ce]&&(te.mloc[ce]=te.locator.slice()),void 0!==ne){for(var de in ne.mloc)"string"==typeof de&&(de=de.split(",")[0]),void 0===te.mloc[de]&&(te.mloc[de]=ne.mloc[de]);te.locator[ie]=Object.keys(te.mloc).join(",")}return!0}te.alternation=void 0}return!1}function w(te,ne){if(te.locator.length!==ne.locator.length)return!1;for(var ie=te.alternation+1;ie<te.locator.length;ie++)if(te.locator[ie]!==ne.locator[ie])return!1;return!0}if(be>te+ge._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+me.mask;if(be===te&&void 0===ce.matches){if(ye.push({match:ce,locator:ue.reverse(),cd:ke,mloc:{}}),!ce.optionality||void 0!==_e||!(ge.definitions&&ge.definitions[ce.nativeDef]&&ge.definitions[ce.nativeDef].optional||le.default.prototype.definitions[ce.nativeDef]&&le.default.prototype.definitions[ce.nativeDef].optional))return!0;we=!0,be=te}else if(void 0!==ce.matches){if(ce.isGroup&&_e!==ce)return function(){if(ce=c(ne.matches[ne.matches.indexOf(ce)+1],ue,_e))return!0}();if(ce.isOptional)return function(){var ne=ce,le=ye.length;if(ce=k(ce,ie,ue,_e),ye.length>0){if(ye.forEach((function(te,ne){ne>=le&&(te.match.optionality=te.match.optionality?te.match.optionality+1:1)})),re=ye[ye.length-1].match,void 0!==_e||!v(re,ne))return ce;we=!0,be=te}}();if(ce.isAlternator)return function(){de.hasAlternator=!0;var re,le,Ce,ke=ce,Se=[],xe=ye.slice(),Ee=ue.length,Me=!1,Ne=ie.length>0?ie.shift():-1;if(-1===Ne||"string"==typeof Ne){var Re,Le=be,Oe=ie.slice(),Pe=[];if("string"==typeof Ne)Pe=Ne.split(",");else for(Re=0;Re<ke.matches.length;Re++)Pe.push(Re.toString());if(void 0!==me.excludes[te]){for(var Fe=Pe.slice(),je=0,Ve=me.excludes[te].length;je<Ve;je++){var Ge=me.excludes[te][je].toString().split(":");ue.length==Ge[1]&&Pe.splice(Pe.indexOf(Ge[0]),1)}0===Pe.length&&(delete me.excludes[te],Pe=Fe)}(!0===ge.keepStatic||isFinite(parseInt(ge.keepStatic))&&Le>=ge.keepStatic)&&(Pe=Pe.slice(0,1));for(var ze=0;ze<Pe.length;ze++){Re=parseInt(Pe[ze]),ye=[],ie="string"==typeof Ne&&x(be,Re,Ee)||Oe.slice();var He=ke.matches[Re];if(He&&c(He,[Re].concat(ue),_e))ce=!0;else if(0===ze&&(Me=!0),He&&He.matches&&He.matches.length>ke.matches[0].matches.length)break;re=ye.slice(),be=Le,ye=[];for(var $e=0;$e<re.length;$e++){var qe=re[$e],Ye=!1;qe.match.jit=qe.match.jit||Me,qe.alternation=qe.alternation||Ee,P(qe);for(var Xe=0;Xe<Se.length;Xe++){var Ke=Se[Xe];if("string"!=typeof Ne||void 0!==qe.alternation&&Pe.includes(qe.locator[qe.alternation].toString())){if(qe.match.nativeDef===Ke.match.nativeDef){Ye=!0,P(Ke,qe);break}if(f(qe,Ke,ge)){P(qe,Ke)&&(Ye=!0,Se.splice(Se.indexOf(Ke),0,qe));break}if(f(Ke,qe,ge)){P(Ke,qe);break}if(Ce=Ke,!0===(le=qe).match.static&&!0!==Ce.match.static&&Ce.match.fn.test(le.match.def,me,te,!1,ge,!1)){w(qe,Ke)||void 0!==fe.inputmask.userOptions.keepStatic?P(qe,Ke)&&(Ye=!0,Se.splice(Se.indexOf(Ke),0,qe)):ge.keepStatic=!0;break}}}Ye||Se.push(qe)}}ye=xe.concat(Se),be=te,we=ye.length>0,ce=Se.length>0,ie=Oe.slice()}else ce=c(ke.matches[Ne]||ne.matches[Ne],[Ne].concat(ue),_e);if(ce)return!0}();if(ce.isQuantifier&&_e!==ne.matches[ne.matches.indexOf(ce)-1])return function(){for(var le=ce,de=!1,fe=ie.length>0?ie.shift():0;fe<(isNaN(le.quantifier.max)?fe+1:le.quantifier.max)&&be<=te;fe++){var _e=ne.matches[ne.matches.indexOf(le)-1];if(ce=c(_e,[fe].concat(ue),_e)){if(ye.forEach((function(ne,ie){(re=b(_e,ne.match)?ne.match:ye[ye.length-1].match).optionalQuantifier=fe>=le.quantifier.min,re.jit=(fe+1)*(_e.matches.indexOf(re)+1)>le.quantifier.jit,re.optionalQuantifier&&v(re,_e)&&(we=!0,be=te,ge.greedy&&null==me.validPositions[te-1]&&fe>le.quantifier.min&&-1!=["*","+"].indexOf(le.quantifier.max)&&(ye.pop(),ke=void 0),de=!0,ce=!1),!de&&re.jit&&(me.jitOffset[te]=_e.matches.length-_e.matches.indexOf(re))})),de)break;return!0}}}();if(ce=k(ce,ie,ue,_e))return!0}else be++}for(var _e=ie.length>0?ie.shift():0;_e<ne.matches.length;_e++)if(!0!==ne.matches[_e].isQuantifier){var Ce=c(ne.matches[_e],[_e].concat(ce),ue);if(Ce&&be===te)return Ce;if(be>te)break}}function b(te,ne){var ie=-1!=te.matches.indexOf(ne);return ie||te.matches.forEach((function(te,re){void 0===te.matches||ie||(ie=b(te,ne))})),ie}if(te>-1){if(void 0===ne){for(var Se,xe=te-1;void 0===(Se=me.validPositions[xe]||me.tests[xe])&&xe>-1;)xe--;void 0!==Se&&xe>-1&&(Ce=function(te,ne){var ie,re=[];return Array.isArray(ne)||(ne=[ne]),ne.length>0&&(void 0===ne[0].alternation||!0===ge.keepStatic?0===(re=c.call(de,te,ne.slice()).locator.slice()).length&&(re=ne[0].locator.slice()):ne.forEach((function(te){""!==te.def&&(0===re.length?(ie=te.alternation,re=te.locator.slice()):te.locator[ie]&&-1===re[ie].toString().indexOf(te.locator[ie])&&(re[ie]+=","+te.locator[ie]))}))),re}(xe,Se),ke=Ce.join(""),be=xe)}if(me.tests[te]&&me.tests[te][0].cd===ke)return me.tests[te];for(var Ee=Ce.shift();Ee<_e.length&&!(k(_e[Ee],Ce,[Ee])&&be===te||be>te);Ee++);}return(0===ye.length||we)&&ye.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:ke}),void 0!==ne&&me.tests[te]?ce=ue.extend(!0,[],ye):(me.tests[te]=ue.extend(!0,[],ye),ce=me.tests[te]),ye.forEach((function(te){te.match.optionality=te.match.defOptionality||!1})),ce}},7215:function(te,ne,ie){Object.defineProperty(ne,"__esModule",{value:!0}),ne.alternate=s,ne.checkAlternationMatch=function(te,ne,ie){for(var re,le=this.opts.greedy?ne:ne.slice(0,1),ce=!1,de=void 0!==ie?ie.split(","):[],ue=0;ue<de.length;ue++)-1!==(re=te.indexOf(de[ue]))&&te.splice(re,1);for(var me=0;me<te.length;me++)if(le.includes(te[me])){ce=!0;break}return ce},ne.handleRemove=function(te,ne,ie,de,ue){var me=this,ge=this.maskset,fe=this.opts;if((fe.numericInput||me.isRTL)&&(ne===le.keys.Backspace?ne=le.keys.Delete:ne===le.keys.Delete&&(ne=le.keys.Backspace),me.isRTL)){var _e=ie.end;ie.end=ie.begin,ie.begin=_e}var be,Ce=ce.getLastValidPosition.call(me,void 0,!0);if(ie.end>=ce.getBuffer.call(me).length&&Ce>=ie.end&&(ie.end=Ce+1),ne===le.keys.Backspace?ie.end-ie.begin<1&&(ie.begin=ce.seekPrevious.call(me,ie.begin)):ne===le.keys.Delete&&ie.begin===ie.end&&(ie.end=ce.isMask.call(me,ie.end,!0,!0)?ie.end+1:ce.seekNext.call(me,ie.end)+1),!1!==(be=v.call(me,ie))){if(!0!==de&&!1!==fe.keepStatic||null!==fe.regex&&-1!==re.getTest.call(me,ie.begin).match.def.indexOf("|")){var ye=s.call(me,!0);if(ye){var we=void 0!==ye.caret?ye.caret:ye.pos?ce.seekNext.call(me,ye.pos.begin?ye.pos.begin:ye.pos):ce.getLastValidPosition.call(me,-1,!0);(ne!==le.keys.Delete||ie.begin>we)&&ie.begin}}!0!==de&&(ge.p=ne===le.keys.Delete?ie.begin+be:ie.begin,ge.p=ce.determineNewCaretPosition.call(me,{begin:ge.p,end:ge.p},!1,!1===fe.insertMode&&ne===le.keys.Backspace?"none":void 0).begin)}},ne.isComplete=c,ne.isSelection=u,ne.isValid=f,ne.refreshFromBuffer=p,ne.revalidateMask=v;var re=ie(4713),le=ie(2839),ce=ie(8711),de=ie(6030);function s(te,ne,ie,le,de,ue){var me,ge,fe,_e,be,Ce,ye,we,ke,Se,xe,Ee=this,Me=this.dependencyLib,Ne=this.opts,Re=Ee.maskset,Le=Me.extend(!0,[],Re.validPositions),Oe=Me.extend(!0,{},Re.tests),Pe=!1,Fe=!1,je=void 0!==de?de:ce.getLastValidPosition.call(Ee);if(ue&&(Se=ue.begin,xe=ue.end,ue.begin>ue.end&&(Se=ue.end,xe=ue.begin)),-1===je&&void 0===de)me=0,ge=(_e=re.getTest.call(Ee,me)).alternation;else for(;je>=0;je--)if((fe=Re.validPositions[je])&&void 0!==fe.alternation){if(je<=(te||0)&&_e&&_e.locator[fe.alternation]!==fe.locator[fe.alternation])break;me=je,ge=Re.validPositions[me].alternation,_e=fe}if(void 0!==ge){ye=parseInt(me),Re.excludes[ye]=Re.excludes[ye]||[],!0!==te&&Re.excludes[ye].push((0,re.getDecisionTaker)(_e)+":"+_e.alternation);var Ve=[],Ge=-1;for(be=ye;be<ce.getLastValidPosition.call(Ee,void 0,!0)+1;be++)-1===Ge&&te<=be&&void 0!==ne&&(Ve.push(ne),Ge=Ve.length-1),(Ce=Re.validPositions[be])&&!0!==Ce.generatedInput&&(void 0===ue||be<Se||be>=xe)&&Ve.push(Ce.input),delete Re.validPositions[be];for(-1===Ge&&void 0!==ne&&(Ve.push(ne),Ge=Ve.length-1);void 0!==Re.excludes[ye]&&Re.excludes[ye].length<10;){for(Re.tests={},ce.resetMaskSet.call(Ee,!0),Pe=!0,be=0;be<Ve.length&&(we=Pe.caret||ce.getLastValidPosition.call(Ee,void 0,!0)+1,ke=Ve[be],Pe=f.call(Ee,we,ke,!1,le,!0));be++)be===Ge&&(Fe=Pe),1==te&&Pe&&(Fe={caretPos:be});if(Pe)break;if(ce.resetMaskSet.call(Ee),_e=re.getTest.call(Ee,ye),Re.validPositions=Me.extend(!0,[],Le),Re.tests=Me.extend(!0,{},Oe),!Re.excludes[ye]){Fe=s.call(Ee,te,ne,ie,le,ye-1,ue);break}var ze=(0,re.getDecisionTaker)(_e);if(-1!==Re.excludes[ye].indexOf(ze+":"+_e.alternation)){Fe=s.call(Ee,te,ne,ie,le,ye-1,ue);break}for(Re.excludes[ye].push(ze+":"+_e.alternation),be=ye;be<ce.getLastValidPosition.call(Ee,void 0,!0)+1;be++)delete Re.validPositions[be]}}return Fe&&!1===Ne.keepStatic||delete Re.excludes[ye],Fe}function l(te,ne,ie){var re=this.opts,ce=this.maskset;switch(re.casing||ne.casing){case"upper":te=te.toUpperCase();break;case"lower":te=te.toLowerCase();break;case"title":var de=ce.validPositions[ie-1];te=0===ie||de&&de.input===String.fromCharCode(le.keyCode.Space)?te.toUpperCase():te.toLowerCase();break;default:if("function"==typeof re.casing){var ue=Array.prototype.slice.call(arguments);ue.push(ce.validPositions),te=re.casing.apply(this,ue)}}return te}function c(te){var ne=this,ie=this.opts,le=this.maskset;if("function"==typeof ie.isComplete)return ie.isComplete(te,ie);if("*"!==ie.repeat){var de=!1,ue=ce.determineLastRequiredPosition.call(ne,!0),me=ce.seekPrevious.call(ne,ue.l);if(void 0===ue.def||ue.def.newBlockMarker||ue.def.optionality||ue.def.optionalQuantifier){de=!0;for(var ge=0;ge<=me;ge++){var fe=re.getTestTemplate.call(ne,ge).match;if(!0!==fe.static&&void 0===le.validPositions[ge]&&!0!==fe.optionality&&!0!==fe.optionalQuantifier||!0===fe.static&&te[ge]!==re.getPlaceholder.call(ne,ge,fe)){de=!1;break}}}return de}}function u(te){var ne=this.opts.insertMode?0:1;return this.isRTL?te.begin-te.end>ne:te.end-te.begin>ne}function f(te,ne,ie,le,de,ue,me){var ge=this,fe=this.dependencyLib,_e=this.opts,be=ge.maskset;ie=!0===ie;var Ce=te;function P(te){if(void 0!==te){if(void 0!==te.remove&&(Array.isArray(te.remove)||(te.remove=[te.remove]),te.remove.sort((function(te,ne){return ge.isRTL?te.pos-ne.pos:ne.pos-te.pos})).forEach((function(te){v.call(ge,{begin:te,end:te+1})})),te.remove=void 0),void 0!==te.insert&&(Array.isArray(te.insert)||(te.insert=[te.insert]),te.insert.sort((function(te,ne){return ge.isRTL?ne.pos-te.pos:te.pos-ne.pos})).forEach((function(te){""!==te.c&&f.call(ge,te.pos,te.c,void 0===te.strict||te.strict,void 0!==te.fromIsValid?te.fromIsValid:le)})),te.insert=void 0),te.refreshFromBuffer&&te.buffer){var ne=te.refreshFromBuffer;p.call(ge,!0===ne?ne:ne.start,ne.end,te.buffer),te.refreshFromBuffer=void 0}void 0!==te.rewritePosition&&(Ce=te.rewritePosition,te=!0)}return te}function w(ne,ie,de){var ue=!1;return re.getTests.call(ge,ne).every((function(me,Ce){var ye=me.match;if(ce.getBuffer.call(ge,!0),!1!==(ue=(!ye.jit||void 0!==be.validPositions[ce.seekPrevious.call(ge,ne)])&&(null!=ye.fn?ye.fn.test(ie,be,ne,de,_e,u.call(ge,te)):(ie===ye.def||ie===_e.skipOptionalPartCharacter)&&""!==ye.def&&{c:re.getPlaceholder.call(ge,ne,ye,!0)||ye.def,pos:ne}))){var we=void 0!==ue.c?ue.c:ie,ke=ne;return we=we===_e.skipOptionalPartCharacter&&!0===ye.static?re.getPlaceholder.call(ge,ne,ye,!0)||ye.def:we,!0!==(ue=P(ue))&&void 0!==ue.pos&&ue.pos!==ne&&(ke=ue.pos),!0!==ue&&void 0===ue.pos&&void 0===ue.c||!1===v.call(ge,te,fe.extend({},me,{input:l.call(ge,we,ye,ke)}),le,ke)&&(ue=!1),!1}return!0})),ue}void 0!==te.begin&&(Ce=ge.isRTL?te.end:te.begin);var ye=!0,we=fe.extend(!0,{},be.validPositions);if(!1===_e.keepStatic&&void 0!==be.excludes[Ce]&&!0!==de&&!0!==le)for(var ke=Ce;ke<(ge.isRTL?te.begin:te.end);ke++)void 0!==be.excludes[ke]&&(be.excludes[ke]=void 0,delete be.tests[ke]);if("function"==typeof _e.preValidation&&!0!==le&&!0!==ue&&(ye=P(ye=_e.preValidation.call(ge,ce.getBuffer.call(ge),Ce,ne,u.call(ge,te),_e,be,te,ie||de))),!0===ye){if(ye=w(Ce,ne,ie),(!ie||!0===le)&&!1===ye&&!0!==ue){var Se=be.validPositions[Ce];if(!Se||!0!==Se.match.static||Se.match.def!==ne&&ne!==_e.skipOptionalPartCharacter){if(_e.insertMode||void 0===be.validPositions[ce.seekNext.call(ge,Ce)]||te.end>Ce){var xe=!1;if(be.jitOffset[Ce]&&void 0===be.validPositions[ce.seekNext.call(ge,Ce)]&&!1!==(ye=f.call(ge,Ce+be.jitOffset[Ce],ne,!0,!0))&&(!0!==de&&(ye.caret=Ce),xe=!0),te.end>Ce&&(be.validPositions[Ce]=void 0),!xe&&!ce.isMask.call(ge,Ce,_e.keepStatic&&0===Ce))for(var Ee=Ce+1,Me=ce.seekNext.call(ge,Ce,!1,0!==Ce);Ee<=Me;Ee++)if(!1!==(ye=w(Ee,ne,ie))){ye=h.call(ge,Ce,void 0!==ye.pos?ye.pos:Ee)||ye,Ce=Ee;break}}}else ye={caret:ce.seekNext.call(ge,Ce)}}ge.hasAlternator&&!0!==de&&!ie&&(!1===ye&&_e.keepStatic&&(c.call(ge,ce.getBuffer.call(ge))||0===Ce)?ye=s.call(ge,Ce,ne,ie,le,void 0,te):(u.call(ge,te)&&be.tests[Ce]&&be.tests[Ce].length>1&&_e.keepStatic||1==ye&&!0!==_e.numericInput&&be.tests[Ce]&&be.tests[Ce].length>1&&ce.getLastValidPosition.call(ge,void 0,!0)>Ce)&&(ye=s.call(ge,!0))),!0===ye&&(ye={pos:Ce})}if("function"==typeof _e.postValidation&&!0!==le&&!0!==ue){var Ne=_e.postValidation.call(ge,ce.getBuffer.call(ge,!0),void 0!==te.begin?ge.isRTL?te.end:te.begin:te,ne,ye,_e,be,ie,me);void 0!==Ne&&(ye=!0===Ne?ye:Ne)}ye&&void 0===ye.pos&&(ye.pos=Ce),!1===ye||!0===ue?(ce.resetMaskSet.call(ge,!0),be.validPositions=fe.extend(!0,[],we)):h.call(ge,void 0,Ce,!0);var Re=P(ye);return void 0!==ge.maxLength&&ce.getBuffer.call(ge).length>ge.maxLength&&!le&&(ce.resetMaskSet.call(ge,!0),be.validPositions=fe.extend(!0,[],we),Re=!1),Re}function d(te,ne,ie){for(var le=this.maskset,ce=!1,de=re.getTests.call(this,te),ue=0;ue<de.length;ue++){if(de[ue].match&&(de[ue].match.nativeDef===ne.match[ie.shiftPositions?"def":"nativeDef"]&&(!ie.shiftPositions||!ne.match.static)||de[ue].match.nativeDef===ne.match.nativeDef||ie.regex&&!de[ue].match.static&&de[ue].match.fn.test(ne.input,le,te,!1,ie))){ce=!0;break}if(de[ue].match&&de[ue].match.def===ne.match.nativeDef){ce=void 0;break}}return!1===ce&&void 0!==le.jitOffset[te]&&(ce=d.call(this,te+le.jitOffset[te],ne,ie)),ce}function p(te,ne,ie){var re,le,ue=this,me=this.maskset,ge=this.opts,fe=this.dependencyLib,_e=ge.skipOptionalPartCharacter,be=ue.isRTL?ie.slice().reverse():ie;if(ge.skipOptionalPartCharacter="",!0===te)ce.resetMaskSet.call(ue),me.tests={},te=0,ne=ie.length,le=ce.determineNewCaretPosition.call(ue,{begin:0,end:0},!1).begin;else{for(re=te;re<ne;re++)delete me.validPositions[re];le=te}var Ce=new fe.Event("keypress");for(re=te;re<ne;re++){Ce.key=be[re].toString(),ue.ignorable=!1;var ye=de.EventHandlers.keypressEvent.call(ue,Ce,!0,!1,!1,le);!1!==ye&&void 0!==ye&&(le=ye.forwardPosition)}ge.skipOptionalPartCharacter=_e}function h(te,ne,ie){var le=this,de=this.maskset,ue=this.dependencyLib;if(void 0===te)for(te=ne-1;te>0&&!de.validPositions[te];te--);for(var me=te;me<ne;me++)if(void 0===de.validPositions[me]&&!ce.isMask.call(le,me,!1)&&(0==me?re.getTest.call(le,me):de.validPositions[me-1])){var ge=re.getTests.call(le,me).slice();""===ge[ge.length-1].match.def&&ge.pop();var fe,_e=re.determineTestTemplate.call(le,me,ge);if(_e&&(!0!==_e.match.jit||"master"===_e.match.newBlockMarker&&(fe=de.validPositions[me+1])&&!0===fe.match.optionalQuantifier)&&((_e=ue.extend({},_e,{input:re.getPlaceholder.call(le,me,_e.match,!0)||_e.match.def})).generatedInput=!0,v.call(le,me,_e,!0),!0!==ie)){var be=de.validPositions[ne].input;return de.validPositions[ne]=void 0,f.call(le,ne,be,!0,!0)}}}function v(te,ne,ie,le){var de=this,ue=this.maskset,me=this.opts,ge=this.dependencyLib;function u(te,ne,ie){var re=ne[te];if(void 0!==re&&!0===re.match.static&&!0!==re.match.optionality&&(void 0===ne[0]||void 0===ne[0].alternation)){var le=ie.begin<=te-1?ne[te-1]&&!0===ne[te-1].match.static&&ne[te-1]:ne[te-1],ce=ie.end>te+1?ne[te+1]&&!0===ne[te+1].match.static&&ne[te+1]:ne[te+1];return le&&ce}return!1}var fe=0,_e=void 0!==te.begin?te.begin:te,be=void 0!==te.end?te.end:te,Ce=!0;if(te.begin>te.end&&(_e=te.end,be=te.begin),le=void 0!==le?le:_e,void 0===ie&&(_e!==be||me.insertMode&&void 0!==ue.validPositions[le]||void 0===ne||ne.match.optionalQuantifier||ne.match.optionality)){var ye,we=ge.extend(!0,{},ue.validPositions),ke=ce.getLastValidPosition.call(de,void 0,!0);for(ue.p=_e,ye=ke;ye>=_e;ye--)delete ue.validPositions[ye],void 0===ne&&delete ue.tests[ye+1];var Se,xe,Ee=le,Me=Ee;for(ne&&(ue.validPositions[le]=ge.extend(!0,{},ne),Me++,Ee++),ye=ne?be:be-1;ye<=ke;ye++){if(void 0!==(Se=we[ye])&&!0!==Se.generatedInput&&(ye>=be||ye>=_e&&u(ye,we,{begin:_e,end:be}))){for(;""!==re.getTest.call(de,Me).match.def;){if(!1!==(xe=d.call(de,Me,Se,me))||"+"===Se.match.def){"+"===Se.match.def&&ce.getBuffer.call(de,!0);var Ne=f.call(de,Me,Se.input,"+"!==Se.match.def,!0);if(Ce=!1!==Ne,Ee=(Ne.pos||Me)+1,!Ce&&xe)break}else Ce=!1;if(Ce){void 0===ne&&Se.match.static&&ye===te.begin&&fe++;break}if(!Ce&&ce.getBuffer.call(de),Me>ue.maskLength)break;Me++}""==re.getTest.call(de,Me).match.def&&(Ce=!1),Me=Ee}if(!Ce)break}if(!Ce)return ue.validPositions=ge.extend(!0,[],we),ce.resetMaskSet.call(de,!0),!1}else ne&&re.getTest.call(de,le).match.cd===ne.match.cd&&(ue.validPositions[le]=ge.extend(!0,{},ne));return ce.resetMaskSet.call(de,!0),fe}}},ne={};function i(ie){var re=ne[ie];if(void 0!==re)return re.exports;var le=ne[ie]={exports:{}};return te[ie](le,le.exports,i),le.exports}var ie={};return function(){var te,ne=ie;Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0,i(7149),i(3194),i(9302),i(4013),i(3851),i(219),i(207),i(5296);var re=((te=i(2394))&&te.__esModule?te:{default:te}).default;ne.default=re}(),ie}()},5734:(te,ne,ie)=>{!function webpackUniversalModuleDefinition(ne,re){te.exports=re(ie(4236))}(window,(function(te){return function(te){var ne={};function __nested_webpack_require_1106__(ie){if(ne[ie])return ne[ie].exports;var re=ne[ie]={i:ie,l:!1,exports:{}};return te[ie].call(re.exports,re,re.exports,__nested_webpack_require_1106__),re.l=!0,re.exports}return __nested_webpack_require_1106__.m=te,__nested_webpack_require_1106__.c=ne,__nested_webpack_require_1106__.d=function(te,ne,ie){__nested_webpack_require_1106__.o(te,ne)||Object.defineProperty(te,ne,{enumerable:!0,get:ie})},__nested_webpack_require_1106__.r=function(te){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(te,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(te,"__esModule",{value:!0})},__nested_webpack_require_1106__.t=function(te,ne){if(1&ne&&(te=__nested_webpack_require_1106__(te)),8&ne)return te;if(4&ne&&"object"==typeof te&&te&&te.__esModule)return te;var ie=Object.create(null);if(__nested_webpack_require_1106__.r(ie),Object.defineProperty(ie,"default",{enumerable:!0,value:te}),2&ne&&"string"!=typeof te)for(var re in te)__nested_webpack_require_1106__.d(ie,re,function(ne){return te[ne]}.bind(null,re));return ie},__nested_webpack_require_1106__.n=function(te){var ne=te&&te.__esModule?function getDefault(){return te.default}:function getModuleExports(){return te};return __nested_webpack_require_1106__.d(ne,"a",ne),ne},__nested_webpack_require_1106__.o=function(te,ne){return Object.prototype.hasOwnProperty.call(te,ne)},__nested_webpack_require_1106__.p="",__nested_webpack_require_1106__(__nested_webpack_require_1106__.s=8)}([function(te,ne,ie){"use strict";Object.defineProperty(ne,"__esModule",{value:!0});var re,le=null,ce=null;ne.globalDefaults={},ne.documentDefaults={},ne.default=function default_1(){return ce},ne.getGlobalOptions=function getGlobalOptions(){return ne.globalDefaults},ne.getDocumentOptions=function getDocumentOptions(){return ne.documentDefaults};var de=function(){function TableState(te){this.doc=te}return TableState.prototype.pageHeight=function(){return this.pageSize().height},TableState.prototype.pageWidth=function(){return this.pageSize().width},TableState.prototype.pageSize=function(){var te=this.doc.internal.pageSize;return null==te.width&&(te={width:te.getWidth(),height:te.getHeight()}),te},TableState.prototype.scaleFactor=function(){return this.doc.internal.scaleFactor},TableState.prototype.pageNumber=function(){var te=this.doc.internal.getCurrentPageInfo();return te?te.pageNumber:this.doc.internal.getNumberOfPages()},TableState}();ne.setupState=function setupState(te){re=ce,ce=new de(te),te!==le&&(le=te,ne.documentDefaults={})},ne.resetState=function resetState(){ce=re},ne.setDefaults=function setDefaults(te,ie){void 0===ie&&(ie=null),ie?(ne.documentDefaults=te||{},le=ie):ne.globalDefaults=te||{}}},function(te,ne,ie){"use strict";var re=this&&this.__spreadArrays||function(){for(var te=0,ne=0,ie=arguments.length;ne<ie;ne++)te+=arguments[ne].length;var re=Array(te),le=0;for(ne=0;ne<ie;ne++)for(var ce=arguments[ne],de=0,ue=ce.length;de<ue;de++,le++)re[le]=ce[de];return re};Object.defineProperty(ne,"__esModule",{value:!0});var le=ie(2),ce=ie(0),de=ie(3);function getStringWidth(te,ne){applyStyles(ne);var ie=Array.isArray(te)?te:[te],re=ce.default().doc;return ie.map(re.getStringUnitWidth.bind(re)).map((function(te){return Math.floor(1e4*te)/1e4})).reduce(Math.max,0)*(ne.fontSize/ce.default().scaleFactor())}function getFillStyle(te){var ne=te.lineWidth>0,ie=te.fillColor||0===te.fillColor;return ne&&ie?"DF":ne?"S":!!ie&&"F"}function applyStyles(te){var ne=ce.default().doc,ie={fillColor:ne.setFillColor,textColor:ne.setTextColor,fontStyle:ne.setFontStyle,lineColor:ne.setDrawColor,lineWidth:ne.setLineWidth,font:ne.setFont,fontSize:ne.setFontSize};Object.keys(ie).forEach((function(ne){var re=te[ne],le=ie[ne];void 0!==re&&(Array.isArray(re)?le.apply(this,re):le(re))}))}ne.getStringWidth=getStringWidth,ne.ellipsize=function ellipsize(te,ne,ie,re){if(void 0===re&&(re="..."),Array.isArray(te)){var le=[];return te.forEach((function(te,ce){le[ce]=ellipsize(te,ne,ie,re)})),le}var de=1e4*ce.default().scaleFactor();if((ne=Math.ceil(ne*de)/de)>=getStringWidth(te,ie))return te;for(;ne<getStringWidth(te+re,ie)&&!(te.length<=1);)te=te.substring(0,te.length-1);return te.trim()+re},ne.addTableBorder=function addTableBorder(){var te=ce.default().table,ne={lineWidth:te.settings.tableLineWidth,lineColor:te.settings.tableLineColor};applyStyles(ne);var ie=getFillStyle(ne);ie&&ce.default().doc.rect(te.pageStartX,te.pageStartY,te.width,te.cursor.y-te.pageStartY,ie)},ne.getFillStyle=getFillStyle,ne.applyUserStyles=function applyUserStyles(){applyStyles(ce.default().table.userStyles)},ne.applyStyles=applyStyles,ne.marginOrPadding=function marginOrPadding(te,ne){var ie={};if(Array.isArray(te))te.length>=4?ie={top:te[0],right:te[1],bottom:te[2],left:te[3]}:3===te.length?ie={top:te[0],right:te[1],bottom:te[2],left:te[1]}:2===te.length?ie={top:te[0],right:te[1],bottom:te[0],left:te[1]}:te=1===te.length?te[0]:ne;else if("object"==typeof te){te.vertical&&(te.top=te.vertical,te.bottom=te.vertical),te.horizontal&&(te.right=te.horizontal,te.left=te.horizontal);for(var re=0,le=["top","right","bottom","left"];re<le.length;re++){var ce=le[re];ie[ce]=te[ce]||0===te[ce]?te[ce]:ne}}return"number"==typeof te&&(ie={top:te,right:te,bottom:te,left:te}),ie},ne.styles=function styles(te){return te=Array.isArray(te)?te:[te],de.assign.apply(void 0,re([le.defaultStyles()],te))}},function(te,ne,ie){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.FONT_ROW_RATIO=1.15;var re=ie(0);ne.defaultConfig=function defaultConfig(){return{html:null,head:null,body:null,foot:null,includeHiddenHtml:!1,startY:null,margin:40/re.default().scaleFactor(),pageBreak:"auto",rowPageBreak:"auto",tableWidth:"auto",showHead:"everyPage",showFoot:"everyPage",tableLineWidth:0,tableLineColor:200,tableId:null,theme:"striped",useCss:!1,styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{},didParseCell:function(te){},willDrawCell:function(te){},didDrawCell:function(te){},didDrawPage:function(te){}}},ne.defaultStyles=function defaultStyles(){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/re.default().scaleFactor(),lineColor:200,lineWidth:0/re.default().scaleFactor(),cellWidth:"auto",minCellHeight:0}},ne.getTheme=function getTheme(te){return{striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[te]}},function(te,ne,ie){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.assign=function assign(te){for(var ne=[],ie=1;ie<arguments.length;ie++)ne[ie-1]=arguments[ie];if(null==te)throw new TypeError("Cannot convert undefined or null to object");for(var re=Object(te),le=1;le<arguments.length;le++){var ce=arguments[le];if(null!=ce)for(var de in ce)Object.prototype.hasOwnProperty.call(ce,de)&&(re[de]=ce[de])}return re}},function(te,ne,ie){"use strict";Object.defineProperty(ne,"__esModule",{value:!0});var re=ie(2),le=ie(0),ce=ie(10),de=ie(1),ue=ie(5),me=function me(){this.didParseCell=[],this.willDrawCell=[],this.didDrawCell=[],this.didDrawPage=[]},ge=function(){function Table(){this.columns=[],this.head=[],this.body=[],this.foot=[],this.height=0,this.width=0,this.preferredWidth=0,this.wrappedWidth=0,this.minWidth=0,this.headHeight=0,this.footHeight=0,this.startPageNumber=1,this.pageNumber=1,this.styles={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},this.cellHooks=new me}return Object.defineProperty(Table.prototype,"pageCount",{get:function(){return this.pageNumber},enumerable:!0,configurable:!0}),Table.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},Table.prototype.callCellHooks=function(te,ne,ie,re){for(var le=0,de=te;le<de.length;le++){if(!1===(0,de[le])(new ce.CellHookData(ne,ie,re)))return!1}return!0},Table.prototype.callEndPageHooks=function(){de.applyUserStyles();for(var te=0,ne=this.cellHooks.didDrawPage;te<ne.length;te++){(0,ne[te])(new ce.HookData)}},Table.prototype.margin=function(te){return de.marginOrPadding(this.settings.margin,re.defaultConfig().margin)[te]},Table}();ne.Table=ge;var fe=function(){function Row(te,ne,ie){this.cells={},this.height=0,this.maxCellHeight=0,this.pageNumber=1,this.spansMultiplePages=!1,this.raw=te,te._element&&(this.raw=te._element),this.index=ne,this.section=ie}return Object.defineProperty(Row.prototype,"pageCount",{get:function(){return this.pageNumber},enumerable:!0,configurable:!0}),Row.prototype.canEntireRowFit=function(te){return this.maxCellHeight<=te},Row.prototype.getMinimumRowHeight=function(){var te=this;return le.default().table.columns.reduce((function(ne,ie){var ce=te.cells[ie.index];if(!ce)return 0;var de=ce.styles.fontSize/le.default().scaleFactor()*re.FONT_ROW_RATIO,ue=ce.padding("vertical")+de;return ue>ne?ue:ne}),0)},Row}();ne.Row=fe;var _e=function(){function Cell(te,ne,ie){var re;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minWidth=0,this.textPos={},this.height=0,this.width=0,this.rowSpan=te&&te.rowSpan||1,this.colSpan=te&&te.colSpan||1,this.styles=ue(ne,te&&te.styles||{}),this.section=ie;var ce=te&&null!=te.content?te.content:te;ce=ce&&null!=ce.title?ce.title:ce,this.raw=te&&te._element?te._element:te,re=null!=ce?""+ce:"";if(this.text=re.split(/\r\n|\r|\n/g),this.contentWidth=this.padding("horizontal")+de.getStringWidth(this.text,this.styles),"number"==typeof this.styles.cellWidth)this.minWidth=this.styles.cellWidth,this.wrappedWidth=this.styles.cellWidth;else if("wrap"===this.styles.cellWidth)this.minWidth=this.contentWidth,this.wrappedWidth=this.contentWidth;else{var me=10/le.default().scaleFactor();this.minWidth=this.styles.minCellWidth||me,this.wrappedWidth=this.contentWidth,this.minWidth>this.wrappedWidth&&(this.wrappedWidth=this.minWidth)}}return Cell.prototype.getContentHeight=function(){return(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/le.default().scaleFactor()*re.FONT_ROW_RATIO)+this.padding("vertical")},Cell.prototype.padding=function(te){var ne=de.marginOrPadding(this.styles.cellPadding,de.styles([]).cellPadding);return"vertical"===te?ne.top+ne.bottom:"horizontal"===te?ne.left+ne.right:ne[te]},Cell}();ne.Cell=_e;var be=function be(te,ne,ie){this.preferredWidth=0,this.minWidth=0,this.wrappedWidth=0,this.width=0,this.dataKey=te,this.raw=ne,this.index=ie};ne.Column=be},function(te,ne,ie){"use strict";var re=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;te.exports=function shouldUseNative(){try{if(!Object.assign)return!1;var te=new String("abc");if(te[5]="de","5"===Object.getOwnPropertyNames(te)[0])return!1;for(var ne={},ie=0;ie<10;ie++)ne["_"+String.fromCharCode(ie)]=ie;if("0123456789"!==Object.getOwnPropertyNames(ne).map((function(te){return ne[te]})).join(""))return!1;var re={};return"abcdefghijklmnopqrst".split("").forEach((function(te){re[te]=te})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},re)).join("")}catch(te){return!1}}()?Object.assign:function(te,ne){for(var ie,de,ue=function toObject(te){if(null==te)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(te)}(te),me=1;me<arguments.length;me++){for(var ge in ie=Object(arguments[me]))le.call(ie,ge)&&(ue[ge]=ie[ge]);if(re){de=re(ie);for(var fe=0;fe<de.length;fe++)ce.call(ie,de[fe])&&(ue[de[fe]]=ie[de[fe]])}}return ue}},function(te,ne,ie){"use strict";Object.defineProperty(ne,"__esModule",{value:!0});var re=ie(13),le=ie(0);function parseTableSection(te,ne,ie,ce){var de=[];if(!ne)return de;for(var ue=0;ue<ne.rows.length;ue++){for(var me=ne.rows[ue],ge=[],fe=ce?re.parseCss(me,le.default().scaleFactor(),["cellPadding","lineWidth","lineColor"]):{},_e=0;_e<me.cells.length;_e++){var be=me.cells[_e],Ce=te.getComputedStyle(be);if(ie||"none"!==Ce.display){var ye=ce?re.parseCss(be,le.default().scaleFactor()):{};ge.push({rowSpan:be.rowSpan,colSpan:be.colSpan,styles:ce?ye:null,_element:be,content:parseCellContent(be)})}}ge.length>0&&(ie||"none"!==fe.display)&&(ge._element=me,de.push(ge))}return de}function parseCellContent(te){var ne=te.cloneNode(!0);return ne.innerHTML=ne.innerHTML.replace(/\n/g,"").replace(/ +/g," "),ne.innerHTML=ne.innerHTML.split("<br>").map((function(te){return te.trim()})).join("\n"),ne.innerText||ne.textContent||""}ne.parseHtml=function parseHtml(te,ne,ie){var re;if(void 0===ne&&(ne=!1),void 0===ie&&(ie=!1),re="string"==typeof te?window.document.querySelector(te):te){for(var le=parseTableSection(window,re.tHead,ne,ie),ce=[],de=0;de<re.tBodies.length;de++)ce=ce.concat(parseTableSection(window,re.tBodies[de],ne,ie));return{head:le,body:ce,foot:parseTableSection(window,re.tFoot,ne,ie)}}console.error("Html table could not be found with input: ",te)}},function(ne,ie){ne.exports=te},function(te,ne,ie){"use strict";Object.defineProperty(ne,"__esModule",{value:!0});var re=ie(9),le=ie(11),ce=ie(12),de=ie(0);ie(15);var ue=ie(1),me=ie(6),ge=ie(7);ge.API.autoTable=function autoTable(){for(var te=[],ne=0;ne<arguments.length;ne++)te[ne]=arguments[ne];de.setupState(this);var ie=ce.parseInput(te);return le.calculateWidths(ie),re.drawTable(ie),ie.finalY=ie.cursor.y,this.previousAutoTable=ie,this.lastAutoTable=ie,this.autoTable.previous=ie,ue.applyUserStyles(),de.resetState(),this},ge.API.lastAutoTable=!1,ge.API.previousAutoTable=!1,ge.API.autoTable.previous=!1,ge.API.autoTableSetDefaults=function(te){return de.setDefaults(te,this),this},ge.autoTableSetDefaults=function(te,ne){return de.setDefaults(te,ne),this},ge.API.autoTableHtmlToJson=function(te,ne){if(ne=ne||!1,!(te&&te instanceof HTMLTableElement))return console.error("A HTMLTableElement has to be sent to autoTableHtmlToJson"),null;var ie=me.parseHtml(te,ne,!1),re=ie.head,le=ie.body,ce=ie.foot;return{columns:re[0]||le[0]||ce[0],rows:le,data:le}},ge.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.previousAutoTable.finalY instead.");var te=this.previousAutoTable;return te.cursor&&"number"==typeof te.cursor.y?te.cursor.y:0},ge.API.autoTableAddPageContent=function(te){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),ge.API.autoTable.globalDefaults||(ge.API.autoTable.globalDefaults={}),ge.API.autoTable.globalDefaults.addPageContent=te,this},ge.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}},function(te,ne,ie){"use strict";Object.defineProperty(ne,"__esModule",{value:!0});var re=ie(2),le=ie(1),ce=ie(4),de=ie(0),ue=ie(5);function getRemainingLineCount(te,ne){var ie=te.styles.fontSize/de.default().scaleFactor()*re.FONT_ROW_RATIO,le=te.padding("vertical"),ce=Math.floor((ne-le)/ie);return Math.max(0,ce)}function printFullRow(te,ne){var ie=de.default().table,re=function getRemainingPageSpace(te){var ne=de.default().table,ie=ne.margin("bottom"),re=ne.settings.showFoot;(!0===re||"everyPage"===re||"lastPage"===re&&te)&&(ie+=ne.footHeight);return de.default().pageHeight()-ne.cursor.y-ie}(ne);if(te.canEntireRowFit(re))printRow(te);else if(function shouldPrintOnCurrentPage(te,ne,ie){var re=de.default().pageHeight()-(ie.margin("top")-ie.margin("bottom")),le=te.getMinimumRowHeight()<ne;if(te.getMinimumRowHeight()>re)return console.error("Will not be able to print row "+te.index+" correctly since it's minimum height is larger than page height"),!0;var ce=ie.columns.filter((function(ne){var ie=te.cells[ne.index];return!!ie&&ie.rowSpan>1})).length>0;return!!le&&(te.maxCellHeight>re?(ce&&console.error("The content of row "+te.index+" will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported."),!0):!ce&&"avoid"!==ie.settings.rowPageBreak)}(te,re,ie)){var le=function modifyRowToFit(te,ne,ie){var re=new ce.Row(te.raw,-1,te.section);re.spansMultiplePages=!0,te.spansMultiplePages=!0,te.height=0,te.maxCellHeight=0;for(var le=0,de=ie.columns;le<de.length;le++){var me=de[le];if(Ce=te.cells[me.index]){Array.isArray(Ce.text)||(Ce.text=[Ce.text]);var ge=new ce.Cell(Ce.raw,{},Ce.section);(ge=ue(ge,Ce)).textPos=ue({},Ce.textPos),ge.text=[];var fe=getRemainingLineCount(Ce,ne);Ce.text.length>fe&&(ge.text=Ce.text.splice(fe,Ce.text.length)),Ce.contentHeight=Ce.getContentHeight(),Ce.contentHeight>te.height&&(te.height=Ce.contentHeight,te.maxCellHeight=Ce.contentHeight),ge.contentHeight=ge.getContentHeight(),ge.contentHeight>re.height&&(re.height=ge.contentHeight,re.maxCellHeight=ge.contentHeight),re.cells[me.index]=ge}}for(var _e=0,be=ie.columns;_e<be.length;_e++){var Ce;me=be[_e],(ge=re.cells[me.index])&&(ge.height=re.height),(Ce=te.cells[me.index])&&(Ce.height=te.height)}return re}(te,re,ie);printRow(te),addPage(),printFullRow(le,ne)}else addPage(),printFullRow(te,ne)}function printRow(te){var ne=de.default().table;ne.cursor.x=ne.margin("left"),te.y=ne.cursor.y,te.x=ne.cursor.x;for(var ie=0,re=ne.columns;ie<re.length;ie++){var ce=re[ie],ue=te.cells[ce.index];if(ue)if(le.applyStyles(ue.styles),ue.x=ne.cursor.x,ue.y=te.y,"top"===ue.styles.valign?ue.textPos.y=ne.cursor.y+ue.padding("top"):"bottom"===ue.styles.valign?ue.textPos.y=ne.cursor.y+ue.height-ue.padding("bottom"):ue.textPos.y=ne.cursor.y+ue.height/2,"right"===ue.styles.halign?ue.textPos.x=ue.x+ue.width-ue.padding("right"):"center"===ue.styles.halign?ue.textPos.x=ue.x+ue.width/2:ue.textPos.x=ue.x+ue.padding("left"),!1!==ne.callCellHooks(ne.cellHooks.willDrawCell,ue,te,ce)){var me=le.getFillStyle(ue.styles);me&&de.default().doc.rect(ue.x,ne.cursor.y,ue.width,ue.height,me),de.default().doc.autoTableText(ue.text,ue.textPos.x,ue.textPos.y,{halign:ue.styles.halign,valign:ue.styles.valign,maxWidth:Math.ceil(ue.width-ue.padding("left")-ue.padding("right"))}),ne.callCellHooks(ne.cellHooks.didDrawCell,ue,te,ce),ne.cursor.x+=ce.width}else ne.cursor.x+=ce.width;else ne.cursor.x+=ce.width}ne.cursor.y+=te.height}function addPage(){var te=de.default().table;le.applyUserStyles(),!0!==te.settings.showFoot&&"everyPage"!==te.settings.showFoot||te.foot.forEach((function(te){return printRow(te)})),te.finalY=te.cursor.y,te.callEndPageHooks(),le.addTableBorder(),nextPage(de.default().doc),te.pageNumber++,te.cursor={x:te.margin("left"),y:te.margin("top")},te.pageStartX=te.cursor.x,te.pageStartY=te.cursor.y,!0!==te.settings.showHead&&"everyPage"!==te.settings.showHead||te.head.forEach((function(te){return printRow(te)}))}function nextPage(te){var ne=de.default().pageNumber();te.setPage(ne+1),de.default().pageNumber()===ne&&te.addPage()}ne.drawTable=function drawTable(te){var ne=te.settings;te.cursor={x:te.margin("left"),y:null==ne.startY?te.margin("top"):ne.startY};var ie=ne.startY+te.margin("bottom")+te.headHeight+te.footHeight;"avoid"===ne.pageBreak&&(ie+=te.height),("always"===ne.pageBreak||null!=ne.startY&&!1!==ne.startY&&ie>de.default().pageHeight())&&(nextPage(de.default().doc),te.cursor.y=te.margin("top")),te.pageStartX=te.cursor.x,te.pageStartY=te.cursor.y,te.startPageNumber=de.default().pageNumber(),le.applyUserStyles(),!0!==ne.showHead&&"firstPage"!==ne.showHead&&"everyPage"!==ne.showHead||te.head.forEach((function(te){return printRow(te)})),le.applyUserStyles(),te.body.forEach((function(ne,ie){printFullRow(ne,ie===te.body.length-1)})),le.applyUserStyles(),!0!==ne.showFoot&&"lastPage"!==ne.showFoot&&"everyPage"!==ne.showFoot||te.foot.forEach((function(te){return printRow(te)})),le.addTableBorder(),te.callEndPageHooks()},ne.addPage=addPage},function(te,ne,ie){"use strict";var re,le=this&&this.__extends||(re=function(te,ne){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ne){te.__proto__=ne}||function(te,ne){for(var ie in ne)ne.hasOwnProperty(ie)&&(te[ie]=ne[ie])},re(te,ne)},function(te,ne){function __(){this.constructor=te}re(te,ne),te.prototype=null===ne?Object.create(ne):(__.prototype=ne.prototype,new __)});Object.defineProperty(ne,"__esModule",{value:!0});var ce=ie(0),de=function(){function HookData(){var te=ce.default().table;this.table=te,this.pageNumber=te.pageNumber,this.settings=te.settings,this.cursor=te.cursor,this.doc=ce.default().doc}return Object.defineProperty(HookData.prototype,"pageCount",{get:function(){return this.pageNumber},enumerable:!0,configurable:!0}),HookData}();ne.HookData=de;var ue=function(te){function CellHookData(ne,ie,re){var le=te.call(this)||this;return le.cell=ne,le.row=ie,le.column=re,le.section=ie.section,le}return le(CellHookData,te),CellHookData}(de);ne.CellHookData=ue},function(te,ne,ie){"use strict";Object.defineProperty(ne,"__esModule",{value:!0});var re=ie(1),le=ie(0);function distributeWidth(te,ne,ie){for(var re=0;re<te.length;re++){for(var ce=te[re],de=ne*(ce.wrappedWidth/ie),ue=ce.wrappedWidth+de,me=!1,ge=0,fe=le.default().table.allRows();ge<fe.length;ge++){var _e=fe[ge].cells[ce.index];if(_e&&"number"==typeof _e.styles.cellWidth){me=!0;break}}if(ue<ce.minWidth||me){ce.width=ce.minWidth+1/le.default().scaleFactor(),ie-=ce.wrappedWidth,te.splice(re,1),distributeWidth(te,ne,ie);break}ce.width=ue}}ne.calculateWidths=function calculateWidths(te){10/le.default().scaleFactor()*te.columns.length>te.width?console.error("Columns could not fit on page"):te.minWidth>te.width&&console.error("Column widths too wide and can't fit page"),distributeWidth(te.columns.slice(0),te.width-te.wrappedWidth,te.wrappedWidth),function applyColSpans(te){for(var ne=te.allRows(),ie=0;ie<ne.length;ie++)for(var re=ne[ie],le=null,ce=0,de=0,ue=0;ue<te.columns.length;ue++){var me=te.columns[ue],ge=null;if((de-=1)>1&&te.columns[ue+1])ce+=me.width,delete re.cells[me.index];else{if(le)ge=le,delete re.cells[me.index],le=null;else{if(!(ge=re.cells[me.index]))continue;if(de=ge.colSpan,ce=0,ge.colSpan>1){le=ge,ce+=me.width;continue}}ge.width=me.width+ce}}}(te),function fitContent(te){for(var ne={count:0,height:0},ie=0,ce=te.allRows();ie<ce.length;ie++){for(var de=ce[ie],ue=0,me=te.columns;ue<me.length;ue++){var ge=me[ue],fe=de.cells[ge.index];if(fe){re.applyStyles(fe.styles);var _e=fe.width-fe.padding("horizontal");"linebreak"===fe.styles.overflow?fe.text=le.default().doc.splitTextToSize(fe.text,_e+1/(le.default().scaleFactor()||1),{fontSize:fe.styles.fontSize}):"ellipsize"===fe.styles.overflow?fe.text=re.ellipsize(fe.text,_e,fe.styles):"hidden"===fe.styles.overflow?fe.text=re.ellipsize(fe.text,_e,fe.styles,""):"function"==typeof fe.styles.overflow&&(fe.text=fe.styles.overflow(fe.text,_e)),fe.contentHeight=fe.getContentHeight(),fe.styles.minCellHeight>fe.contentHeight&&(fe.contentHeight=fe.styles.minCellHeight);var be=fe.contentHeight/fe.rowSpan;fe.rowSpan>1&&ne.count*ne.height<be*fe.rowSpan?ne={height:be,count:fe.rowSpan}:ne&&ne.count>0&&ne.height>be&&(be=ne.height),be>de.height&&(de.height=be,de.maxCellHeight=be)}}ne.count--}}(te),function applyRowSpans(te){for(var ne={},ie=1,re=te.allRows(),le=0;le<re.length;le++){for(var ce=re[le],de=0,ue=te.columns;de<ue.length;de++){var me=ue[de],ge=ne[me.index];if(ie>1)ie--,delete ce.cells[me.index];else if(ge)ge.cell.height+=ce.height,ge.cell.height>ce.maxCellHeight&&(ge.row.maxCellHeight=ge.cell.height),ie=ge.cell.colSpan,delete ce.cells[me.index],ge.left--,ge.left<=1&&delete ne[me.index];else{var fe=ce.cells[me.index];if(!fe)continue;if(fe.height=ce.height,fe.rowSpan>1){var _e=re.length-le,be=fe.rowSpan>_e?_e:fe.rowSpan;ne[me.index]={cell:fe,left:be,row:ce}}}}"head"===ce.section&&(te.headHeight+=ce.maxCellHeight),"foot"===ce.section&&(te.footHeight+=ce.maxCellHeight),te.height+=ce.height}}(te)}},function(te,ne,ie){"use strict";var re=this&&this.__spreadArrays||function(){for(var te=0,ne=0,ie=arguments.length;ne<ie;ne++)te+=arguments[ne].length;var re=Array(te),le=0;for(ne=0;ne<ie;ne++)for(var ce=arguments[ne],de=0,ue=ce.length;de<ue;de++,le++)re[le]=ce[de];return re};Object.defineProperty(ne,"__esModule",{value:!0});var le=ie(4),ce=ie(2),de=ie(6),ue=ie(3),me=ie(1),ge=ie(0),fe=ie(14);function cellStyles(te,ne,ie){var le=ge.default().table,de=ce.getTheme(le.settings.theme),me=[de.table,de[te],le.styles.styles,le.styles[te+"Styles"]],fe=le.styles.columnStyles[ne.dataKey]||le.styles.columnStyles[ne.index]||{},_e="body"===te?fe:{},be="body"===te&&ie%2==0?ue.assign({},de.alternateRow,le.styles.alternateRowStyles):{};return ue.assign.apply(void 0,re([ce.defaultStyles()],re(me,[be,_e])))}ne.parseInput=function parseInput(te){var ne=function parseUserArguments(te){if(1===te.length)return te[0];var ne=te[2]||{};return ne.body=te[1],ne.columns=te[0],ne.columns.forEach((function(te){"object"==typeof te&&null==te.header&&(te.header=te.title)})),ne}(te),ie=[ge.getGlobalOptions(),ge.getDocumentOptions(),ne];fe.default(ie);var _e=new le.Table;ge.default().table=_e,_e.id=ne.tableId;var be=ge.default().doc;_e.userStyles={textColor:be.getTextColor?be.getTextColor():0,fontSize:be.internal.getFontSize(),fontStyle:be.internal.getFont().fontStyle,font:be.internal.getFont().fontName};for(var _loop_1=function(te){var ne=ie.map((function(ne){return ne[te]||{}}));_e.styles[te]=ue.assign.apply(void 0,re([{}],ne))},Ce=0,ye=Object.keys(_e.styles);Ce<ye.length;Ce++){_loop_1(ye[Ce])}for(var we=0,ke=ie;we<ke.length;we++)for(var Se=ke[we],xe=0,Ee=Object.keys(_e.cellHooks);xe<Ee.length;xe++){var Me=Ee[xe];Se&&"function"==typeof Se[Me]&&_e.cellHooks[Me].push(Se[Me])}_e.settings=ue.assign.apply(void 0,re([{},ce.defaultConfig()],ie)),_e.settings.margin=me.marginOrPadding(_e.settings.margin,ce.defaultConfig().margin),"auto"===_e.settings.theme&&(_e.settings.theme=_e.settings.useCss?"plain":"striped"),!1===_e.settings.startY&&delete _e.settings.startY;var Ne=ge.default().doc.previousAutoTable,Re=Ne&&Ne.startPageNumber+Ne.pageNumber-1===ge.default().pageNumber();null==_e.settings.startY&&Re&&(_e.settings.startY=Ne.finalY+20/ge.default().scaleFactor());var Le={};return _e.settings.html&&(Le=de.parseHtml(_e.settings.html,_e.settings.includeHiddenHtml,_e.settings.useCss)||{}),_e.settings.head=Le.head||_e.settings.head||[],_e.settings.body=Le.body||_e.settings.body||[],_e.settings.foot=Le.foot||_e.settings.foot||[],function parseContent(te){var ne=te.settings;te.columns=function getTableColumns(te){if(te.columns)return te.columns.map((function(te,ne){var ie=te.dataKey||te.key||ne;return new le.Column(ie,te,ne)}));var ne=te.head[0]||te.body[0]||te.foot[0]||[],ie=[];return Object.keys(ne).filter((function(te){return"_element"!==te})).forEach((function(te){for(var re=ne[te]&&ne[te].colSpan?ne[te].colSpan:1,ce=0;ce<re;ce++){var de=void 0;de=Array.isArray(ne)?ie.length:te+(ce>0?"_"+ce:""),ie.push(new le.Column(de,de,ie.length))}})),ie}(ne);for(var _loop_2=function(ie){var re={},ce=ne[ie];if(0===ce.length&&ne.columns&&"body"!==ie){var de=function generateSectionRowFromColumnData(te,ne){var ie={};return te.columns.forEach((function(te){var re=te.raw;if("head"===ne){var le=re&&re.header?re.header:re;le&&(ie[te.dataKey]=le)}else"foot"===ne&&re.footer&&(ie[te.dataKey]=re.footer)})),Object.keys(ie).length>0?ie:null}(te,ie);de&&ce.push(de)}ce.forEach((function(ne,ce){var de=0,ue=new le.Row(ne,ce,ie);te[ie].push(ue);for(var me=0,ge=0,fe=0,_e=te.columns;fe<_e.length;fe++){var be=_e[fe];if(null==re[be.index]||0===re[be.index].left)if(0===ge){var Ce=void 0;Ce=Array.isArray(ne)?ne[be.index-me-de]:ne[be.dataKey];var ye=cellStyles(ie,be,ce),we=new le.Cell(Ce,ye,ie);ue.cells[be.dataKey]=we,ue.cells[be.index]=we,ge=we.colSpan-1,re[be.index]={left:we.rowSpan-1,times:ge}}else ge--,me++;else re[be.index].left--,ge=re[be.index].times,de++}}))},ie=0,re=["head","body","foot"];ie<re.length;ie++){_loop_2(re[ie])}te.allRows().forEach((function(ne){for(var ie=0,re=te.columns;ie<re.length;ie++){var le=re[ie],ce=ne.cells[le.index];if(ce&&1===ce.colSpan)ce.wrappedWidth>le.wrappedWidth&&(le.wrappedWidth=ce.wrappedWidth),ce.minWidth>le.minWidth&&(le.minWidth=ce.minWidth);else{var de=(te.styles.columnStyles[le.dataKey]||te.styles.columnStyles[le.index]||{}).cellWidth;de&&(le.minWidth=de,le.wrappedWidth=de)}ce&&ce.colSpan>1&&!le.minWidth&&(le.minWidth=ce.minWidth),ce&&ce.colSpan>1&&!le.wrappedWidth&&(le.wrappedWidth=ce.minWidth),te.callCellHooks(te.cellHooks.didParseCell,ce,ne,le)}}))}(_e),_e.minWidth=_e.columns.reduce((function(te,ne){return te+ne.minWidth}),0),_e.wrappedWidth=_e.columns.reduce((function(te,ne){return te+ne.wrappedWidth}),0),"number"==typeof _e.settings.tableWidth?_e.width=_e.settings.tableWidth:"wrap"===_e.settings.tableWidth?_e.width=_e.wrappedWidth:_e.width=ge.default().pageWidth()-_e.margin("left")-_e.margin("right"),_e}},function(te,ne,ie){"use strict";Object.defineProperty(ne,"__esModule",{value:!0});var re=ie(1),le=ie(0);function parseColor(te,ne){var ie=realColor(te,ne);if(!ie)return null;var re=ie.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!re||!Array.isArray(re))return null;var le=[parseInt(re[1]),parseInt(re[2]),parseInt(re[3])];return 0===parseInt(re[4])||isNaN(le[0])||isNaN(le[1])||isNaN(le[2])?null:le}function realColor(te,ne){if(!te)return null;var ie=window.getComputedStyle(te)[ne];return"rgba(0, 0, 0, 0)"===ie||"transparent"===ie||"initial"===ie||"inherit"===ie?realColor(te.parentElement,ne):ie}ne.parseCss=function parseCss(te,ne,ie){void 0===ie&&(ie=[]);var ce={},de=window.getComputedStyle(te);function assign(te,ne,re){void 0===re&&(re=[]),0!==re.length&&-1===re.indexOf(ne)||-1!==ie.indexOf(te)||(0===ne||ne)&&(ce[te]=ne)}var ue=96/72;assign("fillColor",parseColor(te,"backgroundColor")),assign("fontStyle",function parseFontStyle(te){var ne="";("bold"===te.fontWeight||"bolder"===te.fontWeight||parseInt(te.fontWeight)>=700)&&(ne+="bold");"italic"!==te.fontStyle&&"oblique"!==te.fontStyle||(ne+="italic");return ne}(de)),assign("textColor",parseColor(te,"color")),assign("halign",de.textAlign,["left","right","center","justify"]),assign("valign",de.verticalAlign,["middle","bottom","top"]),assign("fontSize",parseInt(de.fontSize||"")/ue),assign("cellPadding",function parsePadding(te,ne,ie,le){if(!te)return null;var ce=96/(72/le),de=(parseInt(ie)-parseInt(ne))/le/2,ue=te.split(" ").map((function(te){return parseInt(te)/ce}));ue=re.marginOrPadding(ue,0),de>ue.top&&(ue.top=de);de>ue.bottom&&(ue.bottom=de);return ue}(de.padding,de.fontSize,de.lineHeight,ne)),assign("lineWidth",parseInt(de.borderTopWidth||"")/ue/ne),assign("lineColor",parseColor(te,"borderTopColor"));var me=(de.fontFamily||"").toLowerCase();return le.default().doc.getFontList()[me]&&assign("font",me),ce}},function(te,ne,ie){"use strict";Object.defineProperty(ne,"__esModule",{value:!0});var re=ie(1);function checkStyles(te){te.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),te.minCellHeight||(te.minCellHeight=te.rowHeight)):te.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),te.cellWidth||(te.cellWidth=te.columnWidth))}ne.default=function default_1(te){for(var _loop_1=function(te){te&&"object"!=typeof te&&console.error("The options parameter should be of type object, is: "+typeof te),void 0!==te.extendWidth&&(te.tableWidth=te.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),void 0!==te.margins&&(void 0===te.margin&&(te.margin=te.margins),console.error("Use of deprecated option: margins, use margin instead.")),te.startY&&"number"!=typeof te.startY&&(console.error("Invalid value for startY option",te.startY),delete te.startY),!te.didDrawPage&&(te.afterPageContent||te.beforePageContent||te.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),te.didDrawPage=function(ne){re.applyUserStyles(),te.beforePageContent&&te.beforePageContent(ne),re.applyUserStyles(),te.afterPageContent&&te.afterPageContent(ne),re.applyUserStyles(),te.afterPageAdd&&ne.pageNumber>1&&ne.afterPageAdd(ne),re.applyUserStyles()}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach((function(ne){te[ne]&&console.error('The "'+ne+'" hook has changed in version 3.0, check the changelog for how to migrate.')})),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach((function(ne){var ie=ne[0],re=ne[1];te[re]&&(console.error("Use of deprecated option "+re+". Use "+ie+" instead"),te[ie]=te[re])})),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach((function(ne){var ie="string"==typeof ne?ne:ne[0],re="string"==typeof ne?ne:ne[1];void 0!==te[ie]&&(void 0===te.styles[re]&&(te.styles[re]=te[ie]),console.error("Use of deprecated option: "+ie+", use the style "+re+" instead."))}));for(var ne=0,ie=["styles","bodyStyles","headStyles","footStyles"];ne<ie.length;ne++){checkStyles(te[ie[ne]]||{})}for(var le=te.columnStyles||{},ce=0,de=Object.keys(le);ce<de.length;ce++){checkStyles(le[de[ce]]||{})}},ne=0,ie=te;ne<ie.length;ne++){_loop_1(ie[ne])}}},function(te,ne,ie){ie(7).API.autoTableText=function(te,ne,ie,re){re=re||{};var le=1.15;"number"==typeof ne&&"number"==typeof ie||console.error("The x and y parameters are required. Missing for text: ",te);var ce=this.internal.scaleFactor,de=this.internal.getFontSize()/ce,ue=null,me=1;if("middle"!==re.valign&&"bottom"!==re.valign&&"center"!==re.halign&&"right"!==re.halign||(me=(ue="string"==typeof te?te.split(/\r\n|\r|\n/g):te).length||1),ie+=de*(2-le),"middle"===re.valign?ie-=me/2*de*le:"bottom"===re.valign&&(ie-=me*de*le),"center"===re.halign||"right"===re.halign){var ge=de;if("center"===re.halign&&(ge*=.5),me>=1){for(var fe=0;fe<ue.length;fe++)this.text(ue[fe],ne-this.getStringUnitWidth(ue[fe])*ge,ie),ie+=de*le;return this}ne-=this.getStringUnitWidth(te)*ge}return"justify"===re.halign?this.text(te,ne,ie,{maxWidth:re.maxWidth||100,align:"justify"}):this.text(te,ne,ie),this}}])}))},4236:(te,ne,ie)=>{var re,le;re=function(){"use strict";function se(te){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(te){return typeof te}:function(te){return te&&"function"==typeof Symbol&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(te)}!function(te){if("object"!==se(te.console)){te.console={};for(var ne,ie,re=te.console,i=function(){},le=["memory"],ce="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");ne=le.pop();)re[ne]||(re[ne]={});for(;ie=ce.pop();)re[ie]||(re[ie]=i)}var de,ue,me,ge,fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===te.btoa&&(te.btoa=function(te){var ne,ie,re,le,ce,de=0,ue=0,me="",ge=[];if(!te)return te;for(;ne=(ce=te.charCodeAt(de++)<<16|te.charCodeAt(de++)<<8|te.charCodeAt(de++))>>18&63,ie=ce>>12&63,re=ce>>6&63,le=63&ce,ge[ue++]=fe.charAt(ne)+fe.charAt(ie)+fe.charAt(re)+fe.charAt(le),de<te.length;);me=ge.join("");var _e=te.length%3;return(_e?me.slice(0,_e-3):me)+"===".slice(_e||3)}),void 0===te.atob&&(te.atob=function(te){var ne,ie,re,le,ce,de,ue=0,me=0,ge=[];if(!te)return te;for(te+="";ne=(de=fe.indexOf(te.charAt(ue++))<<18|fe.indexOf(te.charAt(ue++))<<12|(le=fe.indexOf(te.charAt(ue++)))<<6|(ce=fe.indexOf(te.charAt(ue++))))>>16&255,ie=de>>8&255,re=255&de,ge[me++]=64==le?String.fromCharCode(ne):64==ce?String.fromCharCode(ne,ie):String.fromCharCode(ne,ie,re),ue<te.length;);return ge.join("")}),Array.prototype.map||(Array.prototype.map=function(te){if(null==this||"function"!=typeof te)throw new TypeError;for(var ne=Object(this),ie=ne.length>>>0,re=new Array(ie),le=1<arguments.length?arguments[1]:void 0,ce=0;ce<ie;ce++)ce in ne&&(re[ce]=te.call(le,ne[ce],ce,ne));return re}),Array.isArray||(Array.isArray=function(te){return"[object Array]"===Object.prototype.toString.call(te)}),Array.prototype.forEach||(Array.prototype.forEach=function(te,ne){if(null==this||"function"!=typeof te)throw new TypeError;for(var ie=Object(this),re=ie.length>>>0,le=0;le<re;le++)le in ie&&te.call(ne,ie[le],le,ie)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(te){if(null==this)throw new TypeError('"this" is null or not defined');var ne=Object(this),ie=ne.length>>>0;if("function"!=typeof te)throw new TypeError("predicate must be a function");for(var re=arguments[1],le=0;le<ie;){var ce=ne[le];if(te.call(re,ce,le,ne))return ce;le++}},configurable:!0,writable:!0}),Object.keys||(Object.keys=(de=Object.prototype.hasOwnProperty,ue=!{toString:null}.propertyIsEnumerable("toString"),ge=(me=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(te){if("object"!==se(te)&&("function"!=typeof te||null===te))throw new TypeError;var ne,ie,re=[];for(ne in te)de.call(te,ne)&&re.push(ne);if(ue)for(ie=0;ie<ge;ie++)de.call(te,me[ie])&&re.push(me[ie]);return re})),"function"!=typeof Object.assign&&(Object.assign=function(te){if(null==te)throw new TypeError("Cannot convert undefined or null to object");te=Object(te);for(var ne=1;ne<arguments.length;ne++){var ie=arguments[ne];if(null!=ie)for(var re in ie)Object.prototype.hasOwnProperty.call(ie,re)&&(te[re]=ie[re])}return te}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")}),Number.isInteger=Number.isInteger||function(te){return"number"==typeof te&&isFinite(te)&&Math.floor(te)===te}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var re,ce,de,ue,me,ge,fe,_e,be,Ce,ye,we,ke,Se,xe,Ee,Me,Ne,Re,Le,Oe,Pe,Fe,je,Ve,Ge,ze,He,$e,qe,Ye,Xe,Ke,Qe,Je,dt,pt,Ct,vt,It,Dt,Mt,Nt,Rt,Ot,Vt,Gt,zt,Ht,Ut,$t,Yt,Wt,Kt,Qt,Jt,Zt,tn,nn,rn,an,sn,dn=function(re){function oe(te){if("object"!==se(te))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var ne={};this.subscribe=function(te,ie,re){if(re=re||!1,"string"!=typeof te||"function"!=typeof ie||"boolean"!=typeof re)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");ne.hasOwnProperty(te)||(ne[te]={});var le=Math.random().toString(35);return ne[te][le]=[ie,!!re],le},this.unsubscribe=function(te){for(var ie in ne)if(ne[ie][te])return delete ne[ie][te],0===Object.keys(ne[ie]).length&&delete ne[ie],!0;return!1},this.publish=function(ie){if(ne.hasOwnProperty(ie)){var le=Array.prototype.slice.call(arguments,1),ce=[];for(var de in ne[ie]){var ue=ne[ie][de];try{ue[0].apply(te,le)}catch(ie){re.console&&console.error("jsPDF PubSub Error",ie.message,ie)}ue[1]&&ce.push(de)}ce.length&&ce.forEach(this.unsubscribe)}},this.getTopics=function(){return ne}}function ae(te,ne,ie,le){var ce={},de=[],ue=1;"object"===se(te)&&(te=(ce=te).orientation,ne=ce.unit||ne,ie=ce.format||ie,le=ce.compress||ce.compressPdf||le,de=ce.filters||(!0===le?["FlateEncode"]:de),ue="number"==typeof ce.userUnit?Math.abs(ce.userUnit):1),ne=ne||"mm",te=(""+(te||"P")).toLowerCase();var me=ce.putOnlyUsedFonts||!0,ge={},fe={internal:{},__private__:{}};fe.__private__.PubSub=oe;var _e="1.3",be=fe.__private__.getPdfVersion=function(){return _e},Ce=(fe.__private__.setPdfVersion=function(te){_e=te},{a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]}),ye=(fe.__private__.getPageFormats=function(){return Ce},fe.__private__.getPageFormat=function(te){return Ce[te]});"string"==typeof ie&&(ie=ye(ie)),ie=ie||ye("a4");var we,ke=fe.f2=fe.__private__.f2=function(te){if(isNaN(te))throw new Error("Invalid argument passed to jsPDF.f2");return te.toFixed(2)},Se=fe.__private__.f3=function(te){if(isNaN(te))throw new Error("Invalid argument passed to jsPDF.f3");return te.toFixed(3)},xe="00000000000000000000000000000000",Ee=fe.__private__.getFileId=function(){return xe},Me=fe.__private__.setFileId=function(te){return te=te||"12345678901234567890123456789012".split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),xe=te};fe.setFileId=function(te){return Me(te),this},fe.getFileId=function(){return Ee()};var Ne=fe.__private__.convertDateToPDFDate=function(te){var ne=te.getTimezoneOffset(),ie=ne<0?"+":"-",re=Math.floor(Math.abs(ne/60)),le=Math.abs(ne%60),ce=[ie,qe(re),"'",qe(le),"'"].join("");return["D:",te.getFullYear(),qe(te.getMonth()+1),qe(te.getDate()),qe(te.getHours()),qe(te.getMinutes()),qe(te.getSeconds()),ce].join("")},Re=fe.__private__.convertPDFDateToDate=function(te){var ne=parseInt(te.substr(2,4),10),ie=parseInt(te.substr(6,2),10)-1,re=parseInt(te.substr(8,2),10),le=parseInt(te.substr(10,2),10),ce=parseInt(te.substr(12,2),10),de=parseInt(te.substr(14,2),10);return parseInt(te.substr(16,2),10),parseInt(te.substr(20,2),10),new Date(ne,ie,re,le,ce,de,0)},Le=fe.__private__.setCreationDate=function(te){var ne;if(void 0===te&&(te=new Date),"object"===se(te)&&"[object Date]"===Object.prototype.toString.call(te))ne=Ne(te);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|\-0[0-9]|\-1[0-1])\'(0[0-9]|[1-5][0-9])\'?$/.test(te))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ne=te}return we=ne},Oe=fe.__private__.getCreationDate=function(te){var ne=we;return"jsDate"===te&&(ne=Re(we)),ne};fe.setCreationDate=function(te){return Le(te),this},fe.getCreationDate=function(te){return Oe(te)};var Pe,Fe,je,Ve,Ge,ze,He,$e,qe=fe.__private__.padd2=function(te){return("0"+parseInt(te)).slice(-2)},Ye=!1,Xe=[],Ke=[],Qe=0,Je=(fe.__private__.setCustomOutputDestination=function(te){Fe=te},fe.__private__.resetCustomOutputDestination=function(te){Fe=void 0},fe.__private__.out=function(te){var ne;return te="string"==typeof te?te:te.toString(),(ne=void 0===Fe?Ye?Xe[Pe]:Ke:Fe).push(te),Ye||(Qe+=te.length+1),ne}),dt=fe.__private__.write=function(te){return Je(1===arguments.length?te.toString():Array.prototype.join.call(arguments," "))},pt=fe.__private__.getArrayBuffer=function(te){for(var ne=te.length,ie=new ArrayBuffer(ne),re=new Uint8Array(ie);ne--;)re[ne]=te.charCodeAt(ne);return ie},Ct=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]],vt=(fe.__private__.getStandardFonts=function(te){return Ct},ce.fontSize||16),It=(fe.__private__.setFontSize=fe.setFontSize=function(te){return vt=te,this},fe.__private__.getFontSize=fe.getFontSize=function(){return vt}),Dt=ce.R2L||!1,Mt=(fe.__private__.setR2L=fe.setR2L=function(te){return Dt=te,this},fe.__private__.getR2L=fe.getR2L=function(te){return Dt},fe.__private__.setZoomMode=function(te){var ne=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*\%$/.test(te))je=te;else if(isNaN(te)){if(-1===ne.indexOf(te))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+te+'" is not recognized.');je=te}else je=parseInt(te,10)}),Nt=(fe.__private__.getZoomMode=function(){return je},fe.__private__.setPageMode=function(te){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(te))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+te+'" is not recognized.');Ve=te}),Rt=(fe.__private__.getPageMode=function(){return Ve},fe.__private__.setLayoutMode=function(te){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(te))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+te+'" is not recognized.');Ge=te}),Ot=(fe.__private__.getLayoutMode=function(){return Ge},fe.__private__.setDisplayMode=fe.setDisplayMode=function(te,ne,ie){return Mt(te),Rt(ne),Nt(ie),this},{title:"",subject:"",author:"",keywords:"",creator:""}),Vt=(fe.__private__.getDocumentProperty=function(te){if(-1===Object.keys(Ot).indexOf(te))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ot[te]},fe.__private__.getDocumentProperties=function(te){return Ot},fe.__private__.setDocumentProperties=fe.setProperties=fe.setDocumentProperties=function(te){for(var ne in Ot)Ot.hasOwnProperty(ne)&&te[ne]&&(Ot[ne]=te[ne]);return this},fe.__private__.setDocumentProperty=function(te,ne){if(-1===Object.keys(Ot).indexOf(te))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ot[te]=ne},0),Gt=[],zt={},Ht={},Ut=0,$t=[],Yt=[],Wt=new oe(fe),Kt=ce.hotfixes||[],Qt=fe.__private__.newObject=function(){var te=Jt();return ot(te,!0),te},Jt=fe.__private__.newObjectDeferred=function(){return Gt[++Vt]=function(){return Qe},Vt},ot=function(te,ne){return ne="boolean"==typeof ne&&ne,Gt[te]=Qe,ne&&Je(te+" 0 obj"),te},Zt=fe.__private__.newAdditionalObject=function(){var te={objId:Jt(),content:""};return Yt.push(te),te},tn=Jt(),nn=Jt(),rn=fe.__private__.decodeColorString=function(te){var ne=te.split(" ");if(2===ne.length&&("g"===ne[1]||"G"===ne[1])){var ie=parseFloat(ne[0]);ne=[ie,ie,ie,"r"]}for(var re="#",le=0;le<3;le++)re+=("0"+Math.floor(255*parseFloat(ne[le])).toString(16)).slice(-2);return re},an=fe.__private__.encodeColorString=function(te){var ne;"string"==typeof te&&(te={ch1:te});var ie=te.ch1,re=te.ch2,le=te.ch3,ce=te.ch4,de=(te.precision,"draw"===te.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof ie&&"#"!==ie.charAt(0)){var ue=new RGBColor(ie);if(ue.ok)ie=ue.toHex();else if(!/^\d*\.?\d*$/.test(ie))throw new Error('Invalid color "'+ie+'" passed to jsPDF.encodeColorString.')}if("string"==typeof ie&&/^#[0-9A-Fa-f]{3}$/.test(ie)&&(ie="#"+ie[1]+ie[1]+ie[2]+ie[2]+ie[3]+ie[3]),"string"==typeof ie&&/^#[0-9A-Fa-f]{6}$/.test(ie)){var me=parseInt(ie.substr(1),16);ie=me>>16&255,re=me>>8&255,le=255&me}if(void 0===re||void 0===ce&&ie===re&&re===le)ne="string"==typeof ie?ie+" "+de[0]:2===te.precision?ke(ie/255)+" "+de[0]:Se(ie/255)+" "+de[0];else if(void 0===ce||"object"===se(ce)){if(ce&&!isNaN(ce.a)&&0===ce.a)return["1.000","1.000","1.000",de[1]].join(" ");ne="string"==typeof ie?[ie,re,le,de[1]].join(" "):2===te.precision?[ke(ie/255),ke(re/255),ke(le/255),de[1]].join(" "):[Se(ie/255),Se(re/255),Se(le/255),de[1]].join(" ")}else ne="string"==typeof ie?[ie,re,le,ce,de[2]].join(" "):2===te.precision?[ke(ie/255),ke(re/255),ke(le/255),ke(ce/255),de[2]].join(" "):[Se(ie/255),Se(re/255),Se(le/255),Se(ce/255),de[2]].join(" ");return ne},sn=fe.__private__.getFilters=function(){return de},dn=fe.__private__.putStream=function(te){var ne=(te=te||{}).data||"",ie=te.filters||sn(),re=te.alreadyAppliedFilters||[],le=te.addLength1||!1,ce=ne.length,de={};!0===ie&&(ie=["FlateEncode"]);var ue=te.additionalKeyValues||[],me=(de=void 0!==ae.API.processDataByFilters?ae.API.processDataByFilters(ne,ie):{data:ne,reverseChain:[]}).reverseChain+(Array.isArray(re)?re.join(" "):re.toString());0!==de.data.length&&(ue.push({key:"Length",value:de.data.length}),!0===le&&ue.push({key:"Length1",value:ce})),0!=me.length&&(me.split("/").length-1==1?ue.push({key:"Filter",value:me}):ue.push({key:"Filter",value:"["+me+"]"})),Je("<<");for(var ge=0;ge<ue.length;ge++)Je("/"+ue[ge].key+" "+ue[ge].value);Je(">>"),0!==de.data.length&&(Je("stream"),Je(de.data),Je("endstream"))},un=fe.__private__.putPage=function(te){te.mediaBox;var ne=te.number,ie=te.data,re=te.objId,le=te.contentsObjId;ot(re,!0),$t[Pe].mediaBox.topRightX,$t[Pe].mediaBox.bottomLeftX,$t[Pe].mediaBox.topRightY,$t[Pe].mediaBox.bottomLeftY,Je("<</Type /Page"),Je("/Parent "+te.rootDictionaryObjId+" 0 R"),Je("/Resources "+te.resourceDictionaryObjId+" 0 R"),Je("/MediaBox ["+parseFloat(ke(te.mediaBox.bottomLeftX))+" "+parseFloat(ke(te.mediaBox.bottomLeftY))+" "+ke(te.mediaBox.topRightX)+" "+ke(te.mediaBox.topRightY)+"]"),null!==te.cropBox&&Je("/CropBox ["+ke(te.cropBox.bottomLeftX)+" "+ke(te.cropBox.bottomLeftY)+" "+ke(te.cropBox.topRightX)+" "+ke(te.cropBox.topRightY)+"]"),null!==te.bleedBox&&Je("/BleedBox ["+ke(te.bleedBox.bottomLeftX)+" "+ke(te.bleedBox.bottomLeftY)+" "+ke(te.bleedBox.topRightX)+" "+ke(te.bleedBox.topRightY)+"]"),null!==te.trimBox&&Je("/TrimBox ["+ke(te.trimBox.bottomLeftX)+" "+ke(te.trimBox.bottomLeftY)+" "+ke(te.trimBox.topRightX)+" "+ke(te.trimBox.topRightY)+"]"),null!==te.artBox&&Je("/ArtBox ["+ke(te.artBox.bottomLeftX)+" "+ke(te.artBox.bottomLeftY)+" "+ke(te.artBox.topRightX)+" "+ke(te.artBox.topRightY)+"]"),"number"==typeof te.userUnit&&1!==te.userUnit&&Je("/UserUnit "+te.userUnit),Wt.publish("putPage",{objId:re,pageContext:$t[ne],pageNumber:ne,page:ie}),Je("/Contents "+le+" 0 R"),Je(">>"),Je("endobj");var ce=ie.join("\n");return ot(le,!0),dn({data:ce,filters:sn()}),Je("endobj"),re},pn=fe.__private__.putPages=function(){var te,ne,ie=[];for(te=1;te<=Ut;te++)$t[te].objId=Jt(),$t[te].contentsObjId=Jt();for(te=1;te<=Ut;te++)ie.push(un({number:te,data:Xe[te],objId:$t[te].objId,contentsObjId:$t[te].contentsObjId,mediaBox:$t[te].mediaBox,cropBox:$t[te].cropBox,bleedBox:$t[te].bleedBox,trimBox:$t[te].trimBox,artBox:$t[te].artBox,userUnit:$t[te].userUnit,rootDictionaryObjId:tn,resourceDictionaryObjId:nn}));ot(tn,!0),Je("<</Type /Pages");var re="/Kids [";for(ne=0;ne<Ut;ne++)re+=ie[ne]+" 0 R ";Je(re+"]"),Je("/Count "+Ut),Je(">>"),Je("endobj"),Wt.publish("postPutPages")},gt=function(){!function(){for(var te in zt)zt.hasOwnProperty(te)&&(!1===me||!0===me&&ge.hasOwnProperty(te))&&(ne=zt[te],Wt.publish("putFont",{font:ne,out:Je,newObject:Qt,putStream:dn}),!0!==ne.isAlreadyPutted&&(ne.objectNumber=Qt(),Je("<<"),Je("/Type /Font"),Je("/BaseFont /"+ne.postScriptName),Je("/Subtype /Type1"),"string"==typeof ne.encoding&&Je("/Encoding /"+ne.encoding),Je("/FirstChar 32"),Je("/LastChar 255"),Je(">>"),Je("endobj")));var ne}(),Wt.publish("putResources"),ot(nn,!0),Je("<<"),function(){for(var te in Je("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Je("/Font <<"),zt)zt.hasOwnProperty(te)&&(!1===me||!0===me&&ge.hasOwnProperty(te))&&Je("/"+te+" "+zt[te].objectNumber+" 0 R");Je(">>"),Je("/XObject <<"),Wt.publish("putXobjectDict"),Je(">>")}(),Je(">>"),Je("endobj"),Wt.publish("postPutResources")},mt=function(te,ne,ie){Ht.hasOwnProperty(ne)||(Ht[ne]={}),Ht[ne][ie]=te},yt=function(te,ne,ie,re,le){le=le||!1;var ce="F"+(Object.keys(zt).length+1).toString(10),de={id:ce,postScriptName:te,fontName:ne,fontStyle:ie,encoding:re,isStandardFont:le,metadata:{}};return Wt.publish("addFont",{font:de,instance:this}),void 0!==ce&&(zt[ce]=de,mt(ce,ne,ie)),ce},hn=fe.__private__.pdfEscape=fe.pdfEscape=function(te,ne){return function(te,ne){var ie,re,le,ce,de,ue,me,ge,fe;if(le=(ne=ne||{}).sourceEncoding||"Unicode",de=ne.outputEncoding,(ne.autoencode||de)&&zt[ze].metadata&&zt[ze].metadata[le]&&zt[ze].metadata[le].encoding&&(ce=zt[ze].metadata[le].encoding,!de&&zt[ze].encoding&&(de=zt[ze].encoding),!de&&ce.codePages&&(de=ce.codePages[0]),"string"==typeof de&&(de=ce[de]),de)){for(me=!1,ue=[],ie=0,re=te.length;ie<re;ie++)(ge=de[te.charCodeAt(ie)])?ue.push(String.fromCharCode(ge)):ue.push(te[ie]),ue[ie].charCodeAt(0)>>8&&(me=!0);te=ue.join("")}for(ie=te.length;void 0===me&&0!==ie;)te.charCodeAt(ie-1)>>8&&(me=!0),ie--;if(!me)return te;for(ue=ne.noBOM?[]:[254,255],ie=0,re=te.length;ie<re;ie++){if((fe=(ge=te.charCodeAt(ie))>>8)>>8)throw new Error("Character at position "+ie+" of string '"+te+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ue.push(fe),ue.push(ge-(fe<<8))}return String.fromCharCode.apply(void 0,ue)}(te,ne).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},fn=fe.__private__.beginPage=function(te,ne){var re,le="string"==typeof ne&&ne.toLowerCase();if("string"==typeof te&&(re=ye(te.toLowerCase()))&&(te=re[0],ne=re[1]),Array.isArray(te)&&(ne=te[1],te=te[0]),(isNaN(te)||isNaN(ne))&&(te=ie[0],ne=ie[1]),le){switch(le.substr(0,1)){case"l":te<ne&&(le="s");break;case"p":ne<te&&(le="s")}"s"===le&&(re=te,te=ne,ne=re)}(14400<te||14400<ne)&&(console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),te=Math.min(14400,te),ne=Math.min(14400,ne)),ie=[te,ne],Ye=!0,Xe[++Ut]=[],$t[Ut]={objId:0,contentsObjId:0,userUnit:Number(ue),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(te),topRightY:Number(ne)}},xt(Ut)},bt=function(){fn.apply(this,arguments),Gn(Vn),Je(Kn),0!==fi&&Je(fi+" J"),0!==ki&&Je(ki+" j"),Wt.publish("addPage",{pageNumber:Ut})},xt=function(te){0<te&&te<=Ut&&(Pe=te)},_n=fe.__private__.getNumberOfPages=fe.getNumberOfPages=function(){return Xe.length-1},Lt=function(te,ne,ie){var re,le=void 0;return ie=ie||{},te=void 0!==te?te:zt[ze].fontName,ne=void 0!==ne?ne:zt[ze].fontStyle,re=te.toLowerCase(),void 0!==Ht[re]&&void 0!==Ht[re][ne]?le=Ht[re][ne]:void 0!==Ht[te]&&void 0!==Ht[te][ne]?le=Ht[te][ne]:!1===ie.disableWarning&&console.warn("Unable to look up font label for font '"+te+"', '"+ne+"'. Refer to getFontList() for available fonts."),le||ie.noFallback||null==(le=Ht.times[ne])&&(le=Ht.times.normal),le},bn=fe.__private__.putInfo=function(){for(var te in Qt(),Je("<<"),Je("/Producer (jsPDF "+ae.version+")"),Ot)Ot.hasOwnProperty(te)&&Ot[te]&&Je("/"+te.substr(0,1).toUpperCase()+te.substr(1)+" ("+hn(Ot[te])+")");Je("/CreationDate ("+we+")"),Je(">>"),Je("endobj")},yn=fe.__private__.putCatalog=function(te){var ne=(te=te||{}).rootDictionaryObjId||tn;switch(Qt(),Je("<<"),Je("/Type /Catalog"),Je("/Pages "+ne+" 0 R"),je||(je="fullwidth"),je){case"fullwidth":Je("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Je("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Je("/OpenAction [3 0 R /Fit]");break;case"original":Je("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ie=""+je;"%"===ie.substr(ie.length-1)&&(je=parseInt(je)/100),"number"==typeof je&&Je("/OpenAction [3 0 R /XYZ null null "+ke(je)+"]")}switch(Ge||(Ge="continuous"),Ge){case"continuous":Je("/PageLayout /OneColumn");break;case"single":Je("/PageLayout /SinglePage");break;case"two":case"twoleft":Je("/PageLayout /TwoColumnLeft");break;case"tworight":Je("/PageLayout /TwoColumnRight")}Ve&&Je("/PageMode /"+Ve),Wt.publish("putCatalog"),Je(">>"),Je("endobj")},wn=fe.__private__.putTrailer=function(){Je("trailer"),Je("<<"),Je("/Size "+(Vt+1)),Je("/Root "+Vt+" 0 R"),Je("/Info "+(Vt-1)+" 0 R"),Je("/ID [ <"+xe+"> <"+xe+"> ]"),Je(">>")},kn=fe.__private__.putHeader=function(){Je("%PDF-"+_e),Je("%ºß¬à")},In=fe.__private__.putXRef=function(){var te=1,ne="0000000000";for(Je("xref"),Je("0 "+(Vt+1)),Je("0000000000 65535 f "),te=1;te<=Vt;te++)"function"==typeof Gt[te]?Je((ne+Gt[te]()).slice(-10)+" 00000 n "):void 0!==Gt[te]?Je((ne+Gt[te]).slice(-10)+" 00000 n "):Je("0000000000 00000 n ")},Tn=fe.__private__.buildDocument=function(){Ye=!1,Qe=Vt=0,Ke=[],Gt=[],Yt=[],tn=Jt(),nn=Jt(),Wt.publish("buildDocument"),kn(),pn(),function(){Wt.publish("putAdditionalObjects");for(var te=0;te<Yt.length;te++){var ne=Yt[te];ot(ne.objId,!0),Je(ne.content),Je("endobj")}Wt.publish("postPutAdditionalObjects")}(),gt(),bn(),yn();var te=Qe;return In(),wn(),Je("startxref"),Je(""+te),Je("%%EOF"),Ye=!0,Ke.join("\n")},Dn=fe.__private__.getBlob=function(te){return new Blob([pt(te)],{type:"application/pdf"})},xn=fe.output=fe.__private__.output=(($e=function(te,ne){ne=ne||{};var ie=Tn();switch("string"==typeof ne?ne={filename:ne}:ne.filename=ne.filename||"generated.pdf",te){case void 0:return ie;case"save":fe.save(ne.filename);break;case"arraybuffer":return pt(ie);case"blob":return Dn(ie);case"bloburi":case"bloburl":if(void 0!==re.URL&&"function"==typeof re.URL.createObjectURL)return re.URL&&re.URL.createObjectURL(Dn(ie))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+ne.filename+";base64,"+btoa(ie);case"dataurlnewwindow":var le='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring")+'"></iframe></body></html>',ce=re.open();if(null!==ce&&ce.document.write(le),ce||"undefined"==typeof safari)return ce;case"datauri":case"dataurl":return re.document.location.href="data:application/pdf;filename="+ne.filename+";base64,"+btoa(ie);default:return null}}).foo=function(){try{return $e.apply(this,arguments)}catch(ie){var te=ie.stack||"";~te.indexOf(" at ")&&(te=te.split(" at ")[1]);var ne="Error in function "+te.split("\n")[0].split("<")[0]+": "+ie.message;if(!re.console)throw new Error(ne);re.console.error(ne,ie),re.alert&&alert(ne)}},($e.foo.bar=$e).foo),Bt=function(te){return!0===Array.isArray(Kt)&&-1<Kt.indexOf(te)};switch(ne){case"pt":He=1;break;case"mm":He=72/25.4;break;case"cm":He=72/2.54;break;case"in":He=72;break;case"px":He=1==Bt("px_scaling")?.75:96/72;break;case"pc":case"em":He=12;break;case"ex":He=6;break;default:throw new Error("Invalid unit: "+ne)}Le(),Me();var En=fe.__private__.getPageInfo=function(te){if(isNaN(te)||te%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:$t[te].objId,pageNumber:te,pageContext:$t[te]}},Rn=fe.__private__.getPageInfoByObjId=function(te){for(var ne in $t)if($t[ne].objId===te)break;if(isNaN(te)||te%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");return En(ne)},On=fe.__private__.getCurrentPageInfo=function(){return{objId:$t[Pe].objId,pageNumber:Pe,pageContext:$t[Pe]}};fe.addPage=function(){return bt.apply(this,arguments),this},fe.setPage=function(){return xt.apply(this,arguments),this},fe.insertPage=function(te){return this.addPage(),this.movePage(Pe,te),this},fe.movePage=function(te,ne){if(ne<te){for(var ie=Xe[te],re=$t[te],le=te;ne<le;le--)Xe[le]=Xe[le-1],$t[le]=$t[le-1];Xe[ne]=ie,$t[ne]=re,this.setPage(ne)}else if(te<ne){for(ie=Xe[te],re=$t[te],le=te;le<ne;le++)Xe[le]=Xe[le+1],$t[le]=$t[le+1];Xe[ne]=ie,$t[ne]=re,this.setPage(ne)}return this},fe.deletePage=function(){return function(te){0<te&&te<=Ut&&(Xe.splice(te,1),--Ut<Pe&&(Pe=Ut),this.setPage(Pe))}.apply(this,arguments),this},fe.__private__.text=fe.text=function(te,ne,ie,re){var le;"number"!=typeof te||"number"!=typeof ne||"string"!=typeof ie&&!Array.isArray(ie)||(le=ie,ie=ne,ne=te,te=le);var ce=arguments[3],de=arguments[4],ue=arguments[5];if("object"===se(ce)&&null!==ce||("string"==typeof de&&(ue=de,de=null),"string"==typeof ce&&(ue=ce,ce=null),"number"==typeof ce&&(de=ce,ce=null),re={flags:ce,angle:de,align:ue}),(ce=ce||{}).noBOM=ce.noBOM||!0,ce.autoencode=ce.autoencode||!0,isNaN(ne)||isNaN(ie)||null==te)throw new Error("Invalid arguments passed to jsPDF.text");if(0===te.length)return be;var me,fe="",_e="number"==typeof re.lineHeightFactor?re.lineHeightFactor:jn,be=re.scope||this;function f(te){for(var ne,ie=te.concat(),re=[],le=ie.length;le--;)"string"==typeof(ne=ie.shift())?re.push(ne):Array.isArray(te)&&1===ne.length?re.push(ne[0]):re.push([ne[0],ne[1],ne[2]]);return re}function p(te,ne){var ie;if("string"==typeof te)ie=ne(te)[0];else if(Array.isArray(te)){for(var re,le,ce=te.concat(),de=[],ue=ce.length;ue--;)"string"==typeof(re=ce.shift())?de.push(ne(re)[0]):Array.isArray(re)&&"string"===re[0]&&(le=ne(re[0],re[1],re[2]),de.push([le[0],le[1],le[2]]));ie=de}return ie}var Ce=!1,ye=!0;if("string"==typeof te)Ce=!0;else if(Array.isArray(te)){for(var we,xe=te.concat(),Ee=[],Me=xe.length;Me--;)("string"!=typeof(we=xe.shift())||Array.isArray(we)&&"string"!=typeof we[0])&&(ye=!1);Ce=ye}if(!1===Ce)throw new Error('Type of text must be string or Array. "'+te+'" is not recognized.');var Ne=zt[ze].encoding;"WinAnsiEncoding"!==Ne&&"StandardEncoding"!==Ne||(te=p(te,(function(te,ne,ie){return[(le=te,le=le.split("\t").join(Array(re.TabLen||9).join(" ")),hn(le,ce)),ne,ie];var le}))),"string"==typeof te&&(te=te.match(/[\r?\n]/)?te.split(/\r\n|\r|\n/g):[te]);var Re=vt/be.internal.scaleFactor,Le=Re*(jn-1);switch(re.baseline){case"bottom":ie-=Le;break;case"top":ie+=Re-Le;break;case"hanging":ie+=Re-2*Le;break;case"middle":ie+=Re/2-Le}0<(dt=re.maxWidth||0)&&("string"==typeof te?te=be.splitTextToSize(te,dt):"[object Array]"===Object.prototype.toString.call(te)&&(te=be.splitTextToSize(te.join(" "),dt)));var Oe={text:te,x:ne,y:ie,options:re,mutex:{pdfEscape:hn,activeFontKey:ze,fonts:zt,activeFontSize:vt}};Wt.publish("preProcessText",Oe),te=Oe.text,de=(re=Oe.options).angle;var Pe=be.internal.scaleFactor,Fe=[];if(de){de*=Math.PI/180;var je=Math.cos(de),Ve=Math.sin(de);Fe=[ke(je),ke(Ve),ke(-1*Ve),ke(je)]}void 0!==(Qe=re.charSpace)&&(fe+=Se(Qe*Pe)+" Tc\n"),re.lang;var Ge=-1,He=void 0!==re.renderingMode?re.renderingMode:re.stroke,$e=be.internal.getCurrentPageInfo().pageContext;switch(He){case 0:case!1:case"fill":Ge=0;break;case 1:case!0:case"stroke":Ge=1;break;case 2:case"fillThenStroke":Ge=2;break;case 3:case"invisible":Ge=3;break;case 4:case"fillAndAddForClipping":Ge=4;break;case 5:case"strokeAndAddPathForClipping":Ge=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ge=6;break;case 7:case"addToPathForClipping":Ge=7}var qe=void 0!==$e.usedRenderingMode?$e.usedRenderingMode:-1;-1!==Ge?fe+=Ge+" Tr\n":-1!==qe&&(fe+="0 Tr\n"),-1!==Ge&&($e.usedRenderingMode=Ge),ue=re.align||"left";var Ye=vt*_e,Xe=be.internal.pageSize.getWidth(),Ke=(Pe=be.internal.scaleFactor,zt[ze]),Qe=re.charSpace||pi,dt=re.maxWidth||0,pt=(ce={},[]);if("[object Array]"===Object.prototype.toString.call(te)){var Ct,It;Ee=f(te),"left"!==ue&&(It=Ee.map((function(te){return be.getStringUnitWidth(te,{font:Ke,charSpace:Qe,fontSize:vt})*vt/Pe}))),Math.max.apply(Math,It);var Mt,Nt=0;if("right"===ue){ne-=It[0],te=[];var Rt=0;for(Me=Ee.length;Rt<Me;Rt++)It[Rt],Ct=0===Rt?(Mt=$n(ne),qn(ie)):(Mt=(Nt-It[Rt])*Pe,-Ye),te.push([Ee[Rt],Mt,Ct]),Nt=It[Rt]}else if("center"===ue)for(ne-=It[0]/2,te=[],Rt=0,Me=Ee.length;Rt<Me;Rt++)It[Rt],Ct=0===Rt?(Mt=$n(ne),qn(ie)):(Mt=(Nt-It[Rt])/2*Pe,-Ye),te.push([Ee[Rt],Mt,Ct]),Nt=It[Rt];else if("left"===ue)for(te=[],Rt=0,Me=Ee.length;Rt<Me;Rt++)Ct=0===Rt?qn(ie):-Ye,Mt=0===Rt?$n(ne):0,te.push(Ee[Rt]);else{if("justify"!==ue)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(te=[],dt=0!==dt?dt:Xe,Rt=0,Me=Ee.length;Rt<Me;Rt++)Ct=0===Rt?qn(ie):-Ye,Mt=0===Rt?$n(ne):0,Rt<Me-1&&pt.push(((dt-It[Rt])/(Ee[Rt].split(" ").length-1)*Pe).toFixed(2)),te.push([Ee[Rt],Mt,Ct])}}!0===("boolean"==typeof re.R2L?re.R2L:Dt)&&(te=p(te,(function(te,ne,ie){return[te.split("").reverse().join(""),ne,ie]}))),Oe={text:te,x:ne,y:ie,options:re,mutex:{pdfEscape:hn,activeFontKey:ze,fonts:zt,activeFontSize:vt}},Wt.publish("postProcessText",Oe),te=Oe.text,me=Oe.mutex.isHex,Ee=f(te),te=[];var Ot,Vt,Gt,Ht=0,Ut=(Me=Ee.length,"");for(Rt=0;Rt<Me;Rt++)Ut="",Array.isArray(Ee[Rt])?(Ot=parseFloat(Ee[Rt][1]),Vt=parseFloat(Ee[Rt][2]),Gt=(me?"<":"(")+Ee[Rt][0]+(me?">":")"),Ht=1):(Ot=$n(ne),Vt=qn(ie),Gt=(me?"<":"(")+Ee[Rt]+(me?">":")")),void 0!==pt&&void 0!==pt[Rt]&&(Ut=pt[Rt]+" Tw\n"),0!==Fe.length&&0===Rt?te.push(Ut+Fe.join(" ")+" "+Ot.toFixed(2)+" "+Vt.toFixed(2)+" Tm\n"+Gt):1===Ht||0===Ht&&0===Rt?te.push(Ut+Ot.toFixed(2)+" "+Vt.toFixed(2)+" Td\n"+Gt):te.push(Ut+Gt);te=0===Ht?te.join(" Tj\nT* "):te.join(" Tj\n"),te+=" Tj\n";var $t="BT\n/"+ze+" "+vt+" Tf\n"+(vt*_e).toFixed(2)+" TL\n"+Jn+"\n";return $t+=fe,$t+=te,Je($t+="ET"),ge[ze]=!0,be},fe.__private__.lstext=fe.lstext=function(te,ne,ie,re){return console.warn("jsPDF.lstext is deprecated"),this.text(te,ne,ie,{charSpace:re})},fe.__private__.clip=fe.clip=function(te){Je("evenodd"===te?"W*":"W"),Je("n")},fe.__private__.clip_fixed=fe.clip_fixed=function(te){console.log("clip_fixed is deprecated"),fe.clip(te)};var Pn=fe.__private__.isValidStyle=function(te){var ne=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(te)&&(ne=!0),ne},Fn=fe.__private__.getStyle=function(te){var ne="S";return"F"===te?ne="f":"FD"===te||"DF"===te?ne="B":"f"!==te&&"f*"!==te&&"B"!==te&&"B*"!==te||(ne=te),ne};fe.__private__.line=fe.line=function(te,ne,ie,re){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[ie-te,re-ne]],te,ne)},fe.__private__.lines=fe.lines=function(te,ne,ie,re,le,ce){var de,ue,me,ge,fe,_e,be,Ce,ye,we,ke,xe;if("number"==typeof te&&(xe=ie,ie=ne,ne=te,te=xe),re=re||[1,1],ce=ce||!1,isNaN(ne)||isNaN(ie)||!Array.isArray(te)||!Array.isArray(re)||!Pn(le)||"boolean"!=typeof ce)throw new Error("Invalid arguments passed to jsPDF.lines");for(Je(Se($n(ne))+" "+Se(qn(ie))+" m "),de=re[0],ue=re[1],ge=te.length,we=ne,ke=ie,me=0;me<ge;me++)2===(fe=te[me]).length?(we=fe[0]*de+we,ke=fe[1]*ue+ke,Je(Se($n(we))+" "+Se(qn(ke))+" l")):(_e=fe[0]*de+we,be=fe[1]*ue+ke,Ce=fe[2]*de+we,ye=fe[3]*ue+ke,we=fe[4]*de+we,ke=fe[5]*ue+ke,Je(Se($n(_e))+" "+Se(qn(be))+" "+Se($n(Ce))+" "+Se(qn(ye))+" "+Se($n(we))+" "+Se(qn(ke))+" c"));return ce&&Je(" h"),null!==le&&Je(Fn(le)),this},fe.__private__.rect=fe.rect=function(te,ne,ie,re,le){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re)||!Pn(le))throw new Error("Invalid arguments passed to jsPDF.rect");return Je([ke($n(te)),ke(qn(ne)),ke(ie*He),ke(-re*He),"re"].join(" ")),null!==le&&Je(Fn(le)),this},fe.__private__.triangle=fe.triangle=function(te,ne,ie,re,le,ce,de){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re)||isNaN(le)||isNaN(ce)||!Pn(de))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ie-te,re-ne],[le-ie,ce-re],[te-le,ne-ce]],te,ne,[1,1],de,!0),this},fe.__private__.roundedRect=fe.roundedRect=function(te,ne,ie,re,le,ce,de){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re)||isNaN(le)||isNaN(ce)||!Pn(de))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ue=4/3*(Math.SQRT2-1);return this.lines([[ie-2*le,0],[le*ue,0,le,ce-ce*ue,le,ce],[0,re-2*ce],[0,ce*ue,-le*ue,ce,-le,ce],[2*le-ie,0],[-le*ue,0,-le,-ce*ue,-le,-ce],[0,2*ce-re],[0,-ce*ue,le*ue,-ce,le,-ce]],te+le,ne,[1,1],de),this},fe.__private__.ellipse=fe.ellipse=function(te,ne,ie,re,le){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re)||!Pn(le))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ce=4/3*(Math.SQRT2-1)*ie,de=4/3*(Math.SQRT2-1)*re;return Je([ke($n(te+ie)),ke(qn(ne)),"m",ke($n(te+ie)),ke(qn(ne-de)),ke($n(te+ce)),ke(qn(ne-re)),ke($n(te)),ke(qn(ne-re)),"c"].join(" ")),Je([ke($n(te-ce)),ke(qn(ne-re)),ke($n(te-ie)),ke(qn(ne-de)),ke($n(te-ie)),ke(qn(ne)),"c"].join(" ")),Je([ke($n(te-ie)),ke(qn(ne+de)),ke($n(te-ce)),ke(qn(ne+re)),ke($n(te)),ke(qn(ne+re)),"c"].join(" ")),Je([ke($n(te+ce)),ke(qn(ne+re)),ke($n(te+ie)),ke(qn(ne+de)),ke($n(te+ie)),ke(qn(ne)),"c"].join(" ")),null!==le&&Je(Fn(le)),this},fe.__private__.circle=fe.circle=function(te,ne,ie,re){if(isNaN(te)||isNaN(ne)||isNaN(ie)||!Pn(re))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(te,ne,ie,ie,re)},fe.setFont=function(te,ne){return ze=Lt(te,ne,{disableWarning:!1}),this},fe.setFontStyle=fe.setFontType=function(te){return ze=Lt(void 0,te),this},fe.__private__.getFontList=fe.getFontList=function(){var te,ne,ie,re={};for(te in Ht)if(Ht.hasOwnProperty(te))for(ne in re[te]=ie=[],Ht[te])Ht[te].hasOwnProperty(ne)&&ie.push(ne);return re},fe.addFont=function(te,ne,ie,re){yt.call(this,te,ne,ie,re=re||"Identity-H")};var jn,Vn=ce.lineWidth||.200025,Gn=fe.__private__.setLineWidth=fe.setLineWidth=function(te){return Je((te*He).toFixed(2)+" w"),this},zn=(fe.__private__.setLineDash=ae.API.setLineDash=function(te,ne){if(te=te||[],ne=ne||0,isNaN(ne)||!Array.isArray(te))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return te=te.map((function(te){return(te*He).toFixed(3)})).join(" "),ne=parseFloat((ne*He).toFixed(3)),Je("["+te+"] "+ne+" d"),this},fe.__private__.getLineHeight=fe.getLineHeight=function(){return vt*jn}),Hn=(zn=fe.__private__.getLineHeight=fe.getLineHeight=function(){return vt*jn},fe.__private__.setLineHeightFactor=fe.setLineHeightFactor=function(te){return"number"==typeof(te=te||1.15)&&(jn=te),this}),Un=fe.__private__.getLineHeightFactor=fe.getLineHeightFactor=function(){return jn};Hn(ce.lineHeight);var $n=fe.__private__.getHorizontalCoordinate=function(te){return te*He},qn=fe.__private__.getVerticalCoordinate=function(te){return $t[Pe].mediaBox.topRightY-$t[Pe].mediaBox.bottomLeftY-te*He},Yn=fe.__private__.getHorizontalCoordinateString=function(te){return ke(te*He)},Wn=fe.__private__.getVerticalCoordinateString=function(te){return ke($t[Pe].mediaBox.topRightY-$t[Pe].mediaBox.bottomLeftY-te*He)},Kn=ce.strokeColor||"0 G",Qn=(fe.__private__.getStrokeColor=fe.getDrawColor=function(){return rn(Kn)},fe.__private__.setStrokeColor=fe.setDrawColor=function(te,ne,ie,re){return Kn=an({ch1:te,ch2:ne,ch3:ie,ch4:re,pdfColorType:"draw",precision:2}),Je(Kn),this},ce.fillColor||"0 g"),Jn=(fe.__private__.getFillColor=fe.getFillColor=function(){return rn(Qn)},fe.__private__.setFillColor=fe.setFillColor=function(te,ne,ie,re){return Qn=an({ch1:te,ch2:ne,ch3:ie,ch4:re,pdfColorType:"fill",precision:2}),Je(Qn),this},ce.textColor||"0 g"),Zn=fe.__private__.getTextColor=fe.getTextColor=function(){return rn(Jn)},pi=(fe.__private__.setTextColor=fe.setTextColor=function(te,ne,ie,re){return Jn=an({ch1:te,ch2:ne,ch3:ie,ch4:re,pdfColorType:"text",precision:3}),this},ce.charSpace||0),gi=fe.__private__.getCharSpace=fe.getCharSpace=function(){return pi},fi=(fe.__private__.setCharSpace=fe.setCharSpace=function(te){if(isNaN(te))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return pi=te,this},0);fe.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},fe.__private__.setLineCap=fe.setLineCap=function(te){var ne=fe.CapJoinStyles[te];if(void 0===ne)throw new Error("Line cap style of '"+te+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Je((fi=ne)+" J"),this};var yi,ki=0;for(var Ri in fe.__private__.setLineJoin=fe.setLineJoin=function(te){var ne=fe.CapJoinStyles[te];if(void 0===ne)throw new Error("Line join style of '"+te+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Je((ki=ne)+" j"),this},fe.__private__.setMiterLimit=fe.setMiterLimit=function(te){if(te=te||0,isNaN(te))throw new Error("Invalid argument passed to jsPDF.setMiterLimit");return yi=parseFloat(ke(te*He)),Je(yi+" M"),this},fe.save=function(te,ne){if(te=te||"generated.pdf",(ne=ne||{}).returnPromise=ne.returnPromise||!1,!1!==ne.returnPromise)return new Promise((function(ne,ie){try{var le=Ln(Dn(Tn()),te);"function"==typeof Ln.unload&&re.setTimeout&&setTimeout(Ln.unload,911),ne(le)}catch(ne){ie(ne.message)}}));Ln(Dn(Tn()),te),"function"==typeof Ln.unload&&re.setTimeout&&setTimeout(Ln.unload,911)},ae.API)ae.API.hasOwnProperty(Ri)&&("events"===Ri&&ae.API.events.length?function(te,ne){var ie,re,le;for(le=ne.length-1;-1!==le;le--)ie=ne[le][0],re=ne[le][1],te.subscribe.apply(te,[ie].concat("function"==typeof re?[re]:re))}(Wt,ae.API.events):fe[Ri]=ae.API[Ri]);return fe.internal={pdfEscape:hn,getStyle:Fn,getFont:function(){return zt[Lt.apply(fe,arguments)]},getFontSize:It,getCharSpace:gi,getTextColor:Zn,getLineHeight:zn,getLineHeightFactor:Un,write:dt,getHorizontalCoordinate:$n,getVerticalCoordinate:qn,getCoordinateString:Yn,getVerticalCoordinateString:Wn,collections:{},newObject:Qt,newAdditionalObject:Zt,newObjectDeferred:Jt,newObjectDeferredBegin:ot,getFilters:sn,putStream:dn,events:Wt,scaleFactor:He,pageSize:{getWidth:function(){return($t[Pe].mediaBox.topRightX-$t[Pe].mediaBox.bottomLeftX)/He},setWidth:function(te){$t[Pe].mediaBox.topRightX=te*He+$t[Pe].mediaBox.bottomLeftX},getHeight:function(){return($t[Pe].mediaBox.topRightY-$t[Pe].mediaBox.bottomLeftY)/He},setHeight:function(te){$t[Pe].mediaBox.topRightY=te*He+$t[Pe].mediaBox.bottomLeftY}},output:xn,getNumberOfPages:_n,pages:Xe,out:Je,f2:ke,f3:Se,getPageInfo:En,getPageInfoByObjId:Rn,getCurrentPageInfo:On,getPDFVersion:be,hasHotfix:Bt},Object.defineProperty(fe.internal.pageSize,"width",{get:function(){return($t[Pe].mediaBox.topRightX-$t[Pe].mediaBox.bottomLeftX)/He},set:function(te){$t[Pe].mediaBox.topRightX=te*He+$t[Pe].mediaBox.bottomLeftX},enumerable:!0,configurable:!0}),Object.defineProperty(fe.internal.pageSize,"height",{get:function(){return($t[Pe].mediaBox.topRightY-$t[Pe].mediaBox.bottomLeftY)/He},set:function(te){$t[Pe].mediaBox.topRightY=te*He+$t[Pe].mediaBox.bottomLeftY},enumerable:!0,configurable:!0}),function(te){for(var ne=0,ie=Ct.length;ne<ie;ne++){var re=yt(te[ne][0],te[ne][1],te[ne][2],Ct[ne][3],!0);ge[re]=!0;var le=te[ne][0].split("-");mt(re,le[0],le[1]||"")}Wt.publish("addFonts",{fonts:zt,dictionary:Ht})}(Ct),ze="F1",bt(ie,te),Wt.publish("initialized"),fe}return ae.API={events:[]},ae.version="1.5.3",void 0!==(le=function(){return ae}.call(ne,ie,ne,te))&&(te.exports=le),ae}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());(function(te,ne){var ie,re=1,S=function(te){return te.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},y=function(te){return te.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},_=function(te){if(isNaN(te))throw new Error("Invalid argument passed to jsPDF.f2");return te.toFixed(2)},s=function(te){if(isNaN(te))throw new Error("Invalid argument passed to jsPDF.f2");return te.toFixed(5)};te.__acroform__={};var r=function(te,ne){te.prototype=Object.create(ne.prototype),te.prototype.constructor=te},v=function(te){return te*re},w=function(te){return te/re},l=function(te){var ne=new j,ie=ye.internal.getHeight(te)||0,re=ye.internal.getWidth(te)||0;return ne.BBox=[0,0,Number(_(re)),Number(_(ie))],ne},le=te.__acroform__.setBit=function(te,ne){if(te=te||0,ne=ne||0,isNaN(te)||isNaN(ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return te|1<<ne},ce=te.__acroform__.clearBit=function(te,ne){if(te=te||0,ne=ne||0,isNaN(te)||isNaN(ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return te&~(1<<ne)},de=te.__acroform__.getBit=function(te,ne){if(isNaN(te)||isNaN(ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(te&1<<ne)?0:1},ue=te.__acroform__.getBitForPdf=function(te,ne){if(isNaN(te)||isNaN(ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return de(te,ne-1)},me=te.__acroform__.setBitForPdf=function(te,ne){if(isNaN(te)||isNaN(ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return le(te,ne-1)},ge=te.__acroform__.clearBitForPdf=function(te,ne,ie){if(isNaN(te)||isNaN(ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return ce(te,ne-1)},fe=te.__acroform__.calculateCoordinates=function(te){var ne=this.internal.getHorizontalCoordinate,ie=this.internal.getVerticalCoordinate,re=te[0],le=te[1],ce=te[2],de=te[3],ue={};return ue.lowerLeft_X=ne(re)||0,ue.lowerLeft_Y=ie(le+de)||0,ue.upperRight_X=ne(re+ce)||0,ue.upperRight_Y=ie(le)||0,[Number(_(ue.lowerLeft_X)),Number(_(ue.lowerLeft_Y)),Number(_(ue.upperRight_X)),Number(_(ue.upperRight_Y))]},f=function(te){if(te.appearanceStreamContent)return te.appearanceStreamContent;if(te.V||te.DV){var ne=[],re=te.V||te.DV,le=h(te,re),ce=ie.internal.getFont(te.fontName,te.fontStyle).id;ne.push("/Tx BMC"),ne.push("q"),ne.push("BT"),ne.push(ie.__private__.encodeColorString(te.color)),ne.push("/"+ce+" "+_(le.fontSize)+" Tf"),ne.push("1 0 0 1 0 0 Tm"),ne.push(le.text),ne.push("ET"),ne.push("Q"),ne.push("EMC");var de=new l(te);return de.stream=ne.join("\n"),de}},h=function(te,ne){var re=te.maxFontSize||12,le=(te.fontName,{text:"",fontSize:""}),ce=(ne=")"==(ne="("==ne.substr(0,1)?ne.substr(1):ne).substr(ne.length-1)?ne.substr(0,ne.length-1):ne).split(" "),de=(ie.__private__.encodeColorString(te.color),re),ue=ye.internal.getHeight(te)||0;ue=ue<0?-ue:ue;var me=ye.internal.getWidth(te)||0;me=me<0?-me:me;var l=function(ne,ie,re){if(ne+1<ce.length){var le=ie+" "+ce[ne+1];return F(le,te,re).width<=me-4}return!1};de++;e:for(;;){ne="";var ge=F("3",te,--de).height,fe=te.multiline?ue-de:(ue-ge)/2,_e=-2,be=fe+=2,Ce=0,we=0,ke=0;if(de<=0){ne="(...) Tj\n",ne+="% Width of Text: "+F(ne,te,de=12).width+", FieldWidth:"+me+"\n";break}ke=F(ce[0]+" ",te,de).width;var Se="",xe=0;for(var Ee in ce)if(ce.hasOwnProperty(Ee)){Se=" "==(Se+=ce[Ee]+" ").substr(Se.length-1)?Se.substr(0,Se.length-1):Se;var Me=parseInt(Ee);ke=F(Se+" ",te,de).width;var Ne=l(Me,Se,de),Re=Ee>=ce.length-1;if(Ne&&!Re){Se+=" ";continue}if(Ne||Re){if(Re)we=Me;else if(te.multiline&&ue<(ge+2)*(xe+2)+2)continue e}else{if(!te.multiline)continue e;if(ue<(ge+2)*(xe+2)+2)continue e;we=Me}for(var Le="",Oe=Ce;Oe<=we;Oe++)Le+=ce[Oe]+" ";switch(Le=" "==Le.substr(Le.length-1)?Le.substr(0,Le.length-1):Le,ke=F(Le,te,de).width,te.textAlign){case"right":_e=me-ke-2;break;case"center":_e=(me-ke)/2;break;default:_e=2}ne+=_(_e)+" "+_(be)+" Td\n",ne+="("+S(Le)+") Tj\n",ne+=-_(_e)+" 0 Td\n",be=-(de+2),ke=0,Ce=we+1,xe++,Se=""}break}return le.text=ne,le.fontSize=de,le},F=function(te,ne,re){var le=ie.internal.getFont(ne.fontName,ne.fontStyle),ce=ie.getStringUnitWidth(te,{font:le,fontSize:parseFloat(re),charSpace:0})*parseFloat(re);return{height:ie.getStringUnitWidth("3",{font:le,fontSize:parseFloat(re),charSpace:0})*parseFloat(re)*1.5,width:ce}},_e={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},p=function(){ie.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var te=ie.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ne in te)if(te.hasOwnProperty(ne)){var re=te[ne];re.objId=void 0,re.hasAnnotation&&d.call(ie,re)}},d=function(te){var ne={type:"reference",object:te};void 0===ie.internal.getPageInfo(te.page).pageContext.annotations.find((function(te){return te.type===ne.type&&te.object===ne.object}))&&ie.internal.getPageInfo(te.page).pageContext.annotations.push(ne)},g=function(){if(void 0===ie.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");ie.internal.write("/AcroForm "+ie.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},m=function(){ie.internal.events.unsubscribe(ie.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete ie.internal.acroformPlugin.acroFormDictionaryRoot._eventID,ie.internal.acroformPlugin.printedOut=!0},L=function(te){var ne=!te;for(var re in te||(ie.internal.newObjectDeferredBegin(ie.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ie.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),te=te||ie.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(te.hasOwnProperty(re)){var le=te[re],ce=[],de=le.Rect;if(le.Rect&&(le.Rect=fe.call(this,le.Rect)),ie.internal.newObjectDeferredBegin(le.objId,!0),le.DA=ye.createDefaultAppearanceStream(le),"object"===se(le)&&"function"==typeof le.getKeyValueListForStream&&(ce=le.getKeyValueListForStream()),le.Rect=de,le.hasAppearanceStream&&!le.appearanceStreamContent){var ue=f.call(this,le);ce.push({key:"AP",value:"<</N "+ue+">>"}),ie.internal.acroformPlugin.xForms.push(ue)}if(le.appearanceStreamContent){var me="";for(var ge in le.appearanceStreamContent)if(le.appearanceStreamContent.hasOwnProperty(ge)){var _e=le.appearanceStreamContent[ge];if(me+="/"+ge+" ",me+="<<",1<=Object.keys(_e).length||Array.isArray(_e))for(var re in _e){var be;_e.hasOwnProperty(re)&&("function"==typeof(be=_e[re])&&(be=be.call(this,le)),me+="/"+re+" "+be+" ",0<=ie.internal.acroformPlugin.xForms.indexOf(be)||ie.internal.acroformPlugin.xForms.push(be))}else"function"==typeof(be=_e)&&(be=be.call(this,le)),me+="/"+re+" "+be,0<=ie.internal.acroformPlugin.xForms.indexOf(be)||ie.internal.acroformPlugin.xForms.push(be);me+=">>"}ce.push({key:"AP",value:"<<\n"+me+">>"})}ie.internal.putStream({additionalKeyValues:ce}),ie.internal.out("endobj")}ne&&P.call(this,ie.internal.acroformPlugin.xForms)},P=function(te){for(var ne in te)if(te.hasOwnProperty(ne)){var re=ne,le=te[ne];ie.internal.newObjectDeferredBegin(le&&le.objId,!0),"object"===se(le)&&"function"==typeof le.putStream&&le.putStream(),delete te[re]}},k=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(ie=this,Ce.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(_e)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");re=ie.internal.scaleFactor,ie.internal.acroformPlugin.acroFormDictionaryRoot=new E,ie.internal.acroformPlugin.acroFormDictionaryRoot._eventID=ie.internal.events.subscribe("postPutResources",m),ie.internal.events.subscribe("buildDocument",p),ie.internal.events.subscribe("putCatalog",g),ie.internal.events.subscribe("postPutPages",L),ie.internal.acroformPlugin.isInitialized=!0}},be=te.__acroform__.arrayToPdfArray=function(te){if(Array.isArray(te)){for(var ne="[",ie=0;ie<te.length;ie++)switch(0!==ie&&(ne+=" "),se(te[ie])){case"boolean":case"number":case"object":ne+=te[ie].toString();break;case"string":"/"!==te[ie].substr(0,1)?ne+="("+S(te[ie].toString())+")":ne+=te[ie].toString()}return ne+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},C=function(te){return(te=te||"").toString(),"("+S(te)+")"},B=function(){var te;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(te||(te=ie.internal.newObjectDeferred()),!te)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return te},set:function(ne){te=ne}})};B.prototype.toString=function(){return this.objId+" 0 R"},B.prototype.putStream=function(){var te=this.getKeyValueListForStream();ie.internal.putStream({data:this.stream,additionalKeyValues:te}),ie.internal.out("endobj")},B.prototype.getKeyValueListForStream=function(){return function(te){var ne=[],ie=Object.getOwnPropertyNames(te).filter((function(te){return"content"!=te&&"appearanceStreamContent"!=te&&"_"!=te.substring(0,1)}));for(var re in ie)if(!1===Object.getOwnPropertyDescriptor(te,ie[re]).configurable){var le=ie[re],ce=te[le];ce&&(Array.isArray(ce)?ne.push({key:le,value:be(ce)}):ce instanceof B?ne.push({key:le,value:ce.objId+" 0 R"}):"function"!=typeof ce&&ne.push({key:le,value:ce}))}return ne}(this)};var j=function(){B.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var te,ne=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return ne},set:function(te){ne=te}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(ne){te=ne.trim()},get:function(){return te||null}})};r(j,B);var E=function(){B.call(this);var te,ne=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<ne.length?ne:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return ne}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(te)return"("+te+")"},set:function(ne){te=ne}})};r(E,B);var Ce=function t(){B.call(this);var te=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return te},set:function(ne){if(isNaN(ne))throw new Error('Invalid value "'+ne+'" for attribute F supplied.');te=ne}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(te,3))},set:function(ne){!0===Boolean(ne)?this.F=me(te,3):this.F=ge(te,3)}});var ne=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return ne},set:function(te){if(isNaN(te))throw new Error('Invalid value "'+te+'" for attribute Ff supplied.');ne=te}});var ie=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==ie.length)return ie},set:function(te){ie=void 0!==te?te:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!ie||isNaN(ie[0])?0:w(ie[0])},set:function(te){ie[0]=v(te)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!ie||isNaN(ie[1])?0:w(ie[1])},set:function(te){ie[1]=v(te)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!ie||isNaN(ie[2])?0:w(ie[2])},set:function(te){ie[2]=v(te)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!ie||isNaN(ie[3])?0:w(ie[3])},set:function(te){ie[3]=v(te)}});var re="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return re},set:function(te){switch(te){case"/Btn":case"/Tx":case"/Ch":case"/Sig":re=te;break;default:throw new Error('Invalid value "'+te+'" for attribute FT supplied.')}}});var le=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!le||le.length<1){if(this instanceof H)return;le="FieldObject"+t.FieldNum++}return"("+S(le)+")"},set:function(te){le=te.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return le},set:function(te){le=te}});var ce="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ce},set:function(te){ce=te}});var de="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return de},set:function(te){de=te}});var fe=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return w(fe)},set:function(te){fe=v(te)}});var _e=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return w(_e)},set:function(te){_e=v(te)}});var be="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return be},set:function(te){be=te}});var Ce="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Ce||this instanceof H||this instanceof V))return C(Ce)},set:function(te){te=te.toString(),Ce=te}});var ye=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(ye)return this instanceof D==0?C(ye):ye},set:function(te){te=te.toString(),ye=this instanceof D==0?"("===te.substr(0,1)?y(te.substr(1,te.length-2)):y(te):te}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof D==1?y(ye.substr(1,ye.length-1)):ye},set:function(te){te=te.toString(),ye=this instanceof D==1?"/"+te:te}});var we=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(we)return this instanceof D==0?C(we):we},set:function(te){te=te.toString(),we=this instanceof D==0?"("===te.substr(0,1)?y(te.substr(1,te.length-2)):y(te):te}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof D==1?y(we.substr(1,we.length-1)):we},set:function(te){te=te.toString(),we=this instanceof D==1?"/"+te:te}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var ke,Se=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return Se},set:function(te){te=Boolean(te),Se=te}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(ke)return ke},set:function(te){ke=te}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,1))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,1):this.Ff=ge(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,2))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,2):this.Ff=ge(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,3))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,3):this.Ff=ge(this.Ff,3)}});var xe=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==xe)return xe},set:function(te){if(-1===[0,1,2].indexOf(te))throw new Error('Invalid value "'+te+'" for attribute Q supplied.');xe=te}}),Object.defineProperty(this,"textAlign",{get:function(){var te="left";switch(xe){case 0:default:te="left";break;case 1:te="center";break;case 2:te="right"}return te},configurable:!0,enumerable:!0,set:function(te){switch(te){case"right":case 2:xe=2;break;case"center":case 1:xe=1;break;default:xe=0}}})};r(Ce,B);var O=function(){Ce.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var te=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return te},set:function(ne){te=ne}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return te},set:function(ne){te=ne}});var ne=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return be(ne)},set:function(te){var ie,re;re=[],"string"==typeof(ie=te)&&(re=function(te,ne,ie){ie||(ie=1);for(var re,le=[];re=ne.exec(te);)le.push(re[ie]);return le}(ie,/\((.*?)\)/g)),ne=re}}),this.getOptions=function(){return ne},this.setOptions=function(te){ne=te,this.sort&&ne.sort()},this.addOption=function(te){te=(te=te||"").toString(),ne.push(te),this.sort&&ne.sort()},this.removeOption=function(te,ie){for(ie=ie||!1,te=(te=te||"").toString();-1!==ne.indexOf(te)&&(ne.splice(ne.indexOf(te),1),!1!==ie););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,18))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,18):this.Ff=ge(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,19))},set:function(te){!0===this.combo&&(!0===Boolean(te)?this.Ff=me(this.Ff,19):this.Ff=ge(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,20))},set:function(te){!0===Boolean(te)?(this.Ff=me(this.Ff,20),ne.sort()):this.Ff=ge(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,22))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,22):this.Ff=ge(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,23))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,23):this.Ff=ge(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,27))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,27):this.Ff=ge(this.Ff,27)}}),this.hasAppearanceStream=!1};r(O,Ce);var q=function(){O.call(this),this.fontName="helvetica",this.combo=!1};r(q,O);var T=function(){q.call(this),this.combo=!0};r(T,q);var R=function(){T.call(this),this.edit=!0};r(R,T);var D=function(){Ce.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,15))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,15):this.Ff=ge(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,16))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,16):this.Ff=ge(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,17))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,17):this.Ff=ge(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,26))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,26):this.Ff=ge(this.Ff,26)}});var te,ne={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(0!==Object.keys(ne).length){var te,ie=[];for(te in ie.push("<<"),ne)ie.push("/"+te+" ("+ne[te]+")");return ie.push(">>"),ie.join("\n")}},set:function(te){"object"===se(te)&&(ne=te)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return ne.CA||""},set:function(te){"string"==typeof te&&(ne.CA=te)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return te},set:function(ne){te=ne}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return te.substr(1,te.length-1)},set:function(ne){te="/"+ne}})};r(D,Ce);var U=function(){D.call(this),this.pushButton=!0};r(U,D);var z=function(){D.call(this),this.radio=!0,this.pushButton=!1;var te=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return te},set:function(ne){te=void 0!==ne?ne:[]}})};r(z,D);var H=function(){var te,ne;Ce.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return te},set:function(ne){te=ne}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return ne},set:function(te){ne=te}});var ie,re={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var te,ne=[];for(te in ne.push("<<"),re)ne.push("/"+te+" ("+re[te]+")");return ne.push(">>"),ne.join("\n")},set:function(te){"object"===se(te)&&(re=te)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return re.CA||""},set:function(te){"string"==typeof te&&(re.CA=te)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return ie},set:function(te){ie=te}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return ie.substr(1,ie.length-1)},set:function(te){ie="/"+te}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=ye.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};r(H,Ce),z.prototype.setAppearance=function(te){if(!("createAppearanceStream"in te)||!("getCA"in te))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var ne in this.Kids)if(this.Kids.hasOwnProperty(ne)){var ie=this.Kids[ne];ie.appearanceStreamContent=te.createAppearanceStream(ie.optionName),ie.caption=te.getCA()}},z.prototype.createOption=function(te){this.Kids.length;var ne=new H;return ne.Parent=this,ne.optionName=te,this.Kids.push(ne),we.call(this,ne),ne};var W=function(){D.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ye.CheckBox.createAppearanceStream()};r(W,D);var V=function(){Ce.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,13))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,13):this.Ff=ge(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,21))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,21):this.Ff=ge(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,23))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,23):this.Ff=ge(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,24))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,24):this.Ff=ge(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,25))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,25):this.Ff=ge(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,26))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,26):this.Ff=ge(this.Ff,26)}});var te=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return te},set:function(ne){te=ne}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return te},set:function(ne){Number.isInteger(ne)&&(te=ne)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};r(V,Ce);var G=function(){V.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ue(this.Ff,14))},set:function(te){!0===Boolean(te)?this.Ff=me(this.Ff,14):this.Ff=ge(this.Ff,14)}}),this.password=!0};r(G,V);var ye={CheckBox:{createAppearanceStream:function(){return{N:{On:ye.CheckBox.YesNormal},D:{On:ye.CheckBox.YesPushDown,Off:ye.CheckBox.OffPushDown}}},YesPushDown:function(te){var ne=l(te),re=[],le=ie.internal.getFont(te.fontName,te.fontStyle).id,ce=ie.__private__.encodeColorString(te.color),de=h(te,te.caption);return re.push("0.749023 g"),re.push("0 0 "+_(ye.internal.getWidth(te))+" "+_(ye.internal.getHeight(te))+" re"),re.push("f"),re.push("BMC"),re.push("q"),re.push("0 0 1 rg"),re.push("/"+le+" "+_(de.fontSize)+" Tf "+ce),re.push("BT"),re.push(de.text),re.push("ET"),re.push("Q"),re.push("EMC"),ne.stream=re.join("\n"),ne},YesNormal:function(te){var ne=l(te),re=ie.internal.getFont(te.fontName,te.fontStyle).id,le=ie.__private__.encodeColorString(te.color),ce=[],de=ye.internal.getHeight(te),ue=ye.internal.getWidth(te),me=h(te,te.caption);return ce.push("1 g"),ce.push("0 0 "+_(ue)+" "+_(de)+" re"),ce.push("f"),ce.push("q"),ce.push("0 0 1 rg"),ce.push("0 0 "+_(ue-1)+" "+_(de-1)+" re"),ce.push("W"),ce.push("n"),ce.push("0 g"),ce.push("BT"),ce.push("/"+re+" "+_(me.fontSize)+" Tf "+le),ce.push(me.text),ce.push("ET"),ce.push("Q"),ne.stream=ce.join("\n"),ne},OffPushDown:function(te){var ne=l(te),ie=[];return ie.push("0.749023 g"),ie.push("0 0 "+_(ye.internal.getWidth(te))+" "+_(ye.internal.getHeight(te))+" re"),ie.push("f"),ne.stream=ie.join("\n"),ne}},RadioButton:{Circle:{createAppearanceStream:function(te){var ne={D:{Off:ye.RadioButton.Circle.OffPushDown},N:{}};return ne.N[te]=ye.RadioButton.Circle.YesNormal,ne.D[te]=ye.RadioButton.Circle.YesPushDown,ne},getCA:function(){return"l"},YesNormal:function(te){var ne=l(te),ie=[],re=ye.internal.getWidth(te)<=ye.internal.getHeight(te)?ye.internal.getWidth(te)/4:ye.internal.getHeight(te)/4;re=Number((.9*re).toFixed(5));var le=ye.internal.Bezier_C,ce=Number((re*le).toFixed(5));return ie.push("q"),ie.push("1 0 0 1 "+s(ye.internal.getWidth(te)/2)+" "+s(ye.internal.getHeight(te)/2)+" cm"),ie.push(re+" 0 m"),ie.push(re+" "+ce+" "+ce+" "+re+" 0 "+re+" c"),ie.push("-"+ce+" "+re+" -"+re+" "+ce+" -"+re+" 0 c"),ie.push("-"+re+" -"+ce+" -"+ce+" -"+re+" 0 -"+re+" c"),ie.push(ce+" -"+re+" "+re+" -"+ce+" "+re+" 0 c"),ie.push("f"),ie.push("Q"),ne.stream=ie.join("\n"),ne},YesPushDown:function(te){var ne=l(te),ie=[],re=ye.internal.getWidth(te)<=ye.internal.getHeight(te)?ye.internal.getWidth(te)/4:ye.internal.getHeight(te)/4,le=(re=Number((.9*re).toFixed(5)),Number((2*re).toFixed(5))),ce=Number((le*ye.internal.Bezier_C).toFixed(5)),de=Number((re*ye.internal.Bezier_C).toFixed(5));return ie.push("0.749023 g"),ie.push("q"),ie.push("1 0 0 1 "+s(ye.internal.getWidth(te)/2)+" "+s(ye.internal.getHeight(te)/2)+" cm"),ie.push(le+" 0 m"),ie.push(le+" "+ce+" "+ce+" "+le+" 0 "+le+" c"),ie.push("-"+ce+" "+le+" -"+le+" "+ce+" -"+le+" 0 c"),ie.push("-"+le+" -"+ce+" -"+ce+" -"+le+" 0 -"+le+" c"),ie.push(ce+" -"+le+" "+le+" -"+ce+" "+le+" 0 c"),ie.push("f"),ie.push("Q"),ie.push("0 g"),ie.push("q"),ie.push("1 0 0 1 "+s(ye.internal.getWidth(te)/2)+" "+s(ye.internal.getHeight(te)/2)+" cm"),ie.push(re+" 0 m"),ie.push(re+" "+de+" "+de+" "+re+" 0 "+re+" c"),ie.push("-"+de+" "+re+" -"+re+" "+de+" -"+re+" 0 c"),ie.push("-"+re+" -"+de+" -"+de+" -"+re+" 0 -"+re+" c"),ie.push(de+" -"+re+" "+re+" -"+de+" "+re+" 0 c"),ie.push("f"),ie.push("Q"),ne.stream=ie.join("\n"),ne},OffPushDown:function(te){var ne=l(te),ie=[],re=ye.internal.getWidth(te)<=ye.internal.getHeight(te)?ye.internal.getWidth(te)/4:ye.internal.getHeight(te)/4,le=(re=Number((.9*re).toFixed(5)),Number((2*re).toFixed(5))),ce=Number((le*ye.internal.Bezier_C).toFixed(5));return ie.push("0.749023 g"),ie.push("q"),ie.push("1 0 0 1 "+s(ye.internal.getWidth(te)/2)+" "+s(ye.internal.getHeight(te)/2)+" cm"),ie.push(le+" 0 m"),ie.push(le+" "+ce+" "+ce+" "+le+" 0 "+le+" c"),ie.push("-"+ce+" "+le+" -"+le+" "+ce+" -"+le+" 0 c"),ie.push("-"+le+" -"+ce+" -"+ce+" -"+le+" 0 -"+le+" c"),ie.push(ce+" -"+le+" "+le+" -"+ce+" "+le+" 0 c"),ie.push("f"),ie.push("Q"),ne.stream=ie.join("\n"),ne}},Cross:{createAppearanceStream:function(te){var ne={D:{Off:ye.RadioButton.Cross.OffPushDown},N:{}};return ne.N[te]=ye.RadioButton.Cross.YesNormal,ne.D[te]=ye.RadioButton.Cross.YesPushDown,ne},getCA:function(){return"8"},YesNormal:function(te){var ne=l(te),ie=[],re=ye.internal.calculateCross(te);return ie.push("q"),ie.push("1 1 "+_(ye.internal.getWidth(te)-2)+" "+_(ye.internal.getHeight(te)-2)+" re"),ie.push("W"),ie.push("n"),ie.push(_(re.x1.x)+" "+_(re.x1.y)+" m"),ie.push(_(re.x2.x)+" "+_(re.x2.y)+" l"),ie.push(_(re.x4.x)+" "+_(re.x4.y)+" m"),ie.push(_(re.x3.x)+" "+_(re.x3.y)+" l"),ie.push("s"),ie.push("Q"),ne.stream=ie.join("\n"),ne},YesPushDown:function(te){var ne=l(te),ie=ye.internal.calculateCross(te),re=[];return re.push("0.749023 g"),re.push("0 0 "+_(ye.internal.getWidth(te))+" "+_(ye.internal.getHeight(te))+" re"),re.push("f"),re.push("q"),re.push("1 1 "+_(ye.internal.getWidth(te)-2)+" "+_(ye.internal.getHeight(te)-2)+" re"),re.push("W"),re.push("n"),re.push(_(ie.x1.x)+" "+_(ie.x1.y)+" m"),re.push(_(ie.x2.x)+" "+_(ie.x2.y)+" l"),re.push(_(ie.x4.x)+" "+_(ie.x4.y)+" m"),re.push(_(ie.x3.x)+" "+_(ie.x3.y)+" l"),re.push("s"),re.push("Q"),ne.stream=re.join("\n"),ne},OffPushDown:function(te){var ne=l(te),ie=[];return ie.push("0.749023 g"),ie.push("0 0 "+_(ye.internal.getWidth(te))+" "+_(ye.internal.getHeight(te))+" re"),ie.push("f"),ne.stream=ie.join("\n"),ne}}},createDefaultAppearanceStream:function(te){var ne=ie.internal.getFont(te.fontName,te.fontStyle).id,re=ie.__private__.encodeColorString(te.color);return"/"+ne+" "+te.fontSize+" Tf "+re}};ye.internal={Bezier_C:.551915024494,calculateCross:function(te){var ne=ye.internal.getWidth(te),ie=ye.internal.getHeight(te),re=Math.min(ne,ie);return{x1:{x:(ne-re)/2,y:(ie-re)/2+re},x2:{x:(ne-re)/2+re,y:(ie-re)/2},x3:{x:(ne-re)/2,y:(ie-re)/2},x4:{x:(ne-re)/2+re,y:(ie-re)/2+re}}}},ye.internal.getWidth=function(te){var ne=0;return"object"===se(te)&&(ne=v(te.Rect[2])),ne},ye.internal.getHeight=function(te){var ne=0;return"object"===se(te)&&(ne=v(te.Rect[3])),ne};var we=te.addField=function(te){if(k.call(this),!(te instanceof Ce))throw new Error("Invalid argument passed to jsPDF.addField.");return function(te){ie.internal.acroformPlugin.printedOut&&(ie.internal.acroformPlugin.printedOut=!1,ie.internal.acroformPlugin.acroFormDictionaryRoot=null),ie.internal.acroformPlugin.acroFormDictionaryRoot||k.call(ie),ie.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(te)}.call(this,te),te.page=ie.internal.getCurrentPageInfo().pageNumber,this};te.addButton=function(te){if(te instanceof D==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return we.call(this,te)},te.addTextField=function(te){if(te instanceof V==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return we.call(this,te)},te.addChoiceField=function(te){if(te instanceof O==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return we.call(this,te)},"object"==se(ne)&&void 0===ne.ChoiceField&&void 0===ne.ListBox&&void 0===ne.ComboBox&&void 0===ne.EditBox&&void 0===ne.Button&&void 0===ne.PushButton&&void 0===ne.RadioButton&&void 0===ne.CheckBox&&void 0===ne.TextField&&void 0===ne.PasswordField?(ne.ChoiceField=O,ne.ListBox=q,ne.ComboBox=T,ne.EditBox=R,ne.Button=D,ne.PushButton=U,ne.RadioButton=z,ne.CheckBox=W,ne.TextField=V,ne.PasswordField=G,ne.AcroForm={Appearance:ye}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),te.AcroFormChoiceField=O,te.AcroFormListBox=q,te.AcroFormComboBox=T,te.AcroFormEditBox=R,te.AcroFormButton=D,te.AcroFormPushButton=U,te.AcroFormRadioButton=z,te.AcroFormCheckBox=W,te.AcroFormTextField=V,te.AcroFormPasswordField=G,te.AcroFormAppearance=ye,te.AcroForm={ChoiceField:O,ListBox:q,ComboBox:T,EditBox:R,Button:D,PushButton:U,RadioButton:z,CheckBox:W,TextField:V,PasswordField:G,Appearance:ye}})((window.tmp=dn).API,"undefined"!=typeof window&&window||"undefined"!=typeof global&&global),function(te){var ne="addImage_",ie={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},re=te.getImageFileTypeByImageData=function(ne,re){var le,ce;re=re||"UNKNOWN";var de,ue,me,ge="UNKNOWN";for(me in te.isArrayBufferView(ne)&&(ne=te.arrayBufferToBinaryString(ne)),ie)for(de=ie[me],le=0;le<de.length;le+=1){for(ue=!0,ce=0;ce<de[le].length;ce+=1)if(void 0!==de[le][ce]&&de[le][ce]!==ne.charCodeAt(ce)){ue=!1;break}if(!0===ue){ge=me;break}}return"UNKNOWN"===ge&&"UNKNOWN"!==re&&(console.warn('FileType of Image not recognized. Processing image as "'+re+'".'),ge=re),ge},le=function t(te){for(var ne=this.internal.newObject(),ie=this.internal.write,re=this.internal.putStream,le=(0,this.internal.getFilters)();-1!==le.indexOf("FlateEncode");)le.splice(le.indexOf("FlateEncode"),1);te.n=ne;var ce=[];if(ce.push({key:"Type",value:"/XObject"}),ce.push({key:"Subtype",value:"/Image"}),ce.push({key:"Width",value:te.w}),ce.push({key:"Height",value:te.h}),te.cs===this.color_spaces.INDEXED?ce.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(te.pal.length/3-1)+" "+("smask"in te?ne+2:ne+1)+" 0 R]"}):(ce.push({key:"ColorSpace",value:"/"+te.cs}),te.cs===this.color_spaces.DEVICE_CMYK&&ce.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ce.push({key:"BitsPerComponent",value:te.bpc}),"dp"in te&&ce.push({key:"DecodeParms",value:"<<"+te.dp+">>"}),"trns"in te&&te.trns.constructor==Array){for(var de="",ue=0,me=te.trns.length;ue<me;ue++)de+=te.trns[ue]+" "+te.trns[ue]+" ";ce.push({key:"Mask",value:"["+de+"]"})}"smask"in te&&ce.push({key:"SMask",value:ne+1+" 0 R"});var ge=void 0!==te.f?["/"+te.f]:void 0;if(re({data:te.data,additionalKeyValues:ce,alreadyAppliedFilters:ge}),ie("endobj"),"smask"in te){var fe="/Predictor "+te.p+" /Colors 1 /BitsPerComponent "+te.bpc+" /Columns "+te.w,_e={w:te.w,h:te.h,cs:"DeviceGray",bpc:te.bpc,dp:fe,data:te.smask};"f"in te&&(_e.f=te.f),t.call(this,_e)}te.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),re({data:this.arrayBufferToBinaryString(new Uint8Array(te.pal))}),ie("endobj"))},L=function(){var te=this.internal.collections[ne+"images"];for(var ie in te)le.call(this,te[ie])},A=function(){var te,ie=this.internal.collections[ne+"images"],re=this.internal.write;for(var le in ie)re("/I"+(te=ie[le]).i,te.n,"0","R")},S=function(ne){return"function"==typeof te["process"+ne.toUpperCase()]},_=function(te){return"object"===se(te)&&1===te.nodeType},F=function(ne,ie){if("IMG"===ne.nodeName&&ne.hasAttribute("src")){var re=""+ne.getAttribute("src");if(0===re.indexOf("data:image/"))return unescape(re);var le=te.loadFile(re);if(void 0!==le)return btoa(le)}if("CANVAS"===ne.nodeName){var ce=ne;return ne.toDataURL("image/jpeg",1)}(ce=document.createElement("canvas")).width=ne.clientWidth||ne.width,ce.height=ne.clientHeight||ne.height;var de=ce.getContext("2d");if(!de)throw"addImage requires canvas to be supported by browser.";return de.drawImage(ne,0,0,ce.width,ce.height),ce.toDataURL("png"==(""+ie).toLowerCase()?"image/png":"image/jpeg")},P=function(te,ne){var ie;if(ne)for(var re in ne)if(te===ne[re].alias){ie=ne[re];break}return ie};te.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},te.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},te.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},te.sHashCode=function(te){var ne,ie=0;if(0===(te=te||"").length)return ie;for(ne=0;ne<te.length;ne++)ie=(ie<<5)-ie+te.charCodeAt(ne),ie|=0;return ie},te.isString=function(te){return"string"==typeof te},te.validateStringAsBase64=function(te){(te=te||"").toString().trim();var ne=!0;return 0===te.length&&(ne=!1),te.length%4!=0&&(ne=!1),!1===/^[A-Za-z0-9+\/]+$/.test(te.substr(0,te.length-2))&&(ne=!1),!1===/^[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==$/.test(te.substr(-2))&&(ne=!1),ne},te.extractInfoFromBase64DataURI=function(te){return/^data:([\w]+?\/([\w]+?));\S*;*base64,(.+)$/g.exec(te)},te.extractImageFromDataUrl=function(te){var ne=(te=te||"").split("base64,"),ie=null;if(2===ne.length){var re=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(ne[0]);Array.isArray(re)&&(ie={mimeType:re[1],charset:re[2],data:ne[1]})}return ie},te.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},te.isArrayBuffer=function(te){return!!this.supportsArrayBuffer()&&te instanceof ArrayBuffer},te.isArrayBufferView=function(te){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(te instanceof Int8Array||te instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&te instanceof Uint8ClampedArray||te instanceof Int16Array||te instanceof Uint16Array||te instanceof Int32Array||te instanceof Uint32Array||te instanceof Float32Array||te instanceof Float64Array)},te.binaryStringToUint8Array=function(te){for(var ne=te.length,ie=new Uint8Array(ne),re=0;re<ne;re++)ie[re]=te.charCodeAt(re);return ie},te.arrayBufferToBinaryString=function(te){if("function"==typeof atob)return atob(this.arrayBufferToBase64(te))},te.arrayBufferToBase64=function(te){for(var ne,ie="",re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",le=new Uint8Array(te),ce=le.byteLength,de=ce%3,ue=ce-de,me=0;me<ue;me+=3)ie+=re[(16515072&(ne=le[me]<<16|le[me+1]<<8|le[me+2]))>>18]+re[(258048&ne)>>12]+re[(4032&ne)>>6]+re[63&ne];return 1==de?ie+=re[(252&(ne=le[ue]))>>2]+re[(3&ne)<<4]+"==":2==de&&(ie+=re[(64512&(ne=le[ue]<<8|le[ue+1]))>>10]+re[(1008&ne)>>4]+re[(15&ne)<<2]+"="),ie},te.createImageInfo=function(te,ne,ie,re,le,ce,de,ue,me,ge,fe,_e,be){var Ce={alias:ue,w:ne,h:ie,cs:re,bpc:le,i:de,data:te};return ce&&(Ce.f=ce),me&&(Ce.dp=me),ge&&(Ce.trns=ge),fe&&(Ce.pal=fe),_e&&(Ce.smask=_e),be&&(Ce.p=be),Ce},te.addImage=function(ie,re,le,ce,de,ue,me,ge,fe){var _e="";if("string"!=typeof re){var be=ue;ue=de,de=ce,ce=le,le=re,re=be}if("object"===se(ie)&&!_(ie)&&"imageData"in ie){var Ce=ie;ie=Ce.imageData,re=Ce.format||re||"UNKNOWN",le=Ce.x||le||0,ce=Ce.y||ce||0,de=Ce.w||de,ue=Ce.h||ue,me=Ce.alias||me,ge=Ce.compression||ge,fe=Ce.rotation||Ce.angle||fe}var ye=this.internal.getFilters();if(void 0===ge&&-1!==ye.indexOf("FlateEncode")&&(ge="SLOW"),"string"==typeof ie&&(ie=unescape(ie)),isNaN(le)||isNaN(ce))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var we,ke,Se,xe,Ee,Me,Ne,Re=function(){var te=this.internal.collections[ne+"images"];return te||(this.internal.collections[ne+"images"]=te={},this.internal.events.subscribe("putResources",L),this.internal.events.subscribe("putXobjectDict",A)),te}.call(this);if(!((we=P(ie,Re))||(_(ie)&&(ie=F(ie,re)),(null==(Ne=me)||0===Ne.length)&&(me="string"==typeof(Me=ie)?te.sHashCode(Me):te.isArrayBufferView(Me)?te.sHashCode(te.arrayBufferToBinaryString(Me)):null),we=P(me,Re)))){if(this.isString(ie)&&(""!==(_e=this.convertStringToImageData(ie))||void 0!==(_e=te.loadFile(ie)))&&(ie=_e),re=this.getImageFileTypeByImageData(ie,re),!S(re))throw new Error("addImage does not support files of type '"+re+"', please ensure that a plugin for '"+re+"' support is added.");if(this.supportsArrayBuffer()&&(ie instanceof Uint8Array||(ke=ie,ie=this.binaryStringToUint8Array(ie))),!(we=this["process"+re.toUpperCase()](ie,(Ee=0,(xe=Re)&&(Ee=Object.keys?Object.keys(xe).length:function(te){var ne=0;for(var ie in te)te.hasOwnProperty(ie)&&ne++;return ne}(xe)),Ee),me,((Se=ge)&&"string"==typeof Se&&(Se=Se.toUpperCase()),Se in te.image_compression?Se:te.image_compression.NONE),ke)))throw new Error("An unknown error occurred whilst processing the image")}return function(te,ne,ie,re,le,ce,de,ue){var me=function(te,ne,ie){return te||ne||(ne=te=-96),te<0&&(te=-1*ie.w*72/te/this.internal.scaleFactor),ne<0&&(ne=-1*ie.h*72/ne/this.internal.scaleFactor),0===te&&(te=ne*ie.w/ie.h),0===ne&&(ne=te*ie.h/ie.w),[te,ne]}.call(this,ie,re,le),ge=this.internal.getCoordinateString,fe=this.internal.getVerticalCoordinateString;if(ie=me[0],re=me[1],de[ce]=le,ue){ue*=Math.PI/180;var _e=Math.cos(ue),be=Math.sin(ue),p=function(te){return te.toFixed(4)},Ce=[p(_e),p(be),p(-1*be),p(_e),0,0,"cm"]}this.internal.write("q"),ue?(this.internal.write([1,"0","0",1,ge(te),fe(ne+re),"cm"].join(" ")),this.internal.write(Ce.join(" ")),this.internal.write([ge(ie),"0","0",ge(re),"0","0","cm"].join(" "))):this.internal.write([ge(ie),"0","0",ge(re),ge(te),fe(ne+re),"cm"].join(" ")),this.internal.write("/I"+le.i+" Do"),this.internal.write("Q")}.call(this,le,ce,de,ue,we,we.i,Re,fe),this},te.convertStringToImageData=function(ne){var ie,re="";if(this.isString(ne)){var le;ie=null!==(le=this.extractImageFromDataUrl(ne))?le.data:ne;try{re=atob(ie)}catch(ne){throw te.validateStringAsBase64(ie)?new Error("atob-Error in jsPDF.convertStringToImageData "+ne.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return re};var u=function(te,ne){return te.subarray(ne,ne+5)};te.processJPEG=function(te,ne,ie,le,ce,de){var ue,me=this.decode.DCT_DECODE;if(!this.isString(te)&&!this.isArrayBuffer(te)&&!this.isArrayBufferView(te))return null;if(this.isString(te)&&(ue=function(te){var ne;if("JPEG"!==re(te))throw new Error("getJpegSize requires a binary string jpeg file");for(var ie=256*te.charCodeAt(4)+te.charCodeAt(5),le=4,ce=te.length;le<ce;){if(le+=ie,255!==te.charCodeAt(le))throw new Error("getJpegSize could not find the size of the image");if(192===te.charCodeAt(le+1)||193===te.charCodeAt(le+1)||194===te.charCodeAt(le+1)||195===te.charCodeAt(le+1)||196===te.charCodeAt(le+1)||197===te.charCodeAt(le+1)||198===te.charCodeAt(le+1)||199===te.charCodeAt(le+1))return ne=256*te.charCodeAt(le+5)+te.charCodeAt(le+6),[256*te.charCodeAt(le+7)+te.charCodeAt(le+8),ne,te.charCodeAt(le+9)];le+=2,ie=256*te.charCodeAt(le)+te.charCodeAt(le+1)}}(te)),this.isArrayBuffer(te)&&(te=new Uint8Array(te)),this.isArrayBufferView(te)&&(ue=function(te){if(65496!=(te[0]<<8|te[1]))throw new Error("Supplied data is not a JPEG");for(var ne,ie=te.length,re=(te[4]<<8)+te[5],le=4;le<ie;){if(re=((ne=u(te,le+=re))[2]<<8)+ne[3],(192===ne[1]||194===ne[1])&&255===ne[0]&&7<re)return{width:((ne=u(te,le+5))[2]<<8)+ne[3],height:(ne[0]<<8)+ne[1],numcomponents:ne[4]};le+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(te),te=ce||this.arrayBufferToBinaryString(te)),void 0===de)switch(ue.numcomponents){case 1:de=this.color_spaces.DEVICE_GRAY;break;case 4:de=this.color_spaces.DEVICE_CMYK;break;default:de=this.color_spaces.DEVICE_RGB}return this.createImageInfo(te,ue.width,ue.height,de,8,me,ne,ie)},te.processJPG=function(){return this.processJPEG.apply(this,arguments)},te.getImageProperties=function(ne){var ie,re,le="";if(_(ne)&&(ne=F(ne)),this.isString(ne)&&(""!==(le=this.convertStringToImageData(ne))||void 0!==(le=te.loadFile(ne)))&&(ne=le),re=this.getImageFileTypeByImageData(ne),!S(re))throw new Error("addImage does not support files of type '"+re+"', please ensure that a plugin for '"+re+"' support is added.");if(this.supportsArrayBuffer()&&(ne instanceof Uint8Array||(ne=this.binaryStringToUint8Array(ne))),!(ie=this["process"+re.toUpperCase()](ne)))throw new Error("An unknown error occurred whilst processing the image");return{fileType:re,width:ie.w,height:ie.h,colorSpace:ie.cs,compressionMode:ie.f,bitsPerComponent:ie.bpc}}}(dn.API),re=dn.API,dn.API.events.push(["addPage",function(te){this.internal.getPageInfo(te.pageNumber).pageContext.annotations=[]}]),re.events.push(["putPage",function(te){for(var ne=this.internal.getPageInfoByObjId(te.objId),ie=te.pageContext.annotations,r=function(te){if(void 0!==te&&""!=te)return!0},re=!1,le=0;le<ie.length&&!re;le++)switch((ue=ie[le]).type){case"link":if(r(ue.options.url)||r(ue.options.pageNumber)){re=!0;break}case"reference":case"text":case"freetext":re=!0}if(0!=re){this.internal.write("/Annots ["),this.internal.pageSize.height;var ce=this.internal.getCoordinateString,de=this.internal.getVerticalCoordinateString;for(le=0;le<ie.length;le++){var ue;switch((ue=ie[le]).type){case"reference":this.internal.write(" "+ue.object.objId+" 0 R ");break;case"text":var me=this.internal.newAdditionalObject(),ge=this.internal.newAdditionalObject(),fe=ue.title||"Note";we="<</Type /Annot /Subtype /Text "+(be="/Rect ["+ce(ue.bounds.x)+" "+de(ue.bounds.y+ue.bounds.h)+" "+ce(ue.bounds.x+ue.bounds.w)+" "+de(ue.bounds.y)+"] ")+"/Contents ("+ue.contents+")",we+=" /Popup "+ge.objId+" 0 R",we+=" /P "+ne.objId+" 0 R",we+=" /T ("+fe+") >>",me.content=we;var _e=me.objId+" 0 R";we="<</Type /Annot /Subtype /Popup "+(be="/Rect ["+ce(ue.bounds.x+30)+" "+de(ue.bounds.y+ue.bounds.h)+" "+ce(ue.bounds.x+ue.bounds.w+30)+" "+de(ue.bounds.y)+"] ")+" /Parent "+_e,ue.open&&(we+=" /Open true"),we+=" >>",ge.content=we,this.internal.write(me.objId,"0 R",ge.objId,"0 R");break;case"freetext":var be="/Rect ["+ce(ue.bounds.x)+" "+de(ue.bounds.y)+" "+ce(ue.bounds.x+ue.bounds.w)+" "+de(ue.bounds.y+ue.bounds.h)+"] ",Ce=ue.color||"#000000";we="<</Type /Annot /Subtype /FreeText "+be+"/Contents ("+ue.contents+")",we+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Ce+")",we+=" /Border [0 0 0]",we+=" >>",this.internal.write(we);break;case"link":if(ue.options.name){var ye=this.annotations._nameMap[ue.options.name];ue.options.pageNumber=ye.page,ue.options.top=ye.y}else ue.options.top||(ue.options.top=0);be="/Rect ["+ce(ue.x)+" "+de(ue.y)+" "+ce(ue.x+ue.w)+" "+de(ue.y+ue.h)+"] ";var we="";if(ue.options.url)we="<</Type /Annot /Subtype /Link "+be+"/Border [0 0 0] /A <</S /URI /URI ("+ue.options.url+") >>";else if(ue.options.pageNumber)switch(we="<</Type /Annot /Subtype /Link "+be+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(ue.options.pageNumber).objId+" 0 R",ue.options.magFactor=ue.options.magFactor||"XYZ",ue.options.magFactor){case"Fit":we+=" /Fit]";break;case"FitH":we+=" /FitH "+ue.options.top+"]";break;case"FitV":ue.options.left=ue.options.left||0,we+=" /FitV "+ue.options.left+"]";break;default:var ke=de(ue.options.top);ue.options.left=ue.options.left||0,void 0===ue.options.zoom&&(ue.options.zoom=0),we+=" /XYZ "+ue.options.left+" "+ke+" "+ue.options.zoom+"]"}""!=we&&(we+=" >>",this.internal.write(we))}}this.internal.write("]")}}]),re.createAnnotation=function(te){var ne=this.internal.getCurrentPageInfo();switch(te.type){case"link":this.link(te.bounds.x,te.bounds.y,te.bounds.w,te.bounds.h,te);break;case"text":case"freetext":ne.pageContext.annotations.push(te)}},re.link=function(te,ne,ie,re,le){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:te,y:ne,w:ie,h:re,options:le,type:"link"})},re.textWithLink=function(te,ne,ie,re){var le=this.getTextWidth(te),ce=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(te,ne,ie),ie+=.2*ce,this.link(ne,ie-ce,le,ce,re),le},re.getTextWidth=function(te){var ne=this.internal.getFontSize();return this.getStringUnitWidth(te)*ne/this.internal.scaleFactor},function(te){var ne={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},ie={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},re={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},le=[1570,1571,1573,1575];te.__arabicParser__={};var ce=te.__arabicParser__.isInArabicSubstitutionA=function(te){return void 0!==ne[te.charCodeAt(0)]},de=te.__arabicParser__.isArabicLetter=function(te){return"string"==typeof te&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(te)},ue=te.__arabicParser__.isArabicEndLetter=function(te){return de(te)&&ce(te)&&ne[te.charCodeAt(0)].length<=2},me=te.__arabicParser__.isArabicAlfLetter=function(te){return de(te)&&0<=le.indexOf(te.charCodeAt(0))},ge=(te.__arabicParser__.arabicLetterHasIsolatedForm=function(te){return de(te)&&ce(te)&&1<=ne[te.charCodeAt(0)].length},te.__arabicParser__.arabicLetterHasFinalForm=function(te){return de(te)&&ce(te)&&2<=ne[te.charCodeAt(0)].length}),fe=(te.__arabicParser__.arabicLetterHasInitialForm=function(te){return de(te)&&ce(te)&&3<=ne[te.charCodeAt(0)].length},te.__arabicParser__.arabicLetterHasMedialForm=function(te){return de(te)&&ce(te)&&4==ne[te.charCodeAt(0)].length}),_e=te.__arabicParser__.resolveLigatures=function(te){var ne=0,re=ie,le=0,ce="",de=0;for(ne=0;ne<te.length;ne+=1)void 0!==re[te.charCodeAt(ne)]?(de++,"number"==typeof(re=re[te.charCodeAt(ne)])&&(le=-1!==(le=be(te.charAt(ne),te.charAt(ne-de),te.charAt(ne+1)))?le:0,ce+=String.fromCharCode(re),re=ie,de=0),ne===te.length-1&&(re=ie,ce+=te.charAt(ne-(de-1)),ne-=de-1,de=0)):(re=ie,ce+=te.charAt(ne-de),ne-=de,de=0);return ce},be=(te.__arabicParser__.isArabicDiacritic=function(te){return void 0!==te&&void 0!==re[te.charCodeAt(0)]},te.__arabicParser__.getCorrectForm=function(te,ne,ie){return de(te)?!1===ce(te)?-1:!ge(te)||!de(ne)&&!de(ie)||!de(ie)&&ue(ne)||ue(te)&&!de(ne)||ue(te)&&me(ne)||ue(te)&&ue(ne)?0:fe(te)&&de(ne)&&!ue(ne)&&de(ie)&&ge(ie)?3:ue(te)||!de(ie)?1:2:-1}),Ce=te.__arabicParser__.processArabic=te.processArabic=function(te){var ie=0,re=0,le=0,ce="",ue="",me="",ge=(te=te||"").split("\\s+"),fe=[];for(ie=0;ie<ge.length;ie+=1){for(fe.push(""),re=0;re<ge[ie].length;re+=1)ce=ge[ie][re],ue=ge[ie][re-1],me=ge[ie][re+1],de(ce)?(le=be(ce,ue,me),fe[ie]+=-1!==le?String.fromCharCode(ne[ce.charCodeAt(0)][le]):ce):fe[ie]+=ce;fe[ie]=_e(fe[ie])}return fe.join(" ")};te.events.push(["preProcessText",function(te){var ne=te.text,ie=(te.x,te.y,te.options||{}),re=(te.mutex,ie.lang,[]);if("[object Array]"===Object.prototype.toString.call(ne)){var le=0;for(re=[],le=0;le<ne.length;le+=1)"[object Array]"===Object.prototype.toString.call(ne[le])?re.push([Ce(ne[le][0]),ne[le][1],ne[le][2]]):re.push([Ce(ne[le])]);te.text=re}else te.text=Ce(ne)}])}(dn.API),dn.API.autoPrint=function(te){var ne;return"javascript"===((te=te||{}).variant=te.variant||"non-conform",te.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){ne=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+ne+" 0 R")}))),this},ce=dn.API,(de=function(){var te=void 0;Object.defineProperty(this,"pdf",{get:function(){return te},set:function(ne){te=ne}});var ne=150;Object.defineProperty(this,"width",{get:function(){return ne},set:function(te){ne=isNaN(te)||!1===Number.isInteger(te)||te<0?150:te,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=ne+1)}});var ie=300;Object.defineProperty(this,"height",{get:function(){return ie},set:function(te){ie=isNaN(te)||!1===Number.isInteger(te)||te<0?300:te,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ie+1)}});var re=[];Object.defineProperty(this,"childNodes",{get:function(){return re},set:function(te){re=te}});var le={};Object.defineProperty(this,"style",{get:function(){return le},set:function(te){le=te}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(te,ne){var ie;if("2d"!==(te=te||"2d"))return null;for(ie in ne)this.pdf.context2d.hasOwnProperty(ie)&&(this.pdf.context2d[ie]=ne[ie]);return(this.pdf.context2d._canvas=this).pdf.context2d},de.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},ce.events.push(["initialized",function(){this.canvas=new de,this.canvas.pdf=this}]),ue=dn.API,ge={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},fe=1,_e=function(te,ne,ie,re,le){ge={x:te,y:ne,w:ie,h:re,ln:le}},be=function(){return ge},Ce={left:0,top:0,bottom:0},ue.setHeaderFunction=function(te){me=te},ue.getTextDimensions=function(te,ne){var ie=this.table_font_size||this.internal.getFontSize(),re=(this.internal.getFont().fontStyle,(ne=ne||{}).scaleFactor||this.internal.scaleFactor),le=0,ce=0,de=0;if("string"==typeof te)0!=(le=this.getStringUnitWidth(te)*ie)&&(ce=1);else{if("[object Array]"!==Object.prototype.toString.call(te))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var ue=0;ue<te.length;ue++)le<(de=this.getStringUnitWidth(te[ue])*ie)&&(le=de);0!==le&&(ce=te.length)}return{w:le/=re,h:Math.max((ce*ie*this.getLineHeightFactor()-ie*(this.getLineHeightFactor()-1))/re,0)}},ue.cellAddPage=function(){var te=this.margins||Ce;this.addPage(),_e(te.left,te.top,void 0,void 0),fe+=1},ue.cellInitialize=function(){ge={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},fe=1},ue.cell=function(te,ne,ie,re,le,ce,de){var ue=be(),me=!1;if(void 0!==ue.ln)if(ue.ln===ce)te=ue.x+ue.w,ne=ue.y;else{var ge=this.margins||Ce;ue.y+ue.h+re+13>=this.internal.pageSize.getHeight()-ge.bottom&&(this.cellAddPage(),me=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(ce,!0)),ne=be().y+be().h,me&&(ne=23)}if(void 0!==le[0])if(this.printingHeaderRow?this.rect(te,ne,ie,re,"FD"):this.rect(te,ne,ie,re),"right"===de){le instanceof Array||(le=[le]);for(var fe=0;fe<le.length;fe++){var ye=le[fe],we=this.getStringUnitWidth(ye)*this.internal.getFontSize()/this.internal.scaleFactor;this.text(ye,te+ie-we-3,ne+this.internal.getLineHeight()*(fe+1))}}else this.text(le,te+3,ne+this.internal.getLineHeight());return _e(te,ne,ie,re,ce),this},ue.arrayMax=function(te,ne){var ie,re,le,ce=te[0];for(ie=0,re=te.length;ie<re;ie+=1)le=te[ie],ne?-1===ne(ce,le)&&(ce=le):ce<le&&(ce=le);return ce},ue.table=function(te,ne,ie,re,le){if(!ie)throw"No data for PDF table";var ce,de,me,_e,be,ye,we,ke,Se,xe,Ee=[],Me=[],Ne={},Re={},Le=[],Oe=[],Pe=!1,Fe=!0,je=12,Ve=Ce;if(Ve.width=this.internal.pageSize.getWidth(),le&&(!0===le.autoSize&&(Pe=!0),!1===le.printHeaders&&(Fe=!1),le.fontSize&&(je=le.fontSize),le.css&&void 0!==le.css["font-size"]&&(je=16*le.css["font-size"]),le.margins&&(Ve=le.margins)),this.lnMod=0,ge={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},fe=1,this.printHeaders=Fe,this.margins=Ve,this.setFontSize(je),this.table_font_size=je,null==re)Ee=Object.keys(ie[0]);else if(re[0]&&"string"!=typeof re[0])for(de=0,me=re.length;de<me;de+=1)ce=re[de],Ee.push(ce.name),Me.push(ce.prompt),Re[ce.name]=ce.width*(19.049976/25.4);else Ee=re;if(Pe)for(xe=function(te){return te[ce]},de=0,me=Ee.length;de<me;de+=1){for(Ne[ce=Ee[de]]=ie.map(xe),Le.push(this.getTextDimensions(Me[de]||ce,{scaleFactor:1}).w),we=0,_e=(ye=Ne[ce]).length;we<_e;we+=1)be=ye[we],Le.push(this.getTextDimensions(be,{scaleFactor:1}).w);Re[ce]=ue.arrayMax(Le),Le=[]}if(Fe){var Ge=this.calculateLineHeight(Ee,Re,Me.length?Me:Ee);for(de=0,me=Ee.length;de<me;de+=1)ce=Ee[de],Oe.push([te,ne,Re[ce],Ge,String(Me.length?Me[de]:ce)]);this.setTableHeaderRow(Oe),this.printHeaderRow(1,!1)}for(de=0,me=ie.length;de<me;de+=1)for(ke=ie[de],Ge=this.calculateLineHeight(Ee,Re,ke),we=0,Se=Ee.length;we<Se;we+=1)ce=Ee[we],this.cell(te,ne,Re[ce],Ge,ke[ce],de+2,ce.align);return this.lastCellPos=ge,this.table_x=te,this.table_y=ne,this},ue.calculateLineHeight=function(te,ne,ie){for(var re,le=0,ce=0;ce<te.length;ce++){ie[re=te[ce]]=this.splitTextToSize(String(ie[re]),ne[re]-3);var de=this.internal.getLineHeight()*ie[re].length+3;le<de&&(le=de)}return le},ue.setTableHeaderRow=function(te){this.tableHeaderRow=te},ue.printHeaderRow=function(te,ne){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var ie,re,le,ce;if(this.printingHeaderRow=!0,void 0!==me){var de=me(this,fe);_e(de[0],de[1],de[2],de[3],-1)}this.setFontStyle("bold");var ue=[];for(le=0,ce=this.tableHeaderRow.length;le<ce;le+=1)this.setFillColor(200,200,200),ie=this.tableHeaderRow[le],ne&&(this.margins.top=13,ie[1]=this.margins&&this.margins.top||0,ue.push(ie)),re=[].concat(ie),this.cell.apply(this,re.concat(te));0<ue.length&&this.setTableHeaderRow(ue),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(te,ne){var ie,re,le,ce,de,c=function(te){return te=te||{},this.isStrokeTransparent=te.isStrokeTransparent||!1,this.strokeOpacity=te.strokeOpacity||1,this.strokeStyle=te.strokeStyle||"#000000",this.fillStyle=te.fillStyle||"#000000",this.isFillTransparent=te.isFillTransparent||!1,this.fillOpacity=te.fillOpacity||1,this.font=te.font||"10px sans-serif",this.textBaseline=te.textBaseline||"alphabetic",this.textAlign=te.textAlign||"left",this.lineWidth=te.lineWidth||1,this.lineJoin=te.lineJoin||"miter",this.lineCap=te.lineCap||"butt",this.path=te.path||[],this.transform=void 0!==te.transform?te.transform.clone():new M,this.globalCompositeOperation=te.globalCompositeOperation||"normal",this.globalAlpha=te.globalAlpha||1,this.clip_path=te.clip_path||[],this.currentPoint=te.currentPoint||new j,this.miterLimit=te.miterLimit||10,this.lastPoint=te.lastPoint||new j,this.ignoreClearRect="boolean"!=typeof te.ignoreClearRect||te.ignoreClearRect,this};te.events.push(["initialized",function(){this.context2d=new n(this),ie=this.internal.f2,this.internal.f3,re=this.internal.getCoordinateString,le=this.internal.getVerticalCoordinateString,ce=this.internal.getHorizontalCoordinate,de=this.internal.getVerticalCoordinate}]);var n=function(te){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return te}});var ne=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return ne},set:function(te){ne=Boolean(te)}});var ie=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ie},set:function(te){ie=Boolean(te)}});var re=0;Object.defineProperty(this,"posX",{get:function(){return re},set:function(te){isNaN(te)||(re=te)}});var le=0;Object.defineProperty(this,"posY",{get:function(){return le},set:function(te){isNaN(te)||(le=te)}});var ce=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ce},set:function(te){ce=Boolean(te)}});var de=0;Object.defineProperty(this,"lastBreak",{get:function(){return de},set:function(te){de=te}});var ue=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ue},set:function(te){ue=te}});var me=new c;Object.defineProperty(this,"ctx",{get:function(){return me},set:function(te){te instanceof c&&(me=te)}}),Object.defineProperty(this,"path",{get:function(){return me.path},set:function(te){me.path=te}});var ge=[];Object.defineProperty(this,"ctxStack",{get:function(){return ge},set:function(te){ge=te}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(te){var ne;ne=f(te),this.ctx.fillStyle=ne.style,this.ctx.isFillTransparent=0===ne.a,this.ctx.fillOpacity=ne.a,this.pdf.setFillColor(ne.r,ne.g,ne.b,{a:ne.a}),this.pdf.setTextColor(ne.r,ne.g,ne.b,{a:ne.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(te){var ne=f(te);this.ctx.strokeStyle=ne.style,this.ctx.isStrokeTransparent=0===ne.a,this.ctx.strokeOpacity=ne.a,0===ne.a?this.pdf.setDrawColor(255,255,255):(ne.a,this.pdf.setDrawColor(ne.r,ne.g,ne.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(te){-1!==["butt","round","square"].indexOf(te)&&(this.ctx.lineCap=te,this.pdf.setLineCap(te))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(te){isNaN(te)||(this.ctx.lineWidth=te,this.pdf.setLineWidth(te))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(te){-1!==["bevel","round","miter"].indexOf(te)&&(this.ctx.lineJoin=te,this.pdf.setLineJoin(te))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(te){isNaN(te)||(this.ctx.miterLimit=te,this.pdf.setMiterLimit(te))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(te){this.ctx.textBaseline=te}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(te){-1!==["right","end","center","left","start"].indexOf(te)&&(this.ctx.textAlign=te)}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(te){var ne;if(this.ctx.font=te,null!==(ne=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(te))){var ie=ne[1],re=(ne[2],ne[3]),le=ne[4],ce=ne[5],de=ne[6];le="px"===ce?Math.floor(parseFloat(le)):"em"===ce?Math.floor(parseFloat(le)*this.pdf.getFontSize()):Math.floor(parseFloat(le)),this.pdf.setFontSize(le);var ue="";("bold"===re||700<=parseInt(re,10)||"bold"===ie)&&(ue="bold"),"italic"===ie&&(ue+="italic"),0===ue.length&&(ue="normal");for(var me="",ge=de.toLowerCase().replace(/"|'/g,"").split(/\s*,\s*/),fe={arial:"Helvetica",verdana:"Helvetica",helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",courier:"Courier",times:"Times",cursive:"Times",fantasy:"Times",serif:"Times"},_e=0;_e<ge.length;_e++){if(void 0!==this.pdf.internal.getFont(ge[_e],ue,{noFallback:!0,disableWarning:!0})){me=ge[_e];break}if("bolditalic"===ue&&void 0!==this.pdf.internal.getFont(ge[_e],"bold",{noFallback:!0,disableWarning:!0}))me=ge[_e],ue="bold";else if(void 0!==this.pdf.internal.getFont(ge[_e],"normal",{noFallback:!0,disableWarning:!0})){me=ge[_e],ue="normal";break}}if(""===me)for(_e=0;_e<ge.length;_e++)if(fe[ge[_e]]){me=fe[ge[_e]];break}me=""===me?"Times":me,this.pdf.setFont(me,ue)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(te){this.ctx.globalCompositeOperation=te}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(te){this.ctx.globalAlpha=te}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(te){this.ctx.ignoreClearRect=Boolean(te)}})};n.prototype.fill=function(){r.call(this,"fill",!1)},n.prototype.stroke=function(){r.call(this,"stroke",!1)},n.prototype.beginPath=function(){this.path=[{type:"begin"}]},n.prototype.moveTo=function(te,ne){if(isNaN(te)||isNaN(ne))throw console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var ie=this.ctx.transform.applyToPoint(new j(te,ne));this.path.push({type:"mt",x:ie.x,y:ie.y}),this.ctx.lastPoint=new j(te,ne)},n.prototype.closePath=function(){var te=new j(0,0),ne=0;for(ne=this.path.length-1;-1!==ne;ne--)if("begin"===this.path[ne].type&&"object"===se(this.path[ne+1])&&"number"==typeof this.path[ne+1].x){te=new j(this.path[ne+1].x,this.path[ne+1].y),this.path.push({type:"lt",x:te.x,y:te.y});break}"object"===se(this.path[ne+2])&&"number"==typeof this.path[ne+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[ne+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new j(te.x,te.y)},n.prototype.lineTo=function(te,ne){if(isNaN(te)||isNaN(ne))throw console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var ie=this.ctx.transform.applyToPoint(new j(te,ne));this.path.push({type:"lt",x:ie.x,y:ie.y}),this.ctx.lastPoint=new j(ie.x,ie.y)},n.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),r.call(this,null,!0)},n.prototype.quadraticCurveTo=function(te,ne,ie,re){if(isNaN(ie)||isNaN(re)||isNaN(te)||isNaN(ne))throw console.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var le=this.ctx.transform.applyToPoint(new j(ie,re)),ce=this.ctx.transform.applyToPoint(new j(te,ne));this.path.push({type:"qct",x1:ce.x,y1:ce.y,x:le.x,y:le.y}),this.ctx.lastPoint=new j(le.x,le.y)},n.prototype.bezierCurveTo=function(te,ne,ie,re,le,ce){if(isNaN(le)||isNaN(ce)||isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re))throw console.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var de=this.ctx.transform.applyToPoint(new j(le,ce)),ue=this.ctx.transform.applyToPoint(new j(te,ne)),me=this.ctx.transform.applyToPoint(new j(ie,re));this.path.push({type:"bct",x1:ue.x,y1:ue.y,x2:me.x,y2:me.y,x:de.x,y:de.y}),this.ctx.lastPoint=new j(de.x,de.y)},n.prototype.arc=function(te,ne,ie,re,le,ce){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re)||isNaN(le))throw console.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ce=Boolean(ce),!this.ctx.transform.isIdentity){var de=this.ctx.transform.applyToPoint(new j(te,ne));te=de.x,ne=de.y;var ue=this.ctx.transform.applyToPoint(new j(0,ie)),me=this.ctx.transform.applyToPoint(new j(0,0));ie=Math.sqrt(Math.pow(ue.x-me.x,2)+Math.pow(ue.y-me.y,2))}Math.abs(le-re)>=2*Math.PI&&(re=0,le=2*Math.PI),this.path.push({type:"arc",x:te,y:ne,radius:ie,startAngle:re,endAngle:le,counterclockwise:ce})},n.prototype.arcTo=function(te,ne,ie,re,le){throw new Error("arcTo not implemented.")},n.prototype.rect=function(te,ne,ie,re){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(te,ne),this.lineTo(te+ie,ne),this.lineTo(te+ie,ne+re),this.lineTo(te,ne+re),this.lineTo(te,ne),this.lineTo(te+ie,ne),this.lineTo(te,ne)},n.prototype.fillRect=function(te,ne,ie,re){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!N.call(this)){var le={};"butt"!==this.lineCap&&(le.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(le.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(te,ne,ie,re),this.fill(),le.hasOwnProperty("lineCap")&&(this.lineCap=le.lineCap),le.hasOwnProperty("lineJoin")&&(this.lineJoin=le.lineJoin)}},n.prototype.strokeRect=function(te,ne,ie,re){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");L.call(this)||(this.beginPath(),this.rect(te,ne,ie,re),this.stroke())},n.prototype.clearRect=function(te,ne,ie,re){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(te,ne,ie,re))},n.prototype.save=function(te){te="boolean"!=typeof te||te;for(var ne=this.pdf.internal.getCurrentPageInfo().pageNumber,ie=0;ie<this.pdf.internal.getNumberOfPages();ie++)this.pdf.setPage(ie+1),this.pdf.internal.out("q");if(this.pdf.setPage(ne),te){this.ctx.fontSize=this.pdf.internal.getFontSize();var re=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=re}},n.prototype.restore=function(te){te="boolean"!=typeof te||te;for(var ne=this.pdf.internal.getCurrentPageInfo().pageNumber,ie=0;ie<this.pdf.internal.getNumberOfPages();ie++)this.pdf.setPage(ie+1),this.pdf.internal.out("Q");this.pdf.setPage(ne),te&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},n.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(te){var ne,ie,re,le;if(!0===te.isCanvasGradient&&(te=te.getColor()),!te)return{r:0,g:0,b:0,a:0,style:te};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(te))le=re=ie=ne=0;else{var ce=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(te);if(null!==ce)ne=parseInt(ce[1]),ie=parseInt(ce[2]),re=parseInt(ce[3]),le=1;else if(null!==(ce=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/.exec(te)))ne=parseInt(ce[1]),ie=parseInt(ce[2]),re=parseInt(ce[3]),le=parseFloat(ce[4]);else{if(le=1,"string"==typeof te&&"#"!==te.charAt(0)){var de=new RGBColor(te);te=de.ok?de.toHex():"#000000"}4===te.length?(ne=te.substring(1,2),ne+=ne,ie=te.substring(2,3),ie+=ie,re=te.substring(3,4),re+=re):(ne=te.substring(1,3),ie=te.substring(3,5),re=te.substring(5,7)),ne=parseInt(ne,16),ie=parseInt(ie,16),re=parseInt(re,16)}}return{r:ne,g:ie,b:re,a:le,style:te}},N=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},L=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};n.prototype.fillText=function(te,ne,ie,re){if(isNaN(ne)||isNaN(ie)||"string"!=typeof te)throw console.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(re=isNaN(re)?void 0:re,!N.call(this)){ie=a.call(this,ie);var le=B(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;s.call(this,{text:te,x:ne,y:ie,scale:ce,angle:le,align:this.textAlign,maxWidth:re})}},n.prototype.strokeText=function(te,ne,ie,re){if(isNaN(ne)||isNaN(ie)||"string"!=typeof te)throw console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!L.call(this)){re=isNaN(re)?void 0:re,ie=a.call(this,ie);var le=B(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;s.call(this,{text:te,x:ne,y:ie,scale:ce,renderingMode:"stroke",angle:le,align:this.textAlign,maxWidth:re})}},n.prototype.measureText=function(te){if("string"!=typeof te)throw console.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var ne=this.pdf,ie=this.pdf.internal.scaleFactor,re=ne.internal.getFontSize(),le=ne.getStringUnitWidth(te)*re/ne.internal.scaleFactor;return new function(te){var ne=(te=te||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ne}}),this}({width:le*=Math.round(96*ie/72*1e4)/1e4})},n.prototype.scale=function(te,ne){if(isNaN(te)||isNaN(ne))throw console.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var ie=new M(te,0,0,ne,0,0);this.ctx.transform=this.ctx.transform.multiply(ie)},n.prototype.rotate=function(te){if(isNaN(te))throw console.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var ne=new M(Math.cos(te),Math.sin(te),-Math.sin(te),Math.cos(te),0,0);this.ctx.transform=this.ctx.transform.multiply(ne)},n.prototype.translate=function(te,ne){if(isNaN(te)||isNaN(ne))throw console.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var ie=new M(1,0,0,1,te,ne);this.ctx.transform=this.ctx.transform.multiply(ie)},n.prototype.transform=function(te,ne,ie,re,le,ce){if(isNaN(te)||isNaN(ne)||isNaN(ie)||isNaN(re)||isNaN(le)||isNaN(ce))throw console.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var de=new M(te,ne,ie,re,le,ce);this.ctx.transform=this.ctx.transform.multiply(de)},n.prototype.setTransform=function(te,ne,ie,re,le,ce){te=isNaN(te)?1:te,ne=isNaN(ne)?0:ne,ie=isNaN(ie)?0:ie,re=isNaN(re)?1:re,le=isNaN(le)?0:le,ce=isNaN(ce)?0:ce,this.ctx.transform=new M(te,ne,ie,re,le,ce)},n.prototype.drawImage=function(te,ne,ie,re,le,ce,de,ue,me){var ge=this.pdf.getImageProperties(te),fe=1,_e=1,be=1,Ce=1;void 0!==re&&void 0!==ue&&(be=ue/re,Ce=me/le,fe=ge.width/re*ue/re,_e=ge.height/le*me/le),void 0===ce&&(ce=ne,de=ie,ie=ne=0),void 0!==re&&void 0===ue&&(ue=re,me=le),void 0===re&&void 0===ue&&(ue=ge.width,me=ge.height);var ye=this.ctx.transform.decompose(),we=B(ye.rotate.shx);ye.scale.sx,ye.scale.sy;for(var ke,Se=new M,xe=((Se=(Se=(Se=Se.multiply(ye.translate)).multiply(ye.skew)).multiply(ye.scale)).applyToPoint(new j(ue,me)),Se.applyToRectangle(new E(ce-ne*be,de-ie*Ce,re*fe,le*_e))),Ee=F.call(this,xe),Me=[],Ne=0;Ne<Ee.length;Ne+=1)-1===Me.indexOf(Ee[Ne])&&Me.push(Ee[Ne]);if(Me.sort(),this.autoPaging)for(var Re=Me[0],Le=Me[Me.length-1],Oe=Re;Oe<Le+1;Oe++){if(this.pdf.setPage(Oe),0!==this.ctx.clip_path.length){var Pe=this.path;ke=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(ke,this.posX,-1*this.pdf.internal.pageSize.height*(Oe-1)+this.posY),k.call(this,"fill",!0),this.path=Pe}var Fe=JSON.parse(JSON.stringify(xe));Fe=P([Fe],this.posX,-1*this.pdf.internal.pageSize.height*(Oe-1)+this.posY)[0],this.pdf.addImage(te,"jpg",Fe.x,Fe.y,Fe.w,Fe.h,null,null,we)}else this.pdf.addImage(te,"jpg",xe.x,xe.y,xe.w,xe.h,null,null,we)};var F=function(te,ne,ie){var re=[];switch(ne=ne||this.pdf.internal.pageSize.width,ie=ie||this.pdf.internal.pageSize.height,te.type){default:case"mt":case"lt":re.push(Math.floor((te.y+this.posY)/ie)+1);break;case"arc":re.push(Math.floor((te.y+this.posY-te.radius)/ie)+1),re.push(Math.floor((te.y+this.posY+te.radius)/ie)+1);break;case"qct":var le=w(this.ctx.lastPoint.x,this.ctx.lastPoint.y,te.x1,te.y1,te.x,te.y);re.push(Math.floor(le.y/ie)+1),re.push(Math.floor((le.y+le.h)/ie)+1);break;case"bct":var ce=b(this.ctx.lastPoint.x,this.ctx.lastPoint.y,te.x1,te.y1,te.x2,te.y2,te.x,te.y);re.push(Math.floor(ce.y/ie)+1),re.push(Math.floor((ce.y+ce.h)/ie)+1);break;case"rect":re.push(Math.floor((te.y+this.posY)/ie)+1),re.push(Math.floor((te.y+te.h+this.posY)/ie)+1)}for(var de=0;de<re.length;de+=1)for(;this.pdf.internal.getNumberOfPages()<re[de];)v.call(this);return re},v=function(){var te=this.fillStyle,ne=this.strokeStyle,ie=this.font,re=this.lineCap,le=this.lineWidth,ce=this.lineJoin;this.pdf.addPage(),this.fillStyle=te,this.strokeStyle=ne,this.font=ie,this.lineCap=re,this.lineWidth=le,this.lineJoin=ce},P=function(te,ne,ie){for(var re=0;re<te.length;re++)switch(te[re].type){case"bct":te[re].x2+=ne,te[re].y2+=ie;case"qct":te[re].x1+=ne,te[re].y1+=ie;default:te[re].x+=ne,te[re].y+=ie}return te},r=function(te,ne){for(var ie,re,le=this.fillStyle,ce=this.strokeStyle,de=(this.font,this.lineCap),ue=this.lineWidth,me=this.lineJoin,ge=JSON.parse(JSON.stringify(this.path)),fe=JSON.parse(JSON.stringify(this.path)),_e=[],be=0;be<fe.length;be++)if(void 0!==fe[be].x)for(var Ce=F.call(this,fe[be]),ye=0;ye<Ce.length;ye+=1)-1===_e.indexOf(Ce[ye])&&_e.push(Ce[ye]);for(be=0;be<_e.length;be++)for(;this.pdf.internal.getNumberOfPages()<_e[be];)v.call(this);if(_e.sort(),this.autoPaging){var we=_e[0],ke=_e[_e.length-1];for(be=we;be<ke+1;be++){if(this.pdf.setPage(be),this.fillStyle=le,this.strokeStyle=ce,this.lineCap=de,this.lineWidth=ue,this.lineJoin=me,0!==this.ctx.clip_path.length){var Se=this.path;ie=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(ie,this.posX,-1*this.pdf.internal.pageSize.height*(be-1)+this.posY),k.call(this,te,!0),this.path=Se}re=JSON.parse(JSON.stringify(ge)),this.path=P(re,this.posX,-1*this.pdf.internal.pageSize.height*(be-1)+this.posY),!1!==ne&&0!==be||k.call(this,te,ne)}}else k.call(this,te,ne);this.path=ge},k=function(te,ne){if(("stroke"!==te||ne||!L.call(this))&&("stroke"===te||ne||!N.call(this))){var ie=[];this.ctx.globalAlpha,this.ctx.fillOpacity<1&&this.ctx.fillOpacity;for(var re,le=this.path,ce=0;ce<le.length;ce++){var de=le[ce];switch(de.type){case"begin":ie.push({begin:!0});break;case"close":ie.push({close:!0});break;case"mt":ie.push({start:de,deltas:[],abs:[]});break;case"lt":var ue=ie.length;if(!isNaN(le[ce-1].x)){var me=[de.x-le[ce-1].x,de.y-le[ce-1].y];if(0<ue)for(;0<=ue;ue--)if(!0!==ie[ue-1].close&&!0!==ie[ue-1].begin){ie[ue-1].deltas.push(me),ie[ue-1].abs.push(de);break}}break;case"bct":me=[de.x1-le[ce-1].x,de.y1-le[ce-1].y,de.x2-le[ce-1].x,de.y2-le[ce-1].y,de.x-le[ce-1].x,de.y-le[ce-1].y],ie[ie.length-1].deltas.push(me);break;case"qct":var ge=le[ce-1].x+2/3*(de.x1-le[ce-1].x),fe=le[ce-1].y+2/3*(de.y1-le[ce-1].y),_e=de.x+2/3*(de.x1-de.x),be=de.y+2/3*(de.y1-de.y),Ce=de.x,ye=de.y;me=[ge-le[ce-1].x,fe-le[ce-1].y,_e-le[ce-1].x,be-le[ce-1].y,Ce-le[ce-1].x,ye-le[ce-1].y],ie[ie.length-1].deltas.push(me);break;case"arc":ie.push({deltas:[],abs:[],arc:!0}),Array.isArray(ie[ie.length-1].abs)&&ie[ie.length-1].abs.push(de)}}for(re=ne?null:"stroke"===te?"stroke":"fill",ce=0;ce<ie.length;ce++){if(ie[ce].arc)for(var we=ie[ce].abs,ke=0;ke<we.length;ke++){var Se=we[ke];if(void 0!==Se.startAngle){var xe=B(Se.startAngle),Ee=B(Se.endAngle),Me=Se.x,Ne=Se.y;A.call(this,Me,Ne,Se.radius,xe,Ee,Se.counterclockwise,re,ne)}else I.call(this,Se.x,Se.y)}ie[ce].arc||!0===ie[ce].close||!0===ie[ce].begin||(Me=ie[ce].start.x,Ne=ie[ce].start.y,C.call(this,ie[ce].deltas,Me,Ne,null,null))}re&&S.call(this,re),ne&&_.call(this)}},a=function(te){var ne=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,ie=ne*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return te-ie;case"top":return te+ne-ie;case"hanging":return te+ne-2*ie;case"middle":return te+ne/2-ie;default:return te}};n.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(te,ne){this.colorStops.push([te,ne])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},n.prototype.createPattern=function(){return this.createLinearGradient()},n.prototype.createRadialGradient=function(){return this.createLinearGradient()};var A=function(te,ne,ie,re,le,ce,de,ue){this.pdf.internal.scaleFactor;for(var me=y(re),ge=y(le),fe=g.call(this,ie,me,ge,ce),_e=0;_e<fe.length;_e++){var be=fe[_e];0===_e&&p.call(this,be.x1+te,be.y1+ne),d.call(this,te,ne,be.x2,be.y2,be.x3,be.y3,be.x4,be.y4)}ue?_.call(this):S.call(this,de)},S=function(te){switch(te){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},_=function(){this.pdf.clip()},p=function(te,ne){this.pdf.internal.out(re(te)+" "+le(ne)+" m")},s=function(te){var ne;switch(te.align){case"right":case"end":ne="right";break;case"center":ne="center";break;default:ne="left"}var ie=this.ctx.transform.applyToPoint(new j(te.x,te.y)),re=this.ctx.transform.decompose(),le=new M;le=(le=(le=le.multiply(re.translate)).multiply(re.skew)).multiply(re.scale);for(var ce,de=this.pdf.getTextDimensions(te.text),ue=this.ctx.transform.applyToRectangle(new E(te.x,te.y,de.w,de.h)),me=le.applyToRectangle(new E(te.x,te.y-de.h,de.w,de.h)),ge=F.call(this,me),fe=[],_e=0;_e<ge.length;_e+=1)-1===fe.indexOf(ge[_e])&&fe.push(ge[_e]);if(fe.sort(),!0===this.autoPaging)for(var be=fe[0],Ce=fe[fe.length-1],ye=be;ye<Ce+1;ye++){if(this.pdf.setPage(ye),0!==this.ctx.clip_path.length){var we=this.path;ce=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(ce,this.posX,-1*this.pdf.internal.pageSize.height*(ye-1)+this.posY),k.call(this,"fill",!0),this.path=we}var ke=JSON.parse(JSON.stringify(ue));if(ke=P([ke],this.posX,-1*this.pdf.internal.pageSize.height*(ye-1)+this.posY)[0],.01<=te.scale){var Se=this.pdf.internal.getFontSize();this.pdf.setFontSize(Se*te.scale)}this.pdf.text(te.text,ke.x,ke.y,{angle:te.angle,align:ne,renderingMode:te.renderingMode,maxWidth:te.maxWidth}),.01<=te.scale&&this.pdf.setFontSize(Se)}else.01<=te.scale&&(Se=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Se*te.scale)),this.pdf.text(te.text,ie.x+this.posX,ie.y+this.posY,{angle:te.angle,align:ne,renderingMode:te.renderingMode,maxWidth:te.maxWidth}),.01<=te.scale&&this.pdf.setFontSize(Se)},I=function(te,ne,ie,ce){ie=ie||0,ce=ce||0,this.pdf.internal.out(re(te+ie)+" "+le(ne+ce)+" l")},C=function(te,ne,ie){return this.pdf.lines(te,ne,ie,null,null)},d=function(te,ne,re,le,ue,me,ge,fe){this.pdf.internal.out([ie(ce(re+te)),ie(de(le+ne)),ie(ce(ue+te)),ie(de(me+ne)),ie(ce(ge+te)),ie(de(fe+ne)),"c"].join(" "))},g=function(te,ne,ie,re){var le=2*Math.PI,ce=ne;(ce<le||le<ce)&&(ce%=le);var de=ie;(de<le||le<de)&&(de%=le);for(var ue=[],me=Math.PI/2,ge=re?-1:1,fe=ne,_e=Math.min(le,Math.abs(de-ce));1e-5<_e;){var be=fe+ge*Math.min(_e,me);ue.push(m.call(this,te,fe,be)),_e-=Math.abs(be-fe),fe=be}return ue},m=function(te,ne,ie){var re=(ie-ne)/2,le=te*Math.cos(re),ce=te*Math.sin(re),de=le,ue=-ce,me=de*de+ue*ue,ge=me+de*le+ue*ce,fe=4/3*(Math.sqrt(2*me*ge)-ge)/(de*ce-ue*le),_e=de-fe*ue,be=ue+fe*de,Ce=_e,ye=-be,we=re+ne,ke=Math.cos(we),Se=Math.sin(we);return{x1:te*Math.cos(ne),y1:te*Math.sin(ne),x2:_e*ke-be*Se,y2:_e*Se+be*ke,x3:Ce*ke-ye*Se,y3:Ce*Se+ye*ke,x4:te*Math.cos(ie),y4:te*Math.sin(ie)}},B=function(te){return 180*te/Math.PI},y=function(te){return te*Math.PI/180},w=function(te,ne,ie,re,le,ce){var de=te+.5*(ie-te),ue=ne+.5*(re-ne),me=le+.5*(ie-le),ge=ce+.5*(re-ce),fe=Math.min(te,le,de,me),_e=Math.max(te,le,de,me),be=Math.min(ne,ce,ue,ge),Ce=Math.max(ne,ce,ue,ge);return new E(fe,be,_e-fe,Ce-be)},b=function(te,ne,ie,re,le,ce,de,ue){for(var me,ge,fe,_e,be,Ce,ye,we,ke,Se,xe,Ee,Me,Ne=ie-te,Re=re-ne,Le=le-ie,Oe=ce-re,Pe=de-le,Fe=ue-ce,je=0;je<41;je++)we=(Ce=(ge=te+(me=je/40)*Ne)+me*((_e=ie+me*Le)-ge))+me*(_e+me*(le+me*Pe-_e)-Ce),ke=(ye=(fe=ne+me*Re)+me*((be=re+me*Oe)-fe))+me*(be+me*(ce+me*Fe-be)-ye),Me=0==je?(Ee=Se=we,xe=ke):(Se=Math.min(Se,we),xe=Math.min(xe,ke),Ee=Math.max(Ee,we),Math.max(Me,ke));return new E(Math.round(Se),Math.round(xe),Math.round(Ee-Se),Math.round(Me-xe))},j=function(te,ne){var ie=te||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ie},set:function(te){isNaN(te)||(ie=parseFloat(te))}});var re=ne||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return re},set:function(te){isNaN(te)||(re=parseFloat(te))}});var le="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return le},set:function(te){le=te.toString()}}),this},E=function(te,ne,ie,re){j.call(this,te,ne),this.type="rect";var le=ie||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return le},set:function(te){isNaN(te)||(le=parseFloat(te))}});var ce=re||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ce},set:function(te){isNaN(te)||(ce=parseFloat(te))}}),this},M=function(te,ne,ie,re,le,ce){var de=[];return Object.defineProperty(this,"sx",{get:function(){return de[0]},set:function(te){de[0]=Math.round(1e5*te)/1e5}}),Object.defineProperty(this,"shy",{get:function(){return de[1]},set:function(te){de[1]=Math.round(1e5*te)/1e5}}),Object.defineProperty(this,"shx",{get:function(){return de[2]},set:function(te){de[2]=Math.round(1e5*te)/1e5}}),Object.defineProperty(this,"sy",{get:function(){return de[3]},set:function(te){de[3]=Math.round(1e5*te)/1e5}}),Object.defineProperty(this,"tx",{get:function(){return de[4]},set:function(te){de[4]=Math.round(1e5*te)/1e5}}),Object.defineProperty(this,"ty",{get:function(){return de[5]},set:function(te){de[5]=Math.round(1e5*te)/1e5}}),Object.defineProperty(this,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(this,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(this,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(this,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),this.sx=isNaN(te)?1:te,this.shy=isNaN(ne)?0:ne,this.shx=isNaN(ie)?0:ie,this.sy=isNaN(re)?1:re,this.tx=isNaN(le)?0:le,this.ty=isNaN(ce)?0:ce,this};M.prototype.multiply=function(te){var ne=te.sx*this.sx+te.shy*this.shx,ie=te.sx*this.shy+te.shy*this.sy,re=te.shx*this.sx+te.sy*this.shx,le=te.shx*this.shy+te.sy*this.sy,ce=te.tx*this.sx+te.ty*this.shx+this.tx,de=te.tx*this.shy+te.ty*this.sy+this.ty;return new M(ne,ie,re,le,ce,de)},M.prototype.decompose=function(){var te=this.sx,ne=this.shy,ie=this.shx,re=this.sy,le=this.tx,ce=this.ty,de=Math.sqrt(te*te+ne*ne),ue=(te/=de)*ie+(ne/=de)*re;ie-=te*ue,re-=ne*ue;var me=Math.sqrt(ie*ie+re*re);return ue/=me,te*(re/=me)<ne*(ie/=me)&&(te=-te,ne=-ne,ue=-ue,de=-de),{scale:new M(de,0,0,me,0,0),translate:new M(1,0,0,1,le,ce),rotate:new M(te,ne,-ne,te,0,0),skew:new M(1,0,ue,1,0,0)}},M.prototype.applyToPoint=function(te){var ne=te.x*this.sx+te.y*this.shx+this.tx,ie=te.x*this.shy+te.y*this.sy+this.ty;return new j(ne,ie)},M.prototype.applyToRectangle=function(te){var ne=this.applyToPoint(te),ie=this.applyToPoint(new j(te.x+te.w,te.y+te.h));return new E(ne.x,ne.y,ie.x-ne.x,ie.y-ne.y)},M.prototype.clone=function(){var te=this.sx,ne=this.shy,ie=this.shx,re=this.sy,le=this.tx,ce=this.ty;return new M(te,ne,ie,re,le,ce)}}(dn.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),ye=dn.API,we=function(te){var ne,ie,re,le,ce,de,ue,me,ge,fe;for(/[^\x00-\xFF]/.test(te),ie=[],re=0,le=(te+=ne="\0\0\0\0".slice(te.length%4||4)).length;re<le;re+=4)0!==(ce=(te.charCodeAt(re)<<24)+(te.charCodeAt(re+1)<<16)+(te.charCodeAt(re+2)<<8)+te.charCodeAt(re+3))?(de=(ce=((ce=((ce=((ce=(ce-(fe=ce%85))/85)-(ge=ce%85))/85)-(me=ce%85))/85)-(ue=ce%85))/85)%85,ie.push(de+33,ue+33,me+33,ge+33,fe+33)):ie.push(122);return function(te,ie){for(var re=ne.length;0<re;re--)te.pop()}(ie),String.fromCharCode.apply(String,ie)+"~>"},ke=function(te){var ne,ie,re,le,ce,de=String,ue="length",me="charCodeAt",ge="slice",fe="replace";for(te[ge](-2),te=te[ge](0,-2)[fe](/\s/g,"")[fe]("z","!!!!!"),re=[],le=0,ce=(te+=ne="uuuuu"[ge](te[ue]%5||5))[ue];le<ce;le+=5)ie=52200625*(te[me](le)-33)+614125*(te[me](le+1)-33)+7225*(te[me](le+2)-33)+85*(te[me](le+3)-33)+(te[me](le+4)-33),re.push(255&ie>>24,255&ie>>16,255&ie>>8,255&ie);return function(te,ie){for(var re=ne[ue];0<re;re--)te.pop()}(re),de.fromCharCode.apply(de,re)},Se=function(te){for(var ne="",ie=0;ie<te.length;ie+=1)ne+=("0"+te.charCodeAt(ie).toString(16)).slice(-2);return ne+">"},xe=function(te){var ne=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(te=te.replace(/\s/g,"")).indexOf(">")&&(te=te.substr(0,te.indexOf(">"))),te.length%2&&(te+="0"),!1===ne.test(te))return"";for(var ie="",re=0;re<te.length;re+=2)ie+=String.fromCharCode("0x"+(te[re]+te[re+1]));return ie},Ee=function(te,ne){ne=Object.assign({predictor:1,colors:1,bitsPerComponent:8,columns:1},ne);for(var ie,re,le=[],ce=te.length;ce--;)le[ce]=te.charCodeAt(ce);return ie=ye.adler32cs.from(te),(re=new Deflater(6)).append(new Uint8Array(le)),te=re.flush(),(le=new Uint8Array(te.length+6)).set(new Uint8Array([120,156])),le.set(te,2),le.set(new Uint8Array([255&ie,ie>>8&255,ie>>16&255,ie>>24&255]),te.length+2),String.fromCharCode.apply(null,le)},ye.processDataByFilters=function(te,ne){var ie=0,re=te||"",le=[];for("string"==typeof(ne=ne||[])&&(ne=[ne]),ie=0;ie<ne.length;ie+=1)switch(ne[ie]){case"ASCII85Decode":case"/ASCII85Decode":re=ke(re),le.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":re=we(re),le.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":re=xe(re),le.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":re=Se(re),le.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":re=Ee(re),le.push("/FlateDecode");break;default:throw'The filter: "'+ne[ie]+'" is not implemented'}return{data:re,reverseChain:le.reverse().join(" ")}},(Me=dn.API).loadFile=function(te,ne,ie){var re;ne=ne||!0,ie=ie||function(){};try{re=function(te,ne,ie){var re=new XMLHttpRequest,le=[],ce=0,a=function(te){var ne=te.length,ie=String.fromCharCode;for(ce=0;ce<ne;ce+=1)le.push(ie(255&te.charCodeAt(ce)));return le.join("")};if(re.open("GET",te,!ne),re.overrideMimeType("text/plain; charset=x-user-defined"),!1===ne&&(re.onload=function(){return a(this.responseText)}),re.send(null),200===re.status)return ne?a(re.responseText):void 0;console.warn('Unable to load file "'+te+'"')}(te,ne)}catch(te){re=void 0}return re},Me.loadImageFile=Me.loadFile,Ne=dn.API,Re="undefined"!=typeof window&&window||"undefined"!=typeof global&&global,Le=function(te){var ne=se(te);return"undefined"===ne?"undefined":"string"===ne||te instanceof String?"string":"number"===ne||te instanceof Number?"number":"function"===ne||te instanceof Function?"function":te&&te.constructor===Array?"array":te&&1===te.nodeType?"element":"object"===ne?"object":"unknown"},Oe=function(te,ne){var ie=document.createElement(te);if(ne.className&&(ie.className=ne.className),ne.innerHTML){ie.innerHTML=ne.innerHTML;for(var re=ie.getElementsByTagName("script"),le=re.length;0<le--;null)re[le].parentNode.removeChild(re[le])}for(var ce in ne.style)ie.style[ce]=ne.style[ce];return ie},(((Pe=function t(te){var ne=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),ie=t.convert(Promise.resolve(),ne);return(ie=ie.setProgress(1,t,1,[t])).set(te)}).prototype=Object.create(Promise.prototype)).constructor=Pe).convert=function(te,ne){return te.__proto__=ne||Pe.prototype,te},Pe.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{}}},Pe.prototype.from=function(te,ne){return this.then((function(){switch(ne=ne||function(te){switch(Le(te)){case"string":return"string";case"element":return"canvas"===te.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(te)){case"string":return this.set({src:Oe("div",{innerHTML:te})});case"element":return this.set({src:te});case"canvas":return this.set({canvas:te});case"img":return this.set({img:te});default:return this.error("Unknown source type.")}}))},Pe.prototype.to=function(te){switch(te){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Pe.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var te={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:"white"},ne=function t(te,ne){for(var ie=3===te.nodeType?document.createTextNode(te.nodeValue):te.cloneNode(!1),re=te.firstChild;re;re=re.nextSibling)!0!==ne&&1===re.nodeType&&"SCRIPT"===re.nodeName||ie.appendChild(t(re,ne));return 1===te.nodeType&&("CANVAS"===te.nodeName?(ie.width=te.width,ie.height=te.height,ie.getContext("2d").drawImage(te,0,0)):"TEXTAREA"!==te.nodeName&&"SELECT"!==te.nodeName||(ie.value=te.value),ie.addEventListener("load",(function(){ie.scrollTop=te.scrollTop,ie.scrollLeft=te.scrollLeft}),!0)),ie}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===ne.tagName&&(te.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Oe("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Oe("div",{className:"html2pdf__container",style:te}),this.prop.container.appendChild(ne),this.prop.container.firstChild.appendChild(Oe("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},Pe.prototype.toCanvas=function(){var te=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(te).then((function(){var te=Object.assign({},this.opt.html2canvas);if(delete te.onrendered,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,te)})).then((function(te){(this.opt.html2canvas.onrendered||function(){})(te),this.prop.canvas=te,document.body.removeChild(this.prop.overlay)}))},Pe.prototype.toContext2d=function(){var te=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(te).then((function(){var te=this.opt.jsPDF,ne=Object.assign({async:!0,allowTaint:!0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete ne.onrendered,te.context2d.autoPaging=!0,te.context2d.posX=this.opt.x,te.context2d.posY=this.opt.y,ne.windowHeight=ne.windowHeight||0,ne.windowHeight=0==ne.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):ne.windowHeight,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,ne)})).then((function(te){(this.opt.html2canvas.onrendered||function(){})(te),this.prop.canvas=te,document.body.removeChild(this.prop.overlay)}))},Pe.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var te=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=te}))},Pe.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},Pe.prototype.output=function(te,ne,ie){return"img"===(ie=ie||"pdf").toLowerCase()||"image"===ie.toLowerCase()?this.outputImg(te,ne):this.outputPdf(te,ne)},Pe.prototype.outputPdf=function(te,ne){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(te,ne)}))},Pe.prototype.outputImg=function(te,ne){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(te){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+te+'" is not supported.'}}))},Pe.prototype.isHtml2CanvasLoaded=function(){var te=void 0!==Re.html2canvas;return te||console.error("html2canvas not loaded."),te},Pe.prototype.save=function(te){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(te?{filename:te}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},Pe.prototype.doCallback=function(te){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},Pe.prototype.set=function(te){if("object"!==Le(te))return this;var ne=Object.keys(te||{}).map((function(ne){if(ne in Pe.template.prop)return function(){this.prop[ne]=te[ne]};switch(ne){case"margin":return this.setMargin.bind(this,te.margin);case"jsPDF":return function(){return this.opt.jsPDF=te.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,te.pageSize);default:return function(){this.opt[ne]=te[ne]}}}),this);return this.then((function(){return this.thenList(ne)}))},Pe.prototype.get=function(te,ne){return this.then((function(){var ie=te in Pe.template.prop?this.prop[te]:this.opt[te];return ne?ne(ie):ie}))},Pe.prototype.setMargin=function(te){return this.then((function(){switch(Le(te)){case"number":te=[te,te,te,te];case"array":if(2===te.length&&(te=[te[0],te[1],te[0],te[1]]),4===te.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=te})).then(this.setPageSize)},Pe.prototype.setPageSize=function(te){function e(te,ne){return Math.floor(te*ne/72*96)}return this.then((function(){(te=te||dn.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(te.inner={width:te.width-this.opt.margin[1]-this.opt.margin[3],height:te.height-this.opt.margin[0]-this.opt.margin[2]},te.inner.px={width:e(te.inner.width,te.k),height:e(te.inner.height,te.k)},te.inner.ratio=te.inner.height/te.inner.width),this.prop.pageSize=te}))},Pe.prototype.setProgress=function(te,ne,ie,re){return null!=te&&(this.progress.val=te),null!=ne&&(this.progress.state=ne),null!=ie&&(this.progress.n=ie),null!=re&&(this.progress.stack=re),this.progress.ratio=this.progress.val/this.progress.state,this},Pe.prototype.updateProgress=function(te,ne,ie,re){return this.setProgress(te?this.progress.val+te:null,ne||null,ie?this.progress.n+ie:null,re?this.progress.stack.concat(re):null)},Pe.prototype.then=function(te,ne){var ie=this;return this.thenCore(te,ne,(function(te,ne){return ie.updateProgress(null,null,1,[te]),Promise.prototype.then.call(this,(function(ne){return ie.updateProgress(null,te),ne})).then(te,ne).then((function(te){return ie.updateProgress(1),te}))}))},Pe.prototype.thenCore=function(te,ne,ie){ie=ie||Promise.prototype.then;var re=this;te&&(te=te.bind(re)),ne&&(ne=ne.bind(re));var le=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?re:Pe.convert(Object.assign({},re),Promise.prototype),ce=ie.call(le,te,ne);return Pe.convert(ce,re.__proto__)},Pe.prototype.thenExternal=function(te,ne){return Promise.prototype.then.call(this,te,ne)},Pe.prototype.thenList=function(te){var ne=this;return te.forEach((function(te){ne=ne.thenCore(te)})),ne},Pe.prototype.catch=function(te){te&&(te=te.bind(this));var ne=Promise.prototype.catch.call(this,te);return Pe.convert(ne,this)},Pe.prototype.catchExternal=function(te){return Promise.prototype.catch.call(this,te)},Pe.prototype.error=function(te){return this.then((function(){throw new Error(te)}))},Pe.prototype.using=Pe.prototype.set,Pe.prototype.saveAs=Pe.prototype.save,Pe.prototype.export=Pe.prototype.output,Pe.prototype.run=Pe.prototype.then,dn.getPageSize=function(te,ne,ie){if("object"===se(te)){var re=te;te=re.orientation,ne=re.unit||ne,ie=re.format||ie}ne=ne||"mm",ie=ie||"a4",te=(""+(te||"P")).toLowerCase();var le=(""+ie).toLowerCase(),ce={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(ne){case"pt":var de=1;break;case"mm":de=72/25.4;break;case"cm":de=72/2.54;break;case"in":de=72;break;case"px":de=.75;break;case"pc":case"em":de=12;break;case"ex":de=6;break;default:throw"Invalid unit: "+ne}if(ce.hasOwnProperty(le))var ue=ce[le][1]/de,me=ce[le][0]/de;else try{ue=ie[1],me=ie[0]}catch(te){throw new Error("Invalid format: "+ie)}if("p"===te||"portrait"===te){if(te="p",ue<me){var ge=me;me=ue,ue=ge}}else{if("l"!==te&&"landscape"!==te)throw"Invalid orientation: "+te;te="l",me<ue&&(ge=me,me=ue,ue=ge)}return{width:me,height:ue,unit:ne,k:de}},Ne.html=function(te,ne){(ne=ne||{}).callback=ne.callback||function(){},ne.html2canvas=ne.html2canvas||{},ne.html2canvas.canvas=ne.html2canvas.canvas||this.canvas,ne.jsPDF=ne.jsPDF||this,ne.jsPDF;var ie=new Pe(ne);return ne.worker?ie:ie.from(te).doCallback()},dn.API.addJS=function(te){return Ve=te,this.internal.events.subscribe("postPutResources",(function(te){Fe=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Fe+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),je=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ve+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Fe&&void 0!==je&&this.internal.out("/Names <</JavaScript "+Fe+" 0 R>>")})),this},(Ge=dn.API).events.push(["postPutResources",function(){var te=this,ne=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var ie=te.outline.render().split(/\r\n/),re=0;re<ie.length;re++){var le=ie[re],ce=ne.exec(le);if(null!=ce){var de=ce[1];te.internal.newObjectDeferredBegin(de,!1)}te.internal.write(le)}if(this.outline.createNamedDestinations){var ue=this.internal.pages.length,me=[];for(re=0;re<ue;re++){var ge=te.internal.newObject();me.push(ge);var fe=te.internal.getPageInfo(re+1);te.internal.write("<< /D["+fe.objId+" 0 R /XYZ null null null]>> endobj")}var _e=te.internal.newObject();for(te.internal.write("<< /Names [ "),re=0;re<me.length;re++)te.internal.write("(page_"+(re+1)+")"+me[re]+" 0 R");te.internal.write(" ] >>","endobj"),te.internal.newObject(),te.internal.write("<< /Dests "+_e+" 0 R"),te.internal.write(">>","endobj")}}]),Ge.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 0 R"))}]),Ge.events.push(["initialized",function(){var te=this;te.outline={createNamedDestinations:!1,root:{children:[]}},te.outline.add=function(te,ne,ie){var re={title:ne,options:ie,children:[]};return null==te&&(te=this.root),te.children.push(re),re},te.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=te,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},te.outline.genIds_r=function(ne){ne.id=te.internal.newObjectDeferred();for(var ie=0;ie<ne.children.length;ie++)this.genIds_r(ne.children[ie])},te.outline.renderRoot=function(te){this.objStart(te),this.line("/Type /Outlines"),0<te.children.length&&(this.line("/First "+this.makeRef(te.children[0])),this.line("/Last "+this.makeRef(te.children[te.children.length-1]))),this.line("/Count "+this.count_r({count:0},te)),this.objEnd()},te.outline.renderItems=function(ne){this.ctx.pdf.internal.getCoordinateString;for(var ie=this.ctx.pdf.internal.getVerticalCoordinateString,re=0;re<ne.children.length;re++){var le=ne.children[re];this.objStart(le),this.line("/Title "+this.makeString(le.title)),this.line("/Parent "+this.makeRef(ne)),0<re&&this.line("/Prev "+this.makeRef(ne.children[re-1])),re<ne.children.length-1&&this.line("/Next "+this.makeRef(ne.children[re+1])),0<le.children.length&&(this.line("/First "+this.makeRef(le.children[0])),this.line("/Last "+this.makeRef(le.children[le.children.length-1])));var ce=this.count=this.count_r({count:0},le);if(0<ce&&this.line("/Count "+ce),le.options&&le.options.pageNumber){var de=te.internal.getPageInfo(le.options.pageNumber);this.line("/Dest ["+de.objId+" 0 R /XYZ 0 "+ie(0)+" 0]")}this.objEnd()}for(re=0;re<ne.children.length;re++)le=ne.children[re],this.renderItems(le)},te.outline.line=function(te){this.ctx.val+=te+"\r\n"},te.outline.makeRef=function(te){return te.id+" 0 R"},te.outline.makeString=function(ne){return"("+te.internal.pdfEscape(ne)+")"},te.outline.objStart=function(te){this.ctx.val+="\r\n"+te.id+" 0 obj\r\n<<\r\n"},te.outline.objEnd=function(te){this.ctx.val+=">> \r\nendobj\r\n"},te.outline.count_r=function(te,ne){for(var ie=0;ie<ne.children.length;ie++)te.count++,this.count_r(te,ne.children[ie]);return te.count}}]),ze=dn.API,He=function(){var te="function"==typeof Deflater;if(!te)throw new Error("requires deflate.js for compression");return te},$e=function(te,ne,ie,re){var le=5,ce=Je;switch(re){case ze.image_compression.FAST:le=3,ce=Qe;break;case ze.image_compression.MEDIUM:le=6,ce=dt;break;case ze.image_compression.SLOW:le=9,ce=pt}te=Xe(te,ne,ie,ce);var de=new Uint8Array(qe(le)),ue=Ye(te),me=new Deflater(le),ge=me.append(te),fe=me.flush(),_e=de.length+ge.length+fe.length,be=new Uint8Array(_e+4);return be.set(de),be.set(ge,de.length),be.set(fe,de.length+ge.length),be[_e++]=ue>>>24&255,be[_e++]=ue>>>16&255,be[_e++]=ue>>>8&255,be[_e++]=255&ue,ze.arrayBufferToBinaryString(be)},qe=function(te,ne){var ie=Math.LOG2E*Math.log(32768)-8<<4|8,re=ie<<8;return re|=Math.min(3,(ne-1&255)>>1)<<6,re|=0,[ie,255&(re+=31-re%31)]},Ye=function(te,ne){for(var ie,re=1,le=0,ce=te.length,de=0;0<ce;){for(ce-=ie=ne<ce?ne:ce;le+=re+=te[de++],--ie;);re%=65521,le%=65521}return(le<<16|re)>>>0},Xe=function(te,ne,ie,re){for(var le,ce,de,ue=te.length/ne,me=new Uint8Array(te.length+ue),ge=vt(),fe=0;fe<ue;fe++){if(de=fe*ne,le=te.subarray(de,de+ne),re)me.set(re(le,ie,ce),de+fe);else{for(var _e=0,be=ge.length,Ce=[];_e<be;_e++)Ce[_e]=ge[_e](le,ie,ce);var ye=It(Ce.concat());me.set(Ce[ye],de+fe)}ce=le}return me},Ke=function(te,ne,ie){var re=Array.apply([],te);return re.unshift(0),re},Qe=function(te,ne,ie){var re,le=[],ce=0,de=te.length;for(le[0]=1;ce<de;ce++)re=te[ce-ne]||0,le[ce+1]=te[ce]-re+256&255;return le},Je=function(te,ne,ie){var re,le=[],ce=0,de=te.length;for(le[0]=2;ce<de;ce++)re=ie&&ie[ce]||0,le[ce+1]=te[ce]-re+256&255;return le},dt=function(te,ne,ie){var re,le,ce=[],de=0,ue=te.length;for(ce[0]=3;de<ue;de++)re=te[de-ne]||0,le=ie&&ie[de]||0,ce[de+1]=te[de]+256-(re+le>>>1)&255;return ce},pt=function(te,ne,ie){var re,le,ce,de,ue=[],me=0,ge=te.length;for(ue[0]=4;me<ge;me++)re=te[me-ne]||0,le=ie&&ie[me]||0,ce=ie&&ie[me-ne]||0,de=Ct(re,le,ce),ue[me+1]=te[me]-de+256&255;return ue},Ct=function(te,ne,ie){var re=te+ne-ie,le=Math.abs(re-te),ce=Math.abs(re-ne),de=Math.abs(re-ie);return le<=ce&&le<=de?te:ce<=de?ne:ie},vt=function(){return[Ke,Qe,Je,dt,pt]},It=function(te){for(var ne,ie,re,le=0,ce=te.length;le<ce;)((ne=Dt(te[le].slice(1)))<ie||!ie)&&(ie=ne,re=le),le++;return re},Dt=function(te){for(var ne=0,ie=te.length,re=0;ne<ie;)re+=Math.abs(te[ne++]);return re},ze.processPNG=function(te,ne,ie,re,le){var ce,de,ue,me,ge,fe,_e=this.color_spaces.DEVICE_RGB,be=this.decode.FLATE_DECODE,Ce=8;if(this.isArrayBuffer(te)&&(te=new Uint8Array(te)),this.isArrayBufferView(te)){if("function"!=typeof PNG||"function"!=typeof Pn)throw new Error("PNG support requires png.js and zlib.js");if(te=(ce=new PNG(te)).imgData,Ce=ce.bits,_e=ce.colorSpace,me=ce.colors,-1!==[4,6].indexOf(ce.colorType)){if(8===ce.bits)for(var ye,we=(Fe=32==ce.pixelBitlength?new Uint32Array(ce.decodePixels().buffer):16==ce.pixelBitlength?new Uint16Array(ce.decodePixels().buffer):new Uint8Array(ce.decodePixels().buffer)).length,ke=new Uint8Array(we*ce.colors),Se=new Uint8Array(we),xe=ce.pixelBitlength-ce.bits,Ee=0,Me=0;Ee<we;Ee++){for(Ne=Fe[Ee],ye=0;ye<xe;)ke[Me++]=Ne>>>ye&255,ye+=ce.bits;Se[Ee]=Ne>>>ye&255}if(16===ce.bits){we=(Fe=new Uint32Array(ce.decodePixels().buffer)).length,ke=new Uint8Array(we*(32/ce.pixelBitlength)*ce.colors),Se=new Uint8Array(we*(32/ce.pixelBitlength));for(var Ne,Re=1<ce.colors,Le=Me=Ee=0;Ee<we;)Ne=Fe[Ee++],ke[Me++]=Ne>>>0&255,Re&&(ke[Me++]=Ne>>>16&255,Ne=Fe[Ee++],ke[Me++]=Ne>>>0&255),Se[Le++]=Ne>>>16&255;Ce=8}re!==ze.image_compression.NONE&&He()?(te=$e(ke,ce.width*ce.colors,ce.colors,re),fe=$e(Se,ce.width,1,re)):(te=ke,fe=Se,be=null)}if(3===ce.colorType&&(_e=this.color_spaces.INDEXED,ge=ce.palette,ce.transparency.indexed)){var Oe=ce.transparency.indexed,Pe=0;for(Ee=0,we=Oe.length;Ee<we;++Ee)Pe+=Oe[Ee];if((Pe/=255)==we-1&&-1!==Oe.indexOf(0))ue=[Oe.indexOf(0)];else if(Pe!==we){var Fe=ce.decodePixels();for(Se=new Uint8Array(Fe.length),Ee=0,we=Fe.length;Ee<we;Ee++)Se[Ee]=Oe[Fe[Ee]];fe=$e(Se,ce.width,1)}}var je=function(te){var ne;switch(te){case ze.image_compression.FAST:ne=11;break;case ze.image_compression.MEDIUM:ne=13;break;case ze.image_compression.SLOW:ne=14;break;default:ne=12}return ne}(re);return de=be===this.decode.FLATE_DECODE?"/Predictor "+je+" /Colors "+me+" /BitsPerComponent "+Ce+" /Columns "+ce.width:"/Colors "+me+" /BitsPerComponent "+Ce+" /Columns "+ce.width,(this.isArrayBuffer(te)||this.isArrayBufferView(te))&&(te=this.arrayBufferToBinaryString(te)),(fe&&this.isArrayBuffer(fe)||this.isArrayBufferView(fe))&&(fe=this.arrayBufferToBinaryString(fe)),this.createImageInfo(te,ce.width,ce.height,_e,Ce,be,ne,ie,de,ue,ge,fe,je)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(Mt=dn.API).processGIF89A=function(te,ne,ie,re,le){var ce=new At(te),de=ce.width,ue=ce.height,me=[];ce.decodeAndBlitFrameRGBA(0,me);var ge={data:me,width:de,height:ue},fe=new _t(100).encode(ge,100);return Mt.processJPEG.call(this,fe,ne,ie,re)},Mt.processGIF87A=Mt.processGIF89A,(Nt=dn.API).processBMP=function(te,ne,ie,re,le){var ce=new Ft(te,!1),de=ce.width,ue=ce.height,me={data:ce.getData(),width:de,height:ue},ge=new _t(100).encode(me,100);return Nt.processJPEG.call(this,ge,ne,ie,re)},dn.API.setLanguage=function(te){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[te]&&(this.internal.languageSettings.languageCode=te,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Rt=dn.API,Ot=Rt.getCharWidthsArray=function(te,ne){var ie,re,le,ce=(ne=ne||{}).font||this.internal.getFont(),de=ne.fontSize||this.internal.getFontSize(),ue=ne.charSpace||this.internal.getCharSpace(),me=ne.widths?ne.widths:ce.metadata.Unicode.widths,ge=me.fof?me.fof:1,fe=ne.kerning?ne.kerning:ce.metadata.Unicode.kerning,_e=fe.fof?fe.fof:1,be=0,Ce=me[0]||ge,ye=[];for(ie=0,re=te.length;ie<re;ie++)le=te.charCodeAt(ie),"function"==typeof ce.metadata.widthOfString?ye.push((ce.metadata.widthOfGlyph(ce.metadata.characterToGlyph(le))+ue*(1e3/de)||0)/1e3):ye.push((me[le]||Ce)/ge+(fe[le]&&fe[le][be]||0)/_e),be=le;return ye},Vt=Rt.getArraySum=function(te){for(var ne=te.length,ie=0;ne;)ie+=te[--ne];return ie},Gt=Rt.getStringUnitWidth=function(te,ne){var ie=(ne=ne||{}).fontSize||this.internal.getFontSize(),re=ne.font||this.internal.getFont(),le=ne.charSpace||this.internal.getCharSpace();return"function"==typeof re.metadata.widthOfString?re.metadata.widthOfString(te,ie,le)/ie:Vt(Ot.apply(this,arguments))},zt=function(te,ne,ie,re){for(var le=[],ce=0,de=te.length,ue=0;ce!==de&&ue+ne[ce]<ie;)ue+=ne[ce],ce++;le.push(te.slice(0,ce));var me=ce;for(ue=0;ce!==de;)ue+ne[ce]>re&&(le.push(te.slice(me,ce)),ue=0,me=ce),ue+=ne[ce],ce++;return me!==ce&&le.push(te.slice(me,ce)),le},Ht=function(te,ne,ie){ie||(ie={});var re,le,ce,de,ue,me,ge=[],fe=[ge],_e=ie.textIndent||0,be=0,Ce=0,ye=te.split(" "),we=Ot.apply(this,[" ",ie])[0];if(me=-1===ie.lineIndent?ye[0].length+2:ie.lineIndent||0){var ke=Array(me).join(" "),Se=[];ye.map((function(te){1<(te=te.split(/\s*\n/)).length?Se=Se.concat(te.map((function(te,ne){return(ne&&te.length?"\n":"")+te}))):Se.push(te[0])})),ye=Se,me=Gt.apply(this,[ke,ie])}for(ce=0,de=ye.length;ce<de;ce++){var xe=0;if(re=ye[ce],me&&"\n"==re[0]&&(re=re.substr(1),xe=1),le=Ot.apply(this,[re,ie]),ne<_e+be+(Ce=Vt(le))||xe){if(ne<Ce){for(ue=zt.apply(this,[re,le,ne-(_e+be),ne]),ge.push(ue.shift()),ge=[ue.pop()];ue.length;)fe.push([ue.shift()]);Ce=Vt(le.slice(re.length-(ge[0]?ge[0].length:0)))}else ge=[re];fe.push(ge),_e=Ce+me,be=we}else ge.push(re),_e+=be+Ce,be=we}if(me)var w=function(te,ne){return(ne?ke:"")+te.join(" ")};else w=function(te){return te.join(" ")};return fe.map(w)},Rt.splitTextToSize=function(te,ne,ie){var re,le=(ie=ie||{}).fontSize||this.internal.getFontSize(),ce=function(te){var ne={0:1},ie={};if(te.widths&&te.kerning)return{widths:te.widths,kerning:te.kerning};var re=this.internal.getFont(te.fontName,te.fontStyle),le="Unicode";return re.metadata[le]?{widths:re.metadata[le].widths||ne,kerning:re.metadata[le].kerning||ie}:{font:re.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,ie);re=Array.isArray(te)?te:te.split(/\r?\n/);var de=1*this.internal.scaleFactor*ne/le;ce.textIndent=ie.textIndent?1*ie.textIndent*this.internal.scaleFactor/le:0,ce.lineIndent=ie.lineIndent;var ue,me,ge=[];for(ue=0,me=re.length;ue<me;ue++)ge=ge.concat(Ht.apply(this,[re[ue],de,ce]));return ge},Ut=dn.API,Yt={codePages:["WinAnsiEncoding"],WinAnsiEncoding:($t=function(te){for(var ne="klmnopqrstuvwxyz",ie={},re=0;re<ne.length;re++)ie[ne[re]]="0123456789abcdef"[re];var le,ce,de,ue,me,ge={},fe=1,_e=ge,be=[],Ce="",ye="",we=te.length-1;for(re=1;re!=we;)me=te[re],re+=1,"'"==me?ce=ce?(ue=ce.join(""),le):[]:ce?ce.push(me):"{"==me?(be.push([_e,ue]),_e={},ue=le):"}"==me?((de=be.pop())[0][de[1]]=_e,ue=le,_e=de[0]):"-"==me?fe=-1:ue===le?ie.hasOwnProperty(me)?(Ce+=ie[me],ue=parseInt(Ce,16)*fe,fe=1,Ce=""):Ce+=me:ie.hasOwnProperty(me)?(ye+=ie[me],_e[ue]=parseInt(ye,16)*fe,fe=1,ue=le,ye=""):ye+=me;return ge})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Wt={Unicode:{Courier:Yt,"Courier-Bold":Yt,"Courier-BoldOblique":Yt,"Courier-Oblique":Yt,Helvetica:Yt,"Helvetica-Bold":Yt,"Helvetica-BoldOblique":Yt,"Helvetica-Oblique":Yt,"Times-Roman":Yt,"Times-Bold":Yt,"Times-BoldItalic":Yt,"Times-Italic":Yt}},Kt={Unicode:{"Courier-Oblique":$t("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":$t("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":$t("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:$t("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":$t("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":$t("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:$t("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:$t("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":$t("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:$t("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":$t("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":$t("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":$t("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":$t("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}},Ut.events.push(["addFont",function(te){var ne,ie,re,le=te.font,ce="Unicode";(ne=Kt[ce][le.postScriptName])&&((ie=le.metadata[ce]?le.metadata[ce]:le.metadata[ce]={}).widths=ne.widths,ie.kerning=ne.kerning),(re=Wt[ce][le.postScriptName])&&((ie=le.metadata[ce]?le.metadata[ce]:le.metadata[ce]={}).encoding=re).codePages&&re.codePages.length&&(le.encoding=re.codePages[0])}]),Qt=dn,"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||Function("return this")(),Qt.API.events.push(["addFont",function(te){var ne=te.font,ie=te.instance;if(void 0!==ie&&ie.existsFileInVFS(ne.postScriptName)){var re=ie.getFileFromVFS(ne.postScriptName);if("string"!=typeof re)throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ne.postScriptName+"').");ne.metadata=Qt.API.TTFFont.open(ne.postScriptName,ne.fontName,re,ne.encoding),ne.metadata.Unicode=ne.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ne.metadata.glyIdsUsed=[0]}else if(!1===ne.isStandardFont)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ne.postScriptName+"').")}]),(Jt=dn.API).addSvg=function(te,ne,ie,re,le){if(void 0===ne||void 0===ie)throw new Error("addSVG needs values for 'x' and 'y'");function o(te){for(var ne=parseFloat(te[1]),ie=parseFloat(te[2]),re=[],le=3,ce=te.length;le<ce;)"c"===te[le]?(re.push([parseFloat(te[le+1]),parseFloat(te[le+2]),parseFloat(te[le+3]),parseFloat(te[le+4]),parseFloat(te[le+5]),parseFloat(te[le+6])]),le+=7):"l"===te[le]?(re.push([parseFloat(te[le+1]),parseFloat(te[le+2])]),le+=3):le+=1;return[ne,ie,re]}var ce,de,ue,me,ge,fe,_e,be,Ce=(ce=te,(ue=((be=(me=document).createElement("iframe"),ge=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(_e=(fe=me).createElement("style")).type="text/css",_e.styleSheet?_e.styleSheet.cssText=ge:_e.appendChild(fe.createTextNode(ge)),fe.getElementsByTagName("head")[0].appendChild(_e),be.name="childframe",be.setAttribute("width",0),be.setAttribute("height",0),be.setAttribute("frameborder","0"),be.setAttribute("scrolling","no"),be.setAttribute("seamless","seamless"),be.setAttribute("class","jsPDF_sillysvg_iframe"),me.body.appendChild(be),de=be).contentWindow||de.contentDocument).document).write(ce),ue.close(),ue.getElementsByTagName("svg")[0]),ye=[1,1],we=parseFloat(Ce.getAttribute("width")),ke=parseFloat(Ce.getAttribute("height"));we&&ke&&(re&&le?ye=[re/we,le/ke]:re?ye=[re/we,re/we]:le&&(ye=[le/ke,le/ke]));var Se,xe,Ee,Me,Ne=Ce.childNodes;for(Se=0,xe=Ne.length;Se<xe;Se++)(Ee=Ne[Se]).tagName&&"PATH"===Ee.tagName.toUpperCase()&&((Me=o(Ee.getAttribute("d").split(" ")))[0]=Me[0]*ye[0]+ne,Me[1]=Me[1]*ye[1]+ie,this.lines.call(this,Me[2],Me[0],Me[1],ye));return this},Jt.addSVG=Jt.addSvg,Jt.addSvgAsImage=function(te,ne,ie,re,le,ce,de,ue){if(isNaN(ne)||isNaN(ie))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(re)||isNaN(le))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var me=document.createElement("canvas");me.width=re,me.height=le;var ge=me.getContext("2d");return ge.fillStyle="#fff",ge.fillRect(0,0,me.width,me.height),canvg(me,te,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(me.toDataURL("image/jpeg",1),ne,ie,re,le,de,ue),this},dn.API.putTotalPages=function(te){var ne,ie=0;ie=parseInt(this.internal.getFont().id.substr(1),10)<15?(ne=new RegExp(te,"g"),this.internal.getNumberOfPages()):(ne=new RegExp(this.pdfEscape16(te,this.internal.getFont()),"g"),this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var re=1;re<=this.internal.getNumberOfPages();re++)for(var le=0;le<this.internal.pages[re].length;le++)this.internal.pages[re][le]=this.internal.pages[re][le].replace(ne,ie);return this},dn.API.viewerPreferences=function(te,ne){var ie;te=te||{},ne=ne||!1;var re,le,ce={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},de=Object.keys(ce),ue=[],me=0,ge=0,fe=0,_e=!0;function f(te,ne){var ie,re=!1;for(ie=0;ie<te.length;ie+=1)te[ie]===ne&&(re=!0);return re}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ce)),this.internal.viewerpreferences.isSubscribed=!1),ie=this.internal.viewerpreferences.configuration,"reset"===te||!0===ne){var be=de.length;for(fe=0;fe<be;fe+=1)ie[de[fe]].value=ie[de[fe]].defaultValue,ie[de[fe]].explicitSet=!1}if("object"===se(te))for(re in te)if(le=te[re],f(de,re)&&void 0!==le){if("boolean"===ie[re].type&&"boolean"==typeof le)ie[re].value=le;else if("name"===ie[re].type&&f(ie[re].valueSet,le))ie[re].value=le;else if("integer"===ie[re].type&&Number.isInteger(le))ie[re].value=le;else if("array"===ie[re].type){for(me=0;me<le.length;me+=1)if(_e=!0,1===le[me].length&&"number"==typeof le[me][0])ue.push(String(le[me]-1));else if(1<le[me].length){for(ge=0;ge<le[me].length;ge+=1)"number"!=typeof le[me][ge]&&(_e=!1);!0===_e&&ue.push([le[me][0]-1,le[me][1]-1].join(" "))}ie[re].value="["+ue.join(" ")+"]"}else ie[re].value=ie[re].defaultValue;ie[re].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var te,ne=[];for(te in ie)!0===ie[te].explicitSet&&("name"===ie[te].type?ne.push("/"+te+" /"+ie[te].value):ne.push("/"+te+" "+ie[te].value));0!==ne.length&&this.internal.write("/ViewerPreferences\n<<\n"+ne.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=ie,this},Zt=dn.API,rn=nn=tn="",Zt.addMetadata=function(te,ne){return nn=ne||"http://jspdf.default.namespaceuri/",tn=te,this.internal.events.subscribe("postPutResources",(function(){if(tn){var te='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+nn+'"><jspdf:metadata>',ne=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),ie=unescape(encodeURIComponent(te)),re=unescape(encodeURIComponent(tn)),le=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ce=unescape(encodeURIComponent("</x:xmpmeta>")),de=ie.length+re.length+le.length+ne.length+ce.length;rn=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+de+" >>"),this.internal.write("stream"),this.internal.write(ne+ie+re+le+ce),this.internal.write("endstream"),this.internal.write("endobj")}else rn=""})),this.internal.events.subscribe("putCatalog",(function(){rn&&this.internal.write("/Metadata "+rn+" 0 R")})),this},function(te,ne){var ie=te.API,re=ie.pdfEscape16=function(te,ne){for(var ie,re=ne.metadata.Unicode.widths,le=["","0","00","000","0000"],ce=[""],de=0,ue=te.length;de<ue;++de){if(ie=ne.metadata.characterToGlyph(te.charCodeAt(de)),ne.metadata.glyIdsUsed.push(ie),ne.metadata.toUnicode[ie]=te.charCodeAt(de),-1==re.indexOf(ie)&&(re.push(ie),re.push([parseInt(ne.metadata.widthOfGlyph(ie),10)])),"0"==ie)return ce.join("");ie=ie.toString(16),ce.push(le[4-ie.length],ie)}return ce.join("")},p=function(te){var ne,ie,re,le,ce,de,ue;for(ce="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",re=[],de=0,ue=(ie=Object.keys(te).sort((function(te,ne){return te-ne}))).length;de<ue;de++)ne=ie[de],100<=re.length&&(ce+="\n"+re.length+" beginbfchar\n"+re.join("\n")+"\nendbfchar",re=[]),le=("0000"+te[ne].toString(16)).slice(-4),ne=("0000"+(+ne).toString(16)).slice(-4),re.push("<"+ne+"><"+le+">");return re.length&&(ce+="\n"+re.length+" beginbfchar\n"+re.join("\n")+"\nendbfchar\n"),ce+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};ie.events.push(["putFont",function(ne){!function(ne,ie,re,le){if(ne.metadata instanceof te.API.TTFFont&&"Identity-H"===ne.encoding){for(var ce=ne.metadata.Unicode.widths,de=ne.metadata.subset.encode(ne.metadata.glyIdsUsed,1),ue="",me=0;me<de.length;me++)ue+=String.fromCharCode(de[me]);var ge=re();le({data:ue,addLength1:!0}),ie("endobj");var fe=re();le({data:p(ne.metadata.toUnicode),addLength1:!0}),ie("endobj");var _e=re();ie("<<"),ie("/Type /FontDescriptor"),ie("/FontName /"+ne.fontName),ie("/FontFile2 "+ge+" 0 R"),ie("/FontBBox "+te.API.PDFObject.convert(ne.metadata.bbox)),ie("/Flags "+ne.metadata.flags),ie("/StemV "+ne.metadata.stemV),ie("/ItalicAngle "+ne.metadata.italicAngle),ie("/Ascent "+ne.metadata.ascender),ie("/Descent "+ne.metadata.decender),ie("/CapHeight "+ne.metadata.capHeight),ie(">>"),ie("endobj");var be=re();ie("<<"),ie("/Type /Font"),ie("/BaseFont /"+ne.fontName),ie("/FontDescriptor "+_e+" 0 R"),ie("/W "+te.API.PDFObject.convert(ce)),ie("/CIDToGIDMap /Identity"),ie("/DW 1000"),ie("/Subtype /CIDFontType2"),ie("/CIDSystemInfo"),ie("<<"),ie("/Supplement 0"),ie("/Registry (Adobe)"),ie("/Ordering ("+ne.encoding+")"),ie(">>"),ie(">>"),ie("endobj"),ne.objectNumber=re(),ie("<<"),ie("/Type /Font"),ie("/Subtype /Type0"),ie("/ToUnicode "+fe+" 0 R"),ie("/BaseFont /"+ne.fontName),ie("/Encoding /"+ne.encoding),ie("/DescendantFonts ["+be+" 0 R]"),ie(">>"),ie("endobj"),ne.isAlreadyPutted=!0}}(ne.font,ne.out,ne.newObject,ne.putStream)}]),ie.events.push(["putFont",function(ne){!function(ne,ie,re,le){if(ne.metadata instanceof te.API.TTFFont&&"WinAnsiEncoding"===ne.encoding){ne.metadata.Unicode.widths;for(var ce=ne.metadata.rawData,de="",ue=0;ue<ce.length;ue++)de+=String.fromCharCode(ce[ue]);var me=re();le({data:de,addLength1:!0}),ie("endobj");var ge=re();le({data:p(ne.metadata.toUnicode),addLength1:!0}),ie("endobj");var fe=re();for(ie("<<"),ie("/Descent "+ne.metadata.decender),ie("/CapHeight "+ne.metadata.capHeight),ie("/StemV "+ne.metadata.stemV),ie("/Type /FontDescriptor"),ie("/FontFile2 "+me+" 0 R"),ie("/Flags 96"),ie("/FontBBox "+te.API.PDFObject.convert(ne.metadata.bbox)),ie("/FontName /"+ne.fontName),ie("/ItalicAngle "+ne.metadata.italicAngle),ie("/Ascent "+ne.metadata.ascender),ie(">>"),ie("endobj"),ne.objectNumber=re(),ue=0;ue<ne.metadata.hmtx.widths.length;ue++)ne.metadata.hmtx.widths[ue]=parseInt(ne.metadata.hmtx.widths[ue]*(1e3/ne.metadata.head.unitsPerEm));ie("<</Subtype/TrueType/Type/Font/ToUnicode "+ge+" 0 R/BaseFont/"+ne.fontName+"/FontDescriptor "+fe+" 0 R/Encoding/"+ne.encoding+" /FirstChar 29 /LastChar 255 /Widths "+te.API.PDFObject.convert(ne.metadata.hmtx.widths)+">>"),ie("endobj"),ne.isAlreadyPutted=!0}}(ne.font,ne.out,ne.newObject,ne.putStream)}]);var h=function(te){var ne,ie,le=te.text||"",ce=te.x,de=te.y,ue=te.options||{},me=te.mutex||{},ge=me.pdfEscape,fe=me.activeFontKey,_e=me.fonts,be=(me.activeFontSize,""),Ce=0,ye="",we=_e[ie=fe].encoding;if("Identity-H"!==_e[ie].encoding)return{text:le,x:ce,y:de,options:ue,mutex:me};for(ye=le,ie=fe,"[object Array]"===Object.prototype.toString.call(le)&&(ye=le[0]),Ce=0;Ce<ye.length;Ce+=1)_e[ie].metadata.hasOwnProperty("cmap")&&(ne=_e[ie].metadata.cmap.unicode.codeMap[ye[Ce].charCodeAt(0)]),ne||ye[Ce].charCodeAt(0)<256&&_e[ie].metadata.hasOwnProperty("Unicode")?be+=ye[Ce]:be+="";var ke="";return parseInt(ie.slice(1))<14||"WinAnsiEncoding"===we?ke=function(te){for(var ne="",ie=0;ie<te.length;ie++)ne+=""+te.charCodeAt(ie).toString(16);return ne}(ge(be,ie)):"Identity-H"===we&&(ke=re(be,_e[ie])),me.isHex=!0,{text:ke,x:ce,y:de,options:ue,mutex:me}};ie.events.push(["postProcessText",function(te){var ne=te.text||"",ie=te.x,re=te.y,le=te.options,ce=te.mutex,de=(le.lang,[]),ue={text:ne,x:ie,y:re,options:le,mutex:ce};if("[object Array]"===Object.prototype.toString.call(ne)){var me=0;for(me=0;me<ne.length;me+=1)"[object Array]"===Object.prototype.toString.call(ne[me])&&3===ne[me].length?de.push([h(Object.assign({},ue,{text:ne[me][0]})).text,ne[me][1],ne[me][2]]):de.push(h(Object.assign({},ue,{text:ne[me]})).text);te.text=de}else te.text=h(Object.assign({},ue,{text:ne})).text}])}(dn,"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||Function("return this")()),an=dn.API,sn=function(te){return void 0!==te&&(void 0===te.vFS&&(te.vFS={}),!0)},an.existsFileInVFS=function(te){return!!sn(this.internal)&&void 0!==this.internal.vFS[te]},an.addFileToVFS=function(te,ne){return sn(this.internal),this.internal.vFS[te]=ne,this},an.getFileFromVFS=function(te){return sn(this.internal),void 0!==this.internal.vFS[te]?this.internal.vFS[te]:null},dn.API.addHTML=function(te,ne,ie,re,le){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof ne&&(re=ne,le=ie),"function"==typeof re&&(le=re,re=null),"function"!=typeof le&&(le=function(){});var ce=this.internal,de=ce.scaleFactor,ue=ce.pageSize.getWidth(),me=ce.pageSize.getHeight();if((re=re||{}).onrendered=function(te){ne=parseInt(ne)||0,ie=parseInt(ie)||0;var ce=re.dim||{},ge=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},re.margin),fe=ce.h||Math.min(me,te.height/de),_e=ce.w||Math.min(ue,te.width/de)-ne,be=re.format||"JPEG",Ce=re.imageCompression||"SLOW";if(te.height>me-ge.top-ge.bottom&&re.pagesplit){var p=function(te,ne,ie,le,ce){var de=document.createElement("canvas");de.height=ce,de.width=le;var ue=de.getContext("2d");return ue.mozImageSmoothingEnabled=!1,ue.webkitImageSmoothingEnabled=!1,ue.msImageSmoothingEnabled=!1,ue.imageSmoothingEnabled=!1,ue.fillStyle=re.backgroundColor||"#ffffff",ue.fillRect(0,0,le,ce),ue.drawImage(te,ne,ie,le,ce,0,0,le,ce),de},ye=function(){for(var re,ce,fe=0,ye=0,we={},ke=!1;;){var Se;if(ye=0,we.top=0!==fe?ge.top:ie,we.left=0!==fe?ge.left:ne,ke=(ue-ge.left-ge.right)*de<te.width,"content"===ge.useFor?0===fe?(re=Math.min((ue-ge.left)*de,te.width),ce=Math.min((me-ge.top)*de,te.height-fe)):(re=Math.min(ue*de,te.width),ce=Math.min(me*de,te.height-fe),we.top=0):(re=Math.min((ue-ge.left-ge.right)*de,te.width),ce=Math.min((me-ge.bottom-ge.top)*de,te.height-fe)),ke)for(;;){"content"===ge.useFor&&(0===ye?re=Math.min((ue-ge.left)*de,te.width):(re=Math.min(ue*de,te.width-ye),we.left=0));var xe=[Se=p(te,ye,fe,re,ce),we.left,we.top,Se.width/de,Se.height/de,be,null,Ce];if(this.addImage.apply(this,xe),(ye+=re)>=te.width)break;this.addPage()}else xe=[Se=p(te,0,fe,re,ce),we.left,we.top,Se.width/de,Se.height/de,be,null,Ce],this.addImage.apply(this,xe);if((fe+=ce)>=te.height)break;this.addPage()}le(_e,fe,null,xe)}.bind(this);if("CANVAS"===te.nodeName){var we=new Image;we.onload=ye,we.src=te.toDataURL("image/png"),te=we}else ye()}else{var ke=Math.random().toString(35),Se=[te,ne,ie,_e,fe,be,ke,Ce];this.addImage.apply(this,Se),le(_e,fe,ke,Se)}}.bind(this),"undefined"!=typeof html2canvas&&!re.rstz)return html2canvas(te,re);if("undefined"==typeof rasterizeHTML)return null;var ge="drawDocument";return"string"==typeof te&&(ge=/^http/.test(te)?"drawURL":"drawHTML"),re.width=re.width||ue*de,rasterizeHTML[ge](te,void 0,re).then((function(te){re.onrendered(te.image)}),(function(te){le(null,te)}))},function(te){var ne,ie,re,le,ce,de,ue,me,ge,fe,_e,be,Ce,ye,we,ke,Se,xe,Ee,Me;ne=function(){return function(te){return e.prototype=te,new e};function e(){}}(),fe=function(te){var ne,ie,re,le,ce,de,ue;for(ie=0,re=te.length,ne=void 0,de=le=!1;!le&&ie!==re;)(ne=te[ie]=te[ie].trimLeft())&&(le=!0),ie++;for(ie=re-1;re&&!de&&-1!==ie;)(ne=te[ie]=te[ie].trimRight())&&(de=!0),ie--;for(ce=/\s+$/g,ue=!0,ie=0;ie!==re;)"\u2028"!=te[ie]&&(ne=te[ie].replace(/\s+/g," "),ue&&(ne=ne.trimLeft()),ne&&(ue=ce.test(ne)),te[ie]=ne),ie++;return te},be=function(te){var ne,ie,le;for(ne=void 0,ie=(le=te.split(",")).shift();!ne&&ie;)ne=re[ie.trim().toLowerCase()],ie=le.shift();return ne},Ce=function(te){var ne;return-1<(te="auto"===te?"0px":te).indexOf("em")&&!isNaN(Number(te.replace("em","")))&&(te=18.719*Number(te.replace("em",""))+"px"),-1<te.indexOf("pt")&&!isNaN(Number(te.replace("pt","")))&&(te=1.333*Number(te.replace("pt",""))+"px"),(ne=ye[te])?ne:void 0!==(ne={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[te])||(ne=parseFloat(te))?ye[te]=ne/16:(ne=te.match(/([\d\.]+)(px)/),Array.isArray(ne)&&3===ne.length?ye[te]=parseFloat(ne[1])/16:ye[te]=1)},ge=function(te){var ne,ie,re,ge,fe;return fe=te,ge=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(fe,null):fe.currentStyle?fe.currentStyle:fe.style,ie=void 0,(ne={})["font-family"]=be((re=function(te){return te=te.replace(/-\D/g,(function(te){return te.charAt(1).toUpperCase()})),ge[te]})("font-family"))||"times",ne["font-style"]=le[re("font-style")]||"normal",ne["text-align"]=ce[re("text-align")]||"left","bold"===(ie=de[re("font-weight")]||"normal")&&("normal"===ne["font-style"]?ne["font-style"]=ie:ne["font-style"]=ie+ne["font-style"]),ne["font-size"]=Ce(re("font-size"))||1,ne["line-height"]=Ce(re("line-height"))||1,ne.display="inline"===re("display")?"inline":"block",ie="block"===ne.display,ne["margin-top"]=ie&&Ce(re("margin-top"))||0,ne["margin-bottom"]=ie&&Ce(re("margin-bottom"))||0,ne["padding-top"]=ie&&Ce(re("padding-top"))||0,ne["padding-bottom"]=ie&&Ce(re("padding-bottom"))||0,ne["margin-left"]=ie&&Ce(re("margin-left"))||0,ne["margin-right"]=ie&&Ce(re("margin-right"))||0,ne["padding-left"]=ie&&Ce(re("padding-left"))||0,ne["padding-right"]=ie&&Ce(re("padding-right"))||0,ne["page-break-before"]=re("page-break-before")||"auto",ne.float=ue[re("cssFloat")]||"none",ne.clear=me[re("clear")]||"none",ne.color=re("color"),ne},we=function(te,ne,ie){var re,le,ce,de,ue;if(ce=!1,de=le=void 0,re=ie["#"+te.id])if("function"==typeof re)ce=re(te,ne);else for(le=0,de=re.length;!ce&&le!==de;)ce=re[le](te,ne),le++;if(re=ie[te.nodeName],!ce&&re)if("function"==typeof re)ce=re(te,ne);else for(le=0,de=re.length;!ce&&le!==de;)ce=re[le](te,ne),le++;for(ue="string"==typeof te.className?te.className.split(" "):[],le=0;le<ue.length;le++)if(re=ie["."+ue[le]],!ce&&re)if("function"==typeof re)ce=re(te,ne);else for(le=0,de=re.length;!ce&&le!==de;)ce=re[le](te,ne),le++;return ce},Me=function(te,ne){var ie,re,le,ce,de,ue,me,ge,fe;for(ie=[],re=[],le=0,fe=te.rows[0].cells.length,me=te.clientWidth;le<fe;)ge=te.rows[0].cells[le],re[le]={name:ge.textContent.toLowerCase().replace(/\s+/g,""),prompt:ge.textContent.replace(/\r?\n/g,""),width:ge.clientWidth/me*ne.pdf.internal.pageSize.getWidth()},le++;for(le=1;le<te.rows.length;){for(ue=te.rows[le],de={},ce=0;ce<ue.cells.length;)de[re[ce].name]=ue.cells[ce].textContent.replace(/\r?\n/g,""),ce++;ie.push(de),le++}return{rows:ie,headers:re}};var Ne={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},Re=1;ie=function(te,re,le){var ce,de,ue,me,fe,_e,be,Ce;for(de=te.childNodes,ce=void 0,(fe="block"===(ue=ge(te)).display)&&(re.setBlockBoundary(),re.setBlockStyle(ue)),me=0,_e=de.length;me<_e;){if("object"===se(ce=de[me])){if(re.executeWatchFunctions(ce),1===ce.nodeType&&"HEADER"===ce.nodeName){var ye=ce,Se=re.pdf.margins_doc.top;re.pdf.internal.events.subscribe("addPage",(function(te){re.y=Se,ie(ye,re,le),re.pdf.margins_doc.top=re.y+10,re.y+=10}),!1)}if(8===ce.nodeType&&"#comment"===ce.nodeName)~ce.textContent.indexOf("ADD_PAGE")&&(re.pdf.addPage(),re.y=re.pdf.margins_doc.top);else if(1!==ce.nodeType||Ne[ce.nodeName])if(3===ce.nodeType){var xe=ce.nodeValue;if(ce.nodeValue&&"LI"===ce.parentNode.nodeName)if("OL"===ce.parentNode.parentNode.nodeName)xe=Re+++". "+xe;else{var Ee=ue["font-size"],Le=(3-.75*Ee)*re.pdf.internal.scaleFactor,Oe=.75*Ee*re.pdf.internal.scaleFactor,Pe=1.74*Ee/re.pdf.internal.scaleFactor;Ce=function(te,ne){this.pdf.circle(te+Le,ne+Oe,Pe,"FD")}}16&ce.ownerDocument.body.compareDocumentPosition(ce)&&re.addText(xe,ue)}else"string"==typeof ce&&re.addText(ce,ue);else{var Fe;if("IMG"===ce.nodeName){var je=ce.getAttribute("src");Fe=ke[re.pdf.sHashCode(je)||je]}if(Fe){re.pdf.internal.pageSize.getHeight()-re.pdf.margins_doc.bottom<re.y+ce.height&&re.y>re.pdf.margins_doc.top&&(re.pdf.addPage(),re.y=re.pdf.margins_doc.top,re.executeWatchFunctions(ce));var Ve=ge(ce),Ge=re.x,ze=12/re.pdf.internal.scaleFactor,He=(Ve["margin-left"]+Ve["padding-left"])*ze,$e=(Ve["margin-right"]+Ve["padding-right"])*ze,qe=(Ve["margin-top"]+Ve["padding-top"])*ze,Ye=(Ve["margin-bottom"]+Ve["padding-bottom"])*ze;void 0!==Ve.float&&"right"===Ve.float?Ge+=re.settings.width-ce.width-$e:Ge+=He,re.pdf.addImage(Fe,Ge,re.y+qe,ce.width,ce.height),Fe=void 0,"right"===Ve.float||"left"===Ve.float?(re.watchFunctions.push(function(te,ne,ie,le){return re.y>=ne?(re.x+=te,re.settings.width+=ie,!0):!!(le&&1===le.nodeType&&!Ne[le.nodeName]&&re.x+le.width>re.pdf.margins_doc.left+re.pdf.margins_doc.width)&&(re.x+=te,re.y=ne,re.settings.width+=ie,!0)}.bind(this,"left"===Ve.float?-ce.width-He-$e:0,re.y+ce.height+qe+Ye,ce.width)),re.watchFunctions.push(function(te,ne,ie){return!(re.y<te&&ne===re.pdf.internal.getNumberOfPages())||1===ie.nodeType&&"both"===ge(ie).clear&&(re.y=te,!0)}.bind(this,re.y+ce.height,re.pdf.internal.getNumberOfPages())),re.settings.width-=ce.width+He+$e,"left"===Ve.float&&(re.x+=ce.width+He+$e)):re.y+=ce.height+qe+Ye}else if("TABLE"===ce.nodeName)be=Me(ce,re),re.y+=10,re.pdf.table(re.x,re.y,be.rows,be.headers,{autoSize:!1,printHeaders:le.printHeaders,margins:re.pdf.margins_doc,css:ge(ce)}),re.y=re.pdf.lastCellPos.y+re.pdf.lastCellPos.h+20;else if("OL"===ce.nodeName||"UL"===ce.nodeName)Re=1,we(ce,re,le)||ie(ce,re,le),re.y+=10;else if("LI"===ce.nodeName){var Xe=re.x;re.x+=20/re.pdf.internal.scaleFactor,re.y+=3,we(ce,re,le)||ie(ce,re,le),re.x=Xe}else"BR"===ce.nodeName?(re.y+=ue["font-size"]*re.pdf.internal.scaleFactor,re.addText("\u2028",ne(ue))):we(ce,re,le)||ie(ce,re,le)}}me++}if(le.outY=re.y,fe)return re.setBlockBoundary(Ce)},ke={},Se=function(te,ne,ie,re){var le,ce=te.getElementsByTagName("img"),de=ce.length,ue=0;function l(){ne.pdf.internal.events.publish("imagesLoaded"),re(le)}function h(te,ie,re){if(te){var ce=new Image;le=++ue,ce.crossOrigin="",ce.onerror=ce.onload=function(){if(ce.complete&&(0===ce.src.indexOf("data:image/")&&(ce.width=ie||ce.width||0,ce.height=re||ce.height||0),ce.width+ce.height)){var le=ne.pdf.sHashCode(te)||te;ke[le]=ke[le]||ce}--ue||l()},ce.src=te}}for(;de--;)h(ce[de].getAttribute("src"),ce[de].width,ce[de].height);return ue||l()},xe=function(te,ne,re){var le=te.getElementsByTagName("footer");if(0<le.length){le=le[0];var ce=ne.pdf.internal.write,de=ne.y;ne.pdf.internal.write=function(){},ie(le,ne,re);var ue=Math.ceil(ne.y-de)+5;ne.y=de,ne.pdf.internal.write=ce,ne.pdf.margins_doc.bottom+=ue;for(var r=function(te){var ce=void 0!==te?te.pageNumber:1,de=ne.y;ne.y=ne.pdf.internal.pageSize.getHeight()-ne.pdf.margins_doc.bottom,ne.pdf.margins_doc.bottom-=ue;for(var me=le.getElementsByTagName("span"),ge=0;ge<me.length;++ge)-1<(" "+me[ge].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(me[ge].innerHTML=ce),-1<(" "+me[ge].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(me[ge].innerHTML="###jsPDFVarTotalPages###");ie(le,ne,re),ne.pdf.margins_doc.bottom+=ue,ne.y=de},me=le.getElementsByTagName("span"),ge=0;ge<me.length;++ge)-1<(" "+me[ge].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&ne.pdf.internal.events.subscribe("htmlRenderingFinished",ne.pdf.putTotalPages.bind(ne.pdf,"###jsPDFVarTotalPages###"),!0);ne.pdf.internal.events.subscribe("addPage",r,!1),r(),Ne.FOOTER=1}},Ee=function(te,ne,re,le,ce,de){if(!ne)return!1;var ue,me,ge,fe;"string"==typeof ne||ne.parentNode||(ne=""+ne.innerHTML),"string"==typeof ne&&(ue=ne.replace(/<\/?script[^>]*?>/gi,""),fe="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(ge=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",ge.innerHTML='<iframe style="height:1px;width:1px" name="'+fe+'" />',document.body.appendChild(ge),(me=window.frames[fe]).document.open(),me.document.writeln(ue),me.document.close(),ne=me.document.body);var be,Ce=new _e(te,re,le,ce);return Se.call(this,ne,Ce,ce.elementHandlers,(function(te){xe(ne,Ce,ce.elementHandlers),ie(ne,Ce,ce.elementHandlers),Ce.pdf.internal.events.publish("htmlRenderingFinished"),be=Ce.dispose(),"function"==typeof de?de(be):te&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")})),be||{x:Ce.x,y:Ce.y}},(_e=function(te,ne,ie,re){return this.pdf=te,this.x=ne,this.y=ie,this.settings=re,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},_e.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},_e.prototype.executeWatchFunctions=function(te){var ne=!1,ie=[];if(0<this.watchFunctions.length){for(var re=0;re<this.watchFunctions.length;++re)!0===this.watchFunctions[re](te)?ne=!0:ie.push(this.watchFunctions[re]);this.watchFunctions=ie}return ne},_e.prototype.splitFragmentsIntoLines=function(te,ie){var re,le,ce,de,ue,me,ge,fe,_e,be,Ce,ye,we,ke;for(be=this.pdf.internal.scaleFactor,de={},me=ge=fe=ke=ue=ce=_e=le=void 0,ye=[Ce=[]],re=0,we=this.settings.width;te.length;)if(ue=te.shift(),ke=ie.shift(),ue)if((ce=de[(le=ke["font-family"])+(_e=ke["font-style"])])||(ce=this.pdf.internal.getFont(le,_e).metadata.Unicode,de[le+_e]=ce),fe={widths:ce.widths,kerning:ce.kerning,fontSize:12*ke["font-size"],textIndent:re},ge=this.pdf.getStringUnitWidth(ue,fe)*fe.fontSize/be,"\u2028"==ue)Ce=[],ye.push(Ce);else if(we<re+ge){for(me=this.pdf.splitTextToSize(ue,we,fe),Ce.push([me.shift(),ke]);me.length;)Ce=[[me.shift(),ke]],ye.push(Ce);re=this.pdf.getStringUnitWidth(Ce[0][0],fe)*fe.fontSize/be}else Ce.push([ue,ke]),re+=ge;if(void 0!==ke["text-align"]&&("center"===ke["text-align"]||"right"===ke["text-align"]||"justify"===ke["text-align"]))for(var Se=0;Se<ye.length;++Se){var xe=this.pdf.getStringUnitWidth(ye[Se][0][0],fe)*fe.fontSize/be;0<Se&&(ye[Se][0][1]=ne(ye[Se][0][1]));var Ee=we-xe;if("right"===ke["text-align"])ye[Se][0][1]["margin-left"]=Ee;else if("center"===ke["text-align"])ye[Se][0][1]["margin-left"]=Ee/2;else if("justify"===ke["text-align"]){var Me=ye[Se][0][0].split(" ").length-1;ye[Se][0][1]["word-spacing"]=Ee/Me,Se===ye.length-1&&(ye[Se][0][1]["word-spacing"]=0)}}return ye},_e.prototype.RenderTextFragment=function(te,ne){var ie,re;re=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(ne.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),re=Math.max(re,ne["line-height"],ne["font-size"]),this.pdf.internal.write(0,(-12*re).toFixed(2),"Td")),ie=this.pdf.internal.getFont(ne["font-family"],ne["font-style"]);var le=this.getPdfColor(ne.color);le!==this.lastTextColor&&(this.pdf.internal.write(le),this.lastTextColor=le),void 0!==ne["word-spacing"]&&0<ne["word-spacing"]&&this.pdf.internal.write(ne["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+ie.id,(12*ne["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(te)+") Tj"),void 0!==ne["word-spacing"]&&this.pdf.internal.write(0,"Tw")},_e.prototype.getPdfColor=function(te){var ne,ie,re,le=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(te);if(null!=le)ne=parseInt(le[1]),ie=parseInt(le[2]),re=parseInt(le[3]);else{if("string"==typeof te&&"#"!=te.charAt(0)){var ce=new RGBColor(te);te=ce.ok?ce.toHex():"#000000"}ne=te.substring(1,3),ne=parseInt(ne,16),ie=te.substring(3,5),ie=parseInt(ie,16),re=te.substring(5,7),re=parseInt(re,16)}if("string"==typeof ne&&/^#[0-9A-Fa-f]{6}$/.test(ne)){var de=parseInt(ne.substr(1),16);ne=de>>16&255,ie=de>>8&255,re=255&de}var ue=this.f3;return 0===ne&&0===ie&&0===re||void 0===ie?ue(ne/255)+" g":[ue(ne/255),ue(ie/255),ue(re/255),"rg"].join(" ")},_e.prototype.f3=function(te){return te.toFixed(3)},_e.prototype.renderParagraph=function(te){var ne,ie,re,le,ce,de,ue,me,ge,_e,be,Ce,ye;if(re=fe(this.paragraph.text),Ce=this.paragraph.style,ne=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:ne},re.join("").trim()){ue=this.splitFragmentsIntoLines(re,Ce),me=de=void 0,ie=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,be=(Math.max((ne["margin-top"]||0)-this.priorMarginBottom,0)+(ne["padding-top"]||0))*ie,_e=((ne["margin-bottom"]||0)+(ne["padding-bottom"]||0))*ie,this.priorMarginBottom=ne["margin-bottom"]||0,"always"===ne["page-break-before"]&&(this.pdf.addPage(),this.y=0,be=((ne["margin-top"]||0)+(ne["padding-top"]||0))*ie),ge=this.pdf.internal.write,ce=le=void 0,this.y+=be,ge("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var we=0;ue.length;){for(le=me=0,ce=(de=ue.shift()).length;le!==ce;)de[le][0].trim()&&(me=Math.max(me,de[le][1]["line-height"],de[le][1]["font-size"]),ye=7*de[le][1]["font-size"]),le++;var ke=0,Se=0;for(void 0!==de[0][1]["margin-left"]&&0<de[0][1]["margin-left"]&&(ke=(Se=this.pdf.internal.getCoordinateString(de[0][1]["margin-left"]))-we,we=Se),ge(ke+Math.max(ne["margin-left"]||0,0)*ie,(-12*me).toFixed(2),"Td"),le=0,ce=de.length;le!==ce;)de[le][0]&&this.RenderTextFragment(de[le][0],de[le][1]),le++;if(this.y+=me*ie,this.executeWatchFunctions(de[0][1])&&0<ue.length){var xe=[],Ee=[];ue.forEach((function(te){for(var ne=0,ie=te.length;ne!==ie;)te[ne][0]&&(xe.push(te[ne][0]+" "),Ee.push(te[ne][1])),++ne})),ue=this.splitFragmentsIntoLines(fe(xe),Ee),ge("ET","Q"),ge("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return te&&"function"==typeof te&&te.call(this,this.x-9,this.y-ye/2),ge("ET","Q"),this.y+=_e}},_e.prototype.setBlockBoundary=function(te){return this.renderParagraph(te)},_e.prototype.setBlockStyle=function(te){return this.paragraph.blockstyle=te},_e.prototype.addText=function(te,ne){return this.paragraph.text.push(te),this.paragraph.style.push(ne)},re={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},de={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},le={normal:"normal",italic:"italic",oblique:"italic"},ce={left:"left",right:"right",center:"center",justify:"justify"},ue={none:"none",right:"right",left:"left"},me={none:"none",both:"both"},ye={normal:1},te.fromHTML=function(te,ne,ie,re,le,ce){return this.margins_doc=ce||{top:0,bottom:0},re||(re={}),re.elementHandlers||(re.elementHandlers={}),Ee(this,te,isNaN(ne)?4:ne,isNaN(ie)?4:ie,re,le)}}(dn.API),dn.API,("undefined"!=typeof window&&window||"undefined"!=typeof global&&global).html2pdf=function(te,ne,ie){var re=ne.canvas;if(re){var le,ce;if((re.pdf=ne).annotations={_nameMap:[],createAnnotation:function(te,ie){var re,le=ne.context2d._wrapX(ie.left),ce=ne.context2d._wrapY(ie.top),de=(ne.context2d._page(ie.top),te.indexOf("#"));re=0<=de?{name:te.substring(de+1)}:{url:te},ne.link(le,ce,ie.right-ie.left,ie.bottom-ie.top,re)},setName:function(te,ie){var re=ne.context2d._wrapX(ie.left),le=ne.context2d._wrapY(ie.top),ce=ne.context2d._page(ie.top);this._nameMap[te]={page:ce,x:re,y:le}}},re.annotations=ne.annotations,ne.context2d._pageBreakAt=function(te){this.pageBreaks.push(te)},ne.context2d._gotoPage=function(te){for(;ne.internal.getNumberOfPages()<te;)ne.addPage();ne.setPage(te)},"string"==typeof te){te=te.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");var de,ue,me=document.createElement("iframe");document.body.appendChild(me),null!=(de=me.contentDocument)&&null!=de||(de=me.contentWindow.document),de.open(),de.write(te),de.close(),le=de.body,ue=de.body||{},te=de.documentElement||{},ce=Math.max(ue.scrollHeight,ue.offsetHeight,te.clientHeight,te.scrollHeight,te.offsetHeight)}else ue=(le=te).body||{},ce=Math.max(ue.scrollHeight,ue.offsetHeight,te.clientHeight,te.scrollHeight,te.offsetHeight);var ge={async:!0,allowTaint:!0,backgroundColor:"#ffffff",canvas:re,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1,windowHeight:ce=ne.internal.pageSize.getHeight(),scrollY:ce};ne.context2d.pageWrapYEnabled=!0,ne.context2d.pageWrapY=ne.internal.pageSize.getHeight(),html2canvas(le,ge).then((function(te){ie&&(me&&me.parentElement.removeChild(me),ie(ne))}))}else alert("jsPDF canvas plugin not installed")},window.tmp=html2pdf,function(te){var ne=te.BlobBuilder||te.WebKitBlobBuilder||te.MSBlobBuilder||te.MozBlobBuilder;te.URL=te.URL||te.webkitURL||function(te,ne){return(ne=document.createElement("a")).href=te,ne};var ie=te.Blob,re=URL.createObjectURL,le=URL.revokeObjectURL,ce=te.Symbol&&te.Symbol.toStringTag,de=!1,ue=!1,me=!!te.ArrayBuffer,ge=ne&&ne.prototype.append&&ne.prototype.getBlob;try{de=2===new Blob(["ä"]).size,ue=2===new Blob([new Uint8Array([1,2])]).size}catch(de){}function a(te){return te.map((function(te){if(te.buffer instanceof ArrayBuffer){var ne=te.buffer;if(te.byteLength!==ne.byteLength){var ie=new Uint8Array(te.byteLength);ie.set(new Uint8Array(ne,te.byteOffset,te.byteLength)),ne=ie.buffer}return ne}return te}))}function s(te,ie){ie=ie||{};var re=new ne;return a(te).forEach((function(te){re.append(te)})),ie.type?re.getBlob(ie.type):re.getBlob()}function l(te,ne){return new ie(a(te),ne||{})}if(te.Blob&&(s.prototype=Blob.prototype,l.prototype=Blob.prototype),ce)try{File.prototype[ce]="File",Blob.prototype[ce]="Blob",FileReader.prototype[ce]="FileReader"}catch(de){}function h(){var ne=!!te.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,ie=te.XMLHttpRequest&&te.XMLHttpRequest.prototype.send;ne&&ie&&(XMLHttpRequest.prototype.send=function(te){te instanceof Blob&&this.setRequestHeader("Content-Type",te.type),ie.call(this,te)});try{new File([],"")}catch(ne){try{var re=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();te.File=re}catch(ne){re=function(te,ne,ie){var re=new Blob(te,ie),le=ie&&void 0!==ie.lastModified?new Date(ie.lastModified):new Date;return re.name=ne,re.lastModifiedDate=le,re.lastModified=+le,re.toString=function(){return"[object File]"},ce&&(re[ce]="File"),re},te.File=re}}}de?(h(),te.Blob=ue?te.Blob:l):ge?(h(),te.Blob=s):function(){function a(te){for(var ne=[],ie=0;ie<te.length;ie++){var re=te.charCodeAt(ie);re<128?ne.push(re):re<2048?ne.push(192|re>>6,128|63&re):re<55296||57344<=re?ne.push(224|re>>12,128|re>>6&63,128|63&re):(ie++,re=65536+((1023&re)<<10|1023&te.charCodeAt(ie)),ne.push(240|re>>18,128|re>>12&63,128|re>>6&63,128|63&re))}return ne}function e(te){var ne,ie,re,le,ce,de;for(ne="",re=te.length,ie=0;ie<re;)switch((le=te[ie++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:ne+=String.fromCharCode(le);break;case 12:case 13:ce=te[ie++],ne+=String.fromCharCode((31&le)<<6|63&ce);break;case 14:ce=te[ie++],de=te[ie++],ne+=String.fromCharCode((15&le)<<12|(63&ce)<<6|(63&de)<<0)}return ne}function s(te){for(var ne=new Array(te.byteLength),ie=new Uint8Array(te),re=ne.length;re--;)ne[re]=ie[re];return ne}function n(te){for(var ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ie=[],re=0;re<te.length;re+=3){var le=te[re],ce=re+1<te.length,de=ce?te[re+1]:0,ue=re+2<te.length,me=ue?te[re+2]:0,ge=le>>2,fe=(3&le)<<4|de>>4,_e=(15&de)<<2|me>>6,be=63&me;ue||(be=64,ce||(_e=64)),ie.push(ne[ge],ne[fe],ne[_e],ne[be])}return ie.join("")}var ne=Object.create||function(te){function e(){}return e.prototype=te,new e};if(me)var ie=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ce=ArrayBuffer.isView||function(te){return te&&-1<ie.indexOf(Object.prototype.toString.call(te))};function h(te,ne){for(var ie=0,re=(te=te||[]).length;ie<re;ie++){var le=te[ie];le instanceof h?te[ie]=le._buffer:"string"==typeof le?te[ie]=a(le):me&&(ArrayBuffer.prototype.isPrototypeOf(le)||ce(le))?te[ie]=s(le):me&&(de=le)&&DataView.prototype.isPrototypeOf(de)?te[ie]=s(le.buffer):te[ie]=a(String(le))}var de;this._buffer=[].concat.apply([],te),this.size=this._buffer.length,this.type=ne&&ne.type||""}function i(te,ne,ie){var re=h.call(this,te,ie=ie||{})||this;return re.name=ne,re.lastModifiedDate=ie.lastModified?new Date(ie.lastModified):new Date,re.lastModified=+re.lastModifiedDate,re}if(h.prototype.slice=function(te,ne,ie){return new h([this._buffer.slice(te||0,ne||this._buffer.length)],{type:ie})},h.prototype.toString=function(){return"[object Blob]"},(i.prototype=ne(h.prototype)).constructor=i,Object.setPrototypeOf)Object.setPrototypeOf(i,h);else try{i.__proto__=h}catch(ne){}function o(){if(!(this instanceof o))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var te=document.createDocumentFragment();this.addEventListener=te.addEventListener,this.dispatchEvent=function(ne){var ie=this["on"+ne.type];"function"==typeof ie&&ie(ne),te.dispatchEvent(ne)},this.removeEventListener=te.removeEventListener}function u(te,ne,ie){if(!(ne instanceof h))throw new TypeError("Failed to execute '"+ie+"' on 'FileReader': parameter 1 is not of type 'Blob'.");te.result="",setTimeout((function(){this.readyState=o.LOADING,te.dispatchEvent(new Event("load")),te.dispatchEvent(new Event("loadend"))}))}i.prototype.toString=function(){return"[object File]"},o.EMPTY=0,o.LOADING=1,o.DONE=2,o.prototype.error=null,o.prototype.onabort=null,o.prototype.onerror=null,o.prototype.onload=null,o.prototype.onloadend=null,o.prototype.onloadstart=null,o.prototype.onprogress=null,o.prototype.readAsDataURL=function(te){u(this,te,"readAsDataURL"),this.result="data:"+te.type+";base64,"+n(te._buffer)},o.prototype.readAsText=function(te){u(this,te,"readAsText"),this.result=e(te._buffer)},o.prototype.readAsArrayBuffer=function(te){u(this,te,"readAsText"),this.result=te._buffer.slice()},o.prototype.abort=function(){},URL.createObjectURL=function(te){return te instanceof h?"data:"+te.type+";base64,"+n(te._buffer):re.call(URL,te)},URL.revokeObjectURL=function(te){le&&le.call(URL,te)};var de=te.XMLHttpRequest&&te.XMLHttpRequest.prototype.send;de&&(XMLHttpRequest.prototype.send=function(te){te instanceof h?(this.setRequestHeader("Content-Type",te.type),de.call(this,e(te._buffer))):de.call(this,te)}),te.FileReader=o,te.File=i,te.Blob=h}()}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var un,pn,hn,fn,_n,bn,yn,wn,kn,In,Tn,Dn,xn,En,Rn,Ln=Ln||function(te){if(!(void 0===te||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var ne=te.document,l=function(){return te.URL||te.webkitURL||te},ie=ne.createElementNS("http://www.w3.org/1999/xhtml","a"),re="download"in ie,le=/constructor/i.test(te.HTMLElement)||te.safari,ce=/CriOS\/[\d]+/.test(navigator.userAgent),de=te.setImmediate||te.setTimeout,d=function(te){de((function(){throw te}),0)},g=function(te){setTimeout((function(){"string"==typeof te?l().revokeObjectURL(te):te.remove()}),4e4)},m=function(te){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(te.type)?new Blob([String.fromCharCode(65279),te],{type:te.type}):te},r=function(ne,ue,me){me||(ne=m(ne));var ge,fe=this,_e="application/octet-stream"===ne.type,a=function(){!function(te,ne,ie){for(var re=(ne=[].concat(ne)).length;re--;){var le=te["on"+ne[re]];if("function"==typeof le)try{le.call(te,ie||te)}catch(te){d(te)}}}(fe,"writestart progress write writeend".split(" "))};if(fe.readyState=fe.INIT,re)return ge=l().createObjectURL(ne),void de((function(){var te,ne;ie.href=ge,ie.download=ue,te=ie,ne=new MouseEvent("click"),te.dispatchEvent(ne),a(),g(ge),fe.readyState=fe.DONE}),0);!function(){if((ce||_e&&le)&&te.FileReader){var ie=new FileReader;return ie.onloadend=function(){var ne=ce?ie.result:ie.result.replace(/^data:[^;]*;/,"data:attachment/file;");te.open(ne,"_blank")||(te.location.href=ne),ne=void 0,fe.readyState=fe.DONE,a()},ie.readAsDataURL(ne),fe.readyState=fe.INIT}ge||(ge=l().createObjectURL(ne)),_e?te.location.href=ge:te.open(ge,"_blank")||(te.location.href=ge),fe.readyState=fe.DONE,a(),g(ge)}()},ue=r.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(te,ne,ie){return ne=ne||te.name||"download",ie||(te=m(te)),navigator.msSaveOrOpenBlob(te,ne)}:(ue.abort=function(){},ue.readyState=ue.INIT=0,ue.WRITING=1,ue.DONE=2,ue.error=ue.onwritestart=ue.onprogress=ue.onwrite=ue.onabort=ue.onerror=ue.onwriteend=null,function(te,ne,ie){return new r(te,ne||te.name||"download",ie)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0);function At(te){var ne=0;if(71!==te[ne++]||73!==te[ne++]||70!==te[ne++]||56!==te[ne++]||56!=(te[ne++]+1&253)||97!==te[ne++])throw"Invalid GIF 87a/89a header.";var ie=te[ne++]|te[ne++]<<8,re=te[ne++]|te[ne++]<<8,le=te[ne++],ce=le>>7,de=1<<1+(7&le);te[ne++],te[ne++];var ue=null;ce&&(ue=ne,ne+=3*de);var me=!0,ge=[],fe=0,_e=null,be=0,Ce=null;for(this.width=ie,this.height=re;me&&ne<te.length;)switch(te[ne++]){case 33:switch(te[ne++]){case 255:if(11!==te[ne]||78==te[ne+1]&&69==te[ne+2]&&84==te[ne+3]&&83==te[ne+4]&&67==te[ne+5]&&65==te[ne+6]&&80==te[ne+7]&&69==te[ne+8]&&50==te[ne+9]&&46==te[ne+10]&&48==te[ne+11]&&3==te[ne+12]&&1==te[ne+13]&&0==te[ne+16])ne+=14,Ce=te[ne++]|te[ne++]<<8,ne++;else for(ne+=12;0!==(Oe=te[ne++]);)ne+=Oe;break;case 249:if(4!==te[ne++]||0!==te[ne+4])throw"Invalid graphics extension block.";var ye=te[ne++];fe=te[ne++]|te[ne++]<<8,_e=te[ne++],0==(1&ye)&&(_e=null),be=ye>>2&7,ne++;break;case 254:for(;0!==(Oe=te[ne++]);)ne+=Oe;break;default:throw"Unknown graphic control label: 0x"+te[ne-1].toString(16)}break;case 44:var we=te[ne++]|te[ne++]<<8,ke=te[ne++]|te[ne++]<<8,Se=te[ne++]|te[ne++]<<8,xe=te[ne++]|te[ne++]<<8,Ee=te[ne++],Me=Ee>>6&1,Ne=ue,Re=!1;Ee>>7&&(Re=!0,Ne=ne,ne+=3*(1<<1+(7&Ee)));var Le=ne;for(ne++;;){var Oe;if(0===(Oe=te[ne++]))break;ne+=Oe}ge.push({x:we,y:ke,width:Se,height:xe,has_local_palette:Re,palette_offset:Ne,data_offset:Le,data_length:ne-Le,transparent_index:_e,interlaced:!!Me,delay:fe,disposal:be});break;case 59:me=!1;break;default:throw"Unknown gif block: 0x"+te[ne-1].toString(16)}this.numFrames=function(){return ge.length},this.loopCount=function(){return Ce},this.frameInfo=function(te){if(te<0||te>=ge.length)throw"Frame index out of range.";return ge[te]},this.decodeAndBlitFrameBGRA=function(ne,re){var le=this.frameInfo(ne),ce=le.width*le.height,de=new Uint8Array(ce);St(te,le.data_offset,de,ce);var ue=le.palette_offset,me=le.transparent_index;null===me&&(me=256);var ge=le.width,fe=ie-ge,_e=ge,be=4*(le.y*ie+le.x),Ce=4*((le.y+le.height)*ie+le.x),ye=be,we=4*fe;!0===le.interlaced&&(we+=4*(ge+fe)*7);for(var ke=8,Se=0,xe=de.length;Se<xe;++Se){var Ee=de[Se];if(0===_e&&(_e=ge,Ce<=(ye+=we)&&(we=fe+4*(ge+fe)*(ke-1),ye=be+(ge+fe)*(ke<<1),ke>>=1)),Ee===me)ye+=4;else{var Me=te[ue+3*Ee],Ne=te[ue+3*Ee+1],Re=te[ue+3*Ee+2];re[ye++]=Re,re[ye++]=Ne,re[ye++]=Me,re[ye++]=255}--_e}},this.decodeAndBlitFrameRGBA=function(ne,re){var le=this.frameInfo(ne),ce=le.width*le.height,de=new Uint8Array(ce);St(te,le.data_offset,de,ce);var ue=le.palette_offset,me=le.transparent_index;null===me&&(me=256);var ge=le.width,fe=ie-ge,_e=ge,be=4*(le.y*ie+le.x),Ce=4*((le.y+le.height)*ie+le.x),ye=be,we=4*fe;!0===le.interlaced&&(we+=4*(ge+fe)*7);for(var ke=8,Se=0,xe=de.length;Se<xe;++Se){var Ee=de[Se];if(0===_e&&(_e=ge,Ce<=(ye+=we)&&(we=fe+4*(ge+fe)*(ke-1),ye=be+(ge+fe)*(ke<<1),ke>>=1)),Ee===me)ye+=4;else{var Me=te[ue+3*Ee],Ne=te[ue+3*Ee+1],Re=te[ue+3*Ee+2];re[ye++]=Me,re[ye++]=Ne,re[ye++]=Re,re[ye++]=255}--_e}}}function St(te,ne,ie,re){for(var le=te[ne++],ce=1<<le,de=ce+1,ue=de+1,me=le+1,ge=(1<<me)-1,fe=0,_e=0,be=0,Ce=te[ne++],ye=new Int32Array(4096),we=null;;){for(;fe<16&&0!==Ce;)_e|=te[ne++]<<fe,fe+=8,1===Ce?Ce=te[ne++]:--Ce;if(fe<me)break;var ke=_e&ge;if(_e>>=me,fe-=me,ke!==ce){if(ke===de)break;for(var Se=ke<ue?ke:we,xe=0,Ee=Se;ce<Ee;)Ee=ye[Ee]>>8,++xe;var Me=Ee;if(re<be+xe+(Se!==ke?1:0))return void console.log("Warning, gif stream longer than expected.");ie[be++]=Me;var Ne=be+=xe;for(Se!==ke&&(ie[be++]=Me),Ee=Se;xe--;)Ee=ye[Ee],ie[--Ne]=255&Ee,Ee>>=8;null!==we&&ue<4096&&(ye[ue++]=we<<8|Me,ge+1<=ue&&me<12&&(++me,ge=ge<<1|1)),we=ke}else ue=de+1,ge=(1<<(me=le+1))-1,we=null}return be!==re&&console.log("Warning, gif stream shorter than expected."),ie}try{ne.GifWriter=function(te,ne,ie,re){var le=0,ce=void 0===(re=void 0===re?{}:re).loop?null:re.loop,de=void 0===re.palette?null:re.palette;if(ne<=0||ie<=0||65535<ne||65535<ie)throw"Width/Height invalid.";function b(te){var ne=te.length;if(ne<2||256<ne||ne&ne-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return ne}te[le++]=71,te[le++]=73,te[le++]=70,te[le++]=56,te[le++]=57,te[le++]=97;var ue=0,me=0;if(null!==de){for(var ge=b(de);ge>>=1;)++ue;if(ge=1<<ue,--ue,void 0!==re.background){if(ge<=(me=re.background))throw"Background index out of range.";if(0===me)throw"Background index explicitly passed as 0."}}if(te[le++]=255&ne,te[le++]=ne>>8&255,te[le++]=255&ie,te[le++]=ie>>8&255,te[le++]=(null!==de?128:0)|ue,te[le++]=me,te[le++]=0,null!==de)for(var fe=0,_e=de.length;fe<_e;++fe){var be=de[fe];te[le++]=be>>16&255,te[le++]=be>>8&255,te[le++]=255&be}if(null!==ce){if(ce<0||65535<ce)throw"Loop count invalid.";te[le++]=33,te[le++]=255,te[le++]=11,te[le++]=78,te[le++]=69,te[le++]=84,te[le++]=83,te[le++]=67,te[le++]=65,te[le++]=80,te[le++]=69,te[le++]=50,te[le++]=46,te[le++]=48,te[le++]=3,te[le++]=1,te[le++]=255&ce,te[le++]=ce>>8&255,te[le++]=0}var Ce=!1;this.addFrame=function(ne,ie,re,ce,ue,me){if(!0===Ce&&(--le,Ce=!1),me=void 0===me?{}:me,ne<0||ie<0||65535<ne||65535<ie)throw"x/y invalid.";if(re<=0||ce<=0||65535<re||65535<ce)throw"Width/Height invalid.";if(ue.length<re*ce)throw"Not enough pixels for the frame size.";var ge=!0,fe=me.palette;if(null==fe&&(ge=!1,fe=de),null==fe)throw"Must supply either a local or global palette.";for(var _e=b(fe),be=0;_e>>=1;)++be;_e=1<<be;var ye=void 0===me.delay?0:me.delay,we=void 0===me.disposal?0:me.disposal;if(we<0||3<we)throw"Disposal out of range.";var ke=!1,Se=0;if(void 0!==me.transparent&&null!==me.transparent&&(ke=!0,(Se=me.transparent)<0||_e<=Se))throw"Transparent color index.";if((0!==we||ke||0!==ye)&&(te[le++]=33,te[le++]=249,te[le++]=4,te[le++]=we<<2|(!0===ke?1:0),te[le++]=255&ye,te[le++]=ye>>8&255,te[le++]=Se,te[le++]=0),te[le++]=44,te[le++]=255&ne,te[le++]=ne>>8&255,te[le++]=255&ie,te[le++]=ie>>8&255,te[le++]=255&re,te[le++]=re>>8&255,te[le++]=255&ce,te[le++]=ce>>8&255,te[le++]=!0===ge?128|be-1:0,!0===ge)for(var xe=0,Ee=fe.length;xe<Ee;++xe){var Me=fe[xe];te[le++]=Me>>16&255,te[le++]=Me>>8&255,te[le++]=255&Me}le=function(te,ne,ie,re){te[ne++]=ie;var le=ne++,ce=1<<ie,de=ce-1,ue=ce+1,me=ue+1,ge=ie+1,fe=0,_e=0;function f(ie){for(;ie<=fe;)te[ne++]=255&_e,_e>>=8,fe-=8,ne===le+256&&(te[le]=255,le=ne++)}function p(te){_e|=te<<fe,fe+=ge,f(8)}var be=re[0]&de,Ce={};p(ce);for(var ye=1,we=re.length;ye<we;++ye){var ke=re[ye]&de,Se=be<<8|ke,xe=Ce[Se];if(void 0===xe){for(_e|=be<<fe,fe+=ge;8<=fe;)te[ne++]=255&_e,_e>>=8,fe-=8,ne===le+256&&(te[le]=255,le=ne++);4096===me?(p(ce),me=ue+1,ge=ie+1,Ce={}):(1<<ge<=me&&++ge,Ce[Se]=me++),be=ke}else be=xe}return p(be),p(ue),f(1),le+1===ne?te[le]=0:(te[le]=ne-le-1,te[ne++]=0),ne}(te,le,be<2?2:be,ue)},this.end=function(){return!1===Ce&&(te[le++]=59,Ce=!0),le}},ne.GifReader=At}catch(re){}function _t(te){var ne,ie,re,le,ce,de=Math.floor,ue=new Array(64),me=new Array(64),ge=new Array(64),fe=new Array(64),_e=new Array(65535),be=new Array(65535),Ce=new Array(64),ye=new Array(64),we=[],ke=0,Se=7,xe=new Array(64),Ee=new Array(64),Me=new Array(64),Ne=new Array(256),Re=new Array(2048),Le=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Oe=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Pe=[0,1,2,3,4,5,6,7,8,9,10,11],Fe=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],je=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Ve=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Ge=[0,1,2,3,4,5,6,7,8,9,10,11],ze=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],He=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function r(te,ne){for(var ie=0,re=0,le=new Array,ce=1;ce<=16;ce++){for(var de=1;de<=te[ce];de++)le[ne[re]]=[],le[ne[re]][0]=ie,le[ne[re]][1]=ce,re++,ie++;ie*=2}return le}function V(te){for(var ne=te[0],ie=te[1]-1;0<=ie;)ne&1<<ie&&(ke|=1<<Se),ie--,--Se<0&&(255==ke?(G(255),G(0)):G(ke),Se=7,ke=0)}function G(te){we.push(te)}function Y(te){G(te>>8&255),G(255&te)}function J(te,ne,ie,re,le){for(var ce,de=le[0],ue=le[240],me=function(te,ne){var ie,re,le,ce,de,ue,me,ge,fe,_e,be=0;for(fe=0;fe<8;++fe){ie=te[be],re=te[be+1],le=te[be+2],ce=te[be+3],de=te[be+4],ue=te[be+5],me=te[be+6];var ye=ie+(ge=te[be+7]),we=ie-ge,ke=re+me,Se=re-me,xe=le+ue,Ee=le-ue,Me=ce+de,Ne=ce-de,Re=ye+Me,Le=ye-Me,Oe=ke+xe,Pe=ke-xe;te[be]=Re+Oe,te[be+4]=Re-Oe;var Fe=.707106781*(Pe+Le);te[be+2]=Le+Fe,te[be+6]=Le-Fe;var je=.382683433*((Re=Ne+Ee)-(Pe=Se+we)),Ve=.5411961*Re+je,Ge=1.306562965*Pe+je,ze=.707106781*(Oe=Ee+Se),He=we+ze,$e=we-ze;te[be+5]=$e+Ve,te[be+3]=$e-Ve,te[be+1]=He+Ge,te[be+7]=He-Ge,be+=8}for(fe=be=0;fe<8;++fe){ie=te[be],re=te[be+8],le=te[be+16],ce=te[be+24],de=te[be+32],ue=te[be+40],me=te[be+48];var qe=ie+(ge=te[be+56]),Ye=ie-ge,Xe=re+me,Ke=re-me,Qe=le+ue,Je=le-ue,dt=ce+de,pt=ce-de,Ct=qe+dt,vt=qe-dt,It=Xe+Qe,Dt=Xe-Qe;te[be]=Ct+It,te[be+32]=Ct-It;var Mt=.707106781*(Dt+vt);te[be+16]=vt+Mt,te[be+48]=vt-Mt;var Nt=.382683433*((Ct=pt+Je)-(Dt=Ke+Ye)),Rt=.5411961*Ct+Nt,Ot=1.306562965*Dt+Nt,Vt=.707106781*(It=Je+Ke),Gt=Ye+Vt,zt=Ye-Vt;te[be+40]=zt+Rt,te[be+24]=zt-Rt,te[be+8]=Gt+Ot,te[be+56]=Gt-Ot,be++}for(fe=0;fe<64;++fe)_e=te[fe]*ne[fe],Ce[fe]=0<_e?_e+.5|0:_e-.5|0;return Ce}(te,ne),ge=0;ge<64;++ge)ye[Le[ge]]=me[ge];var fe=ye[0]-ie;ie=ye[0],0==fe?V(re[0]):(V(re[be[ce=32767+fe]]),V(_e[ce]));for(var we=63;0<we&&0==ye[we];we--);if(0==we)return V(de),ie;for(var ke,Se=1;Se<=we;){for(var xe=Se;0==ye[Se]&&Se<=we;++Se);var Ee=Se-xe;if(16<=Ee){ke=Ee>>4;for(var Me=1;Me<=ke;++Me)V(ue);Ee&=15}ce=32767+ye[Se],V(le[(Ee<<4)+be[ce]]),V(_e[ce]),Se++}return 63!=we&&V(de),ie}function X(te){te<=0&&(te=1),100<te&&(te=100),ce!=te&&(function(te){for(var ne=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],ie=0;ie<64;ie++){var re=de((ne[ie]*te+50)/100);re<1?re=1:255<re&&(re=255),ue[Le[ie]]=re}for(var le=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ce=0;ce<64;ce++){var _e=de((le[ce]*te+50)/100);_e<1?_e=1:255<_e&&(_e=255),me[Le[ce]]=_e}for(var be=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ce=0,ye=0;ye<8;ye++)for(var we=0;we<8;we++)ge[Ce]=1/(ue[Le[Ce]]*be[ye]*be[we]*8),fe[Ce]=1/(me[Le[Ce]]*be[ye]*be[we]*8),Ce++}(te<50?Math.floor(5e3/te):Math.floor(200-2*te)),ce=te)}this.encode=function(te,ce){var de,_e;(new Date).getTime(),ce&&X(ce),we=new Array,ke=0,Se=7,Y(65496),Y(65504),Y(16),G(74),G(70),G(73),G(70),G(0),G(1),G(1),G(0),Y(1),Y(1),G(0),G(0),function(){Y(65499),Y(132),G(0);for(var te=0;te<64;te++)G(ue[te]);G(1);for(var ne=0;ne<64;ne++)G(me[ne])}(),de=te.width,_e=te.height,Y(65472),Y(17),G(8),Y(_e),Y(de),G(3),G(1),G(17),G(0),G(2),G(17),G(1),G(3),G(17),G(1),function(){Y(65476),Y(418),G(0);for(var te=0;te<16;te++)G(Oe[te+1]);for(var ne=0;ne<=11;ne++)G(Pe[ne]);G(16);for(var ie=0;ie<16;ie++)G(Fe[ie+1]);for(var re=0;re<=161;re++)G(je[re]);G(1);for(var le=0;le<16;le++)G(Ve[le+1]);for(var ce=0;ce<=11;ce++)G(Ge[ce]);G(17);for(var de=0;de<16;de++)G(ze[de+1]);for(var ue=0;ue<=161;ue++)G(He[ue])}(),Y(65498),Y(12),G(3),G(1),G(0),G(2),G(17),G(3),G(17),G(0),G(63),G(0);var be=0,Ce=0,ye=0;ke=0,Se=7,this.encode.displayName="_encode_";for(var Ne,Le,$e,qe,Ye,Xe,Ke,Qe,Je,dt=te.data,pt=te.width,Ct=te.height,vt=4*pt,It=0;It<Ct;){for(Ne=0;Ne<vt;){for(Xe=Ye=vt*It+Ne,Ke=-1,Je=Qe=0;Je<64;Je++)Xe=Ye+(Qe=Je>>3)*vt+(Ke=4*(7&Je)),Ct<=It+Qe&&(Xe-=vt*(It+1+Qe-Ct)),vt<=Ne+Ke&&(Xe-=Ne+Ke-vt+4),Le=dt[Xe++],$e=dt[Xe++],qe=dt[Xe++],xe[Je]=(Re[Le]+Re[$e+256>>0]+Re[qe+512>>0]>>16)-128,Ee[Je]=(Re[Le+768>>0]+Re[$e+1024>>0]+Re[qe+1280>>0]>>16)-128,Me[Je]=(Re[Le+1280>>0]+Re[$e+1536>>0]+Re[qe+1792>>0]>>16)-128;be=J(xe,ge,be,ne,re),Ce=J(Ee,fe,Ce,ie,le),ye=J(Me,fe,ye,ie,le),Ne+=32}It+=8}if(0<=Se){var Dt=[];Dt[1]=Se+1,Dt[0]=(1<<Se+1)-1,V(Dt)}return Y(65497),new Uint8Array(we)},(new Date).getTime(),te||(te=50),function(){for(var te=String.fromCharCode,ne=0;ne<256;ne++)Ne[ne]=te(ne)}(),ne=r(Oe,Pe),ie=r(Ve,Ge),re=r(Fe,je),le=r(ze,He),function(){for(var te=1,ne=2,ie=1;ie<=15;ie++){for(var re=te;re<ne;re++)be[32767+re]=ie,_e[32767+re]=[],_e[32767+re][1]=ie,_e[32767+re][0]=re;for(var le=-(ne-1);le<=-te;le++)be[32767+le]=ie,_e[32767+le]=[],_e[32767+le][1]=ie,_e[32767+le][0]=ne-1+le;te<<=1,ne<<=1}}(),function(){for(var te=0;te<256;te++)Re[te]=19595*te,Re[te+256>>0]=38470*te,Re[te+512>>0]=7471*te+32768,Re[te+768>>0]=-11059*te,Re[te+1024>>0]=-21709*te,Re[te+1280>>0]=32768*te+8421375,Re[te+1536>>0]=-27439*te,Re[te+1792>>0]=-5329*te}(),X(te),(new Date).getTime()}function Ft(te,ne){if(this.pos=0,this.buffer=te,this.datav=new DataView(te.buffer),this.is_with_alpha=!!ne,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}window.tmp=At,dn.API.adler32cs=(bn="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,yn=null,wn=function(){if(!bn)return function(){return!1};try{var te={};"function"==typeof te.Buffer&&(yn=te.Buffer)}catch(te){}return function(te){return te instanceof ArrayBuffer||null!==yn&&te instanceof yn}}(),kn=null!==yn?function(te){return new yn(te,"utf8").toString("binary")}:function(te){return unescape(encodeURIComponent(te))},In=function(te,ne){for(var ie=65535&te,re=te>>>16,le=0,ce=ne.length;le<ce;le++)re=(re+(ie=(ie+(255&ne.charCodeAt(le)))%65521))%65521;return(re<<16|ie)>>>0},Tn=function(te,ne){for(var ie=65535&te,re=te>>>16,le=0,ce=ne.length;le<ce;le++)re=(re+(ie=(ie+ne[le])%65521))%65521;return(re<<16|ie)>>>0},xn=(Dn={}).Adler32=(((_n=(fn=function(te){if(!(this instanceof fn))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(te=null==te?1:+te))throw new Error("First arguments needs to be a finite number.");this.checksum=te>>>0}).prototype={}).constructor=fn).from=((un=function(te){if(!(this instanceof fn))throw new TypeError("Constructor cannot called be as a function.");if(null==te)throw new Error("First argument needs to be a string.");this.checksum=In(1,te.toString())}).prototype=_n,un),fn.fromUtf8=((pn=function(te){if(!(this instanceof fn))throw new TypeError("Constructor cannot called be as a function.");if(null==te)throw new Error("First argument needs to be a string.");var ne=kn(te.toString());this.checksum=In(1,ne)}).prototype=_n,pn),bn&&(fn.fromBuffer=((hn=function(te){if(!(this instanceof fn))throw new TypeError("Constructor cannot called be as a function.");if(!wn(te))throw new Error("First argument needs to be ArrayBuffer.");var ne=new Uint8Array(te);return this.checksum=Tn(1,ne)}).prototype=_n,hn)),_n.update=function(te){if(null==te)throw new Error("First argument needs to be a string.");return te=te.toString(),this.checksum=In(this.checksum,te)},_n.updateUtf8=function(te){if(null==te)throw new Error("First argument needs to be a string.");var ne=kn(te.toString());return this.checksum=In(this.checksum,ne)},bn&&(_n.updateBuffer=function(te){if(!wn(te))throw new Error("First argument needs to be ArrayBuffer.");var ne=new Uint8Array(te);return this.checksum=Tn(this.checksum,ne)}),_n.clone=function(){return new xn(this.checksum)},fn),Dn.from=function(te){if(null==te)throw new Error("First argument needs to be a string.");return In(1,te.toString())},Dn.fromUtf8=function(te){if(null==te)throw new Error("First argument needs to be a string.");var ne=kn(te.toString());return In(1,ne)},bn&&(Dn.fromBuffer=function(te){if(!wn(te))throw new Error("First argument need to be ArrayBuffer.");var ne=new Uint8Array(te);return Tn(1,ne)}),Dn),function(te){te.__bidiEngine__=te.prototype.__bidiEngine__=function(te){var ie,re,le,ce,de,ue,me,ge=ne,fe=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],_e=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],be={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Ce={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},ye=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],we=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),ke=!1,Se=0;this.__bidiEngine__={};var x=function(te){var ne=te.charCodeAt(),ie=ne>>8,re=Ce[ie];return void 0!==re?ge[256*re+(255&ne)]:252===ie||253===ie?"AL":we.test(ie)?"L":8===ie?"R":"N"},p=function(te){for(var ne,ie=0;ie<te.length;ie++){if("L"===(ne=x(te.charAt(ie))))return!1;if("R"===ne)return!0}return!1},N=function(te,ne,de,ue){var me,ge,fe,_e,be=ne[ue];switch(be){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":ke=!1;break;case"N":case"AN":break;case"EN":ke&&(be="AN");break;case"AL":ke=!0,be="R";break;case"WS":case"BN":be="N";break;case"CS":ue<1||ue+1>=ne.length||"EN"!==(me=de[ue-1])&&"AN"!==me||"EN"!==(ge=ne[ue+1])&&"AN"!==ge?be="N":ke&&(ge="AN"),be=ge===me?ge:"N";break;case"ES":be="EN"===(me=0<ue?de[ue-1]:"B")&&ue+1<ne.length&&"EN"===ne[ue+1]?"EN":"N";break;case"ET":if(0<ue&&"EN"===de[ue-1]){be="EN";break}if(ke){be="N";break}for(fe=ue+1,_e=ne.length;fe<_e&&"ET"===ne[fe];)fe++;be=fe<_e&&"EN"===ne[fe]?"EN":"N";break;case"NSM":if(le&&!ce){for(_e=ne.length,fe=ue+1;fe<_e&&"NSM"===ne[fe];)fe++;if(fe<_e){var Ce=te[ue],ye=1425<=Ce&&Ce<=2303||64286===Ce;if(me=ne[fe],ye&&("R"===me||"AL"===me)){be="R";break}}}be=ue<1||"B"===(me=ne[ue-1])?"N":de[ue-1];break;case"B":ie=!(ke=!1),be=Se;break;case"S":re=!0,be="N"}return be},L=function(te,ne,ie){var re=te.split("");return ie&&A(re,ie,{hiLevel:Se}),re.reverse(),ne&&ne.reverse(),re.join("")},A=function(te,ne,le){var ce,de,ue,me,ge,Ce=-1,ye=te.length,we=0,xe=[],Ee=Se?_e:fe,Me=[];for(re=ie=ke=!1,de=0;de<ye;de++)Me[de]=x(te[de]);for(ue=0;ue<ye;ue++){if(ge=we,xe[ue]=N(te,Me,xe,ue),ce=240&(we=Ee[ge][be[xe[ue]]]),we&=15,ne[ue]=me=Ee[we][5],0<ce)if(16===ce){for(de=Ce;de<ue;de++)ne[de]=1;Ce=-1}else Ce=-1;if(Ee[we][6])-1===Ce&&(Ce=ue);else if(-1<Ce){for(de=Ce;de<ue;de++)ne[de]=me;Ce=-1}"B"===Me[ue]&&(ne[ue]=0),le.hiLevel|=me}re&&function(te,ne,ie){for(var re=0;re<ie;re++)if("S"===te[re]){ne[re]=Se;for(var le=re-1;0<=le&&"WS"===te[le];le--)ne[le]=Se}}(Me,ne,ye)},S=function(te,ne,re,le,ce){if(!(ce.hiLevel<te)){if(1===te&&1===Se&&!ie)return ne.reverse(),void(re&&re.reverse());for(var de,ue,me,ge,fe=ne.length,_e=0;_e<fe;){if(le[_e]>=te){for(me=_e+1;me<fe&&le[me]>=te;)me++;for(ge=_e,ue=me-1;ge<ue;ge++,ue--)de=ne[ge],ne[ge]=ne[ue],ne[ue]=de,re&&(de=re[ge],re[ge]=re[ue],re[ue]=de);_e=me}_e++}}},_=function(te,ne,ie){var re=te.split(""),le={hiLevel:Se};return ie||(ie=[]),A(re,ie,le),function(te,ne,ie){if(0!==ie.hiLevel&&me)for(var re,le=0;le<te.length;le++)1===ne[le]&&0<=(re=ye.indexOf(te[le]))&&(te[le]=ye[re+1])}(re,ie,le),S(2,re,ne,ie,le),S(1,re,ne,ie,le),re.join("")};return this.__bidiEngine__.doBidiReorder=function(te,ne,ie){if(function(te,ne){if(ne)for(var ie=0;ie<te.length;ie++)ne[ie]=ie;void 0===ce&&(ce=p(te)),void 0===ue&&(ue=p(te))}(te,ne),le||!de||ue)if(le&&de&&ce^ue)Se=ce?1:0,te=L(te,ne,ie);else if(!le&&de&&ue)Se=ce?1:0,te=_(te,ne,ie),te=L(te,ne);else if(!le||ce||de||ue){if(le&&!de&&ce^ue)te=L(te,ne),te=ce?(Se=0,_(te,ne,ie)):(Se=1,te=_(te,ne,ie),L(te,ne));else if(le&&ce&&!de&&ue)Se=1,te=_(te,ne,ie),te=L(te,ne);else if(!le&&!de&&ce^ue){var re=me;ce?(Se=1,te=_(te,ne,ie),Se=0,me=!1,te=_(te,ne,ie),me=re):(Se=0,te=_(te,ne,ie),te=L(te,ne),me=!(Se=1),te=_(te,ne,ie),me=re,te=L(te,ne))}}else Se=0,te=_(te,ne,ie);else Se=ce?1:0,te=_(te,ne,ie);return te},this.__bidiEngine__.setOptions=function(te){te&&(le=te.isInputVisual,de=te.isOutputVisual,ce=te.isInputRtl,ue=te.isOutputRtl,me=te.isSymmetricSwapping)},this.__bidiEngine__.setOptions(te),this.__bidiEngine__};var ne=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],ie=new te.__bidiEngine__({isInputVisual:!0});te.API.events.push(["postProcessText",function(te){var ne=te.text,re=(te.x,te.y,te.options||{}),le=(te.mutex,re.lang,[]);if("[object Array]"===Object.prototype.toString.call(ne)){var ce=0;for(le=[],ce=0;ce<ne.length;ce+=1)"[object Array]"===Object.prototype.toString.call(ne[ce])?le.push([ie.doBidiReorder(ne[ce][0]),ne[ce][1],ne[ce][2]]):le.push([ie.doBidiReorder(ne[ce])]);te.text=le}else te.text=ie.doBidiReorder(ne)}])}(dn),window.tmp=_t,Ft.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var te=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(te);for(var ne=0;ne<te;ne++){var ie=this.datav.getUint8(this.pos++,!0),re=this.datav.getUint8(this.pos++,!0),le=this.datav.getUint8(this.pos++,!0),ce=this.datav.getUint8(this.pos++,!0);this.palette[ne]={red:le,green:re,blue:ie,quad:ce}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ft.prototype.parseBGR=function(){this.pos=this.offset;try{var te="bit"+this.bitPP,ne=this.width*this.height*4;this.data=new Uint8Array(ne),this[te]()}catch(te){console.log("bit decode error:"+te)}},Ft.prototype.bit1=function(){var te=Math.ceil(this.width/8),ne=te%4,ie=0<=this.height?this.height-1:-this.height;for(ie=this.height-1;0<=ie;ie--){for(var re=this.bottom_up?ie:this.height-1-ie,le=0;le<te;le++)for(var ce=this.datav.getUint8(this.pos++,!0),de=re*this.width*4+8*le*4,ue=0;ue<8&&8*le+ue<this.width;ue++){var me=this.palette[ce>>7-ue&1];this.data[de+4*ue]=me.blue,this.data[de+4*ue+1]=me.green,this.data[de+4*ue+2]=me.red,this.data[de+4*ue+3]=255}0!=ne&&(this.pos+=4-ne)}},Ft.prototype.bit4=function(){for(var te=Math.ceil(this.width/2),ne=te%4,ie=this.height-1;0<=ie;ie--){for(var re=this.bottom_up?ie:this.height-1-ie,le=0;le<te;le++){var ce=this.datav.getUint8(this.pos++,!0),de=re*this.width*4+2*le*4,ue=ce>>4,me=15&ce,ge=this.palette[ue];if(this.data[de]=ge.blue,this.data[de+1]=ge.green,this.data[de+2]=ge.red,this.data[de+3]=255,2*le+1>=this.width)break;ge=this.palette[me],this.data[de+4]=ge.blue,this.data[de+4+1]=ge.green,this.data[de+4+2]=ge.red,this.data[de+4+3]=255}0!=ne&&(this.pos+=4-ne)}},Ft.prototype.bit8=function(){for(var te=this.width%4,ne=this.height-1;0<=ne;ne--){for(var ie=this.bottom_up?ne:this.height-1-ne,re=0;re<this.width;re++){var le=this.datav.getUint8(this.pos++,!0),ce=ie*this.width*4+4*re;if(le<this.palette.length){var de=this.palette[le];this.data[ce]=de.red,this.data[ce+1]=de.green,this.data[ce+2]=de.blue,this.data[ce+3]=255}else this.data[ce]=255,this.data[ce+1]=255,this.data[ce+2]=255,this.data[ce+3]=255}0!=te&&(this.pos+=4-te)}},Ft.prototype.bit15=function(){for(var te=this.width%3,ne=parseInt("11111",2),ie=this.height-1;0<=ie;ie--){for(var re=this.bottom_up?ie:this.height-1-ie,le=0;le<this.width;le++){var ce=this.datav.getUint16(this.pos,!0);this.pos+=2;var de=(ce&ne)/ne*255|0,ue=(ce>>5&ne)/ne*255|0,me=(ce>>10&ne)/ne*255|0,ge=ce>>15?255:0,fe=re*this.width*4+4*le;this.data[fe]=me,this.data[fe+1]=ue,this.data[fe+2]=de,this.data[fe+3]=ge}this.pos+=te}},Ft.prototype.bit16=function(){for(var te=this.width%3,ne=parseInt("11111",2),ie=parseInt("111111",2),re=this.height-1;0<=re;re--){for(var le=this.bottom_up?re:this.height-1-re,ce=0;ce<this.width;ce++){var de=this.datav.getUint16(this.pos,!0);this.pos+=2;var ue=(de&ne)/ne*255|0,me=(de>>5&ie)/ie*255|0,ge=(de>>11)/ne*255|0,fe=le*this.width*4+4*ce;this.data[fe]=ge,this.data[fe+1]=me,this.data[fe+2]=ue,this.data[fe+3]=255}this.pos+=te}},Ft.prototype.bit24=function(){for(var te=this.height-1;0<=te;te--){for(var ne=this.bottom_up?te:this.height-1-te,ie=0;ie<this.width;ie++){var re=this.datav.getUint8(this.pos++,!0),le=this.datav.getUint8(this.pos++,!0),ce=this.datav.getUint8(this.pos++,!0),de=ne*this.width*4+4*ie;this.data[de]=ce,this.data[de+1]=le,this.data[de+2]=re,this.data[de+3]=255}this.pos+=this.width%4}},Ft.prototype.bit32=function(){for(var te=this.height-1;0<=te;te--)for(var ne=this.bottom_up?te:this.height-1-te,ie=0;ie<this.width;ie++){var re=this.datav.getUint8(this.pos++,!0),le=this.datav.getUint8(this.pos++,!0),ce=this.datav.getUint8(this.pos++,!0),de=this.datav.getUint8(this.pos++,!0),ue=ne*this.width*4+4*ie;this.data[ue]=ce,this.data[ue+1]=le,this.data[ue+2]=re,this.data[ue+3]=de}},Ft.prototype.getData=function(){return this.data},window.tmp=Ft,function(te){var ne=15,ie=573,re=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function ct(){var te=this;function l(te,ne){for(var ie=0;ie|=1&te,te>>>=1,ie<<=1,0<--ne;);return ie>>>1}te.build_tree=function(re){var le,ce,de,ue=te.dyn_tree,me=te.stat_desc.static_tree,ge=te.stat_desc.elems,fe=-1;for(re.heap_len=0,re.heap_max=ie,le=0;le<ge;le++)0!==ue[2*le]?(re.heap[++re.heap_len]=fe=le,re.depth[le]=0):ue[2*le+1]=0;for(;re.heap_len<2;)ue[2*(de=re.heap[++re.heap_len]=fe<2?++fe:0)]=1,re.depth[de]=0,re.opt_len--,me&&(re.static_len-=me[2*de+1]);for(te.max_code=fe,le=Math.floor(re.heap_len/2);1<=le;le--)re.pqdownheap(ue,le);for(de=ge;le=re.heap[1],re.heap[1]=re.heap[re.heap_len--],re.pqdownheap(ue,1),ce=re.heap[1],re.heap[--re.heap_max]=le,re.heap[--re.heap_max]=ce,ue[2*de]=ue[2*le]+ue[2*ce],re.depth[de]=Math.max(re.depth[le],re.depth[ce])+1,ue[2*le+1]=ue[2*ce+1]=de,re.heap[1]=de++,re.pqdownheap(ue,1),2<=re.heap_len;);re.heap[--re.heap_max]=re.heap[1],function(re){var le,ce,de,ue,me,ge,fe=te.dyn_tree,_e=te.stat_desc.static_tree,be=te.stat_desc.extra_bits,Ce=te.stat_desc.extra_base,ye=te.stat_desc.max_length,we=0;for(ue=0;ue<=ne;ue++)re.bl_count[ue]=0;for(fe[2*re.heap[re.heap_max]+1]=0,le=re.heap_max+1;le<ie;le++)ye<(ue=fe[2*fe[2*(ce=re.heap[le])+1]+1]+1)&&(ue=ye,we++),fe[2*ce+1]=ue,ce>te.max_code||(re.bl_count[ue]++,me=0,Ce<=ce&&(me=be[ce-Ce]),ge=fe[2*ce],re.opt_len+=ge*(ue+me),_e&&(re.static_len+=ge*(_e[2*ce+1]+me)));if(0!==we){do{for(ue=ye-1;0===re.bl_count[ue];)ue--;re.bl_count[ue]--,re.bl_count[ue+1]+=2,re.bl_count[ye]--,we-=2}while(0<we);for(ue=ye;0!==ue;ue--)for(ce=re.bl_count[ue];0!==ce;)(de=re.heap[--le])>te.max_code||(fe[2*de+1]!=ue&&(re.opt_len+=(ue-fe[2*de+1])*fe[2*de],fe[2*de+1]=ue),ce--)}}(re),function(te,ie,re){var le,ce,de,ue=[],me=0;for(le=1;le<=ne;le++)ue[le]=me=me+re[le-1]<<1;for(ce=0;ce<=ie;ce++)0!==(de=te[2*ce+1])&&(te[2*ce]=l(ue[de]++,de))}(ue,te.max_code,re.bl_count)}}function ft(te,ne,ie,re,le){this.static_tree=te,this.extra_bits=ne,this.extra_base=ie,this.elems=re,this.max_length=le}function n(te,ne,ie,re,le){this.good_length=te,this.max_lazy=ne,this.nice_length=ie,this.max_chain=re,this.func=le}ct._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],ct.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],ct.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],ct.d_code=function(te){return te<256?re[te]:re[256+(te>>>7)]},ct.extra_lbits=[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],ct.extra_dbits=[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],ct.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ct.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ft.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],ft.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],ft.static_l_desc=new ft(ft.static_ltree,ct.extra_lbits,257,286,ne),ft.static_d_desc=new ft(ft.static_dtree,ct.extra_dbits,0,30,ne),ft.static_bl_desc=new ft(null,ct.extra_blbits,0,19,7);var le=[new n(0,0,0,0,0),new n(4,4,8,4,1),new n(4,5,16,8,1),new n(4,6,32,32,1),new n(4,4,16,16,2),new n(8,16,32,32,2),new n(8,16,128,128,2),new n(8,32,128,256,2),new n(32,128,258,1024,2),new n(32,258,258,4096,2)],ce=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function gt(te,ne,ie,re){var le=te[2*ne],ce=te[2*ie];return le<ce||le==ce&&re[ne]<=re[ie]}function r(){var te,ne,ie,re,de,ue,me,ge,fe,_e,be,Ce,ye,we,ke,Se,xe,Ee,Me,Ne,Re,Le,Oe,Pe,Fe,je,Ve,Ge,ze,He,$e,qe,Ye,Xe,Ke,Qe,Je,dt,pt,Ct,vt,It=this,Dt=new ct,Mt=new ct,Nt=new ct;function X(){var te;for(te=0;te<286;te++)$e[2*te]=0;for(te=0;te<30;te++)qe[2*te]=0;for(te=0;te<19;te++)Ye[2*te]=0;$e[512]=1,It.opt_len=It.static_len=0,Qe=dt=0}function K(te,ne){var ie,re,le=-1,ce=te[1],de=0,ue=7,me=4;for(0===ce&&(ue=138,me=3),te[2*(ne+1)+1]=65535,ie=0;ie<=ne;ie++)re=ce,ce=te[2*(ie+1)+1],++de<ue&&re==ce||(de<me?Ye[2*re]+=de:0!==re?(re!=le&&Ye[2*re]++,Ye[32]++):de<=10?Ye[34]++:Ye[36]++,le=re,me=(de=0)===ce?(ue=138,3):re==ce?(ue=6,3):(ue=7,4))}function Z(te){It.pending_buf[It.pending++]=te}function Q(te){Z(255&te),Z(te>>>8&255)}function $(te,ne){var ie,re=ne;16-re<vt?(Q(Ct|=(ie=te)<<vt&65535),Ct=ie>>>16-vt,vt+=re-16):(Ct|=te<<vt&65535,vt+=re)}function tt(te,ne){var ie=2*te;$(65535&ne[ie],65535&ne[ie+1])}function et(te,ne){var ie,re,le=-1,ce=te[1],de=0,ue=7,me=4;for(0===ce&&(ue=138,me=3),ie=0;ie<=ne;ie++)if(re=ce,ce=te[2*(ie+1)+1],!(++de<ue&&re==ce)){if(de<me)for(;tt(re,Ye),0!=--de;);else 0!==re?(re!=le&&(tt(re,Ye),de--),tt(16,Ye),$(de-3,2)):de<=10?(tt(17,Ye),$(de-3,3)):(tt(18,Ye),$(de-11,7));le=re,me=(de=0)===ce?(ue=138,3):re==ce?(ue=6,3):(ue=7,4)}}function nt(){16==vt?(Q(Ct),vt=Ct=0):8<=vt&&(Z(255&Ct),Ct>>>=8,vt-=8)}function rt(te,ne){var ie,re,le;if(It.pending_buf[Je+2*Qe]=te>>>8&255,It.pending_buf[Je+2*Qe+1]=255&te,It.pending_buf[Xe+Qe]=255&ne,Qe++,0===te?$e[2*ne]++:(dt++,te--,$e[2*(ct._length_code[ne]+256+1)]++,qe[2*ct.d_code(te)]++),0==(8191&Qe)&&2<Ve){for(ie=8*Qe,re=Re-xe,le=0;le<30;le++)ie+=qe[2*le]*(5+ct.extra_dbits[le]);if(ie>>>=3,dt<Math.floor(Qe/2)&&ie<Math.floor(re/2))return!0}return Qe==Ke-1}function it(te,ne){var ie,re,le,ce,de=0;if(0!==Qe)for(;ie=It.pending_buf[Je+2*de]<<8&65280|255&It.pending_buf[Je+2*de+1],re=255&It.pending_buf[Xe+de],de++,0===ie?tt(re,te):(tt((le=ct._length_code[re])+256+1,te),0!==(ce=ct.extra_lbits[le])&&$(re-=ct.base_length[le],ce),tt(le=ct.d_code(--ie),ne),0!==(ce=ct.extra_dbits[le])&&$(ie-=ct.base_dist[le],ce)),de<Qe;);tt(256,te),pt=te[513]}function ot(){8<vt?Q(Ct):0<vt&&Z(255&Ct),vt=Ct=0}function at(te,ne,ie){var re,le,ce;$(0+(ie?1:0),3),re=te,le=ne,ce=!0,ot(),pt=8,ce&&(Q(le),Q(~le)),It.pending_buf.set(ge.subarray(re,re+le),It.pending),It.pending+=le}function e(te,ne,ie){var re,le,ce=0;0<Ve?(Dt.build_tree(It),Mt.build_tree(It),ce=function(){var te;for(K($e,Dt.max_code),K(qe,Mt.max_code),Nt.build_tree(It),te=18;3<=te&&0===Ye[2*ct.bl_order[te]+1];te--);return It.opt_len+=3*(te+1)+5+5+4,te}(),re=It.opt_len+3+7>>>3,(le=It.static_len+3+7>>>3)<=re&&(re=le)):re=le=ne+5,ne+4<=re&&-1!=te?at(te,ne,ie):le==re?($(2+(ie?1:0),3),it(ft.static_ltree,ft.static_dtree)):($(4+(ie?1:0),3),function(te,ne,ie){var re;for($(te-257,5),$(ne-1,5),$(ie-4,4),re=0;re<ie;re++)$(Ye[2*ct.bl_order[re]+1],3);et($e,te-1),et(qe,ne-1)}(Dt.max_code+1,Mt.max_code+1,ce+1),it($e,qe)),X(),ie&&ot()}function st(ne){e(0<=xe?xe:-1,Re-xe,ne),xe=Re,te.flush_pending()}function lt(){var ne,ie,re,le;do{if(0==(le=fe-Oe-Re)&&0===Re&&0===Oe)le=de;else if(-1==le)le--;else if(de+de-262<=Re){for(ge.set(ge.subarray(de,de+de),0),Le-=de,Re-=de,xe-=de,re=ne=ye;ie=65535&be[--re],be[re]=de<=ie?ie-de:0,0!=--ne;);for(re=ne=de;ie=65535&_e[--re],_e[re]=de<=ie?ie-de:0,0!=--ne;);le+=de}if(0===te.avail_in)return;ne=te.read_buf(ge,Re+Oe,le),3<=(Oe+=ne)&&(Ce=((Ce=255&ge[Re])<<Se^255&ge[Re+1])&ke)}while(Oe<262&&0!==te.avail_in)}function ht(te){var ne,ie,re=Fe,le=Re,ce=Pe,ue=de-262<Re?Re-(de-262):0,fe=He,be=me,Ce=Re+258,ye=ge[le+ce-1],we=ge[le+ce];ze<=Pe&&(re>>=2),Oe<fe&&(fe=Oe);do{if(ge[(ne=te)+ce]==we&&ge[ne+ce-1]==ye&&ge[ne]==ge[le]&&ge[++ne]==ge[le+1]){le+=2,ne++;do{}while(ge[++le]==ge[++ne]&&ge[++le]==ge[++ne]&&ge[++le]==ge[++ne]&&ge[++le]==ge[++ne]&&ge[++le]==ge[++ne]&&ge[++le]==ge[++ne]&&ge[++le]==ge[++ne]&&ge[++le]==ge[++ne]&&le<Ce);if(ie=258-(Ce-le),le=Ce-258,ce<ie){if(Le=te,fe<=(ce=ie))break;ye=ge[le+ce-1],we=ge[le+ce]}}}while((te=65535&_e[te&be])>ue&&0!=--re);return ce<=Oe?ce:Oe}function ut(te){return te.total_in=te.total_out=0,te.msg=null,It.pending=0,It.pending_out=0,ne=113,re=0,Dt.dyn_tree=$e,Dt.stat_desc=ft.static_l_desc,Mt.dyn_tree=qe,Mt.stat_desc=ft.static_d_desc,Nt.dyn_tree=Ye,Nt.stat_desc=ft.static_bl_desc,vt=Ct=0,pt=8,X(),function(){var te;for(fe=2*de,te=be[ye-1]=0;te<ye-1;te++)be[te]=0;je=le[Ve].max_lazy,ze=le[Ve].good_length,He=le[Ve].nice_length,Fe=le[Ve].max_chain,Ee=Pe=2,Ce=Ne=Oe=xe=Re=0}(),0}It.depth=[],It.bl_count=[],It.heap=[],$e=[],qe=[],Ye=[],It.pqdownheap=function(te,ne){for(var ie=It.heap,re=ie[ne],le=ne<<1;le<=It.heap_len&&(le<It.heap_len&&gt(te,ie[le+1],ie[le],It.depth)&&le++,!gt(te,re,ie[le],It.depth));)ie[ne]=ie[le],ne=le,le<<=1;ie[ne]=re},It.deflateInit=function(te,ne,re,le,ce,fe){return le||(le=8),ce||(ce=8),fe||(fe=0),te.msg=null,-1==ne&&(ne=6),ce<1||9<ce||8!=le||re<9||15<re||ne<0||9<ne||fe<0||2<fe?-2:(te.dstate=It,me=(de=1<<(ue=re))-1,ke=(ye=1<<(we=ce+7))-1,Se=Math.floor((we+3-1)/3),ge=new Uint8Array(2*de),_e=[],be=[],Ke=1<<ce+6,It.pending_buf=new Uint8Array(4*Ke),ie=4*Ke,Je=Math.floor(Ke/2),Xe=3*Ke,Ve=ne,Ge=fe,ut(te))},It.deflateEnd=function(){return 42!=ne&&113!=ne&&666!=ne?-2:(It.pending_buf=null,ge=_e=be=null,It.dstate=null,113==ne?-3:0)},It.deflateParams=function(te,ne,ie){var re=0;return-1==ne&&(ne=6),ne<0||9<ne||ie<0||2<ie?-2:(le[Ve].func!=le[ne].func&&0!==te.total_in&&(re=te.deflate(1)),Ve!=ne&&(je=le[Ve=ne].max_lazy,ze=le[Ve].good_length,He=le[Ve].nice_length,Fe=le[Ve].max_chain),Ge=ie,re)},It.deflateSetDictionary=function(te,ie,re){var le,ce=re,ue=0;if(!ie||42!=ne)return-2;if(ce<3)return 0;for(de-262<ce&&(ue=re-(ce=de-262)),ge.set(ie.subarray(ue,ue+ce),0),xe=Re=ce,Ce=((Ce=255&ge[0])<<Se^255&ge[1])&ke,le=0;le<=ce-3;le++)Ce=(Ce<<Se^255&ge[le+2])&ke,_e[le&me]=be[Ce],be[Ce]=le;return 0},It.deflate=function(fe,we){var Fe,ze,He,$e,qe,Ye;if(4<we||we<0)return-2;if(!fe.next_out||!fe.next_in&&0!==fe.avail_in||666==ne&&4!=we)return fe.msg=ce[4],-2;if(0===fe.avail_out)return fe.msg=ce[7],-5;if(te=fe,$e=re,re=we,42==ne&&(ze=8+(ue-8<<4)<<8,3<(He=(Ve-1&255)>>1)&&(He=3),ze|=He<<6,0!==Re&&(ze|=32),ne=113,Z((Ye=ze+=31-ze%31)>>8&255),Z(255&Ye)),0!==It.pending){if(te.flush_pending(),0===te.avail_out)return re=-1,0}else if(0===te.avail_in&&we<=$e&&4!=we)return te.msg=ce[7],-5;if(666==ne&&0!==te.avail_in)return fe.msg=ce[7],-5;if(0!==te.avail_in||0!==Oe||0!=we&&666!=ne){switch(qe=-1,le[Ve].func){case 0:qe=function(ne){var re,le=65535;for(ie-5<le&&(le=ie-5);;){if(Oe<=1){if(lt(),0===Oe&&0==ne)return 0;if(0===Oe)break}if(Re+=Oe,re=xe+le,((Oe=0)===Re||re<=Re)&&(Oe=Re-re,Re=re,st(!1),0===te.avail_out))return 0;if(de-262<=Re-xe&&(st(!1),0===te.avail_out))return 0}return st(4==ne),0===te.avail_out?4==ne?2:0:4==ne?3:1}(we);break;case 1:qe=function(ne){for(var ie,re=0;;){if(Oe<262){if(lt(),Oe<262&&0==ne)return 0;if(0===Oe)break}if(3<=Oe&&(Ce=(Ce<<Se^255&ge[Re+2])&ke,re=65535&be[Ce],_e[Re&me]=be[Ce],be[Ce]=Re),0!==re&&(Re-re&65535)<=de-262&&2!=Ge&&(Ee=ht(re)),3<=Ee)if(ie=rt(Re-Le,Ee-3),Oe-=Ee,Ee<=je&&3<=Oe){for(Ee--;Ce=(Ce<<Se^255&ge[2+ ++Re])&ke,re=65535&be[Ce],_e[Re&me]=be[Ce],be[Ce]=Re,0!=--Ee;);Re++}else Re+=Ee,Ee=0,Ce=((Ce=255&ge[Re])<<Se^255&ge[Re+1])&ke;else ie=rt(0,255&ge[Re]),Oe--,Re++;if(ie&&(st(!1),0===te.avail_out))return 0}return st(4==ne),0===te.avail_out?4==ne?2:0:4==ne?3:1}(we);break;case 2:qe=function(ne){for(var ie,re,le=0;;){if(Oe<262){if(lt(),Oe<262&&0==ne)return 0;if(0===Oe)break}if(3<=Oe&&(Ce=(Ce<<Se^255&ge[Re+2])&ke,le=65535&be[Ce],_e[Re&me]=be[Ce],be[Ce]=Re),Pe=Ee,Me=Le,Ee=2,0!==le&&Pe<je&&(Re-le&65535)<=de-262&&(2!=Ge&&(Ee=ht(le)),Ee<=5&&(1==Ge||3==Ee&&4096<Re-Le)&&(Ee=2)),3<=Pe&&Ee<=Pe){for(re=Re+Oe-3,ie=rt(Re-1-Me,Pe-3),Oe-=Pe-1,Pe-=2;++Re<=re&&(Ce=(Ce<<Se^255&ge[Re+2])&ke,le=65535&be[Ce],_e[Re&me]=be[Ce],be[Ce]=Re),0!=--Pe;);if(Ne=0,Ee=2,Re++,ie&&(st(!1),0===te.avail_out))return 0}else if(0!==Ne){if((ie=rt(0,255&ge[Re-1]))&&st(!1),Re++,Oe--,0===te.avail_out)return 0}else Ne=1,Re++,Oe--}return 0!==Ne&&(ie=rt(0,255&ge[Re-1]),Ne=0),st(4==ne),0===te.avail_out?4==ne?2:0:4==ne?3:1}(we)}if(2!=qe&&3!=qe||(ne=666),0==qe||2==qe)return 0===te.avail_out&&(re=-1),0;if(1==qe){if(1==we)$(2,3),tt(256,ft.static_ltree),nt(),1+pt+10-vt<9&&($(2,3),tt(256,ft.static_ltree),nt()),pt=7;else if(at(0,0,!1),3==we)for(Fe=0;Fe<ye;Fe++)be[Fe]=0;if(te.flush_pending(),0===te.avail_out)return re=-1,0}}return 4!=we?0:1}}function i(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}i.prototype={deflateInit:function(te,ie){return this.dstate=new r,ie||(ie=ne),this.dstate.deflateInit(this,te,ie)},deflate:function(te){return this.dstate?this.dstate.deflate(this,te):-2},deflateEnd:function(){if(!this.dstate)return-2;var te=this.dstate.deflateEnd();return this.dstate=null,te},deflateParams:function(te,ne){return this.dstate?this.dstate.deflateParams(this,te,ne):-2},deflateSetDictionary:function(te,ne){return this.dstate?this.dstate.deflateSetDictionary(this,te,ne):-2},read_buf:function(te,ne,ie){var re=this.avail_in;return ie<re&&(re=ie),0===re?0:(this.avail_in-=re,te.set(this.next_in.subarray(this.next_in_index,this.next_in_index+re),ne),this.next_in_index+=re,this.total_in+=re,re)},flush_pending:function(){var te=this,ne=te.dstate.pending;ne>te.avail_out&&(ne=te.avail_out),0!==ne&&(te.next_out.set(te.dstate.pending_buf.subarray(te.dstate.pending_out,te.dstate.pending_out+ne),te.next_out_index),te.next_out_index+=ne,te.dstate.pending_out+=ne,te.total_out+=ne,te.avail_out-=ne,te.dstate.pending-=ne,0===te.dstate.pending&&(te.dstate.pending_out=0))}};var de=te.zip||te;de.Deflater=de._jzlib_Deflater=function(te){var ne=new i,ie=new Uint8Array(512),re=te?te.level:-1;void 0===re&&(re=-1),ne.deflateInit(re),ne.next_out=ie,this.append=function(te,re){var le,ce=[],de=0,ue=0,me=0;if(te.length){ne.next_in_index=0,ne.next_in=te,ne.avail_in=te.length;do{if(ne.next_out_index=0,ne.avail_out=512,0!=ne.deflate(0))throw new Error("deflating: "+ne.msg);ne.next_out_index&&(512==ne.next_out_index?ce.push(new Uint8Array(ie)):ce.push(new Uint8Array(ie.subarray(0,ne.next_out_index)))),me+=ne.next_out_index,re&&0<ne.next_in_index&&ne.next_in_index!=de&&(re(ne.next_in_index),de=ne.next_in_index)}while(0<ne.avail_in||0===ne.avail_out);return le=new Uint8Array(me),ce.forEach((function(te){le.set(te,ue),ue+=te.length})),le}},this.flush=function(){var te,re,le=[],ce=0,de=0;do{if(ne.next_out_index=0,ne.avail_out=512,1!=(te=ne.deflate(4))&&0!=te)throw new Error("deflating: "+ne.msg);0<512-ne.avail_out&&le.push(new Uint8Array(ie.subarray(0,ne.next_out_index))),de+=ne.next_out_index}while(0<ne.avail_in||0===ne.avail_out);return ne.deflateEnd(),re=new Uint8Array(de),le.forEach((function(te){re.set(te,ce),ce+=te.length})),re}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()).RGBColor=function(te){var ne;te=te||"",this.ok=!1,"#"==te.charAt(0)&&(te=te.substr(1,6)),te=(te=te.replace(/ /g,"")).toLowerCase();var ie={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",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"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",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"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",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var re in ie)te==re&&(te=ie[re]);for(var le=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(te){return[parseInt(te[1]),parseInt(te[2]),parseInt(te[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(te){return[parseInt(te[1],16),parseInt(te[2],16),parseInt(te[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(te){return[parseInt(te[1]+te[1],16),parseInt(te[2]+te[2],16),parseInt(te[3]+te[3],16)]}}],ce=0;ce<le.length;ce++){var de=le[ce].re,ue=le[ce].process,me=de.exec(te);me&&(ne=ue(me),this.r=ne[0],this.g=ne[1],this.b=ne[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var te=this.r.toString(16),ne=this.g.toString(16),ie=this.b.toString(16);return 1==te.length&&(te="0"+te),1==ne.length&&(ne="0"+ne),1==ie.length&&(ie="0"+ie),"#"+te+ne+ie}},function(te){var ne="+".charCodeAt(0),ie="/".charCodeAt(0),re="0".charCodeAt(0),le="a".charCodeAt(0),ce="A".charCodeAt(0),de="-".charCodeAt(0),ue="_".charCodeAt(0),u=function(te){var me=te.charCodeAt(0);return me===ne||me===de?62:me===ie||me===ue?63:me<re?-1:me<re+10?me-re+26+26:me<ce+26?me-ce:me<le+26?me-le+26:void 0};te.API.TTFFont=function(){function i(te,ne,ie){var re;if(this.rawData=te,re=this.contents=new ge(te),this.contents.pos=4,"ttcf"===re.readString(4)){if(!ne)throw new Error("Must specify a font name for TTC files.");throw new Error("Font "+ne+" not found in TTC file.")}re.pos=0,this.parse(),this.subset=new Fe(this),this.registerTTF()}return i.open=function(te,ne,ie,re){if("string"!=typeof ie)throw new Error("Invalid argument supplied in TTFFont.open");return new i(function(te){var ne,ie,re,le,ce,de;if(0<te.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var ue=te.length;ce="="===te.charAt(ue-2)?2:"="===te.charAt(ue-1)?1:0,de=new Uint8Array(3*te.length/4-ce),re=0<ce?te.length-4:te.length;var me=0;function h(te){de[me++]=te}for(ie=ne=0;ne<re;ne+=4,ie+=3)h((16711680&(le=u(te.charAt(ne))<<18|u(te.charAt(ne+1))<<12|u(te.charAt(ne+2))<<6|u(te.charAt(ne+3))))>>16),h((65280&le)>>8),h(255&le);return 2===ce?h(255&(le=u(te.charAt(ne))<<2|u(te.charAt(ne+1))>>4)):1===ce&&(h((le=u(te.charAt(ne))<<10|u(te.charAt(ne+1))<<4|u(te.charAt(ne+2))>>2)>>8&255),h(255&le)),de}(ie),ne,re)},i.prototype.parse=function(){return this.directory=new fe(this.contents),this.head=new be(this),this.name=new xe(this),this.cmap=new ye(this),this.toUnicode=new Map,this.hhea=new we(this),this.maxp=new Ee(this),this.hmtx=new Me(this),this.post=new Se(this),this.os2=new ke(this),this.loca=new Pe(this),this.glyf=new Re(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},i.prototype.registerTTF=function(){var te,ne,ie,re,le;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ne,ie,re,le;for(le=[],ne=0,ie=(re=this.bbox).length;ne<ie;ne++)te=re[ne],le.push(Math.round(te*this.scaleFactor));return le}.call(this),this.stemV=0,this.post.exists?(ie=255&(re=this.post.italic_angle),!0&(ne=re>>16)&&(ne=-(1+(65535^ne))),this.italicAngle=+(ne+"."+ie)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(le=this.familyClass)||2===le||3===le||4===le||5===le||7===le,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},i.prototype.characterToGlyph=function(te){var ne;return(null!=(ne=this.cmap.unicode)?ne.codeMap[te]:void 0)||0},i.prototype.widthOfGlyph=function(te){var ne;return ne=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(te).advance*ne},i.prototype.widthOfString=function(te,ne,ie){var re,le,ce,de,ue;for(le=de=ce=0,ue=(te=""+te).length;0<=ue?de<ue:ue<de;le=0<=ue?++de:--de)re=te.charCodeAt(le),ce+=this.widthOfGlyph(this.characterToGlyph(re))+ie*(1e3/ne)||0;return ce*(ne/1e3)},i.prototype.lineHeight=function(te,ne){var ie;return null==ne&&(ne=!1),ie=ne?this.lineGap:0,(this.ascender+ie-this.decender)/1e3*te},i}();var me,ge=function(){function t(te){this.data=null!=te?te:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(te){return this.data[this.pos++]=te},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(te){return this.writeByte(te>>>24&255),this.writeByte(te>>16&255),this.writeByte(te>>8&255),this.writeByte(255&te)},t.prototype.readInt32=function(){var te;return 2147483648<=(te=this.readUInt32())?te-4294967296:te},t.prototype.writeInt32=function(te){return te<0&&(te+=4294967296),this.writeUInt32(te)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(te){return this.writeByte(te>>8&255),this.writeByte(255&te)},t.prototype.readInt16=function(){var te;return 32768<=(te=this.readUInt16())?te-65536:te},t.prototype.writeInt16=function(te){return te<0&&(te+=65536),this.writeUInt16(te)},t.prototype.readString=function(te){var ne,ie,re;for(ie=[],ne=re=0;0<=te?re<te:te<re;ne=0<=te?++re:--re)ie[ne]=String.fromCharCode(this.readByte());return ie.join("")},t.prototype.writeString=function(te){var ne,ie,re,le;for(le=[],ne=ie=0,re=te.length;0<=re?ie<re:re<ie;ne=0<=re?++ie:--ie)le.push(this.writeByte(te.charCodeAt(ne)));return le},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(te){return this.writeInt16(te)},t.prototype.readLongLong=function(){var te,ne,ie,re,le,ce,de,ue;return te=this.readByte(),ne=this.readByte(),ie=this.readByte(),re=this.readByte(),le=this.readByte(),ce=this.readByte(),de=this.readByte(),ue=this.readByte(),128&te?-1*(72057594037927940*(255^te)+281474976710656*(255^ne)+1099511627776*(255^ie)+4294967296*(255^re)+16777216*(255^le)+65536*(255^ce)+256*(255^de)+(255^ue)+1):72057594037927940*te+281474976710656*ne+1099511627776*ie+4294967296*re+16777216*le+65536*ce+256*de+ue},t.prototype.writeLongLong=function(te){var ne,ie;return ne=Math.floor(te/4294967296),ie=4294967295&te,this.writeByte(ne>>24&255),this.writeByte(ne>>16&255),this.writeByte(ne>>8&255),this.writeByte(255&ne),this.writeByte(ie>>24&255),this.writeByte(ie>>16&255),this.writeByte(ie>>8&255),this.writeByte(255&ie)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(te){return this.writeInt32(te)},t.prototype.read=function(te){var ne,ie;for(ne=[],ie=0;0<=te?ie<te:te<ie;0<=te?++ie:--ie)ne.push(this.readByte());return ne},t.prototype.write=function(te){var ne,ie,re,le;for(le=[],ie=0,re=te.length;ie<re;ie++)ne=te[ie],le.push(this.writeByte(ne));return le},t}(),fe=function(){var te;function t(te){var ne,ie,re;for(this.scalarType=te.readInt(),this.tableCount=te.readShort(),this.searchRange=te.readShort(),this.entrySelector=te.readShort(),this.rangeShift=te.readShort(),this.tables={},ie=0,re=this.tableCount;0<=re?ie<re:re<ie;0<=re?++ie:--ie)ne={tag:te.readString(4),checksum:te.readInt(),offset:te.readInt(),length:te.readInt()},this.tables[ne.tag]=ne}return t.prototype.encode=function(ne){var ie,re,le,ce,de,ue,me,fe,_e,be,Ce,ye,we;for(we in Ce=Object.keys(ne).length,ue=Math.log(2),_e=16*Math.floor(Math.log(Ce)/ue),ce=Math.floor(_e/ue),fe=16*Ce-_e,(re=new ge).writeInt(this.scalarType),re.writeShort(Ce),re.writeShort(_e),re.writeShort(ce),re.writeShort(fe),le=16*Ce,me=re.pos+le,de=null,ye=[],ne)for(be=ne[we],re.writeString(we),re.writeInt(te(be)),re.writeInt(me),re.writeInt(be.length),ye=ye.concat(be),"head"===we&&(de=me),me+=be.length;me%4;)ye.push(0),me++;return re.write(ye),ie=2981146554-te(re.data),re.pos=de+8,re.writeUInt32(ie),re.data},te=function(te){var ne,ie,re,le;for(te=Ne.call(te);te.length%4;)te.push(0);for(ie=new ge(te),re=ne=0,le=te.length;re<le;re+=4)ne+=ie.readUInt32();return 4294967295&ne},t}(),_e={}.hasOwnProperty,f=function(te,ne){for(var ie in ne)_e.call(ne,ie)&&(te[ie]=ne[ie]);function r(){this.constructor=te}return r.prototype=ne.prototype,te.prototype=new r,te.__super__=ne.prototype,te};me=function(){function t(te){var ne;this.file=te,ne=this.file.directory.tables[this.tag],this.exists=!!ne,ne&&(this.offset=ne.offset,this.length=ne.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var be=function(te){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,me),e.prototype.tag="head",e.prototype.parse=function(te){return te.pos=this.offset,this.version=te.readInt(),this.revision=te.readInt(),this.checkSumAdjustment=te.readInt(),this.magicNumber=te.readInt(),this.flags=te.readShort(),this.unitsPerEm=te.readShort(),this.created=te.readLongLong(),this.modified=te.readLongLong(),this.xMin=te.readShort(),this.yMin=te.readShort(),this.xMax=te.readShort(),this.yMax=te.readShort(),this.macStyle=te.readShort(),this.lowestRecPPEM=te.readShort(),this.fontDirectionHint=te.readShort(),this.indexToLocFormat=te.readShort(),this.glyphDataFormat=te.readShort()},e.prototype.encode=function(te){var ne;return(ne=new ge).writeInt(this.version),ne.writeInt(this.revision),ne.writeInt(this.checkSumAdjustment),ne.writeInt(this.magicNumber),ne.writeShort(this.flags),ne.writeShort(this.unitsPerEm),ne.writeLongLong(this.created),ne.writeLongLong(this.modified),ne.writeShort(this.xMin),ne.writeShort(this.yMin),ne.writeShort(this.xMax),ne.writeShort(this.yMax),ne.writeShort(this.macStyle),ne.writeShort(this.lowestRecPPEM),ne.writeShort(this.fontDirectionHint),ne.writeShort(te),ne.writeShort(this.glyphDataFormat),ne.data},e}(),Ce=function(){function t(te,ne){var ie,re,le,ce,de,ue,me,ge,fe,_e,be,Ce,ye,we,ke,Se,xe,Ee;switch(this.platformID=te.readUInt16(),this.encodingID=te.readShort(),this.offset=ne+te.readInt(),fe=te.pos,te.pos=this.offset,this.format=te.readUInt16(),this.length=te.readUInt16(),this.language=te.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(ue=ke=0;ke<256;ue=++ke)this.codeMap[ue]=te.readByte();break;case 4:for(be=te.readUInt16(),_e=be/2,te.pos+=6,le=function(){var ne,ie;for(ie=[],ue=ne=0;0<=_e?ne<_e:_e<ne;ue=0<=_e?++ne:--ne)ie.push(te.readUInt16());return ie}(),te.pos+=2,ye=function(){var ne,ie;for(ie=[],ue=ne=0;0<=_e?ne<_e:_e<ne;ue=0<=_e?++ne:--ne)ie.push(te.readUInt16());return ie}(),me=function(){var ne,ie;for(ie=[],ue=ne=0;0<=_e?ne<_e:_e<ne;ue=0<=_e?++ne:--ne)ie.push(te.readUInt16());return ie}(),ge=function(){var ne,ie;for(ie=[],ue=ne=0;0<=_e?ne<_e:_e<ne;ue=0<=_e?++ne:--ne)ie.push(te.readUInt16());return ie}(),re=(this.length-te.pos+this.offset)/2,de=function(){var ne,ie;for(ie=[],ue=ne=0;0<=re?ne<re:re<ne;ue=0<=re?++ne:--ne)ie.push(te.readUInt16());return ie}(),ue=Se=0,Ee=le.length;Se<Ee;ue=++Se)for(we=le[ue],ie=xe=Ce=ye[ue];Ce<=we?xe<=we:we<=xe;ie=Ce<=we?++xe:--xe)0===ge[ue]?ce=ie+me[ue]:0!==(ce=de[ge[ue]/2+(ie-Ce)-(_e-ue)]||0)&&(ce+=me[ue]),this.codeMap[ie]=65535&ce}te.pos=fe}return t.encode=function(te,ne){var ie,re,le,ce,de,ue,me,fe,_e,be,Ce,ye,we,ke,Se,xe,Ee,Me,Ne,Re,Le,Oe,Pe,Fe,je,Ve,Ge,ze,He,$e,qe,Ye,Xe,Ke,Qe,Je,dt,pt,Ct,vt,It,Dt,Mt,Nt,Rt,Ot;switch(ze=new ge,ce=Object.keys(te).sort((function(te,ne){return te-ne})),ne){case"macroman":for(we=0,ke=function(){var te,ne;for(ne=[],ye=te=0;te<256;ye=++te)ne.push(0);return ne}(),xe={0:0},le={},He=0,Xe=ce.length;He<Xe;He++)null==xe[Mt=te[re=ce[He]]]&&(xe[Mt]=++we),le[re]={old:te[re],new:xe[te[re]]},ke[re]=xe[te[re]];return ze.writeUInt16(1),ze.writeUInt16(0),ze.writeUInt32(12),ze.writeUInt16(0),ze.writeUInt16(262),ze.writeUInt16(0),ze.write(ke),{charMap:le,subtable:ze.data,maxGlyphID:we+1};case"unicode":for(Ve=[],_e=[],xe={},ie={},Se=me=null,$e=Ee=0,Ke=ce.length;$e<Ke;$e++)null==xe[Ne=te[re=ce[$e]]]&&(xe[Ne]=++Ee),ie[re]={old:Ne,new:xe[Ne]},de=xe[Ne]-re,null!=Se&&de===me||(Se&&_e.push(Se),Ve.push(re),me=de),Se=re;for(Se&&_e.push(Se),_e.push(65535),Ve.push(65535),Fe=2*(Pe=Ve.length),Oe=2*Math.pow(Math.log(Pe)/Math.LN2,2),be=Math.log(Oe/2)/Math.LN2,Le=2*Pe-Oe,ue=[],Re=[],Ce=[],ye=qe=0,Qe=Ve.length;qe<Qe;ye=++qe){if(je=Ve[ye],fe=_e[ye],65535===je){ue.push(0),Re.push(0);break}if(32768<=je-(Ge=ie[je].new))for(ue.push(0),Re.push(2*(Ce.length+Pe-ye)),re=Ye=je;je<=fe?Ye<=fe:fe<=Ye;re=je<=fe?++Ye:--Ye)Ce.push(ie[re].new);else ue.push(Ge-je),Re.push(0)}for(ze.writeUInt16(3),ze.writeUInt16(1),ze.writeUInt32(12),ze.writeUInt16(4),ze.writeUInt16(16+8*Pe+2*Ce.length),ze.writeUInt16(0),ze.writeUInt16(Fe),ze.writeUInt16(Oe),ze.writeUInt16(be),ze.writeUInt16(Le),It=0,Je=_e.length;It<Je;It++)re=_e[It],ze.writeUInt16(re);for(ze.writeUInt16(0),Dt=0,dt=Ve.length;Dt<dt;Dt++)re=Ve[Dt],ze.writeUInt16(re);for(Nt=0,pt=ue.length;Nt<pt;Nt++)de=ue[Nt],ze.writeUInt16(de);for(Rt=0,Ct=Re.length;Rt<Ct;Rt++)Me=Re[Rt],ze.writeUInt16(Me);for(Ot=0,vt=Ce.length;Ot<vt;Ot++)we=Ce[Ot],ze.writeUInt16(we);return{charMap:ie,subtable:ze.data,maxGlyphID:Ee+1}}},t}(),ye=function(te){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,me),e.prototype.tag="cmap",e.prototype.parse=function(te){var ne,ie,re;for(te.pos=this.offset,this.version=te.readUInt16(),ie=te.readUInt16(),this.tables=[],this.unicode=null,re=0;0<=ie?re<ie:ie<re;0<=ie?++re:--re)ne=new Ce(te,this.offset),this.tables.push(ne),ne.isUnicode&&null==this.unicode&&(this.unicode=ne);return!0},e.encode=function(te,ne){var ie,re;return null==ne&&(ne="macroman"),ie=Ce.encode(te,ne),(re=new ge).writeUInt16(0),re.writeUInt16(1),ie.table=re.data.concat(ie.subtable),ie},e}(),we=function(te){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,me),e.prototype.tag="hhea",e.prototype.parse=function(te){return te.pos=this.offset,this.version=te.readInt(),this.ascender=te.readShort(),this.decender=te.readShort(),this.lineGap=te.readShort(),this.advanceWidthMax=te.readShort(),this.minLeftSideBearing=te.readShort(),this.minRightSideBearing=te.readShort(),this.xMaxExtent=te.readShort(),this.caretSlopeRise=te.readShort(),this.caretSlopeRun=te.readShort(),this.caretOffset=te.readShort(),te.pos+=8,this.metricDataFormat=te.readShort(),this.numberOfMetrics=te.readUInt16()},e}(),ke=function(te){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,me),e.prototype.tag="OS/2",e.prototype.parse=function(te){if(te.pos=this.offset,this.version=te.readUInt16(),this.averageCharWidth=te.readShort(),this.weightClass=te.readUInt16(),this.widthClass=te.readUInt16(),this.type=te.readShort(),this.ySubscriptXSize=te.readShort(),this.ySubscriptYSize=te.readShort(),this.ySubscriptXOffset=te.readShort(),this.ySubscriptYOffset=te.readShort(),this.ySuperscriptXSize=te.readShort(),this.ySuperscriptYSize=te.readShort(),this.ySuperscriptXOffset=te.readShort(),this.ySuperscriptYOffset=te.readShort(),this.yStrikeoutSize=te.readShort(),this.yStrikeoutPosition=te.readShort(),this.familyClass=te.readShort(),this.panose=function(){var ne,ie;for(ie=[],ne=0;ne<10;++ne)ie.push(te.readByte());return ie}(),this.charRange=function(){var ne,ie;for(ie=[],ne=0;ne<4;++ne)ie.push(te.readInt());return ie}(),this.vendorID=te.readString(4),this.selection=te.readShort(),this.firstCharIndex=te.readShort(),this.lastCharIndex=te.readShort(),0<this.version&&(this.ascent=te.readShort(),this.descent=te.readShort(),this.lineGap=te.readShort(),this.winAscent=te.readShort(),this.winDescent=te.readShort(),this.codePageRange=function(){var ne,ie;for(ie=[],ne=0;ne<2;++ne)ie.push(te.readInt());return ie}(),1<this.version))return this.xHeight=te.readShort(),this.capHeight=te.readShort(),this.defaultChar=te.readShort(),this.breakChar=te.readShort(),this.maxContext=te.readShort()},e}(),Se=function(te){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,me),e.prototype.tag="post",e.prototype.parse=function(te){var ne,ie,re,le;switch(te.pos=this.offset,this.format=te.readInt(),this.italicAngle=te.readInt(),this.underlinePosition=te.readShort(),this.underlineThickness=te.readShort(),this.isFixedPitch=te.readInt(),this.minMemType42=te.readInt(),this.maxMemType42=te.readInt(),this.minMemType1=te.readInt(),this.maxMemType1=te.readInt(),this.format){case 65536:case 196608:break;case 131072:for(ie=te.readUInt16(),this.glyphNameIndex=[],re=0;0<=ie?re<ie:ie<re;0<=ie?++re:--re)this.glyphNameIndex.push(te.readUInt16());for(this.names=[],le=[];te.pos<this.offset+this.length;)ne=te.readByte(),le.push(this.names.push(te.readString(ne)));return le;case 151552:return ie=te.readUInt16(),this.offsets=te.read(ie);case 262144:return this.map=function(){var ne,ie,re;for(re=[],ne=0,ie=this.file.maxp.numGlyphs;0<=ie?ne<ie:ie<ne;0<=ie?++ne:--ne)re.push(te.readUInt32());return re}.call(this)}},e}(),w=function(te,ne){this.raw=te,this.length=te.length,this.platformID=ne.platformID,this.encodingID=ne.encodingID,this.languageID=ne.languageID},xe=function(te){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,me),e.prototype.tag="name",e.prototype.parse=function(te){var ne,ie,re,le,ce,de,ue,me,ge,fe,_e,be;for(te.pos=this.offset,te.readShort(),ne=te.readShort(),de=te.readShort(),ie=[],le=ge=0;0<=ne?ge<ne:ne<ge;le=0<=ne?++ge:--ge)ie.push({platformID:te.readShort(),encodingID:te.readShort(),languageID:te.readShort(),nameID:te.readShort(),length:te.readShort(),offset:this.offset+de+te.readShort()});for(ue={},le=fe=0,_e=ie.length;fe<_e;le=++fe)re=ie[le],te.pos=re.offset,me=te.readString(re.length),ce=new w(me,re),null==ue[be=re.nameID]&&(ue[be]=[]),ue[re.nameID].push(ce);this.strings=ue,this.copyright=ue[0],this.fontFamily=ue[1],this.fontSubfamily=ue[2],this.uniqueSubfamily=ue[3],this.fontName=ue[4],this.version=ue[5];try{this.postscriptName=ue[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(te){this.postscriptName=ue[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=ue[7],this.manufacturer=ue[8],this.designer=ue[9],this.description=ue[10],this.vendorUrl=ue[11],this.designerUrl=ue[12],this.license=ue[13],this.licenseUrl=ue[14],this.preferredFamily=ue[15],this.preferredSubfamily=ue[17],this.compatibleFull=ue[18],this.sampleText=ue[19]},e}(),Ee=function(te){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,me),e.prototype.tag="maxp",e.prototype.parse=function(te){return te.pos=this.offset,this.version=te.readInt(),this.numGlyphs=te.readUInt16(),this.maxPoints=te.readUInt16(),this.maxContours=te.readUInt16(),this.maxCompositePoints=te.readUInt16(),this.maxComponentContours=te.readUInt16(),this.maxZones=te.readUInt16(),this.maxTwilightPoints=te.readUInt16(),this.maxStorage=te.readUInt16(),this.maxFunctionDefs=te.readUInt16(),this.maxInstructionDefs=te.readUInt16(),this.maxStackElements=te.readUInt16(),this.maxSizeOfInstructions=te.readUInt16(),this.maxComponentElements=te.readUInt16(),this.maxComponentDepth=te.readUInt16()},e}(),Me=function(te){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,me),e.prototype.tag="hmtx",e.prototype.parse=function(te){var ne,ie,re,le,ce,de,ue;for(te.pos=this.offset,this.metrics=[],le=0,de=this.file.hhea.numberOfMetrics;0<=de?le<de:de<le;0<=de?++le:--le)this.metrics.push({advance:te.readUInt16(),lsb:te.readInt16()});for(ie=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var ne,re;for(re=[],ne=0;0<=ie?ne<ie:ie<ne;0<=ie?++ne:--ne)re.push(te.readInt16());return re}(),this.widths=function(){var te,ne,ie,le;for(le=[],te=0,ne=(ie=this.metrics).length;te<ne;te++)re=ie[te],le.push(re.advance);return le}.call(this),ne=this.widths[this.widths.length-1],ue=[],ce=0;0<=ie?ce<ie:ie<ce;0<=ie?++ce:--ce)ue.push(this.widths.push(ne));return ue},e.prototype.forGlyph=function(te){return te in this.metrics?this.metrics[te]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[te-this.metrics.length]}},e}(),Ne=[].slice,Re=function(te){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,me),e.prototype.tag="glyf",e.prototype.parse=function(te){return this.cache={}},e.prototype.glyphFor=function(te){var ne,ie,re,le,ce,de,ue,me,fe,_e;return te in this.cache?this.cache[te]:(le=this.file.loca,ne=this.file.contents,ie=le.indexOf(te),0===(re=le.lengthOf(te))?this.cache[te]=null:(ne.pos=this.offset+ie,ce=(de=new ge(ne.read(re))).readShort(),me=de.readShort(),_e=de.readShort(),ue=de.readShort(),fe=de.readShort(),this.cache[te]=-1===ce?new Oe(de,me,_e,ue,fe):new Le(de,ce,me,_e,ue,fe),this.cache[te]))},e.prototype.encode=function(te,ne,ie){var re,le,ce,de,ue;for(ce=[],le=[],de=0,ue=ne.length;de<ue;de++)re=te[ne[de]],le.push(ce.length),re&&(ce=ce.concat(re.encode(ie)));return le.push(ce.length),{table:ce,offsets:le}},e}(),Le=function(){function t(te,ne,ie,re,le,ce){this.raw=te,this.numberOfContours=ne,this.xMin=ie,this.yMin=re,this.xMax=le,this.yMax=ce,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Oe=function(){function t(te,ne,ie,re,le){var ce,de;for(this.raw=te,this.xMin=ne,this.yMin=ie,this.xMax=re,this.yMax=le,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ce=this.raw;de=ce.readShort(),this.glyphOffsets.push(ce.pos),this.glyphIDs.push(ce.readShort()),32&de;)ce.pos+=1&de?4:2,128&de?ce.pos+=8:64&de?ce.pos+=4:8&de&&(ce.pos+=2)}return t.prototype.encode=function(te){var ne,ie,re,le,ce;for(ie=new ge(Ne.call(this.raw.data)),ne=re=0,le=(ce=this.glyphIDs).length;re<le;ne=++re)ce[ne],ie.pos=this.glyphOffsets[ne];return ie.data},t}(),Pe=function(te){function e(){return e.__super__.constructor.apply(this,arguments)}return f(e,me),e.prototype.tag="loca",e.prototype.parse=function(te){var ne;return te.pos=this.offset,ne=this.file.head.indexToLocFormat,this.offsets=0===ne?function(){var ne,ie,re;for(re=[],ne=0,ie=this.length;ne<ie;ne+=2)re.push(2*te.readUInt16());return re}.call(this):function(){var ne,ie,re;for(re=[],ne=0,ie=this.length;ne<ie;ne+=4)re.push(te.readUInt32());return re}.call(this)},e.prototype.indexOf=function(te){return this.offsets[te]},e.prototype.lengthOf=function(te){return this.offsets[te+1]-this.offsets[te]},e.prototype.encode=function(te,ne){for(var ie=new Uint32Array(this.offsets.length),re=0,le=0,ce=0;ce<ie.length;++ce)if(ie[ce]=re,le<ne.length&&ne[le]==ce){++le,ie[ce]=re;var de=this.offsets[ce],ue=this.offsets[ce+1]-de;0<ue&&(re+=ue)}for(var me=new Array(4*ie.length),ge=0;ge<ie.length;++ge)me[4*ge+3]=255&ie[ge],me[4*ge+2]=(65280&ie[ge])>>8,me[4*ge+1]=(16711680&ie[ge])>>16,me[4*ge]=(4278190080&ie[ge])>>24;return me},e}(),Fe=function(){function t(te){this.font=te,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var te,ne,ie,re,le;for(ne in re=this.font.cmap.tables[0].codeMap,te={},le=this.subset)ie=le[ne],te[ne]=re[ie];return te},t.prototype.glyphsFor=function(te){var ne,ie,re,le,ce,de,ue;for(re={},ce=0,de=te.length;ce<de;ce++)re[le=te[ce]]=this.font.glyf.glyphFor(le);for(le in ne=[],re)(null!=(ie=re[le])?ie.compound:void 0)&&ne.push.apply(ne,ie.glyphIDs);if(0<ne.length)for(le in ue=this.glyphsFor(ne))ie=ue[le],re[le]=ie;return re},t.prototype.encode=function(te,ne){var ie,re,le,ce,de,ue,me,ge,fe,_e,be,Ce,we,ke,Se;for(re in ie=ye.encode(this.generateCmap(),"unicode"),ce=this.glyphsFor(te),be={0:0},Se=ie.charMap)be[(ue=Se[re]).old]=ue.new;for(Ce in _e=ie.maxGlyphID,ce)Ce in be||(be[Ce]=_e++);return ge=function(te){var ne,ie;for(ne in ie={},te)ie[te[ne]]=ne;return ie}(be),fe=Object.keys(ge).sort((function(te,ne){return te-ne})),we=function(){var te,ne,ie;for(ie=[],te=0,ne=fe.length;te<ne;te++)de=fe[te],ie.push(ge[de]);return ie}(),le=this.font.glyf.encode(ce,we,be),me=this.font.loca.encode(le.offsets,we),ke={cmap:this.font.cmap.raw(),glyf:le.table,loca:me,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(ne)},this.font.os2.exists&&(ke["OS/2"]=this.font.os2.raw()),this.font.directory.encode(ke)},t}();te.API.PDFObject=function(){var te;function a(){}return te=function(te,ne){return(Array(ne+1).join("0")+te).slice(-ne)},a.convert=function(ne){var ie,re,le,ce;if(Array.isArray(ne))return"["+function(){var te,re,le;for(le=[],te=0,re=ne.length;te<re;te++)ie=ne[te],le.push(a.convert(ie));return le}().join(" ")+"]";if("string"==typeof ne)return"/"+ne;if(null!=ne?ne.isString:void 0)return"("+ne+")";if(ne instanceof Date)return"(D:"+te(ne.getUTCFullYear(),4)+te(ne.getUTCMonth(),2)+te(ne.getUTCDate(),2)+te(ne.getUTCHours(),2)+te(ne.getUTCMinutes(),2)+te(ne.getUTCSeconds(),2)+"Z)";if("[object Object]"!=={}.toString.call(ne))return""+ne;for(re in le=["<<"],ne)ce=ne[re],le.push("/"+re+" "+a.convert(ce));return le.push(">>"),le.join("\n")},a}()}(dn),En="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||Function('return typeof this === "object" && this.content')()||Function("return this")(),Rn=function(){var te,ne,ie;function i(te){var ne,ie,re,le,ce,de,ue,me,ge,fe,_e,be,Ce,ye;for(this.data=te,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},de=null;;){switch(ne=this.readUInt32(),ge=function(){var te,ne;for(ne=[],te=0;te<4;++te)ne.push(String.fromCharCode(this.data[this.pos++]));return ne}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(ne);break;case"fcTL":de&&this.animation.frames.push(de),this.pos+=4,de={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},ce=this.readUInt16(),le=this.readUInt16()||100,de.delay=1e3*ce/le,de.disposeOp=this.data[this.pos++],de.blendOp=this.data[this.pos++],de.data=[];break;case"IDAT":case"fdAT":for("fdAT"===ge&&(this.pos+=4,ne-=4),te=(null!=de?de.data:void 0)||this.imgData,be=0;0<=ne?be<ne:ne<be;0<=ne?++be:--be)te.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(re=this.palette.length/3,this.transparency.indexed=this.read(ne),this.transparency.indexed.length>re)throw new Error("More transparent colors than palette size");if(0<(fe=re-this.transparency.indexed.length))for(Ce=0;0<=fe?Ce<fe:fe<Ce;0<=fe?++Ce:--Ce)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(ne)[0];break;case 2:this.transparency.rgb=this.read(ne)}break;case"tEXt":ue=(_e=this.read(ne)).indexOf(0),me=String.fromCharCode.apply(String,_e.slice(0,ue)),this.text[me]=String.fromCharCode.apply(String,_e.slice(ue+1));break;case"IEND":return de&&this.animation.frames.push(de),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(ye=this.colorType)||6===ye,ie=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*ie,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=ne}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.load=function(te,ne,ie){var re;return"function"==typeof ne&&(ie=ne),(re=new XMLHttpRequest).open("GET",te,!0),re.responseType="arraybuffer",re.onload=function(){var te;return te=new i(new Uint8Array(re.response||re.mozResponseArrayBuffer)),"function"==typeof(null!=ne?ne.getContext:void 0)&&te.render(ne),"function"==typeof ie?ie(te):void 0},re.send(null)},i.prototype.read=function(te){var ne,ie;for(ie=[],ne=0;0<=te?ne<te:te<ne;0<=te?++ne:--ne)ie.push(this.data[this.pos++]);return ie},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(te){var ne=this.pixelBitlength/8,ie=new Uint8Array(this.width*this.height*ne),re=0,le=this;if(null==te&&(te=this.imgData),0===te.length)return new Uint8Array(0);function t(ce,de,ue,me){var ge,fe,_e,be,Ce,ye,we,ke,Se,xe,Ee,Me,Ne,Re,Le,Oe,Pe,Fe,je,Ve,Ge,ze=Math.ceil((le.width-ce)/ue),He=Math.ceil((le.height-de)/me),$e=le.width==ze&&le.height==He;for(Re=ne*ze,Me=$e?ie:new Uint8Array(Re*He),ye=te.length,fe=Ne=0;Ne<He&&re<ye;){switch(te[re++]){case 0:for(be=Pe=0;Pe<Re;be=Pe+=1)Me[fe++]=te[re++];break;case 1:for(be=Fe=0;Fe<Re;be=Fe+=1)ge=te[re++],Ce=be<ne?0:Me[fe-ne],Me[fe++]=(ge+Ce)%256;break;case 2:for(be=je=0;je<Re;be=je+=1)ge=te[re++],_e=(be-be%ne)/ne,Le=Ne&&Me[(Ne-1)*Re+_e*ne+be%ne],Me[fe++]=(Le+ge)%256;break;case 3:for(be=Ve=0;Ve<Re;be=Ve+=1)ge=te[re++],_e=(be-be%ne)/ne,Ce=be<ne?0:Me[fe-ne],Le=Ne&&Me[(Ne-1)*Re+_e*ne+be%ne],Me[fe++]=(ge+Math.floor((Ce+Le)/2))%256;break;case 4:for(be=Ge=0;Ge<Re;be=Ge+=1)ge=te[re++],_e=(be-be%ne)/ne,Ce=be<ne?0:Me[fe-ne],0===Ne?Le=Oe=0:(Le=Me[(Ne-1)*Re+_e*ne+be%ne],Oe=_e&&Me[(Ne-1)*Re+(_e-1)*ne+be%ne]),we=Ce+Le-Oe,ke=Math.abs(we-Ce),xe=Math.abs(we-Le),Ee=Math.abs(we-Oe),Se=ke<=xe&&ke<=Ee?Ce:xe<=Ee?Le:Oe,Me[fe++]=(ge+Se)%256;break;default:throw new Error("Invalid filter algorithm: "+te[re-1])}if(!$e){var qe=((de+Ne*me)*le.width+ce)*ne,Ye=Ne*Re;for(be=0;be<ze;be+=1){for(var Xe=0;Xe<ne;Xe+=1)ie[qe++]=Me[Ye++];qe+=(ue-1)*ne}}Ne++}}return te=(te=new Pn(te)).getBytes(),1==le.interlaceMethod?(t(0,0,8,8),t(4,0,8,8),t(0,4,4,8),t(2,0,4,4),t(0,2,2,4),t(1,0,2,2),t(0,1,1,2)):t(0,0,1,1),ie},i.prototype.decodePalette=function(){var te,ne,ie,re,le,ce,de,ue,me;for(ie=this.palette,ce=this.transparency.indexed||[],le=new Uint8Array((ce.length||0)+ie.length),re=0,ie.length,ne=de=te=0,ue=ie.length;de<ue;ne=de+=3)le[re++]=ie[ne],le[re++]=ie[ne+1],le[re++]=ie[ne+2],le[re++]=null!=(me=ce[te++])?me:255;return le},i.prototype.copyToImageData=function(te,ne){var ie,re,le,ce,de,ue,me,ge,fe,_e,be;if(re=this.colors,fe=null,ie=this.hasAlphaChannel,this.palette.length&&(fe=null!=(be=this._decodedPalette)?be:this._decodedPalette=this.decodePalette(),re=4,ie=!0),ge=(le=te.data||te).length,de=fe||ne,ce=ue=0,1===re)for(;ce<ge;)me=fe?4*ne[ce/4]:ue,_e=de[me++],le[ce++]=_e,le[ce++]=_e,le[ce++]=_e,le[ce++]=ie?de[me++]:255,ue=me;else for(;ce<ge;)me=fe?4*ne[ce/4]:ue,le[ce++]=de[me++],le[ce++]=de[me++],le[ce++]=de[me++],le[ce++]=ie?de[me++]:255,ue=me},i.prototype.decode=function(){var te;return te=new Uint8Array(this.width*this.height*4),this.copyToImageData(te,this.decodePixels()),te};try{ne=En.document.createElement("canvas"),ie=ne.getContext("2d")}catch(te){return-1}return te=function(te){var re;return ie.width=te.width,ie.height=te.height,ie.clearRect(0,0,te.width,te.height),ie.putImageData(te,0,0),(re=new Image).src=ne.toDataURL(),re},i.prototype.decodeFrames=function(ne){var ie,re,le,ce,de,ue,me,ge;if(this.animation){for(ge=[],re=de=0,ue=(me=this.animation.frames).length;de<ue;re=++de)ie=me[re],le=ne.createImageData(ie.width,ie.height),ce=this.decodePixels(new Uint8Array(ie.data)),this.copyToImageData(le,ce),ie.imageData=le,ge.push(ie.image=te(le));return ge}},i.prototype.renderFrame=function(te,ne){var ie,re,le;return ie=(re=this.animation.frames)[ne],le=re[ne-1],0===ne&&te.clearRect(0,0,this.width,this.height),1===(null!=le?le.disposeOp:void 0)?te.clearRect(le.xOffset,le.yOffset,le.width,le.height):2===(null!=le?le.disposeOp:void 0)&&te.putImageData(le.imageData,le.xOffset,le.yOffset),0===ie.blendOp&&te.clearRect(ie.xOffset,ie.yOffset,ie.width,ie.height),te.drawImage(ie.image,ie.xOffset,ie.yOffset)},i.prototype.animate=function(te){var ne,ie,re,le,ce,de,ue=this;return ie=0,de=this.animation,le=de.numFrames,re=de.frames,ce=de.numPlays,(ne=function(){var de,me;if(de=ie++%le,me=re[de],ue.renderFrame(te,de),1<le&&ie/le<ce)return ue.animation._timeout=setTimeout(ne,me.delay)})()},i.prototype.stopAnimation=function(){var te;return clearTimeout(null!=(te=this.animation)?te._timeout:void 0)},i.prototype.render=function(te){var ne,ie;return te._png&&te._png.stopAnimation(),te._png=this,te.width=this.width,te.height=this.height,ne=te.getContext("2d"),this.animation?(this.decodeFrames(ne),this.animate(ne)):(ie=ne.createImageData(this.width,this.height),this.copyToImageData(ie,this.decodePixels()),ne.putImageData(ie,0,0))},i}(),En.PNG=Rn;var On=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(te){var ne=this.buffer,ie=ne?ne.byteLength:0;if(te<ie)return ne;for(var re=512;re<te;)re<<=1;for(var le=new Uint8Array(re),ce=0;ce<ie;++ce)le[ce]=ne[ce];return this.buffer=le},getByte:function(){for(var te=this.pos;this.bufferLength<=te;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(te){var ne=this.pos;if(te){this.ensureBuffer(ne+te);for(var ie=ne+te;!this.eof&&this.bufferLength<ie;)this.readBlock();var re=this.bufferLength;re<ie&&(ie=re)}else{for(;!this.eof;)this.readBlock();ie=this.bufferLength}return this.pos=ie,this.buffer.subarray(ne,ie)},lookChar:function(){for(var te=this.pos;this.bufferLength<=te;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var te=this.pos;this.bufferLength<=te;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(te,ne,ie){for(var re=te+ne;this.bufferLength<=re&&!this.eof;)this.readBlock();return new Stream(this.buffer,te,ne,ie)},skip:function(te){te||(te=1),this.pos+=te},reset:function(){this.pos=0}},t}(),Pn=function(){if("undefined"!=typeof Uint32Array){var te=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ne=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),ie=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),re=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],le=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return(t.prototype=Object.create(On.prototype)).getBits=function(te){for(var ne,ie=this.codeSize,re=this.codeBuf,le=this.bytes,ce=this.bytesPos;ie<te;)void 0===(ne=le[ce++])&&E("Bad encoding in flate stream"),re|=ne<<ie,ie+=8;return ne=re&(1<<te)-1,this.codeBuf=re>>te,this.codeSize=ie-=te,this.bytesPos=ce,ne},t.prototype.getCode=function(te){for(var ne=te[0],ie=te[1],re=this.codeSize,le=this.codeBuf,ce=this.bytes,de=this.bytesPos;re<ie;){var ue;void 0===(ue=ce[de++])&&E("Bad encoding in flate stream"),le|=ue<<re,re+=8}var me=ne[le&(1<<ie)-1],ge=me>>16,fe=65535&me;return(0==re||re<ge||0==ge)&&E("Bad encoding in flate stream"),this.codeBuf=le>>ge,this.codeSize=re-ge,this.bytesPos=de,fe},t.prototype.generateHuffmanTable=function(te){for(var ne=te.length,ie=0,re=0;re<ne;++re)te[re]>ie&&(ie=te[re]);for(var le=1<<ie,ce=new Uint32Array(le),de=1,ue=0,me=2;de<=ie;++de,ue<<=1,me<<=1)for(var ge=0;ge<ne;++ge)if(te[ge]==de){var fe=0,_e=ue;for(re=0;re<de;++re)fe=fe<<1|1&_e,_e>>=1;for(re=fe;re<le;re+=me)ce[re]=de<<16|ge;++ue}return[ce,ie]},t.prototype.readBlock=function(){function t(te,ne,ie,re,le){for(var ce=te.getBits(ie)+re;0<ce--;)ne[be++]=le}var ce=this.getBits(3);if(1&ce&&(this.eof=!0),0!=(ce>>=1)){var de,ue;if(1==ce)de=re,ue=le;else if(2==ce){for(var me=this.getBits(5)+257,ge=this.getBits(5)+1,fe=this.getBits(4)+4,_e=Array(te.length),be=0;be<fe;)_e[te[be++]]=this.getBits(3);for(var Ce=this.generateHuffmanTable(_e),ye=0,we=(be=0,me+ge),ke=new Array(we);be<we;){var Se=this.getCode(Ce);16==Se?t(this,ke,2,3,ye):17==Se?t(this,ke,3,3,ye=0):18==Se?t(this,ke,7,11,ye=0):ke[be++]=ye=Se}de=this.generateHuffmanTable(ke.slice(0,me)),ue=this.generateHuffmanTable(ke.slice(me,we))}else E("Unknown block type in flate stream");for(var xe=(ze=this.buffer)?ze.length:0,Ee=this.bufferLength;;){var Me=this.getCode(de);if(Me<256)xe<=Ee+1&&(xe=(ze=this.ensureBuffer(Ee+1)).length),ze[Ee++]=Me;else{if(256==Me)return void(this.bufferLength=Ee);var Ne=(Me=ne[Me-=257])>>16;0<Ne&&(Ne=this.getBits(Ne)),ye=(65535&Me)+Ne,Me=this.getCode(ue),0<(Ne=(Me=ie[Me])>>16)&&(Ne=this.getBits(Ne));var Re=(65535&Me)+Ne;xe<=Ee+ye&&(xe=(ze=this.ensureBuffer(Ee+ye)).length);for(var Le=0;Le<ye;++Le,++Ee)ze[Ee]=ze[Ee-Re]}}}else{var Oe,Pe=this.bytes,Fe=this.bytesPos;void 0===(Oe=Pe[Fe++])&&E("Bad block header in flate stream");var je=Oe;void 0===(Oe=Pe[Fe++])&&E("Bad block header in flate stream"),je|=Oe<<8,void 0===(Oe=Pe[Fe++])&&E("Bad block header in flate stream");var Ve=Oe;void 0===(Oe=Pe[Fe++])&&E("Bad block header in flate stream"),(Ve|=Oe<<8)!=(65535&~je)&&E("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var Ge=this.bufferLength,ze=this.ensureBuffer(Ge+je),He=Ge+je;this.bufferLength=He;for(var $e=Ge;$e<He;++$e){if(void 0===(Oe=Pe[Fe++])){this.eof=!0;break}ze[$e]=Oe}this.bytesPos=Fe}},t}function E(te){throw new Error(te)}function t(te){var ne=0,ie=te[ne++],re=te[ne++];-1!=ie&&-1!=re||E("Invalid header in flate stream"),8!=(15&ie)&&E("Unknown compression method in flate stream"),((ie<<8)+re)%31!=0&&E("Bad FCHECK in flate stream"),32&re&&E("FDICT bit set in flate stream"),this.bytes=te,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,On.call(this)}}();window.tmp=Pn},void 0===(le="function"==typeof re?re.call(ne,ie,ne,te):re)||(te.exports=le);try{te.exports=jsPDF}catch(te){}},407:function(te,ne,ie){var re;te=ie.nmd(te),function(){var le,ce="Expected a function",de="__lodash_hash_undefined__",ue="__lodash_placeholder__",me=16,ge=32,fe=64,_e=128,be=256,Ce=1/0,ye=9007199254740991,we=NaN,ke=4294967295,Se=[["ary",_e],["bind",1],["bindKey",2],["curry",8],["curryRight",me],["flip",512],["partial",ge],["partialRight",fe],["rearg",be]],xe="[object Arguments]",Ee="[object Array]",Me="[object Boolean]",Ne="[object Date]",Re="[object Error]",Le="[object Function]",Oe="[object GeneratorFunction]",Pe="[object Map]",Fe="[object Number]",je="[object Object]",Ve="[object Promise]",Ge="[object RegExp]",ze="[object Set]",He="[object String]",$e="[object Symbol]",qe="[object WeakMap]",Ye="[object ArrayBuffer]",Xe="[object DataView]",Ke="[object Float32Array]",Qe="[object Float64Array]",Je="[object Int8Array]",dt="[object Int16Array]",pt="[object Int32Array]",Ct="[object Uint8Array]",vt="[object Uint8ClampedArray]",It="[object Uint16Array]",Dt="[object Uint32Array]",Mt=/\b__p \+= '';/g,Nt=/\b(__p \+=) '' \+/g,Rt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ot=/&(?:amp|lt|gt|quot|#39);/g,Vt=/[&<>"']/g,Gt=RegExp(Ot.source),zt=RegExp(Vt.source),Ht=/<%-([\s\S]+?)%>/g,Ut=/<%([\s\S]+?)%>/g,$t=/<%=([\s\S]+?)%>/g,Yt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wt=/^\w*$/,Kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qt=/[\\^$.*+?()[\]{}|]/g,Jt=RegExp(Qt.source),Zt=/^\s+/,tn=/\s/,nn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rn=/\{\n\/\* \[wrapped with (.+)\] \*/,an=/,? & /,sn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dn=/[()=,{}\[\]\/\s]/,un=/\\(\\)?/g,pn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hn=/\w*$/,fn=/^[-+]0x[0-9a-f]+$/i,_n=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,yn=/^0o[0-7]+$/i,wn=/^(?:0|[1-9]\d*)$/,kn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Tn=/['\n\r\u2028\u2029\\]/g,Dn="\\ud800-\\udfff",xn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",En="\\u2700-\\u27bf",Rn="a-z\\xdf-\\xf6\\xf8-\\xff",Ln="A-Z\\xc0-\\xd6\\xd8-\\xde",On="\\ufe0e\\ufe0f",Pn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Fn="['’]",jn="["+Dn+"]",Vn="["+Pn+"]",Gn="["+xn+"]",zn="\\d+",Hn="["+En+"]",Un="["+Rn+"]",$n="[^"+Dn+Pn+zn+En+Rn+Ln+"]",qn="\\ud83c[\\udffb-\\udfff]",Yn="[^"+Dn+"]",Wn="(?:\\ud83c[\\udde6-\\uddff]){2}",Kn="[\\ud800-\\udbff][\\udc00-\\udfff]",Qn="["+Ln+"]",Jn="\\u200d",Zn="(?:"+Un+"|"+$n+")",pi="(?:"+Qn+"|"+$n+")",gi="(?:['’](?:d|ll|m|re|s|t|ve))?",fi="(?:['’](?:D|LL|M|RE|S|T|VE))?",yi="(?:"+Gn+"|"+qn+")"+"?",ki="["+On+"]?",Ri=ki+yi+("(?:"+Jn+"(?:"+[Yn,Wn,Kn].join("|")+")"+ki+yi+")*"),Pi="(?:"+[Hn,Wn,Kn].join("|")+")"+Ri,Fi="(?:"+[Yn+Gn+"?",Gn,Wn,Kn,jn].join("|")+")",ji=RegExp(Fn,"g"),Vi=RegExp(Gn,"g"),eo=RegExp(qn+"(?="+qn+")|"+Fi+Ri,"g"),to=RegExp([Qn+"?"+Un+"+"+gi+"(?="+[Vn,Qn,"$"].join("|")+")",pi+"+"+fi+"(?="+[Vn,Qn+Zn,"$"].join("|")+")",Qn+"?"+Zn+"+"+gi,Qn+"+"+fi,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zn,Pi].join("|"),"g"),no=RegExp("["+Jn+Dn+xn+On+"]"),io=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oo=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ro=-1,lo={};lo[Ke]=lo[Qe]=lo[Je]=lo[dt]=lo[pt]=lo[Ct]=lo[vt]=lo[It]=lo[Dt]=!0,lo[xe]=lo[Ee]=lo[Ye]=lo[Me]=lo[Xe]=lo[Ne]=lo[Re]=lo[Le]=lo[Pe]=lo[Fe]=lo[je]=lo[Ge]=lo[ze]=lo[He]=lo[qe]=!1;var co={};co[xe]=co[Ee]=co[Ye]=co[Xe]=co[Me]=co[Ne]=co[Ke]=co[Qe]=co[Je]=co[dt]=co[pt]=co[Pe]=co[Fe]=co[je]=co[Ge]=co[ze]=co[He]=co[$e]=co[Ct]=co[vt]=co[It]=co[Dt]=!0,co[Re]=co[Le]=co[qe]=!1;var uo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mo=parseFloat,go=parseInt,fo="object"==typeof global&&global&&global.Object===Object&&global,_o="object"==typeof self&&self&&self.Object===Object&&self,bo=fo||_o||Function("return this")(),Co=ne&&!ne.nodeType&&ne,wo=Co&&te&&!te.nodeType&&te,Ao=wo&&wo.exports===Co,ko=Ao&&fo.process,Io=function(){try{var te=wo&&wo.require&&wo.require("util").types;return te||ko&&ko.binding&&ko.binding("util")}catch(te){}}(),Po=Io&&Io.isArrayBuffer,Fo=Io&&Io.isDate,zo=Io&&Io.isMap,Zo=Io&&Io.isRegExp,ur=Io&&Io.isSet,hr=Io&&Io.isTypedArray;function apply(te,ne,ie){switch(ie.length){case 0:return te.call(ne);case 1:return te.call(ne,ie[0]);case 2:return te.call(ne,ie[0],ie[1]);case 3:return te.call(ne,ie[0],ie[1],ie[2])}return te.apply(ne,ie)}function arrayAggregator(te,ne,ie,re){for(var le=-1,ce=null==te?0:te.length;++le<ce;){var de=te[le];ne(re,de,ie(de),te)}return re}function arrayEach(te,ne){for(var ie=-1,re=null==te?0:te.length;++ie<re&&!1!==ne(te[ie],ie,te););return te}function arrayEachRight(te,ne){for(var ie=null==te?0:te.length;ie--&&!1!==ne(te[ie],ie,te););return te}function arrayEvery(te,ne){for(var ie=-1,re=null==te?0:te.length;++ie<re;)if(!ne(te[ie],ie,te))return!1;return!0}function arrayFilter(te,ne){for(var ie=-1,re=null==te?0:te.length,le=0,ce=[];++ie<re;){var de=te[ie];ne(de,ie,te)&&(ce[le++]=de)}return ce}function arrayIncludes(te,ne){return!!(null==te?0:te.length)&&baseIndexOf(te,ne,0)>-1}function arrayIncludesWith(te,ne,ie){for(var re=-1,le=null==te?0:te.length;++re<le;)if(ie(ne,te[re]))return!0;return!1}function arrayMap(te,ne){for(var ie=-1,re=null==te?0:te.length,le=Array(re);++ie<re;)le[ie]=ne(te[ie],ie,te);return le}function arrayPush(te,ne){for(var ie=-1,re=ne.length,le=te.length;++ie<re;)te[le+ie]=ne[ie];return te}function arrayReduce(te,ne,ie,re){var le=-1,ce=null==te?0:te.length;for(re&&ce&&(ie=te[++le]);++le<ce;)ie=ne(ie,te[le],le,te);return ie}function arrayReduceRight(te,ne,ie,re){var le=null==te?0:te.length;for(re&&le&&(ie=te[--le]);le--;)ie=ne(ie,te[le],le,te);return ie}function arraySome(te,ne){for(var ie=-1,re=null==te?0:te.length;++ie<re;)if(ne(te[ie],ie,te))return!0;return!1}var gr=baseProperty("length");function baseFindKey(te,ne,ie){var re;return ie(te,(function(te,ie,le){if(ne(te,ie,le))return re=ie,!1})),re}function baseFindIndex(te,ne,ie,re){for(var le=te.length,ce=ie+(re?1:-1);re?ce--:++ce<le;)if(ne(te[ce],ce,te))return ce;return-1}function baseIndexOf(te,ne,ie){return ne==ne?function strictIndexOf(te,ne,ie){var re=ie-1,le=te.length;for(;++re<le;)if(te[re]===ne)return re;return-1}(te,ne,ie):baseFindIndex(te,baseIsNaN,ie)}function baseIndexOfWith(te,ne,ie,re){for(var le=ie-1,ce=te.length;++le<ce;)if(re(te[le],ne))return le;return-1}function baseIsNaN(te){return te!=te}function baseMean(te,ne){var ie=null==te?0:te.length;return ie?baseSum(te,ne)/ie:we}function baseProperty(te){return function(ne){return null==ne?le:ne[te]}}function basePropertyOf(te){return function(ne){return null==te?le:te[ne]}}function baseReduce(te,ne,ie,re,le){return le(te,(function(te,le,ce){ie=re?(re=!1,te):ne(ie,te,le,ce)})),ie}function baseSum(te,ne){for(var ie,re=-1,ce=te.length;++re<ce;){var de=ne(te[re]);de!==le&&(ie=ie===le?de:ie+de)}return ie}function baseTimes(te,ne){for(var ie=-1,re=Array(te);++ie<te;)re[ie]=ne(ie);return re}function baseTrim(te){return te?te.slice(0,trimmedEndIndex(te)+1).replace(Zt,""):te}function baseUnary(te){return function(ne){return te(ne)}}function baseValues(te,ne){return arrayMap(ne,(function(ne){return te[ne]}))}function cacheHas(te,ne){return te.has(ne)}function charsStartIndex(te,ne){for(var ie=-1,re=te.length;++ie<re&&baseIndexOf(ne,te[ie],0)>-1;);return ie}function charsEndIndex(te,ne){for(var ie=te.length;ie--&&baseIndexOf(ne,te[ie],0)>-1;);return ie}var fr=basePropertyOf({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),_r=basePropertyOf({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function escapeStringChar(te){return"\\"+uo[te]}function hasUnicode(te){return no.test(te)}function mapToArray(te){var ne=-1,ie=Array(te.size);return te.forEach((function(te,re){ie[++ne]=[re,te]})),ie}function overArg(te,ne){return function(ie){return te(ne(ie))}}function replaceHolders(te,ne){for(var ie=-1,re=te.length,le=0,ce=[];++ie<re;){var de=te[ie];de!==ne&&de!==ue||(te[ie]=ue,ce[le++]=ie)}return ce}function setToArray(te){var ne=-1,ie=Array(te.size);return te.forEach((function(te){ie[++ne]=te})),ie}function setToPairs(te){var ne=-1,ie=Array(te.size);return te.forEach((function(te){ie[++ne]=[te,te]})),ie}function stringSize(te){return hasUnicode(te)?function unicodeSize(te){var ne=eo.lastIndex=0;for(;eo.test(te);)++ne;return ne}(te):gr(te)}function stringToArray(te){return hasUnicode(te)?function unicodeToArray(te){return te.match(eo)||[]}(te):function asciiToArray(te){return te.split("")}(te)}function trimmedEndIndex(te){for(var ne=te.length;ne--&&tn.test(te.charAt(ne)););return ne}var vr=basePropertyOf({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yr=function runInContext(te){var ne,ie=(te=null==te?bo:yr.defaults(bo.Object(),te,yr.pick(bo,oo))).Array,re=te.Date,tn=te.Error,Dn=te.Function,xn=te.Math,En=te.Object,Rn=te.RegExp,Ln=te.String,On=te.TypeError,Pn=ie.prototype,Fn=Dn.prototype,jn=En.prototype,Vn=te["__core-js_shared__"],Gn=Fn.toString,zn=jn.hasOwnProperty,Hn=0,Un=(ne=/[^.]+$/.exec(Vn&&Vn.keys&&Vn.keys.IE_PROTO||""))?"Symbol(src)_1."+ne:"",$n=jn.toString,qn=Gn.call(En),Yn=bo._,Wn=Rn("^"+Gn.call(zn).replace(Qt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kn=Ao?te.Buffer:le,Qn=te.Symbol,Jn=te.Uint8Array,Zn=Kn?Kn.allocUnsafe:le,pi=overArg(En.getPrototypeOf,En),gi=En.create,fi=jn.propertyIsEnumerable,yi=Pn.splice,ki=Qn?Qn.isConcatSpreadable:le,Ri=Qn?Qn.iterator:le,Pi=Qn?Qn.toStringTag:le,Fi=function(){try{var te=getNative(En,"defineProperty");return te({},"",{}),te}catch(te){}}(),eo=te.clearTimeout!==bo.clearTimeout&&te.clearTimeout,no=re&&re.now!==bo.Date.now&&re.now,uo=te.setTimeout!==bo.setTimeout&&te.setTimeout,fo=xn.ceil,_o=xn.floor,Co=En.getOwnPropertySymbols,wo=Kn?Kn.isBuffer:le,ko=te.isFinite,Io=Pn.join,gr=overArg(En.keys,En),wr=xn.max,Ar=xn.min,kr=re.now,Ir=te.parseInt,Mr=xn.random,Nr=Pn.reverse,Lr=getNative(te,"DataView"),Or=getNative(te,"Map"),Pr=getNative(te,"Promise"),jr=getNative(te,"Set"),Hr=getNative(te,"WeakMap"),Ur=getNative(En,"create"),$r=Hr&&new Hr,qr={},Kr=toSource(Lr),Qr=toSource(Or),Jr=toSource(Pr),Zr=toSource(jr),ea=toSource(Hr),ta=Qn?Qn.prototype:le,ia=ta?ta.valueOf:le,oa=ta?ta.toString:le;function lodash(te){if(isObjectLike(te)&&!Sc(te)&&!(te instanceof LazyWrapper)){if(te instanceof LodashWrapper)return te;if(zn.call(te,"__wrapped__"))return wrapperClone(te)}return new LodashWrapper(te)}var ra=function(){function object(){}return function(te){if(!isObject(te))return{};if(gi)return gi(te);object.prototype=te;var ne=new object;return object.prototype=le,ne}}();function baseLodash(){}function LodashWrapper(te,ne){this.__wrapped__=te,this.__actions__=[],this.__chain__=!!ne,this.__index__=0,this.__values__=le}function LazyWrapper(te){this.__wrapped__=te,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ke,this.__views__=[]}function Hash(te){var ne=-1,ie=null==te?0:te.length;for(this.clear();++ne<ie;){var re=te[ne];this.set(re[0],re[1])}}function ListCache(te){var ne=-1,ie=null==te?0:te.length;for(this.clear();++ne<ie;){var re=te[ne];this.set(re[0],re[1])}}function MapCache(te){var ne=-1,ie=null==te?0:te.length;for(this.clear();++ne<ie;){var re=te[ne];this.set(re[0],re[1])}}function SetCache(te){var ne=-1,ie=null==te?0:te.length;for(this.__data__=new MapCache;++ne<ie;)this.add(te[ne])}function Stack(te){var ne=this.__data__=new ListCache(te);this.size=ne.size}function arrayLikeKeys(te,ne){var ie=Sc(te),re=!ie&&Ic(te),le=!ie&&!re&&Dc(te),ce=!ie&&!re&&!le&&Bc(te),de=ie||re||le||ce,ue=de?baseTimes(te.length,Ln):[],me=ue.length;for(var ge in te)!ne&&!zn.call(te,ge)||de&&("length"==ge||le&&("offset"==ge||"parent"==ge)||ce&&("buffer"==ge||"byteLength"==ge||"byteOffset"==ge)||isIndex(ge,me))||ue.push(ge);return ue}function arraySample(te){var ne=te.length;return ne?te[baseRandom(0,ne-1)]:le}function arraySampleSize(te,ne){return shuffleSelf(copyArray(te),baseClamp(ne,0,te.length))}function arrayShuffle(te){return shuffleSelf(copyArray(te))}function assignMergeValue(te,ne,ie){(ie!==le&&!eq(te[ne],ie)||ie===le&&!(ne in te))&&baseAssignValue(te,ne,ie)}function assignValue(te,ne,ie){var re=te[ne];zn.call(te,ne)&&eq(re,ie)&&(ie!==le||ne in te)||baseAssignValue(te,ne,ie)}function assocIndexOf(te,ne){for(var ie=te.length;ie--;)if(eq(te[ie][0],ne))return ie;return-1}function baseAggregator(te,ne,ie,re){return aa(te,(function(te,le,ce){ne(re,te,ie(te),ce)})),re}function baseAssign(te,ne){return te&&copyObject(ne,keys(ne),te)}function baseAssignValue(te,ne,ie){"__proto__"==ne&&Fi?Fi(te,ne,{configurable:!0,enumerable:!0,value:ie,writable:!0}):te[ne]=ie}function baseAt(te,ne){for(var re=-1,ce=ne.length,de=ie(ce),ue=null==te;++re<ce;)de[re]=ue?le:get(te,ne[re]);return de}function baseClamp(te,ne,ie){return te==te&&(ie!==le&&(te=te<=ie?te:ie),ne!==le&&(te=te>=ne?te:ne)),te}function baseClone(te,ne,ie,re,ce,de){var ue,me=1&ne,ge=2&ne,fe=4&ne;if(ie&&(ue=ce?ie(te,re,ce,de):ie(te)),ue!==le)return ue;if(!isObject(te))return te;var _e=Sc(te);if(_e){if(ue=function initCloneArray(te){var ne=te.length,ie=new te.constructor(ne);ne&&"string"==typeof te[0]&&zn.call(te,"index")&&(ie.index=te.index,ie.input=te.input);return ie}(te),!me)return copyArray(te,ue)}else{var be=Ma(te),Ce=be==Le||be==Oe;if(Dc(te))return cloneBuffer(te,me);if(be==je||be==xe||Ce&&!ce){if(ue=ge||Ce?{}:initCloneObject(te),!me)return ge?function copySymbolsIn(te,ne){return copyObject(te,xa(te),ne)}(te,function baseAssignIn(te,ne){return te&&copyObject(ne,keysIn(ne),te)}(ue,te)):function copySymbols(te,ne){return copyObject(te,Da(te),ne)}(te,baseAssign(ue,te))}else{if(!co[be])return ce?te:{};ue=function initCloneByTag(te,ne,ie){var re=te.constructor;switch(ne){case Ye:return cloneArrayBuffer(te);case Me:case Ne:return new re(+te);case Xe:return function cloneDataView(te,ne){var ie=ne?cloneArrayBuffer(te.buffer):te.buffer;return new te.constructor(ie,te.byteOffset,te.byteLength)}(te,ie);case Ke:case Qe:case Je:case dt:case pt:case Ct:case vt:case It:case Dt:return cloneTypedArray(te,ie);case Pe:return new re;case Fe:case He:return new re(te);case Ge:return function cloneRegExp(te){var ne=new te.constructor(te.source,hn.exec(te));return ne.lastIndex=te.lastIndex,ne}(te);case ze:return new re;case $e:return function cloneSymbol(te){return ia?En(ia.call(te)):{}}(te)}}(te,be,me)}}de||(de=new Stack);var ye=de.get(te);if(ye)return ye;de.set(te,ue),Pc(te)?te.forEach((function(re){ue.add(baseClone(re,ne,ie,re,te,de))})):Nc(te)&&te.forEach((function(re,le){ue.set(le,baseClone(re,ne,ie,le,te,de))}));var we=_e?le:(fe?ge?getAllKeysIn:getAllKeys:ge?keysIn:keys)(te);return arrayEach(we||te,(function(re,le){we&&(re=te[le=re]),assignValue(ue,le,baseClone(re,ne,ie,le,te,de))})),ue}function baseConformsTo(te,ne,ie){var re=ie.length;if(null==te)return!re;for(te=En(te);re--;){var ce=ie[re],de=ne[ce],ue=te[ce];if(ue===le&&!(ce in te)||!de(ue))return!1}return!0}function baseDelay(te,ne,ie){if("function"!=typeof te)throw new On(ce);return La((function(){te.apply(le,ie)}),ne)}function baseDifference(te,ne,ie,re){var le=-1,ce=arrayIncludes,de=!0,ue=te.length,me=[],ge=ne.length;if(!ue)return me;ie&&(ne=arrayMap(ne,baseUnary(ie))),re?(ce=arrayIncludesWith,de=!1):ne.length>=200&&(ce=cacheHas,de=!1,ne=new SetCache(ne));e:for(;++le<ue;){var fe=te[le],_e=null==ie?fe:ie(fe);if(fe=re||0!==fe?fe:0,de&&_e==_e){for(var be=ge;be--;)if(ne[be]===_e)continue e;me.push(fe)}else ce(ne,_e,re)||me.push(fe)}return me}lodash.templateSettings={escape:Ht,evaluate:Ut,interpolate:$t,variable:"",imports:{_:lodash}},lodash.prototype=baseLodash.prototype,lodash.prototype.constructor=lodash,LodashWrapper.prototype=ra(baseLodash.prototype),LodashWrapper.prototype.constructor=LodashWrapper,LazyWrapper.prototype=ra(baseLodash.prototype),LazyWrapper.prototype.constructor=LazyWrapper,Hash.prototype.clear=function hashClear(){this.__data__=Ur?Ur(null):{},this.size=0},Hash.prototype.delete=function hashDelete(te){var ne=this.has(te)&&delete this.__data__[te];return this.size-=ne?1:0,ne},Hash.prototype.get=function hashGet(te){var ne=this.__data__;if(Ur){var ie=ne[te];return ie===de?le:ie}return zn.call(ne,te)?ne[te]:le},Hash.prototype.has=function hashHas(te){var ne=this.__data__;return Ur?ne[te]!==le:zn.call(ne,te)},Hash.prototype.set=function hashSet(te,ne){var ie=this.__data__;return this.size+=this.has(te)?0:1,ie[te]=Ur&&ne===le?de:ne,this},ListCache.prototype.clear=function listCacheClear(){this.__data__=[],this.size=0},ListCache.prototype.delete=function listCacheDelete(te){var ne=this.__data__,ie=assocIndexOf(ne,te);return!(ie<0)&&(ie==ne.length-1?ne.pop():yi.call(ne,ie,1),--this.size,!0)},ListCache.prototype.get=function listCacheGet(te){var ne=this.__data__,ie=assocIndexOf(ne,te);return ie<0?le:ne[ie][1]},ListCache.prototype.has=function listCacheHas(te){return assocIndexOf(this.__data__,te)>-1},ListCache.prototype.set=function listCacheSet(te,ne){var ie=this.__data__,re=assocIndexOf(ie,te);return re<0?(++this.size,ie.push([te,ne])):ie[re][1]=ne,this},MapCache.prototype.clear=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Or||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(te){var ne=getMapData(this,te).delete(te);return this.size-=ne?1:0,ne},MapCache.prototype.get=function mapCacheGet(te){return getMapData(this,te).get(te)},MapCache.prototype.has=function mapCacheHas(te){return getMapData(this,te).has(te)},MapCache.prototype.set=function mapCacheSet(te,ne){var ie=getMapData(this,te),re=ie.size;return ie.set(te,ne),this.size+=ie.size==re?0:1,this},SetCache.prototype.add=SetCache.prototype.push=function setCacheAdd(te){return this.__data__.set(te,de),this},SetCache.prototype.has=function setCacheHas(te){return this.__data__.has(te)},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function stackDelete(te){var ne=this.__data__,ie=ne.delete(te);return this.size=ne.size,ie},Stack.prototype.get=function stackGet(te){return this.__data__.get(te)},Stack.prototype.has=function stackHas(te){return this.__data__.has(te)},Stack.prototype.set=function stackSet(te,ne){var ie=this.__data__;if(ie instanceof ListCache){var re=ie.__data__;if(!Or||re.length<199)return re.push([te,ne]),this.size=++ie.size,this;ie=this.__data__=new MapCache(re)}return ie.set(te,ne),this.size=ie.size,this};var aa=createBaseEach(baseForOwn),sa=createBaseEach(baseForOwnRight,!0);function baseEvery(te,ne){var ie=!0;return aa(te,(function(te,re,le){return ie=!!ne(te,re,le)})),ie}function baseExtremum(te,ne,ie){for(var re=-1,ce=te.length;++re<ce;){var de=te[re],ue=ne(de);if(null!=ue&&(me===le?ue==ue&&!isSymbol(ue):ie(ue,me)))var me=ue,ge=de}return ge}function baseFilter(te,ne){var ie=[];return aa(te,(function(te,re,le){ne(te,re,le)&&ie.push(te)})),ie}function baseFlatten(te,ne,ie,re,le){var ce=-1,de=te.length;for(ie||(ie=isFlattenable),le||(le=[]);++ce<de;){var ue=te[ce];ne>0&&ie(ue)?ne>1?baseFlatten(ue,ne-1,ie,re,le):arrayPush(le,ue):re||(le[le.length]=ue)}return le}var la=createBaseFor(),da=createBaseFor(!0);function baseForOwn(te,ne){return te&&la(te,ne,keys)}function baseForOwnRight(te,ne){return te&&da(te,ne,keys)}function baseFunctions(te,ne){return arrayFilter(ne,(function(ne){return isFunction(te[ne])}))}function baseGet(te,ne){for(var ie=0,re=(ne=castPath(ne,te)).length;null!=te&&ie<re;)te=te[toKey(ne[ie++])];return ie&&ie==re?te:le}function baseGetAllKeys(te,ne,ie){var re=ne(te);return Sc(te)?re:arrayPush(re,ie(te))}function baseGetTag(te){return null==te?te===le?"[object Undefined]":"[object Null]":Pi&&Pi in En(te)?function getRawTag(te){var ne=zn.call(te,Pi),ie=te[Pi];try{te[Pi]=le;var re=!0}catch(te){}var ce=$n.call(te);re&&(ne?te[Pi]=ie:delete te[Pi]);return ce}(te):function objectToString(te){return $n.call(te)}(te)}function baseGt(te,ne){return te>ne}function baseHas(te,ne){return null!=te&&zn.call(te,ne)}function baseHasIn(te,ne){return null!=te&&ne in En(te)}function baseIntersection(te,ne,re){for(var ce=re?arrayIncludesWith:arrayIncludes,de=te[0].length,ue=te.length,me=ue,ge=ie(ue),fe=1/0,_e=[];me--;){var be=te[me];me&&ne&&(be=arrayMap(be,baseUnary(ne))),fe=Ar(be.length,fe),ge[me]=!re&&(ne||de>=120&&be.length>=120)?new SetCache(me&&be):le}be=te[0];var Ce=-1,ye=ge[0];e:for(;++Ce<de&&_e.length<fe;){var we=be[Ce],ke=ne?ne(we):we;if(we=re||0!==we?we:0,!(ye?cacheHas(ye,ke):ce(_e,ke,re))){for(me=ue;--me;){var Se=ge[me];if(!(Se?cacheHas(Se,ke):ce(te[me],ke,re)))continue e}ye&&ye.push(ke),_e.push(we)}}return _e}function baseInvoke(te,ne,ie){var re=null==(te=parent(te,ne=castPath(ne,te)))?te:te[toKey(last(ne))];return null==re?le:apply(re,te,ie)}function baseIsArguments(te){return isObjectLike(te)&&baseGetTag(te)==xe}function baseIsEqual(te,ne,ie,re,ce){return te===ne||(null==te||null==ne||!isObjectLike(te)&&!isObjectLike(ne)?te!=te&&ne!=ne:function baseIsEqualDeep(te,ne,ie,re,ce,de){var ue=Sc(te),me=Sc(ne),ge=ue?Ee:Ma(te),fe=me?Ee:Ma(ne),_e=(ge=ge==xe?je:ge)==je,be=(fe=fe==xe?je:fe)==je,Ce=ge==fe;if(Ce&&Dc(te)){if(!Dc(ne))return!1;ue=!0,_e=!1}if(Ce&&!_e)return de||(de=new Stack),ue||Bc(te)?equalArrays(te,ne,ie,re,ce,de):function equalByTag(te,ne,ie,re,le,ce,de){switch(ie){case Xe:if(te.byteLength!=ne.byteLength||te.byteOffset!=ne.byteOffset)return!1;te=te.buffer,ne=ne.buffer;case Ye:return!(te.byteLength!=ne.byteLength||!ce(new Jn(te),new Jn(ne)));case Me:case Ne:case Fe:return eq(+te,+ne);case Re:return te.name==ne.name&&te.message==ne.message;case Ge:case He:return te==ne+"";case Pe:var ue=mapToArray;case ze:var me=1&re;if(ue||(ue=setToArray),te.size!=ne.size&&!me)return!1;var ge=de.get(te);if(ge)return ge==ne;re|=2,de.set(te,ne);var fe=equalArrays(ue(te),ue(ne),re,le,ce,de);return de.delete(te),fe;case $e:if(ia)return ia.call(te)==ia.call(ne)}return!1}(te,ne,ge,ie,re,ce,de);if(!(1&ie)){var ye=_e&&zn.call(te,"__wrapped__"),we=be&&zn.call(ne,"__wrapped__");if(ye||we){var ke=ye?te.value():te,Se=we?ne.value():ne;return de||(de=new Stack),ce(ke,Se,ie,re,de)}}if(!Ce)return!1;return de||(de=new Stack),function equalObjects(te,ne,ie,re,ce,de){var ue=1&ie,me=getAllKeys(te),ge=me.length,fe=getAllKeys(ne),_e=fe.length;if(ge!=_e&&!ue)return!1;var be=ge;for(;be--;){var Ce=me[be];if(!(ue?Ce in ne:zn.call(ne,Ce)))return!1}var ye=de.get(te),we=de.get(ne);if(ye&&we)return ye==ne&&we==te;var ke=!0;de.set(te,ne),de.set(ne,te);var Se=ue;for(;++be<ge;){var xe=te[Ce=me[be]],Ee=ne[Ce];if(re)var Me=ue?re(Ee,xe,Ce,ne,te,de):re(xe,Ee,Ce,te,ne,de);if(!(Me===le?xe===Ee||ce(xe,Ee,ie,re,de):Me)){ke=!1;break}Se||(Se="constructor"==Ce)}if(ke&&!Se){var Ne=te.constructor,Re=ne.constructor;Ne==Re||!("constructor"in te)||!("constructor"in ne)||"function"==typeof Ne&&Ne instanceof Ne&&"function"==typeof Re&&Re instanceof Re||(ke=!1)}return de.delete(te),de.delete(ne),ke}(te,ne,ie,re,ce,de)}(te,ne,ie,re,baseIsEqual,ce))}function baseIsMatch(te,ne,ie,re){var ce=ie.length,de=ce,ue=!re;if(null==te)return!de;for(te=En(te);ce--;){var me=ie[ce];if(ue&&me[2]?me[1]!==te[me[0]]:!(me[0]in te))return!1}for(;++ce<de;){var ge=(me=ie[ce])[0],fe=te[ge],_e=me[1];if(ue&&me[2]){if(fe===le&&!(ge in te))return!1}else{var be=new Stack;if(re)var Ce=re(fe,_e,ge,te,ne,be);if(!(Ce===le?baseIsEqual(_e,fe,3,re,be):Ce))return!1}}return!0}function baseIsNative(te){return!(!isObject(te)||function isMasked(te){return!!Un&&Un in te}(te))&&(isFunction(te)?Wn:bn).test(toSource(te))}function baseIteratee(te){return"function"==typeof te?te:null==te?identity:"object"==typeof te?Sc(te)?baseMatchesProperty(te[0],te[1]):baseMatches(te):property(te)}function baseKeys(te){if(!isPrototype(te))return gr(te);var ne=[];for(var ie in En(te))zn.call(te,ie)&&"constructor"!=ie&&ne.push(ie);return ne}function baseKeysIn(te){if(!isObject(te))return function nativeKeysIn(te){var ne=[];if(null!=te)for(var ie in En(te))ne.push(ie);return ne}(te);var ne=isPrototype(te),ie=[];for(var re in te)("constructor"!=re||!ne&&zn.call(te,re))&&ie.push(re);return ie}function baseLt(te,ne){return te<ne}function baseMap(te,ne){var re=-1,le=isArrayLike(te)?ie(te.length):[];return aa(te,(function(te,ie,ce){le[++re]=ne(te,ie,ce)})),le}function baseMatches(te){var ne=getMatchData(te);return 1==ne.length&&ne[0][2]?matchesStrictComparable(ne[0][0],ne[0][1]):function(ie){return ie===te||baseIsMatch(ie,te,ne)}}function baseMatchesProperty(te,ne){return isKey(te)&&isStrictComparable(ne)?matchesStrictComparable(toKey(te),ne):function(ie){var re=get(ie,te);return re===le&&re===ne?hasIn(ie,te):baseIsEqual(ne,re,3)}}function baseMerge(te,ne,ie,re,ce){te!==ne&&la(ne,(function(de,ue){if(ce||(ce=new Stack),isObject(de))!function baseMergeDeep(te,ne,ie,re,ce,de,ue){var me=safeGet(te,ie),ge=safeGet(ne,ie),fe=ue.get(ge);if(fe)return void assignMergeValue(te,ie,fe);var _e=de?de(me,ge,ie+"",te,ne,ue):le,be=_e===le;if(be){var Ce=Sc(ge),ye=!Ce&&Dc(ge),we=!Ce&&!ye&&Bc(ge);_e=ge,Ce||ye||we?Sc(me)?_e=me:isArrayLikeObject(me)?_e=copyArray(me):ye?(be=!1,_e=cloneBuffer(ge,!0)):we?(be=!1,_e=cloneTypedArray(ge,!0)):_e=[]:isPlainObject(ge)||Ic(ge)?(_e=me,Ic(me)?_e=toPlainObject(me):isObject(me)&&!isFunction(me)||(_e=initCloneObject(ge))):be=!1}be&&(ue.set(ge,_e),ce(_e,ge,re,de,ue),ue.delete(ge));assignMergeValue(te,ie,_e)}(te,ne,ue,ie,baseMerge,re,ce);else{var me=re?re(safeGet(te,ue),de,ue+"",te,ne,ce):le;me===le&&(me=de),assignMergeValue(te,ue,me)}}),keysIn)}function baseNth(te,ne){var ie=te.length;if(ie)return isIndex(ne+=ne<0?ie:0,ie)?te[ne]:le}function baseOrderBy(te,ne,ie){ne=ne.length?arrayMap(ne,(function(te){return Sc(te)?function(ne){return baseGet(ne,1===te.length?te[0]:te)}:te})):[identity];var re=-1;ne=arrayMap(ne,baseUnary(getIteratee()));var le=baseMap(te,(function(te,ie,le){var ce=arrayMap(ne,(function(ne){return ne(te)}));return{criteria:ce,index:++re,value:te}}));return function baseSortBy(te,ne){var ie=te.length;for(te.sort(ne);ie--;)te[ie]=te[ie].value;return te}(le,(function(te,ne){return function compareMultiple(te,ne,ie){var re=-1,le=te.criteria,ce=ne.criteria,de=le.length,ue=ie.length;for(;++re<de;){var me=compareAscending(le[re],ce[re]);if(me)return re>=ue?me:me*("desc"==ie[re]?-1:1)}return te.index-ne.index}(te,ne,ie)}))}function basePickBy(te,ne,ie){for(var re=-1,le=ne.length,ce={};++re<le;){var de=ne[re],ue=baseGet(te,de);ie(ue,de)&&baseSet(ce,castPath(de,te),ue)}return ce}function basePullAll(te,ne,ie,re){var le=re?baseIndexOfWith:baseIndexOf,ce=-1,de=ne.length,ue=te;for(te===ne&&(ne=copyArray(ne)),ie&&(ue=arrayMap(te,baseUnary(ie)));++ce<de;)for(var me=0,ge=ne[ce],fe=ie?ie(ge):ge;(me=le(ue,fe,me,re))>-1;)ue!==te&&yi.call(ue,me,1),yi.call(te,me,1);return te}function basePullAt(te,ne){for(var ie=te?ne.length:0,re=ie-1;ie--;){var le=ne[ie];if(ie==re||le!==ce){var ce=le;isIndex(le)?yi.call(te,le,1):baseUnset(te,le)}}return te}function baseRandom(te,ne){return te+_o(Mr()*(ne-te+1))}function baseRepeat(te,ne){var ie="";if(!te||ne<1||ne>ye)return ie;do{ne%2&&(ie+=te),(ne=_o(ne/2))&&(te+=te)}while(ne);return ie}function baseRest(te,ne){return Oa(overRest(te,ne,identity),te+"")}function baseSample(te){return arraySample(values(te))}function baseSampleSize(te,ne){var ie=values(te);return shuffleSelf(ie,baseClamp(ne,0,ie.length))}function baseSet(te,ne,ie,re){if(!isObject(te))return te;for(var ce=-1,de=(ne=castPath(ne,te)).length,ue=de-1,me=te;null!=me&&++ce<de;){var ge=toKey(ne[ce]),fe=ie;if("__proto__"===ge||"constructor"===ge||"prototype"===ge)return te;if(ce!=ue){var _e=me[ge];(fe=re?re(_e,ge,me):le)===le&&(fe=isObject(_e)?_e:isIndex(ne[ce+1])?[]:{})}assignValue(me,ge,fe),me=me[ge]}return te}var ua=$r?function(te,ne){return $r.set(te,ne),te}:identity,pa=Fi?function(te,ne){return Fi(te,"toString",{configurable:!0,enumerable:!1,value:constant(ne),writable:!0})}:identity;function baseShuffle(te){return shuffleSelf(values(te))}function baseSlice(te,ne,re){var le=-1,ce=te.length;ne<0&&(ne=-ne>ce?0:ce+ne),(re=re>ce?ce:re)<0&&(re+=ce),ce=ne>re?0:re-ne>>>0,ne>>>=0;for(var de=ie(ce);++le<ce;)de[le]=te[le+ne];return de}function baseSome(te,ne){var ie;return aa(te,(function(te,re,le){return!(ie=ne(te,re,le))})),!!ie}function baseSortedIndex(te,ne,ie){var re=0,le=null==te?re:te.length;if("number"==typeof ne&&ne==ne&&le<=2147483647){for(;re<le;){var ce=re+le>>>1,de=te[ce];null!==de&&!isSymbol(de)&&(ie?de<=ne:de<ne)?re=ce+1:le=ce}return le}return baseSortedIndexBy(te,ne,identity,ie)}function baseSortedIndexBy(te,ne,ie,re){var ce=0,de=null==te?0:te.length;if(0===de)return 0;for(var ue=(ne=ie(ne))!=ne,me=null===ne,ge=isSymbol(ne),fe=ne===le;ce<de;){var _e=_o((ce+de)/2),be=ie(te[_e]),Ce=be!==le,ye=null===be,we=be==be,ke=isSymbol(be);if(ue)var Se=re||we;else Se=fe?we&&(re||Ce):me?we&&Ce&&(re||!ye):ge?we&&Ce&&!ye&&(re||!ke):!ye&&!ke&&(re?be<=ne:be<ne);Se?ce=_e+1:de=_e}return Ar(de,4294967294)}function baseSortedUniq(te,ne){for(var ie=-1,re=te.length,le=0,ce=[];++ie<re;){var de=te[ie],ue=ne?ne(de):de;if(!ie||!eq(ue,me)){var me=ue;ce[le++]=0===de?0:de}}return ce}function baseToNumber(te){return"number"==typeof te?te:isSymbol(te)?we:+te}function baseToString(te){if("string"==typeof te)return te;if(Sc(te))return arrayMap(te,baseToString)+"";if(isSymbol(te))return oa?oa.call(te):"";var ne=te+"";return"0"==ne&&1/te==-1/0?"-0":ne}function baseUniq(te,ne,ie){var re=-1,le=arrayIncludes,ce=te.length,de=!0,ue=[],me=ue;if(ie)de=!1,le=arrayIncludesWith;else if(ce>=200){var ge=ne?null:wa(te);if(ge)return setToArray(ge);de=!1,le=cacheHas,me=new SetCache}else me=ne?[]:ue;e:for(;++re<ce;){var fe=te[re],_e=ne?ne(fe):fe;if(fe=ie||0!==fe?fe:0,de&&_e==_e){for(var be=me.length;be--;)if(me[be]===_e)continue e;ne&&me.push(_e),ue.push(fe)}else le(me,_e,ie)||(me!==ue&&me.push(_e),ue.push(fe))}return ue}function baseUnset(te,ne){return null==(te=parent(te,ne=castPath(ne,te)))||delete te[toKey(last(ne))]}function baseUpdate(te,ne,ie,re){return baseSet(te,ne,ie(baseGet(te,ne)),re)}function baseWhile(te,ne,ie,re){for(var le=te.length,ce=re?le:-1;(re?ce--:++ce<le)&&ne(te[ce],ce,te););return ie?baseSlice(te,re?0:ce,re?ce+1:le):baseSlice(te,re?ce+1:0,re?le:ce)}function baseWrapperValue(te,ne){var ie=te;return ie instanceof LazyWrapper&&(ie=ie.value()),arrayReduce(ne,(function(te,ne){return ne.func.apply(ne.thisArg,arrayPush([te],ne.args))}),ie)}function baseXor(te,ne,re){var le=te.length;if(le<2)return le?baseUniq(te[0]):[];for(var ce=-1,de=ie(le);++ce<le;)for(var ue=te[ce],me=-1;++me<le;)me!=ce&&(de[ce]=baseDifference(de[ce]||ue,te[me],ne,re));return baseUniq(baseFlatten(de,1),ne,re)}function baseZipObject(te,ne,ie){for(var re=-1,ce=te.length,de=ne.length,ue={};++re<ce;){var me=re<de?ne[re]:le;ie(ue,te[re],me)}return ue}function castArrayLikeObject(te){return isArrayLikeObject(te)?te:[]}function castFunction(te){return"function"==typeof te?te:identity}function castPath(te,ne){return Sc(te)?te:isKey(te,ne)?[te]:Pa(toString(te))}var ha=baseRest;function castSlice(te,ne,ie){var re=te.length;return ie=ie===le?re:ie,!ne&&ie>=re?te:baseSlice(te,ne,ie)}var Ca=eo||function(te){return bo.clearTimeout(te)};function cloneBuffer(te,ne){if(ne)return te.slice();var ie=te.length,re=Zn?Zn(ie):new te.constructor(ie);return te.copy(re),re}function cloneArrayBuffer(te){var ne=new te.constructor(te.byteLength);return new Jn(ne).set(new Jn(te)),ne}function cloneTypedArray(te,ne){var ie=ne?cloneArrayBuffer(te.buffer):te.buffer;return new te.constructor(ie,te.byteOffset,te.length)}function compareAscending(te,ne){if(te!==ne){var ie=te!==le,re=null===te,ce=te==te,de=isSymbol(te),ue=ne!==le,me=null===ne,ge=ne==ne,fe=isSymbol(ne);if(!me&&!fe&&!de&&te>ne||de&&ue&&ge&&!me&&!fe||re&&ue&&ge||!ie&&ge||!ce)return 1;if(!re&&!de&&!fe&&te<ne||fe&&ie&&ce&&!re&&!de||me&&ie&&ce||!ue&&ce||!ge)return-1}return 0}function composeArgs(te,ne,re,le){for(var ce=-1,de=te.length,ue=re.length,me=-1,ge=ne.length,fe=wr(de-ue,0),_e=ie(ge+fe),be=!le;++me<ge;)_e[me]=ne[me];for(;++ce<ue;)(be||ce<de)&&(_e[re[ce]]=te[ce]);for(;fe--;)_e[me++]=te[ce++];return _e}function composeArgsRight(te,ne,re,le){for(var ce=-1,de=te.length,ue=-1,me=re.length,ge=-1,fe=ne.length,_e=wr(de-me,0),be=ie(_e+fe),Ce=!le;++ce<_e;)be[ce]=te[ce];for(var ye=ce;++ge<fe;)be[ye+ge]=ne[ge];for(;++ue<me;)(Ce||ce<de)&&(be[ye+re[ue]]=te[ce++]);return be}function copyArray(te,ne){var re=-1,le=te.length;for(ne||(ne=ie(le));++re<le;)ne[re]=te[re];return ne}function copyObject(te,ne,ie,re){var ce=!ie;ie||(ie={});for(var de=-1,ue=ne.length;++de<ue;){var me=ne[de],ge=re?re(ie[me],te[me],me,ie,te):le;ge===le&&(ge=te[me]),ce?baseAssignValue(ie,me,ge):assignValue(ie,me,ge)}return ie}function createAggregator(te,ne){return function(ie,re){var le=Sc(ie)?arrayAggregator:baseAggregator,ce=ne?ne():{};return le(ie,te,getIteratee(re,2),ce)}}function createAssigner(te){return baseRest((function(ne,ie){var re=-1,ce=ie.length,de=ce>1?ie[ce-1]:le,ue=ce>2?ie[2]:le;for(de=te.length>3&&"function"==typeof de?(ce--,de):le,ue&&isIterateeCall(ie[0],ie[1],ue)&&(de=ce<3?le:de,ce=1),ne=En(ne);++re<ce;){var me=ie[re];me&&te(ne,me,re,de)}return ne}))}function createBaseEach(te,ne){return function(ie,re){if(null==ie)return ie;if(!isArrayLike(ie))return te(ie,re);for(var le=ie.length,ce=ne?le:-1,de=En(ie);(ne?ce--:++ce<le)&&!1!==re(de[ce],ce,de););return ie}}function createBaseFor(te){return function(ne,ie,re){for(var le=-1,ce=En(ne),de=re(ne),ue=de.length;ue--;){var me=de[te?ue:++le];if(!1===ie(ce[me],me,ce))break}return ne}}function createCaseFirst(te){return function(ne){var ie=hasUnicode(ne=toString(ne))?stringToArray(ne):le,re=ie?ie[0]:ne.charAt(0),ce=ie?castSlice(ie,1).join(""):ne.slice(1);return re[te]()+ce}}function createCompounder(te){return function(ne){return arrayReduce(words(deburr(ne).replace(ji,"")),te,"")}}function createCtor(te){return function(){var ne=arguments;switch(ne.length){case 0:return new te;case 1:return new te(ne[0]);case 2:return new te(ne[0],ne[1]);case 3:return new te(ne[0],ne[1],ne[2]);case 4:return new te(ne[0],ne[1],ne[2],ne[3]);case 5:return new te(ne[0],ne[1],ne[2],ne[3],ne[4]);case 6:return new te(ne[0],ne[1],ne[2],ne[3],ne[4],ne[5]);case 7:return new te(ne[0],ne[1],ne[2],ne[3],ne[4],ne[5],ne[6])}var ie=ra(te.prototype),re=te.apply(ie,ne);return isObject(re)?re:ie}}function createFind(te){return function(ne,ie,re){var ce=En(ne);if(!isArrayLike(ne)){var de=getIteratee(ie,3);ne=keys(ne),ie=function(te){return de(ce[te],te,ce)}}var ue=te(ne,ie,re);return ue>-1?ce[de?ne[ue]:ue]:le}}function createFlow(te){return flatRest((function(ne){var ie=ne.length,re=ie,de=LodashWrapper.prototype.thru;for(te&&ne.reverse();re--;){var ue=ne[re];if("function"!=typeof ue)throw new On(ce);if(de&&!me&&"wrapper"==getFuncName(ue))var me=new LodashWrapper([],!0)}for(re=me?re:ie;++re<ie;){var ge=getFuncName(ue=ne[re]),fe="wrapper"==ge?Ta(ue):le;me=fe&&isLaziable(fe[0])&&424==fe[1]&&!fe[4].length&&1==fe[9]?me[getFuncName(fe[0])].apply(me,fe[3]):1==ue.length&&isLaziable(ue)?me[ge]():me.thru(ue)}return function(){var te=arguments,re=te[0];if(me&&1==te.length&&Sc(re))return me.plant(re).value();for(var le=0,ce=ie?ne[le].apply(this,te):re;++le<ie;)ce=ne[le].call(this,ce);return ce}}))}function createHybrid(te,ne,re,ce,de,ue,me,ge,fe,be){var Ce=ne&_e,ye=1&ne,we=2&ne,ke=24&ne,Se=512&ne,xe=we?le:createCtor(te);return function wrapper(){for(var _e=arguments.length,Ee=ie(_e),Me=_e;Me--;)Ee[Me]=arguments[Me];if(ke)var Ne=getHolder(wrapper),Re=function countHolders(te,ne){for(var ie=te.length,re=0;ie--;)te[ie]===ne&&++re;return re}(Ee,Ne);if(ce&&(Ee=composeArgs(Ee,ce,de,ke)),ue&&(Ee=composeArgsRight(Ee,ue,me,ke)),_e-=Re,ke&&_e<be){var Le=replaceHolders(Ee,Ne);return createRecurry(te,ne,createHybrid,wrapper.placeholder,re,Ee,Le,ge,fe,be-_e)}var Oe=ye?re:this,Pe=we?Oe[te]:te;return _e=Ee.length,ge?Ee=function reorder(te,ne){var ie=te.length,re=Ar(ne.length,ie),ce=copyArray(te);for(;re--;){var de=ne[re];te[re]=isIndex(de,ie)?ce[de]:le}return te}(Ee,ge):Se&&_e>1&&Ee.reverse(),Ce&&fe<_e&&(Ee.length=fe),this&&this!==bo&&this instanceof wrapper&&(Pe=xe||createCtor(Pe)),Pe.apply(Oe,Ee)}}function createInverter(te,ne){return function(ie,re){return function baseInverter(te,ne,ie,re){return baseForOwn(te,(function(te,le,ce){ne(re,ie(te),le,ce)})),re}(ie,te,ne(re),{})}}function createMathOperation(te,ne){return function(ie,re){var ce;if(ie===le&&re===le)return ne;if(ie!==le&&(ce=ie),re!==le){if(ce===le)return re;"string"==typeof ie||"string"==typeof re?(ie=baseToString(ie),re=baseToString(re)):(ie=baseToNumber(ie),re=baseToNumber(re)),ce=te(ie,re)}return ce}}function createOver(te){return flatRest((function(ne){return ne=arrayMap(ne,baseUnary(getIteratee())),baseRest((function(ie){var re=this;return te(ne,(function(te){return apply(te,re,ie)}))}))}))}function createPadding(te,ne){var ie=(ne=ne===le?" ":baseToString(ne)).length;if(ie<2)return ie?baseRepeat(ne,te):ne;var re=baseRepeat(ne,fo(te/stringSize(ne)));return hasUnicode(ne)?castSlice(stringToArray(re),0,te).join(""):re.slice(0,te)}function createRange(te){return function(ne,re,ce){return ce&&"number"!=typeof ce&&isIterateeCall(ne,re,ce)&&(re=ce=le),ne=toFinite(ne),re===le?(re=ne,ne=0):re=toFinite(re),function baseRange(te,ne,re,le){for(var ce=-1,de=wr(fo((ne-te)/(re||1)),0),ue=ie(de);de--;)ue[le?de:++ce]=te,te+=re;return ue}(ne,re,ce=ce===le?ne<re?1:-1:toFinite(ce),te)}}function createRelationalOperation(te){return function(ne,ie){return"string"==typeof ne&&"string"==typeof ie||(ne=toNumber(ne),ie=toNumber(ie)),te(ne,ie)}}function createRecurry(te,ne,ie,re,ce,de,ue,me,_e,be){var Ce=8&ne;ne|=Ce?ge:fe,4&(ne&=~(Ce?fe:ge))||(ne&=-4);var ye=[te,ne,ce,Ce?de:le,Ce?ue:le,Ce?le:de,Ce?le:ue,me,_e,be],we=ie.apply(le,ye);return isLaziable(te)&&Ra(we,ye),we.placeholder=re,setWrapToString(we,te,ne)}function createRound(te){var ne=xn[te];return function(te,ie){if(te=toNumber(te),(ie=null==ie?0:Ar(toInteger(ie),292))&&ko(te)){var re=(toString(te)+"e").split("e");return+((re=(toString(ne(re[0]+"e"+(+re[1]+ie)))+"e").split("e"))[0]+"e"+(+re[1]-ie))}return ne(te)}}var wa=jr&&1/setToArray(new jr([,-0]))[1]==Ce?function(te){return new jr(te)}:noop;function createToPairs(te){return function(ne){var ie=Ma(ne);return ie==Pe?mapToArray(ne):ie==ze?setToPairs(ne):function baseToPairs(te,ne){return arrayMap(ne,(function(ne){return[ne,te[ne]]}))}(ne,te(ne))}}function createWrap(te,ne,re,de,Ce,ye,we,ke){var Se=2&ne;if(!Se&&"function"!=typeof te)throw new On(ce);var xe=de?de.length:0;if(xe||(ne&=-97,de=Ce=le),we=we===le?we:wr(toInteger(we),0),ke=ke===le?ke:toInteger(ke),xe-=Ce?Ce.length:0,ne&fe){var Ee=de,Me=Ce;de=Ce=le}var Ne=Se?le:Ta(te),Re=[te,ne,re,de,Ce,Ee,Me,ye,we,ke];if(Ne&&function mergeData(te,ne){var ie=te[1],re=ne[1],le=ie|re,ce=le<131,de=re==_e&&8==ie||re==_e&&ie==be&&te[7].length<=ne[8]||384==re&&ne[7].length<=ne[8]&&8==ie;if(!ce&&!de)return te;1&re&&(te[2]=ne[2],le|=1&ie?0:4);var me=ne[3];if(me){var ge=te[3];te[3]=ge?composeArgs(ge,me,ne[4]):me,te[4]=ge?replaceHolders(te[3],ue):ne[4]}(me=ne[5])&&(ge=te[5],te[5]=ge?composeArgsRight(ge,me,ne[6]):me,te[6]=ge?replaceHolders(te[5],ue):ne[6]);(me=ne[7])&&(te[7]=me);re&_e&&(te[8]=null==te[8]?ne[8]:Ar(te[8],ne[8]));null==te[9]&&(te[9]=ne[9]);return te[0]=ne[0],te[1]=le,te}(Re,Ne),te=Re[0],ne=Re[1],re=Re[2],de=Re[3],Ce=Re[4],!(ke=Re[9]=Re[9]===le?Se?0:te.length:wr(Re[9]-xe,0))&&24&ne&&(ne&=-25),ne&&1!=ne)Le=8==ne||ne==me?function createCurry(te,ne,re){var ce=createCtor(te);return function wrapper(){for(var de=arguments.length,ue=ie(de),me=de,ge=getHolder(wrapper);me--;)ue[me]=arguments[me];var fe=de<3&&ue[0]!==ge&&ue[de-1]!==ge?[]:replaceHolders(ue,ge);return(de-=fe.length)<re?createRecurry(te,ne,createHybrid,wrapper.placeholder,le,ue,fe,le,le,re-de):apply(this&&this!==bo&&this instanceof wrapper?ce:te,this,ue)}}(te,ne,ke):ne!=ge&&33!=ne||Ce.length?createHybrid.apply(le,Re):function createPartial(te,ne,re,le){var ce=1&ne,de=createCtor(te);return function wrapper(){for(var ne=-1,ue=arguments.length,me=-1,ge=le.length,fe=ie(ge+ue),_e=this&&this!==bo&&this instanceof wrapper?de:te;++me<ge;)fe[me]=le[me];for(;ue--;)fe[me++]=arguments[++ne];return apply(_e,ce?re:this,fe)}}(te,ne,re,de);else var Le=function createBind(te,ne,ie){var re=1&ne,le=createCtor(te);return function wrapper(){return(this&&this!==bo&&this instanceof wrapper?le:te).apply(re?ie:this,arguments)}}(te,ne,re);return setWrapToString((Ne?ua:Ra)(Le,Re),te,ne)}function customDefaultsAssignIn(te,ne,ie,re){return te===le||eq(te,jn[ie])&&!zn.call(re,ie)?ne:te}function customDefaultsMerge(te,ne,ie,re,ce,de){return isObject(te)&&isObject(ne)&&(de.set(ne,te),baseMerge(te,ne,le,customDefaultsMerge,de),de.delete(ne)),te}function customOmitClone(te){return isPlainObject(te)?le:te}function equalArrays(te,ne,ie,re,ce,de){var ue=1&ie,me=te.length,ge=ne.length;if(me!=ge&&!(ue&&ge>me))return!1;var fe=de.get(te),_e=de.get(ne);if(fe&&_e)return fe==ne&&_e==te;var be=-1,Ce=!0,ye=2&ie?new SetCache:le;for(de.set(te,ne),de.set(ne,te);++be<me;){var we=te[be],ke=ne[be];if(re)var Se=ue?re(ke,we,be,ne,te,de):re(we,ke,be,te,ne,de);if(Se!==le){if(Se)continue;Ce=!1;break}if(ye){if(!arraySome(ne,(function(te,ne){if(!cacheHas(ye,ne)&&(we===te||ce(we,te,ie,re,de)))return ye.push(ne)}))){Ce=!1;break}}else if(we!==ke&&!ce(we,ke,ie,re,de)){Ce=!1;break}}return de.delete(te),de.delete(ne),Ce}function flatRest(te){return Oa(overRest(te,le,flatten),te+"")}function getAllKeys(te){return baseGetAllKeys(te,keys,Da)}function getAllKeysIn(te){return baseGetAllKeys(te,keysIn,xa)}var Ta=$r?function(te){return $r.get(te)}:noop;function getFuncName(te){for(var ne=te.name+"",ie=qr[ne],re=zn.call(qr,ne)?ie.length:0;re--;){var le=ie[re],ce=le.func;if(null==ce||ce==te)return le.name}return ne}function getHolder(te){return(zn.call(lodash,"placeholder")?lodash:te).placeholder}function getIteratee(){var te=lodash.iteratee||iteratee;return te=te===iteratee?baseIteratee:te,arguments.length?te(arguments[0],arguments[1]):te}function getMapData(te,ne){var ie=te.__data__;return function isKeyable(te){var ne=typeof te;return"string"==ne||"number"==ne||"symbol"==ne||"boolean"==ne?"__proto__"!==te:null===te}(ne)?ie["string"==typeof ne?"string":"hash"]:ie.map}function getMatchData(te){for(var ne=keys(te),ie=ne.length;ie--;){var re=ne[ie],le=te[re];ne[ie]=[re,le,isStrictComparable(le)]}return ne}function getNative(te,ne){var ie=function getValue(te,ne){return null==te?le:te[ne]}(te,ne);return baseIsNative(ie)?ie:le}var Da=Co?function(te){return null==te?[]:(te=En(te),arrayFilter(Co(te),(function(ne){return fi.call(te,ne)})))}:stubArray,xa=Co?function(te){for(var ne=[];te;)arrayPush(ne,Da(te)),te=pi(te);return ne}:stubArray,Ma=baseGetTag;function hasPath(te,ne,ie){for(var re=-1,le=(ne=castPath(ne,te)).length,ce=!1;++re<le;){var de=toKey(ne[re]);if(!(ce=null!=te&&ie(te,de)))break;te=te[de]}return ce||++re!=le?ce:!!(le=null==te?0:te.length)&&isLength(le)&&isIndex(de,le)&&(Sc(te)||Ic(te))}function initCloneObject(te){return"function"!=typeof te.constructor||isPrototype(te)?{}:ra(pi(te))}function isFlattenable(te){return Sc(te)||Ic(te)||!!(ki&&te&&te[ki])}function isIndex(te,ne){var ie=typeof te;return!!(ne=null==ne?ye:ne)&&("number"==ie||"symbol"!=ie&&wn.test(te))&&te>-1&&te%1==0&&te<ne}function isIterateeCall(te,ne,ie){if(!isObject(ie))return!1;var re=typeof ne;return!!("number"==re?isArrayLike(ie)&&isIndex(ne,ie.length):"string"==re&&ne in ie)&&eq(ie[ne],te)}function isKey(te,ne){if(Sc(te))return!1;var ie=typeof te;return!("number"!=ie&&"symbol"!=ie&&"boolean"!=ie&&null!=te&&!isSymbol(te))||(Wt.test(te)||!Yt.test(te)||null!=ne&&te in En(ne))}function isLaziable(te){var ne=getFuncName(te),ie=lodash[ne];if("function"!=typeof ie||!(ne in LazyWrapper.prototype))return!1;if(te===ie)return!0;var re=Ta(ie);return!!re&&te===re[0]}(Lr&&Ma(new Lr(new ArrayBuffer(1)))!=Xe||Or&&Ma(new Or)!=Pe||Pr&&Ma(Pr.resolve())!=Ve||jr&&Ma(new jr)!=ze||Hr&&Ma(new Hr)!=qe)&&(Ma=function(te){var ne=baseGetTag(te),ie=ne==je?te.constructor:le,re=ie?toSource(ie):"";if(re)switch(re){case Kr:return Xe;case Qr:return Pe;case Jr:return Ve;case Zr:return ze;case ea:return qe}return ne});var Na=Vn?isFunction:stubFalse;function isPrototype(te){var ne=te&&te.constructor;return te===("function"==typeof ne&&ne.prototype||jn)}function isStrictComparable(te){return te==te&&!isObject(te)}function matchesStrictComparable(te,ne){return function(ie){return null!=ie&&(ie[te]===ne&&(ne!==le||te in En(ie)))}}function overRest(te,ne,re){return ne=wr(ne===le?te.length-1:ne,0),function(){for(var le=arguments,ce=-1,de=wr(le.length-ne,0),ue=ie(de);++ce<de;)ue[ce]=le[ne+ce];ce=-1;for(var me=ie(ne+1);++ce<ne;)me[ce]=le[ce];return me[ne]=re(ue),apply(te,this,me)}}function parent(te,ne){return ne.length<2?te:baseGet(te,baseSlice(ne,0,-1))}function safeGet(te,ne){if(("constructor"!==ne||"function"!=typeof te[ne])&&"__proto__"!=ne)return te[ne]}var Ra=shortOut(ua),La=uo||function(te,ne){return bo.setTimeout(te,ne)},Oa=shortOut(pa);function setWrapToString(te,ne,ie){var re=ne+"";return Oa(te,function insertWrapDetails(te,ne){var ie=ne.length;if(!ie)return te;var re=ie-1;return ne[re]=(ie>1?"& ":"")+ne[re],ne=ne.join(ie>2?", ":" "),te.replace(nn,"{\n/* [wrapped with "+ne+"] */\n")}(re,function updateWrapDetails(te,ne){return arrayEach(Se,(function(ie){var re="_."+ie[0];ne&ie[1]&&!arrayIncludes(te,re)&&te.push(re)})),te.sort()}(function getWrapDetails(te){var ne=te.match(rn);return ne?ne[1].split(an):[]}(re),ie)))}function shortOut(te){var ne=0,ie=0;return function(){var re=kr(),ce=16-(re-ie);if(ie=re,ce>0){if(++ne>=800)return arguments[0]}else ne=0;return te.apply(le,arguments)}}function shuffleSelf(te,ne){var ie=-1,re=te.length,ce=re-1;for(ne=ne===le?re:ne;++ie<ne;){var de=baseRandom(ie,ce),ue=te[de];te[de]=te[ie],te[ie]=ue}return te.length=ne,te}var Pa=function memoizeCapped(te){var ne=memoize(te,(function(te){return 500===ie.size&&ie.clear(),te})),ie=ne.cache;return ne}((function(te){var ne=[];return 46===te.charCodeAt(0)&&ne.push(""),te.replace(Kt,(function(te,ie,re,le){ne.push(re?le.replace(un,"$1"):ie||te)})),ne}));function toKey(te){if("string"==typeof te||isSymbol(te))return te;var ne=te+"";return"0"==ne&&1/te==-1/0?"-0":ne}function toSource(te){if(null!=te){try{return Gn.call(te)}catch(te){}try{return te+""}catch(te){}}return""}function wrapperClone(te){if(te instanceof LazyWrapper)return te.clone();var ne=new LodashWrapper(te.__wrapped__,te.__chain__);return ne.__actions__=copyArray(te.__actions__),ne.__index__=te.__index__,ne.__values__=te.__values__,ne}var Fa=baseRest((function(te,ne){return isArrayLikeObject(te)?baseDifference(te,baseFlatten(ne,1,isArrayLikeObject,!0)):[]})),Ba=baseRest((function(te,ne){var ie=last(ne);return isArrayLikeObject(ie)&&(ie=le),isArrayLikeObject(te)?baseDifference(te,baseFlatten(ne,1,isArrayLikeObject,!0),getIteratee(ie,2)):[]})),Ha=baseRest((function(te,ne){var ie=last(ne);return isArrayLikeObject(ie)&&(ie=le),isArrayLikeObject(te)?baseDifference(te,baseFlatten(ne,1,isArrayLikeObject,!0),le,ie):[]}));function findIndex(te,ne,ie){var re=null==te?0:te.length;if(!re)return-1;var le=null==ie?0:toInteger(ie);return le<0&&(le=wr(re+le,0)),baseFindIndex(te,getIteratee(ne,3),le)}function findLastIndex(te,ne,ie){var re=null==te?0:te.length;if(!re)return-1;var ce=re-1;return ie!==le&&(ce=toInteger(ie),ce=ie<0?wr(re+ce,0):Ar(ce,re-1)),baseFindIndex(te,getIteratee(ne,3),ce,!0)}function flatten(te){return(null==te?0:te.length)?baseFlatten(te,1):[]}function head(te){return te&&te.length?te[0]:le}var Ua=baseRest((function(te){var ne=arrayMap(te,castArrayLikeObject);return ne.length&&ne[0]===te[0]?baseIntersection(ne):[]})),es=baseRest((function(te){var ne=last(te),ie=arrayMap(te,castArrayLikeObject);return ne===last(ie)?ne=le:ie.pop(),ie.length&&ie[0]===te[0]?baseIntersection(ie,getIteratee(ne,2)):[]})),ts=baseRest((function(te){var ne=last(te),ie=arrayMap(te,castArrayLikeObject);return(ne="function"==typeof ne?ne:le)&&ie.pop(),ie.length&&ie[0]===te[0]?baseIntersection(ie,le,ne):[]}));function last(te){var ne=null==te?0:te.length;return ne?te[ne-1]:le}var is=baseRest(pullAll);function pullAll(te,ne){return te&&te.length&&ne&&ne.length?basePullAll(te,ne):te}var os=flatRest((function(te,ne){var ie=null==te?0:te.length,re=baseAt(te,ne);return basePullAt(te,arrayMap(ne,(function(te){return isIndex(te,ie)?+te:te})).sort(compareAscending)),re}));function reverse(te){return null==te?te:Nr.call(te)}var as=baseRest((function(te){return baseUniq(baseFlatten(te,1,isArrayLikeObject,!0))})),ls=baseRest((function(te){var ne=last(te);return isArrayLikeObject(ne)&&(ne=le),baseUniq(baseFlatten(te,1,isArrayLikeObject,!0),getIteratee(ne,2))})),us=baseRest((function(te){var ne=last(te);return ne="function"==typeof ne?ne:le,baseUniq(baseFlatten(te,1,isArrayLikeObject,!0),le,ne)}));function unzip(te){if(!te||!te.length)return[];var ne=0;return te=arrayFilter(te,(function(te){if(isArrayLikeObject(te))return ne=wr(te.length,ne),!0})),baseTimes(ne,(function(ne){return arrayMap(te,baseProperty(ne))}))}function unzipWith(te,ne){if(!te||!te.length)return[];var ie=unzip(te);return null==ne?ie:arrayMap(ie,(function(te){return apply(ne,le,te)}))}var ps=baseRest((function(te,ne){return isArrayLikeObject(te)?baseDifference(te,ne):[]})),ms=baseRest((function(te){return baseXor(arrayFilter(te,isArrayLikeObject))})),fs=baseRest((function(te){var ne=last(te);return isArrayLikeObject(ne)&&(ne=le),baseXor(arrayFilter(te,isArrayLikeObject),getIteratee(ne,2))})),bs=baseRest((function(te){var ne=last(te);return ne="function"==typeof ne?ne:le,baseXor(arrayFilter(te,isArrayLikeObject),le,ne)})),Ls=baseRest(unzip);var Os=baseRest((function(te){var ne=te.length,ie=ne>1?te[ne-1]:le;return ie="function"==typeof ie?(te.pop(),ie):le,unzipWith(te,ie)}));function chain(te){var ne=lodash(te);return ne.__chain__=!0,ne}function thru(te,ne){return ne(te)}var Ps=flatRest((function(te){var ne=te.length,ie=ne?te[0]:0,re=this.__wrapped__,interceptor=function(ne){return baseAt(ne,te)};return!(ne>1||this.__actions__.length)&&re instanceof LazyWrapper&&isIndex(ie)?((re=re.slice(ie,+ie+(ne?1:0))).__actions__.push({func:thru,args:[interceptor],thisArg:le}),new LodashWrapper(re,this.__chain__).thru((function(te){return ne&&!te.length&&te.push(le),te}))):this.thru(interceptor)}));var zs=createAggregator((function(te,ne,ie){zn.call(te,ie)?++te[ie]:baseAssignValue(te,ie,1)}));var Xs=createFind(findIndex),tl=createFind(findLastIndex);function forEach(te,ne){return(Sc(te)?arrayEach:aa)(te,getIteratee(ne,3))}function forEachRight(te,ne){return(Sc(te)?arrayEachRight:sa)(te,getIteratee(ne,3))}var cl=createAggregator((function(te,ne,ie){zn.call(te,ie)?te[ie].push(ne):baseAssignValue(te,ie,[ne])}));var kl=baseRest((function(te,ne,re){var le=-1,ce="function"==typeof ne,de=isArrayLike(te)?ie(te.length):[];return aa(te,(function(te){de[++le]=ce?apply(ne,te,re):baseInvoke(te,ne,re)})),de})),zl=createAggregator((function(te,ne,ie){baseAssignValue(te,ie,ne)}));function map(te,ne){return(Sc(te)?arrayMap:baseMap)(te,getIteratee(ne,3))}var Hl=createAggregator((function(te,ne,ie){te[ie?0:1].push(ne)}),(function(){return[[],[]]}));var Ul=baseRest((function(te,ne){if(null==te)return[];var ie=ne.length;return ie>1&&isIterateeCall(te,ne[0],ne[1])?ne=[]:ie>2&&isIterateeCall(ne[0],ne[1],ne[2])&&(ne=[ne[0]]),baseOrderBy(te,baseFlatten(ne,1),[])})),$l=no||function(){return bo.Date.now()};function ary(te,ne,ie){return ne=ie?le:ne,ne=te&&null==ne?te.length:ne,createWrap(te,_e,le,le,le,le,ne)}function before(te,ne){var ie;if("function"!=typeof ne)throw new On(ce);return te=toInteger(te),function(){return--te>0&&(ie=ne.apply(this,arguments)),te<=1&&(ne=le),ie}}var Kl=baseRest((function(te,ne,ie){var re=1;if(ie.length){var le=replaceHolders(ie,getHolder(Kl));re|=ge}return createWrap(te,re,ne,ie,le)})),nc=baseRest((function(te,ne,ie){var re=3;if(ie.length){var le=replaceHolders(ie,getHolder(nc));re|=ge}return createWrap(ne,re,te,ie,le)}));function debounce(te,ne,ie){var re,de,ue,me,ge,fe,_e=0,be=!1,Ce=!1,ye=!0;if("function"!=typeof te)throw new On(ce);function invokeFunc(ne){var ie=re,ce=de;return re=de=le,_e=ne,me=te.apply(ce,ie)}function shouldInvoke(te){var ie=te-fe;return fe===le||ie>=ne||ie<0||Ce&&te-_e>=ue}function timerExpired(){var te=$l();if(shouldInvoke(te))return trailingEdge(te);ge=La(timerExpired,function remainingWait(te){var ie=ne-(te-fe);return Ce?Ar(ie,ue-(te-_e)):ie}(te))}function trailingEdge(te){return ge=le,ye&&re?invokeFunc(te):(re=de=le,me)}function debounced(){var te=$l(),ie=shouldInvoke(te);if(re=arguments,de=this,fe=te,ie){if(ge===le)return function leadingEdge(te){return _e=te,ge=La(timerExpired,ne),be?invokeFunc(te):me}(fe);if(Ce)return Ca(ge),ge=La(timerExpired,ne),invokeFunc(fe)}return ge===le&&(ge=La(timerExpired,ne)),me}return ne=toNumber(ne)||0,isObject(ie)&&(be=!!ie.leading,ue=(Ce="maxWait"in ie)?wr(toNumber(ie.maxWait)||0,ne):ue,ye="trailing"in ie?!!ie.trailing:ye),debounced.cancel=function cancel(){ge!==le&&Ca(ge),_e=0,re=fe=de=ge=le},debounced.flush=function flush(){return ge===le?me:trailingEdge($l())},debounced}var ic=baseRest((function(te,ne){return baseDelay(te,1,ne)})),oc=baseRest((function(te,ne,ie){return baseDelay(te,toNumber(ne)||0,ie)}));function memoize(te,ne){if("function"!=typeof te||null!=ne&&"function"!=typeof ne)throw new On(ce);var memoized=function(){var ie=arguments,re=ne?ne.apply(this,ie):ie[0],le=memoized.cache;if(le.has(re))return le.get(re);var ce=te.apply(this,ie);return memoized.cache=le.set(re,ce)||le,ce};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(te){if("function"!=typeof te)throw new On(ce);return function(){var ne=arguments;switch(ne.length){case 0:return!te.call(this);case 1:return!te.call(this,ne[0]);case 2:return!te.call(this,ne[0],ne[1]);case 3:return!te.call(this,ne[0],ne[1],ne[2])}return!te.apply(this,ne)}}memoize.Cache=MapCache;var rc=ha((function(te,ne){var ie=(ne=1==ne.length&&Sc(ne[0])?arrayMap(ne[0],baseUnary(getIteratee())):arrayMap(baseFlatten(ne,1),baseUnary(getIteratee()))).length;return baseRest((function(re){for(var le=-1,ce=Ar(re.length,ie);++le<ce;)re[le]=ne[le].call(this,re[le]);return apply(te,this,re)}))})),sc=baseRest((function(te,ne){var ie=replaceHolders(ne,getHolder(sc));return createWrap(te,ge,le,ne,ie)})),mc=baseRest((function(te,ne){var ie=replaceHolders(ne,getHolder(mc));return createWrap(te,fe,le,ne,ie)})),bc=flatRest((function(te,ne){return createWrap(te,be,le,le,le,ne)}));function eq(te,ne){return te===ne||te!=te&&ne!=ne}var Cc=createRelationalOperation(baseGt),wc=createRelationalOperation((function(te,ne){return te>=ne})),Ic=baseIsArguments(function(){return arguments}())?baseIsArguments:function(te){return isObjectLike(te)&&zn.call(te,"callee")&&!fi.call(te,"callee")},Sc=ie.isArray,Tc=Po?baseUnary(Po):function baseIsArrayBuffer(te){return isObjectLike(te)&&baseGetTag(te)==Ye};function isArrayLike(te){return null!=te&&isLength(te.length)&&!isFunction(te)}function isArrayLikeObject(te){return isObjectLike(te)&&isArrayLike(te)}var Dc=wo||stubFalse,Mc=Fo?baseUnary(Fo):function baseIsDate(te){return isObjectLike(te)&&baseGetTag(te)==Ne};function isError(te){if(!isObjectLike(te))return!1;var ne=baseGetTag(te);return ne==Re||"[object DOMException]"==ne||"string"==typeof te.message&&"string"==typeof te.name&&!isPlainObject(te)}function isFunction(te){if(!isObject(te))return!1;var ne=baseGetTag(te);return ne==Le||ne==Oe||"[object AsyncFunction]"==ne||"[object Proxy]"==ne}function isInteger(te){return"number"==typeof te&&te==toInteger(te)}function isLength(te){return"number"==typeof te&&te>-1&&te%1==0&&te<=ye}function isObject(te){var ne=typeof te;return null!=te&&("object"==ne||"function"==ne)}function isObjectLike(te){return null!=te&&"object"==typeof te}var Nc=zo?baseUnary(zo):function baseIsMap(te){return isObjectLike(te)&&Ma(te)==Pe};function isNumber(te){return"number"==typeof te||isObjectLike(te)&&baseGetTag(te)==Fe}function isPlainObject(te){if(!isObjectLike(te)||baseGetTag(te)!=je)return!1;var ne=pi(te);if(null===ne)return!0;var ie=zn.call(ne,"constructor")&&ne.constructor;return"function"==typeof ie&&ie instanceof ie&&Gn.call(ie)==qn}var Oc=Zo?baseUnary(Zo):function baseIsRegExp(te){return isObjectLike(te)&&baseGetTag(te)==Ge};var Pc=ur?baseUnary(ur):function baseIsSet(te){return isObjectLike(te)&&Ma(te)==ze};function isString(te){return"string"==typeof te||!Sc(te)&&isObjectLike(te)&&baseGetTag(te)==He}function isSymbol(te){return"symbol"==typeof te||isObjectLike(te)&&baseGetTag(te)==$e}var Bc=hr?baseUnary(hr):function baseIsTypedArray(te){return isObjectLike(te)&&isLength(te.length)&&!!lo[baseGetTag(te)]};var zc=createRelationalOperation(baseLt),Sd=createRelationalOperation((function(te,ne){return te<=ne}));function toArray(te){if(!te)return[];if(isArrayLike(te))return isString(te)?stringToArray(te):copyArray(te);if(Ri&&te[Ri])return function iteratorToArray(te){for(var ne,ie=[];!(ne=te.next()).done;)ie.push(ne.value);return ie}(te[Ri]());var ne=Ma(te);return(ne==Pe?mapToArray:ne==ze?setToArray:values)(te)}function toFinite(te){return te?(te=toNumber(te))===Ce||te===-1/0?17976931348623157e292*(te<0?-1:1):te==te?te:0:0===te?te:0}function toInteger(te){var ne=toFinite(te),ie=ne%1;return ne==ne?ie?ne-ie:ne:0}function toLength(te){return te?baseClamp(toInteger(te),0,ke):0}function toNumber(te){if("number"==typeof te)return te;if(isSymbol(te))return we;if(isObject(te)){var ne="function"==typeof te.valueOf?te.valueOf():te;te=isObject(ne)?ne+"":ne}if("string"!=typeof te)return 0===te?te:+te;te=baseTrim(te);var ie=_n.test(te);return ie||yn.test(te)?go(te.slice(2),ie?2:8):fn.test(te)?we:+te}function toPlainObject(te){return copyObject(te,keysIn(te))}function toString(te){return null==te?"":baseToString(te)}var Au=createAssigner((function(te,ne){if(isPrototype(ne)||isArrayLike(ne))copyObject(ne,keys(ne),te);else for(var ie in ne)zn.call(ne,ie)&&assignValue(te,ie,ne[ie])})),Hu=createAssigner((function(te,ne){copyObject(ne,keysIn(ne),te)})),Xu=createAssigner((function(te,ne,ie,re){copyObject(ne,keysIn(ne),te,re)})),Ju=createAssigner((function(te,ne,ie,re){copyObject(ne,keys(ne),te,re)})),ap=flatRest(baseAt);var sp=baseRest((function(te,ne){te=En(te);var ie=-1,re=ne.length,ce=re>2?ne[2]:le;for(ce&&isIterateeCall(ne[0],ne[1],ce)&&(re=1);++ie<re;)for(var de=ne[ie],ue=keysIn(de),me=-1,ge=ue.length;++me<ge;){var fe=ue[me],_e=te[fe];(_e===le||eq(_e,jn[fe])&&!zn.call(te,fe))&&(te[fe]=de[fe])}return te})),dp=baseRest((function(te){return te.push(le,customDefaultsMerge),apply(bp,le,te)}));function get(te,ne,ie){var re=null==te?le:baseGet(te,ne);return re===le?ie:re}function hasIn(te,ne){return null!=te&&hasPath(te,ne,baseHasIn)}var pp=createInverter((function(te,ne,ie){null!=ne&&"function"!=typeof ne.toString&&(ne=$n.call(ne)),te[ne]=ie}),constant(identity)),hp=createInverter((function(te,ne,ie){null!=ne&&"function"!=typeof ne.toString&&(ne=$n.call(ne)),zn.call(te,ne)?te[ne].push(ie):te[ne]=[ie]}),getIteratee),fp=baseRest(baseInvoke);function keys(te){return isArrayLike(te)?arrayLikeKeys(te):baseKeys(te)}function keysIn(te){return isArrayLike(te)?arrayLikeKeys(te,!0):baseKeysIn(te)}var _p=createAssigner((function(te,ne,ie){baseMerge(te,ne,ie)})),bp=createAssigner((function(te,ne,ie,re){baseMerge(te,ne,ie,re)})),vp=flatRest((function(te,ne){var ie={};if(null==te)return ie;var re=!1;ne=arrayMap(ne,(function(ne){return ne=castPath(ne,te),re||(re=ne.length>1),ne})),copyObject(te,getAllKeysIn(te),ie),re&&(ie=baseClone(ie,7,customOmitClone));for(var le=ne.length;le--;)baseUnset(ie,ne[le]);return ie}));var yp=flatRest((function(te,ne){return null==te?{}:function basePick(te,ne){return basePickBy(te,ne,(function(ne,ie){return hasIn(te,ie)}))}(te,ne)}));function pickBy(te,ne){if(null==te)return{};var ie=arrayMap(getAllKeysIn(te),(function(te){return[te]}));return ne=getIteratee(ne),basePickBy(te,ie,(function(te,ie){return ne(te,ie[0])}))}var wp=createToPairs(keys),Ip=createToPairs(keysIn);function values(te){return null==te?[]:baseValues(te,keys(te))}var Sp=createCompounder((function(te,ne,ie){return ne=ne.toLowerCase(),te+(ie?capitalize(ne):ne)}));function capitalize(te){return Rp(toString(te).toLowerCase())}function deburr(te){return(te=toString(te))&&te.replace(kn,fr).replace(Vi,"")}var Tp=createCompounder((function(te,ne,ie){return te+(ie?"-":"")+ne.toLowerCase()})),Dp=createCompounder((function(te,ne,ie){return te+(ie?" ":"")+ne.toLowerCase()})),xp=createCaseFirst("toLowerCase");var Ep=createCompounder((function(te,ne,ie){return te+(ie?"_":"")+ne.toLowerCase()}));var Mp=createCompounder((function(te,ne,ie){return te+(ie?" ":"")+Rp(ne)}));var Np=createCompounder((function(te,ne,ie){return te+(ie?" ":"")+ne.toUpperCase()})),Rp=createCaseFirst("toUpperCase");function words(te,ne,ie){return te=toString(te),(ne=ie?le:ne)===le?function hasUnicodeWord(te){return io.test(te)}(te)?function unicodeWords(te){return te.match(to)||[]}(te):function asciiWords(te){return te.match(sn)||[]}(te):te.match(ne)||[]}var Lp=baseRest((function(te,ne){try{return apply(te,le,ne)}catch(te){return isError(te)?te:new tn(te)}})),Op=flatRest((function(te,ne){return arrayEach(ne,(function(ne){ne=toKey(ne),baseAssignValue(te,ne,Kl(te[ne],te))})),te}));function constant(te){return function(){return te}}var Pp=createFlow(),Fp=createFlow(!0);function identity(te){return te}function iteratee(te){return baseIteratee("function"==typeof te?te:baseClone(te,1))}var Gp=baseRest((function(te,ne){return function(ie){return baseInvoke(ie,te,ne)}})),zp=baseRest((function(te,ne){return function(ie){return baseInvoke(te,ie,ne)}}));function mixin(te,ne,ie){var re=keys(ne),le=baseFunctions(ne,re);null!=ie||isObject(ne)&&(le.length||!re.length)||(ie=ne,ne=te,te=this,le=baseFunctions(ne,keys(ne)));var ce=!(isObject(ie)&&"chain"in ie&&!ie.chain),de=isFunction(te);return arrayEach(le,(function(ie){var re=ne[ie];te[ie]=re,de&&(te.prototype[ie]=function(){var ne=this.__chain__;if(ce||ne){var ie=te(this.__wrapped__);return(ie.__actions__=copyArray(this.__actions__)).push({func:re,args:arguments,thisArg:te}),ie.__chain__=ne,ie}return re.apply(te,arrayPush([this.value()],arguments))})})),te}function noop(){}var Up=createOver(arrayMap),Yp=createOver(arrayEvery),Wp=createOver(arraySome);function property(te){return isKey(te)?baseProperty(toKey(te)):function basePropertyDeep(te){return function(ne){return baseGet(ne,te)}}(te)}var Qp=createRange(),Jp=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}var Zp=createMathOperation((function(te,ne){return te+ne}),0),lh=createRound("ceil"),Xh=createMathOperation((function(te,ne){return te/ne}),1),Qh=createRound("floor");var em,tm=createMathOperation((function(te,ne){return te*ne}),1),nm=createRound("round"),im=createMathOperation((function(te,ne){return te-ne}),0);return lodash.after=function after(te,ne){if("function"!=typeof ne)throw new On(ce);return te=toInteger(te),function(){if(--te<1)return ne.apply(this,arguments)}},lodash.ary=ary,lodash.assign=Au,lodash.assignIn=Hu,lodash.assignInWith=Xu,lodash.assignWith=Ju,lodash.at=ap,lodash.before=before,lodash.bind=Kl,lodash.bindAll=Op,lodash.bindKey=nc,lodash.castArray=function castArray(){if(!arguments.length)return[];var te=arguments[0];return Sc(te)?te:[te]},lodash.chain=chain,lodash.chunk=function chunk(te,ne,re){ne=(re?isIterateeCall(te,ne,re):ne===le)?1:wr(toInteger(ne),0);var ce=null==te?0:te.length;if(!ce||ne<1)return[];for(var de=0,ue=0,me=ie(fo(ce/ne));de<ce;)me[ue++]=baseSlice(te,de,de+=ne);return me},lodash.compact=function compact(te){for(var ne=-1,ie=null==te?0:te.length,re=0,le=[];++ne<ie;){var ce=te[ne];ce&&(le[re++]=ce)}return le},lodash.concat=function concat(){var te=arguments.length;if(!te)return[];for(var ne=ie(te-1),re=arguments[0],le=te;le--;)ne[le-1]=arguments[le];return arrayPush(Sc(re)?copyArray(re):[re],baseFlatten(ne,1))},lodash.cond=function cond(te){var ne=null==te?0:te.length,ie=getIteratee();return te=ne?arrayMap(te,(function(te){if("function"!=typeof te[1])throw new On(ce);return[ie(te[0]),te[1]]})):[],baseRest((function(ie){for(var re=-1;++re<ne;){var le=te[re];if(apply(le[0],this,ie))return apply(le[1],this,ie)}}))},lodash.conforms=function conforms(te){return function baseConforms(te){var ne=keys(te);return function(ie){return baseConformsTo(ie,te,ne)}}(baseClone(te,1))},lodash.constant=constant,lodash.countBy=zs,lodash.create=function create(te,ne){var ie=ra(te);return null==ne?ie:baseAssign(ie,ne)},lodash.curry=function curry(te,ne,ie){var re=createWrap(te,8,le,le,le,le,le,ne=ie?le:ne);return re.placeholder=curry.placeholder,re},lodash.curryRight=function curryRight(te,ne,ie){var re=createWrap(te,me,le,le,le,le,le,ne=ie?le:ne);return re.placeholder=curryRight.placeholder,re},lodash.debounce=debounce,lodash.defaults=sp,lodash.defaultsDeep=dp,lodash.defer=ic,lodash.delay=oc,lodash.difference=Fa,lodash.differenceBy=Ba,lodash.differenceWith=Ha,lodash.drop=function drop(te,ne,ie){var re=null==te?0:te.length;return re?baseSlice(te,(ne=ie||ne===le?1:toInteger(ne))<0?0:ne,re):[]},lodash.dropRight=function dropRight(te,ne,ie){var re=null==te?0:te.length;return re?baseSlice(te,0,(ne=re-(ne=ie||ne===le?1:toInteger(ne)))<0?0:ne):[]},lodash.dropRightWhile=function dropRightWhile(te,ne){return te&&te.length?baseWhile(te,getIteratee(ne,3),!0,!0):[]},lodash.dropWhile=function dropWhile(te,ne){return te&&te.length?baseWhile(te,getIteratee(ne,3),!0):[]},lodash.fill=function fill(te,ne,ie,re){var ce=null==te?0:te.length;return ce?(ie&&"number"!=typeof ie&&isIterateeCall(te,ne,ie)&&(ie=0,re=ce),function baseFill(te,ne,ie,re){var ce=te.length;for((ie=toInteger(ie))<0&&(ie=-ie>ce?0:ce+ie),(re=re===le||re>ce?ce:toInteger(re))<0&&(re+=ce),re=ie>re?0:toLength(re);ie<re;)te[ie++]=ne;return te}(te,ne,ie,re)):[]},lodash.filter=function filter(te,ne){return(Sc(te)?arrayFilter:baseFilter)(te,getIteratee(ne,3))},lodash.flatMap=function flatMap(te,ne){return baseFlatten(map(te,ne),1)},lodash.flatMapDeep=function flatMapDeep(te,ne){return baseFlatten(map(te,ne),Ce)},lodash.flatMapDepth=function flatMapDepth(te,ne,ie){return ie=ie===le?1:toInteger(ie),baseFlatten(map(te,ne),ie)},lodash.flatten=flatten,lodash.flattenDeep=function flattenDeep(te){return(null==te?0:te.length)?baseFlatten(te,Ce):[]},lodash.flattenDepth=function flattenDepth(te,ne){return(null==te?0:te.length)?baseFlatten(te,ne=ne===le?1:toInteger(ne)):[]},lodash.flip=function flip(te){return createWrap(te,512)},lodash.flow=Pp,lodash.flowRight=Fp,lodash.fromPairs=function fromPairs(te){for(var ne=-1,ie=null==te?0:te.length,re={};++ne<ie;){var le=te[ne];re[le[0]]=le[1]}return re},lodash.functions=function functions(te){return null==te?[]:baseFunctions(te,keys(te))},lodash.functionsIn=function functionsIn(te){return null==te?[]:baseFunctions(te,keysIn(te))},lodash.groupBy=cl,lodash.initial=function initial(te){return(null==te?0:te.length)?baseSlice(te,0,-1):[]},lodash.intersection=Ua,lodash.intersectionBy=es,lodash.intersectionWith=ts,lodash.invert=pp,lodash.invertBy=hp,lodash.invokeMap=kl,lodash.iteratee=iteratee,lodash.keyBy=zl,lodash.keys=keys,lodash.keysIn=keysIn,lodash.map=map,lodash.mapKeys=function mapKeys(te,ne){var ie={};return ne=getIteratee(ne,3),baseForOwn(te,(function(te,re,le){baseAssignValue(ie,ne(te,re,le),te)})),ie},lodash.mapValues=function mapValues(te,ne){var ie={};return ne=getIteratee(ne,3),baseForOwn(te,(function(te,re,le){baseAssignValue(ie,re,ne(te,re,le))})),ie},lodash.matches=function matches(te){return baseMatches(baseClone(te,1))},lodash.matchesProperty=function matchesProperty(te,ne){return baseMatchesProperty(te,baseClone(ne,1))},lodash.memoize=memoize,lodash.merge=_p,lodash.mergeWith=bp,lodash.method=Gp,lodash.methodOf=zp,lodash.mixin=mixin,lodash.negate=negate,lodash.nthArg=function nthArg(te){return te=toInteger(te),baseRest((function(ne){return baseNth(ne,te)}))},lodash.omit=vp,lodash.omitBy=function omitBy(te,ne){return pickBy(te,negate(getIteratee(ne)))},lodash.once=function once(te){return before(2,te)},lodash.orderBy=function orderBy(te,ne,ie,re){return null==te?[]:(Sc(ne)||(ne=null==ne?[]:[ne]),Sc(ie=re?le:ie)||(ie=null==ie?[]:[ie]),baseOrderBy(te,ne,ie))},lodash.over=Up,lodash.overArgs=rc,lodash.overEvery=Yp,lodash.overSome=Wp,lodash.partial=sc,lodash.partialRight=mc,lodash.partition=Hl,lodash.pick=yp,lodash.pickBy=pickBy,lodash.property=property,lodash.propertyOf=function propertyOf(te){return function(ne){return null==te?le:baseGet(te,ne)}},lodash.pull=is,lodash.pullAll=pullAll,lodash.pullAllBy=function pullAllBy(te,ne,ie){return te&&te.length&&ne&&ne.length?basePullAll(te,ne,getIteratee(ie,2)):te},lodash.pullAllWith=function pullAllWith(te,ne,ie){return te&&te.length&&ne&&ne.length?basePullAll(te,ne,le,ie):te},lodash.pullAt=os,lodash.range=Qp,lodash.rangeRight=Jp,lodash.rearg=bc,lodash.reject=function reject(te,ne){return(Sc(te)?arrayFilter:baseFilter)(te,negate(getIteratee(ne,3)))},lodash.remove=function remove(te,ne){var ie=[];if(!te||!te.length)return ie;var re=-1,le=[],ce=te.length;for(ne=getIteratee(ne,3);++re<ce;){var de=te[re];ne(de,re,te)&&(ie.push(de),le.push(re))}return basePullAt(te,le),ie},lodash.rest=function rest(te,ne){if("function"!=typeof te)throw new On(ce);return baseRest(te,ne=ne===le?ne:toInteger(ne))},lodash.reverse=reverse,lodash.sampleSize=function sampleSize(te,ne,ie){return ne=(ie?isIterateeCall(te,ne,ie):ne===le)?1:toInteger(ne),(Sc(te)?arraySampleSize:baseSampleSize)(te,ne)},lodash.set=function set(te,ne,ie){return null==te?te:baseSet(te,ne,ie)},lodash.setWith=function setWith(te,ne,ie,re){return re="function"==typeof re?re:le,null==te?te:baseSet(te,ne,ie,re)},lodash.shuffle=function shuffle(te){return(Sc(te)?arrayShuffle:baseShuffle)(te)},lodash.slice=function slice(te,ne,ie){var re=null==te?0:te.length;return re?(ie&&"number"!=typeof ie&&isIterateeCall(te,ne,ie)?(ne=0,ie=re):(ne=null==ne?0:toInteger(ne),ie=ie===le?re:toInteger(ie)),baseSlice(te,ne,ie)):[]},lodash.sortBy=Ul,lodash.sortedUniq=function sortedUniq(te){return te&&te.length?baseSortedUniq(te):[]},lodash.sortedUniqBy=function sortedUniqBy(te,ne){return te&&te.length?baseSortedUniq(te,getIteratee(ne,2)):[]},lodash.split=function split(te,ne,ie){return ie&&"number"!=typeof ie&&isIterateeCall(te,ne,ie)&&(ne=ie=le),(ie=ie===le?ke:ie>>>0)?(te=toString(te))&&("string"==typeof ne||null!=ne&&!Oc(ne))&&!(ne=baseToString(ne))&&hasUnicode(te)?castSlice(stringToArray(te),0,ie):te.split(ne,ie):[]},lodash.spread=function spread(te,ne){if("function"!=typeof te)throw new On(ce);return ne=null==ne?0:wr(toInteger(ne),0),baseRest((function(ie){var re=ie[ne],le=castSlice(ie,0,ne);return re&&arrayPush(le,re),apply(te,this,le)}))},lodash.tail=function tail(te){var ne=null==te?0:te.length;return ne?baseSlice(te,1,ne):[]},lodash.take=function take(te,ne,ie){return te&&te.length?baseSlice(te,0,(ne=ie||ne===le?1:toInteger(ne))<0?0:ne):[]},lodash.takeRight=function takeRight(te,ne,ie){var re=null==te?0:te.length;return re?baseSlice(te,(ne=re-(ne=ie||ne===le?1:toInteger(ne)))<0?0:ne,re):[]},lodash.takeRightWhile=function takeRightWhile(te,ne){return te&&te.length?baseWhile(te,getIteratee(ne,3),!1,!0):[]},lodash.takeWhile=function takeWhile(te,ne){return te&&te.length?baseWhile(te,getIteratee(ne,3)):[]},lodash.tap=function tap(te,ne){return ne(te),te},lodash.throttle=function throttle(te,ne,ie){var re=!0,le=!0;if("function"!=typeof te)throw new On(ce);return isObject(ie)&&(re="leading"in ie?!!ie.leading:re,le="trailing"in ie?!!ie.trailing:le),debounce(te,ne,{leading:re,maxWait:ne,trailing:le})},lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=wp,lodash.toPairsIn=Ip,lodash.toPath=function toPath(te){return Sc(te)?arrayMap(te,toKey):isSymbol(te)?[te]:copyArray(Pa(toString(te)))},lodash.toPlainObject=toPlainObject,lodash.transform=function transform(te,ne,ie){var re=Sc(te),le=re||Dc(te)||Bc(te);if(ne=getIteratee(ne,4),null==ie){var ce=te&&te.constructor;ie=le?re?new ce:[]:isObject(te)&&isFunction(ce)?ra(pi(te)):{}}return(le?arrayEach:baseForOwn)(te,(function(te,re,le){return ne(ie,te,re,le)})),ie},lodash.unary=function unary(te){return ary(te,1)},lodash.union=as,lodash.unionBy=ls,lodash.unionWith=us,lodash.uniq=function uniq(te){return te&&te.length?baseUniq(te):[]},lodash.uniqBy=function uniqBy(te,ne){return te&&te.length?baseUniq(te,getIteratee(ne,2)):[]},lodash.uniqWith=function uniqWith(te,ne){return ne="function"==typeof ne?ne:le,te&&te.length?baseUniq(te,le,ne):[]},lodash.unset=function unset(te,ne){return null==te||baseUnset(te,ne)},lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=function update(te,ne,ie){return null==te?te:baseUpdate(te,ne,castFunction(ie))},lodash.updateWith=function updateWith(te,ne,ie,re){return re="function"==typeof re?re:le,null==te?te:baseUpdate(te,ne,castFunction(ie),re)},lodash.values=values,lodash.valuesIn=function valuesIn(te){return null==te?[]:baseValues(te,keysIn(te))},lodash.without=ps,lodash.words=words,lodash.wrap=function wrap(te,ne){return sc(castFunction(ne),te)},lodash.xor=ms,lodash.xorBy=fs,lodash.xorWith=bs,lodash.zip=Ls,lodash.zipObject=function zipObject(te,ne){return baseZipObject(te||[],ne||[],assignValue)},lodash.zipObjectDeep=function zipObjectDeep(te,ne){return baseZipObject(te||[],ne||[],baseSet)},lodash.zipWith=Os,lodash.entries=wp,lodash.entriesIn=Ip,lodash.extend=Hu,lodash.extendWith=Xu,mixin(lodash,lodash),lodash.add=Zp,lodash.attempt=Lp,lodash.camelCase=Sp,lodash.capitalize=capitalize,lodash.ceil=lh,lodash.clamp=function clamp(te,ne,ie){return ie===le&&(ie=ne,ne=le),ie!==le&&(ie=(ie=toNumber(ie))==ie?ie:0),ne!==le&&(ne=(ne=toNumber(ne))==ne?ne:0),baseClamp(toNumber(te),ne,ie)},lodash.clone=function clone(te){return baseClone(te,4)},lodash.cloneDeep=function cloneDeep(te){return baseClone(te,5)},lodash.cloneDeepWith=function cloneDeepWith(te,ne){return baseClone(te,5,ne="function"==typeof ne?ne:le)},lodash.cloneWith=function cloneWith(te,ne){return baseClone(te,4,ne="function"==typeof ne?ne:le)},lodash.conformsTo=function conformsTo(te,ne){return null==ne||baseConformsTo(te,ne,keys(ne))},lodash.deburr=deburr,lodash.defaultTo=function defaultTo(te,ne){return null==te||te!=te?ne:te},lodash.divide=Xh,lodash.endsWith=function endsWith(te,ne,ie){te=toString(te),ne=baseToString(ne);var re=te.length,ce=ie=ie===le?re:baseClamp(toInteger(ie),0,re);return(ie-=ne.length)>=0&&te.slice(ie,ce)==ne},lodash.eq=eq,lodash.escape=function escape(te){return(te=toString(te))&&zt.test(te)?te.replace(Vt,_r):te},lodash.escapeRegExp=function escapeRegExp(te){return(te=toString(te))&&Jt.test(te)?te.replace(Qt,"\\$&"):te},lodash.every=function every(te,ne,ie){var re=Sc(te)?arrayEvery:baseEvery;return ie&&isIterateeCall(te,ne,ie)&&(ne=le),re(te,getIteratee(ne,3))},lodash.find=Xs,lodash.findIndex=findIndex,lodash.findKey=function findKey(te,ne){return baseFindKey(te,getIteratee(ne,3),baseForOwn)},lodash.findLast=tl,lodash.findLastIndex=findLastIndex,lodash.findLastKey=function findLastKey(te,ne){return baseFindKey(te,getIteratee(ne,3),baseForOwnRight)},lodash.floor=Qh,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=function forIn(te,ne){return null==te?te:la(te,getIteratee(ne,3),keysIn)},lodash.forInRight=function forInRight(te,ne){return null==te?te:da(te,getIteratee(ne,3),keysIn)},lodash.forOwn=function forOwn(te,ne){return te&&baseForOwn(te,getIteratee(ne,3))},lodash.forOwnRight=function forOwnRight(te,ne){return te&&baseForOwnRight(te,getIteratee(ne,3))},lodash.get=get,lodash.gt=Cc,lodash.gte=wc,lodash.has=function has(te,ne){return null!=te&&hasPath(te,ne,baseHas)},lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=function includes(te,ne,ie,re){te=isArrayLike(te)?te:values(te),ie=ie&&!re?toInteger(ie):0;var le=te.length;return ie<0&&(ie=wr(le+ie,0)),isString(te)?ie<=le&&te.indexOf(ne,ie)>-1:!!le&&baseIndexOf(te,ne,ie)>-1},lodash.indexOf=function indexOf(te,ne,ie){var re=null==te?0:te.length;if(!re)return-1;var le=null==ie?0:toInteger(ie);return le<0&&(le=wr(re+le,0)),baseIndexOf(te,ne,le)},lodash.inRange=function inRange(te,ne,ie){return ne=toFinite(ne),ie===le?(ie=ne,ne=0):ie=toFinite(ie),function baseInRange(te,ne,ie){return te>=Ar(ne,ie)&&te<wr(ne,ie)}(te=toNumber(te),ne,ie)},lodash.invoke=fp,lodash.isArguments=Ic,lodash.isArray=Sc,lodash.isArrayBuffer=Tc,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=function isBoolean(te){return!0===te||!1===te||isObjectLike(te)&&baseGetTag(te)==Me},lodash.isBuffer=Dc,lodash.isDate=Mc,lodash.isElement=function isElement(te){return isObjectLike(te)&&1===te.nodeType&&!isPlainObject(te)},lodash.isEmpty=function isEmpty(te){if(null==te)return!0;if(isArrayLike(te)&&(Sc(te)||"string"==typeof te||"function"==typeof te.splice||Dc(te)||Bc(te)||Ic(te)))return!te.length;var ne=Ma(te);if(ne==Pe||ne==ze)return!te.size;if(isPrototype(te))return!baseKeys(te).length;for(var ie in te)if(zn.call(te,ie))return!1;return!0},lodash.isEqual=function isEqual(te,ne){return baseIsEqual(te,ne)},lodash.isEqualWith=function isEqualWith(te,ne,ie){var re=(ie="function"==typeof ie?ie:le)?ie(te,ne):le;return re===le?baseIsEqual(te,ne,le,ie):!!re},lodash.isError=isError,lodash.isFinite=function isFinite(te){return"number"==typeof te&&ko(te)},lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=Nc,lodash.isMatch=function isMatch(te,ne){return te===ne||baseIsMatch(te,ne,getMatchData(ne))},lodash.isMatchWith=function isMatchWith(te,ne,ie){return ie="function"==typeof ie?ie:le,baseIsMatch(te,ne,getMatchData(ne),ie)},lodash.isNaN=function isNaN(te){return isNumber(te)&&te!=+te},lodash.isNative=function isNative(te){if(Na(te))throw new tn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return baseIsNative(te)},lodash.isNil=function isNil(te){return null==te},lodash.isNull=function isNull(te){return null===te},lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=Oc,lodash.isSafeInteger=function isSafeInteger(te){return isInteger(te)&&te>=-9007199254740991&&te<=ye},lodash.isSet=Pc,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=Bc,lodash.isUndefined=function isUndefined(te){return te===le},lodash.isWeakMap=function isWeakMap(te){return isObjectLike(te)&&Ma(te)==qe},lodash.isWeakSet=function isWeakSet(te){return isObjectLike(te)&&"[object WeakSet]"==baseGetTag(te)},lodash.join=function join(te,ne){return null==te?"":Io.call(te,ne)},lodash.kebabCase=Tp,lodash.last=last,lodash.lastIndexOf=function lastIndexOf(te,ne,ie){var re=null==te?0:te.length;if(!re)return-1;var ce=re;return ie!==le&&(ce=(ce=toInteger(ie))<0?wr(re+ce,0):Ar(ce,re-1)),ne==ne?function strictLastIndexOf(te,ne,ie){for(var re=ie+1;re--;)if(te[re]===ne)return re;return re}(te,ne,ce):baseFindIndex(te,baseIsNaN,ce,!0)},lodash.lowerCase=Dp,lodash.lowerFirst=xp,lodash.lt=zc,lodash.lte=Sd,lodash.max=function max(te){return te&&te.length?baseExtremum(te,identity,baseGt):le},lodash.maxBy=function maxBy(te,ne){return te&&te.length?baseExtremum(te,getIteratee(ne,2),baseGt):le},lodash.mean=function mean(te){return baseMean(te,identity)},lodash.meanBy=function meanBy(te,ne){return baseMean(te,getIteratee(ne,2))},lodash.min=function min(te){return te&&te.length?baseExtremum(te,identity,baseLt):le},lodash.minBy=function minBy(te,ne){return te&&te.length?baseExtremum(te,getIteratee(ne,2),baseLt):le},lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=function stubObject(){return{}},lodash.stubString=function stubString(){return""},lodash.stubTrue=function stubTrue(){return!0},lodash.multiply=tm,lodash.nth=function nth(te,ne){return te&&te.length?baseNth(te,toInteger(ne)):le},lodash.noConflict=function noConflict(){return bo._===this&&(bo._=Yn),this},lodash.noop=noop,lodash.now=$l,lodash.pad=function pad(te,ne,ie){te=toString(te);var re=(ne=toInteger(ne))?stringSize(te):0;if(!ne||re>=ne)return te;var le=(ne-re)/2;return createPadding(_o(le),ie)+te+createPadding(fo(le),ie)},lodash.padEnd=function padEnd(te,ne,ie){te=toString(te);var re=(ne=toInteger(ne))?stringSize(te):0;return ne&&re<ne?te+createPadding(ne-re,ie):te},lodash.padStart=function padStart(te,ne,ie){te=toString(te);var re=(ne=toInteger(ne))?stringSize(te):0;return ne&&re<ne?createPadding(ne-re,ie)+te:te},lodash.parseInt=function parseInt(te,ne,ie){return ie||null==ne?ne=0:ne&&(ne=+ne),Ir(toString(te).replace(Zt,""),ne||0)},lodash.random=function random(te,ne,ie){if(ie&&"boolean"!=typeof ie&&isIterateeCall(te,ne,ie)&&(ne=ie=le),ie===le&&("boolean"==typeof ne?(ie=ne,ne=le):"boolean"==typeof te&&(ie=te,te=le)),te===le&&ne===le?(te=0,ne=1):(te=toFinite(te),ne===le?(ne=te,te=0):ne=toFinite(ne)),te>ne){var re=te;te=ne,ne=re}if(ie||te%1||ne%1){var ce=Mr();return Ar(te+ce*(ne-te+mo("1e-"+((ce+"").length-1))),ne)}return baseRandom(te,ne)},lodash.reduce=function reduce(te,ne,ie){var re=Sc(te)?arrayReduce:baseReduce,le=arguments.length<3;return re(te,getIteratee(ne,4),ie,le,aa)},lodash.reduceRight=function reduceRight(te,ne,ie){var re=Sc(te)?arrayReduceRight:baseReduce,le=arguments.length<3;return re(te,getIteratee(ne,4),ie,le,sa)},lodash.repeat=function repeat(te,ne,ie){return ne=(ie?isIterateeCall(te,ne,ie):ne===le)?1:toInteger(ne),baseRepeat(toString(te),ne)},lodash.replace=function replace(){var te=arguments,ne=toString(te[0]);return te.length<3?ne:ne.replace(te[1],te[2])},lodash.result=function result(te,ne,ie){var re=-1,ce=(ne=castPath(ne,te)).length;for(ce||(ce=1,te=le);++re<ce;){var de=null==te?le:te[toKey(ne[re])];de===le&&(re=ce,de=ie),te=isFunction(de)?de.call(te):de}return te},lodash.round=nm,lodash.runInContext=runInContext,lodash.sample=function sample(te){return(Sc(te)?arraySample:baseSample)(te)},lodash.size=function size(te){if(null==te)return 0;if(isArrayLike(te))return isString(te)?stringSize(te):te.length;var ne=Ma(te);return ne==Pe||ne==ze?te.size:baseKeys(te).length},lodash.snakeCase=Ep,lodash.some=function some(te,ne,ie){var re=Sc(te)?arraySome:baseSome;return ie&&isIterateeCall(te,ne,ie)&&(ne=le),re(te,getIteratee(ne,3))},lodash.sortedIndex=function sortedIndex(te,ne){return baseSortedIndex(te,ne)},lodash.sortedIndexBy=function sortedIndexBy(te,ne,ie){return baseSortedIndexBy(te,ne,getIteratee(ie,2))},lodash.sortedIndexOf=function sortedIndexOf(te,ne){var ie=null==te?0:te.length;if(ie){var re=baseSortedIndex(te,ne);if(re<ie&&eq(te[re],ne))return re}return-1},lodash.sortedLastIndex=function sortedLastIndex(te,ne){return baseSortedIndex(te,ne,!0)},lodash.sortedLastIndexBy=function sortedLastIndexBy(te,ne,ie){return baseSortedIndexBy(te,ne,getIteratee(ie,2),!0)},lodash.sortedLastIndexOf=function sortedLastIndexOf(te,ne){if(null==te?0:te.length){var ie=baseSortedIndex(te,ne,!0)-1;if(eq(te[ie],ne))return ie}return-1},lodash.startCase=Mp,lodash.startsWith=function startsWith(te,ne,ie){return te=toString(te),ie=null==ie?0:baseClamp(toInteger(ie),0,te.length),ne=baseToString(ne),te.slice(ie,ie+ne.length)==ne},lodash.subtract=im,lodash.sum=function sum(te){return te&&te.length?baseSum(te,identity):0},lodash.sumBy=function sumBy(te,ne){return te&&te.length?baseSum(te,getIteratee(ne,2)):0},lodash.template=function template(te,ne,ie){var re=lodash.templateSettings;ie&&isIterateeCall(te,ne,ie)&&(ne=le),te=toString(te),ne=Xu({},ne,re,customDefaultsAssignIn);var ce,de,ue=Xu({},ne.imports,re.imports,customDefaultsAssignIn),me=keys(ue),ge=baseValues(ue,me),fe=0,_e=ne.interpolate||In,be="__p += '",Ce=Rn((ne.escape||In).source+"|"+_e.source+"|"+(_e===$t?pn:In).source+"|"+(ne.evaluate||In).source+"|$","g"),ye="//# sourceURL="+(zn.call(ne,"sourceURL")?(ne.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ro+"]")+"\n";te.replace(Ce,(function(ne,ie,re,le,ue,me){return re||(re=le),be+=te.slice(fe,me).replace(Tn,escapeStringChar),ie&&(ce=!0,be+="' +\n__e("+ie+") +\n'"),ue&&(de=!0,be+="';\n"+ue+";\n__p += '"),re&&(be+="' +\n((__t = ("+re+")) == null ? '' : __t) +\n'"),fe=me+ne.length,ne})),be+="';\n";var we=zn.call(ne,"variable")&&ne.variable;if(we){if(dn.test(we))throw new tn("Invalid `variable` option passed into `_.template`")}else be="with (obj) {\n"+be+"\n}\n";be=(de?be.replace(Mt,""):be).replace(Nt,"$1").replace(Rt,"$1;"),be="function("+(we||"obj")+") {\n"+(we?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(ce?", __e = _.escape":"")+(de?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+be+"return __p\n}";var ke=Lp((function(){return Dn(me,ye+"return "+be).apply(le,ge)}));if(ke.source=be,isError(ke))throw ke;return ke},lodash.times=function times(te,ne){if((te=toInteger(te))<1||te>ye)return[];var ie=ke,re=Ar(te,ke);ne=getIteratee(ne),te-=ke;for(var le=baseTimes(re,ne);++ie<te;)ne(ie);return le},lodash.toFinite=toFinite,lodash.toInteger=toInteger,lodash.toLength=toLength,lodash.toLower=function toLower(te){return toString(te).toLowerCase()},lodash.toNumber=toNumber,lodash.toSafeInteger=function toSafeInteger(te){return te?baseClamp(toInteger(te),-9007199254740991,ye):0===te?te:0},lodash.toString=toString,lodash.toUpper=function toUpper(te){return toString(te).toUpperCase()},lodash.trim=function trim(te,ne,ie){if((te=toString(te))&&(ie||ne===le))return baseTrim(te);if(!te||!(ne=baseToString(ne)))return te;var re=stringToArray(te),ce=stringToArray(ne);return castSlice(re,charsStartIndex(re,ce),charsEndIndex(re,ce)+1).join("")},lodash.trimEnd=function trimEnd(te,ne,ie){if((te=toString(te))&&(ie||ne===le))return te.slice(0,trimmedEndIndex(te)+1);if(!te||!(ne=baseToString(ne)))return te;var re=stringToArray(te);return castSlice(re,0,charsEndIndex(re,stringToArray(ne))+1).join("")},lodash.trimStart=function trimStart(te,ne,ie){if((te=toString(te))&&(ie||ne===le))return te.replace(Zt,"");if(!te||!(ne=baseToString(ne)))return te;var re=stringToArray(te);return castSlice(re,charsStartIndex(re,stringToArray(ne))).join("")},lodash.truncate=function truncate(te,ne){var ie=30,re="...";if(isObject(ne)){var ce="separator"in ne?ne.separator:ce;ie="length"in ne?toInteger(ne.length):ie,re="omission"in ne?baseToString(ne.omission):re}var de=(te=toString(te)).length;if(hasUnicode(te)){var ue=stringToArray(te);de=ue.length}if(ie>=de)return te;var me=ie-stringSize(re);if(me<1)return re;var ge=ue?castSlice(ue,0,me).join(""):te.slice(0,me);if(ce===le)return ge+re;if(ue&&(me+=ge.length-me),Oc(ce)){if(te.slice(me).search(ce)){var fe,_e=ge;for(ce.global||(ce=Rn(ce.source,toString(hn.exec(ce))+"g")),ce.lastIndex=0;fe=ce.exec(_e);)var be=fe.index;ge=ge.slice(0,be===le?me:be)}}else if(te.indexOf(baseToString(ce),me)!=me){var Ce=ge.lastIndexOf(ce);Ce>-1&&(ge=ge.slice(0,Ce))}return ge+re},lodash.unescape=function unescape(te){return(te=toString(te))&&Gt.test(te)?te.replace(Ot,vr):te},lodash.uniqueId=function uniqueId(te){var ne=++Hn;return toString(te)+ne},lodash.upperCase=Np,lodash.upperFirst=Rp,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,(em={},baseForOwn(lodash,(function(te,ne){zn.call(lodash.prototype,ne)||(em[ne]=te)})),em),{chain:!1}),lodash.VERSION="4.17.21",arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(te){lodash[te].placeholder=lodash})),arrayEach(["drop","take"],(function(te,ne){LazyWrapper.prototype[te]=function(ie){ie=ie===le?1:wr(toInteger(ie),0);var re=this.__filtered__&&!ne?new LazyWrapper(this):this.clone();return re.__filtered__?re.__takeCount__=Ar(ie,re.__takeCount__):re.__views__.push({size:Ar(ie,ke),type:te+(re.__dir__<0?"Right":"")}),re},LazyWrapper.prototype[te+"Right"]=function(ne){return this.reverse()[te](ne).reverse()}})),arrayEach(["filter","map","takeWhile"],(function(te,ne){var ie=ne+1,re=1==ie||3==ie;LazyWrapper.prototype[te]=function(te){var ne=this.clone();return ne.__iteratees__.push({iteratee:getIteratee(te,3),type:ie}),ne.__filtered__=ne.__filtered__||re,ne}})),arrayEach(["head","last"],(function(te,ne){var ie="take"+(ne?"Right":"");LazyWrapper.prototype[te]=function(){return this[ie](1).value()[0]}})),arrayEach(["initial","tail"],(function(te,ne){var ie="drop"+(ne?"":"Right");LazyWrapper.prototype[te]=function(){return this.__filtered__?new LazyWrapper(this):this[ie](1)}})),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(te){return this.filter(te).head()},LazyWrapper.prototype.findLast=function(te){return this.reverse().find(te)},LazyWrapper.prototype.invokeMap=baseRest((function(te,ne){return"function"==typeof te?new LazyWrapper(this):this.map((function(ie){return baseInvoke(ie,te,ne)}))})),LazyWrapper.prototype.reject=function(te){return this.filter(negate(getIteratee(te)))},LazyWrapper.prototype.slice=function(te,ne){te=toInteger(te);var ie=this;return ie.__filtered__&&(te>0||ne<0)?new LazyWrapper(ie):(te<0?ie=ie.takeRight(-te):te&&(ie=ie.drop(te)),ne!==le&&(ie=(ne=toInteger(ne))<0?ie.dropRight(-ne):ie.take(ne-te)),ie)},LazyWrapper.prototype.takeRightWhile=function(te){return this.reverse().takeWhile(te).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(ke)},baseForOwn(LazyWrapper.prototype,(function(te,ne){var ie=/^(?:filter|find|map|reject)|While$/.test(ne),re=/^(?:head|last)$/.test(ne),ce=lodash[re?"take"+("last"==ne?"Right":""):ne],de=re||/^find/.test(ne);ce&&(lodash.prototype[ne]=function(){var ne=this.__wrapped__,ue=re?[1]:arguments,me=ne instanceof LazyWrapper,ge=ue[0],fe=me||Sc(ne),interceptor=function(te){var ne=ce.apply(lodash,arrayPush([te],ue));return re&&_e?ne[0]:ne};fe&&ie&&"function"==typeof ge&&1!=ge.length&&(me=fe=!1);var _e=this.__chain__,be=!!this.__actions__.length,Ce=de&&!_e,ye=me&&!be;if(!de&&fe){ne=ye?ne:new LazyWrapper(this);var we=te.apply(ne,ue);return we.__actions__.push({func:thru,args:[interceptor],thisArg:le}),new LodashWrapper(we,_e)}return Ce&&ye?te.apply(this,ue):(we=this.thru(interceptor),Ce?re?we.value()[0]:we.value():we)})})),arrayEach(["pop","push","shift","sort","splice","unshift"],(function(te){var ne=Pn[te],ie=/^(?:push|sort|unshift)$/.test(te)?"tap":"thru",re=/^(?:pop|shift)$/.test(te);lodash.prototype[te]=function(){var te=arguments;if(re&&!this.__chain__){var le=this.value();return ne.apply(Sc(le)?le:[],te)}return this[ie]((function(ie){return ne.apply(Sc(ie)?ie:[],te)}))}})),baseForOwn(LazyWrapper.prototype,(function(te,ne){var ie=lodash[ne];if(ie){var re=ie.name+"";zn.call(qr,re)||(qr[re]=[]),qr[re].push({name:ne,func:ie})}})),qr[createHybrid(le,2).name]=[{name:"wrapper",func:le}],LazyWrapper.prototype.clone=function lazyClone(){var te=new LazyWrapper(this.__wrapped__);return te.__actions__=copyArray(this.__actions__),te.__dir__=this.__dir__,te.__filtered__=this.__filtered__,te.__iteratees__=copyArray(this.__iteratees__),te.__takeCount__=this.__takeCount__,te.__views__=copyArray(this.__views__),te},LazyWrapper.prototype.reverse=function lazyReverse(){if(this.__filtered__){var te=new LazyWrapper(this);te.__dir__=-1,te.__filtered__=!0}else(te=this.clone()).__dir__*=-1;return te},LazyWrapper.prototype.value=function lazyValue(){var te=this.__wrapped__.value(),ne=this.__dir__,ie=Sc(te),re=ne<0,le=ie?te.length:0,ce=function getView(te,ne,ie){var re=-1,le=ie.length;for(;++re<le;){var ce=ie[re],de=ce.size;switch(ce.type){case"drop":te+=de;break;case"dropRight":ne-=de;break;case"take":ne=Ar(ne,te+de);break;case"takeRight":te=wr(te,ne-de)}}return{start:te,end:ne}}(0,le,this.__views__),de=ce.start,ue=ce.end,me=ue-de,ge=re?ue:de-1,fe=this.__iteratees__,_e=fe.length,be=0,Ce=Ar(me,this.__takeCount__);if(!ie||!re&&le==me&&Ce==me)return baseWrapperValue(te,this.__actions__);var ye=[];e:for(;me--&&be<Ce;){for(var we=-1,ke=te[ge+=ne];++we<_e;){var Se=fe[we],xe=Se.iteratee,Ee=Se.type,Me=xe(ke);if(2==Ee)ke=Me;else if(!Me){if(1==Ee)continue e;break e}}ye[be++]=ke}return ye},lodash.prototype.at=Ps,lodash.prototype.chain=function wrapperChain(){return chain(this)},lodash.prototype.commit=function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)},lodash.prototype.next=function wrapperNext(){this.__values__===le&&(this.__values__=toArray(this.value()));var te=this.__index__>=this.__values__.length;return{done:te,value:te?le:this.__values__[this.__index__++]}},lodash.prototype.plant=function wrapperPlant(te){for(var ne,ie=this;ie instanceof baseLodash;){var re=wrapperClone(ie);re.__index__=0,re.__values__=le,ne?ce.__wrapped__=re:ne=re;var ce=re;ie=ie.__wrapped__}return ce.__wrapped__=te,ne},lodash.prototype.reverse=function wrapperReverse(){var te=this.__wrapped__;if(te instanceof LazyWrapper){var ne=te;return this.__actions__.length&&(ne=new LazyWrapper(this)),(ne=ne.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:le}),new LodashWrapper(ne,this.__chain__)}return this.thru(reverse)},lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)},lodash.prototype.first=lodash.prototype.head,Ri&&(lodash.prototype[Ri]=function wrapperToIterator(){return this}),lodash}();bo._=yr,(re=function(){return yr}.call(ne,ie,ne,te))===le||(te.exports=re)}.call(this)},6314:function(te,ne){var ie,re,le;!function(ce,de){"use strict";"object"==typeof te.exports?te.exports=de():(re=[],void 0===(le="function"==typeof(ie=de)?ie.apply(ne,re):ie)||(te.exports=le))}(0,(function(){"use strict";var te=Object.prototype.toString;function hasOwnProperty(te,ne){return null!=te&&Object.prototype.hasOwnProperty.call(te,ne)}function isEmpty(te){if(!te)return!0;if(ne(te)&&0===te.length)return!0;if("string"!=typeof te){for(var ie in te)if(hasOwnProperty(te,ie))return!1;return!0}return!1}function toString(ne){return te.call(ne)}var ne=Array.isArray||function(ne){return"[object Array]"===te.call(ne)};function getKey(te){var ne=parseInt(te);return ne.toString()===te?ne:te}function factory(te){var ie,re,objectPath=function(te){return Object.keys(objectPath).reduce((function(ne,ie){return"create"===ie||"function"==typeof objectPath[ie]&&(ne[ie]=objectPath[ie].bind(objectPath,te)),ne}),{})};function getShallowProperty(te,ne){if(ie(te,ne))return te[ne]}function set(te,ne,ie,le){if("number"==typeof ne&&(ne=[ne]),!ne||0===ne.length)return te;if("string"==typeof ne)return set(te,ne.split(".").map(getKey),ie,le);var ce=ne[0],de=re(te,ce);return 1===ne.length?(void 0!==de&&le||(te[ce]=ie),de):(void 0===de&&("number"==typeof ne[1]?te[ce]=[]:te[ce]={}),set(te[ce],ne.slice(1),ie,le))}return ie=(te=te||{}).includeInheritedProps?function(){return!0}:function(te,ne){return"number"==typeof ne&&Array.isArray(te)||hasOwnProperty(te,ne)},re=te.includeInheritedProps?function(te,ne){"string"!=typeof ne&&"number"!=typeof ne&&(ne=String(ne));var ie=getShallowProperty(te,ne);if("__proto__"===ne||"prototype"===ne||"constructor"===ne&&"function"==typeof ie)throw new Error("For security reasons, object's magic properties cannot be set");return ie}:function(te,ne){return getShallowProperty(te,ne)},objectPath.has=function(ie,re){if("number"==typeof re?re=[re]:"string"==typeof re&&(re=re.split(".")),!re||0===re.length)return!!ie;for(var le=0;le<re.length;le++){var ce=getKey(re[le]);if(!("number"==typeof ce&&ne(ie)&&ce<ie.length||(te.includeInheritedProps?ce in Object(ie):hasOwnProperty(ie,ce))))return!1;ie=ie[ce]}return!0},objectPath.ensureExists=function(te,ne,ie){return set(te,ne,ie,!0)},objectPath.set=function(te,ne,ie,re){return set(te,ne,ie,re)},objectPath.insert=function(te,ie,re,le){var ce=objectPath.get(te,ie);le=~~le,ne(ce)||(ce=[],objectPath.set(te,ie,ce)),ce.splice(le,0,re)},objectPath.empty=function(te,re){var le,ce;if(!isEmpty(re)&&(null!=te&&(le=objectPath.get(te,re)))){if("string"==typeof le)return objectPath.set(te,re,"");if(function isBoolean(te){return"boolean"==typeof te||"[object Boolean]"===toString(te)}(le))return objectPath.set(te,re,!1);if("number"==typeof le)return objectPath.set(te,re,0);if(ne(le))le.length=0;else{if(!function isObject(te){return"object"==typeof te&&"[object Object]"===toString(te)}(le))return objectPath.set(te,re,null);for(ce in le)ie(le,ce)&&delete le[ce]}}},objectPath.push=function(te,ie){var re=objectPath.get(te,ie);ne(re)||(re=[],objectPath.set(te,ie,re)),re.push.apply(re,Array.prototype.slice.call(arguments,2))},objectPath.coalesce=function(te,ne,ie){for(var re,le=0,ce=ne.length;le<ce;le++)if(void 0!==(re=objectPath.get(te,ne[le])))return re;return ie},objectPath.get=function(te,ne,ie){if("number"==typeof ne&&(ne=[ne]),!ne||0===ne.length)return te;if(null==te)return ie;if("string"==typeof ne)return objectPath.get(te,ne.split("."),ie);var le=getKey(ne[0]),ce=re(te,le);return void 0===ce?ie:1===ne.length?ce:objectPath.get(te[le],ne.slice(1),ie)},objectPath.del=function del(te,le){if("number"==typeof le&&(le=[le]),null==te)return te;if(isEmpty(le))return te;if("string"==typeof le)return objectPath.del(te,le.split("."));var ce=getKey(le[0]);return re(te,ce),ie(te,ce)?1!==le.length?objectPath.del(te[ce],le.slice(1)):(ne(te)?te.splice(ce,1):delete te[ce],te):te},objectPath}var ie=factory();return ie.create=factory,ie.withInheritedProps=factory({includeInheritedProps:!0}),ie}))},1217:(te,ne,ie)=>{"use strict";ie.d(ne,{t:()=>BehaviorSubject});var re=ie(8447);class BehaviorSubject extends re.B{constructor(te){super(),this._value=te}get value(){return this.getValue()}_subscribe(te){const ne=super._subscribe(te);return!ne.closed&&te.next(this._value),ne}getValue(){const{hasError:te,thrownError:ne,_value:ie}=this;if(te)throw ne;return this._throwIfClosed(),ie}next(te){super.next(this._value=te)}}},1698:(te,ne,ie)=>{"use strict";ie.d(ne,{c:()=>fe});var re=ie(1540),le=ie(5710),ce=ie(2563),de=ie(6742),ue=ie(3305),me=ie(1126),ge=ie(4171);let fe=(()=>{class Observable{constructor(te){te&&(this._subscribe=te)}lift(te){const ne=new Observable;return ne.source=this,ne.operator=te,ne}subscribe(te,ne,ie){const ce=function isSubscriber(te){return te&&te instanceof re.vU||function isObserver(te){return te&&(0,me.T)(te.next)&&(0,me.T)(te.error)&&(0,me.T)(te.complete)}(te)&&(0,le.Uv)(te)}(te)?te:new re.Ms(te,ne,ie);return(0,ge.Y)((()=>{const{operator:te,source:ne}=this;ce.add(te?te.call(ce,ne):ne?this._subscribe(ce):this._trySubscribe(ce))})),ce}_trySubscribe(te){try{return this._subscribe(te)}catch(ne){te.error(ne)}}forEach(te,ne){return new(ne=getPromiseCtor(ne))(((ne,ie)=>{const le=new re.Ms({next:ne=>{try{te(ne)}catch(te){ie(te),le.unsubscribe()}},error:ie,complete:ne});this.subscribe(le)}))}_subscribe(te){var ne;return null===(ne=this.source)||void 0===ne?void 0:ne.subscribe(te)}[ce.s](){return this}pipe(...te){return(0,de.m)(te)(this)}toPromise(te){return new(te=getPromiseCtor(te))(((te,ne)=>{let ie;this.subscribe((te=>ie=te),(te=>ne(te)),(()=>te(ie)))}))}}return Observable.create=te=>new Observable(te),Observable})();function getPromiseCtor(te){var ne;return null!==(ne=null!=te?te:ue.$.Promise)&&void 0!==ne?ne:Promise}},8447:(te,ne,ie)=>{"use strict";ie.d(ne,{B:()=>me});var re=ie(1698),le=ie(5710);const ce=(0,ie(5644).L)((te=>function ObjectUnsubscribedErrorImpl(){te(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}));var de=ie(5891),ue=ie(4171);let me=(()=>{class Subject extends re.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(te){const ne=new AnonymousSubject(this,this);return ne.operator=te,ne}_throwIfClosed(){if(this.closed)throw new ce}next(te){(0,ue.Y)((()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(te)}}))}error(te){(0,ue.Y)((()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=te;const{observers:ne}=this;for(;ne.length;)ne.shift().error(te)}}))}complete(){(0,ue.Y)((()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:te}=this;for(;te.length;)te.shift().complete()}}))}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var te;return(null===(te=this.observers)||void 0===te?void 0:te.length)>0}_trySubscribe(te){return this._throwIfClosed(),super._trySubscribe(te)}_subscribe(te){return this._throwIfClosed(),this._checkFinalizedStatuses(te),this._innerSubscribe(te)}_innerSubscribe(te){const{hasError:ne,isStopped:ie,observers:re}=this;return ne||ie?le.Kn:(this.currentObservers=null,re.push(te),new le.yU((()=>{this.currentObservers=null,(0,de.o)(re,te)})))}_checkFinalizedStatuses(te){const{hasError:ne,thrownError:ie,isStopped:re}=this;ne?te.error(ie):re&&te.complete()}asObservable(){const te=new re.c;return te.source=this,te}}return Subject.create=(te,ne)=>new AnonymousSubject(te,ne),Subject})();class AnonymousSubject extends me{constructor(te,ne){super(),this.destination=te,this.source=ne}next(te){var ne,ie;null===(ie=null===(ne=this.destination)||void 0===ne?void 0:ne.next)||void 0===ie||ie.call(ne,te)}error(te){var ne,ie;null===(ie=null===(ne=this.destination)||void 0===ne?void 0:ne.error)||void 0===ie||ie.call(ne,te)}complete(){var te,ne;null===(ne=null===(te=this.destination)||void 0===te?void 0:te.complete)||void 0===ne||ne.call(te)}_subscribe(te){var ne,ie;return null!==(ie=null===(ne=this.source)||void 0===ne?void 0:ne.subscribe(te))&&void 0!==ie?ie:le.Kn}}},1540:(te,ne,ie)=>{"use strict";ie.d(ne,{Ms:()=>SafeSubscriber,vU:()=>Subscriber});var re=ie(1126),le=ie(5710),ce=ie(3305),de=ie(191),ue=ie(850);const me=createNotification("C",void 0,void 0);function createNotification(te,ne,ie){return{kind:te,value:ne,error:ie}}var ge=ie(3695),fe=ie(4171);class Subscriber extends le.yU{constructor(te){super(),this.isStopped=!1,te?(this.destination=te,(0,le.Uv)(te)&&te.add(this)):this.destination=be}static create(te,ne,ie){return new SafeSubscriber(te,ne,ie)}next(te){this.isStopped?handleStoppedNotification(function nextNotification(te){return createNotification("N",te,void 0)}(te),this):this._next(te)}error(te){this.isStopped?handleStoppedNotification(function errorNotification(te){return createNotification("E",void 0,te)}(te),this):(this.isStopped=!0,this._error(te))}complete(){this.isStopped?handleStoppedNotification(me,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(te){this.destination.next(te)}_error(te){try{this.destination.error(te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const _e=Function.prototype.bind;function bind(te,ne){return _e.call(te,ne)}class ConsumerObserver{constructor(te){this.partialObserver=te}next(te){const{partialObserver:ne}=this;if(ne.next)try{ne.next(te)}catch(te){handleUnhandledError(te)}}error(te){const{partialObserver:ne}=this;if(ne.error)try{ne.error(te)}catch(te){handleUnhandledError(te)}else handleUnhandledError(te)}complete(){const{partialObserver:te}=this;if(te.complete)try{te.complete()}catch(te){handleUnhandledError(te)}}}class SafeSubscriber extends Subscriber{constructor(te,ne,ie){let le;if(super(),(0,re.T)(te)||!te)le={next:null!=te?te:void 0,error:null!=ne?ne:void 0,complete:null!=ie?ie:void 0};else{let ne;this&&ce.$.useDeprecatedNextContext?(ne=Object.create(te),ne.unsubscribe=()=>this.unsubscribe(),le={next:te.next&&bind(te.next,ne),error:te.error&&bind(te.error,ne),complete:te.complete&&bind(te.complete,ne)}):le=te}this.destination=new ConsumerObserver(le)}}function handleUnhandledError(te){ce.$.useDeprecatedSynchronousErrorHandling?(0,fe.l)(te):(0,de.m)(te)}function handleStoppedNotification(te,ne){const{onStoppedNotification:ie}=ce.$;ie&&ge.f.setTimeout((()=>ie(te,ne)))}const be={closed:!0,next:ue.l,error:function defaultErrorHandler(te){throw te},complete:ue.l}},5710:(te,ne,ie)=>{"use strict";ie.d(ne,{Kn:()=>de,yU:()=>Subscription,Uv:()=>isSubscription});var re=ie(1126);const le=(0,ie(5644).L)((te=>function UnsubscriptionErrorImpl(ne){te(this),this.message=ne?`${ne.length} errors occurred during unsubscription:\n${ne.map(((te,ne)=>`${ne+1}) ${te.toString()}`)).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=ne}));var ce=ie(5891);class Subscription{constructor(te){this.initialTeardown=te,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let te;if(!this.closed){this.closed=!0;const{_parentage:ne}=this;if(ne)if(this._parentage=null,Array.isArray(ne))for(const te of ne)te.remove(this);else ne.remove(this);const{initialTeardown:ie}=this;if((0,re.T)(ie))try{ie()}catch(ne){te=ne instanceof le?ne.errors:[ne]}const{_finalizers:ce}=this;if(ce){this._finalizers=null;for(const ne of ce)try{execFinalizer(ne)}catch(ne){te=null!=te?te:[],ne instanceof le?te=[...te,...ne.errors]:te.push(ne)}}if(te)throw new le(te)}}add(te){var ne;if(te&&te!==this)if(this.closed)execFinalizer(te);else{if(te instanceof Subscription){if(te.closed||te._hasParent(this))return;te._addParent(this)}(this._finalizers=null!==(ne=this._finalizers)&&void 0!==ne?ne:[]).push(te)}}_hasParent(te){const{_parentage:ne}=this;return ne===te||Array.isArray(ne)&&ne.includes(te)}_addParent(te){const{_parentage:ne}=this;this._parentage=Array.isArray(ne)?(ne.push(te),ne):ne?[ne,te]:te}_removeParent(te){const{_parentage:ne}=this;ne===te?this._parentage=null:Array.isArray(ne)&&(0,ce.o)(ne,te)}remove(te){const{_finalizers:ne}=this;ne&&(0,ce.o)(ne,te),te instanceof Subscription&&te._removeParent(this)}}Subscription.EMPTY=(()=>{const te=new Subscription;return te.closed=!0,te})();const de=Subscription.EMPTY;function isSubscription(te){return te instanceof Subscription||te&&"closed"in te&&(0,re.T)(te.remove)&&(0,re.T)(te.add)&&(0,re.T)(te.unsubscribe)}function execFinalizer(te){(0,re.T)(te)?te():te.unsubscribe()}},3305:(te,ne,ie)=>{"use strict";ie.d(ne,{$:()=>re});const re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},7184:(te,ne,ie)=>{"use strict";ie.d(ne,{_:()=>firstValueFrom});var re=ie(8747),le=ie(1540);function firstValueFrom(te,ne){const ie="object"==typeof ne;return new Promise(((ce,de)=>{const ue=new le.Ms({next:te=>{ce(te),ue.unsubscribe()},error:de,complete:()=>{ie?ce(ne.defaultValue):de(new re.G)}});te.subscribe(ue)}))}},6627:(te,ne,ie)=>{"use strict";ie.d(ne,{z:()=>combineLatest});var re=ie(1698),le=ie(3740),ce=ie(1787),de=ie(9220),ue=ie(3759),me=ie(4327),ge=ie(9321),fe=ie(2483),_e=ie(8266);function combineLatest(...te){const ne=(0,me.lI)(te),ie=(0,me.ms)(te),{args:_e,keys:be}=(0,le.D)(te);if(0===_e.length)return(0,ce.H)([],ne);const Ce=new re.c(function combineLatestInit(te,ne,ie=de.D){return re=>{maybeSchedule(ne,(()=>{const{length:le}=te,de=new Array(le);let ue=le,me=le;for(let ge=0;ge<le;ge++)maybeSchedule(ne,(()=>{const le=(0,ce.H)(te[ge],ne);let _e=!1;le.subscribe((0,fe._)(re,(te=>{de[ge]=te,_e||(_e=!0,me--),me||re.next(ie(de.slice()))}),(()=>{--ue||re.complete()})))}),re)}),re)}}(_e,ne,be?te=>(0,ge.e)(be,te):de.D));return ie?Ce.pipe((0,ue.I)(ie)):Ce}function maybeSchedule(te,ne,ie){te?(0,_e.N)(ie,te,ne):ne()}},3569:(te,ne,ie)=>{"use strict";ie.d(ne,{x:()=>concat});var re=ie(1890);var le=ie(4327),ce=ie(1787);function concat(...te){return function concatAll(){return(0,re.U)(1)}()((0,ce.H)(te,(0,le.lI)(te)))}},6381:(te,ne,ie)=>{"use strict";ie.d(ne,{v:()=>defer});var re=ie(1698),le=ie(7225);function defer(te){return new re.c((ne=>{(0,le.Tg)(te()).subscribe(ne)}))}},6564:(te,ne,ie)=>{"use strict";ie.d(ne,{w:()=>re});const re=new(ie(1698).c)((te=>te.complete()))},2653:(te,ne,ie)=>{"use strict";ie.d(ne,{p:()=>forkJoin});var re=ie(1698),le=ie(3740),ce=ie(7225),de=ie(4327),ue=ie(2483),me=ie(3759),ge=ie(9321);function forkJoin(...te){const ne=(0,de.ms)(te),{args:ie,keys:fe}=(0,le.D)(te),_e=new re.c((te=>{const{length:ne}=ie;if(!ne)return void te.complete();const re=new Array(ne);let le=ne,de=ne;for(let me=0;me<ne;me++){let ne=!1;(0,ce.Tg)(ie[me]).subscribe((0,ue._)(te,(te=>{ne||(ne=!0,de--),re[me]=te}),(()=>le--),void 0,(()=>{le&&ne||(de||te.next(fe?(0,ge.e)(fe,re):re),te.complete())})))}}));return ne?_e.pipe((0,me.I)(ne)):_e}},1787:(te,ne,ie)=>{"use strict";ie.d(ne,{H:()=>from});var re=ie(7225),le=ie(8266),ce=ie(5351),de=ie(2483);function observeOn(te,ne=0){return(0,ce.N)(((ie,re)=>{ie.subscribe((0,de._)(re,(ie=>(0,le.N)(re,te,(()=>re.next(ie)),ne)),(()=>(0,le.N)(re,te,(()=>re.complete()),ne)),(ie=>(0,le.N)(re,te,(()=>re.error(ie)),ne))))}))}function subscribeOn(te,ne=0){return(0,ce.N)(((ie,re)=>{re.add(te.schedule((()=>ie.subscribe(re)),ne))}))}var ue=ie(1698);var me=ie(6952),ge=ie(1126);function scheduleAsyncIterable(te,ne){if(!te)throw new Error("Iterable cannot be null");return new ue.c((ie=>{(0,le.N)(ie,ne,(()=>{const re=te[Symbol.asyncIterator]();(0,le.N)(ie,ne,(()=>{re.next().then((te=>{te.done?ie.complete():ie.next(te.value)}))}),0,!0)}))}))}var fe=ie(6600),_e=ie(6505),be=ie(6786),Ce=ie(4876),ye=ie(8394),we=ie(8810),ke=ie(3173);function scheduled(te,ne){if(null!=te){if((0,fe.l)(te))return function scheduleObservable(te,ne){return(0,re.Tg)(te).pipe(subscribeOn(ne),observeOn(ne))}(te,ne);if((0,be.X)(te))return function scheduleArray(te,ne){return new ue.c((ie=>{let re=0;return ne.schedule((function(){re===te.length?ie.complete():(ie.next(te[re++]),ie.closed||this.schedule())}))}))}(te,ne);if((0,_e.y)(te))return function schedulePromise(te,ne){return(0,re.Tg)(te).pipe(subscribeOn(ne),observeOn(ne))}(te,ne);if((0,ye.T)(te))return scheduleAsyncIterable(te,ne);if((0,Ce.x)(te))return function scheduleIterable(te,ne){return new ue.c((ie=>{let re;return(0,le.N)(ie,ne,(()=>{re=te[me.l](),(0,le.N)(ie,ne,(()=>{let te,ne;try{({value:te,done:ne}=re.next())}catch(te){return void ie.error(te)}ne?ie.complete():ie.next(te)}),0,!0)})),()=>(0,ge.T)(null==re?void 0:re.return)&&re.return()}))}(te,ne);if((0,ke.U)(te))return function scheduleReadableStreamLike(te,ne){return scheduleAsyncIterable((0,ke.C)(te),ne)}(te,ne)}throw(0,we.L)(te)}function from(te,ne){return ne?scheduled(te,ne):(0,re.Tg)(te)}},7225:(te,ne,ie)=>{"use strict";ie.d(ne,{Tg:()=>innerFrom});var re=ie(1635),le=ie(6786),ce=ie(6505),de=ie(1698),ue=ie(6600),me=ie(8394),ge=ie(8810),fe=ie(4876),_e=ie(3173),be=ie(1126),Ce=ie(191),ye=ie(2563);function innerFrom(te){if(te instanceof de.c)return te;if(null!=te){if((0,ue.l)(te))return function fromInteropObservable(te){return new de.c((ne=>{const ie=te[ye.s]();if((0,be.T)(ie.subscribe))return ie.subscribe(ne);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}(te);if((0,le.X)(te))return function fromArrayLike(te){return new de.c((ne=>{for(let ie=0;ie<te.length&&!ne.closed;ie++)ne.next(te[ie]);ne.complete()}))}(te);if((0,ce.y)(te))return function fromPromise(te){return new de.c((ne=>{te.then((te=>{ne.closed||(ne.next(te),ne.complete())}),(te=>ne.error(te))).then(null,Ce.m)}))}(te);if((0,me.T)(te))return fromAsyncIterable(te);if((0,fe.x)(te))return function fromIterable(te){return new de.c((ne=>{for(const ie of te)if(ne.next(ie),ne.closed)return;ne.complete()}))}(te);if((0,_e.U)(te))return function fromReadableStreamLike(te){return fromAsyncIterable((0,_e.C)(te))}(te)}throw(0,ge.L)(te)}function fromAsyncIterable(te){return new de.c((ne=>{(function process(te,ne){var ie,le,ce,de;return(0,re.sH)(this,void 0,void 0,(function*(){try{for(ie=(0,re.xN)(te);!(le=yield ie.next()).done;){const te=le.value;if(ne.next(te),ne.closed)return}}catch(te){ce={error:te}}finally{try{le&&!le.done&&(de=ie.return)&&(yield de.call(ie))}finally{if(ce)throw ce.error}}ne.complete()}))})(te,ne).catch((te=>ne.error(te)))}))}},3016:(te,ne,ie)=>{"use strict";ie.d(ne,{of:()=>of});var re=ie(4327),le=ie(1787);function of(...te){const ne=(0,re.lI)(te);return(0,le.H)(te,ne)}},9587:(te,ne,ie)=>{"use strict";ie.d(ne,{O:()=>timer});var re=ie(1698),le=ie(9825),ce=ie(9921);function timer(te=0,ne,ie=le.b){let de=-1;return null!=ne&&((0,ce.m)(ne)?ie=ne:de=ne),new re.c((ne=>{let re=function isValidDate(te){return te instanceof Date&&!isNaN(te)}(te)?+te-ie.now():te;re<0&&(re=0);let le=0;return ie.schedule((function(){ne.closed||(ne.next(le++),0<=de?this.schedule(void 0,de):ne.complete())}),re)}))}},2483:(te,ne,ie)=>{"use strict";ie.d(ne,{_:()=>createOperatorSubscriber});var re=ie(1540);function createOperatorSubscriber(te,ne,ie,re,le){return new OperatorSubscriber(te,ne,ie,re,le)}class OperatorSubscriber extends re.vU{constructor(te,ne,ie,re,le,ce){super(te),this.onFinalize=le,this.shouldUnsubscribe=ce,this._next=ne?function(ie){try{ne(ie)}catch(ne){te.error(ne)}}:super._next,this._error=re?function(ne){try{re(ne)}catch(ne){te.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=ie?function(){try{ie()}catch(ne){te.error(ne)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var te;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ne}=this;super.unsubscribe(),!ne&&(null===(te=this.onFinalize)||void 0===te||te.call(this))}}}},7178:(te,ne,ie)=>{"use strict";ie.d(ne,{W:()=>catchError});var re=ie(7225),le=ie(2483),ce=ie(5351);function catchError(te){return(0,ce.N)(((ne,ie)=>{let ce,de=null,ue=!1;de=ne.subscribe((0,le._)(ie,void 0,void 0,(le=>{ce=(0,re.Tg)(te(le,catchError(te)(ne))),de?(de.unsubscribe(),de=null,ce.subscribe(ie)):ue=!0}))),ue&&(de.unsubscribe(),de=null,ce.subscribe(ie))}))}},1459:(te,ne,ie)=>{"use strict";ie.d(ne,{H:()=>concatMap});var re=ie(5823),le=ie(1126);function concatMap(te,ne){return(0,le.T)(ne)?(0,re.Z)(te,ne,1):(0,re.Z)(te,1)}},5670:(te,ne,ie)=>{"use strict";ie.d(ne,{U:()=>defaultIfEmpty});var re=ie(5351),le=ie(2483);function defaultIfEmpty(te){return(0,re.N)(((ne,ie)=>{let re=!1;ne.subscribe((0,le._)(ie,(te=>{re=!0,ie.next(te)}),(()=>{re||ie.next(te),ie.complete()})))}))}},1483:(te,ne,ie)=>{"use strict";ie.d(ne,{p:()=>filter});var re=ie(5351),le=ie(2483);function filter(te,ne){return(0,re.N)(((ie,re)=>{let ce=0;ie.subscribe((0,le._)(re,(ie=>te.call(ne,ie,ce++)&&re.next(ie))))}))}},4447:(te,ne,ie)=>{"use strict";ie.d(ne,{j:()=>finalize});var re=ie(5351);function finalize(te){return(0,re.N)(((ne,ie)=>{try{ne.subscribe(ie)}finally{ie.add(te)}}))}},1703:(te,ne,ie)=>{"use strict";ie.d(ne,{$:()=>first});var re=ie(8747),le=ie(1483),ce=ie(7610),de=ie(5670),ue=ie(5017),me=ie(9220);function first(te,ne){const ie=arguments.length>=2;return ge=>ge.pipe(te?(0,le.p)(((ne,ie)=>te(ne,ie,ge))):me.D,(0,ce.s)(1),ie?(0,de.U)(ne):(0,ue.v)((()=>new re.G)))}},7947:(te,ne,ie)=>{"use strict";ie.d(ne,{T:()=>map});var re=ie(5351),le=ie(2483);function map(te,ne){return(0,re.N)(((ie,re)=>{let ce=0;ie.subscribe((0,le._)(re,(ie=>{re.next(te.call(ne,ie,ce++))})))}))}},6590:(te,ne,ie)=>{"use strict";ie.d(ne,{u:()=>mapTo});var re=ie(7947);function mapTo(te){return(0,re.T)((()=>te))}},1890:(te,ne,ie)=>{"use strict";ie.d(ne,{U:()=>mergeAll});var re=ie(5823),le=ie(9220);function mergeAll(te=1/0){return(0,re.Z)(le.D,te)}},5823:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>mergeMap});var re=ie(7947),le=ie(7225),ce=ie(5351),de=ie(8266),ue=ie(2483);var me=ie(1126);function mergeMap(te,ne,ie=1/0){return(0,me.T)(ne)?mergeMap(((ie,ce)=>(0,re.T)(((te,re)=>ne(ie,te,ce,re)))((0,le.Tg)(te(ie,ce)))),ie):("number"==typeof ne&&(ie=ne),(0,ce.N)(((ne,re)=>function mergeInternals(te,ne,ie,re,ce,me,ge,fe){const _e=[];let be=0,Ce=0,ye=!1;const checkComplete=()=>{!ye||_e.length||be||ne.complete()},outerNext=te=>be<re?doInnerSub(te):_e.push(te),doInnerSub=te=>{me&&ne.next(te),be++;let fe=!1;(0,le.Tg)(ie(te,Ce++)).subscribe((0,ue._)(ne,(te=>{null==ce||ce(te),me?outerNext(te):ne.next(te)}),(()=>{fe=!0}),void 0,(()=>{if(fe)try{for(be--;_e.length&&be<re;){const te=_e.shift();ge?(0,de.N)(ne,ge,(()=>doInnerSub(te))):doInnerSub(te)}checkComplete()}catch(te){ne.error(te)}})))};return te.subscribe((0,ue._)(ne,outerNext,(()=>{ye=!0,checkComplete()}))),()=>{null==fe||fe()}}(ne,re,te,ie))))}},36:(te,ne,ie)=>{"use strict";ie.d(ne,{S:()=>scanInternals});var re=ie(2483);function scanInternals(te,ne,ie,le,ce){return(de,ue)=>{let me=ie,ge=ne,fe=0;de.subscribe((0,re._)(ue,(ne=>{const ie=fe++;ge=me?te(ge,ne,ie):(me=!0,ne),le&&ue.next(ge)}),ce&&(()=>{me&&ue.next(ge),ue.complete()})))}}},593:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>startWith});var re=ie(3569),le=ie(4327),ce=ie(5351);function startWith(...te){const ne=(0,le.lI)(te);return(0,ce.N)(((ie,le)=>{(ne?(0,re.x)(te,ie,ne):(0,re.x)(te,ie)).subscribe(le)}))}},2867:(te,ne,ie)=>{"use strict";ie.d(ne,{n:()=>switchMap});var re=ie(7225),le=ie(5351),ce=ie(2483);function switchMap(te,ne){return(0,le.N)(((ie,le)=>{let de=null,ue=0,me=!1;const checkComplete=()=>me&&!de&&le.complete();ie.subscribe((0,ce._)(le,(ie=>{null==de||de.unsubscribe();let me=0;const ge=ue++;(0,re.Tg)(te(ie,ge)).subscribe(de=(0,ce._)(le,(te=>le.next(ne?ne(ie,te,ge,me++):te)),(()=>{de=null,checkComplete()})))}),(()=>{me=!0,checkComplete()})))}))}},7610:(te,ne,ie)=>{"use strict";ie.d(ne,{s:()=>take});var re=ie(6564),le=ie(5351),ce=ie(2483);function take(te){return te<=0?()=>re.w:(0,le.N)(((ne,ie)=>{let re=0;ne.subscribe((0,ce._)(ie,(ne=>{++re<=te&&(ie.next(ne),te<=re&&ie.complete())})))}))}},5424:(te,ne,ie)=>{"use strict";ie.d(ne,{Q:()=>takeUntil});var re=ie(5351),le=ie(2483),ce=ie(7225),de=ie(850);function takeUntil(te){return(0,re.N)(((ne,ie)=>{(0,ce.Tg)(te).subscribe((0,le._)(ie,(()=>ie.complete()),de.l)),!ie.closed&&ne.subscribe(ie)}))}},2040:(te,ne,ie)=>{"use strict";ie.d(ne,{M:()=>tap});var re=ie(1126),le=ie(5351),ce=ie(2483),de=ie(9220);function tap(te,ne,ie){const ue=(0,re.T)(te)||ne||ie?{next:te,error:ne,complete:ie}:te;return ue?(0,le.N)(((te,ne)=>{var ie;null===(ie=ue.subscribe)||void 0===ie||ie.call(ue);let re=!0;te.subscribe((0,ce._)(ne,(te=>{var ie;null===(ie=ue.next)||void 0===ie||ie.call(ue,te),ne.next(te)}),(()=>{var te;re=!1,null===(te=ue.complete)||void 0===te||te.call(ue),ne.complete()}),(te=>{var ie;re=!1,null===(ie=ue.error)||void 0===ie||ie.call(ue,te),ne.error(te)}),(()=>{var te,ne;re&&(null===(te=ue.unsubscribe)||void 0===te||te.call(ue)),null===(ne=ue.finalize)||void 0===ne||ne.call(ue)})))})):de.D}},5017:(te,ne,ie)=>{"use strict";ie.d(ne,{v:()=>throwIfEmpty});var re=ie(8747),le=ie(5351),ce=ie(2483);function throwIfEmpty(te=defaultErrorFactory){return(0,le.N)(((ne,ie)=>{let re=!1;ne.subscribe((0,ce._)(ie,(te=>{re=!0,ie.next(te)}),(()=>re?ie.complete():ie.error(te()))))}))}function defaultErrorFactory(){return new re.G}},9825:(te,ne,ie)=>{"use strict";ie.d(ne,{b:()=>me,E:()=>ue});var re=ie(5710);class Action extends re.yU{constructor(te,ne){super()}schedule(te,ne=0){return this}}const le={setInterval(te,ne,...ie){const{delegate:re}=le;return(null==re?void 0:re.setInterval)?re.setInterval(te,ne,...ie):setInterval(te,ne,...ie)},clearInterval(te){const{delegate:ne}=le;return((null==ne?void 0:ne.clearInterval)||clearInterval)(te)},delegate:void 0};var ce=ie(5891);const de={now:()=>(de.delegate||Date).now(),delegate:void 0};class Scheduler{constructor(te,ne=Scheduler.now){this.schedulerActionCtor=te,this.now=ne}schedule(te,ne=0,ie){return new this.schedulerActionCtor(this,te).schedule(ie,ne)}}Scheduler.now=de.now;const ue=new class AsyncScheduler extends Scheduler{constructor(te,ne=Scheduler.now){super(te,ne),this.actions=[],this._active=!1}flush(te){const{actions:ne}=this;if(this._active)return void ne.push(te);let ie;this._active=!0;do{if(ie=te.execute(te.state,te.delay))break}while(te=ne.shift());if(this._active=!1,ie){for(;te=ne.shift();)te.unsubscribe();throw ie}}}(class AsyncAction extends Action{constructor(te,ne){super(te,ne),this.scheduler=te,this.work=ne,this.pending=!1}schedule(te,ne=0){var ie;if(this.closed)return this;this.state=te;const re=this.id,le=this.scheduler;return null!=re&&(this.id=this.recycleAsyncId(le,re,ne)),this.pending=!0,this.delay=ne,this.id=null!==(ie=this.id)&&void 0!==ie?ie:this.requestAsyncId(le,this.id,ne),this}requestAsyncId(te,ne,ie=0){return le.setInterval(te.flush.bind(te,this),ie)}recycleAsyncId(te,ne,ie=0){if(null!=ie&&this.delay===ie&&!1===this.pending)return ne;null!=ne&&le.clearInterval(ne)}execute(te,ne){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ie=this._execute(te,ne);if(ie)return ie;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(te,ne){let ie,re=!1;try{this.work(te)}catch(te){re=!0,ie=te||new Error("Scheduled action threw falsy error")}if(re)return this.unsubscribe(),ie}unsubscribe(){if(!this.closed){const{id:te,scheduler:ne}=this,{actions:ie}=ne;this.work=this.state=this.scheduler=null,this.pending=!1,(0,ce.o)(ie,this),null!=te&&(this.id=this.recycleAsyncId(ne,te,null)),this.delay=null,super.unsubscribe()}}}),me=ue},3695:(te,ne,ie)=>{"use strict";ie.d(ne,{f:()=>re});const re={setTimeout(te,ne,...ie){const{delegate:le}=re;return(null==le?void 0:le.setTimeout)?le.setTimeout(te,ne,...ie):setTimeout(te,ne,...ie)},clearTimeout(te){const{delegate:ne}=re;return((null==ne?void 0:ne.clearTimeout)||clearTimeout)(te)},delegate:void 0}},6952:(te,ne,ie)=>{"use strict";ie.d(ne,{l:()=>re});const re=function getSymbolIterator(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},2563:(te,ne,ie)=>{"use strict";ie.d(ne,{s:()=>re});const re="function"==typeof Symbol&&Symbol.observable||"@@observable"},8747:(te,ne,ie)=>{"use strict";ie.d(ne,{G:()=>re});const re=(0,ie(5644).L)((te=>function EmptyErrorImpl(){te(this),this.name="EmptyError",this.message="no elements in sequence"}))},4327:(te,ne,ie)=>{"use strict";ie.d(ne,{lI:()=>popScheduler,ms:()=>popResultSelector});var re=ie(1126),le=ie(9921);function last(te){return te[te.length-1]}function popResultSelector(te){return(0,re.T)(last(te))?te.pop():void 0}function popScheduler(te){return(0,le.m)(last(te))?te.pop():void 0}},3740:(te,ne,ie)=>{"use strict";ie.d(ne,{D:()=>argsArgArrayOrObject});const{isArray:re}=Array,{getPrototypeOf:le,prototype:ce,keys:de}=Object;function argsArgArrayOrObject(te){if(1===te.length){const ne=te[0];if(re(ne))return{args:ne,keys:null};if(function isPOJO(te){return te&&"object"==typeof te&&le(te)===ce}(ne)){const te=de(ne);return{args:te.map((te=>ne[te])),keys:te}}}return{args:te,keys:null}}},5891:(te,ne,ie)=>{"use strict";function arrRemove(te,ne){if(te){const ie=te.indexOf(ne);0<=ie&&te.splice(ie,1)}}ie.d(ne,{o:()=>arrRemove})},5644:(te,ne,ie)=>{"use strict";function createErrorClass(te){const ne=te((te=>{Error.call(te),te.stack=(new Error).stack}));return ne.prototype=Object.create(Error.prototype),ne.prototype.constructor=ne,ne}ie.d(ne,{L:()=>createErrorClass})},9321:(te,ne,ie)=>{"use strict";function createObject(te,ne){return te.reduce(((te,ie,re)=>(te[ie]=ne[re],te)),{})}ie.d(ne,{e:()=>createObject})},4171:(te,ne,ie)=>{"use strict";ie.d(ne,{Y:()=>errorContext,l:()=>captureError});var re=ie(3305);let le=null;function errorContext(te){if(re.$.useDeprecatedSynchronousErrorHandling){const ne=!le;if(ne&&(le={errorThrown:!1,error:null}),te(),ne){const{errorThrown:te,error:ne}=le;if(le=null,te)throw ne}}else te()}function captureError(te){re.$.useDeprecatedSynchronousErrorHandling&&le&&(le.errorThrown=!0,le.error=te)}},8266:(te,ne,ie)=>{"use strict";function executeSchedule(te,ne,ie,re=0,le=!1){const ce=ne.schedule((function(){ie(),le?te.add(this.schedule(null,re)):this.unsubscribe()}),re);if(te.add(ce),!le)return ce}ie.d(ne,{N:()=>executeSchedule})},9220:(te,ne,ie)=>{"use strict";function identity(te){return te}ie.d(ne,{D:()=>identity})},6786:(te,ne,ie)=>{"use strict";ie.d(ne,{X:()=>isArrayLike});const isArrayLike=te=>te&&"number"==typeof te.length&&"function"!=typeof te},8394:(te,ne,ie)=>{"use strict";ie.d(ne,{T:()=>isAsyncIterable});var re=ie(1126);function isAsyncIterable(te){return Symbol.asyncIterator&&(0,re.T)(null==te?void 0:te[Symbol.asyncIterator])}},1126:(te,ne,ie)=>{"use strict";function isFunction(te){return"function"==typeof te}ie.d(ne,{T:()=>isFunction})},6600:(te,ne,ie)=>{"use strict";ie.d(ne,{l:()=>isInteropObservable});var re=ie(2563),le=ie(1126);function isInteropObservable(te){return(0,le.T)(te[re.s])}},4876:(te,ne,ie)=>{"use strict";ie.d(ne,{x:()=>isIterable});var re=ie(6952),le=ie(1126);function isIterable(te){return(0,le.T)(null==te?void 0:te[re.l])}},6505:(te,ne,ie)=>{"use strict";ie.d(ne,{y:()=>isPromise});var re=ie(1126);function isPromise(te){return(0,re.T)(null==te?void 0:te.then)}},3173:(te,ne,ie)=>{"use strict";ie.d(ne,{C:()=>readableStreamLikeToAsyncGenerator,U:()=>isReadableStreamLike});var re=ie(1635),le=ie(1126);function readableStreamLikeToAsyncGenerator(te){return(0,re.AQ)(this,arguments,(function*readableStreamLikeToAsyncGenerator_1(){const ne=te.getReader();try{for(;;){const{value:te,done:ie}=yield(0,re.N3)(ne.read());if(ie)return yield(0,re.N3)(void 0);yield yield(0,re.N3)(te)}}finally{ne.releaseLock()}}))}function isReadableStreamLike(te){return(0,le.T)(null==te?void 0:te.getReader)}},9921:(te,ne,ie)=>{"use strict";ie.d(ne,{m:()=>isScheduler});var re=ie(1126);function isScheduler(te){return te&&(0,re.T)(te.schedule)}},5351:(te,ne,ie)=>{"use strict";ie.d(ne,{N:()=>operate,S:()=>hasLift});var re=ie(1126);function hasLift(te){return(0,re.T)(null==te?void 0:te.lift)}function operate(te){return ne=>{if(hasLift(ne))return ne.lift((function(ne){try{return te(ne,this)}catch(te){this.error(te)}}));throw new TypeError("Unable to lift unknown Observable type")}}},3759:(te,ne,ie)=>{"use strict";ie.d(ne,{I:()=>mapOneOrManyArgs});var re=ie(7947);const{isArray:le}=Array;function mapOneOrManyArgs(te){return(0,re.T)((ne=>function callOrApply(te,ne){return le(ne)?te(...ne):te(ne)}(te,ne)))}},850:(te,ne,ie)=>{"use strict";function noop(){}ie.d(ne,{l:()=>noop})},6742:(te,ne,ie)=>{"use strict";ie.d(ne,{F:()=>pipe,m:()=>pipeFromArray});var re=ie(9220);function pipe(...te){return pipeFromArray(te)}function pipeFromArray(te){return 0===te.length?re.D:1===te.length?te[0]:function piped(ne){return te.reduce(((te,ne)=>ne(te)),ne)}}},191:(te,ne,ie)=>{"use strict";ie.d(ne,{m:()=>reportUnhandledError});var re=ie(3305),le=ie(3695);function reportUnhandledError(te){le.f.setTimeout((()=>{const{onUnhandledError:ne}=re.$;if(!ne)throw te;ne(te)}))}},8810:(te,ne,ie)=>{"use strict";function createInvalidObservableTypeError(te){return new TypeError(`You provided ${null!==te&&"object"==typeof te?"an invalid object":`'${te}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}ie.d(ne,{L:()=>createInvalidObservableTypeError})},4320:(te,ne,ie)=>{"use strict";ie.d(ne,{A:()=>ue});const re={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let le;const ce=new Uint8Array(16);function rng(){if(!le&&(le="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!le))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return le(ce)}const de=[];for(let te=0;te<256;++te)de.push((te+256).toString(16).slice(1));function unsafeStringify(te,ne=0){return de[te[ne+0]]+de[te[ne+1]]+de[te[ne+2]]+de[te[ne+3]]+"-"+de[te[ne+4]]+de[te[ne+5]]+"-"+de[te[ne+6]]+de[te[ne+7]]+"-"+de[te[ne+8]]+de[te[ne+9]]+"-"+de[te[ne+10]]+de[te[ne+11]]+de[te[ne+12]]+de[te[ne+13]]+de[te[ne+14]]+de[te[ne+15]]}const ue=function v4(te,ne,ie){if(re.randomUUID&&!ne&&!te)return re.randomUUID();const le=(te=te||{}).random||(te.rng||rng)();if(le[6]=15&le[6]|64,le[8]=63&le[8]|128,ne){ie=ie||0;for(let te=0;te<16;++te)ne[ie+te]=le[te];return ne}return unsafeStringify(le)}},1204:(te,ne,ie)=>{"use strict";ie.d(ne,{FX:()=>ce,If:()=>re,K2:()=>sequence,MA:()=>animateChild,P:()=>query,hZ:()=>trigger,i0:()=>animate,iF:()=>style,kY:()=>transition,kp:()=>le,lY:()=>animation,sM:()=>useAnimation,sf:()=>NoopAnimationPlayer,ui:()=>AnimationGroupPlayer,wk:()=>state});var re=function(te){return te[te.State=0]="State",te[te.Transition=1]="Transition",te[te.Sequence=2]="Sequence",te[te.Group=3]="Group",te[te.Animate=4]="Animate",te[te.Keyframes=5]="Keyframes",te[te.Style=6]="Style",te[te.Trigger=7]="Trigger",te[te.Reference=8]="Reference",te[te.AnimateChild=9]="AnimateChild",te[te.AnimateRef=10]="AnimateRef",te[te.Query=11]="Query",te[te.Stagger=12]="Stagger",te}(re||{});const le="*";function trigger(te,ne){return{type:re.Trigger,name:te,definitions:ne,options:{}}}function animate(te,ne=null){return{type:re.Animate,styles:ne,timings:te}}function sequence(te,ne=null){return{type:re.Sequence,steps:te,options:ne}}function style(te){return{type:re.Style,styles:te,offset:null}}function state(te,ne,ie){return{type:re.State,name:te,styles:ne,options:ie}}function transition(te,ne,ie=null){return{type:re.Transition,expr:te,animation:ne,options:ie}}function animation(te,ne=null){return{type:re.Reference,animation:te,options:ne}}function animateChild(te=null){return{type:re.AnimateChild,options:te}}function useAnimation(te,ne=null){return{type:re.AnimateRef,animation:te,options:ne}}function query(te,ne,ie=null){return{type:re.Query,selector:te,animation:ne,options:ie}}class NoopAnimationPlayer{constructor(te=0,ne=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=te+ne}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((te=>te())),this._onDoneFns=[])}onStart(te){this._originalOnStartFns.push(te),this._onStartFns.push(te)}onDone(te){this._originalOnDoneFns.push(te),this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((te=>te())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((te=>te())),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(te){this._position=this.totalTime?te*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(te){const ne="start"==te?this._onStartFns:this._onDoneFns;ne.forEach((te=>te())),ne.length=0}}class AnimationGroupPlayer{constructor(te){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=te;let ne=0,ie=0,re=0;const le=this.players.length;0==le?queueMicrotask((()=>this._onFinish())):this.players.forEach((te=>{te.onDone((()=>{++ne==le&&this._onFinish()})),te.onDestroy((()=>{++ie==le&&this._onDestroy()})),te.onStart((()=>{++re==le&&this._onStart()}))})),this.totalTime=this.players.reduce(((te,ne)=>Math.max(te,ne.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((te=>te())),this._onDoneFns=[])}init(){this.players.forEach((te=>te.init()))}onStart(te){this._onStartFns.push(te)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((te=>te())),this._onStartFns=[])}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((te=>te.play()))}pause(){this.players.forEach((te=>te.pause()))}restart(){this.players.forEach((te=>te.restart()))}finish(){this._onFinish(),this.players.forEach((te=>te.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((te=>te.destroy())),this._onDestroyFns.forEach((te=>te())),this._onDestroyFns=[])}reset(){this.players.forEach((te=>te.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(te){const ne=te*this.totalTime;this.players.forEach((te=>{const ie=te.totalTime?Math.min(1,ne/te.totalTime):1;te.setPosition(ie)}))}getPosition(){const te=this.players.reduce(((te,ne)=>null===te||ne.totalTime>te.totalTime?ne:te),null);return null!=te?te.getPosition():0}beforeDestroy(){this.players.forEach((te=>{te.beforeDestroy&&te.beforeDestroy()}))}triggerCallback(te){const ne="start"==te?this._onStartFns:this._onDoneFns;ne.forEach((te=>te())),ne.length=0}}const ce="!"},4460:(te,ne,ie)=>{"use strict";ie.d(ne,{AJ:()=>Yt,B3:()=>Dt,EO:()=>registerLocaleData,Jj:()=>Ot,MD:()=>$t,N0:()=>XhrFactory,OI:()=>Je,QT:()=>getDOM,QX:()=>Ut,Sm:()=>_e,Sq:()=>dt,T3:()=>Mt,UE:()=>isPlatformBrowser,VF:()=>DomAdapter,Vy:()=>isPlatformServer,Xr:()=>Kt,YU:()=>Qe,ZD:()=>setRootDomAdapter,_b:()=>parseCookieValue,aZ:()=>Ce,bT:()=>pt,e1:()=>vt,fG:()=>It,fw:()=>be,hb:()=>ge,hj:()=>ue,lG:()=>Ht,pM:()=>dt,qQ:()=>ce,ux:()=>Ct,vh:()=>zt});var re=ie(3107);let le=null;function getDOM(){return le}function setRootDomAdapter(te){le??=te}class DomAdapter{}const ce=new re.nKC("");let de=(()=>{class PlatformLocation{historyGo(te){throw new Error("")}static#e=this.ɵfac=function PlatformLocation_Factory(te){return new(te||PlatformLocation)};static#t=this.ɵprov=re.jDH({token:PlatformLocation,factory:()=>(0,re.WQX)(me),providedIn:"platform"})}return PlatformLocation})();const ue=new re.nKC("");let me=(()=>{class BrowserPlatformLocation extends de{constructor(){super(),this._doc=(0,re.WQX)(ce),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return getDOM().getBaseHref(this._doc)}onPopState(te){const ne=getDOM().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",te,!1),()=>ne.removeEventListener("popstate",te)}onHashChange(te){const ne=getDOM().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",te,!1),()=>ne.removeEventListener("hashchange",te)}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(te){this._location.pathname=te}pushState(te,ne,ie){this._history.pushState(te,ne,ie)}replaceState(te,ne,ie){this._history.replaceState(te,ne,ie)}forward(){this._history.forward()}back(){this._history.back()}historyGo(te=0){this._history.go(te)}getState(){return this._history.state}static#e=this.ɵfac=function BrowserPlatformLocation_Factory(te){return new(te||BrowserPlatformLocation)};static#t=this.ɵprov=re.jDH({token:BrowserPlatformLocation,factory:()=>new BrowserPlatformLocation,providedIn:"platform"})}return BrowserPlatformLocation})();function joinWithSlash(te,ne){if(0==te.length)return ne;if(0==ne.length)return te;let ie=0;return te.endsWith("/")&&ie++,ne.startsWith("/")&&ie++,2==ie?te+ne.substring(1):1==ie?te+ne:te+"/"+ne}function stripTrailingSlash(te){const ne=te.match(/#|\?|$/),ie=ne&&ne.index||te.length,re=ie-("/"===te[ie-1]?1:0);return te.slice(0,re)+te.slice(ie)}function normalizeQueryParams(te){return te&&"?"!==te[0]?"?"+te:te}let ge=(()=>{class LocationStrategy{historyGo(te){throw new Error("")}static#e=this.ɵfac=function LocationStrategy_Factory(te){return new(te||LocationStrategy)};static#t=this.ɵprov=re.jDH({token:LocationStrategy,factory:()=>(0,re.WQX)(_e),providedIn:"root"})}return LocationStrategy})();const fe=new re.nKC("");let _e=(()=>{class PathLocationStrategy extends ge{constructor(te,ne){super(),this._platformLocation=te,this._removeListenerFns=[],this._baseHref=ne??this._platformLocation.getBaseHrefFromDOM()??(0,re.WQX)(ce).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}prepareExternalUrl(te){return joinWithSlash(this._baseHref,te)}path(te=!1){const ne=this._platformLocation.pathname+normalizeQueryParams(this._platformLocation.search),ie=this._platformLocation.hash;return ie&&te?`${ne}${ie}`:ne}pushState(te,ne,ie,re){const le=this.prepareExternalUrl(ie+normalizeQueryParams(re));this._platformLocation.pushState(te,ne,le)}replaceState(te,ne,ie,re){const le=this.prepareExternalUrl(ie+normalizeQueryParams(re));this._platformLocation.replaceState(te,ne,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}static#e=this.ɵfac=function PathLocationStrategy_Factory(te){return new(te||PathLocationStrategy)(re.KVO(de),re.KVO(fe,8))};static#t=this.ɵprov=re.jDH({token:PathLocationStrategy,factory:PathLocationStrategy.ɵfac,providedIn:"root"})}return PathLocationStrategy})(),be=(()=>{class HashLocationStrategy extends ge{constructor(te,ne){super(),this._platformLocation=te,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}path(te=!1){const ne=this._platformLocation.hash??"#";return ne.length>0?ne.substring(1):ne}prepareExternalUrl(te){const ne=joinWithSlash(this._baseHref,te);return ne.length>0?"#"+ne:ne}pushState(te,ne,ie,re){let le=this.prepareExternalUrl(ie+normalizeQueryParams(re));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(te,ne,le)}replaceState(te,ne,ie,re){let le=this.prepareExternalUrl(ie+normalizeQueryParams(re));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(te,ne,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}static#e=this.ɵfac=function HashLocationStrategy_Factory(te){return new(te||HashLocationStrategy)(re.KVO(de),re.KVO(fe,8))};static#t=this.ɵprov=re.jDH({token:HashLocationStrategy,factory:HashLocationStrategy.ɵfac})}return HashLocationStrategy})(),Ce=(()=>{class Location{constructor(te){this._subject=new re.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=te;const ne=this._locationStrategy.getBaseHref();this._basePath=function _stripOrigin(te){const ne=new RegExp("^(https?:)?//").test(te);if(ne){const[,ne]=te.split(/\/\/[^\/]+/);return ne}return te}(stripTrailingSlash(_stripIndexHtml(ne))),this._locationStrategy.onPopState((te=>{this._subject.emit({url:this.path(!0),pop:!0,state:te.state,type:te.type})}))}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(te=!1){return this.normalize(this._locationStrategy.path(te))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(te,ne=""){return this.path()==this.normalize(te+normalizeQueryParams(ne))}normalize(te){return Location.stripTrailingSlash(function _stripBasePath(te,ne){if(!te||!ne.startsWith(te))return ne;const ie=ne.substring(te.length);if(""===ie||["/",";","?","#"].includes(ie[0]))return ie;return ne}(this._basePath,_stripIndexHtml(te)))}prepareExternalUrl(te){return te&&"/"!==te[0]&&(te="/"+te),this._locationStrategy.prepareExternalUrl(te)}go(te,ne="",ie=null){this._locationStrategy.pushState(ie,"",te,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+normalizeQueryParams(ne)),ie)}replaceState(te,ne="",ie=null){this._locationStrategy.replaceState(ie,"",te,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+normalizeQueryParams(ne)),ie)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(te=0){this._locationStrategy.historyGo?.(te)}onUrlChange(te){return this._urlChangeListeners.push(te),this._urlChangeSubscription??=this.subscribe((te=>{this._notifyUrlChangeListeners(te.url,te.state)})),()=>{const ne=this._urlChangeListeners.indexOf(te);this._urlChangeListeners.splice(ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(te="",ne){this._urlChangeListeners.forEach((ie=>ie(te,ne)))}subscribe(te,ne,ie){return this._subject.subscribe({next:te,error:ne,complete:ie})}static#e=this.normalizeQueryParams=normalizeQueryParams;static#t=this.joinWithSlash=joinWithSlash;static#n=this.stripTrailingSlash=stripTrailingSlash;static#i=this.ɵfac=function Location_Factory(te){return new(te||Location)(re.KVO(ge))};static#o=this.ɵprov=re.jDH({token:Location,factory:()=>createLocation(),providedIn:"root"})}return Location})();function createLocation(){return new Ce((0,re.KVO)(ge))}function _stripIndexHtml(te){return te.replace(/\/index.html$/,"")}var ye=function(te){return te[te.Decimal=0]="Decimal",te[te.Percent=1]="Percent",te[te.Currency=2]="Currency",te[te.Scientific=3]="Scientific",te}(ye||{}),we=function(te){return te[te.Format=0]="Format",te[te.Standalone=1]="Standalone",te}(we||{}),ke=function(te){return te[te.Narrow=0]="Narrow",te[te.Abbreviated=1]="Abbreviated",te[te.Wide=2]="Wide",te[te.Short=3]="Short",te}(ke||{}),Se=function(te){return te[te.Short=0]="Short",te[te.Medium=1]="Medium",te[te.Long=2]="Long",te[te.Full=3]="Full",te}(Se||{}),xe=function(te){return te[te.Decimal=0]="Decimal",te[te.Group=1]="Group",te[te.List=2]="List",te[te.PercentSign=3]="PercentSign",te[te.PlusSign=4]="PlusSign",te[te.MinusSign=5]="MinusSign",te[te.Exponential=6]="Exponential",te[te.SuperscriptingExponent=7]="SuperscriptingExponent",te[te.PerMille=8]="PerMille",te[te[1/0]=9]="Infinity",te[te.NaN=10]="NaN",te[te.TimeSeparator=11]="TimeSeparator",te[te.CurrencyDecimal=12]="CurrencyDecimal",te[te.CurrencyGroup=13]="CurrencyGroup",te}(xe||{});function getLocaleDateFormat(te,ne){return getLastDefinedValue((0,re.H5H)(te)[re.KH2.DateFormat],ne)}function getLocaleTimeFormat(te,ne){return getLastDefinedValue((0,re.H5H)(te)[re.KH2.TimeFormat],ne)}function getLocaleDateTimeFormat(te,ne){return getLastDefinedValue((0,re.H5H)(te)[re.KH2.DateTimeFormat],ne)}function getLocaleNumberSymbol(te,ne){const ie=(0,re.H5H)(te),le=ie[re.KH2.NumberSymbols][ne];if(void 0===le){if(ne===xe.CurrencyDecimal)return ie[re.KH2.NumberSymbols][xe.Decimal];if(ne===xe.CurrencyGroup)return ie[re.KH2.NumberSymbols][xe.Group]}return le}function getLocaleNumberFormat(te,ne){return(0,re.H5H)(te)[re.KH2.NumberFormats][ne]}re.mq5;function checkFullData(te){if(!te[re.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${te[re.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function getLastDefinedValue(te,ne){for(let ie=ne;ie>-1;ie--)if(void 0!==te[ie])return te[ie];throw new Error("Locale data API: locale data undefined")}function extractTime(te){const[ne,ie]=te.split(":");return{hours:+ne,minutes:+ie}}const Ee=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Me={},Ne=/((?:[^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 Re=function(te){return te[te.Short=0]="Short",te[te.ShortGMT=1]="ShortGMT",te[te.Long=2]="Long",te[te.Extended=3]="Extended",te}(Re||{}),Le=function(te){return te[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te}(Le||{}),Oe=function(te){return te[te.DayPeriods=0]="DayPeriods",te[te.Days=1]="Days",te[te.Months=2]="Months",te[te.Eras=3]="Eras",te}(Oe||{});function formatDate(te,ne,ie,re){let le=function toDate(te){if(isDate(te))return te;if("number"==typeof te&&!isNaN(te))return new Date(te);if("string"==typeof te){if(te=te.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(te)){const[ne,ie=1,re=1]=te.split("-").map((te=>+te));return createDate(ne,ie-1,re)}const ne=parseFloat(te);if(!isNaN(te-ne))return new Date(ne);let ie;if(ie=te.match(Ee))return function isoStringToDate(te){const ne=new Date(0);let ie=0,re=0;const le=te[8]?ne.setUTCFullYear:ne.setFullYear,ce=te[8]?ne.setUTCHours:ne.setHours;te[9]&&(ie=Number(te[9]+te[10]),re=Number(te[9]+te[11]));le.call(ne,Number(te[1]),Number(te[2])-1,Number(te[3]));const de=Number(te[4]||0)-ie,ue=Number(te[5]||0)-re,me=Number(te[6]||0),ge=Math.floor(1e3*parseFloat("0."+(te[7]||0)));return ce.call(ne,de,ue,me,ge),ne}(ie)}const ne=new Date(te);if(!isDate(ne))throw new Error(`Unable to convert "${te}" into a date`);return ne}(te);ne=getNamedFormat(ie,ne)||ne;let ce,de=[];for(;ne;){if(ce=Ne.exec(ne),!ce){de.push(ne);break}{de=de.concat(ce.slice(1));const te=de.pop();if(!te)break;ne=te}}let ue=le.getTimezoneOffset();re&&(ue=timezoneToOffset(re,ue),le=function convertTimezoneToLocal(te,ne,ie){const re=ie?-1:1,le=te.getTimezoneOffset(),ce=timezoneToOffset(ne,le);return function addDateMinutes(te,ne){return te=new Date(te.getTime()),te.setMinutes(te.getMinutes()+ne),te}(te,re*(ce-le))}(le,re,!0));let me="";return de.forEach((te=>{const ne=function getDateFormatter(te){if(je[te])return je[te];let ne;switch(te){case"G":case"GG":case"GGG":ne=dateStrGetter(Oe.Eras,ke.Abbreviated);break;case"GGGG":ne=dateStrGetter(Oe.Eras,ke.Wide);break;case"GGGGG":ne=dateStrGetter(Oe.Eras,ke.Narrow);break;case"y":ne=dateGetter(Le.FullYear,1,0,!1,!0);break;case"yy":ne=dateGetter(Le.FullYear,2,0,!0,!0);break;case"yyy":ne=dateGetter(Le.FullYear,3,0,!1,!0);break;case"yyyy":ne=dateGetter(Le.FullYear,4,0,!1,!0);break;case"Y":ne=weekNumberingYearGetter(1);break;case"YY":ne=weekNumberingYearGetter(2,!0);break;case"YYY":ne=weekNumberingYearGetter(3);break;case"YYYY":ne=weekNumberingYearGetter(4);break;case"M":case"L":ne=dateGetter(Le.Month,1,1);break;case"MM":case"LL":ne=dateGetter(Le.Month,2,1);break;case"MMM":ne=dateStrGetter(Oe.Months,ke.Abbreviated);break;case"MMMM":ne=dateStrGetter(Oe.Months,ke.Wide);break;case"MMMMM":ne=dateStrGetter(Oe.Months,ke.Narrow);break;case"LLL":ne=dateStrGetter(Oe.Months,ke.Abbreviated,we.Standalone);break;case"LLLL":ne=dateStrGetter(Oe.Months,ke.Wide,we.Standalone);break;case"LLLLL":ne=dateStrGetter(Oe.Months,ke.Narrow,we.Standalone);break;case"w":ne=weekGetter(1);break;case"ww":ne=weekGetter(2);break;case"W":ne=weekGetter(1,!0);break;case"d":ne=dateGetter(Le.Date,1);break;case"dd":ne=dateGetter(Le.Date,2);break;case"c":case"cc":ne=dateGetter(Le.Day,1);break;case"ccc":ne=dateStrGetter(Oe.Days,ke.Abbreviated,we.Standalone);break;case"cccc":ne=dateStrGetter(Oe.Days,ke.Wide,we.Standalone);break;case"ccccc":ne=dateStrGetter(Oe.Days,ke.Narrow,we.Standalone);break;case"cccccc":ne=dateStrGetter(Oe.Days,ke.Short,we.Standalone);break;case"E":case"EE":case"EEE":ne=dateStrGetter(Oe.Days,ke.Abbreviated);break;case"EEEE":ne=dateStrGetter(Oe.Days,ke.Wide);break;case"EEEEE":ne=dateStrGetter(Oe.Days,ke.Narrow);break;case"EEEEEE":ne=dateStrGetter(Oe.Days,ke.Short);break;case"a":case"aa":case"aaa":ne=dateStrGetter(Oe.DayPeriods,ke.Abbreviated);break;case"aaaa":ne=dateStrGetter(Oe.DayPeriods,ke.Wide);break;case"aaaaa":ne=dateStrGetter(Oe.DayPeriods,ke.Narrow);break;case"b":case"bb":case"bbb":ne=dateStrGetter(Oe.DayPeriods,ke.Abbreviated,we.Standalone,!0);break;case"bbbb":ne=dateStrGetter(Oe.DayPeriods,ke.Wide,we.Standalone,!0);break;case"bbbbb":ne=dateStrGetter(Oe.DayPeriods,ke.Narrow,we.Standalone,!0);break;case"B":case"BB":case"BBB":ne=dateStrGetter(Oe.DayPeriods,ke.Abbreviated,we.Format,!0);break;case"BBBB":ne=dateStrGetter(Oe.DayPeriods,ke.Wide,we.Format,!0);break;case"BBBBB":ne=dateStrGetter(Oe.DayPeriods,ke.Narrow,we.Format,!0);break;case"h":ne=dateGetter(Le.Hours,1,-12);break;case"hh":ne=dateGetter(Le.Hours,2,-12);break;case"H":ne=dateGetter(Le.Hours,1);break;case"HH":ne=dateGetter(Le.Hours,2);break;case"m":ne=dateGetter(Le.Minutes,1);break;case"mm":ne=dateGetter(Le.Minutes,2);break;case"s":ne=dateGetter(Le.Seconds,1);break;case"ss":ne=dateGetter(Le.Seconds,2);break;case"S":ne=dateGetter(Le.FractionalSeconds,1);break;case"SS":ne=dateGetter(Le.FractionalSeconds,2);break;case"SSS":ne=dateGetter(Le.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=timeZoneGetter(Re.Short);break;case"ZZZZZ":ne=timeZoneGetter(Re.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=timeZoneGetter(Re.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=timeZoneGetter(Re.Long);break;default:return null}return je[te]=ne,ne}(te);me+=ne?ne(le,ie,ue):"''"===te?"'":te.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),me}function createDate(te,ne,ie){const re=new Date(0);return re.setFullYear(te,ne,ie),re.setHours(0,0,0),re}function getNamedFormat(te,ne){const ie=function getLocaleId(te){return(0,re.H5H)(te)[re.KH2.LocaleId]}(te);if(Me[ie]??={},Me[ie][ne])return Me[ie][ne];let le="";switch(ne){case"shortDate":le=getLocaleDateFormat(te,Se.Short);break;case"mediumDate":le=getLocaleDateFormat(te,Se.Medium);break;case"longDate":le=getLocaleDateFormat(te,Se.Long);break;case"fullDate":le=getLocaleDateFormat(te,Se.Full);break;case"shortTime":le=getLocaleTimeFormat(te,Se.Short);break;case"mediumTime":le=getLocaleTimeFormat(te,Se.Medium);break;case"longTime":le=getLocaleTimeFormat(te,Se.Long);break;case"fullTime":le=getLocaleTimeFormat(te,Se.Full);break;case"short":const ne=getNamedFormat(te,"shortTime"),ie=getNamedFormat(te,"shortDate");le=formatDateTime(getLocaleDateTimeFormat(te,Se.Short),[ne,ie]);break;case"medium":const re=getNamedFormat(te,"mediumTime"),ce=getNamedFormat(te,"mediumDate");le=formatDateTime(getLocaleDateTimeFormat(te,Se.Medium),[re,ce]);break;case"long":const de=getNamedFormat(te,"longTime"),ue=getNamedFormat(te,"longDate");le=formatDateTime(getLocaleDateTimeFormat(te,Se.Long),[de,ue]);break;case"full":const me=getNamedFormat(te,"fullTime"),ge=getNamedFormat(te,"fullDate");le=formatDateTime(getLocaleDateTimeFormat(te,Se.Full),[me,ge])}return le&&(Me[ie][ne]=le),le}function formatDateTime(te,ne){return ne&&(te=te.replace(/\{([^}]+)}/g,(function(te,ie){return null!=ne&&ie in ne?ne[ie]:te}))),te}function padNumber(te,ne,ie="-",re,le){let ce="";(te<0||le&&te<=0)&&(le?te=1-te:(te=-te,ce=ie));let de=String(te);for(;de.length<ne;)de="0"+de;return re&&(de=de.slice(de.length-ne)),ce+de}function dateGetter(te,ne,ie=0,re=!1,le=!1){return function(ce,de){let ue=function getDatePart(te,ne){switch(te){case Le.FullYear:return ne.getFullYear();case Le.Month:return ne.getMonth();case Le.Date:return ne.getDate();case Le.Hours:return ne.getHours();case Le.Minutes:return ne.getMinutes();case Le.Seconds:return ne.getSeconds();case Le.FractionalSeconds:return ne.getMilliseconds();case Le.Day:return ne.getDay();default:throw new Error(`Unknown DateType value "${te}".`)}}(te,ce);if((ie>0||ue>-ie)&&(ue+=ie),te===Le.Hours)0===ue&&-12===ie&&(ue=12);else if(te===Le.FractionalSeconds)return function formatFractionalSeconds(te,ne){return padNumber(te,3).substring(0,ne)}(ue,ne);const me=getLocaleNumberSymbol(de,xe.MinusSign);return padNumber(ue,ne,me,re,le)}}function dateStrGetter(te,ne,ie=we.Format,le=!1){return function(ce,de){return function getDateTranslation(te,ne,ie,le,ce,de){switch(ie){case Oe.Months:return function getLocaleMonthNames(te,ne,ie){const le=(0,re.H5H)(te),ce=getLastDefinedValue([le[re.KH2.MonthsFormat],le[re.KH2.MonthsStandalone]],ne);return getLastDefinedValue(ce,ie)}(ne,ce,le)[te.getMonth()];case Oe.Days:return function getLocaleDayNames(te,ne,ie){const le=(0,re.H5H)(te),ce=getLastDefinedValue([le[re.KH2.DaysFormat],le[re.KH2.DaysStandalone]],ne);return getLastDefinedValue(ce,ie)}(ne,ce,le)[te.getDay()];case Oe.DayPeriods:const ue=te.getHours(),me=te.getMinutes();if(de){const te=function getLocaleExtraDayPeriodRules(te){const ne=(0,re.H5H)(te);return checkFullData(ne),(ne[re.KH2.ExtraData][2]||[]).map((te=>"string"==typeof te?extractTime(te):[extractTime(te[0]),extractTime(te[1])]))}(ne),ie=function getLocaleExtraDayPeriods(te,ne,ie){const le=(0,re.H5H)(te);checkFullData(le);const ce=getLastDefinedValue([le[re.KH2.ExtraData][0],le[re.KH2.ExtraData][1]],ne)||[];return getLastDefinedValue(ce,ie)||[]}(ne,ce,le),de=te.findIndex((te=>{if(Array.isArray(te)){const[ne,ie]=te,re=ue>=ne.hours&&me>=ne.minutes,le=ue<ie.hours||ue===ie.hours&&me<ie.minutes;if(ne.hours<ie.hours){if(re&&le)return!0}else if(re||le)return!0}else if(te.hours===ue&&te.minutes===me)return!0;return!1}));if(-1!==de)return ie[de]}return function getLocaleDayPeriods(te,ne,ie){const le=(0,re.H5H)(te),ce=getLastDefinedValue([le[re.KH2.DayPeriodsFormat],le[re.KH2.DayPeriodsStandalone]],ne);return getLastDefinedValue(ce,ie)}(ne,ce,le)[ue<12?0:1];case Oe.Eras:return function getLocaleEraNames(te,ne){return getLastDefinedValue((0,re.H5H)(te)[re.KH2.Eras],ne)}(ne,le)[te.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${ie}`)}}(ce,de,te,ne,ie,le)}}function timeZoneGetter(te){return function(ne,ie,re){const le=-1*re,ce=getLocaleNumberSymbol(ie,xe.MinusSign),de=le>0?Math.floor(le/60):Math.ceil(le/60);switch(te){case Re.Short:return(le>=0?"+":"")+padNumber(de,2,ce)+padNumber(Math.abs(le%60),2,ce);case Re.ShortGMT:return"GMT"+(le>=0?"+":"")+padNumber(de,1,ce);case Re.Long:return"GMT"+(le>=0?"+":"")+padNumber(de,2,ce)+":"+padNumber(Math.abs(le%60),2,ce);case Re.Extended:return 0===re?"Z":(le>=0?"+":"")+padNumber(de,2,ce)+":"+padNumber(Math.abs(le%60),2,ce);default:throw new Error(`Unknown zone width "${te}"`)}}}const Pe=0,Fe=4;function getThursdayThisIsoWeek(te){const ne=te.getDay(),ie=0===ne?-3:Fe-ne;return createDate(te.getFullYear(),te.getMonth(),te.getDate()+ie)}function weekGetter(te,ne=!1){return function(ie,re){let le;if(ne){const te=new Date(ie.getFullYear(),ie.getMonth(),1).getDay()-1,ne=ie.getDate();le=1+Math.floor((ne+te)/7)}else{const te=getThursdayThisIsoWeek(ie),ne=function getFirstThursdayOfYear(te){const ne=createDate(te,Pe,1).getDay();return createDate(te,0,1+(ne<=Fe?Fe:Fe+7)-ne)}(te.getFullYear()),re=te.getTime()-ne.getTime();le=1+Math.round(re/6048e5)}return padNumber(le,te,getLocaleNumberSymbol(re,xe.MinusSign))}}function weekNumberingYearGetter(te,ne=!1){return function(ie,re){return padNumber(getThursdayThisIsoWeek(ie).getFullYear(),te,getLocaleNumberSymbol(re,xe.MinusSign),ne)}}const je={};function timezoneToOffset(te,ne){te=te.replace(/:/g,"");const ie=Date.parse("Jan 01, 1970 00:00:00 "+te)/6e4;return isNaN(ie)?ne:ie}function isDate(te){return te instanceof Date&&!isNaN(te.valueOf())}const Ve=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ge=22,ze=".",He="0",$e=";",qe=",",Ye="#";function formatNumberToLocaleString(te,ne,ie,re,le,ce,de=!1){let ue="",me=!1;if(isFinite(te)){let ge=function parseNumber(te){let ne,ie,re,le,ce,de=Math.abs(te)+"",ue=0;(ie=de.indexOf(ze))>-1&&(de=de.replace(ze,""));(re=de.search(/e/i))>0?(ie<0&&(ie=re),ie+=+de.slice(re+1),de=de.substring(0,re)):ie<0&&(ie=de.length);for(re=0;de.charAt(re)===He;re++);if(re===(ce=de.length))ne=[0],ie=1;else{for(ce--;de.charAt(ce)===He;)ce--;for(ie-=re,ne=[],le=0;re<=ce;re++,le++)ne[le]=Number(de.charAt(re))}ie>Ge&&(ne=ne.splice(0,Ge-1),ue=ie-1,ie=1);return{digits:ne,exponent:ue,integerLen:ie}}(te);de&&(ge=function toPercent(te){if(0===te.digits[0])return te;const ne=te.digits.length-te.integerLen;te.exponent?te.exponent+=2:(0===ne?te.digits.push(0,0):1===ne&&te.digits.push(0),te.integerLen+=2);return te}(ge));let fe=ne.minInt,_e=ne.minFrac,be=ne.maxFrac;if(ce){const te=ce.match(Ve);if(null===te)throw new Error(`${ce} is not a valid digit info`);const ne=te[1],ie=te[3],re=te[5];null!=ne&&(fe=parseIntAutoRadix(ne)),null!=ie&&(_e=parseIntAutoRadix(ie)),null!=re?be=parseIntAutoRadix(re):null!=ie&&_e>be&&(be=_e)}!function roundNumber(te,ne,ie){if(ne>ie)throw new Error(`The minimum number of digits after fraction (${ne}) is higher than the maximum (${ie}).`);let re=te.digits,le=re.length-te.integerLen;const ce=Math.min(Math.max(ne,le),ie);let de=ce+te.integerLen,ue=re[de];if(de>0){re.splice(Math.max(te.integerLen,de));for(let te=de;te<re.length;te++)re[te]=0}else{le=Math.max(0,le),te.integerLen=1,re.length=Math.max(1,de=ce+1),re[0]=0;for(let te=1;te<de;te++)re[te]=0}if(ue>=5)if(de-1<0){for(let ne=0;ne>de;ne--)re.unshift(0),te.integerLen++;re.unshift(1),te.integerLen++}else re[de-1]++;for(;le<Math.max(0,ce);le++)re.push(0);let me=0!==ce;const ge=ne+te.integerLen,fe=re.reduceRight((function(te,ne,ie,re){return ne+=te,re[ie]=ne<10?ne:ne-10,me&&(0===re[ie]&&ie>=ge?re.pop():me=!1),ne>=10?1:0}),0);fe&&(re.unshift(fe),te.integerLen++)}(ge,_e,be);let Ce=ge.digits,ye=ge.integerLen;const we=ge.exponent;let ke=[];for(me=Ce.every((te=>!te));ye<fe;ye++)Ce.unshift(0);for(;ye<0;ye++)Ce.unshift(0);ye>0?ke=Ce.splice(ye,Ce.length):(ke=Ce,Ce=[0]);const Se=[];for(Ce.length>=ne.lgSize&&Se.unshift(Ce.splice(-ne.lgSize,Ce.length).join(""));Ce.length>ne.gSize;)Se.unshift(Ce.splice(-ne.gSize,Ce.length).join(""));Ce.length&&Se.unshift(Ce.join("")),ue=Se.join(getLocaleNumberSymbol(ie,re)),ke.length&&(ue+=getLocaleNumberSymbol(ie,le)+ke.join("")),we&&(ue+=getLocaleNumberSymbol(ie,xe.Exponential)+"+"+we)}else ue=getLocaleNumberSymbol(ie,xe.Infinity);return ue=te<0&&!me?ne.negPre+ue+ne.negSuf:ne.posPre+ue+ne.posSuf,ue}function parseNumberFormat(te,ne="-"){const ie={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},re=te.split($e),le=re[0],ce=re[1],de=-1!==le.indexOf(ze)?le.split(ze):[le.substring(0,le.lastIndexOf(He)+1),le.substring(le.lastIndexOf(He)+1)],ue=de[0],me=de[1]||"";ie.posPre=ue.substring(0,ue.indexOf(Ye));for(let te=0;te<me.length;te++){const ne=me.charAt(te);ne===He?ie.minFrac=ie.maxFrac=te+1:ne===Ye?ie.maxFrac=te+1:ie.posSuf+=ne}const ge=ue.split(qe);if(ie.gSize=ge[1]?ge[1].length:0,ie.lgSize=ge[2]||ge[1]?(ge[2]||ge[1]).length:0,ce){const te=le.length-ie.posPre.length-ie.posSuf.length,ne=ce.indexOf(Ye);ie.negPre=ce.substring(0,ne).replace(/'/g,""),ie.negSuf=ce.slice(ne+te).replace(/'/g,"")}else ie.negPre=ne+ie.posPre,ie.negSuf=ie.posSuf;return ie}function parseIntAutoRadix(te){const ne=parseInt(te);if(isNaN(ne))throw new Error("Invalid integer literal when parsing "+te);return ne}function registerLocaleData(te,ne,ie){return(0,re.XSP)(te,ne,ie)}function parseCookieValue(te,ne){ne=encodeURIComponent(ne);for(const ie of te.split(";")){const te=ie.indexOf("="),[re,le]=-1==te?[ie,""]:[ie.slice(0,te),ie.slice(te+1)];if(re.trim()===ne)return decodeURIComponent(le)}return null}const Xe=/\s+/,Ke=[];let Qe=(()=>{class NgClass{constructor(te,ne){this._ngEl=te,this._renderer=ne,this.initialClasses=Ke,this.stateMap=new Map}set klass(te){this.initialClasses=null!=te?te.trim().split(Xe):Ke}set ngClass(te){this.rawClass="string"==typeof te?te.trim().split(Xe):te}ngDoCheck(){for(const te of this.initialClasses)this._updateState(te,!0);const te=this.rawClass;if(Array.isArray(te)||te instanceof Set)for(const ne of te)this._updateState(ne,!0);else if(null!=te)for(const ne of Object.keys(te))this._updateState(ne,Boolean(te[ne]));this._applyStateDiff()}_updateState(te,ne){const ie=this.stateMap.get(te);void 0!==ie?(ie.enabled!==ne&&(ie.changed=!0,ie.enabled=ne),ie.touched=!0):this.stateMap.set(te,{enabled:ne,changed:!0,touched:!0})}_applyStateDiff(){for(const te of this.stateMap){const ne=te[0],ie=te[1];ie.changed?(this._toggleClass(ne,ie.enabled),ie.changed=!1):ie.touched||(ie.enabled&&this._toggleClass(ne,!1),this.stateMap.delete(ne)),ie.touched=!1}}_toggleClass(te,ne){(te=te.trim()).length>0&&te.split(Xe).forEach((te=>{ne?this._renderer.addClass(this._ngEl.nativeElement,te):this._renderer.removeClass(this._ngEl.nativeElement,te)}))}static#e=this.ɵfac=function NgClass_Factory(te){return new(te||NgClass)(re.rXU(re.aKT),re.rXU(re.sFG))};static#t=this.ɵdir=re.FsC({type:NgClass,selectors:[["","ngClass",""]],inputs:{klass:[re.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return NgClass})(),Je=(()=>{class NgComponentOutlet{constructor(te){this._viewContainerRef=te,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(te){return void 0!==te.ngComponentOutletNgModule||void 0!==te.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(te){return void 0!==te.ngComponentOutlet||void 0!==te.ngComponentOutletContent||void 0!==te.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(te)}ngOnChanges(te){if(this._needToReCreateComponentInstance(te)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const ne=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(te)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=(0,re.w6W)(this.ngComponentOutletNgModule,getParentInjector(ne)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(getParentInjector(ne)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:ne,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const te of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(te,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(te){for(const[ne,ie]of this._inputsUsed)ie?(te.setInput(ne,this.ngComponentOutletInputs[ne]),this._inputsUsed.set(ne,!1)):(te.setInput(ne,void 0),this._inputsUsed.delete(ne))}static#e=this.ɵfac=function NgComponentOutlet_Factory(te){return new(te||NgComponentOutlet)(re.rXU(re.c1b))};static#t=this.ɵdir=re.FsC({type:NgComponentOutlet,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[re.OA$]})}return NgComponentOutlet})();function getParentInjector(te){return te.get(re.Vns).injector}class NgForOfContext{constructor(te,ne,ie,re){this.$implicit=te,this.ngForOf=ne,this.index=ie,this.count=re}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 dt=(()=>{class NgForOf{set ngForOf(te){this._ngForOf=te,this._ngForOfDirty=!0}set ngForTrackBy(te){null!=te&&"function"!=typeof te&&console.warn(`trackBy must be a function, but received ${JSON.stringify(te)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=te}get ngForTrackBy(){return this._trackByFn}constructor(te,ne,ie){this._viewContainer=te,this._template=ne,this._differs=ie,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(te){te&&(this._template=te)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const te=this._ngForOf;if(!this._differ&&te)try{this._differ=this._differs.find(te).create(this.ngForTrackBy)}catch{let ne=`Cannot find a differ supporting object '${te}' of type '${function getTypeName(te){return te.name||typeof te}(te)}'. NgFor only supports binding to Iterables, such as Arrays.`;throw"object"==typeof te&&(ne+=" Did you mean to use the keyvalue pipe?"),new re.wOt(-2200,ne)}}if(this._differ){const te=this._differ.diff(this._ngForOf);te&&this._applyChanges(te)}}_applyChanges(te){const ne=this._viewContainer;te.forEachOperation(((te,ie,re)=>{if(null==te.previousIndex)ne.createEmbeddedView(this._template,new NgForOfContext(te.item,this._ngForOf,-1,-1),null===re?void 0:re);else if(null==re)ne.remove(null===ie?void 0:ie);else if(null!==ie){const le=ne.get(ie);ne.move(le,re),applyViewChange(le,te)}}));for(let te=0,ie=ne.length;te<ie;te++){const re=ne.get(te).context;re.index=te,re.count=ie,re.ngForOf=this._ngForOf}te.forEachIdentityChange((te=>{applyViewChange(ne.get(te.currentIndex),te)}))}static ngTemplateContextGuard(te,ne){return!0}static#e=this.ɵfac=function NgForOf_Factory(te){return new(te||NgForOf)(re.rXU(re.c1b),re.rXU(re.C4Q),re.rXU(re._q3))};static#t=this.ɵdir=re.FsC({type:NgForOf,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return NgForOf})();function applyViewChange(te,ne){te.context.$implicit=ne.item}let pt=(()=>{class NgIf{constructor(te,ne){this._viewContainer=te,this._context=new NgIfContext,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(te){this._context.$implicit=this._context.ngIf=te,this._updateView()}set ngIfThen(te){assertTemplate("ngIfThen",te),this._thenTemplateRef=te,this._thenViewRef=null,this._updateView()}set ngIfElse(te){assertTemplate("ngIfElse",te),this._elseTemplateRef=te,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(te,ne){return!0}static#e=this.ɵfac=function NgIf_Factory(te){return new(te||NgIf)(re.rXU(re.c1b),re.rXU(re.C4Q))};static#t=this.ɵdir=re.FsC({type:NgIf,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return NgIf})();class NgIfContext{constructor(){this.$implicit=null,this.ngIf=null}}function assertTemplate(te,ne){if(!!(ne&&!ne.createEmbeddedView))throw new Error(`${te} must be a TemplateRef, but received '${(0,re.Tbb)(ne)}'.`)}class SwitchView{constructor(te,ne){this._viewContainerRef=te,this._templateRef=ne,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(te){te&&!this._created?this.create():!te&&this._created&&this.destroy()}}let Ct=(()=>{class NgSwitch{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(te){this._ngSwitch=te,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(te){this._defaultViews.push(te)}_matchCase(te){const ne=te===this._ngSwitch;return ne!==(te==this._ngSwitch)&&console.warn((0,re.Zy3)(2001,`As of Angular v17 the NgSwitch directive uses strict equality comparison === instead of == to match different cases. Previously the case value "${stringifyValue(te)}" matched switch expression value "${stringifyValue(this._ngSwitch)}", but this is no longer the case with the stricter equality check. Your comparison results return different results using === vs. == and you should adjust your ngSwitch expression and / or values to conform with the strict equality requirements.`)),this._lastCasesMatched||=ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(te){if(this._defaultViews.length>0&&te!==this._defaultUsed){this._defaultUsed=te;for(const ne of this._defaultViews)ne.enforceState(te)}}static#e=this.ɵfac=function NgSwitch_Factory(te){return new(te||NgSwitch)};static#t=this.ɵdir=re.FsC({type:NgSwitch,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return NgSwitch})(),vt=(()=>{class NgSwitchCase{constructor(te,ne,ie){this.ngSwitch=ie,ie||throwNgSwitchProviderNotFoundError("ngSwitchCase","NgSwitchCase"),ie._addCase(),this._view=new SwitchView(te,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.ɵfac=function NgSwitchCase_Factory(te){return new(te||NgSwitchCase)(re.rXU(re.c1b),re.rXU(re.C4Q),re.rXU(Ct,9))};static#t=this.ɵdir=re.FsC({type:NgSwitchCase,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return NgSwitchCase})(),It=(()=>{class NgSwitchDefault{constructor(te,ne,ie){ie||throwNgSwitchProviderNotFoundError("ngSwitchDefault","NgSwitchDefault"),ie._addDefault(new SwitchView(te,ne))}static#e=this.ɵfac=function NgSwitchDefault_Factory(te){return new(te||NgSwitchDefault)(re.rXU(re.c1b),re.rXU(re.C4Q),re.rXU(Ct,9))};static#t=this.ɵdir=re.FsC({type:NgSwitchDefault,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return NgSwitchDefault})();function throwNgSwitchProviderNotFoundError(te,ne){throw new re.wOt(2e3,`An element with the "${te}" attribute (matching the "${ne}" directive) must be located inside an element with the "ngSwitch" attribute (matching "NgSwitch" directive)`)}function stringifyValue(te){return"string"==typeof te?`'${te}'`:String(te)}let Dt=(()=>{class NgStyle{constructor(te,ne,ie){this._ngEl=te,this._differs=ne,this._renderer=ie,this._ngStyle=null,this._differ=null}set ngStyle(te){this._ngStyle=te,!this._differ&&te&&(this._differ=this._differs.find(te).create())}ngDoCheck(){if(this._differ){const te=this._differ.diff(this._ngStyle);te&&this._applyChanges(te)}}_setStyle(te,ne){const[ie,le]=te.split("."),ce=-1===ie.indexOf("-")?void 0:re.czy.DashCase;null!=ne?this._renderer.setStyle(this._ngEl.nativeElement,ie,le?`${ne}${le}`:ne,ce):this._renderer.removeStyle(this._ngEl.nativeElement,ie,ce)}_applyChanges(te){te.forEachRemovedItem((te=>this._setStyle(te.key,null))),te.forEachAddedItem((te=>this._setStyle(te.key,te.currentValue))),te.forEachChangedItem((te=>this._setStyle(te.key,te.currentValue)))}static#e=this.ɵfac=function NgStyle_Factory(te){return new(te||NgStyle)(re.rXU(re.aKT),re.rXU(re.MKu),re.rXU(re.sFG))};static#t=this.ɵdir=re.FsC({type:NgStyle,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return NgStyle})(),Mt=(()=>{class NgTemplateOutlet{constructor(te){this._viewContainerRef=te,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(te){if(this._shouldRecreateView(te)){const te=this._viewContainerRef;if(this._viewRef&&te.remove(te.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const ne=this._createContextForwardProxy();this._viewRef=te.createEmbeddedView(this.ngTemplateOutlet,ne,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(te){return!!te.ngTemplateOutlet||!!te.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(te,ne,ie)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,ne,ie),get:(te,ne,ie)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,ne,ie)}})}static#e=this.ɵfac=function NgTemplateOutlet_Factory(te){return new(te||NgTemplateOutlet)(re.rXU(re.c1b))};static#t=this.ɵdir=re.FsC({type:NgTemplateOutlet,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[re.OA$]})}return NgTemplateOutlet})();function invalidPipeArgumentError(te,ne){return new re.wOt(2100,void 0)}class SubscribableStrategy{createSubscription(te,ne){return(0,re.O8t)((()=>te.subscribe({next:ne,error:te=>{throw te}})))}dispose(te){(0,re.O8t)((()=>te.unsubscribe()))}}class PromiseStrategy{createSubscription(te,ne){return te.then(ne,(te=>{throw te}))}dispose(te){}}const Nt=new PromiseStrategy,Rt=new SubscribableStrategy;let Ot=(()=>{class AsyncPipe{constructor(te){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=te}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(te){if(!this._obj){if(te)try{this.markForCheckOnValueUpdate=!1,this._subscribe(te)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return te!==this._obj?(this._dispose(),this.transform(te)):this._latestValue}_subscribe(te){this._obj=te,this._strategy=this._selectStrategy(te),this._subscription=this._strategy.createSubscription(te,(ne=>this._updateLatestValue(te,ne)))}_selectStrategy(te){if((0,re.jNT)(te))return Nt;if((0,re.zjR)(te))return Rt;throw invalidPipeArgumentError()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(te,ne){te===this._obj&&(this._latestValue=ne,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.ɵfac=function AsyncPipe_Factory(te){return new(te||AsyncPipe)(re.rXU(re.gRc,16))};static#t=this.ɵpipe=re.EJ8({name:"async",type:AsyncPipe,pure:!1,standalone:!0})}return AsyncPipe})();const Vt=new re.nKC(""),Gt=new re.nKC("");let zt=(()=>{class DatePipe{constructor(te,ne,ie){this.locale=te,this.defaultTimezone=ne,this.defaultOptions=ie}transform(te,ne,ie,re){if(null==te||""===te||te!=te)return null;try{const le=ne??this.defaultOptions?.dateFormat??"mediumDate",ce=ie??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return formatDate(te,le,re||this.locale,ce)}catch(te){throw invalidPipeArgumentError(0,te.message)}}static#e=this.ɵfac=function DatePipe_Factory(te){return new(te||DatePipe)(re.rXU(re.xe9,16),re.rXU(Vt,24),re.rXU(Gt,24))};static#t=this.ɵpipe=re.EJ8({name:"date",type:DatePipe,pure:!0,standalone:!0})}return DatePipe})();let Ht=(()=>{class KeyValuePipe{constructor(te){this.differs=te,this.keyValues=[],this.compareFn=defaultComparator}transform(te,ne=defaultComparator){if(!te||!(te instanceof Map)&&"object"!=typeof te)return null;this.differ??=this.differs.find(te).create();const ie=this.differ.diff(te),re=ne!==this.compareFn;return ie&&(this.keyValues=[],ie.forEachItem((te=>{this.keyValues.push(function makeKeyValuePair(te,ne){return{key:te,value:ne}}(te.key,te.currentValue))}))),(ie||re)&&(this.keyValues.sort(ne),this.compareFn=ne),this.keyValues}static#e=this.ɵfac=function KeyValuePipe_Factory(te){return new(te||KeyValuePipe)(re.rXU(re.MKu,16))};static#t=this.ɵpipe=re.EJ8({name:"keyvalue",type:KeyValuePipe,pure:!1,standalone:!0})}return KeyValuePipe})();function defaultComparator(te,ne){const ie=te.key,re=ne.key;if(ie===re)return 0;if(void 0===ie)return 1;if(void 0===re)return-1;if(null===ie)return 1;if(null===re)return-1;if("string"==typeof ie&&"string"==typeof re)return ie<re?-1:1;if("number"==typeof ie&&"number"==typeof re)return ie-re;if("boolean"==typeof ie&&"boolean"==typeof re)return ie<re?-1:1;const le=String(ie),ce=String(re);return le==ce?0:le<ce?-1:1}let Ut=(()=>{class DecimalPipe{constructor(te){this._locale=te}transform(te,ne,ie){if(!isValue(te))return null;ie||=this._locale;try{return function formatNumber(te,ne,ie){return formatNumberToLocaleString(te,parseNumberFormat(getLocaleNumberFormat(ne,ye.Decimal),getLocaleNumberSymbol(ne,xe.MinusSign)),ne,xe.Group,xe.Decimal,ie)}(strToNumber(te),ie,ne)}catch(te){throw invalidPipeArgumentError(0,te.message)}}static#e=this.ɵfac=function DecimalPipe_Factory(te){return new(te||DecimalPipe)(re.rXU(re.xe9,16))};static#t=this.ɵpipe=re.EJ8({name:"number",type:DecimalPipe,pure:!0,standalone:!0})}return DecimalPipe})();function isValue(te){return!(null==te||""===te||te!=te)}function strToNumber(te){if("string"==typeof te&&!isNaN(Number(te)-parseFloat(te)))return Number(te);if("number"!=typeof te)throw new Error(`${te} is not a number`);return te}let $t=(()=>{class CommonModule{static#e=this.ɵfac=function CommonModule_Factory(te){return new(te||CommonModule)};static#t=this.ɵmod=re.$C({type:CommonModule});static#n=this.ɵinj=re.G2t({})}return CommonModule})();const Yt="browser",Wt="server";function isPlatformBrowser(te){return te===Yt}function isPlatformServer(te){return te===Wt}let Kt=(()=>{class ViewportScroller{static#e=this.ɵprov=(0,re.jDH)({token:ViewportScroller,providedIn:"root",factory:()=>isPlatformBrowser((0,re.WQX)(re.Agw))?new BrowserViewportScroller((0,re.WQX)(ce),window):new NullViewportScroller})}return ViewportScroller})();class BrowserViewportScroller{constructor(te,ne){this.document=te,this.window=ne,this.offset=()=>[0,0]}setOffset(te){Array.isArray(te)?this.offset=()=>te:this.offset=te}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(te){this.window.scrollTo(te[0],te[1])}scrollToAnchor(te){const ne=function findAnchorFromDocument(te,ne){const ie=te.getElementById(ne)||te.getElementsByName(ne)[0];if(ie)return ie;if("function"==typeof te.createTreeWalker&&te.body&&"function"==typeof te.body.attachShadow){const ie=te.createTreeWalker(te.body,NodeFilter.SHOW_ELEMENT);let re=ie.currentNode;for(;re;){const te=re.shadowRoot;if(te){const ie=te.getElementById(ne)||te.querySelector(`[name="${ne}"]`);if(ie)return ie}re=ie.nextNode()}}return null}(this.document,te);ne&&(this.scrollToElement(ne),ne.focus())}setHistoryScrollRestoration(te){this.window.history.scrollRestoration=te}scrollToElement(te){const ne=te.getBoundingClientRect(),ie=ne.left+this.window.pageXOffset,re=ne.top+this.window.pageYOffset,le=this.offset();this.window.scrollTo(ie-le[0],re-le[1])}}class NullViewportScroller{setOffset(te){}getScrollPosition(){return[0,0]}scrollToPosition(te){}scrollToAnchor(te){}setHistoryScrollRestoration(te){}}class XhrFactory{}},7691:(te,ne,ie)=>{"use strict";ie.d(ne,{Qq:()=>xe,a7:()=>Re,q1:()=>Je});var re=ie(3014),le=ie(3107),ce=ie(3016),de=ie(1698),ue=ie(1787),me=ie(1459),ge=ie(1483),fe=ie(7947),_e=ie(4447),be=ie(2867),Ce=ie(4460);class HttpHandler{}class HttpBackend{}class HttpHeaders{constructor(te){this.normalizedNames=new Map,this.lazyUpdate=null,te?"string"==typeof te?this.lazyInit=()=>{this.headers=new Map,te.split("\n").forEach((te=>{const ne=te.indexOf(":");if(ne>0){const ie=te.slice(0,ne),re=ie.toLowerCase(),le=te.slice(ne+1).trim();this.maybeSetNormalizedName(ie,re),this.headers.has(re)?this.headers.get(re).push(le):this.headers.set(re,[le])}}))}:"undefined"!=typeof Headers&&te instanceof Headers?(this.headers=new Map,te.forEach(((te,ne)=>{this.setHeaderEntries(ne,te)}))):this.lazyInit=()=>{(function assertValidHeaders(te){for(const[ne,ie]of Object.entries(te))if("string"!=typeof ie&&"number"!=typeof ie&&!Array.isArray(ie))throw new Error(`Unexpected value of the \`${ne}\` header provided. Expecting either a string, a number or an array, but got: \`${ie}\`.`)})(te),this.headers=new Map,Object.entries(te).forEach((([te,ne])=>{this.setHeaderEntries(te,ne)}))}:this.headers=new Map}has(te){return this.init(),this.headers.has(te.toLowerCase())}get(te){this.init();const ne=this.headers.get(te.toLowerCase());return ne&&ne.length>0?ne[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(te){return this.init(),this.headers.get(te.toLowerCase())||null}append(te,ne){return this.clone({name:te,value:ne,op:"a"})}set(te,ne){return this.clone({name:te,value:ne,op:"s"})}delete(te,ne){return this.clone({name:te,value:ne,op:"d"})}maybeSetNormalizedName(te,ne){this.normalizedNames.has(ne)||this.normalizedNames.set(ne,te)}init(){this.lazyInit&&(this.lazyInit instanceof HttpHeaders?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((te=>this.applyUpdate(te))),this.lazyUpdate=null))}copyFrom(te){te.init(),Array.from(te.headers.keys()).forEach((ne=>{this.headers.set(ne,te.headers.get(ne)),this.normalizedNames.set(ne,te.normalizedNames.get(ne))}))}clone(te){const ne=new HttpHeaders;return ne.lazyInit=this.lazyInit&&this.lazyInit instanceof HttpHeaders?this.lazyInit:this,ne.lazyUpdate=(this.lazyUpdate||[]).concat([te]),ne}applyUpdate(te){const ne=te.name.toLowerCase();switch(te.op){case"a":case"s":let ie=te.value;if("string"==typeof ie&&(ie=[ie]),0===ie.length)return;this.maybeSetNormalizedName(te.name,ne);const re=("a"===te.op?this.headers.get(ne):void 0)||[];re.push(...ie),this.headers.set(ne,re);break;case"d":const le=te.value;if(le){let te=this.headers.get(ne);if(!te)return;te=te.filter((te=>-1===le.indexOf(te))),0===te.length?(this.headers.delete(ne),this.normalizedNames.delete(ne)):this.headers.set(ne,te)}else this.headers.delete(ne),this.normalizedNames.delete(ne)}}setHeaderEntries(te,ne){const ie=(Array.isArray(ne)?ne:[ne]).map((te=>te.toString())),re=te.toLowerCase();this.headers.set(re,ie),this.maybeSetNormalizedName(te,re)}forEach(te){this.init(),Array.from(this.normalizedNames.keys()).forEach((ne=>te(this.normalizedNames.get(ne),this.headers.get(ne))))}}class HttpUrlEncodingCodec{encodeKey(te){return standardEncoding(te)}encodeValue(te){return standardEncoding(te)}decodeKey(te){return decodeURIComponent(te)}decodeValue(te){return decodeURIComponent(te)}}const ye=/%(\d[a-f0-9])/gi,we={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function standardEncoding(te){return encodeURIComponent(te).replace(ye,((te,ne)=>we[ne]??te))}function valueToString(te){return`${te}`}class HttpParams{constructor(te={}){if(this.updates=null,this.cloneFrom=null,this.encoder=te.encoder||new HttpUrlEncodingCodec,te.fromString){if(te.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function paramParser(te,ne){const ie=new Map;te.length>0&&te.replace(/^\?/,"").split("&").forEach((te=>{const re=te.indexOf("="),[le,ce]=-1==re?[ne.decodeKey(te),""]:[ne.decodeKey(te.slice(0,re)),ne.decodeValue(te.slice(re+1))],de=ie.get(le)||[];de.push(ce),ie.set(le,de)}));return ie}(te.fromString,this.encoder)}else te.fromObject?(this.map=new Map,Object.keys(te.fromObject).forEach((ne=>{const ie=te.fromObject[ne],re=Array.isArray(ie)?ie.map(valueToString):[valueToString(ie)];this.map.set(ne,re)}))):this.map=null}has(te){return this.init(),this.map.has(te)}get(te){this.init();const ne=this.map.get(te);return ne?ne[0]:null}getAll(te){return this.init(),this.map.get(te)||null}keys(){return this.init(),Array.from(this.map.keys())}append(te,ne){return this.clone({param:te,value:ne,op:"a"})}appendAll(te){const ne=[];return Object.keys(te).forEach((ie=>{const re=te[ie];Array.isArray(re)?re.forEach((te=>{ne.push({param:ie,value:te,op:"a"})})):ne.push({param:ie,value:re,op:"a"})})),this.clone(ne)}set(te,ne){return this.clone({param:te,value:ne,op:"s"})}delete(te,ne){return this.clone({param:te,value:ne,op:"d"})}toString(){return this.init(),this.keys().map((te=>{const ne=this.encoder.encodeKey(te);return this.map.get(te).map((te=>ne+"="+this.encoder.encodeValue(te))).join("&")})).filter((te=>""!==te)).join("&")}clone(te){const ne=new HttpParams({encoder:this.encoder});return ne.cloneFrom=this.cloneFrom||this,ne.updates=(this.updates||[]).concat(te),ne}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((te=>this.map.set(te,this.cloneFrom.map.get(te)))),this.updates.forEach((te=>{switch(te.op){case"a":case"s":const ne=("a"===te.op?this.map.get(te.param):void 0)||[];ne.push(valueToString(te.value)),this.map.set(te.param,ne);break;case"d":if(void 0===te.value){this.map.delete(te.param);break}{let ne=this.map.get(te.param)||[];const ie=ne.indexOf(valueToString(te.value));-1!==ie&&ne.splice(ie,1),ne.length>0?this.map.set(te.param,ne):this.map.delete(te.param)}}})),this.cloneFrom=this.updates=null)}}class HttpContext{constructor(){this.map=new Map}set(te,ne){return this.map.set(te,ne),this}get(te){return this.map.has(te)||this.map.set(te,te.defaultValue()),this.map.get(te)}delete(te){return this.map.delete(te),this}has(te){return this.map.has(te)}keys(){return this.map.keys()}}function isArrayBuffer(te){return"undefined"!=typeof ArrayBuffer&&te instanceof ArrayBuffer}function isBlob(te){return"undefined"!=typeof Blob&&te instanceof Blob}function isFormData(te){return"undefined"!=typeof FormData&&te instanceof FormData}class HttpRequest{constructor(te,ne,ie,re){let le;if(this.url=ne,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=te.toUpperCase(),function mightHaveBody(te){switch(te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||re?(this.body=void 0!==ie?ie:null,le=re):le=ie,le&&(this.reportProgress=!!le.reportProgress,this.withCredentials=!!le.withCredentials,le.responseType&&(this.responseType=le.responseType),le.headers&&(this.headers=le.headers),le.context&&(this.context=le.context),le.params&&(this.params=le.params),this.transferCache=le.transferCache),this.headers??=new HttpHeaders,this.context??=new HttpContext,this.params){const te=this.params.toString();if(0===te.length)this.urlWithParams=ne;else{const ie=ne.indexOf("?"),re=-1===ie?"?":ie<ne.length-1?"&":"";this.urlWithParams=ne+re+te}}else this.params=new HttpParams,this.urlWithParams=ne}serializeBody(){return null===this.body?null:isArrayBuffer(this.body)||isBlob(this.body)||isFormData(this.body)||function isUrlSearchParams(te){return"undefined"!=typeof URLSearchParams&&te instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof HttpParams?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||isFormData(this.body)?null:isBlob(this.body)?this.body.type||null:isArrayBuffer(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof HttpParams?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(te={}){const ne=te.method||this.method,ie=te.url||this.url,re=te.responseType||this.responseType,le=void 0!==te.body?te.body:this.body,ce=void 0!==te.withCredentials?te.withCredentials:this.withCredentials,de=void 0!==te.reportProgress?te.reportProgress:this.reportProgress;let ue=te.headers||this.headers,me=te.params||this.params;const ge=te.context??this.context;return void 0!==te.setHeaders&&(ue=Object.keys(te.setHeaders).reduce(((ne,ie)=>ne.set(ie,te.setHeaders[ie])),ue)),te.setParams&&(me=Object.keys(te.setParams).reduce(((ne,ie)=>ne.set(ie,te.setParams[ie])),me)),new HttpRequest(ne,ie,le,{params:me,headers:ue,context:ge,reportProgress:de,responseType:re,withCredentials:ce})}}var ke=function(te){return te[te.Sent=0]="Sent",te[te.UploadProgress=1]="UploadProgress",te[te.ResponseHeader=2]="ResponseHeader",te[te.DownloadProgress=3]="DownloadProgress",te[te.Response=4]="Response",te[te.User=5]="User",te}(ke||{});class HttpResponseBase{constructor(te,ne=Se.Ok,ie="OK"){this.headers=te.headers||new HttpHeaders,this.status=void 0!==te.status?te.status:ne,this.statusText=te.statusText||ie,this.url=te.url||null,this.ok=this.status>=200&&this.status<300}}class HttpHeaderResponse extends HttpResponseBase{constructor(te={}){super(te),this.type=ke.ResponseHeader}clone(te={}){return new HttpHeaderResponse({headers:te.headers||this.headers,status:void 0!==te.status?te.status:this.status,statusText:te.statusText||this.statusText,url:te.url||this.url||void 0})}}class HttpResponse extends HttpResponseBase{constructor(te={}){super(te),this.type=ke.Response,this.body=void 0!==te.body?te.body:null}clone(te={}){return new HttpResponse({body:void 0!==te.body?te.body:this.body,headers:te.headers||this.headers,status:void 0!==te.status?te.status:this.status,statusText:te.statusText||this.statusText,url:te.url||this.url||void 0})}}class HttpErrorResponse extends HttpResponseBase{constructor(te){super(te,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${te.url||"(unknown url)"}`:this.message=`Http failure response for ${te.url||"(unknown url)"}: ${te.status} ${te.statusText}`,this.error=te.error||null}}var Se=function(te){return te[te.Continue=100]="Continue",te[te.SwitchingProtocols=101]="SwitchingProtocols",te[te.Processing=102]="Processing",te[te.EarlyHints=103]="EarlyHints",te[te.Ok=200]="Ok",te[te.Created=201]="Created",te[te.Accepted=202]="Accepted",te[te.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",te[te.NoContent=204]="NoContent",te[te.ResetContent=205]="ResetContent",te[te.PartialContent=206]="PartialContent",te[te.MultiStatus=207]="MultiStatus",te[te.AlreadyReported=208]="AlreadyReported",te[te.ImUsed=226]="ImUsed",te[te.MultipleChoices=300]="MultipleChoices",te[te.MovedPermanently=301]="MovedPermanently",te[te.Found=302]="Found",te[te.SeeOther=303]="SeeOther",te[te.NotModified=304]="NotModified",te[te.UseProxy=305]="UseProxy",te[te.Unused=306]="Unused",te[te.TemporaryRedirect=307]="TemporaryRedirect",te[te.PermanentRedirect=308]="PermanentRedirect",te[te.BadRequest=400]="BadRequest",te[te.Unauthorized=401]="Unauthorized",te[te.PaymentRequired=402]="PaymentRequired",te[te.Forbidden=403]="Forbidden",te[te.NotFound=404]="NotFound",te[te.MethodNotAllowed=405]="MethodNotAllowed",te[te.NotAcceptable=406]="NotAcceptable",te[te.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",te[te.RequestTimeout=408]="RequestTimeout",te[te.Conflict=409]="Conflict",te[te.Gone=410]="Gone",te[te.LengthRequired=411]="LengthRequired",te[te.PreconditionFailed=412]="PreconditionFailed",te[te.PayloadTooLarge=413]="PayloadTooLarge",te[te.UriTooLong=414]="UriTooLong",te[te.UnsupportedMediaType=415]="UnsupportedMediaType",te[te.RangeNotSatisfiable=416]="RangeNotSatisfiable",te[te.ExpectationFailed=417]="ExpectationFailed",te[te.ImATeapot=418]="ImATeapot",te[te.MisdirectedRequest=421]="MisdirectedRequest",te[te.UnprocessableEntity=422]="UnprocessableEntity",te[te.Locked=423]="Locked",te[te.FailedDependency=424]="FailedDependency",te[te.TooEarly=425]="TooEarly",te[te.UpgradeRequired=426]="UpgradeRequired",te[te.PreconditionRequired=428]="PreconditionRequired",te[te.TooManyRequests=429]="TooManyRequests",te[te.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",te[te.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",te[te.InternalServerError=500]="InternalServerError",te[te.NotImplemented=501]="NotImplemented",te[te.BadGateway=502]="BadGateway",te[te.ServiceUnavailable=503]="ServiceUnavailable",te[te.GatewayTimeout=504]="GatewayTimeout",te[te.HttpVersionNotSupported=505]="HttpVersionNotSupported",te[te.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",te[te.InsufficientStorage=507]="InsufficientStorage",te[te.LoopDetected=508]="LoopDetected",te[te.NotExtended=510]="NotExtended",te[te.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",te}(Se||{});function addBody(te,ne){return{body:ne,headers:te.headers,context:te.context,observe:te.observe,params:te.params,reportProgress:te.reportProgress,responseType:te.responseType,withCredentials:te.withCredentials,transferCache:te.transferCache}}let xe=(()=>{class HttpClient{constructor(te){this.handler=te}request(te,ne,ie={}){let re;if(te instanceof HttpRequest)re=te;else{let le,ce;le=ie.headers instanceof HttpHeaders?ie.headers:new HttpHeaders(ie.headers),ie.params&&(ce=ie.params instanceof HttpParams?ie.params:new HttpParams({fromObject:ie.params})),re=new HttpRequest(te,ne,void 0!==ie.body?ie.body:null,{headers:le,context:ie.context,params:ce,reportProgress:ie.reportProgress,responseType:ie.responseType||"json",withCredentials:ie.withCredentials,transferCache:ie.transferCache})}const le=(0,ce.of)(re).pipe((0,me.H)((te=>this.handler.handle(te))));if(te instanceof HttpRequest||"events"===ie.observe)return le;const de=le.pipe((0,ge.p)((te=>te instanceof HttpResponse)));switch(ie.observe||"body"){case"body":switch(re.responseType){case"arraybuffer":return de.pipe((0,fe.T)((te=>{if(null!==te.body&&!(te.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return te.body})));case"blob":return de.pipe((0,fe.T)((te=>{if(null!==te.body&&!(te.body instanceof Blob))throw new Error("Response is not a Blob.");return te.body})));case"text":return de.pipe((0,fe.T)((te=>{if(null!==te.body&&"string"!=typeof te.body)throw new Error("Response is not a string.");return te.body})));default:return de.pipe((0,fe.T)((te=>te.body)))}case"response":return de;default:throw new Error(`Unreachable: unhandled observe type ${ie.observe}}`)}}delete(te,ne={}){return this.request("DELETE",te,ne)}get(te,ne={}){return this.request("GET",te,ne)}head(te,ne={}){return this.request("HEAD",te,ne)}jsonp(te,ne){return this.request("JSONP",te,{params:(new HttpParams).append(ne,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,ne={}){return this.request("OPTIONS",te,ne)}patch(te,ne,ie={}){return this.request("PATCH",te,addBody(ie,ne))}post(te,ne,ie={}){return this.request("POST",te,addBody(ie,ne))}put(te,ne,ie={}){return this.request("PUT",te,addBody(ie,ne))}static#e=this.ɵfac=function HttpClient_Factory(te){return new(te||HttpClient)(le.KVO(HttpHandler))};static#t=this.ɵprov=le.jDH({token:HttpClient,factory:HttpClient.ɵfac})}return HttpClient})();const Ee=/^\)\]\}',?\n/,Me="X-Request-URL";function getResponseUrl$1(te){if(te.url)return te.url;const ne=Me.toLocaleLowerCase();return te.headers.get(ne)}let Ne=(()=>{class FetchBackend{constructor(){this.fetchImpl=(0,le.WQX)(FetchFactory,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=(0,le.WQX)(le.SKi)}handle(te){return new de.c((ne=>{const ie=new AbortController;return this.doRequest(te,ie.signal,ne).then(noop,(te=>ne.error(new HttpErrorResponse({error:te})))),()=>ie.abort()}))}doRequest(te,ne,ie){var le=this;return(0,re.A)((function*(){const ce=le.createRequestInit(te);let de;try{const re=le.fetchImpl(te.urlWithParams,{signal:ne,...ce});!function silenceSuperfluousUnhandledPromiseRejection(te){te.then(noop,noop)}(re),ie.next({type:ke.Sent}),de=yield re}catch(ne){return void ie.error(new HttpErrorResponse({error:ne,status:ne.status??0,statusText:ne.statusText,url:te.urlWithParams,headers:ne.headers}))}const ue=new HttpHeaders(de.headers),me=de.statusText,ge=getResponseUrl$1(de)??te.urlWithParams;let fe=de.status,_e=null;if(te.reportProgress&&ie.next(new HttpHeaderResponse({headers:ue,status:fe,statusText:me,url:ge})),de.body){const ne=de.headers.get("content-length"),ce=[],ue=de.body.getReader();let me,ge,fe=0;const be="undefined"!=typeof Zone&&Zone.current;yield le.ngZone.runOutsideAngular((0,re.A)((function*(){for(;;){const{done:re,value:le}=yield ue.read();if(re)break;if(ce.push(le),fe+=le.length,te.reportProgress){ge="text"===te.responseType?(ge??"")+(me??=new TextDecoder).decode(le,{stream:!0}):void 0;const reportProgress=()=>ie.next({type:ke.DownloadProgress,total:ne?+ne:void 0,loaded:fe,partialText:ge});be?be.run(reportProgress):reportProgress()}}})));const Ce=le.concatChunks(ce,fe);try{const ne=de.headers.get("Content-Type")??"";_e=le.parseBody(te,Ce,ne)}catch(ne){return void ie.error(new HttpErrorResponse({error:ne,headers:new HttpHeaders(de.headers),status:de.status,statusText:de.statusText,url:getResponseUrl$1(de)??te.urlWithParams}))}}0===fe&&(fe=_e?Se.Ok:0);fe>=200&&fe<300?(ie.next(new HttpResponse({body:_e,headers:ue,status:fe,statusText:me,url:ge})),ie.complete()):ie.error(new HttpErrorResponse({error:_e,headers:ue,status:fe,statusText:me,url:ge}))}))()}parseBody(te,ne,ie){switch(te.responseType){case"json":const te=(new TextDecoder).decode(ne).replace(Ee,"");return""===te?null:JSON.parse(te);case"text":return(new TextDecoder).decode(ne);case"blob":return new Blob([ne],{type:ie});case"arraybuffer":return ne.buffer}}createRequestInit(te){const ne={},ie=te.withCredentials?"include":void 0;if(te.headers.forEach(((te,ie)=>ne[te]=ie.join(","))),ne.Accept??="application/json, text/plain, */*",!ne["Content-Type"]){const ie=te.detectContentTypeHeader();null!==ie&&(ne["Content-Type"]=ie)}return{body:te.serializeBody(),method:te.method,headers:ne,credentials:ie}}concatChunks(te,ne){const ie=new Uint8Array(ne);let re=0;for(const ne of te)ie.set(ne,re),re+=ne.length;return ie}static#e=this.ɵfac=function FetchBackend_Factory(te){return new(te||FetchBackend)};static#t=this.ɵprov=le.jDH({token:FetchBackend,factory:FetchBackend.ɵfac})}return FetchBackend})();class FetchFactory{}function noop(){}function interceptorChainEndFn(te,ne){return ne(te)}function adaptLegacyInterceptorToChain(te,ne){return(ie,re)=>ne.intercept(ie,{handle:ne=>te(ne,re)})}const Re=new le.nKC(""),Le=new le.nKC(""),Oe=new le.nKC(""),Pe=new le.nKC("");function legacyInterceptorFnFactory(){let te=null;return(ne,ie)=>{if(null===te){const ne=(0,le.WQX)(Re,{optional:!0})??[];te=ne.reduceRight(adaptLegacyInterceptorToChain,interceptorChainEndFn)}const re=(0,le.WQX)(le.TgB),ce=re.add();return te(ne,ie).pipe((0,_e.j)((()=>re.remove(ce))))}}let Fe=!1;let je=(()=>{class HttpInterceptorHandler extends HttpHandler{constructor(te,ne){super(),this.backend=te,this.injector=ne,this.chain=null,this.pendingTasks=(0,le.WQX)(le.TgB);const ie=(0,le.WQX)(Pe,{optional:!0});if(this.backend=ie??te,!Fe){!(0,Ce.Vy)(ne.get(le.Agw))||this.backend instanceof Ne||(Fe=!0,ne.get(le.H3F).warn((0,le.Zy3)(2801,"Angular detected that `HttpClient` is not configured to use `fetch` APIs. It's strongly recommended to enable `fetch` for applications that use Server-Side Rendering for better performance and compatibility. To enable `fetch`, add the `withFetch()` to the `provideHttpClient()` call at the root of the application.")))}}handle(te){if(null===this.chain){const te=Array.from(new Set([...this.injector.get(Le),...this.injector.get(Oe,[])]));this.chain=te.reduceRight(((te,ne)=>function chainedInterceptorFn(te,ne,ie){return(re,ce)=>(0,le.N4e)(ie,(()=>ne(re,(ne=>te(ne,ce)))))}(te,ne,this.injector)),interceptorChainEndFn)}const ne=this.pendingTasks.add();return this.chain(te,(te=>this.backend.handle(te))).pipe((0,_e.j)((()=>this.pendingTasks.remove(ne))))}static#e=this.ɵfac=function HttpInterceptorHandler_Factory(te){return new(te||HttpInterceptorHandler)(le.KVO(HttpBackend),le.KVO(le.uvJ))};static#t=this.ɵprov=le.jDH({token:HttpInterceptorHandler,factory:HttpInterceptorHandler.ɵfac})}return HttpInterceptorHandler})();const Ve=/^\)\]\}',?\n/;let Ge=(()=>{class HttpXhrBackend{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new le.wOt(-2800,"Cannot make a JSONP request without JSONP support. To fix the problem, either add the `withJsonpSupport()` call (if `provideHttpClient()` is used) or import the `HttpClientJsonpModule` in the root NgModule.");const ne=this.xhrFactory;return(ne.ɵloadImpl?(0,ue.H)(ne.ɵloadImpl()):(0,ce.of)(null)).pipe((0,be.n)((()=>new de.c((ie=>{const re=ne.build();if(re.open(te.method,te.urlWithParams),te.withCredentials&&(re.withCredentials=!0),te.headers.forEach(((te,ne)=>re.setRequestHeader(te,ne.join(",")))),te.headers.has("Accept")||re.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const ne=te.detectContentTypeHeader();null!==ne&&re.setRequestHeader("Content-Type",ne)}if(te.responseType){const ne=te.responseType.toLowerCase();re.responseType="json"!==ne?ne:"text"}const le=te.serializeBody();let ce=null;const partialFromXhr=()=>{if(null!==ce)return ce;const ne=re.statusText||"OK",ie=new HttpHeaders(re.getAllResponseHeaders()),le=function getResponseUrl(te){return"responseURL"in te&&te.responseURL?te.responseURL:/^X-Request-URL:/m.test(te.getAllResponseHeaders())?te.getResponseHeader("X-Request-URL"):null}(re)||te.url;return ce=new HttpHeaderResponse({headers:ie,status:re.status,statusText:ne,url:le}),ce},onLoad=()=>{let{headers:ne,status:le,statusText:ce,url:de}=partialFromXhr(),ue=null;le!==Se.NoContent&&(ue=void 0===re.response?re.responseText:re.response),0===le&&(le=ue?Se.Ok:0);let me=le>=200&&le<300;if("json"===te.responseType&&"string"==typeof ue){const te=ue;ue=ue.replace(Ve,"");try{ue=""!==ue?JSON.parse(ue):null}catch(ne){ue=te,me&&(me=!1,ue={error:ne,text:ue})}}me?(ie.next(new HttpResponse({body:ue,headers:ne,status:le,statusText:ce,url:de||void 0})),ie.complete()):ie.error(new HttpErrorResponse({error:ue,headers:ne,status:le,statusText:ce,url:de||void 0}))},onError=te=>{const{url:ne}=partialFromXhr(),le=new HttpErrorResponse({error:te,status:re.status||0,statusText:re.statusText||"Unknown Error",url:ne||void 0});ie.error(le)};let de=!1;const onDownProgress=ne=>{de||(ie.next(partialFromXhr()),de=!0);let le={type:ke.DownloadProgress,loaded:ne.loaded};ne.lengthComputable&&(le.total=ne.total),"text"===te.responseType&&re.responseText&&(le.partialText=re.responseText),ie.next(le)},onUpProgress=te=>{let ne={type:ke.UploadProgress,loaded:te.loaded};te.lengthComputable&&(ne.total=te.total),ie.next(ne)};return re.addEventListener("load",onLoad),re.addEventListener("error",onError),re.addEventListener("timeout",onError),re.addEventListener("abort",onError),te.reportProgress&&(re.addEventListener("progress",onDownProgress),null!==le&&re.upload&&re.upload.addEventListener("progress",onUpProgress)),re.send(le),ie.next({type:ke.Sent}),()=>{re.removeEventListener("error",onError),re.removeEventListener("abort",onError),re.removeEventListener("load",onLoad),re.removeEventListener("timeout",onError),te.reportProgress&&(re.removeEventListener("progress",onDownProgress),null!==le&&re.upload&&re.upload.removeEventListener("progress",onUpProgress)),re.readyState!==re.DONE&&re.abort()}})))))}static#e=this.ɵfac=function HttpXhrBackend_Factory(te){return new(te||HttpXhrBackend)(le.KVO(Ce.N0))};static#t=this.ɵprov=le.jDH({token:HttpXhrBackend,factory:HttpXhrBackend.ɵfac})}return HttpXhrBackend})();const ze=new le.nKC(""),He="XSRF-TOKEN",$e=new le.nKC("",{providedIn:"root",factory:()=>He}),qe="X-XSRF-TOKEN",Ye=new le.nKC("",{providedIn:"root",factory:()=>qe});class HttpXsrfTokenExtractor{}let Xe=(()=>{class HttpXsrfCookieExtractor{constructor(te,ne,ie){this.doc=te,this.platform=ne,this.cookieName=ie,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Ce._b)(te,this.cookieName),this.lastCookieString=te),this.lastToken}static#e=this.ɵfac=function HttpXsrfCookieExtractor_Factory(te){return new(te||HttpXsrfCookieExtractor)(le.KVO(Ce.qQ),le.KVO(le.Agw),le.KVO($e))};static#t=this.ɵprov=le.jDH({token:HttpXsrfCookieExtractor,factory:HttpXsrfCookieExtractor.ɵfac})}return HttpXsrfCookieExtractor})();function xsrfInterceptorFn(te,ne){const ie=te.url.toLowerCase();if(!(0,le.WQX)(ze)||"GET"===te.method||"HEAD"===te.method||ie.startsWith("http://")||ie.startsWith("https://"))return ne(te);const re=(0,le.WQX)(HttpXsrfTokenExtractor).getToken(),ce=(0,le.WQX)(Ye);return null==re||te.headers.has(ce)||(te=te.clone({headers:te.headers.set(ce,re)})),ne(te)}var Ke=function(te){return te[te.Interceptors=0]="Interceptors",te[te.LegacyInterceptors=1]="LegacyInterceptors",te[te.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",te[te.NoXsrfProtection=3]="NoXsrfProtection",te[te.JsonpSupport=4]="JsonpSupport",te[te.RequestsMadeViaParent=5]="RequestsMadeViaParent",te[te.Fetch=6]="Fetch",te}(Ke||{});function makeHttpFeature(te,ne){return{ɵkind:te,ɵproviders:ne}}function provideHttpClient(...te){const ne=[xe,Ge,je,{provide:HttpHandler,useExisting:je},{provide:HttpBackend,useExisting:Ge},{provide:Le,useValue:xsrfInterceptorFn,multi:!0},{provide:ze,useValue:!0},{provide:HttpXsrfTokenExtractor,useClass:Xe}];for(const ie of te)ne.push(...ie.ɵproviders);return(0,le.EmA)(ne)}const Qe=new le.nKC("");function withInterceptorsFromDi(){return makeHttpFeature(Ke.LegacyInterceptors,[{provide:Qe,useFactory:legacyInterceptorFnFactory},{provide:Le,useExisting:Qe,multi:!0}])}let Je=(()=>{class HttpClientModule{static#e=this.ɵfac=function HttpClientModule_Factory(te){return new(te||HttpClientModule)};static#t=this.ɵmod=le.$C({type:HttpClientModule});static#n=this.ɵinj=le.G2t({providers:[provideHttpClient(withInterceptorsFromDi())]})}return HttpClientModule})()},3107:(te,ne,ie)=>{"use strict";ie.d(ne,{bc$:()=>Vn,iLQ:()=>fs,sZ2:()=>On,hnV:()=>ps,Hbi:()=>Kl,o8S:()=>bs,BIS:()=>Gn,gRc:()=>oa,Ql9:()=>Ls,Ocv:()=>cl,abz:()=>ra,Z63:()=>gi,aKT:()=>Tn,uvJ:()=>EnvironmentInjector,zcH:()=>ErrorHandler,bkB:()=>Le,$GK:()=>Pe,nKC:()=>InjectionToken,zZn:()=>co,_q3:()=>ta,MKu:()=>ia,xe9:()=>tl,Co$:()=>NgModuleFactory$1,Vns:()=>NgModuleRef$1,SKi:()=>NgZone,Xx1:()=>Zn,Agw:()=>jn,PLl:()=>Fn,sFG:()=>Qr,_9s:()=>RendererFactory2,czy:()=>kr,WPN:()=>gr,kdw:()=>pi,C4Q:()=>Hr,NYb:()=>ls,giA:()=>us,RxE:()=>Version,c1b:()=>ha,gXe:()=>je,mal:()=>afterNextRender,Af3:()=>assertInInjectionContext,L39:()=>booleanAttribute,EWP:()=>computed,a0P:()=>createComponent,Ol2:()=>createEnvironmentInjector,w6W:()=>createNgModule,oH4:()=>createPlatformFactory,QZP:()=>effect,Rfq:()=>forwardRef,WQX:()=>inject,hFB:()=>Oe,QuC:()=>isStandalone,EmA:()=>makeEnvironmentProviders,Udg:()=>numberAttribute,fpN:()=>$l,HJs:()=>reflectComponentType,N4e:()=>runInInjectionContext,vPA:()=>signal,O8t:()=>untracked,An2:()=>ChangeDetectionScheduler,H3F:()=>ts,H8p:()=>Ri,KH2:()=>Fa,TgB:()=>Ma,wOt:()=>RuntimeError,WHO:()=>is,e01:()=>os,lNU:()=>Me,h9k:()=>_sanitizeHtml,$MX:()=>_sanitizeUrl,ZF7:()=>allowSanitizationBypassAndThrow,Kcf:()=>bypassSanitizationTrustHtml,e5t:()=>bypassSanitizationTrustResourceUrl,UyX:()=>bypassSanitizationTrustScript,cWb:()=>bypassSanitizationTrustStyle,osQ:()=>bypassSanitizationTrustUrl,H5H:()=>findLocaleData,Zy3:()=>formatRuntimeError,mq5:()=>getLocalePluralCase,JZv:()=>Ve,LfX:()=>isInjectable,plB:()=>isNgModule,jNT:()=>isPromise,zjR:()=>isSubscribable,XSP:()=>registerLocaleData,TL$:()=>setDocument,Tbb:()=>stringify,rcV:()=>unwrapSafeValue,Vt3:()=>ɵɵInheritDefinitionFeature,Mj6:()=>Je,GFd:()=>ɵɵInputTransformsFeature,OA$:()=>ɵɵNgOnChangesFeature,Jv_:()=>ɵɵProvidersFeature,aNF:()=>ɵɵStandaloneFeature,R7$:()=>ɵɵadvance,BMQ:()=>ɵɵattribute,HbH:()=>ɵɵclassMap,AVh:()=>ɵɵclassProp,wni:()=>ɵɵcontentQuery,VBU:()=>ɵɵdefineComponent,FsC:()=>ɵɵdefineDirective,jDH:()=>ɵɵdefineInjectable,G2t:()=>ɵɵdefineInjector,$C:()=>ɵɵdefineNgModule,EJ8:()=>ɵɵdefinePipe,rXU:()=>ɵɵdirectiveInject,nrm:()=>ɵɵelement,eu8:()=>ɵɵelementContainer,bVm:()=>ɵɵelementContainerEnd,qex:()=>ɵɵelementContainerStart,k0s:()=>ɵɵelementEnd,j41:()=>ɵɵelementStart,RV6:()=>ɵɵgetCurrentView,xGo:()=>ɵɵgetInheritedFactory,KVO:()=>ɵɵinject,kS0:()=>ɵɵinjectAttribute,QTQ:()=>ɵɵinvalidFactory,bIt:()=>ɵɵlistener,lsd:()=>ɵɵloadQuery,joV:()=>ɵɵnamespaceHTML,qSk:()=>ɵɵnamespaceSVG,XpG:()=>ɵɵnextContext,nI1:()=>ɵɵpipe,bMT:()=>ɵɵpipeBind1,i5U:()=>ɵɵpipeBind2,SdG:()=>ɵɵprojection,NAR:()=>ɵɵprojectionDef,Y8G:()=>ɵɵproperty,Mz_:()=>ɵɵpropertyInterpolate1,FCK:()=>ɵɵpropertyInterpolate2,lJ4:()=>ɵɵpureFunction0,eq3:()=>ɵɵpureFunction1,l_i:()=>ɵɵpureFunction2,sMw:()=>ɵɵpureFunction3,ziG:()=>ɵɵpureFunction4,s1E:()=>ɵɵpureFunction5,l4e:()=>ɵɵpureFunction6,sGs:()=>ɵɵpureFunction7,zJS:()=>ɵɵpureFunctionV,mGM:()=>ɵɵqueryRefresh,sdS:()=>ɵɵreference,Njj:()=>ɵɵresetView,EBC:()=>ɵɵresolveDocument,eBV:()=>ɵɵrestoreView,npT:()=>ɵɵsanitizeHtml,f$h:()=>ɵɵsanitizeResourceUrl,B4B:()=>ɵɵsanitizeUrl,n$t:()=>ɵɵsanitizeUrlOrResourceUrl,Aen:()=>ɵɵstyleMap,xc7:()=>ɵɵstyleProp,DNE:()=>ɵɵtemplate,C5r:()=>ɵɵtemplateRefExtractor,EFF:()=>ɵɵtext,JRh:()=>ɵɵtextInterpolate,SpI:()=>ɵɵtextInterpolate1,Lme:()=>ɵɵtextInterpolate2,DH7:()=>ɵɵtwoWayBindingSet,mxI:()=>ɵɵtwoWayListener,R50:()=>ɵɵtwoWayProperty,GBs:()=>ɵɵviewQuery});ie(3014);function defaultEquals(te,ne){return Object.is(te,ne)}let re=null,le=!1,ce=1;const de=Symbol("SIGNAL");function setActiveConsumer(te){const ne=re;return re=te,ne}const ue={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function producerAccessed(te){if(le)throw new Error("");if(null===re)return;re.consumerOnSignalRead(te);const ne=re.nextProducerIndex++;if(assertConsumerNode(re),ne<re.producerNode.length&&re.producerNode[ne]!==te&&consumerIsLive(re)){producerRemoveLiveConsumerAtIndex(re.producerNode[ne],re.producerIndexOfThis[ne])}re.producerNode[ne]!==te&&(re.producerNode[ne]=te,re.producerIndexOfThis[ne]=consumerIsLive(re)?producerAddLiveConsumer(te,re,ne):0),re.producerLastReadVersion[ne]=te.version}function producerUpdateValueVersion(te){if((!consumerIsLive(te)||te.dirty)&&(te.dirty||te.lastCleanEpoch!==ce)){if(!te.producerMustRecompute(te)&&!consumerPollProducersForChange(te))return te.dirty=!1,void(te.lastCleanEpoch=ce);te.producerRecomputeValue(te),te.dirty=!1,te.lastCleanEpoch=ce}}function producerNotifyConsumers(te){if(void 0===te.liveConsumerNode)return;const ne=le;le=!0;try{for(const ne of te.liveConsumerNode)ne.dirty||consumerMarkDirty(ne)}finally{le=ne}}function producerUpdatesAllowed(){return!1!==re?.consumerAllowSignalWrites}function consumerMarkDirty(te){te.dirty=!0,producerNotifyConsumers(te),te.consumerMarkedDirty?.(te)}function consumerBeforeComputation(te){return te&&(te.nextProducerIndex=0),setActiveConsumer(te)}function consumerAfterComputation(te,ne){if(setActiveConsumer(ne),te&&void 0!==te.producerNode&&void 0!==te.producerIndexOfThis&&void 0!==te.producerLastReadVersion){if(consumerIsLive(te))for(let ne=te.nextProducerIndex;ne<te.producerNode.length;ne++)producerRemoveLiveConsumerAtIndex(te.producerNode[ne],te.producerIndexOfThis[ne]);for(;te.producerNode.length>te.nextProducerIndex;)te.producerNode.pop(),te.producerLastReadVersion.pop(),te.producerIndexOfThis.pop()}}function consumerPollProducersForChange(te){assertConsumerNode(te);for(let ne=0;ne<te.producerNode.length;ne++){const ie=te.producerNode[ne],re=te.producerLastReadVersion[ne];if(re!==ie.version)return!0;if(producerUpdateValueVersion(ie),re!==ie.version)return!0}return!1}function consumerDestroy(te){if(assertConsumerNode(te),consumerIsLive(te))for(let ne=0;ne<te.producerNode.length;ne++)producerRemoveLiveConsumerAtIndex(te.producerNode[ne],te.producerIndexOfThis[ne]);te.producerNode.length=te.producerLastReadVersion.length=te.producerIndexOfThis.length=0,te.liveConsumerNode&&(te.liveConsumerNode.length=te.liveConsumerIndexOfThis.length=0)}function producerAddLiveConsumer(te,ne,ie){if(assertProducerNode(te),assertConsumerNode(te),0===te.liveConsumerNode.length)for(let ne=0;ne<te.producerNode.length;ne++)te.producerIndexOfThis[ne]=producerAddLiveConsumer(te.producerNode[ne],te,ne);return te.liveConsumerIndexOfThis.push(ie),te.liveConsumerNode.push(ne)-1}function producerRemoveLiveConsumerAtIndex(te,ne){if(assertProducerNode(te),assertConsumerNode(te),1===te.liveConsumerNode.length)for(let ne=0;ne<te.producerNode.length;ne++)producerRemoveLiveConsumerAtIndex(te.producerNode[ne],te.producerIndexOfThis[ne]);const ie=te.liveConsumerNode.length-1;if(te.liveConsumerNode[ne]=te.liveConsumerNode[ie],te.liveConsumerIndexOfThis[ne]=te.liveConsumerIndexOfThis[ie],te.liveConsumerNode.length--,te.liveConsumerIndexOfThis.length--,ne<te.liveConsumerNode.length){const ie=te.liveConsumerIndexOfThis[ne],re=te.liveConsumerNode[ne];assertConsumerNode(re),re.producerIndexOfThis[ie]=ne}}function consumerIsLive(te){return te.consumerIsAlwaysLive||(te?.liveConsumerNode?.length??0)>0}function assertConsumerNode(te){te.producerNode??=[],te.producerIndexOfThis??=[],te.producerLastReadVersion??=[]}function assertProducerNode(te){te.liveConsumerNode??=[],te.liveConsumerIndexOfThis??=[]}const me=Symbol("UNSET"),ge=Symbol("COMPUTING"),fe=Symbol("ERRORED"),_e=(()=>({...ue,value:me,dirty:!0,error:null,equal:defaultEquals,producerMustRecompute:te=>te.value===me||te.value===ge,producerRecomputeValue(te){if(te.value===ge)throw new Error("Detected cycle in computations.");const ne=te.value;te.value=ge;const ie=consumerBeforeComputation(te);let re;try{re=te.computation()}catch(ne){re=fe,te.error=ne}finally{consumerAfterComputation(te,ie)}ne!==me&&ne!==fe&&re!==fe&&te.equal(ne,re)?te.value=ne:(te.value=re,te.version++)}}))();let be=function defaultThrowError(){throw new Error};function throwInvalidWriteToSignalError(){be()}let Ce=null;function signalSetFn(te,ne){producerUpdatesAllowed()||throwInvalidWriteToSignalError(),te.equal(te.value,ne)||(te.value=ne,function signalValueChanged(te){te.version++,function producerIncrementEpoch(){ce++}(),producerNotifyConsumers(te),Ce?.()}(te))}const ye=(()=>({...ue,equal:defaultEquals,value:void 0}))();function createWatch(te,ne,ie){const re=Object.create(we);ie&&(re.consumerAllowSignalWrites=!0),re.fn=te,re.schedule=ne;const registerOnCleanup=te=>{re.cleanupFn=te};return re.ref={notify:()=>consumerMarkDirty(re),run:()=>{if(null===re.fn)return;if(function isInNotificationPhase(){return le}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(re.dirty=!1,re.hasRun&&!consumerPollProducersForChange(re))return;re.hasRun=!0;const te=consumerBeforeComputation(re);try{re.cleanupFn(),re.cleanupFn=NOOP_CLEANUP_FN,re.fn(registerOnCleanup)}finally{consumerAfterComputation(re,te)}},cleanup:()=>re.cleanupFn(),destroy:()=>function destroyWatchNode(te){(function isWatchNodeDestroyed(te){return null===te.fn&&null===te.schedule})(te)||(consumerDestroy(te),te.cleanupFn(),te.fn=null,te.schedule=null,te.cleanupFn=NOOP_CLEANUP_FN)}(re),[de]:re},re.ref}const NOOP_CLEANUP_FN=()=>{},we=(()=>({...ue,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:te=>{null!==te.schedule&&te.schedule(te.ref)},hasRun:!1,cleanupFn:NOOP_CLEANUP_FN}))();var ke=ie(8447),Se=ie(5710),xe=ie(1217),Ee=ie(7947);const Me="https://g.co/ng/security#xss";class RuntimeError extends Error{constructor(te,ne){super(formatRuntimeError(te,ne)),this.code=te}}function formatRuntimeError(te,ne){return`${`NG0${Math.abs(te)}`}${ne?": "+ne:""}`}const Ne=Symbol("InputSignalNode#UNSET"),Re=(()=>({...ye,transformFn:void 0,applyValueToInputSignal(te,ne){signalSetFn(te,ne)}}))();function createInputSignal(te,ne){const ie=Object.create(Re);function inputValueFn(){if(producerAccessed(ie),ie.value===Ne)throw new RuntimeError(-950,void 0);return ie.value}return ie.value=te,ie.transformFn=ne?.transform,inputValueFn[de]=ie,inputValueFn}class EventEmitter_ extends ke.B{constructor(te=!1){super(),this.__isAsync=te}emit(te){super.next(te)}subscribe(te,ne,ie){let re=te,le=ne||(()=>null),ce=ie;if(te&&"object"==typeof te){const ne=te;re=ne.next?.bind(ne),le=ne.error?.bind(ne),ce=ne.complete?.bind(ne)}this.__isAsync&&(le=_wrapInTimeout(le),re&&(re=_wrapInTimeout(re)),ce&&(ce=_wrapInTimeout(ce)));const de=super.subscribe({next:re,error:le,complete:ce});return te instanceof Se.yU&&te.add(de),de}}function _wrapInTimeout(te){return ne=>{setTimeout(te,void 0,ne)}}const Le=EventEmitter_;function inputFunction(te,ne){return createInputSignal(te,ne)}function inputRequiredFunction(te){return createInputSignal(Ne,te)}const Oe=(()=>(inputFunction.required=inputRequiredFunction,inputFunction))();var Pe=function(te){return te[te.Default=0]="Default",te[te.Host=1]="Host",te[te.Self=2]="Self",te[te.SkipSelf=4]="SkipSelf",te[te.Optional=8]="Optional",te}(Pe||{});function stringify(te){if("string"==typeof te)return te;if(Array.isArray(te))return"["+te.map(stringify).join(", ")+"]";if(null==te)return""+te;if(te.overriddenName)return`${te.overriddenName}`;if(te.name)return`${te.name}`;const ne=te.toString();if(null==ne)return""+ne;const ie=ne.indexOf("\n");return-1===ie?ne:ne.substring(0,ie)}function concatStringsWithSpace(te,ne){return null==te||""===te?null===ne?"":ne:null==ne||""===ne?te:te+" "+ne}function throwError(te,ne,ie,re){throw new Error(`ASSERTION ERROR: ${te}`+(null==re?"":` [Expected=> ${ie} ${re} ${ne} <=Actual]`))}var Fe=function(te){return te[te.OnPush=0]="OnPush",te[te.Default=1]="Default",te}(Fe||{}),je=function(te){return te[te.Emulated=0]="Emulated",te[te.None=2]="None",te[te.ShadowDom=3]="ShadowDom",te}(je||{});function noSideEffects(te){return{toString:te}.toString()}const Ve=globalThis;function initNgDevMode(){return function ngDevModeResetPerfCounters(){const te="undefined"!=typeof location?location.toString():"",ne={namedConstructors:-1!=te.indexOf("ngDevMode=namedConstructors"),firstCreatePass:0,tNode:0,tView:0,rendererCreateTextNode:0,rendererSetText:0,rendererCreateElement:0,rendererAddEventListener:0,rendererSetAttribute:0,rendererRemoveAttribute:0,rendererSetProperty:0,rendererSetClassName:0,rendererAddClass:0,rendererRemoveClass:0,rendererSetStyle:0,rendererRemoveStyle:0,rendererDestroy:0,rendererDestroyNode:0,rendererMoveNode:0,rendererRemoveNode:0,rendererAppendChild:0,rendererInsertBefore:0,rendererCreateComment:0,hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0};return-1===te.indexOf("ngDevMode=false")?("object"!=typeof Ve.ngDevMode&&(Ve.ngDevMode={}),Object.assign(Ve.ngDevMode,ne)):Ve.ngDevMode=!1,ne}(),!1}const Ge={},ze=[];function getClosureSafeProperty(te){for(let ne in te)if(te[ne]===getClosureSafeProperty)return ne;throw Error("Could not find renamed property on target object.")}function fillProperties(te,ne){for(const ie in ne)ne.hasOwnProperty(ie)&&!te.hasOwnProperty(ie)&&(te[ie]=ne[ie])}const He=getClosureSafeProperty({ɵcmp:getClosureSafeProperty}),$e=getClosureSafeProperty({ɵdir:getClosureSafeProperty}),qe=getClosureSafeProperty({ɵpipe:getClosureSafeProperty}),Ye=getClosureSafeProperty({ɵmod:getClosureSafeProperty}),Xe=getClosureSafeProperty({ɵfac:getClosureSafeProperty}),Ke=getClosureSafeProperty({__NG_ELEMENT_ID__:getClosureSafeProperty}),Qe=getClosureSafeProperty({__NG_ENV_ID__:getClosureSafeProperty});var Je=function(te){return te[te.None=0]="None",te[te.SignalBased=1]="SignalBased",te[te.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",te}(Je||{});function classIndexOf(te,ne,ie){let re=te.length;for(;;){const le=te.indexOf(ne,ie);if(-1===le)return le;if(0===le||te.charCodeAt(le-1)<=32){const ie=ne.length;if(le+ie===re||te.charCodeAt(le+ie)<=32)return le}ie=le+1}}function setUpAttributes(te,ne,ie){let re=0;for(;re<ie.length;){const le=ie[re];if("number"==typeof le){if(0!==le)break;re++;const ce=ie[re++],de=ie[re++],ue=ie[re++];te.setAttribute(ne,de,ue,ce)}else{const ce=le,de=ie[++re];isAnimationProp(ce)?te.setProperty(ne,ce,de):te.setAttribute(ne,ce,de),re++}}return re}function isNameOnlyAttributeMarker(te){return 3===te||4===te||6===te}function isAnimationProp(te){return 64===te.charCodeAt(0)}function mergeHostAttrs(te,ne){if(null===ne||0===ne.length);else if(null===te||0===te.length)te=ne.slice();else{let ie=-1;for(let re=0;re<ne.length;re++){const le=ne[re];"number"==typeof le?ie=le:0===ie||mergeHostAttribute(te,ie,le,null,-1===ie||2===ie?ne[++re]:null)}}return te}function mergeHostAttribute(te,ne,ie,re,le){let ce=0,de=te.length;if(-1===ne)de=-1;else for(;ce<te.length;){const ie=te[ce++];if("number"==typeof ie){if(ie===ne){de=-1;break}if(ie>ne){de=ce-1;break}}}for(;ce<te.length;){const ne=te[ce];if("number"==typeof ne)break;if(ne===ie){if(null===re)return void(null!==le&&(te[ce+1]=le));if(re===te[ce+1])return void(te[ce+2]=le)}ce++,null!==re&&ce++,null!==le&&ce++}-1!==de&&(te.splice(de,0,ne),ce=de+1),te.splice(ce++,0,ie),null!==re&&te.splice(ce++,0,re),null!==le&&te.splice(ce++,0,le)}const dt="ng-template";function isCssClassMatching(te,ne,ie){let re=0,le=!0;for(;re<te.length;){let ce=te[re++];if("string"==typeof ce&&le){const le=te[re++];if(ie&&"class"===ce&&-1!==classIndexOf(le.toLowerCase(),ne,0))return!0}else{if(1===ce){for(;re<te.length&&"string"==typeof(ce=te[re++]);)if(ce.toLowerCase()===ne)return!0;return!1}"number"==typeof ce&&(le=!1)}}return!1}function isInlineTemplate(te){return 4===te.type&&te.value!==dt}function hasTagAndTypeMatch(te,ne,ie){return ne===(4!==te.type||ie?te.value:dt)}function isNodeMatchingSelector(te,ne,ie){let re=4;const le=te.attrs||[],ce=function getNameOnlyMarkerIndex(te){for(let ne=0;ne<te.length;ne++){if(isNameOnlyAttributeMarker(te[ne]))return ne}return te.length}(le);let de=!1;for(let ue=0;ue<ne.length;ue++){const me=ne[ue];if("number"!=typeof me){if(!de)if(4&re){if(re=2|1&re,""!==me&&!hasTagAndTypeMatch(te,me,ie)||""===me&&1===ne.length){if(isPositive(re))return!1;de=!0}}else{const ge=8&re?me:ne[++ue];if(8&re&&null!==te.attrs){if(!isCssClassMatching(te.attrs,ge,ie)){if(isPositive(re))return!1;de=!0}continue}const fe=findAttrIndexInNode(8&re?"class":me,le,isInlineTemplate(te),ie);if(-1===fe){if(isPositive(re))return!1;de=!0;continue}if(""!==ge){let te;te=fe>ce?"":le[fe+1].toLowerCase();const ne=8&re?te:null;if(ne&&-1!==classIndexOf(ne,ge,0)||2&re&&ge!==te){if(isPositive(re))return!1;de=!0}}}}else{if(!de&&!isPositive(re)&&!isPositive(me))return!1;if(de&&isPositive(me))continue;de=!1,re=me|1&re}}return isPositive(re)||de}function isPositive(te){return 0==(1&te)}function findAttrIndexInNode(te,ne,ie,re){if(null===ne)return-1;let le=0;if(re||!ie){let ie=!1;for(;le<ne.length;){const re=ne[le];if(re===te)return le;if(3===re||6===re)ie=!0;else{if(1===re||2===re){let te=ne[++le];for(;"string"==typeof te;)te=ne[++le];continue}if(4===re)break;if(0===re){le+=4;continue}}le+=ie?1:2}return-1}return function matchTemplateAttribute(te,ne){let ie=te.indexOf(4);if(ie>-1)for(ie++;ie<te.length;){const re=te[ie];if("number"==typeof re)return-1;if(re===ne)return ie;ie++}return-1}(ne,te)}function isNodeMatchingSelectorList(te,ne,ie=!1){for(let re=0;re<ne.length;re++)if(isNodeMatchingSelector(te,ne[re],ie))return!0;return!1}function isSelectorInSelectorList(te,ne){e:for(let ie=0;ie<ne.length;ie++){const re=ne[ie];if(te.length===re.length){for(let ne=0;ne<te.length;ne++)if(te[ne]!==re[ne])continue e;return!0}}return!1}function maybeWrapInNotSelector(te,ne){return te?":not("+ne.trim()+")":ne}function stringifyCSSSelector(te){let ne=te[0],ie=1,re=2,le="",ce=!1;for(;ie<te.length;){let de=te[ie];if("string"==typeof de)if(2&re){const ne=te[++ie];le+="["+de+(ne.length>0?'="'+ne+'"':"")+"]"}else 8&re?le+="."+de:4&re&&(le+=" "+de);else""===le||isPositive(de)||(ne+=maybeWrapInNotSelector(ce,le),le=""),re=de,ce=ce||!isPositive(re);ie++}return""!==le&&(ne+=maybeWrapInNotSelector(ce,le)),ne}function stringifyCSSSelectorList(te){return te.map(stringifyCSSSelector).join(",")}function ɵɵdefineComponent(te){return noSideEffects((()=>{initNgDevMode();const ne=getNgDirectiveDef(te),ie={...ne,decls:te.decls,vars:te.vars,template:te.template,consts:te.consts||null,ngContentSelectors:te.ngContentSelectors,onPush:te.changeDetection===Fe.OnPush,directiveDefs:null,pipeDefs:null,dependencies:ne.standalone&&te.dependencies||null,getStandaloneInjector:null,signals:te.signals??!1,data:te.data||{},encapsulation:te.encapsulation||je.Emulated,styles:te.styles||ze,_:null,schemas:te.schemas||null,tView:null,id:""};initFeatures(ie);const re=te.dependencies;return ie.directiveDefs=extractDefListOrFactory(re,!1),ie.pipeDefs=extractDefListOrFactory(re,!0),ie.id=function getComponentId(te){let ne=0;const ie=[te.selectors,te.ngContentSelectors,te.hostVars,te.hostAttrs,te.consts,te.vars,te.decls,te.encapsulation,te.standalone,te.signals,te.exportAs,JSON.stringify(te.inputs),JSON.stringify(te.outputs),Object.getOwnPropertyNames(te.type.prototype),!!te.contentQueries,!!te.viewQuery].join("|");for(const te of ie)ne=Math.imul(31,ne)+te.charCodeAt(0)<<0;ne+=2147483648;const re="c"+ne;if(pt.has(re)){const ne=pt.get(re);ne!==te.type&&console.warn(formatRuntimeError(-912,`Component ID generation collision detected. Components '${ne.name}' and '${te.type.name}' with selector '${stringifyCSSSelectorList(te.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`))}else pt.set(re,te.type);return re}(ie),ie}))}function extractDirectiveDef(te){return getComponentDef(te)||getDirectiveDef(te)}function nonNull(te){return null!==te}function ɵɵdefineNgModule(te){return noSideEffects((()=>({type:te.type,bootstrap:te.bootstrap||ze,declarations:te.declarations||ze,imports:te.imports||ze,exports:te.exports||ze,transitiveCompileScopes:null,schemas:te.schemas||null,id:te.id||null})))}function parseAndConvertBindingsForDefinition(te,ne){if(null==te)return Ge;const ie={};for(const re in te)if(te.hasOwnProperty(re)){const le=te[re];let ce,de,ue=Je.None;Array.isArray(le)?(ue=le[0],ce=le[1],de=le[2]??ce):(ce=le,de=le),ne?(ie[ce]=ue!==Je.None?[re,ue]:re,ne[ce]=de):ie[ce]=re}return ie}function ɵɵdefineDirective(te){return noSideEffects((()=>{const ne=getNgDirectiveDef(te);return initFeatures(ne),ne}))}function ɵɵdefinePipe(te){return{type:te.type,name:te.name,factory:null,pure:!1!==te.pure,standalone:!0===te.standalone,onDestroy:te.type.prototype.ngOnDestroy||null}}function getComponentDef(te){return te[He]||null}function getDirectiveDef(te){return te[$e]||null}function getPipeDef$1(te){return te[qe]||null}function isStandalone(te){const ne=getComponentDef(te)||getDirectiveDef(te)||getPipeDef$1(te);return null!==ne&&ne.standalone}function getNgModuleDef(te,ne){const ie=te[Ye]||null;if(!ie&&!0===ne)throw new Error(`Type ${stringify(te)} does not have 'ɵmod' property.`);return ie}function getNgDirectiveDef(te){const ne={};return{type:te.type,providersResolver:null,factory:null,hostBindings:te.hostBindings||null,hostVars:te.hostVars||0,hostAttrs:te.hostAttrs||null,contentQueries:te.contentQueries||null,declaredInputs:ne,inputTransforms:null,inputConfig:te.inputs||Ge,exportAs:te.exportAs||null,standalone:!0===te.standalone,signals:!0===te.signals,selectors:te.selectors||ze,viewQuery:te.viewQuery||null,features:te.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:parseAndConvertBindingsForDefinition(te.inputs,ne),outputs:parseAndConvertBindingsForDefinition(te.outputs),debugInfo:null}}function initFeatures(te){te.features?.forEach((ne=>ne(te)))}function extractDefListOrFactory(te,ne){if(!te)return null;const ie=ne?getPipeDef$1:extractDirectiveDef;return()=>("function"==typeof te?te():te).map((te=>ie(te))).filter(nonNull)}const pt=new Map;const Ct=0,vt=1,It=2,Dt=3,Mt=4,Nt=5,Rt=6,Ot=7,Vt=8,Gt=9,zt=10,Ht=11,Ut=12,$t=13,Yt=14,Wt=15,Kt=16,Qt=17,Jt=18,Zt=19,tn=20,nn=21,rn=22,an=23,sn=25,dn=1,un=7,pn=9,hn=10;var fn=function(te){return te[te.None=0]="None",te[te.HasTransplantedViews=2]="HasTransplantedViews",te}(fn||{});function isLView(te){return Array.isArray(te)&&"object"==typeof te[dn]}function isLContainer(te){return Array.isArray(te)&&!0===te[dn]}function isContentQueryHost(te){return 0!=(4&te.flags)}function isComponentHost(te){return te.componentOffset>-1}function isDirectiveHost(te){return 1==(1&te.flags)}function isComponentDef(te){return!!te.template}function isRootView(te){return 0!=(512&te[It])}const _n="svg",bn="math";let yn=!1;function unwrapRNode(te){for(;Array.isArray(te);)te=te[Ct];return te}function getNativeByIndex(te,ne){return unwrapRNode(ne[te])}function getNativeByTNode(te,ne){return unwrapRNode(ne[te.index])}function getTNode(te,ne){return te.data[ne]}function load(te,ne){return te[ne]}function getComponentLViewByIndex(te,ne){const ie=ne[te];return isLView(ie)?ie:ie[Ct]}function viewAttachedToChangeDetector(te){return 128==(128&te[It])}function getConstant(te,ne){return null==ne?null:te[ne]}function resetPreOrderHookFlags(te){te[Qt]=0}function markViewForRefresh(te){1024&te[It]||(te[It]|=1024,viewAttachedToChangeDetector(te)&&markAncestorsForTraversal(te))}function walkUpViews(te,ne){for(;te>0;)ne=ne[Yt],te--;return ne}function requiresRefreshOrTraversal(te){return!!(9216&te[It]||te[an]?.dirty)}function updateAncestorTraversalFlagsOnAttach(te){requiresRefreshOrTraversal(te)?markAncestorsForTraversal(te):64&te[It]&&(!function getEnsureDirtyViewsAreAlwaysReachable(){return yn}()?te[zt].changeDetectionScheduler?.notify():(te[It]|=1024,markAncestorsForTraversal(te)))}function markAncestorsForTraversal(te){te[zt].changeDetectionScheduler?.notify();let ne=getLViewParent(te);for(;null!==ne&&!(8192&ne[It])&&(ne[It]|=8192,viewAttachedToChangeDetector(ne));)ne=getLViewParent(ne)}function storeLViewOnDestroy(te,ne){if(256==(256&te[It]))throw new RuntimeError(911,void 0);null===te[nn]&&(te[nn]=[]),te[nn].push(ne)}function removeLViewOnDestroy(te,ne){if(null===te[nn])return;const ie=te[nn].indexOf(ne);-1!==ie&&te[nn].splice(ie,1)}function getLViewParent(te){const ne=te[Dt];return isLContainer(ne)?ne[Dt]:ne}const wn={lFrame:createLFrame(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function getBindingsEnabled(){return wn.bindingsEnabled}function isInSkipHydrationBlock$1(){return null!==wn.skipHydrationRootTNode}function getLView(){return wn.lFrame.lView}function getTView(){return wn.lFrame.tView}function ɵɵrestoreView(te){return wn.lFrame.contextLView=te,te[Vt]}function ɵɵresetView(te){return wn.lFrame.contextLView=null,te}function getCurrentTNode(){let te=getCurrentTNodePlaceholderOk();for(;null!==te&&64===te.type;)te=te.parent;return te}function getCurrentTNodePlaceholderOk(){return wn.lFrame.currentTNode}function getCurrentParentTNode(){const te=wn.lFrame,ne=te.currentTNode;return te.isParent?ne:ne.parent}function setCurrentTNode(te,ne){const ie=wn.lFrame;ie.currentTNode=te,ie.isParent=ne}function isCurrentTNodeParent(){return wn.lFrame.isParent}function setCurrentTNodeAsNotParent(){wn.lFrame.isParent=!1}function getBindingRoot(){const te=wn.lFrame;let ne=te.bindingRootIndex;return-1===ne&&(ne=te.bindingRootIndex=te.tView.bindingStartIndex),ne}function getBindingIndex(){return wn.lFrame.bindingIndex}function setBindingIndex(te){return wn.lFrame.bindingIndex=te}function nextBindingIndex(){return wn.lFrame.bindingIndex++}function incrementBindingIndex(te){const ne=wn.lFrame,ie=ne.bindingIndex;return ne.bindingIndex=ne.bindingIndex+te,ie}function setBindingRootForHostBindings(te,ne){const ie=wn.lFrame;ie.bindingIndex=ie.bindingRootIndex=te,setCurrentDirectiveIndex(ne)}function setCurrentDirectiveIndex(te){wn.lFrame.currentDirectiveIndex=te}function getCurrentDirectiveDef(te){const ne=wn.lFrame.currentDirectiveIndex;return-1===ne?null:te[ne]}function getCurrentQueryIndex(){return wn.lFrame.currentQueryIndex}function setCurrentQueryIndex(te){wn.lFrame.currentQueryIndex=te}function getDeclarationTNode(te){const ne=te[vt];return 2===ne.type?ne.declTNode:1===ne.type?te[Nt]:null}function enterDI(te,ne,ie){if(ie&Pe.SkipSelf){let re=ne,le=te;for(;!(re=re.parent,null!==re||ie&Pe.Host||(re=getDeclarationTNode(le),null===re)||(le=le[Yt],10&re.type)););if(null===re)return!1;ne=re,te=le}const re=wn.lFrame=allocLFrame();return re.currentTNode=ne,re.lView=te,!0}function enterView(te){const ne=allocLFrame();const ie=te[vt];wn.lFrame=ne,ne.currentTNode=ie.firstChild,ne.lView=te,ne.tView=ie,ne.contextLView=te,ne.bindingIndex=ie.bindingStartIndex,ne.inI18n=!1}function allocLFrame(){const te=wn.lFrame,ne=null===te?null:te.child;return null===ne?createLFrame(te):ne}function createLFrame(te){const ne={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:te,child:null,inI18n:!1};return null!==te&&(te.child=ne),ne}function leaveViewLight(){const te=wn.lFrame;return wn.lFrame=te.parent,te.currentTNode=null,te.lView=null,te}const kn=leaveViewLight;function leaveView(){const te=leaveViewLight();te.isParent=!0,te.tView=null,te.selectedIndex=-1,te.contextLView=null,te.elementDepthCount=0,te.currentDirectiveIndex=-1,te.currentNamespace=null,te.bindingRootIndex=-1,te.bindingIndex=-1,te.currentQueryIndex=0}function getSelectedIndex(){return wn.lFrame.selectedIndex}function setSelectedIndex(te){wn.lFrame.selectedIndex=te}function getSelectedTNode(){const te=wn.lFrame;return getTNode(te.tView,te.selectedIndex)}function ɵɵnamespaceSVG(){wn.lFrame.currentNamespace=_n}function ɵɵnamespaceHTML(){!function namespaceHTMLInternal(){wn.lFrame.currentNamespace=null}()}function getNamespace$1(){return wn.lFrame.currentNamespace}let In=!0;function wasLastNodeCreated(){return In}function lastNodeWasCreated(te){In=te}function injectElementRef(){return createElementRef(getCurrentTNode(),getLView())}function createElementRef(te,ne){return new Tn(getNativeByTNode(te,ne))}let Tn=(()=>{class ElementRef{constructor(te){this.nativeElement=te}static#e=this.__NG_ELEMENT_ID__=injectElementRef}return ElementRef})();function unwrapElementRef(te){return te instanceof Tn?te.nativeElement:te}function flatten(te){return te.flat(Number.POSITIVE_INFINITY)}function deepForEach(te,ne){te.forEach((te=>Array.isArray(te)?deepForEach(te,ne):ne(te)))}function addToArray(te,ne,ie){ne>=te.length?te.push(ie):te.splice(ne,0,ie)}function removeFromArray(te,ne){return ne>=te.length-1?te.pop():te.splice(ne,1)[0]}function newArray(te,ne){const ie=[];for(let re=0;re<te;re++)ie.push(ne);return ie}function arrayInsert2(te,ne,ie,re){let le=te.length;if(le==ne)te.push(ie,re);else if(1===le)te.push(re,te[0]),te[0]=ie;else{for(le--,te.push(te[le-1],te[le]);le>ne;){const ne=le-2;te[le]=te[ne],le--}te[ne]=ie,te[ne+1]=re}}function keyValueArraySet(te,ne,ie){let re=keyValueArrayIndexOf(te,ne);return re>=0?te[1|re]=ie:(re=~re,arrayInsert2(te,re,ne,ie)),re}function keyValueArrayGet(te,ne){const ie=keyValueArrayIndexOf(te,ne);if(ie>=0)return te[1|ie]}function keyValueArrayIndexOf(te,ne){return _arrayIndexOfSorted(te,ne,1)}function _arrayIndexOfSorted(te,ne,ie){let re=0,le=te.length>>ie;for(;le!==re;){const ce=re+(le-re>>1),de=te[ce<<ie];if(ne===de)return ce<<ie;de>ne?le=ce:re=ce+1}return~(le<<ie)}function symbolIterator(){return this._results[Symbol.iterator]()}class QueryList{static#e=Symbol.iterator;get changes(){return this._changes??=new Le}constructor(te=!1){this._emitDistinctChangesOnly=te,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const ne=QueryList.prototype;ne[Symbol.iterator]||(ne[Symbol.iterator]=symbolIterator)}get(te){return this._results[te]}map(te){return this._results.map(te)}filter(te){return this._results.filter(te)}find(te){return this._results.find(te)}reduce(te,ne){return this._results.reduce(te,ne)}forEach(te){this._results.forEach(te)}some(te){return this._results.some(te)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(te,ne){this.dirty=!1;const ie=flatten(te);(this._changesDetected=!function arrayEquals(te,ne,ie){if(te.length!==ne.length)return!1;for(let re=0;re<te.length;re++){let le=te[re],ce=ne[re];if(ie&&(le=ie(le),ce=ie(ce)),ce!==le)return!1}return!0}(this._results,ie,ne))&&(this._results=ie,this.length=ie.length,this.last=ie[this.length-1],this.first=ie[0])}notifyOnChanges(){void 0===this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}onDirty(te){this._onDirty=te}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function hasInSkipHydrationBlockFlag(te){return 128==(128&te.flags)}let Dn;function setDocument(te){Dn=te}function getDocument(){if(void 0!==Dn)return Dn;if("undefined"!=typeof document)return document;throw new RuntimeError(210,"The document object is not available in this context. Make sure the DOCUMENT injection token is provided.")}function ɵɵdefineInjectable(te){return{token:te.token,providedIn:te.providedIn||null,factory:te.factory,value:void 0}}function ɵɵdefineInjector(te){return{providers:te.providers||[],imports:te.imports||[]}}function getInjectableDef(te){return getOwnDefinition(te,xn)||getOwnDefinition(te,Rn)}function isInjectable(te){return null!==getInjectableDef(te)}function getOwnDefinition(te,ne){return te.hasOwnProperty(ne)?te[ne]:null}function getInjectorDef(te){return te&&(te.hasOwnProperty(En)||te.hasOwnProperty(Ln))?te[En]:null}const xn=getClosureSafeProperty({ɵprov:getClosureSafeProperty}),En=getClosureSafeProperty({ɵinj:getClosureSafeProperty}),Rn=getClosureSafeProperty({ngInjectableDef:getClosureSafeProperty}),Ln=getClosureSafeProperty({ngInjectorDef:getClosureSafeProperty});class InjectionToken{constructor(te,ne){this._desc=te,this.ngMetadataName="InjectionToken",this.ɵprov=void 0,"number"==typeof ne?(function assertLessThan(te,ne,ie){te<ne||throwError(ie,te,ne,"<")}(ne,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=ne):void 0!==ne&&(this.ɵprov=ɵɵdefineInjectable({token:this,providedIn:ne.providedIn||"root",factory:ne.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const On=new InjectionToken("",{providedIn:"root",factory:()=>Pn}),Pn="ng",Fn=new InjectionToken(""),jn=new InjectionToken("",{providedIn:"platform",factory:()=>"unknown"}),Vn=new InjectionToken(""),Gn=new InjectionToken("",{providedIn:"root",factory:()=>getDocument().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),zn=getClosureSafeProperty({__forward_ref__:getClosureSafeProperty});function forwardRef(te){return te.__forward_ref__=forwardRef,te.toString=function(){return stringify(this())},te}function resolveForwardRef(te){return isForwardRef(te)?te():te}function isForwardRef(te){return"function"==typeof te&&te.hasOwnProperty(zn)&&te.__forward_ref__===forwardRef}function isEnvironmentProviders(te){return te&&!!te.ɵproviders}function renderStringify(te){return"string"==typeof te?te:null==te?"":String(te)}function stringifyForError(te){return"function"==typeof te?te.name||te.toString():"object"==typeof te&&null!=te&&"function"==typeof te.type?te.type.name||te.type.toString():renderStringify(te)}function throwProviderNotFoundError(te,ne){throw new RuntimeError(-201,undefined)}let Hn;function getInjectImplementation(){return Hn}function setInjectImplementation(te){const ne=Hn;return Hn=te,ne}function injectRootLimpMode(te,ne,ie){const re=getInjectableDef(te);return re&&"root"==re.providedIn?void 0===re.value?re.value=re.factory():re.value:ie&Pe.Optional?null:void 0!==ne?ne:void throwProviderNotFoundError()}const Un={},$n="__NG_DI_FLAG__",qn="ngTempTokenPath",Yn=/\n/gm,Wn="ɵ",Kn="__source";let Qn;function setCurrentInjector(te){const ne=Qn;return Qn=te,ne}function injectInjectorOnly(te,ne=Pe.Default){if(void 0===Qn)throw new RuntimeError(-203,void 0);if(null===Qn)return injectRootLimpMode(te,void 0,ne);return Qn.get(te,ne&Pe.Optional?null:void 0,ne)}function ɵɵinject(te,ne=Pe.Default){return(getInjectImplementation()||injectInjectorOnly)(resolveForwardRef(te),ne)}function inject(te,ne=Pe.Default){return ɵɵinject(te,convertToBitFlags(ne))}function convertToBitFlags(te){return void 0===te||"number"==typeof te?te:0|(te.optional&&8)|(te.host&&1)|(te.self&&2)|(te.skipSelf&&4)}function injectArgs(te){const ne=[];for(let ie=0;ie<te.length;ie++){const re=resolveForwardRef(te[ie]);if(Array.isArray(re)){if(0===re.length)throw new RuntimeError(900,void 0);let te,ie=Pe.Default;for(let ne=0;ne<re.length;ne++){const le=re[ne],ce=le[$n];"number"==typeof ce?-1===ce?te=le.token:ie|=ce:te=le}ne.push(ɵɵinject(te,ie))}else ne.push(ɵɵinject(re))}return ne}function attachInjectFlag(te,ne){return te[$n]=ne,te.prototype[$n]=ne,te}function catchInjectorError(te,ne,ie,re){const le=te[qn];throw ne[Kn]&&le.unshift(ne[Kn]),te.message=function formatError(te,ne,ie,re=null){te=te&&"\n"===te.charAt(0)&&te.charAt(1)==Wn?te.slice(2):te;let le=stringify(ne);if(Array.isArray(ne))le=ne.map(stringify).join(" -> ");else if("object"==typeof ne){let te=[];for(let ie in ne)if(ne.hasOwnProperty(ie)){let re=ne[ie];te.push(ie+":"+("string"==typeof re?JSON.stringify(re):stringify(re)))}le=`{${te.join(", ")}}`}return`${ie}${re?"("+re+")":""}[${le}]: ${te.replace(Yn,"\n  ")}`}("\n"+te.message,le,ie,re),te.ngTokenPath=le,te[qn]=null,te}let _retrieveHydrationInfoImpl=()=>null;function retrieveHydrationInfo(te,ne,ie=!1){return _retrieveHydrationInfoImpl(te,ne,ie)}const Jn="__parameters__";function makeMetadataCtor(te){return function ctor(...ne){if(te){const ie=te(...ne);for(const te in ie)this[te]=ie[te]}}}function makeParamDecorator(te,ne,ie){return noSideEffects((()=>{const re=makeMetadataCtor(ne);function ParamDecoratorFactory(...te){if(this instanceof ParamDecoratorFactory)return re.apply(this,te),this;const ne=new ParamDecoratorFactory(...te);return ParamDecorator.annotation=ne,ParamDecorator;function ParamDecorator(te,ie,re){const le=te.hasOwnProperty(Jn)?te[Jn]:Object.defineProperty(te,Jn,{value:[]})[Jn];for(;le.length<=re;)le.push(null);return(le[re]=le[re]||[]).push(ne),te}}return ie&&(ParamDecoratorFactory.prototype=Object.create(ie.prototype)),ParamDecoratorFactory.prototype.ngMetadataName=te,ParamDecoratorFactory.annotationCls=ParamDecoratorFactory,ParamDecoratorFactory}))}const Zn=attachInjectFlag(makeParamDecorator("Optional"),8),pi=attachInjectFlag(makeParamDecorator("SkipSelf"),4);function getFactoryDef(te,ne){const ie=te.hasOwnProperty(Xe);return ie?te[Xe]:null}const gi=new InjectionToken(""),fi=new InjectionToken("",-1),yi=new InjectionToken("");class NullInjector{get(te,ne=Un){if(ne===Un){const ne=new Error(`NullInjectorError: No provider for ${stringify(te)}!`);throw ne.name="NullInjectorError",ne}return ne}}function makeEnvironmentProviders(te){return{ɵproviders:te}}function importProvidersFrom(...te){return{ɵproviders:internalImportProvidersFrom(!0,te),ɵfromNgModule:!0}}function internalImportProvidersFrom(te,...ne){const ie=[],re=new Set;let le;const collectProviders=te=>{ie.push(te)};return deepForEach(ne,(ne=>{if(te){const te=getComponentDef(ne);if(te?.standalone)throw new RuntimeError(800,`Importing providers supports NgModule or ModuleWithProviders but got a standalone component "${stringifyForError(ne)}"`)}const ie=ne;walkProviderTree(ie,collectProviders,[],re)&&(le||=[],le.push(ie))})),void 0!==le&&processInjectorTypesWithProviders(le,collectProviders),ie}function processInjectorTypesWithProviders(te,ne){for(let ie=0;ie<te.length;ie++){const{ngModule:re,providers:le}=te[ie];deepForEachProvider(le,(te=>{ne(te,re)}))}}function walkProviderTree(te,ne,ie,re){if(!(te=resolveForwardRef(te)))return!1;let le=null,ce=getInjectorDef(te);const de=!ce&&getComponentDef(te);if(ce||de){if(de&&!de.standalone)return!1;le=te}else{const ne=te.ngModule;if(ce=getInjectorDef(ne),!ce)return!1;le=ne}const ue=re.has(le);if(de){if(ue)return!1;if(re.add(le),de.dependencies){const te="function"==typeof de.dependencies?de.dependencies():de.dependencies;for(const le of te)walkProviderTree(le,ne,ie,re)}}else{if(!ce)return!1;{if(null!=ce.imports&&!ue){let te;re.add(le);try{deepForEach(ce.imports,(le=>{walkProviderTree(le,ne,ie,re)&&(te||=[],te.push(le))}))}finally{}void 0!==te&&processInjectorTypesWithProviders(te,ne)}if(!ue){const te=getFactoryDef(le)||(()=>new le);ne({provide:le,useFactory:te,deps:ze},le),ne({provide:yi,useValue:le,multi:!0},le),ne({provide:gi,useValue:()=>ɵɵinject(le),multi:!0},le)}const de=ce.providers;if(null!=de&&!ue){const ie=te;deepForEachProvider(de,(te=>{ne(te,ie)}))}}}return le!==te&&void 0!==te.providers}function deepForEachProvider(te,ne){for(let ie of te)isEnvironmentProviders(ie)&&(ie=ie.ɵproviders),Array.isArray(ie)?deepForEachProvider(ie,ne):ne(ie)}const ki=getClosureSafeProperty({provide:String,useValue:getClosureSafeProperty});function isValueProvider(te){return null!==te&&"object"==typeof te&&ki in te}function isExistingProvider(te){return!(!te||!te.useExisting)}function isFactoryProvider(te){return!(!te||!te.useFactory)}function isTypeProvider(te){return"function"==typeof te}const Ri=new InjectionToken(""),Pi={},Fi={};let ji;function getNullInjector(){return void 0===ji&&(ji=new NullInjector),ji}class EnvironmentInjector{}class R3Injector extends EnvironmentInjector{get destroyed(){return this._destroyed}constructor(te,ne,ie,re){super(),this.parent=ne,this.source=ie,this.scopes=re,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,forEachSingleProvider(te,(te=>this.processProvider(te))),this.records.set(fi,makeRecord(void 0,this)),re.has("environment")&&this.records.set(EnvironmentInjector,makeRecord(void 0,this));const le=this.records.get(Ri);null!=le&&"string"==typeof le.value&&this.scopes.add(le.value),this.injectorDefTypes=new Set(this.get(yi,ze,Pe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const te of this._ngOnDestroyHooks)te.ngOnDestroy();const te=this._onDestroyHooks;this._onDestroyHooks=[];for(const ne of te)ne()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(te){return this.assertNotDestroyed(),this._onDestroyHooks.push(te),()=>this.removeOnDestroy(te)}runInContext(te){this.assertNotDestroyed();const ne=setCurrentInjector(this),ie=setInjectImplementation(void 0);try{return te()}finally{setCurrentInjector(ne),setInjectImplementation(ie)}}get(te,ne=Un,ie=Pe.Default){if(this.assertNotDestroyed(),te.hasOwnProperty(Qe))return te[Qe](this);ie=convertToBitFlags(ie);const re=setCurrentInjector(this),le=setInjectImplementation(void 0);try{if(!(ie&Pe.SkipSelf)){let ne=this.records.get(te);if(void 0===ne){const ie=function couldBeInjectableType(te){return"function"==typeof te||"object"==typeof te&&te instanceof InjectionToken}(te)&&getInjectableDef(te);ne=ie&&this.injectableDefInScope(ie)?makeRecord(injectableDefOrInjectorDefFactory(te),Pi):null,this.records.set(te,ne)}if(null!=ne)return this.hydrate(te,ne)}const re=ie&Pe.Self?getNullInjector():this.parent;return ne=ie&Pe.Optional&&ne===Un?null:ne,re.get(te,ne)}catch(ne){if("NullInjectorError"===ne.name){if((ne[qn]=ne[qn]||[]).unshift(stringify(te)),re)throw ne;return catchInjectorError(ne,te,"R3InjectorError",this.source)}throw ne}finally{setInjectImplementation(le),setCurrentInjector(re)}}resolveInjectorInitializers(){const te=setCurrentInjector(this),ne=setInjectImplementation(void 0);try{const te=this.get(gi,ze,Pe.Self);0;for(const ne of te)ne()}finally{setCurrentInjector(te),setInjectImplementation(ne)}}toString(){const te=[],ne=this.records;for(const ie of ne.keys())te.push(stringify(ie));return`R3Injector[${te.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new RuntimeError(205,void 0)}processProvider(te){let ne=isTypeProvider(te=resolveForwardRef(te))?te:resolveForwardRef(te&&te.provide);const ie=function providerToRecord(te){if(isValueProvider(te))return makeRecord(void 0,te.useValue);return makeRecord(providerToFactory(te),Pi)}(te);if(isTypeProvider(te)||!0!==te.multi)0;else{let ie=this.records.get(ne);ie||(ie=makeRecord(void 0,Pi,!0),ie.factory=()=>injectArgs(ie.multi),this.records.set(ne,ie)),ne=te,ie.multi.push(te)}this.records.set(ne,ie)}hydrate(te,ne){return ne.value===Pi&&(ne.value=Fi,ne.value=ne.factory()),"object"==typeof ne.value&&ne.value&&function hasOnDestroy(te){return null!==te&&"object"==typeof te&&"function"==typeof te.ngOnDestroy}(ne.value)&&this._ngOnDestroyHooks.add(ne.value),ne.value}injectableDefInScope(te){if(!te.providedIn)return!1;const ne=resolveForwardRef(te.providedIn);return"string"==typeof ne?"any"===ne||this.scopes.has(ne):this.injectorDefTypes.has(ne)}removeOnDestroy(te){const ne=this._onDestroyHooks.indexOf(te);-1!==ne&&this._onDestroyHooks.splice(ne,1)}}function injectableDefOrInjectorDefFactory(te){const ne=getInjectableDef(te),ie=null!==ne?ne.factory:getFactoryDef(te);if(null!==ie)return ie;if(te instanceof InjectionToken)throw new RuntimeError(204,void 0);if(te instanceof Function)return function getUndecoratedInjectableFactory(te){const ne=te.length;if(ne>0)throw new RuntimeError(204,void 0);const ie=function getInheritedInjectableDef(te){return te&&(te[xn]||te[Rn])||null}(te);return null!==ie?()=>ie.factory(te):()=>new te}(te);throw new RuntimeError(204,void 0)}function providerToFactory(te,ne,ie){let re;if(isTypeProvider(te)){const ne=resolveForwardRef(te);return getFactoryDef(ne)||injectableDefOrInjectorDefFactory(ne)}if(isValueProvider(te))re=()=>resolveForwardRef(te.useValue);else if(isFactoryProvider(te))re=()=>te.useFactory(...injectArgs(te.deps||[]));else if(isExistingProvider(te))re=()=>ɵɵinject(resolveForwardRef(te.useExisting));else{const ne=resolveForwardRef(te&&(te.useClass||te.provide));if(!function hasDeps(te){return!!te.deps}(te))return getFactoryDef(ne)||injectableDefOrInjectorDefFactory(ne);re=()=>new ne(...injectArgs(te.deps))}return re}function makeRecord(te,ne,ie=!1){return{factory:te,value:ne,multi:ie?[]:void 0}}function forEachSingleProvider(te,ne){for(const ie of te)Array.isArray(ie)?forEachSingleProvider(ie,ne):ie&&isEnvironmentProviders(ie)?forEachSingleProvider(ie.ɵproviders,ne):ne(ie)}function runInInjectionContext(te,ne){te instanceof R3Injector&&te.assertNotDestroyed();const ie=setCurrentInjector(te),re=setInjectImplementation(void 0);try{return ne()}finally{setCurrentInjector(ie),setInjectImplementation(re)}}function assertInInjectionContext(te){if(!getInjectImplementation()&&!function getCurrentInjector(){return Qn}())throw new RuntimeError(-203,void 0)}function getCompilerFacade(te){const ne=Ve.ng;if(ne&&ne.ɵcompilerFacade)return ne.ɵcompilerFacade;{console.error(`JIT compilation failed for ${te.kind}`,te.type);let ne=`The ${te.kind} '${te.type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.\n\n`;throw 1===te.usage?(ne+=`The ${te.kind} is part of a library that has been partially compiled.\n`,ne+="However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\n",ne+="\n",ne+="Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\n"):ne+="JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\n",ne+="Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\n",ne+="or manually provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.",new Error(ne)}}function isType(te){return"function"==typeof te}class SimpleChange{constructor(te,ne,ie){this.previousValue=te,this.currentValue=ne,this.firstChange=ie}isFirstChange(){return this.firstChange}}function applyValueToInputField(te,ne,ie,re){null!==ne?ne.applyValueToInputSignal(ne,re):te[ie]=re}function ɵɵNgOnChangesFeature(){return NgOnChangesFeatureImpl}function NgOnChangesFeatureImpl(te){return te.type.prototype.ngOnChanges&&(te.setInput=ngOnChangesSetInput),rememberChangeHistoryAndInvokeOnChangesHook}function rememberChangeHistoryAndInvokeOnChangesHook(){const te=getSimpleChangesStore(this),ne=te?.current;if(ne){const ie=te.previous;if(ie===Ge)te.previous=ne;else for(let te in ne)ie[te]=ne[te];te.current=null,this.ngOnChanges(ne)}}function ngOnChangesSetInput(te,ne,ie,re,le){const ce=this.declaredInputs[re],de=getSimpleChangesStore(te)||function setSimpleChangesStore(te,ne){return te[Vi]=ne}(te,{previous:Ge,current:null}),ue=de.current||(de.current={}),me=de.previous,ge=me[ce];ue[ce]=new SimpleChange(ge&&ge.currentValue,ie,me===Ge),applyValueToInputField(te,ne,le,ie)}ɵɵNgOnChangesFeature.ngInherit=!0;const Vi="__ngSimpleChanges__";function getSimpleChangesStore(te){return te[Vi]||null}let eo=null;const profiler=function(te,ne,ie){null!=eo&&eo(te,ne,ie)};function registerPostOrderHooks(te,ne){for(let ie=ne.directiveStart,re=ne.directiveEnd;ie<re;ie++){const ne=te.data[ie].type.prototype,{ngAfterContentInit:re,ngAfterContentChecked:le,ngAfterViewInit:ce,ngAfterViewChecked:de,ngOnDestroy:ue}=ne;re&&(te.contentHooks??=[]).push(-ie,re),le&&((te.contentHooks??=[]).push(ie,le),(te.contentCheckHooks??=[]).push(ie,le)),ce&&(te.viewHooks??=[]).push(-ie,ce),de&&((te.viewHooks??=[]).push(ie,de),(te.viewCheckHooks??=[]).push(ie,de)),null!=ue&&(te.destroyHooks??=[]).push(ie,ue)}}function executeCheckHooks(te,ne,ie){callHooks(te,ne,3,ie)}function executeInitAndCheckHooks(te,ne,ie,re){(3&te[It])===ie&&callHooks(te,ne,ie,re)}function incrementInitPhaseFlags(te,ne){let ie=te[It];(3&ie)===ne&&(ie&=16383,ie+=1,te[It]=ie)}function callHooks(te,ne,ie,re){const le=void 0!==re?65535&te[Qt]:0,ce=null!=re?re:-1,de=ne.length-1;let ue=0;for(let me=le;me<de;me++){if("number"==typeof ne[me+1]){if(ue=ne[me],null!=re&&ue>=re)break}else{ne[me]<0&&(te[Qt]+=65536),(ue<ce||-1==ce)&&(callHook(te,ie,ne,me),te[Qt]=(4294901760&te[Qt])+me+2),me++}}}function callHookInternal(te,ne){profiler(4,te,ne);const ie=setActiveConsumer(null);try{ne.call(te)}finally{setActiveConsumer(ie),profiler(5,te,ne)}}function callHook(te,ne,ie,re){const le=ie[re]<0,ce=ie[re+1],de=te[le?-ie[re]:ie[re]];if(le){te[It]>>14<te[Qt]>>16&&(3&te[It])===ne&&(te[It]+=16384,callHookInternal(de,ce))}else callHookInternal(de,ce)}const to=-1;class NodeInjectorFactory{constructor(te,ne,ie){this.factory=te,this.resolving=!1,this.canSeeViewProviders=ne,this.injectImpl=ie}}function hasParentInjector(te){return te!==to}function getParentInjectorIndex(te){return 32767&te}function getParentInjectorView(te,ne){let ie=function getParentInjectorViewOffset(te){return te>>16}(te),re=ne;for(;ie>0;)re=re[Yt],ie--;return re}let no=!0;function setIncludeViewProviders(te){const ne=no;return no=te,ne}const io=255,oo=5;let ro=0;const lo={};function getOrCreateNodeInjectorForNode(te,ne){const ie=getInjectorIndex(te,ne);if(-1!==ie)return ie;const re=ne[vt];re.firstCreatePass&&(te.injectorIndex=ne.length,insertBloom(re.data,te),insertBloom(ne,null),insertBloom(re.blueprint,null));const le=getParentInjectorLocation(te,ne),ce=te.injectorIndex;if(hasParentInjector(le)){const te=getParentInjectorIndex(le),ie=getParentInjectorView(le,ne),re=ie[vt].data;for(let le=0;le<8;le++)ne[ce+le]=ie[te+le]|re[te+le]}return ne[ce+8]=le,ce}function insertBloom(te,ne){te.push(0,0,0,0,0,0,0,0,ne)}function getInjectorIndex(te,ne){return-1===te.injectorIndex||te.parent&&te.parent.injectorIndex===te.injectorIndex||null===ne[te.injectorIndex+8]?-1:te.injectorIndex}function getParentInjectorLocation(te,ne){if(te.parent&&-1!==te.parent.injectorIndex)return te.parent.injectorIndex;let ie=0,re=null,le=ne;for(;null!==le;){if(re=getTNodeFromLView(le),null===re)return to;if(ie++,le=le[Yt],-1!==re.injectorIndex)return re.injectorIndex|ie<<16}return to}function diPublicInInjector(te,ne,ie){!function bloomAdd(te,ne,ie){let re;"string"==typeof ie?re=ie.charCodeAt(0)||0:ie.hasOwnProperty(Ke)&&(re=ie[Ke]),null==re&&(re=ie[Ke]=ro++);const le=re&io,ce=1<<le;ne.data[te+(le>>oo)]|=ce}(te,ne,ie)}function notFoundValueOrThrow(te,ne,ie){if(ie&Pe.Optional||void 0!==te)return te;throwProviderNotFoundError()}function lookupTokenUsingModuleInjector(te,ne,ie,re){if(ie&Pe.Optional&&void 0===re&&(re=null),0==(ie&(Pe.Self|Pe.Host))){const le=te[Gt],ce=setInjectImplementation(void 0);try{return le?le.get(ne,re,ie&Pe.Optional):injectRootLimpMode(ne,re,ie&Pe.Optional)}finally{setInjectImplementation(ce)}}return notFoundValueOrThrow(re,0,ie)}function getOrCreateInjectable(te,ne,ie,re=Pe.Default,le){if(null!==te){if(2048&ne[It]&&!(re&Pe.Self)){const le=function lookupTokenUsingEmbeddedInjector(te,ne,ie,re,le){let ce=te,de=ne;for(;null!==ce&&null!==de&&2048&de[It]&&!(512&de[It]);){const te=lookupTokenUsingNodeInjector(ce,de,ie,re|Pe.Self,lo);if(te!==lo)return te;let ne=ce.parent;if(!ne){const te=de[tn];if(te){const ne=te.get(ie,lo,re);if(ne!==lo)return ne}ne=getTNodeFromLView(de),de=de[Yt]}ce=ne}return le}(te,ne,ie,re,lo);if(le!==lo)return le}const le=lookupTokenUsingNodeInjector(te,ne,ie,re,lo);if(le!==lo)return le}return lookupTokenUsingModuleInjector(ne,ie,re,le)}function lookupTokenUsingNodeInjector(te,ne,ie,re,le){const ce=function bloomHashBitOrFactory(te){if("string"==typeof te)return te.charCodeAt(0)||0;const ne=te.hasOwnProperty(Ke)?te[Ke]:void 0;return"number"==typeof ne?ne>=0?ne&io:createNodeInjector:ne}(ie);if("function"==typeof ce){if(!enterDI(ne,te,re))return re&Pe.Host?notFoundValueOrThrow(le,0,re):lookupTokenUsingModuleInjector(ne,ie,re,le);try{let te;if(te=ce(re),null!=te||re&Pe.Optional)return te;throwProviderNotFoundError()}finally{kn()}}else if("number"==typeof ce){let le=null,de=getInjectorIndex(te,ne),ue=to,me=re&Pe.Host?ne[Wt][Nt]:null;for((-1===de||re&Pe.SkipSelf)&&(ue=-1===de?getParentInjectorLocation(te,ne):ne[de+8],ue!==to&&shouldSearchParent(re,!1)?(le=ne[vt],de=getParentInjectorIndex(ue),ne=getParentInjectorView(ue,ne)):de=-1);-1!==de;){const te=ne[vt];if(bloomHasToken(ce,de,te.data)){const te=searchTokensOnInjector(de,ne,ie,le,re,me);if(te!==lo)return te}ue=ne[de+8],ue!==to&&shouldSearchParent(re,ne[vt].data[de+8]===me)&&bloomHasToken(ce,de,ne)?(le=te,de=getParentInjectorIndex(ue),ne=getParentInjectorView(ue,ne)):de=-1}}return le}function searchTokensOnInjector(te,ne,ie,re,le,ce){const de=ne[vt],ue=de.data[te+8],me=locateDirectiveOrProvider(ue,de,ie,null==re?isComponentHost(ue)&&no:re!=de&&0!=(3&ue.type),le&Pe.Host&&ce===ue);return null!==me?getNodeInjectable(ne,de,me,ue):lo}function locateDirectiveOrProvider(te,ne,ie,re,le){const ce=te.providerIndexes,de=ne.data,ue=1048575&ce,me=te.directiveStart,ge=te.directiveEnd,fe=ce>>20,_e=le?ue+fe:ge;for(let te=re?ue:ue+fe;te<_e;te++){const ne=de[te];if(te<me&&ie===ne||te>=me&&ne.type===ie)return te}if(le){const te=de[me];if(te&&isComponentDef(te)&&te.type===ie)return me}return null}function getNodeInjectable(te,ne,ie,re){let le=te[ie];const ce=ne.data;if(function isFactory(te){return te instanceof NodeInjectorFactory}(le)){const de=le;de.resolving&&function throwCyclicDependencyError(te,ne){throw ne&&ne.join(" > "),new RuntimeError(-200,te)}(stringifyForError(ce[ie]));const ue=setIncludeViewProviders(de.canSeeViewProviders);de.resolving=!0;const me=de.injectImpl?setInjectImplementation(de.injectImpl):null;enterDI(te,re,Pe.Default);try{le=te[ie]=de.factory(void 0,ce,te,re),ne.firstCreatePass&&ie>=re.directiveStart&&function registerPreOrderHooks(te,ne,ie){const{ngOnChanges:re,ngOnInit:le,ngDoCheck:ce}=ne.type.prototype;if(re){const re=NgOnChangesFeatureImpl(ne);(ie.preOrderHooks??=[]).push(te,re),(ie.preOrderCheckHooks??=[]).push(te,re)}le&&(ie.preOrderHooks??=[]).push(0-te,le),ce&&((ie.preOrderHooks??=[]).push(te,ce),(ie.preOrderCheckHooks??=[]).push(te,ce))}(ie,ce[ie],ne)}finally{null!==me&&setInjectImplementation(me),setIncludeViewProviders(ue),de.resolving=!1,kn()}}return le}function bloomHasToken(te,ne,ie){const re=1<<te;return!!(ie[ne+(te>>oo)]&re)}function shouldSearchParent(te,ne){return!(te&Pe.Self||te&Pe.Host&&ne)}class NodeInjector{constructor(te,ne){this._tNode=te,this._lView=ne}get(te,ne,ie){return getOrCreateInjectable(this._tNode,this._lView,te,convertToBitFlags(ie),ne)}}function createNodeInjector(){return new NodeInjector(getCurrentTNode(),getLView())}function ɵɵgetInheritedFactory(te){return noSideEffects((()=>{const ne=te.prototype.constructor,ie=ne[Xe]||getFactoryOf(ne),re=Object.prototype;let le=Object.getPrototypeOf(te.prototype).constructor;for(;le&&le!==re;){const te=le[Xe]||getFactoryOf(le);if(te&&te!==ie)return te;le=Object.getPrototypeOf(le)}return te=>new te}))}function getFactoryOf(te){return isForwardRef(te)?()=>{const ne=getFactoryOf(resolveForwardRef(te));return ne&&ne()}:getFactoryDef(te)}function getTNodeFromLView(te){const ne=te[vt],ie=ne.type;return 2===ie?ne.declTNode:1===ie?te[Nt]:null}function ɵɵinjectAttribute(te){return function injectAttributeImpl(te,ne){if("class"===ne)return te.classes;if("style"===ne)return te.styles;const ie=te.attrs;if(ie){const te=ie.length;let re=0;for(;re<te;){const le=ie[re];if(isNameOnlyAttributeMarker(le))break;if(0===le)re+=2;else if("number"==typeof le)for(re++;re<te&&"string"==typeof ie[re];)re++;else{if(le===ne)return ie[re+1];re+=2}}}return null}(getCurrentTNode(),te)}function createInjector(te,ne=null,ie=null,re){const le=createInjectorWithoutInjectorInstances(te,ne,ie,re);return le.resolveInjectorInitializers(),le}function createInjectorWithoutInjectorInstances(te,ne=null,ie=null,re,le=new Set){const ce=[ie||ze,importProvidersFrom(te)];return re=re||("object"==typeof te?void 0:stringify(te)),new R3Injector(ce,ne||getNullInjector(),re||null,le)}let co=(()=>{class Injector{static#e=this.THROW_IF_NOT_FOUND=Un;static#t=this.NULL=new NullInjector;static create(te,ne){if(Array.isArray(te))return createInjector({name:""},ne,te,"");{const ne=te.name??"";return createInjector({name:ne},te.parent,te.providers,ne)}}static#n=this.ɵprov=ɵɵdefineInjectable({token:Injector,providedIn:"any",factory:()=>ɵɵinject(fi)});static#i=this.__NG_ELEMENT_ID__=-1}return Injector})();const uo="ngOriginalError";function getOriginalError(te){return te[uo]}class ErrorHandler{constructor(){this._console=console}handleError(te){const ne=this._findOriginalError(te);this._console.error("ERROR",te),ne&&this._console.error("ORIGINAL ERROR",ne)}_findOriginalError(te){let ne=te&&getOriginalError(te);for(;ne&&getOriginalError(ne);)ne=getOriginalError(ne);return ne||null}}const mo=new InjectionToken("internal error handler",{providedIn:"root",factory:()=>inject(ErrorHandler).handleError.bind(void 0)}),go=new InjectionToken("PRESERVE_HOST_CONTENT",{providedIn:"root",factory:()=>false});let fo,_o;function getPolicy$1(){if(void 0===fo&&(fo=null,Ve.trustedTypes))try{fo=Ve.trustedTypes.createPolicy("angular",{createHTML:te=>te,createScript:te=>te,createScriptURL:te=>te})}catch{}return fo}function trustedHTMLFromString(te){return getPolicy$1()?.createHTML(te)||te}function getPolicy(){if(void 0===_o&&(_o=null,Ve.trustedTypes))try{_o=Ve.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:te=>te,createScript:te=>te,createScriptURL:te=>te})}catch{}return _o}function trustedHTMLFromStringBypass(te){return getPolicy()?.createHTML(te)||te}function trustedScriptURLFromStringBypass(te){return getPolicy()?.createScriptURL(te)||te}class SafeValueImpl{constructor(te){this.changingThisBreaksApplicationSecurity=te}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Me})`}}class SafeHtmlImpl extends SafeValueImpl{getTypeName(){return"HTML"}}class SafeStyleImpl extends SafeValueImpl{getTypeName(){return"Style"}}class SafeScriptImpl extends SafeValueImpl{getTypeName(){return"Script"}}class SafeUrlImpl extends SafeValueImpl{getTypeName(){return"URL"}}class SafeResourceUrlImpl extends SafeValueImpl{getTypeName(){return"ResourceURL"}}function unwrapSafeValue(te){return te instanceof SafeValueImpl?te.changingThisBreaksApplicationSecurity:te}function allowSanitizationBypassAndThrow(te,ne){const ie=function getSanitizationBypassType(te){return te instanceof SafeValueImpl&&te.getTypeName()||null}(te);if(null!=ie&&ie!==ne){if("ResourceURL"===ie&&"URL"===ne)return!0;throw new Error(`Required a safe ${ne}, got a ${ie} (see ${Me})`)}return ie===ne}function bypassSanitizationTrustHtml(te){return new SafeHtmlImpl(te)}function bypassSanitizationTrustStyle(te){return new SafeStyleImpl(te)}function bypassSanitizationTrustScript(te){return new SafeScriptImpl(te)}function bypassSanitizationTrustUrl(te){return new SafeUrlImpl(te)}function bypassSanitizationTrustResourceUrl(te){return new SafeResourceUrlImpl(te)}function getInertBodyHelper(te){const ne=new InertDocumentHelper(te);return function isDOMParserAvailable(){try{return!!(new window.DOMParser).parseFromString(trustedHTMLFromString(""),"text/html")}catch{return!1}}()?new DOMParserHelper(ne):ne}class DOMParserHelper{constructor(te){this.inertDocumentHelper=te}getInertBodyElement(te){te="<body><remove></remove>"+te;try{const ne=(new window.DOMParser).parseFromString(trustedHTMLFromString(te),"text/html").body;return null===ne?this.inertDocumentHelper.getInertBodyElement(te):(ne.removeChild(ne.firstChild),ne)}catch{return null}}}class InertDocumentHelper{constructor(te){this.defaultDoc=te,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(te){const ne=this.inertDocument.createElement("template");return ne.innerHTML=trustedHTMLFromString(te),ne}}const bo=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function _sanitizeUrl(te){return(te=String(te)).match(bo)?te:(console.warn(`WARNING: sanitizing unsafe URL value ${te} (see ${Me})`),"unsafe:"+te)}function tagSet(te){const ne={};for(const ie of te.split(","))ne[ie]=!0;return ne}function merge(...te){const ne={};for(const ie of te)for(const te in ie)ie.hasOwnProperty(te)&&(ne[te]=!0);return ne}const Co=tagSet("area,br,col,hr,img,wbr"),wo=tagSet("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ao=tagSet("rp,rt"),ko=merge(Ao,wo),Io=merge(Co,merge(wo,tagSet("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),merge(Ao,tagSet("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ko),Po=tagSet("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fo=merge(Po,tagSet("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),tagSet("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),zo=tagSet("script,style,template");class SanitizingHtmlSerializer{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(te){let ne=te.firstChild,ie=!0;for(;ne;)if(ne.nodeType===Node.ELEMENT_NODE?ie=this.startElement(ne):ne.nodeType===Node.TEXT_NODE?this.chars(ne.nodeValue):this.sanitizedSomething=!0,ie&&ne.firstChild)ne=ne.firstChild;else for(;ne;){ne.nodeType===Node.ELEMENT_NODE&&this.endElement(ne);let te=this.checkClobberedElement(ne,ne.nextSibling);if(te){ne=te;break}ne=this.checkClobberedElement(ne,ne.parentNode)}return this.buf.join("")}startElement(te){const ne=te.nodeName.toLowerCase();if(!Io.hasOwnProperty(ne))return this.sanitizedSomething=!0,!zo.hasOwnProperty(ne);this.buf.push("<"),this.buf.push(ne);const ie=te.attributes;for(let te=0;te<ie.length;te++){const ne=ie.item(te),re=ne.name,le=re.toLowerCase();if(!Fo.hasOwnProperty(le)){this.sanitizedSomething=!0;continue}let ce=ne.value;Po[le]&&(ce=_sanitizeUrl(ce)),this.buf.push(" ",re,'="',encodeEntities(ce),'"')}return this.buf.push(">"),!0}endElement(te){const ne=te.nodeName.toLowerCase();Io.hasOwnProperty(ne)&&!Co.hasOwnProperty(ne)&&(this.buf.push("</"),this.buf.push(ne),this.buf.push(">"))}chars(te){this.buf.push(encodeEntities(te))}checkClobberedElement(te,ne){if(ne&&(te.compareDocumentPosition(ne)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${te.outerHTML}`);return ne}}const Zo=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ur=/([^\#-~ |!])/g;function encodeEntities(te){return te.replace(/&/g,"&amp;").replace(Zo,(function(te){return"&#"+(1024*(te.charCodeAt(0)-55296)+(te.charCodeAt(1)-56320)+65536)+";"})).replace(ur,(function(te){return"&#"+te.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let hr;function _sanitizeHtml(te,ne){let ie=null;try{hr=hr||getInertBodyHelper(te);let re=ne?String(ne):"";ie=hr.getInertBodyElement(re);let le=5,ce=re;do{if(0===le)throw new Error("Failed to sanitize html because the input is unstable");le--,re=ce,ce=ie.innerHTML,ie=hr.getInertBodyElement(re)}while(re!==ce);const de=new SanitizingHtmlSerializer,ue=de.sanitizeChildren(getTemplateContent(ie)||ie);return de.sanitizedSomething&&console.warn(`WARNING: sanitizing HTML stripped some content, see ${Me}`),trustedHTMLFromString(ue)}finally{if(ie){const te=getTemplateContent(ie)||ie;for(;te.firstChild;)te.removeChild(te.firstChild)}}}function getTemplateContent(te){return"content"in te&&function isTemplateElement(te){return te.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===te.nodeName}(te)?te.content:null}var gr=function(te){return te[te.NONE=0]="NONE",te[te.HTML=1]="HTML",te[te.STYLE=2]="STYLE",te[te.SCRIPT=3]="SCRIPT",te[te.URL=4]="URL",te[te.RESOURCE_URL=5]="RESOURCE_URL",te}(gr||{});function ɵɵsanitizeHtml(te){const ne=getSanitizer();return ne?trustedHTMLFromStringBypass(ne.sanitize(gr.HTML,te)||""):allowSanitizationBypassAndThrow(te,"HTML")?trustedHTMLFromStringBypass(unwrapSafeValue(te)):_sanitizeHtml(getDocument(),renderStringify(te))}function ɵɵsanitizeUrl(te){const ne=getSanitizer();return ne?ne.sanitize(gr.URL,te)||"":allowSanitizationBypassAndThrow(te,"URL")?unwrapSafeValue(te):_sanitizeUrl(renderStringify(te))}function ɵɵsanitizeResourceUrl(te){const ne=getSanitizer();if(ne)return trustedScriptURLFromStringBypass(ne.sanitize(gr.RESOURCE_URL,te)||"");if(allowSanitizationBypassAndThrow(te,"ResourceURL"))return trustedScriptURLFromStringBypass(unwrapSafeValue(te));throw new RuntimeError(904,void 0)}function ɵɵsanitizeUrlOrResourceUrl(te,ne,ie){return function getUrlSanitizer(te,ne){return"src"===ne&&("embed"===te||"frame"===te||"iframe"===te||"media"===te||"script"===te)||"href"===ne&&("base"===te||"link"===te)?ɵɵsanitizeResourceUrl:ɵɵsanitizeUrl}(ne,ie)(te)}function getSanitizer(){const te=getLView();return te&&te[zt].sanitizer}const fr=/^>|^->|<!--|-->|--!>|<!-$/g,_r=/(<|>)/g,vr="​$1​";function escapeCommentText(te){return te.replace(fr,(te=>te.replace(_r,vr)))}const yr=new Map;let wr=0;const Ar="__ngContext__";function attachPatchData(te,ne){isLView(ne)?(te[Ar]=ne[Zt],function registerLView(te){yr.set(te[Zt],te)}(ne)):te[Ar]=ne}function ɵɵresolveDocument(te){return te.ownerDocument}function maybeUnwrapFn(te){return te instanceof Function?te():te}function isPlatformBrowser(te){return"browser"===(te??inject(co)).get(jn)}var kr=function(te){return te[te.Important=1]="Important",te[te.DashCase=2]="DashCase",te}(kr||{});let Ir;function icuContainerIterate(te,ne){return Ir(te,ne)}function applyToElementOrContainer(te,ne,ie,re,le){if(null!=re){let ce,de=!1;isLContainer(re)?ce=re:isLView(re)&&(de=!0,re=re[Ct]);const ue=unwrapRNode(re);0===te&&null!==ie?null==le?nativeAppendChild(ne,ie,ue):nativeInsertBefore(ne,ie,ue,le||null,!0):1===te&&null!==ie?nativeInsertBefore(ne,ie,ue,le||null,!0):2===te?nativeRemoveNode(ne,ue,de):3===te&&ne.destroyNode(ue),null!=ce&&function applyContainer(te,ne,ie,re,le){const ce=ie[un],de=unwrapRNode(ie);ce!==de&&applyToElementOrContainer(ne,te,re,ce,le);for(let le=hn;le<ie.length;le++){const de=ie[le];applyView(de[vt],de,te,ne,re,ce)}}(ne,te,ce,ie,le)}}function createTextNode(te,ne){return te.createText(ne)}function updateTextNode(te,ne,ie){te.setValue(ne,ie)}function createCommentNode(te,ne){return te.createComment(escapeCommentText(ne))}function createElementNode(te,ne,ie){return te.createElement(ne,ie)}function detachViewFromDOM(te,ne){applyView(te,ne,ne[Ht],2,null,null)}function insertView(te,ne,ie,re){const le=hn+re,ce=ie.length;re>0&&(ie[le-1][Mt]=ne),re<ce-hn?(ne[Mt]=ie[le],addToArray(ie,hn+re,ne)):(ie.push(ne),ne[Mt]=null),ne[Dt]=ie;const de=ne[Kt];null!==de&&ie!==de&&function trackMovedView(te,ne){const ie=te[pn],re=ne[Dt];const le=re[Dt][Wt];const ce=ne[Wt];ce!==le&&(te[It]|=fn.HasTransplantedViews);null===ie?te[pn]=[ne]:ie.push(ne)}(de,ne);const ue=ne[Jt];null!==ue&&ue.insertView(te),updateAncestorTraversalFlagsOnAttach(ne),ne[It]|=128}function detachMovedView(te,ne){const ie=te[pn],re=ie.indexOf(ne);ie.splice(re,1)}function detachView(te,ne){if(te.length<=hn)return;const ie=hn+ne,re=te[ie];if(re){const le=re[Kt];null!==le&&le!==te&&detachMovedView(le,re),ne>0&&(te[ie-1][Mt]=re[Mt]);const ce=removeFromArray(te,hn+ne);!function removeViewFromDOM(te,ne){detachViewFromDOM(te,ne),ne[Ct]=null,ne[Nt]=null}(re[vt],re);const de=ce[Jt];null!==de&&de.detachView(ce[vt]),re[Dt]=null,re[Mt]=null,re[It]&=-129}return re}function destroyLView(te,ne){if(!(256&ne[It])){const ie=ne[Ht];ie.destroyNode&&applyView(te,ne,ie,3,null,null),function destroyViewTree(te){let ne=te[Ut];if(!ne)return cleanUpView(te[vt],te);for(;ne;){let ie=null;if(isLView(ne))ie=ne[Ut];else{const te=ne[hn];te&&(ie=te)}if(!ie){for(;ne&&!ne[Mt]&&ne!==te;)isLView(ne)&&cleanUpView(ne[vt],ne),ne=ne[Dt];null===ne&&(ne=te),isLView(ne)&&cleanUpView(ne[vt],ne),ie=ne&&ne[Mt]}ne=ie}}(ne)}}function cleanUpView(te,ne){if(!(256&ne[It])){ne[It]&=-129,ne[It]|=256,ne[an]&&consumerDestroy(ne[an]),function executeOnDestroys(te,ne){let ie;if(null!=te&&null!=(ie=te.destroyHooks))for(let te=0;te<ie.length;te+=2){const re=ne[ie[te]];if(!(re instanceof NodeInjectorFactory)){const ne=ie[te+1];if(Array.isArray(ne))for(let te=0;te<ne.length;te+=2){const ie=re[ne[te]],le=ne[te+1];profiler(4,ie,le);try{le.call(ie)}finally{profiler(5,ie,le)}}else{profiler(4,re,ne);try{ne.call(re)}finally{profiler(5,re,ne)}}}}}(te,ne),function processCleanups(te,ne){const ie=te.cleanup,re=ne[Ot];if(null!==ie)for(let te=0;te<ie.length-1;te+=2)if("string"==typeof ie[te]){const ne=ie[te+3];ne>=0?re[ne]():re[-ne].unsubscribe(),te+=2}else{const ne=re[ie[te+1]];ie[te].call(ne)}null!==re&&(ne[Ot]=null);const le=ne[nn];if(null!==le){ne[nn]=null;for(let te=0;te<le.length;te++){(0,le[te])()}}}(te,ne),1===ne[vt].type&&ne[Ht].destroy();const ie=ne[Kt];if(null!==ie&&isLContainer(ne[Dt])){ie!==ne[Dt]&&detachMovedView(ie,ne);const re=ne[Jt];null!==re&&re.detachView(te)}!function unregisterLView(te){yr.delete(te[Zt])}(ne)}}function getParentRElement(te,ne,ie){return getClosestRElement(te,ne.parent,ie)}function getClosestRElement(te,ne,ie){let re=ne;for(;null!==re&&40&re.type;)re=(ne=re).parent;if(null===re)return ie[Ct];{const{componentOffset:ne}=re;if(ne>-1){const{encapsulation:ie}=te.data[re.directiveStart+ne];if(ie===je.None||ie===je.Emulated)return null}return getNativeByTNode(re,ie)}}function nativeInsertBefore(te,ne,ie,re,le){te.insertBefore(ne,ie,re,le)}function nativeAppendChild(te,ne,ie){te.appendChild(ne,ie)}function nativeAppendOrInsertBefore(te,ne,ie,re,le){null!==re?nativeInsertBefore(te,ne,ie,re,le):nativeAppendChild(te,ne,ie)}function nativeParentNode(te,ne){return te.parentNode(ne)}function getInsertInFrontOfRNode(te,ne,ie){return Nr(te,ne,ie)}function getInsertInFrontOfRNodeWithNoI18n(te,ne,ie){return 40&te.type?getNativeByTNode(te,ie):null}let Mr,Nr=getInsertInFrontOfRNodeWithNoI18n;function appendChild(te,ne,ie,re){const le=getParentRElement(te,re,ne),ce=ne[Ht],de=getInsertInFrontOfRNode(re.parent||ne[Nt],re,ne);if(null!=le)if(Array.isArray(ie))for(let te=0;te<ie.length;te++)nativeAppendOrInsertBefore(ce,le,ie[te],de,!1);else nativeAppendOrInsertBefore(ce,le,ie,de,!1);void 0!==Mr&&Mr(ce,re,ne,ie,le)}function getFirstNativeNode(te,ne){if(null!==ne){const ie=ne.type;if(3&ie)return getNativeByTNode(ne,te);if(4&ie)return getBeforeNodeForView(-1,te[ne.index]);if(8&ie){const ie=ne.child;if(null!==ie)return getFirstNativeNode(te,ie);{const ie=te[ne.index];return isLContainer(ie)?getBeforeNodeForView(-1,ie):unwrapRNode(ie)}}if(32&ie){return icuContainerIterate(ne,te)()||unwrapRNode(te[ne.index])}{const ie=getProjectionNodes(te,ne);if(null!==ie){if(Array.isArray(ie))return ie[0];return getFirstNativeNode(getLViewParent(te[Wt]),ie)}return getFirstNativeNode(te,ne.next)}}return null}function getProjectionNodes(te,ne){if(null!==ne){const ie=te[Wt][Nt],re=ne.projection;return ie.projection[re]}return null}function getBeforeNodeForView(te,ne){const ie=hn+te+1;if(ie<ne.length){const te=ne[ie],re=te[vt].firstChild;if(null!==re)return getFirstNativeNode(te,re)}return ne[un]}function nativeRemoveNode(te,ne,ie){const re=nativeParentNode(te,ne);re&&function nativeRemoveChild(te,ne,ie,re){te.removeChild(ne,ie,re)}(te,re,ne,ie)}function applyNodes(te,ne,ie,re,le,ce,de){for(;null!=ie;){const ue=re[ie.index],me=ie.type;if(de&&0===ne&&(ue&&attachPatchData(unwrapRNode(ue),re),ie.flags|=2),32!=(32&ie.flags))if(8&me)applyNodes(te,ne,ie.child,re,le,ce,!1),applyToElementOrContainer(ne,te,le,ue,ce);else if(32&me){const de=icuContainerIterate(ie,re);let me;for(;me=de();)applyToElementOrContainer(ne,te,le,me,ce);applyToElementOrContainer(ne,te,le,ue,ce)}else 16&me?applyProjectionRecursive(te,ne,re,ie,le,ce):applyToElementOrContainer(ne,te,le,ue,ce);ie=de?ie.projectionNext:ie.next}}function applyView(te,ne,ie,re,le,ce){applyNodes(ie,re,te.firstChild,ne,le,ce,!1)}function applyProjectionRecursive(te,ne,ie,re,le,ce){const de=ie[Wt],ue=de[Nt].projection[re.projection];if(Array.isArray(ue))for(let ie=0;ie<ue.length;ie++){applyToElementOrContainer(ne,te,le,ue[ie],ce)}else{let ie=ue;const me=de[Dt];hasInSkipHydrationBlockFlag(re)&&(ie.flags|=128),applyNodes(te,ne,ie,me,le,ce,!0)}}function writeDirectClass(te,ne,ie){""===ie?te.removeAttribute(ne,"class"):te.setAttribute(ne,"class",ie)}function setupStaticAttributes(te,ne,ie){const{mergedAttrs:re,classes:le,styles:ce}=ie;null!==re&&setUpAttributes(te,ne,re),null!==le&&writeDirectClass(te,ne,le),null!==ce&&function writeDirectStyle(te,ne,ie){te.setAttribute(ne,"style",ie)}(te,ne,ce)}const Lr={__brand__:"NO_CHANGE"};function ɵɵadvance(te=1){selectIndexInternal(getTView(),getLView(),getSelectedIndex()+te,!1)}function selectIndexInternal(te,ne,ie,re){if(!re){if(3==(3&ne[It])){const re=te.preOrderCheckHooks;null!==re&&executeCheckHooks(ne,re,ie)}else{const re=te.preOrderHooks;null!==re&&executeInitAndCheckHooks(ne,re,0,ie)}}setSelectedIndex(ie)}function ɵɵdirectiveInject(te,ne=Pe.Default){const ie=getLView();if(null===ie)return ɵɵinject(te,ne);return getOrCreateInjectable(getCurrentTNode(),ie,resolveForwardRef(te),ne)}function ɵɵinvalidFactory(){throw new Error("invalid")}function writeToDirectiveInput(te,ne,ie,re,le,ce){const ue=setActiveConsumer(null);try{let ue=null;if(0!=(le&Je.SignalBased)){ue=ne[re][de]}null!==ue&&void 0!==ue.transformFn&&(ce=ue.transformFn(ce)),0!=(le&Je.HasDecoratorInputTransform)&&(ce=te.inputTransforms[re].call(ne,ce)),null!==te.setInput?te.setInput(ne,ue,ce,ie,re):applyValueToInputField(ne,ue,re,ce)}finally{setActiveConsumer(ue)}}function createLView(te,ne,ie,re,le,ce,de,ue,me,ge,fe){const _e=ne.blueprint.slice();return _e[Ct]=le,_e[It]=204|re,(null!==ge||te&&2048&te[It])&&(_e[It]|=2048),resetPreOrderHookFlags(_e),_e[Dt]=_e[Yt]=te,_e[Vt]=ie,_e[zt]=de||te&&te[zt],_e[Ht]=ue||te&&te[Ht],_e[Gt]=me||te&&te[Gt]||null,_e[Nt]=ce,_e[Zt]=function getUniqueLViewId(){return wr++}(),_e[Rt]=fe,_e[tn]=ge,_e[Wt]=2==ne.type?te[Wt]:_e,_e}function getOrCreateTNode(te,ne,ie,re,le){let ce=te.data[ne];if(null===ce)ce=createTNodeAtIndex(te,ne,ie,re,le),function isInI18nBlock(){return wn.lFrame.inI18n}()&&(ce.flags|=32);else if(64&ce.type){ce.type=ie,ce.value=re,ce.attrs=le;const te=getCurrentParentTNode();ce.injectorIndex=null===te?-1:te.injectorIndex}return setCurrentTNode(ce,!0),ce}function createTNodeAtIndex(te,ne,ie,re,le){const ce=getCurrentTNodePlaceholderOk(),de=isCurrentTNodeParent(),ue=de?ce:ce&&ce.parent,me=te.data[ne]=function createTNode(te,ne,ie,re,le,ce){let de=ne?ne.injectorIndex:-1,ue=0;isInSkipHydrationBlock$1()&&(ue|=128);const me={type:ie,index:re,insertBeforeIndex:null,injectorIndex:de,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:ue,providerIndexes:0,value:le,attrs:ce,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:ne,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};0;return me}(0,ue,ie,ne,re,le);return null===te.firstChild&&(te.firstChild=me),null!==ce&&(de?null==ce.child&&null!==me.parent&&(ce.child=me):null===ce.next&&(ce.next=me,me.prev=ce)),me}function allocExpando(te,ne,ie,re){if(0===ie)return-1;const le=ne.length;for(let le=0;le<ie;le++)ne.push(re),te.blueprint.push(re),te.data.push(null);return le}function executeTemplate(te,ne,ie,re,le){const ce=getSelectedIndex(),de=2&re;try{setSelectedIndex(-1),de&&ne.length>sn&&selectIndexInternal(te,ne,sn,!1);profiler(de?2:0,le),ie(re,le)}finally{setSelectedIndex(ce);profiler(de?3:1,le)}}function executeContentQueries(te,ne,ie){if(isContentQueryHost(ne)){const re=setActiveConsumer(null);try{const re=ne.directiveStart,le=ne.directiveEnd;for(let ne=re;ne<le;ne++){const re=te.data[ne];if(re.contentQueries){const te=ie[ne];re.contentQueries(1,te,ne)}}}finally{setActiveConsumer(re)}}}function createDirectivesInstances(te,ne,ie){getBindingsEnabled()&&(!function instantiateAllDirectives(te,ne,ie,re){const le=ie.directiveStart,ce=ie.directiveEnd;isComponentHost(ie)&&function addComponentLogic(te,ne,ie){const re=getNativeByTNode(ne,te),le=getOrCreateComponentTView(ie),ce=te[zt].rendererFactory;let de=16;ie.signals?de=4096:ie.onPush&&(de=64);const ue=addToViewTree(te,createLView(te,le,null,de,re,ne,null,ce.createRenderer(re,ie),null,null,null));te[ne.index]=ue}(ne,ie,te.data[le+ie.componentOffset]);te.firstCreatePass||getOrCreateNodeInjectorForNode(ie,ne);attachPatchData(re,ne);const de=ie.initialInputs;for(let re=le;re<ce;re++){const ce=te.data[re],ue=getNodeInjectable(ne,te,re,ie);if(attachPatchData(ue,ne),null!==de&&setInputsFromAttrs(ne,re-le,ue,ce,ie,de),isComponentDef(ce)){getComponentLViewByIndex(ie.index,ne)[Vt]=getNodeInjectable(ne,te,re,ie)}}}(te,ne,ie,getNativeByTNode(ie,ne)),64==(64&ie.flags)&&invokeDirectivesHostBindings(te,ne,ie))}function saveResolvedLocalsInData(te,ne,ie=getNativeByTNode){const re=ne.localNames;if(null!==re){let le=ne.index+1;for(let ce=0;ce<re.length;ce+=2){const de=re[ce+1],ue=-1===de?ie(ne,te):te[de];te[le++]=ue}}}function getOrCreateComponentTView(te){const ne=te.tView;if(null===ne||ne.incompleteFirstPass){const ne=null;return te.tView=createTView(1,ne,te.template,te.decls,te.vars,te.directiveDefs,te.pipeDefs,te.viewQuery,te.schemas,te.consts,te.id)}return ne}function createTView(te,ne,ie,re,le,ce,de,ue,me,ge,fe){const _e=sn+re,be=_e+le,Ce=function createViewBlueprint(te,ne){const ie=[];for(let re=0;re<ne;re++)ie.push(re<te?null:Lr);return ie}(_e,be),ye="function"==typeof ge?ge():ge;return Ce[vt]={type:te,blueprint:Ce,template:ie,queries:null,viewQuery:ue,declTNode:ne,data:Ce.slice().fill(null,_e),bindingStartIndex:_e,expandoStartIndex:be,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof ce?ce():ce,pipeRegistry:"function"==typeof de?de():de,firstChild:null,schemas:me,consts:ye,incompleteFirstPass:!1,ssrId:fe}}function locateHostElement(te,ne,ie,re){const le=re.get(go,false)||ie===je.ShadowDom,ce=te.selectRootElement(ne,le);return function applyRootElementTransform(te){_applyRootElementTransformImpl(te)}(ce),ce}let _applyRootElementTransformImpl=()=>null;function captureNodeBindings(te,ne,ie,re,le){for(let ce in ne){if(!ne.hasOwnProperty(ce))continue;const de=ne[ce];if(void 0===de)continue;let ue;re??={};let me=Je.None;Array.isArray(de)?(ue=de[0],me=de[1]):ue=de;let ge=ce;if(null!==le){if(!le.hasOwnProperty(ce))continue;ge=le[ce]}0===te?addPropertyBinding(re,ie,ge,ue,me):addPropertyBinding(re,ie,ge,ue)}return re}function addPropertyBinding(te,ne,ie,re,le){let ce;te.hasOwnProperty(ie)?(ce=te[ie]).push(ne,re):ce=te[ie]=[ne,re],void 0!==le&&ce.push(le)}function elementPropertyInternal(te,ne,ie,re,le,ce,de,ue){const me=getNativeByTNode(ne,ie);let ge,fe=ne.inputs;!ue&&null!=fe&&(ge=fe[re])?(setInputsForProperty(te,ie,ge,re,le),isComponentHost(ne)&&function markDirtyIfOnPush(te,ne){const ie=getComponentLViewByIndex(ne,te);16&ie[It]||(ie[It]|=64)}(ie,ne.index)):3&ne.type?(re=function mapPropName(te){return"class"===te?"className":"for"===te?"htmlFor":"formaction"===te?"formAction":"innerHtml"===te?"innerHTML":"readonly"===te?"readOnly":"tabindex"===te?"tabIndex":te}(re),le=null!=de?de(le,ne.value||"",re):le,ce.setProperty(me,re,le)):ne.type}function resolveDirectives(te,ne,ie,re){if(getBindingsEnabled()){const le=null===re?null:{"":-1},ce=function findDirectiveDefMatches(te,ne){const ie=te.directiveRegistry;let re=null,le=null;if(ie)for(let ce=0;ce<ie.length;ce++){const de=ie[ce];if(isNodeMatchingSelectorList(ne,de.selectors,!1))if(re||(re=[]),isComponentDef(de))if(null!==de.findHostDirectiveDefs){const ie=[];le=le||new Map,de.findHostDirectiveDefs(de,ie,le),re.unshift(...ie,de);markAsComponentHost(te,ne,ie.length)}else re.unshift(de),markAsComponentHost(te,ne,0);else le=le||new Map,de.findHostDirectiveDefs?.(de,re,le),re.push(de)}return null===re?null:[re,le]}(te,ie);let de,ue;null===ce?de=ue=null:[de,ue]=ce,null!==de&&initializeDirectives(te,ne,ie,de,le,ue),le&&function cacheMatchingLocalNames(te,ne,ie){if(ne){const re=te.localNames=[];for(let te=0;te<ne.length;te+=2){const le=ie[ne[te+1]];if(null==le)throw new RuntimeError(-301,void 0);re.push(ne[te],le)}}}(ie,re,le)}ie.mergedAttrs=mergeHostAttrs(ie.mergedAttrs,ie.attrs)}function initializeDirectives(te,ne,ie,re,le,ce){for(let le=0;le<re.length;le++)diPublicInInjector(getOrCreateNodeInjectorForNode(ie,ne),te,re[le].type);!function initTNodeFlags(te,ne,ie){te.flags|=1,te.directiveStart=ne,te.directiveEnd=ne+ie,te.providerIndexes=ne}(ie,te.data.length,re.length);for(let te=0;te<re.length;te++){const ne=re[te];ne.providersResolver&&ne.providersResolver(ne)}let de=!1,ue=!1,me=allocExpando(te,ne,re.length,null);for(let ce=0;ce<re.length;ce++){const ge=re[ce];ie.mergedAttrs=mergeHostAttrs(ie.mergedAttrs,ge.hostAttrs),configureViewWithDirective(te,ie,ne,me,ge),saveNameToExportMap(me,ge,le),null!==ge.contentQueries&&(ie.flags|=4),null===ge.hostBindings&&null===ge.hostAttrs&&0===ge.hostVars||(ie.flags|=64);const fe=ge.type.prototype;!de&&(fe.ngOnChanges||fe.ngOnInit||fe.ngDoCheck)&&((te.preOrderHooks??=[]).push(ie.index),de=!0),ue||!fe.ngOnChanges&&!fe.ngDoCheck||((te.preOrderCheckHooks??=[]).push(ie.index),ue=!0),me++}!function initializeInputAndOutputAliases(te,ne,ie){const re=ne.directiveStart,le=ne.directiveEnd,ce=te.data,de=ne.attrs,ue=[];let me=null,ge=null;for(let te=re;te<le;te++){const re=ce[te],le=ie?ie.get(re):null,fe=le?le.inputs:null,_e=le?le.outputs:null;me=captureNodeBindings(0,re.inputs,te,me,fe),ge=captureNodeBindings(1,re.outputs,te,ge,_e);const be=null===me||null===de||isInlineTemplate(ne)?null:generateInitialInputs(me,te,de);ue.push(be)}null!==me&&(me.hasOwnProperty("class")&&(ne.flags|=8),me.hasOwnProperty("style")&&(ne.flags|=16)),ne.initialInputs=ue,ne.inputs=me,ne.outputs=ge}(te,ie,ce)}function invokeDirectivesHostBindings(te,ne,ie){const re=ie.directiveStart,le=ie.directiveEnd,ce=ie.index,de=function getCurrentDirectiveIndex(){return wn.lFrame.currentDirectiveIndex}();try{setSelectedIndex(ce);for(let ie=re;ie<le;ie++){const re=te.data[ie],le=ne[ie];setCurrentDirectiveIndex(ie),null===re.hostBindings&&0===re.hostVars&&null===re.hostAttrs||invokeHostBindingsInCreationMode(re,le)}}finally{setSelectedIndex(-1),setCurrentDirectiveIndex(de)}}function invokeHostBindingsInCreationMode(te,ne){null!==te.hostBindings&&te.hostBindings(1,ne)}function markAsComponentHost(te,ne,ie){ne.componentOffset=ie,(te.components??=[]).push(ne.index)}function saveNameToExportMap(te,ne,ie){if(ie){if(ne.exportAs)for(let re=0;re<ne.exportAs.length;re++)ie[ne.exportAs[re]]=te;isComponentDef(ne)&&(ie[""]=te)}}function configureViewWithDirective(te,ne,ie,re,le){te.data[re]=le;const ce=le.factory||(le.factory=getFactoryDef(le.type)),de=new NodeInjectorFactory(ce,isComponentDef(le),ɵɵdirectiveInject);te.blueprint[re]=de,ie[re]=de,function registerHostBindingOpCodes(te,ne,ie,re,le){const ce=le.hostBindings;if(ce){let le=te.hostBindingOpCodes;null===le&&(le=te.hostBindingOpCodes=[]);const de=~ne.index;(function lastSelectedElementIdx(te){let ne=te.length;for(;ne>0;){const ie=te[--ne];if("number"==typeof ie&&ie<0)return ie}return 0})(le)!=de&&le.push(de),le.push(ie,re,ce)}}(te,ne,re,allocExpando(te,ie,le.hostVars,Lr),le)}function elementAttributeInternal(te,ne,ie,re,le,ce){const de=getNativeByTNode(te,ne);setElementAttribute(ne[Ht],de,ce,te.value,ie,re,le)}function setElementAttribute(te,ne,ie,re,le,ce,de){if(null==ce)te.removeAttribute(ne,le,ie);else{const ue=null==de?renderStringify(ce):de(ce,re||"",le);te.setAttribute(ne,le,ue,ie)}}function setInputsFromAttrs(te,ne,ie,re,le,ce){const de=ce[ne];if(null!==de)for(let te=0;te<de.length;){writeToDirectiveInput(re,ie,de[te++],de[te++],de[te++],de[te++])}}function generateInitialInputs(te,ne,ie){let re=null,le=0;for(;le<ie.length;){const ce=ie[le];if(0!==ce)if(5!==ce){if("number"==typeof ce)break;if(te.hasOwnProperty(ce)){null===re&&(re=[]);const de=te[ce];for(let te=0;te<de.length;te+=3)if(de[te]===ne){re.push(ce,de[te+1],de[te+2],ie[le+1]);break}}le+=2}else le+=2;else le+=4}return re}function createLContainer(te,ne,ie,re){return[te,!0,0,ne,null,re,null,ie,null,null]}function refreshContentQueries(te,ne){const ie=te.contentQueries;if(null!==ie){const re=setActiveConsumer(null);try{for(let re=0;re<ie.length;re+=2){const le=ie[re],ce=ie[re+1];if(-1!==ce){const ie=te.data[ce];setCurrentQueryIndex(le),ie.contentQueries(2,ne[ce],ce)}}}finally{setActiveConsumer(re)}}}function addToViewTree(te,ne){return te[Ut]?te[$t][Mt]=ne:te[Ut]=ne,te[$t]=ne,ne}function executeViewQueryFn(te,ne,ie){setCurrentQueryIndex(0);const re=setActiveConsumer(null);try{ne(te,ie)}finally{setActiveConsumer(re)}}function getOrCreateLViewCleanup(te){return te[Ot]||(te[Ot]=[])}function getOrCreateTViewCleanup(te){return te.cleanup||(te.cleanup=[])}function handleError(te,ne){const ie=te[Gt],re=ie?ie.get(ErrorHandler,null):null;re&&re.handleError(ne)}function setInputsForProperty(te,ne,ie,re,le){for(let ce=0;ce<ie.length;){const de=ie[ce++],ue=ie[ce++],me=ie[ce++],ge=ne[de];writeToDirectiveInput(te.data[de],ge,re,ue,me,le)}}function textBindingInternal(te,ne,ie){const re=getNativeByIndex(ne,te);updateTextNode(te[Ht],re,ie)}function renderComponent(te,ne){const ie=getComponentLViewByIndex(ne,te),re=ie[vt];!function syncViewWithBlueprint(te,ne){for(let ie=ne.length;ie<te.blueprint.length;ie++)ne.push(te.blueprint[ie])}(re,ie);const le=ie[Ct];null!==le&&null===ie[Rt]&&(ie[Rt]=retrieveHydrationInfo(le,ie[Gt])),renderView(re,ie,ie[Vt])}function renderView(te,ne,ie){enterView(ne);try{const re=te.viewQuery;null!==re&&executeViewQueryFn(1,re,ie);const le=te.template;null!==le&&executeTemplate(te,ne,le,1,ie),te.firstCreatePass&&(te.firstCreatePass=!1),ne[Jt]?.finishViewCreation(te),te.staticContentQueries&&refreshContentQueries(te,ne),te.staticViewQueries&&executeViewQueryFn(2,te.viewQuery,ie);const ce=te.components;null!==ce&&function renderChildComponents(te,ne){for(let ie=0;ie<ne.length;ie++)renderComponent(te,ne[ie])}(ne,ce)}catch(ne){throw te.firstCreatePass&&(te.incompleteFirstPass=!0,te.firstCreatePass=!1),ne}finally{ne[It]&=-5,leaveView()}}function createAndRenderEmbeddedLView(te,ne,ie,re){const le=ne.tView,ce=createLView(te,le,ie,4096&te[It]?4096:16,null,ne,null,null,null,re?.injector??null,re?.dehydratedView??null),de=te[ne.index];ce[Kt]=de;const ue=te[Jt];return null!==ue&&(ce[Jt]=ue.createEmbeddedView(le)),renderView(le,ce,ie),ce}function shouldAddViewToDom(te,ne){return!ne||null===ne.firstChild||hasInSkipHydrationBlockFlag(te)}function addLViewToLContainer(te,ne,ie,re=!0){const le=ne[vt];if(insertView(le,ne,te,ie),re){const re=getBeforeNodeForView(ie,te),ce=ne[Ht],de=nativeParentNode(ce,te[un]);null!==de&&function addViewToDOM(te,ne,ie,re,le,ce){re[Ct]=le,re[Nt]=ne,applyView(te,re,ie,1,le,ce)}(le,te[Nt],ce,ne,de,re)}const ce=ne[Rt];null!==ce&&null!==ce.firstChild&&(ce.firstChild=null)}function collectNativeNodes(te,ne,ie,re,le=!1){for(;null!==ie;){const ce=ne[ie.index];null!==ce&&re.push(unwrapRNode(ce)),isLContainer(ce)&&collectNativeNodesInLContainer(ce,re);const de=ie.type;if(8&de)collectNativeNodes(te,ne,ie.child,re);else if(32&de){const te=icuContainerIterate(ie,ne);let le;for(;le=te();)re.push(le)}else if(16&de){const te=getProjectionNodes(ne,ie);if(Array.isArray(te))re.push(...te);else{const ie=getLViewParent(ne[Wt]);collectNativeNodes(ie[vt],ie,te,re,!0)}}ie=le?ie.projectionNext:ie.next}return re}function collectNativeNodesInLContainer(te,ne){for(let ie=hn;ie<te.length;ie++){const re=te[ie],le=re[vt].firstChild;null!==le&&collectNativeNodes(re[vt],re,le,ne)}te[un]!==te[Ct]&&ne.push(te[un])}let Or=[];function getOrBorrowReactiveLViewConsumer(te){return te[an]??function borrowReactiveLViewConsumer(te){const ne=Or.pop()??Object.create(Pr);return ne.lView=te,ne}(te)}const Pr={...ue,consumerIsAlwaysLive:!0,consumerMarkedDirty:te=>{markAncestorsForTraversal(te.lView)},consumerOnSignalRead(){this.lView[an]=this}};function getFirstLContainer(te){return getNearestLContainer(te[Ut])}function getNextLContainer(te){return getNearestLContainer(te[Mt])}function getNearestLContainer(te){for(;null!==te&&!isLContainer(te);)te=te[Mt];return te}const jr=100;function detectChangesInternal(te,ne=!0,ie=0){const re=te[zt],le=re.rendererFactory;le.begin?.();try{!function detectChangesInViewWhileDirty(te,ne){detectChangesInView(te,ne);let ie=0;for(;requiresRefreshOrTraversal(te);){if(ie===jr)throw new RuntimeError(103,void 0);ie++,detectChangesInView(te,1)}}(te,ie)}catch(ie){throw ne&&handleError(te,ie),ie}finally{le.end?.(),re.inlineEffectRunner?.flush()}}function refreshView(te,ne,ie,re){const le=ne[It];if(256==(256&le))return;ne[zt].inlineEffectRunner?.flush(),enterView(ne);let ce=null,de=null;(function viewShouldHaveReactiveConsumer(te){return 2!==te.type})(te)&&(de=getOrBorrowReactiveLViewConsumer(ne),ce=consumerBeforeComputation(de));try{resetPreOrderHookFlags(ne),setBindingIndex(te.bindingStartIndex),null!==ie&&executeTemplate(te,ne,ie,2,re);const ce=3==(3&le);if(ce){const ie=te.preOrderCheckHooks;null!==ie&&executeCheckHooks(ne,ie,null)}else{const ie=te.preOrderHooks;null!==ie&&executeInitAndCheckHooks(ne,ie,0,null),incrementInitPhaseFlags(ne,0)}if(function markTransplantedViewsForRefresh(te){for(let ne=getFirstLContainer(te);null!==ne;ne=getNextLContainer(ne)){if(!(ne[It]&fn.HasTransplantedViews))continue;const te=ne[pn];for(let ne=0;ne<te.length;ne++){const ie=te[ne];ie[Dt];markViewForRefresh(ie)}}}(ne),detectChangesInEmbeddedViews(ne,0),null!==te.contentQueries&&refreshContentQueries(te,ne),ce){const ie=te.contentCheckHooks;null!==ie&&executeCheckHooks(ne,ie)}else{const ie=te.contentHooks;null!==ie&&executeInitAndCheckHooks(ne,ie,1),incrementInitPhaseFlags(ne,1)}!function processHostBindingOpCodes(te,ne){const ie=te.hostBindingOpCodes;if(null!==ie)try{for(let te=0;te<ie.length;te++){const re=ie[te];if(re<0)setSelectedIndex(~re);else{const le=re,ce=ie[++te],de=ie[++te];setBindingRootForHostBindings(ce,le),de(2,ne[le])}}}finally{setSelectedIndex(-1)}}(te,ne);const de=te.components;null!==de&&detectChangesInChildComponents(ne,de,0);const ue=te.viewQuery;if(null!==ue&&executeViewQueryFn(2,ue,re),ce){const ie=te.viewCheckHooks;null!==ie&&executeCheckHooks(ne,ie)}else{const ie=te.viewHooks;null!==ie&&executeInitAndCheckHooks(ne,ie,2),incrementInitPhaseFlags(ne,2)}if(!0===te.firstUpdatePass&&(te.firstUpdatePass=!1),ne[rn]){for(const te of ne[rn])te();ne[rn]=null}ne[It]&=-73}catch(te){throw markAncestorsForTraversal(ne),te}finally{null!==de&&(consumerAfterComputation(de,ce),function maybeReturnReactiveLViewConsumer(te){te.lView[an]!==te&&(te.lView=null,Or.push(te))}(de)),leaveView()}}function detectChangesInEmbeddedViews(te,ne){for(let ie=getFirstLContainer(te);null!==ie;ie=getNextLContainer(ie))for(let te=hn;te<ie.length;te++){detectChangesInViewIfAttached(ie[te],ne)}}function detectChangesInComponent(te,ne,ie){detectChangesInViewIfAttached(getComponentLViewByIndex(ne,te),ie)}function detectChangesInViewIfAttached(te,ne){viewAttachedToChangeDetector(te)&&detectChangesInView(te,ne)}function detectChangesInView(te,ne){const ie=te[vt],re=te[It],le=te[an];let ce=!!(0===ne&&16&re);if(ce||=!!(64&re&&0===ne),ce||=!!(1024&re),ce||=!(!le?.dirty||!consumerPollProducersForChange(le)),le&&(le.dirty=!1),te[It]&=-9217,ce)refreshView(ie,te,ie.template,te[Vt]);else if(8192&re){detectChangesInEmbeddedViews(te,1);const ne=ie.components;null!==ne&&detectChangesInChildComponents(te,ne,1)}}function detectChangesInChildComponents(te,ne,ie){for(let re=0;re<ne.length;re++)detectChangesInComponent(te,ne[re],ie)}function markViewDirty(te){for(te[zt].changeDetectionScheduler?.notify();te;){te[It]|=64;const ne=getLViewParent(te);if(isRootView(te)&&!ne)return te;te=ne}return null}class ViewRef$1{get rootNodes(){const te=this._lView,ne=te[vt];return collectNativeNodes(ne,te,ne.firstChild,[])}constructor(te,ne,ie=!0){this._lView=te,this._cdRefInjectingView=ne,this.notifyErrorHandler=ie,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Vt]}set context(te){this._lView[Vt]=te}get destroyed(){return 256==(256&this._lView[It])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const te=this._lView[Dt];if(isLContainer(te)){const ne=te[8],ie=ne?ne.indexOf(this):-1;ie>-1&&(detachView(te,ie),removeFromArray(ne,ie))}this._attachedToViewContainer=!1}destroyLView(this._lView[vt],this._lView)}onDestroy(te){storeLViewOnDestroy(this._lView,te)}markForCheck(){markViewDirty(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){updateAncestorTraversalFlagsOnAttach(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,detectChangesInternal(this._lView,this.notifyErrorHandler)}checkNoChanges(){0}attachToViewContainerRef(){if(this._appRef)throw new RuntimeError(902,void 0);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,detachViewFromDOM(this._lView[vt],this._lView)}attachToAppRef(te){if(this._attachedToViewContainer)throw new RuntimeError(902,void 0);this._appRef=te,updateAncestorTraversalFlagsOnAttach(this._lView)}}let Hr=(()=>{class TemplateRef{static#e=this.__NG_ELEMENT_ID__=injectTemplateRef}return TemplateRef})();const Ur=Hr,$r=class TemplateRef extends Ur{constructor(te,ne,ie){super(),this._declarationLView=te,this._declarationTContainer=ne,this.elementRef=ie}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(te,ne){return this.createEmbeddedViewImpl(te,ne)}createEmbeddedViewImpl(te,ne,ie){const re=createAndRenderEmbeddedLView(this._declarationLView,this._declarationTContainer,te,{injector:ne,dehydratedView:ie});return new ViewRef$1(re)}};function injectTemplateRef(){return createTemplateRef(getCurrentTNode(),getLView())}function createTemplateRef(te,ne){return 4&te.type?new $r(ne,te,createElementRef(te,ne)):null}let _findMatchingDehydratedViewImpl=()=>null;function findMatchingDehydratedView(te,ne){return _findMatchingDehydratedViewImpl(te,ne)}class ChangeDetectionScheduler{}class ComponentRef$1{}class ComponentFactory$1{}const qr="ngComponent";class _NullComponentFactoryResolver{resolveComponentFactory(te){throw function noComponentFactoryError(te){const ne=Error(`No component factory found for ${stringify(te)}.`);return ne[qr]=te,ne}(te)}}let Kr=(()=>{class ComponentFactoryResolver$1{static#e=this.NULL=new _NullComponentFactoryResolver}return ComponentFactoryResolver$1})();class RendererFactory2{}let Qr=(()=>{class Renderer2{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function injectRenderer2(){const te=getLView(),ne=getComponentLViewByIndex(getCurrentTNode().index,te);return(isLView(ne)?ne:te)[Ht]}()}return Renderer2})();let Jr=(()=>{class Sanitizer{static#e=this.ɵprov=ɵɵdefineInjectable({token:Sanitizer,providedIn:"root",factory:()=>null})}return Sanitizer})();const Zr={};function isSignal(te){return"function"==typeof te&&void 0!==te[de]}const ea=new Set;function performanceMarkFeature(te){ea.has(te)||(ea.add(te),performance?.mark?.("mark_feature_usage",{detail:{feature:te}}))}function computed(te,ne){performanceMarkFeature("NgSignals");const ie=function createComputed(te){const ne=Object.create(_e);ne.computation=te;const computed=()=>{if(producerUpdateValueVersion(ne),producerAccessed(ne),ne.value===fe)throw ne.error;return ne.value};return computed[de]=ne,computed}(te);return ne?.equal&&(ie[de].equal=ne.equal),ie}function signal(te,ne){performanceMarkFeature("NgSignals");const ie=function createSignal(te){const ne=Object.create(ye);ne.value=te;const getter=()=>(producerAccessed(ne),ne.value);return getter[de]=ne,getter}(te),re=ie[de];return ne?.equal&&(re.equal=ne.equal),ie.set=te=>signalSetFn(re,te),ie.update=te=>function signalUpdateFn(te,ne){producerUpdatesAllowed()||throwInvalidWriteToSignalError(),signalSetFn(te,ne(te.value))}(re,te),ie.asReadonly=signalAsReadonlyFn.bind(ie),ie}function signalAsReadonlyFn(){const te=this[de];if(void 0===te.readonlyFn){const readonlyFn=()=>this();readonlyFn[de]=te,te.readonlyFn=readonlyFn}return te.readonlyFn}function isWritableSignal(te){return isSignal(te)&&"function"==typeof te.set}function untracked(te){const ne=setActiveConsumer(null);try{return te()}finally{setActiveConsumer(ne)}}function isListLikeIterable(te){return!!isJsObject(te)&&(Array.isArray(te)||!(te instanceof Map)&&Symbol.iterator in te)}function isJsObject(te){return null!==te&&("function"==typeof te||"object"==typeof te)}class DefaultIterableDifferFactory{constructor(){}supports(te){return isListLikeIterable(te)}create(te){return new DefaultIterableDiffer(te)}}const trackByIdentity=(te,ne)=>ne;class DefaultIterableDiffer{constructor(te){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=te||trackByIdentity}forEachItem(te){let ne;for(ne=this._itHead;null!==ne;ne=ne._next)te(ne)}forEachOperation(te){let ne=this._itHead,ie=this._removalsHead,re=0,le=null;for(;ne||ie;){const ce=!ie||ne&&ne.currentIndex<getPreviousIndex(ie,re,le)?ne:ie,de=getPreviousIndex(ce,re,le),ue=ce.currentIndex;if(ce===ie)re--,ie=ie._nextRemoved;else if(ne=ne._next,null==ce.previousIndex)re++;else{le||(le=[]);const te=de-re,ne=ue-re;if(te!=ne){for(let ie=0;ie<te;ie++){const re=ie<le.length?le[ie]:le[ie]=0,ce=re+ie;ne<=ce&&ce<te&&(le[ie]=re+1)}le[ce.previousIndex]=ne-te}}de!==ue&&te(ce,de,ue)}}forEachPreviousItem(te){let ne;for(ne=this._previousItHead;null!==ne;ne=ne._nextPrevious)te(ne)}forEachAddedItem(te){let ne;for(ne=this._additionsHead;null!==ne;ne=ne._nextAdded)te(ne)}forEachMovedItem(te){let ne;for(ne=this._movesHead;null!==ne;ne=ne._nextMoved)te(ne)}forEachRemovedItem(te){let ne;for(ne=this._removalsHead;null!==ne;ne=ne._nextRemoved)te(ne)}forEachIdentityChange(te){let ne;for(ne=this._identityChangesHead;null!==ne;ne=ne._nextIdentityChange)te(ne)}diff(te){if(null==te&&(te=[]),!isListLikeIterable(te))throw new RuntimeError(900,void 0);return this.check(te)?this:null}onDestroy(){}check(te){this._reset();let ne,ie,re,le=this._itHead,ce=!1;if(Array.isArray(te)){this.length=te.length;for(let ne=0;ne<this.length;ne++)ie=te[ne],re=this._trackByFn(ne,ie),null!==le&&Object.is(le.trackById,re)?(ce&&(le=this._verifyReinsertion(le,ie,re,ne)),Object.is(le.item,ie)||this._addIdentityChange(le,ie)):(le=this._mismatch(le,ie,re,ne),ce=!0),le=le._next}else ne=0,function iterateListLike(te,ne){if(Array.isArray(te))for(let ie=0;ie<te.length;ie++)ne(te[ie]);else{const ie=te[Symbol.iterator]();let re;for(;!(re=ie.next()).done;)ne(re.value)}}(te,(te=>{re=this._trackByFn(ne,te),null!==le&&Object.is(le.trackById,re)?(ce&&(le=this._verifyReinsertion(le,te,re,ne)),Object.is(le.item,te)||this._addIdentityChange(le,te)):(le=this._mismatch(le,te,re,ne),ce=!0),le=le._next,ne++})),this.length=ne;return this._truncate(le),this.collection=te,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let te;for(te=this._previousItHead=this._itHead;null!==te;te=te._next)te._nextPrevious=te._next;for(te=this._additionsHead;null!==te;te=te._nextAdded)te.previousIndex=te.currentIndex;for(this._additionsHead=this._additionsTail=null,te=this._movesHead;null!==te;te=te._nextMoved)te.previousIndex=te.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(te,ne,ie,re){let le;return null===te?le=this._itTail:(le=te._prev,this._remove(te)),null!==(te=null===this._unlinkedRecords?null:this._unlinkedRecords.get(ie,null))?(Object.is(te.item,ne)||this._addIdentityChange(te,ne),this._reinsertAfter(te,le,re)):null!==(te=null===this._linkedRecords?null:this._linkedRecords.get(ie,re))?(Object.is(te.item,ne)||this._addIdentityChange(te,ne),this._moveAfter(te,le,re)):te=this._addAfter(new IterableChangeRecord_(ne,ie),le,re),te}_verifyReinsertion(te,ne,ie,re){let le=null===this._unlinkedRecords?null:this._unlinkedRecords.get(ie,null);return null!==le?te=this._reinsertAfter(le,te._prev,re):te.currentIndex!=re&&(te.currentIndex=re,this._addToMoves(te,re)),te}_truncate(te){for(;null!==te;){const ne=te._next;this._addToRemovals(this._unlink(te)),te=ne}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(te,ne,ie){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(te);const re=te._prevRemoved,le=te._nextRemoved;return null===re?this._removalsHead=le:re._nextRemoved=le,null===le?this._removalsTail=re:le._prevRemoved=re,this._insertAfter(te,ne,ie),this._addToMoves(te,ie),te}_moveAfter(te,ne,ie){return this._unlink(te),this._insertAfter(te,ne,ie),this._addToMoves(te,ie),te}_addAfter(te,ne,ie){return this._insertAfter(te,ne,ie),null===this._additionsTail?this._additionsTail=this._additionsHead=te:this._additionsTail=this._additionsTail._nextAdded=te,te}_insertAfter(te,ne,ie){const re=null===ne?this._itHead:ne._next;return te._next=re,te._prev=ne,null===re?this._itTail=te:re._prev=te,null===ne?this._itHead=te:ne._next=te,null===this._linkedRecords&&(this._linkedRecords=new _DuplicateMap),this._linkedRecords.put(te),te.currentIndex=ie,te}_remove(te){return this._addToRemovals(this._unlink(te))}_unlink(te){null!==this._linkedRecords&&this._linkedRecords.remove(te);const ne=te._prev,ie=te._next;return null===ne?this._itHead=ie:ne._next=ie,null===ie?this._itTail=ne:ie._prev=ne,te}_addToMoves(te,ne){return te.previousIndex===ne||(null===this._movesTail?this._movesTail=this._movesHead=te:this._movesTail=this._movesTail._nextMoved=te),te}_addToRemovals(te){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _DuplicateMap),this._unlinkedRecords.put(te),te.currentIndex=null,te._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=te,te._prevRemoved=null):(te._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=te),te}_addIdentityChange(te,ne){return te.item=ne,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=te:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=te,te}}class IterableChangeRecord_{constructor(te,ne){this.item=te,this.trackById=ne,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 _DuplicateItemRecordList{constructor(){this._head=null,this._tail=null}add(te){null===this._head?(this._head=this._tail=te,te._nextDup=null,te._prevDup=null):(this._tail._nextDup=te,te._prevDup=this._tail,te._nextDup=null,this._tail=te)}get(te,ne){let ie;for(ie=this._head;null!==ie;ie=ie._nextDup)if((null===ne||ne<=ie.currentIndex)&&Object.is(ie.trackById,te))return ie;return null}remove(te){const ne=te._prevDup,ie=te._nextDup;return null===ne?this._head=ie:ne._nextDup=ie,null===ie?this._tail=ne:ie._prevDup=ne,null===this._head}}class _DuplicateMap{constructor(){this.map=new Map}put(te){const ne=te.trackById;let ie=this.map.get(ne);ie||(ie=new _DuplicateItemRecordList,this.map.set(ne,ie)),ie.add(te)}get(te,ne){const ie=te,re=this.map.get(ie);return re?re.get(te,ne):null}remove(te){const ne=te.trackById;return this.map.get(ne).remove(te)&&this.map.delete(ne),te}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function getPreviousIndex(te,ne,ie){const re=te.previousIndex;if(null===re)return re;let le=0;return ie&&re<ie.length&&(le=ie[re]),re+ne+le}class DefaultKeyValueDifferFactory{constructor(){}supports(te){return te instanceof Map||isJsObject(te)}create(){return new DefaultKeyValueDiffer}}class DefaultKeyValueDiffer{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(te){let ne;for(ne=this._mapHead;null!==ne;ne=ne._next)te(ne)}forEachPreviousItem(te){let ne;for(ne=this._previousMapHead;null!==ne;ne=ne._nextPrevious)te(ne)}forEachChangedItem(te){let ne;for(ne=this._changesHead;null!==ne;ne=ne._nextChanged)te(ne)}forEachAddedItem(te){let ne;for(ne=this._additionsHead;null!==ne;ne=ne._nextAdded)te(ne)}forEachRemovedItem(te){let ne;for(ne=this._removalsHead;null!==ne;ne=ne._nextRemoved)te(ne)}diff(te){if(te){if(!(te instanceof Map||isJsObject(te)))throw new RuntimeError(900,void 0)}else te=new Map;return this.check(te)?this:null}onDestroy(){}check(te){this._reset();let ne=this._mapHead;if(this._appendAfter=null,this._forEach(te,((te,ie)=>{if(ne&&ne.key===ie)this._maybeAddToChanges(ne,te),this._appendAfter=ne,ne=ne._next;else{const re=this._getOrCreateRecordForKey(ie,te);ne=this._insertBeforeOrAppend(ne,re)}})),ne){ne._prev&&(ne._prev._next=null),this._removalsHead=ne;for(let te=ne;null!==te;te=te._nextRemoved)te===this._mapHead&&(this._mapHead=null),this._records.delete(te.key),te._nextRemoved=te._next,te.previousValue=te.currentValue,te.currentValue=null,te._prev=null,te._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(te,ne){if(te){const ie=te._prev;return ne._next=te,ne._prev=ie,te._prev=ne,ie&&(ie._next=ne),te===this._mapHead&&(this._mapHead=ne),this._appendAfter=te,te}return this._appendAfter?(this._appendAfter._next=ne,ne._prev=this._appendAfter):this._mapHead=ne,this._appendAfter=ne,null}_getOrCreateRecordForKey(te,ne){if(this._records.has(te)){const ie=this._records.get(te);this._maybeAddToChanges(ie,ne);const re=ie._prev,le=ie._next;return re&&(re._next=le),le&&(le._prev=re),ie._next=null,ie._prev=null,ie}const ie=new KeyValueChangeRecord_(te);return this._records.set(te,ie),ie.currentValue=ne,this._addToAdditions(ie),ie}_reset(){if(this.isDirty){let te;for(this._previousMapHead=this._mapHead,te=this._previousMapHead;null!==te;te=te._next)te._nextPrevious=te._next;for(te=this._changesHead;null!==te;te=te._nextChanged)te.previousValue=te.currentValue;for(te=this._additionsHead;null!=te;te=te._nextAdded)te.previousValue=te.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(te,ne){Object.is(ne,te.currentValue)||(te.previousValue=te.currentValue,te.currentValue=ne,this._addToChanges(te))}_addToAdditions(te){null===this._additionsHead?this._additionsHead=this._additionsTail=te:(this._additionsTail._nextAdded=te,this._additionsTail=te)}_addToChanges(te){null===this._changesHead?this._changesHead=this._changesTail=te:(this._changesTail._nextChanged=te,this._changesTail=te)}_forEach(te,ne){te instanceof Map?te.forEach(ne):Object.keys(te).forEach((ie=>ne(te[ie],ie)))}}class KeyValueChangeRecord_{constructor(te){this.key=te,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 defaultIterableDiffersFactory(){return new ta([new DefaultIterableDifferFactory])}let ta=(()=>{class IterableDiffers{static#e=this.ɵprov=ɵɵdefineInjectable({token:IterableDiffers,providedIn:"root",factory:defaultIterableDiffersFactory});constructor(te){this.factories=te}static create(te,ne){if(null!=ne){const ie=ne.factories.slice();te=te.concat(ie)}return new IterableDiffers(te)}static extend(te){return{provide:IterableDiffers,useFactory:ne=>IterableDiffers.create(te,ne||defaultIterableDiffersFactory()),deps:[[IterableDiffers,new pi,new Zn]]}}find(te){const ne=this.factories.find((ne=>ne.supports(te)));if(null!=ne)return ne;throw new RuntimeError(901,void 0)}}return IterableDiffers})();function defaultKeyValueDiffersFactory(){return new ia([new DefaultKeyValueDifferFactory])}let ia=(()=>{class KeyValueDiffers{static#e=this.ɵprov=ɵɵdefineInjectable({token:KeyValueDiffers,providedIn:"root",factory:defaultKeyValueDiffersFactory});constructor(te){this.factories=te}static create(te,ne){if(ne){const ie=ne.factories.slice();te=te.concat(ie)}return new KeyValueDiffers(te)}static extend(te){return{provide:KeyValueDiffers,useFactory:ne=>KeyValueDiffers.create(te,ne||defaultKeyValueDiffersFactory()),deps:[[KeyValueDiffers,new pi,new Zn]]}}find(te){const ne=this.factories.find((ne=>ne.supports(te)));if(ne)return ne;throw new RuntimeError(901,void 0)}}return KeyValueDiffers})();let oa=(()=>{class ChangeDetectorRef{static#e=this.__NG_ELEMENT_ID__=injectChangeDetectorRef}return ChangeDetectorRef})();function injectChangeDetectorRef(te){return function createViewRef(te,ne,ie){if(isComponentHost(te)&&!ie){const ie=getComponentLViewByIndex(te.index,ne);return new ViewRef$1(ie,ie)}if(47&te.type){const te=ne[Wt];return new ViewRef$1(te,ne)}return null}(getCurrentTNode(),getLView(),16==(16&te))}let ra=(()=>{class DestroyRef{static#e=this.__NG_ELEMENT_ID__=injectDestroyRef;static#t=this.__NG_ENV_ID__=te=>te}return DestroyRef})();class NodeInjectorDestroyRef extends ra{constructor(te){super(),this._lView=te}onDestroy(te){return storeLViewOnDestroy(this._lView,te),()=>removeLViewOnDestroy(this._lView,te)}}function injectDestroyRef(){return new NodeInjectorDestroyRef(getLView())}const aa=new InjectionToken("",{providedIn:"root",factory:()=>inject(sa)});let sa=(()=>{class EffectScheduler{static#e=this.ɵprov=ɵɵdefineInjectable({token:EffectScheduler,providedIn:"root",factory:()=>new ZoneAwareEffectScheduler})}return EffectScheduler})();class ZoneAwareEffectScheduler{constructor(){this.hasQueuedFlush=!1,this.queuedEffectCount=0,this.queues=new Map}scheduleEffect(te){this.enqueue(te),this.hasQueuedFlush||(queueMicrotask((()=>this.flush())),this.hasQueuedFlush=!1)}enqueue(te){const ne=te.creationZone;this.queues.has(ne)||this.queues.set(ne,new Set);const ie=this.queues.get(ne);ie.has(te)||(this.queuedEffectCount++,ie.add(te))}flush(){for(;this.queuedEffectCount>0;)for(const[te,ne]of this.queues)null===te?this.flushQueue(ne):te.run((()=>this.flushQueue(ne)))}flushQueue(te){for(const ne of te)te.delete(ne),this.queuedEffectCount--,ne.run()}}class EffectHandle{constructor(te,ne,ie,re,le,ce){this.scheduler=te,this.effectFn=ne,this.creationZone=ie,this.injector=le,this.watcher=createWatch((te=>this.runEffect(te)),(()=>this.schedule()),ce),this.unregisterOnDestroy=re?.onDestroy((()=>this.destroy()))}runEffect(te){try{this.effectFn(te)}catch(te){const ne=this.injector.get(ErrorHandler,null,{optional:!0});ne?.handleError(te)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function effect(te,ne){performanceMarkFeature("NgSignals"),!ne?.injector&&assertInInjectionContext();const ie=ne?.injector??inject(co),re=!0!==ne?.manualCleanup?ie.get(ra):null,le=new EffectHandle(ie.get(aa),te,"undefined"==typeof Zone?null:Zone.current,re,ie,ne?.allowSignalWrites??!1),ce=ie.get(oa,null,{optional:!0});return ce&&8&ce._lView[It]?(ce._lView[rn]??=[]).push(le.watcher.notify):le.watcher.notify(),le}function noop(...te){}class NgZone{constructor({enableLongStackTrace:te=!1,shouldCoalesceEventChangeDetection:ne=!1,shouldCoalesceRunChangeDetection:ie=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Le(!1),this.onMicrotaskEmpty=new Le(!1),this.onStable=new Le(!1),this.onError=new Le(!1),"undefined"==typeof Zone)throw new RuntimeError(908,void 0);Zone.assertZonePatched();const re=this;re._nesting=0,re._outer=re._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(re._inner=re._inner.fork(new Zone.TaskTrackingZoneSpec)),te&&Zone.longStackTraceZoneSpec&&(re._inner=re._inner.fork(Zone.longStackTraceZoneSpec)),re.shouldCoalesceEventChangeDetection=!ie&&ne,re.shouldCoalesceRunChangeDetection=ie,re.lastRequestAnimationFrameId=-1,re.nativeRequestAnimationFrame=function getNativeRequestAnimationFrame(){const te="function"==typeof Ve.requestAnimationFrame;let ne=Ve[te?"requestAnimationFrame":"setTimeout"],ie=Ve[te?"cancelAnimationFrame":"clearTimeout"];if("undefined"!=typeof Zone&&ne&&ie){const te=ne[Zone.__symbol__("OriginalDelegate")];te&&(ne=te);const re=ie[Zone.__symbol__("OriginalDelegate")];re&&(ie=re)}return{nativeRequestAnimationFrame:ne,nativeCancelAnimationFrame:ie}}().nativeRequestAnimationFrame,function forkInnerZoneWithAngularBehavior(te){const delayChangeDetectionForEventsDelegate=()=>{!function delayChangeDetectionForEvents(te){if(te.isCheckStableRunning||-1!==te.lastRequestAnimationFrameId)return;te.lastRequestAnimationFrameId=te.nativeRequestAnimationFrame.call(Ve,(()=>{te.fakeTopEventTask||(te.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(()=>{te.lastRequestAnimationFrameId=-1,updateMicroTaskStatus(te),te.isCheckStableRunning=!0,checkStable(te),te.isCheckStableRunning=!1}),void 0,(()=>{}),(()=>{}))),te.fakeTopEventTask.invoke()})),updateMicroTaskStatus(te)}(te)};te._inner=te._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(ne,ie,re,le,ce,de)=>{if(function shouldBeIgnoredByZone(te){if(!Array.isArray(te))return!1;if(1!==te.length)return!1;return!0===te[0].data?.__ignore_ng_zone__}(de))return ne.invokeTask(re,le,ce,de);try{return onEnter(te),ne.invokeTask(re,le,ce,de)}finally{(te.shouldCoalesceEventChangeDetection&&"eventTask"===le.type||te.shouldCoalesceRunChangeDetection)&&delayChangeDetectionForEventsDelegate(),onLeave(te)}},onInvoke:(ne,ie,re,le,ce,de,ue)=>{try{return onEnter(te),ne.invoke(re,le,ce,de,ue)}finally{te.shouldCoalesceRunChangeDetection&&delayChangeDetectionForEventsDelegate(),onLeave(te)}},onHasTask:(ne,ie,re,le)=>{ne.hasTask(re,le),ie===re&&("microTask"==le.change?(te._hasPendingMicrotasks=le.microTask,updateMicroTaskStatus(te),checkStable(te)):"macroTask"==le.change&&(te.hasPendingMacrotasks=le.macroTask))},onHandleError:(ne,ie,re,le)=>(ne.handleError(re,le),te.runOutsideAngular((()=>te.onError.emit(le))),!1)})}(re)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!NgZone.isInAngularZone())throw new RuntimeError(909,void 0)}static assertNotInAngularZone(){if(NgZone.isInAngularZone())throw new RuntimeError(909,void 0)}run(te,ne,ie){return this._inner.run(te,ne,ie)}runTask(te,ne,ie,re){const le=this._inner,ce=le.scheduleEventTask("NgZoneEvent: "+re,te,la,noop,noop);try{return le.runTask(ce,ne,ie)}finally{le.cancelTask(ce)}}runGuarded(te,ne,ie){return this._inner.runGuarded(te,ne,ie)}runOutsideAngular(te){return this._outer.run(te)}}const la={};function checkStable(te){if(0==te._nesting&&!te.hasPendingMicrotasks&&!te.isStable)try{te._nesting++,te.onMicrotaskEmpty.emit(null)}finally{if(te._nesting--,!te.hasPendingMicrotasks)try{te.runOutsideAngular((()=>te.onStable.emit(null)))}finally{te.isStable=!0}}}function updateMicroTaskStatus(te){te._hasPendingMicrotasks||(te.shouldCoalesceEventChangeDetection||te.shouldCoalesceRunChangeDetection)&&-1!==te.lastRequestAnimationFrameId?te.hasPendingMicrotasks=!0:te.hasPendingMicrotasks=!1}function onEnter(te){te._nesting++,te.isStable&&(te.isStable=!1,te.onUnstable.emit(null))}function onLeave(te){te._nesting--,checkStable(te)}class NoopNgZone{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Le,this.onMicrotaskEmpty=new Le,this.onStable=new Le,this.onError=new Le}run(te,ne,ie){return te.apply(ne,ie)}runGuarded(te,ne,ie){return te.apply(ne,ie)}runOutsideAngular(te){return te()}runTask(te,ne,ie,re){return te.apply(ne,ie)}}var da=function(te){return te[te.EarlyRead=0]="EarlyRead",te[te.Write=1]="Write",te[te.MixedReadWrite=2]="MixedReadWrite",te[te.Read=3]="Read",te}(da||{});const ua={destroy(){}};function afterNextRender(te,ne){!ne&&assertInInjectionContext();const ie=ne?.injector??inject(co);if(!isPlatformBrowser(ie))return ua;performanceMarkFeature("NgAfterNextRender");const re=ie.get(pa),le=re.handler??=new AfterRenderCallbackHandlerImpl,ce=ne?.phase??da.MixedReadWrite,destroy=()=>{le.unregister(ue),de()},de=ie.get(ra).onDestroy(destroy),ue=new AfterRenderCallback(ie,ce,(()=>{destroy(),te()}));return le.register(ue),{destroy}}class AfterRenderCallback{constructor(te,ne,ie){this.phase=ne,this.callbackFn=ie,this.zone=te.get(NgZone),this.errorHandler=te.get(ErrorHandler,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(te){this.errorHandler?.handleError(te)}}}class AfterRenderCallbackHandlerImpl{constructor(){this.executingCallbacks=!1,this.buckets={[da.EarlyRead]:new Set,[da.Write]:new Set,[da.MixedReadWrite]:new Set,[da.Read]:new Set},this.deferredCallbacks=new Set}register(te){(this.executingCallbacks?this.deferredCallbacks:this.buckets[te.phase]).add(te)}unregister(te){this.buckets[te.phase].delete(te),this.deferredCallbacks.delete(te)}execute(){this.executingCallbacks=!0;for(const te of Object.values(this.buckets))for(const ne of te)ne.invoke();this.executingCallbacks=!1;for(const te of this.deferredCallbacks)this.buckets[te.phase].add(te);this.deferredCallbacks.clear()}destroy(){for(const te of Object.values(this.buckets))te.clear();this.deferredCallbacks.clear()}}let pa=(()=>{class AfterRenderEventManager{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const te=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const ne of te)ne()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.ɵprov=ɵɵdefineInjectable({token:AfterRenderEventManager,providedIn:"root",factory:()=>new AfterRenderEventManager})}return AfterRenderEventManager})();function isNgModule(te){return!!getNgModuleDef(te)}function computeStaticStyling(te,ne,ie){let re=ie?te.styles:null,le=ie?te.classes:null,ce=0;if(null!==ne)for(let te=0;te<ne.length;te++){const ie=ne[te];if("number"==typeof ie)ce=ie;else if(1==ce)le=concatStringsWithSpace(le,ie);else if(2==ce){re=concatStringsWithSpace(re,ie+": "+ne[++te]+";")}}ie?te.styles=re:te.stylesWithoutHost=re,ie?te.classes=le:te.classesWithoutHost=le}class ComponentFactoryResolver extends Kr{constructor(te){super(),this.ngModule=te}resolveComponentFactory(te){const ne=getComponentDef(te);return new ComponentFactory(ne,this.ngModule)}}function toRefArray(te){const ne=[];for(const ie in te){if(!te.hasOwnProperty(ie))continue;const re=te[ie];void 0!==re&&ne.push({propName:Array.isArray(re)?re[0]:re,templateName:ie})}return ne}class ChainedInjector{constructor(te,ne){this.injector=te,this.parentInjector=ne}get(te,ne,ie){ie=convertToBitFlags(ie);const re=this.injector.get(te,Zr,ie);return re!==Zr||ne===Zr?re:this.parentInjector.get(te,ne,ie)}}class ComponentFactory extends ComponentFactory$1{get inputs(){const te=this.componentDef,ne=te.inputTransforms,ie=toRefArray(te.inputs);if(null!==ne)for(const te of ie)ne.hasOwnProperty(te.propName)&&(te.transform=ne[te.propName]);return ie}get outputs(){return toRefArray(this.componentDef.outputs)}constructor(te,ne){super(),this.componentDef=te,this.ngModule=ne,this.componentType=te.type,this.selector=stringifyCSSSelectorList(te.selectors),this.ngContentSelectors=te.ngContentSelectors?te.ngContentSelectors:[],this.isBoundToModule=!!ne}create(te,ne,ie,re){let le=(re=re||this.ngModule)instanceof EnvironmentInjector?re:re?.injector;le&&null!==this.componentDef.getStandaloneInjector&&(le=this.componentDef.getStandaloneInjector(le)||le);const ce=le?new ChainedInjector(te,le):te,de=ce.get(RendererFactory2,null);if(null===de)throw new RuntimeError(407,void 0);const ue={rendererFactory:de,sanitizer:ce.get(Jr,null),inlineEffectRunner:null,afterRenderEventManager:ce.get(pa,null),changeDetectionScheduler:ce.get(ChangeDetectionScheduler,null)},me=de.createRenderer(null,this.componentDef),ge=this.componentDef.selectors[0][0]||"div",fe=ie?locateHostElement(me,ie,this.componentDef.encapsulation,ce):createElementNode(me,ge,function getNamespace(te){const ne=te.toLowerCase();return"svg"===ne?_n:"math"===ne?bn:null}(ge));let _e=512;this.componentDef.signals?_e|=4096:this.componentDef.onPush||(_e|=16);let be=null;null!==fe&&(be=retrieveHydrationInfo(fe,ce,!0));const Ce=createTView(0,null,null,1,0,null,null,null,null,null,null),ye=createLView(null,Ce,null,_e,null,null,ue,me,ce,null,be);let we,ke;enterView(ye);try{const te=this.componentDef;let re,le=null;te.findHostDirectiveDefs?(re=[],le=new Map,te.findHostDirectiveDefs(te,re,le),re.push(te)):re=[te];const ce=function createRootComponentView(te,ne,ie,re,le,ce,de){const ue=le[vt];!function applyRootComponentStyling(te,ne,ie,re){for(const ie of te)ne.mergedAttrs=mergeHostAttrs(ne.mergedAttrs,ie.hostAttrs);null!==ne.mergedAttrs&&(computeStaticStyling(ne,ne.mergedAttrs,!0),null!==ie&&setupStaticAttributes(re,ie,ne))}(re,te,ne,de);let me=null;null!==ne&&(me=retrieveHydrationInfo(ne,le[Gt]));const ge=ce.rendererFactory.createRenderer(ne,ie);let fe=16;ie.signals?fe=4096:ie.onPush&&(fe=64);const _e=createLView(le,getOrCreateComponentTView(ie),null,fe,le[te.index],te,ce,ge,null,null,me);ue.firstCreatePass&&markAsComponentHost(ue,te,re.length-1);return addToViewTree(le,_e),le[te.index]=_e}(function createRootComponentTNode(te,ne){const ie=te[vt],re=sn;return te[re]=ne,getOrCreateTNode(ie,re,2,"#host",null)}(ye,fe),fe,te,re,ye,ue,me);ke=getTNode(Ce,sn),fe&&function setRootNodeAttributes(te,ne,ie,re){if(re)setUpAttributes(te,ie,["ng-version","17.2.3"]);else{const{attrs:re,classes:le}=function extractAttrsAndClassesFromSelector(te){const ne=[],ie=[];let re=1,le=2;for(;re<te.length;){let ce=te[re];if("string"==typeof ce)2===le?""!==ce&&ne.push(ce,te[++re]):8===le&&ie.push(ce);else{if(!isPositive(le))break;le=ce}re++}return{attrs:ne,classes:ie}}(ne.selectors[0]);re&&setUpAttributes(te,ie,re),le&&le.length>0&&writeDirectClass(te,ie,le.join(" "))}}(me,te,fe,ie),void 0!==ne&&function projectNodes(te,ne,ie){const re=te.projection=[];for(let te=0;te<ne.length;te++){const ne=ie[te];re.push(null!=ne?Array.from(ne):null)}}(ke,this.ngContentSelectors,ne),we=function createRootComponent(te,ne,ie,re,le,ce){const de=getCurrentTNode();const ue=le[vt],me=getNativeByTNode(de,le);initializeDirectives(ue,le,de,ie,null,re);for(let te=0;te<ie.length;te++){attachPatchData(getNodeInjectable(le,ue,de.directiveStart+te,de),le)}invokeDirectivesHostBindings(ue,le,de),me&&attachPatchData(me,le);const ge=getNodeInjectable(le,ue,de.directiveStart+de.componentOffset,de);if(te[Vt]=le[Vt]=ge,null!==ce)for(const te of ce)te(ge,ne);return executeContentQueries(ue,de,le),ge}(ce,te,re,le,ye,[LifecycleHooksFeature]),renderView(Ce,ye,null)}finally{leaveView()}return new ComponentRef(this.componentType,we,createElementRef(ke,ye),ye,ke)}}class ComponentRef extends ComponentRef$1{constructor(te,ne,ie,re,le){super(),this.location=ie,this._rootLView=re,this._tNode=le,this.previousInputValues=null,this.instance=ne,this.hostView=this.changeDetectorRef=new ViewRef$1(re,void 0,!1),this.componentType=te}setInput(te,ne){const ie=this._tNode.inputs;let re;if(null!==ie&&(re=ie[te])){if(this.previousInputValues??=new Map,this.previousInputValues.has(te)&&Object.is(this.previousInputValues.get(te),ne))return;const ie=this._rootLView;setInputsForProperty(ie[vt],ie,re,te,ne),this.previousInputValues.set(te,ne);markViewDirty(getComponentLViewByIndex(this._tNode.index,ie))}else 0}get injector(){return new NodeInjector(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(te){this.hostView.onDestroy(te)}}function LifecycleHooksFeature(){const te=getCurrentTNode();registerPostOrderHooks(getLView()[vt],te)}let ha=(()=>{class ViewContainerRef{static#e=this.__NG_ELEMENT_ID__=injectViewContainerRef}return ViewContainerRef})();function injectViewContainerRef(){return createContainerRef(getCurrentTNode(),getLView())}const Ca=ha,wa=class ViewContainerRef extends Ca{constructor(te,ne,ie){super(),this._lContainer=te,this._hostTNode=ne,this._hostLView=ie}get element(){return createElementRef(this._hostTNode,this._hostLView)}get injector(){return new NodeInjector(this._hostTNode,this._hostLView)}get parentInjector(){const te=getParentInjectorLocation(this._hostTNode,this._hostLView);if(hasParentInjector(te)){const ne=getParentInjectorView(te,this._hostLView),ie=getParentInjectorIndex(te),re=ne[vt].data[ie+8];return new NodeInjector(re,ne)}return new NodeInjector(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(te){const ne=getViewRefs(this._lContainer);return null!==ne&&ne[te]||null}get length(){return this._lContainer.length-hn}createEmbeddedView(te,ne,ie){let re,le;"number"==typeof ie?re=ie:null!=ie&&(re=ie.index,le=ie.injector);const ce=findMatchingDehydratedView(this._lContainer,te.ssrId),de=te.createEmbeddedViewImpl(ne||{},le,ce);return this.insertImpl(de,re,shouldAddViewToDom(this._hostTNode,ce)),de}createComponent(te,ne,ie,re,le){const ce=te&&!isType(te);let de;if(ce)de=ne;else{0;const te=ne||{};0,de=te.index,ie=te.injector,re=te.projectableNodes,le=te.environmentInjector||te.ngModuleRef}const ue=ce?te:new ComponentFactory(getComponentDef(te)),me=ie||this.parentInjector;if(!le&&null==ue.ngModule){const te=(ce?me:this.parentInjector).get(EnvironmentInjector,null);te&&(le=te)}const ge=getComponentDef(ue.componentType??{}),fe=findMatchingDehydratedView(this._lContainer,ge?.id??null),_e=fe?.firstChild??null,be=ue.create(me,re,_e,le);return this.insertImpl(be.hostView,de,shouldAddViewToDom(this._hostTNode,fe)),be}insert(te,ne){return this.insertImpl(te,ne,!0)}insertImpl(te,ne,ie){const re=te._lView;if(function viewAttachedToContainer(te){return isLContainer(te[Dt])}(re)){const ne=this.indexOf(te);if(-1!==ne)this.detach(ne);else{const ne=re[Dt],ie=new wa(ne,ne[Nt],ne[Dt]);ie.detach(ie.indexOf(te))}}const le=this._adjustIndex(ne),ce=this._lContainer;return addLViewToLContainer(ce,re,le,ie),te.attachToViewContainerRef(),addToArray(getOrCreateViewRefs(ce),le,te),te}move(te,ne){return this.insert(te,ne)}indexOf(te){const ne=getViewRefs(this._lContainer);return null!==ne?ne.indexOf(te):-1}remove(te){const ne=this._adjustIndex(te,-1),ie=detachView(this._lContainer,ne);ie&&(removeFromArray(getOrCreateViewRefs(this._lContainer),ne),destroyLView(ie[vt],ie))}detach(te){const ne=this._adjustIndex(te,-1),ie=detachView(this._lContainer,ne);return ie&&null!=removeFromArray(getOrCreateViewRefs(this._lContainer),ne)?new ViewRef$1(ie):null}_adjustIndex(te,ne=0){return null==te?this.length+ne:te}};function getViewRefs(te){return te[8]}function getOrCreateViewRefs(te){return te[8]||(te[8]=[])}function createContainerRef(te,ne){let ie;const re=ne[te.index];return isLContainer(re)?ie=re:(ie=createLContainer(re,ne,null,te),ne[te.index]=ie,addToViewTree(ne,ie)),Ta(ie,ne,te,re),new wa(ie,te,ne)}let Ta=createAnchorNode,_populateDehydratedViewsInLContainer=()=>!1;function populateDehydratedViewsInLContainer(te,ne,ie){return _populateDehydratedViewsInLContainer(te,ne,ie)}function createAnchorNode(te,ne,ie,re){if(te[un])return;let le;le=8&ie.type?unwrapRNode(re):function insertAnchorNode(te,ne){const ie=te[Ht],re=ie.createComment(""),le=getNativeByTNode(ne,te);return nativeInsertBefore(ie,nativeParentNode(ie,le),re,function nativeNextSibling(te,ne){return te.nextSibling(ne)}(ie,le),!1),re}(ne,ie),te[un]=le}class LQuery_{constructor(te){this.queryList=te,this.matches=null}clone(){return new LQuery_(this.queryList)}setDirty(){this.queryList.setDirty()}}class LQueries_{constructor(te=[]){this.queries=te}createEmbeddedView(te){const ne=te.queries;if(null!==ne){const ie=null!==te.contentQueries?te.contentQueries[0]:ne.length,re=[];for(let te=0;te<ie;te++){const ie=ne.getByIndex(te),le=this.queries[ie.indexInDeclarationView];re.push(le.clone())}return new LQueries_(re)}return null}insertView(te){this.dirtyQueriesWithMatches(te)}detachView(te){this.dirtyQueriesWithMatches(te)}finishViewCreation(te){this.dirtyQueriesWithMatches(te)}dirtyQueriesWithMatches(te){for(let ne=0;ne<this.queries.length;ne++)null!==getTQuery(te,ne).matches&&this.queries[ne].setDirty()}}class TQueryMetadata_{constructor(te,ne,ie=null){this.flags=ne,this.read=ie,this.predicate="string"==typeof te?function splitQueryMultiSelectors(te){return te.split(",").map((te=>te.trim()))}(te):te}}class TQueries_{constructor(te=[]){this.queries=te}elementStart(te,ne){for(let ie=0;ie<this.queries.length;ie++)this.queries[ie].elementStart(te,ne)}elementEnd(te){for(let ne=0;ne<this.queries.length;ne++)this.queries[ne].elementEnd(te)}embeddedTView(te){let ne=null;for(let ie=0;ie<this.length;ie++){const re=null!==ne?ne.length:0,le=this.getByIndex(ie).embeddedTView(te,re);le&&(le.indexInDeclarationView=ie,null!==ne?ne.push(le):ne=[le])}return null!==ne?new TQueries_(ne):null}template(te,ne){for(let ie=0;ie<this.queries.length;ie++)this.queries[ie].template(te,ne)}getByIndex(te){return this.queries[te]}get length(){return this.queries.length}track(te){this.queries.push(te)}}class TQuery_{constructor(te,ne=-1){this.metadata=te,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=ne}elementStart(te,ne){this.isApplyingToNode(ne)&&this.matchTNode(te,ne)}elementEnd(te){this._declarationNodeIndex===te.index&&(this._appliesToNextNode=!1)}template(te,ne){this.elementStart(te,ne)}embeddedTView(te,ne){return this.isApplyingToNode(te)?(this.crossesNgTemplate=!0,this.addMatch(-te.index,ne),new TQuery_(this.metadata)):null}isApplyingToNode(te){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const ne=this._declarationNodeIndex;let ie=te.parent;for(;null!==ie&&8&ie.type&&ie.index!==ne;)ie=ie.parent;return ne===(null!==ie?ie.index:-1)}return this._appliesToNextNode}matchTNode(te,ne){const ie=this.metadata.predicate;if(Array.isArray(ie))for(let re=0;re<ie.length;re++){const le=ie[re];this.matchTNodeWithReadOption(te,ne,getIdxOfMatchingSelector(ne,le)),this.matchTNodeWithReadOption(te,ne,locateDirectiveOrProvider(ne,te,le,!1,!1))}else ie===Hr?4&ne.type&&this.matchTNodeWithReadOption(te,ne,-1):this.matchTNodeWithReadOption(te,ne,locateDirectiveOrProvider(ne,te,ie,!1,!1))}matchTNodeWithReadOption(te,ne,ie){if(null!==ie){const re=this.metadata.read;if(null!==re)if(re===Tn||re===ha||re===Hr&&4&ne.type)this.addMatch(ne.index,-2);else{const ie=locateDirectiveOrProvider(ne,te,re,!1,!1);null!==ie&&this.addMatch(ne.index,ie)}else this.addMatch(ne.index,ie)}}addMatch(te,ne){null===this.matches?this.matches=[te,ne]:this.matches.push(te,ne)}}function getIdxOfMatchingSelector(te,ne){const ie=te.localNames;if(null!==ie)for(let te=0;te<ie.length;te+=2)if(ie[te]===ne)return ie[te+1];return null}function createResultForNode(te,ne,ie,re){return-1===ie?function createResultByTNodeType(te,ne){return 11&te.type?createElementRef(te,ne):4&te.type?createTemplateRef(te,ne):null}(ne,te):-2===ie?function createSpecialToken(te,ne,ie){if(ie===Tn)return createElementRef(ne,te);if(ie===Hr)return createTemplateRef(ne,te);if(ie===ha)return createContainerRef(ne,te)}(te,ne,re):getNodeInjectable(te,te[vt],ie,ne)}function materializeViewResults(te,ne,ie,re){const le=ne[Jt].queries[re];if(null===le.matches){const re=te.data,ce=ie.matches,de=[];for(let te=0;null!==ce&&te<ce.length;te+=2){const le=ce[te];if(le<0)de.push(null);else{const ue=re[le];de.push(createResultForNode(ne,ue,ce[te+1],ie.metadata.read))}}le.matches=de}return le.matches}function collectQueryResults(te,ne,ie,re){const le=te.queries.getByIndex(ie),ce=le.matches;if(null!==ce){const de=materializeViewResults(te,ne,le,ie);for(let te=0;te<ce.length;te+=2){const ie=ce[te];if(ie>0)re.push(de[te/2]);else{const le=ce[te+1],de=ne[-ie];for(let te=hn;te<de.length;te++){const ne=de[te];ne[Kt]===ne[Dt]&&collectQueryResults(ne[vt],ne,le,re)}if(null!==de[pn]){const te=de[pn];for(let ne=0;ne<te.length;ne++){const ie=te[ne];collectQueryResults(ie[vt],ie,le,re)}}}}}return re}function loadQueryInternal(te,ne){return te[Jt].queries[ne].queryList}function createLQuery(te,ne,ie){const re=new QueryList(4==(4&ie));!function storeCleanupWithContext(te,ne,ie,re){const le=getOrCreateLViewCleanup(ne);le.push(ie),te.firstCreatePass&&getOrCreateTViewCleanup(te).push(re,le.length-1)}(te,ne,re,re.destroy);return(ne[Jt]??=new LQueries_).queries.push(new LQuery_(re))-1}function createViewQuery(te,ne,ie){const re=getTView();return re.firstCreatePass&&(createTQuery(re,new TQueryMetadata_(te,ne,ie),-1),2==(2&ne)&&(re.staticViewQueries=!0)),createLQuery(re,getLView(),ne)}function createContentQuery(te,ne,ie,re){const le=getTView();if(le.firstCreatePass){const ce=getCurrentTNode();createTQuery(le,new TQueryMetadata_(ne,ie,re),ce.index),function saveContentQueryAndDirectiveIndex(te,ne){const ie=te.contentQueries||(te.contentQueries=[]),re=ie.length?ie[ie.length-1]:-1;ne!==re&&ie.push(te.queries.length-1,ne)}(le,te),2==(2&ie)&&(le.staticContentQueries=!0)}return createLQuery(le,getLView(),ie)}function createTQuery(te,ne,ie){null===te.queries&&(te.queries=new TQueries_),te.queries.track(new TQuery_(ne,ie))}function getTQuery(te,ne){return te.queries.getByIndex(ne)}function getQueryResults(te,ne){const ie=te[vt],re=getTQuery(ie,ne);return re.crossesNgTemplate?collectQueryResults(ie,te,ne,[]):materializeViewResults(ie,te,re,ne)}function resolveComponentResources(te){const ne=[],ie=new Map;function cachedResourceResolve(ne){let re=ie.get(ne);if(!re){const le=te(ne);ie.set(ne,re=le.then(unwrapResponse))}return re}return Da.forEach(((te,ie)=>{const re=[];te.templateUrl&&re.push(cachedResourceResolve(te.templateUrl).then((ne=>{te.template=ne})));const le="string"==typeof te.styles?[te.styles]:te.styles||[];if(te.styles=le,te.styleUrl&&te.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(te.styleUrls?.length){const ne=te.styles.length,ie=te.styleUrls;te.styleUrls.forEach(((ce,de)=>{le.push(""),re.push(cachedResourceResolve(ce).then((re=>{le[ne+de]=re,ie.splice(ie.indexOf(ce),1),0==ie.length&&(te.styleUrls=void 0)})))}))}else te.styleUrl&&re.push(cachedResourceResolve(te.styleUrl).then((ne=>{le.push(ne),te.styleUrl=void 0})));const ce=Promise.all(re).then((()=>function componentDefResolved(te){xa.delete(te)}(ie)));ne.push(ce)})),function clearResolutionOfComponentResourcesQueue(){const te=Da;return Da=new Map,te}(),Promise.all(ne).then((()=>{}))}let Da=new Map;const xa=new Set;function unwrapResponse(te){return"string"==typeof te?te:te.text()}function getSuperType(te){return Object.getPrototypeOf(te.prototype).constructor}function ɵɵInheritDefinitionFeature(te){let ne=getSuperType(te.type),ie=!0;const re=[te];for(;ne;){let le;if(isComponentDef(te))le=ne.ɵcmp||ne.ɵdir;else{if(ne.ɵcmp)throw new RuntimeError(903,void 0);le=ne.ɵdir}if(le){if(ie){re.push(le);const ne=te;ne.inputs=maybeUnwrapEmpty(te.inputs),ne.inputTransforms=maybeUnwrapEmpty(te.inputTransforms),ne.declaredInputs=maybeUnwrapEmpty(te.declaredInputs),ne.outputs=maybeUnwrapEmpty(te.outputs);const ie=le.hostBindings;ie&&inheritHostBindings(te,ie);const ce=le.viewQuery,de=le.contentQueries;if(ce&&inheritViewQuery(te,ce),de&&inheritContentQueries(te,de),mergeInputsWithTransforms(te,le),fillProperties(te.outputs,le.outputs),isComponentDef(le)&&le.data.animation){const ne=te.data;ne.animation=(ne.animation||[]).concat(le.data.animation)}}const ne=le.features;if(ne)for(let re=0;re<ne.length;re++){const le=ne[re];le&&le.ngInherit&&le(te),le===ɵɵInheritDefinitionFeature&&(ie=!1)}}ne=Object.getPrototypeOf(ne)}!function mergeHostAttrsAcrossInheritance(te){let ne=0,ie=null;for(let re=te.length-1;re>=0;re--){const le=te[re];le.hostVars=ne+=le.hostVars,le.hostAttrs=mergeHostAttrs(le.hostAttrs,ie=mergeHostAttrs(ie,le.hostAttrs))}}(re)}function mergeInputsWithTransforms(te,ne){for(const ie in ne.inputs){if(!ne.inputs.hasOwnProperty(ie))continue;if(te.inputs.hasOwnProperty(ie))continue;const re=ne.inputs[ie];if(void 0!==re&&(te.inputs[ie]=re,te.declaredInputs[ie]=ne.declaredInputs[ie],null!==ne.inputTransforms)){const ie=Array.isArray(re)?re[0]:re;if(!ne.inputTransforms.hasOwnProperty(ie))continue;te.inputTransforms??={},te.inputTransforms[ie]=ne.inputTransforms[ie]}}}function maybeUnwrapEmpty(te){return te===Ge?{}:te===ze?[]:te}function inheritViewQuery(te,ne){const ie=te.viewQuery;te.viewQuery=ie?(te,re)=>{ne(te,re),ie(te,re)}:ne}function inheritContentQueries(te,ne){const ie=te.contentQueries;te.contentQueries=ie?(te,re,le)=>{ne(te,re,le),ie(te,re,le)}:ne}function inheritHostBindings(te,ne){const ie=te.hostBindings;te.hostBindings=ie?(te,re)=>{ne(te,re),ie(te,re)}:ne}function ɵɵInputTransformsFeature(te){const ne=te.inputConfig,ie={};for(const te in ne)if(ne.hasOwnProperty(te)){const re=ne[te];Array.isArray(re)&&re[3]&&(ie[te]=re[3])}te.inputTransforms=ie}class NgModuleRef$1{}class NgModuleFactory$1{}function createNgModule(te,ne){return new NgModuleRef(te,ne??null,[])}class NgModuleRef extends NgModuleRef$1{constructor(te,ne,ie){super(),this._parent=ne,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ComponentFactoryResolver(this);const re=getNgModuleDef(te);this._bootstrapComponents=maybeUnwrapFn(re.bootstrap),this._r3Injector=createInjectorWithoutInjectorInstances(te,ne,[{provide:NgModuleRef$1,useValue:this},{provide:Kr,useValue:this.componentFactoryResolver},...ie],stringify(te),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(te)}get injector(){return this._r3Injector}destroy(){const te=this._r3Injector;!te.destroyed&&te.destroy(),this.destroyCbs.forEach((te=>te())),this.destroyCbs=null}onDestroy(te){this.destroyCbs.push(te)}}class NgModuleFactory extends NgModuleFactory$1{constructor(te){super(),this.moduleType=te}create(te){return new NgModuleRef(this.moduleType,te,[])}}class EnvironmentNgModuleRefAdapter extends NgModuleRef$1{constructor(te){super(),this.componentFactoryResolver=new ComponentFactoryResolver(this),this.instance=null;const ne=new R3Injector([...te.providers,{provide:NgModuleRef$1,useValue:this},{provide:Kr,useValue:this.componentFactoryResolver}],te.parent||getNullInjector(),te.debugName,new Set(["environment"]));this.injector=ne,te.runEnvironmentInitializers&&ne.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(te){this.injector.onDestroy(te)}}function createEnvironmentInjector(te,ne,ie=null){return new EnvironmentNgModuleRefAdapter({providers:te,parent:ne,debugName:ie,runEnvironmentInitializers:!0}).injector}let Ma=(()=>{class PendingTasks{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new xe.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const te=this.taskId++;return this.pendingTasks.add(te),te}remove(te){this.pendingTasks.delete(te),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.ɵfac=function PendingTasks_Factory(te){return new(te||PendingTasks)};static#t=this.ɵprov=ɵɵdefineInjectable({token:PendingTasks,factory:PendingTasks.ɵfac,providedIn:"root"})}return PendingTasks})();function updateBinding(te,ne,ie){return te[ne]=ie}function getBinding(te,ne){return te[ne]}function bindingUpdated(te,ne,ie){const re=te[ne];return!Object.is(re,ie)&&(te[ne]=ie,!0)}function bindingUpdated2(te,ne,ie,re){const le=bindingUpdated(te,ne,ie);return bindingUpdated(te,ne+1,re)||le}function bindingUpdated3(te,ne,ie,re,le){const ce=bindingUpdated2(te,ne,ie,re);return bindingUpdated(te,ne+2,le)||ce}function bindingUpdated4(te,ne,ie,re,le,ce){const de=bindingUpdated2(te,ne,ie,re);return bindingUpdated2(te,ne+2,le,ce)||de}function ɵɵtemplate(te,ne,ie,re,le,ce,de,ue){const me=getLView(),ge=getTView(),fe=te+sn,_e=ge.firstCreatePass?function templateFirstCreatePass(te,ne,ie,re,le,ce,de,ue,me){const ge=ne.consts,fe=getOrCreateTNode(ne,te,4,de||null,getConstant(ge,ue));resolveDirectives(ne,ie,fe,getConstant(ge,me)),registerPostOrderHooks(ne,fe);const _e=fe.tView=createTView(2,fe,re,le,ce,ne.directiveRegistry,ne.pipeRegistry,null,ne.schemas,ge,null);return null!==ne.queries&&(ne.queries.template(ne,fe),_e.queries=ne.queries.embeddedTView(fe)),fe}(fe,ge,me,ne,ie,re,le,ce,de):ge.data[fe];setCurrentTNode(_e,!1);const be=Na(ge,me,_e,te);wasLastNodeCreated()&&appendChild(ge,me,be,_e),attachPatchData(be,me);const Ce=createLContainer(be,me,be,_e);return me[fe]=Ce,addToViewTree(me,Ce),populateDehydratedViewsInLContainer(Ce,_e,me),isDirectiveHost(_e)&&createDirectivesInstances(ge,me,_e),null!=de&&saveResolvedLocalsInData(me,_e,ue),ɵɵtemplate}let Na=createContainerAnchorImpl;function createContainerAnchorImpl(te,ne,ie,re){return lastNodeWasCreated(!0),ne[Ht].createComment("")}function ɵɵattribute(te,ne,ie,re){const le=getLView();if(bindingUpdated(le,nextBindingIndex(),ne)){getTView();elementAttributeInternal(getSelectedTNode(),le,te,ne,ie,re)}return ɵɵattribute}function interpolation1(te,ne,ie,re){return bindingUpdated(te,nextBindingIndex(),ie)?ne+renderStringify(ie)+re:Lr}function interpolation2(te,ne,ie,re,le,ce){const de=bindingUpdated2(te,getBindingIndex(),ie,le);return incrementBindingIndex(2),de?ne+renderStringify(ie)+re+renderStringify(le)+ce:Lr}function toTStylingRange(te,ne){return te<<17|ne<<2}function getTStylingRangePrev(te){return te>>17&32767}function setTStylingRangePrevDuplicate(te){return 2|te}function getTStylingRangeNext(te){return(131068&te)>>2}function setTStylingRangeNext(te,ne){return-131069&te|ne<<2}function setTStylingRangeNextDuplicate(te){return 1|te}function insertTStylingBinding(te,ne,ie,re,le,ce){let de=ce?ne.classBindings:ne.styleBindings,ue=getTStylingRangePrev(de),me=getTStylingRangeNext(de);te[re]=ie;let ge,fe=!1;if(Array.isArray(ie)){const te=ie;ge=te[1],(null===ge||keyValueArrayIndexOf(te,ge)>0)&&(fe=!0)}else ge=ie;if(le){if(0!==me){const ne=getTStylingRangePrev(te[ue+1]);te[re+1]=toTStylingRange(ne,ue),0!==ne&&(te[ne+1]=setTStylingRangeNext(te[ne+1],re)),te[ue+1]=function setTStylingRangePrev(te,ne){return 131071&te|ne<<17}(te[ue+1],re)}else te[re+1]=toTStylingRange(ue,0),0!==ue&&(te[ue+1]=setTStylingRangeNext(te[ue+1],re)),ue=re}else te[re+1]=toTStylingRange(me,0),0===ue?ue=re:te[me+1]=setTStylingRangeNext(te[me+1],re),me=re;fe&&(te[re+1]=setTStylingRangePrevDuplicate(te[re+1])),markDuplicates(te,ge,re,!0),markDuplicates(te,ge,re,!1),function markDuplicateOfResidualStyling(te,ne,ie,re,le){const ce=le?te.residualClasses:te.residualStyles;null!=ce&&"string"==typeof ne&&keyValueArrayIndexOf(ce,ne)>=0&&(ie[re+1]=setTStylingRangeNextDuplicate(ie[re+1]))}(ne,ge,te,re,ce),de=toTStylingRange(ue,me),ce?ne.classBindings=de:ne.styleBindings=de}function markDuplicates(te,ne,ie,re){const le=te[ie+1],ce=null===ne;let de=re?getTStylingRangePrev(le):getTStylingRangeNext(le),ue=!1;for(;0!==de&&(!1===ue||ce);){const ie=te[de],le=te[de+1];isStylingMatch(ie,ne)&&(ue=!0,te[de+1]=re?setTStylingRangeNextDuplicate(le):setTStylingRangePrevDuplicate(le)),de=re?getTStylingRangePrev(le):getTStylingRangeNext(le)}ue&&(te[ie+1]=re?setTStylingRangePrevDuplicate(le):setTStylingRangeNextDuplicate(le))}function isStylingMatch(te,ne){return null===te||null==ne||(Array.isArray(te)?te[1]:te)===ne||!(!Array.isArray(te)||"string"!=typeof ne)&&keyValueArrayIndexOf(te,ne)>=0}const Ra={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function getLastParsedKey(te){return te.substring(Ra.key,Ra.keyEnd)}function getLastParsedValue(te){return te.substring(Ra.value,Ra.valueEnd)}function parseClassNameNext(te,ne){const ie=Ra.textEnd;return ie===ne?-1:(ne=Ra.keyEnd=function consumeClassToken(te,ne,ie){for(;ne<ie&&te.charCodeAt(ne)>32;)ne++;return ne}(te,Ra.key=ne,ie),consumeWhitespace(te,ne,ie))}function parseStyleNext(te,ne){const ie=Ra.textEnd;let re=Ra.key=consumeWhitespace(te,ne,ie);return ie===re?-1:(re=Ra.keyEnd=function consumeStyleKey(te,ne,ie){let re;for(;ne<ie&&(45===(re=te.charCodeAt(ne))||95===re||(-33&re)>=65&&(-33&re)<=90||re>=48&&re<=57);)ne++;return ne}(te,re,ie),re=consumeSeparator(te,re,ie,58),re=Ra.value=consumeWhitespace(te,re,ie),re=Ra.valueEnd=function consumeStyleValue(te,ne,ie){let re=-1,le=-1,ce=-1,de=ne,ue=de;for(;de<ie;){const me=te.charCodeAt(de++);if(59===me)return ue;34===me||39===me?ue=de=consumeQuotedText(te,me,de,ie):ne===de-4&&85===ce&&82===le&&76===re&&40===me?ue=de=consumeQuotedText(te,41,de,ie):me>32&&(ue=de),ce=le,le=re,re=-33&me}return ue}(te,re,ie),consumeSeparator(te,re,ie,59))}function resetParserState(te){Ra.key=0,Ra.keyEnd=0,Ra.value=0,Ra.valueEnd=0,Ra.textEnd=te.length}function consumeWhitespace(te,ne,ie){for(;ne<ie&&te.charCodeAt(ne)<=32;)ne++;return ne}function consumeSeparator(te,ne,ie,re){return(ne=consumeWhitespace(te,ne,ie))<ie&&ne++,ne}function consumeQuotedText(te,ne,ie,re){let le=-1,ce=ie;for(;ce<re;){const ie=te.charCodeAt(ce++);if(ie==ne&&92!==le)return ce;le=92==ie&&92===le?0:ie}throw new Error}function ɵɵproperty(te,ne,ie){const re=getLView();if(bindingUpdated(re,nextBindingIndex(),ne)){elementPropertyInternal(getTView(),getSelectedTNode(),re,te,ne,re[Ht],ie,!1)}return ɵɵproperty}function setDirectiveInputsWhichShadowsStyling(te,ne,ie,re,le){const ce=le?"class":"style";setInputsForProperty(te,ie,ne.inputs[ce],ce,re)}function ɵɵstyleProp(te,ne,ie){return checkStylingProperty(te,ne,ie,!1),ɵɵstyleProp}function ɵɵclassProp(te,ne){return checkStylingProperty(te,ne,null,!0),ɵɵclassProp}function ɵɵstyleMap(te){checkStylingMap(styleKeyValueArraySet,styleStringParser,te,!1)}function styleStringParser(te,ne){for(let ie=function parseStyle(te){return resetParserState(te),parseStyleNext(te,consumeWhitespace(te,0,Ra.textEnd))}(ne);ie>=0;ie=parseStyleNext(ne,ie))styleKeyValueArraySet(te,getLastParsedKey(ne),getLastParsedValue(ne))}function ɵɵclassMap(te){checkStylingMap(classKeyValueArraySet,classStringParser,te,!0)}function classStringParser(te,ne){for(let ie=function parseClassName(te){return resetParserState(te),parseClassNameNext(te,consumeWhitespace(te,0,Ra.textEnd))}(ne);ie>=0;ie=parseClassNameNext(ne,ie))keyValueArraySet(te,getLastParsedKey(ne),!0)}function checkStylingProperty(te,ne,ie,re){const le=getLView(),ce=getTView(),de=incrementBindingIndex(2);if(ce.firstUpdatePass&&stylingFirstUpdatePass(ce,te,de,re),ne!==Lr&&bindingUpdated(le,de,ne)){updateStyling(ce,ce.data[getSelectedIndex()],le,le[Ht],te,le[de+1]=function normalizeSuffix(te,ne){null==te||""===te||("string"==typeof ne?te+=ne:"object"==typeof te&&(te=stringify(unwrapSafeValue(te))));return te}(ne,ie),re,de)}}function checkStylingMap(te,ne,ie,re){const le=getTView(),ce=incrementBindingIndex(2);le.firstUpdatePass&&stylingFirstUpdatePass(le,null,ce,re);const de=getLView();if(ie!==Lr&&bindingUpdated(de,ce,ie)){const ue=le.data[getSelectedIndex()];if(hasStylingInputShadow(ue,re)&&!isInHostBindings(le,ce)){0;let te=re?ue.classesWithoutHost:ue.stylesWithoutHost;null!==te&&(ie=concatStringsWithSpace(te,ie||"")),setDirectiveInputsWhichShadowsStyling(le,ue,de,ie,re)}else!function updateStylingMap(te,ne,ie,re,le,ce,de,ue){le===Lr&&(le=ze);let me=0,ge=0,fe=0<le.length?le[0]:null,_e=0<ce.length?ce[0]:null;for(;null!==fe||null!==_e;){const be=me<le.length?le[me+1]:void 0,Ce=ge<ce.length?ce[ge+1]:void 0;let ye,we=null;fe===_e?(me+=2,ge+=2,be!==Ce&&(we=_e,ye=Ce)):null===_e||null!==fe&&fe<_e?(me+=2,we=fe):(ge+=2,we=_e,ye=Ce),null!==we&&updateStyling(te,ne,ie,re,we,ye,de,ue),fe=me<le.length?le[me]:null,_e=ge<ce.length?ce[ge]:null}}(le,ue,de,de[Ht],de[ce+1],de[ce+1]=function toStylingKeyValueArray(te,ne,ie){if(null==ie||""===ie)return ze;const re=[],le=unwrapSafeValue(ie);if(Array.isArray(le))for(let ne=0;ne<le.length;ne++)te(re,le[ne],!0);else if("object"==typeof le)for(const ne in le)le.hasOwnProperty(ne)&&te(re,ne,le[ne]);else"string"==typeof le&&ne(re,le);return re}(te,ne,ie),re,ce)}}function isInHostBindings(te,ne){return ne>=te.expandoStartIndex}function stylingFirstUpdatePass(te,ne,ie,re){const le=te.data;if(null===le[ie+1]){const ce=le[getSelectedIndex()],de=isInHostBindings(te,ie);hasStylingInputShadow(ce,re)&&null===ne&&!de&&(ne=!1),ne=function wrapInStaticStylingKey(te,ne,ie,re){const le=getCurrentDirectiveDef(te);let ce=re?ne.residualClasses:ne.residualStyles;if(null===le){0===(re?ne.classBindings:ne.styleBindings)&&(ie=collectStylingFromTAttrs(ie=collectStylingFromDirectives(null,te,ne,ie,re),ne.attrs,re),ce=null)}else{const de=ne.directiveStylingLast;if(-1===de||te[de]!==le)if(ie=collectStylingFromDirectives(le,te,ne,ie,re),null===ce){let ie=function getTemplateHeadTStylingKey(te,ne,ie){const re=ie?ne.classBindings:ne.styleBindings;if(0===getTStylingRangeNext(re))return;return te[getTStylingRangePrev(re)]}(te,ne,re);void 0!==ie&&Array.isArray(ie)&&(ie=collectStylingFromDirectives(null,te,ne,ie[1],re),ie=collectStylingFromTAttrs(ie,ne.attrs,re),function setTemplateHeadTStylingKey(te,ne,ie,re){const le=ie?ne.classBindings:ne.styleBindings;te[getTStylingRangePrev(le)]=re}(te,ne,re,ie))}else ce=function collectResidual(te,ne,ie){let re;const le=ne.directiveEnd;for(let ce=1+ne.directiveStylingLast;ce<le;ce++){re=collectStylingFromTAttrs(re,te[ce].hostAttrs,ie)}return collectStylingFromTAttrs(re,ne.attrs,ie)}(te,ne,re)}void 0!==ce&&(re?ne.residualClasses=ce:ne.residualStyles=ce);return ie}(le,ce,ne,re),insertTStylingBinding(le,ce,ne,ie,de,re)}}function collectStylingFromDirectives(te,ne,ie,re,le){let ce=null;const de=ie.directiveEnd;let ue=ie.directiveStylingLast;for(-1===ue?ue=ie.directiveStart:ue++;ue<de&&(ce=ne[ue],re=collectStylingFromTAttrs(re,ce.hostAttrs,le),ce!==te);)ue++;return null!==te&&(ie.directiveStylingLast=ue),re}function collectStylingFromTAttrs(te,ne,ie){const re=ie?1:2;let le=-1;if(null!==ne)for(let ce=0;ce<ne.length;ce++){const de=ne[ce];"number"==typeof de?le=de:le===re&&(Array.isArray(te)||(te=void 0===te?[]:["",te]),keyValueArraySet(te,de,!!ie||ne[++ce]))}return void 0===te?null:te}function styleKeyValueArraySet(te,ne,ie){keyValueArraySet(te,ne,unwrapSafeValue(ie))}function classKeyValueArraySet(te,ne,ie){const re=String(ne);""===re||re.includes(" ")||keyValueArraySet(te,re,ie)}function updateStyling(te,ne,ie,re,le,ce,de,ue){if(!(3&ne.type))return;const me=te.data,ge=me[ue+1];if(!isStylingValuePresent(function getTStylingRangeNextDuplicate(te){return 1==(1&te)}(ge)?findStylingValue(me,ne,ie,le,getTStylingRangeNext(ge),de):void 0)){isStylingValuePresent(ce)||function getTStylingRangePrevDuplicate(te){return 2==(2&te)}(ge)&&(ce=findStylingValue(me,null,ie,le,ue,de));!function applyStyling(te,ne,ie,re,le){if(ne)le?te.addClass(ie,re):te.removeClass(ie,re);else{let ne=-1===re.indexOf("-")?void 0:kr.DashCase;null==le?te.removeStyle(ie,re,ne):("string"==typeof le&&le.endsWith("!important")&&(le=le.slice(0,-10),ne|=kr.Important),te.setStyle(ie,re,le,ne))}}(re,de,getNativeByIndex(getSelectedIndex(),ie),le,ce)}}function findStylingValue(te,ne,ie,re,le,ce){const de=null===ne;let ue;for(;le>0;){const ne=te[le],ce=Array.isArray(ne),me=ce?ne[1]:ne,ge=null===me;let fe=ie[le+1];fe===Lr&&(fe=ge?ze:void 0);let _e=ge?keyValueArrayGet(fe,re):me===re?fe:void 0;if(ce&&!isStylingValuePresent(_e)&&(_e=keyValueArrayGet(ne,re)),isStylingValuePresent(_e)&&(ue=_e,de))return ue;const be=te[le+1];le=de?getTStylingRangePrev(be):getTStylingRangeNext(be)}if(null!==ne){let te=ce?ne.residualClasses:ne.residualStyles;null!=te&&(ue=keyValueArrayGet(te,re))}return ue}function isStylingValuePresent(te){return void 0!==te}function hasStylingInputShadow(te,ne){return 0!=(te.flags&(ne?8:16))}function ɵɵelementStart(te,ne,ie,re){const le=getLView(),ce=getTView(),de=sn+te,ue=le[Ht],me=ce.firstCreatePass?function elementStartFirstCreatePass(te,ne,ie,re,le,ce){const de=ne.consts,ue=getOrCreateTNode(ne,te,2,re,getConstant(de,le));return resolveDirectives(ne,ie,ue,getConstant(de,ce)),null!==ue.attrs&&computeStaticStyling(ue,ue.attrs,!1),null!==ue.mergedAttrs&&computeStaticStyling(ue,ue.mergedAttrs,!0),null!==ne.queries&&ne.queries.elementStart(ne,ue),ue}(de,ce,le,ne,ie,re):ce.data[de],ge=_locateOrCreateElementNode(ce,le,me,ue,ne,te);le[de]=ge;const fe=isDirectiveHost(me);return setCurrentTNode(me,!0),setupStaticAttributes(ue,ge,me),32!=(32&me.flags)&&wasLastNodeCreated()&&appendChild(ce,le,ge,me),0===function getElementDepthCount(){return wn.lFrame.elementDepthCount}()&&attachPatchData(ge,le),function increaseElementDepthCount(){wn.lFrame.elementDepthCount++}(),fe&&(createDirectivesInstances(ce,le,me),executeContentQueries(ce,me,le)),null!==re&&saveResolvedLocalsInData(le,me),ɵɵelementStart}function ɵɵelementEnd(){let te=getCurrentTNode();isCurrentTNodeParent()?setCurrentTNodeAsNotParent():(te=te.parent,setCurrentTNode(te,!1));const ne=te;(function isSkipHydrationRootTNode(te){return wn.skipHydrationRootTNode===te})(ne)&&function leaveSkipHydrationBlock(){wn.skipHydrationRootTNode=null}(),function decreaseElementDepthCount(){wn.lFrame.elementDepthCount--}();const ie=getTView();return ie.firstCreatePass&&(registerPostOrderHooks(ie,te),isContentQueryHost(te)&&ie.queries.elementEnd(te)),null!=ne.classesWithoutHost&&function hasClassInput(te){return 0!=(8&te.flags)}(ne)&&setDirectiveInputsWhichShadowsStyling(ie,ne,getLView(),ne.classesWithoutHost,!0),null!=ne.stylesWithoutHost&&function hasStyleInput(te){return 0!=(16&te.flags)}(ne)&&setDirectiveInputsWhichShadowsStyling(ie,ne,getLView(),ne.stylesWithoutHost,!1),ɵɵelementEnd}function ɵɵelement(te,ne,ie,re){return ɵɵelementStart(te,ne,ie,re),ɵɵelementEnd(),ɵɵelement}let _locateOrCreateElementNode=(te,ne,ie,re,le,ce)=>(lastNodeWasCreated(!0),createElementNode(re,le,getNamespace$1()));function ɵɵelementContainerStart(te,ne,ie){const re=getLView(),le=getTView(),ce=te+sn,de=le.firstCreatePass?function elementContainerStartFirstCreatePass(te,ne,ie,re,le){const ce=ne.consts,de=getConstant(ce,re),ue=getOrCreateTNode(ne,te,8,"ng-container",de);return null!==de&&computeStaticStyling(ue,de,!0),resolveDirectives(ne,ie,ue,getConstant(ce,le)),null!==ne.queries&&ne.queries.elementStart(ne,ue),ue}(ce,le,re,ne,ie):le.data[ce];setCurrentTNode(de,!0);const ue=_locateOrCreateElementContainerNode(le,re,de,te);return re[ce]=ue,wasLastNodeCreated()&&appendChild(le,re,ue,de),attachPatchData(ue,re),isDirectiveHost(de)&&(createDirectivesInstances(le,re,de),executeContentQueries(le,de,re)),null!=ie&&saveResolvedLocalsInData(re,de),ɵɵelementContainerStart}function ɵɵelementContainerEnd(){let te=getCurrentTNode();const ne=getTView();return isCurrentTNodeParent()?setCurrentTNodeAsNotParent():(te=te.parent,setCurrentTNode(te,!1)),ne.firstCreatePass&&(registerPostOrderHooks(ne,te),isContentQueryHost(te)&&ne.queries.elementEnd(te)),ɵɵelementContainerEnd}function ɵɵelementContainer(te,ne,ie){return ɵɵelementContainerStart(te,ne,ie),ɵɵelementContainerEnd(),ɵɵelementContainer}let _locateOrCreateElementContainerNode=(te,ne,ie,re)=>(lastNodeWasCreated(!0),createCommentNode(ne[Ht],""));function ɵɵgetCurrentView(){return getLView()}const La=void 0;var Oa=["en",[["a","p"],["AM","PM"],La],[["AM","PM"],La,La],[["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"]],La,[["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"]],La,[["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}",La,"{1} 'at' {0}",La],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function plural(te){const ne=Math.floor(Math.abs(te)),ie=te.toString().replace(/^[^.]*\.?/,"").length;return 1===ne&&0===ie?1:5}];let Pa={};function registerLocaleData(te,ne,ie){"string"!=typeof ne&&(ie=ne,ne=te[Fa.LocaleId]),ne=ne.toLowerCase().replace(/_/g,"-"),Pa[ne]=te,ie&&(Pa[ne][Fa.ExtraData]=ie)}function findLocaleData(te){const ne=function normalizeLocale(te){return te.toLowerCase().replace(/_/g,"-")}(te);let ie=getLocaleData(ne);if(ie)return ie;const re=ne.split("-")[0];if(ie=getLocaleData(re),ie)return ie;if("en"===re)return Oa;throw new RuntimeError(701,void 0)}function getLocalePluralCase(te){return findLocaleData(te)[Fa.PluralCase]}function getLocaleData(te){return te in Pa||(Pa[te]=Ve.ng&&Ve.ng.common&&Ve.ng.common.locales&&Ve.ng.common.locales[te]),Pa[te]}var Fa=function(te){return te[te.LocaleId=0]="LocaleId",te[te.DayPeriodsFormat=1]="DayPeriodsFormat",te[te.DayPeriodsStandalone=2]="DayPeriodsStandalone",te[te.DaysFormat=3]="DaysFormat",te[te.DaysStandalone=4]="DaysStandalone",te[te.MonthsFormat=5]="MonthsFormat",te[te.MonthsStandalone=6]="MonthsStandalone",te[te.Eras=7]="Eras",te[te.FirstDayOfWeek=8]="FirstDayOfWeek",te[te.WeekendRange=9]="WeekendRange",te[te.DateFormat=10]="DateFormat",te[te.TimeFormat=11]="TimeFormat",te[te.DateTimeFormat=12]="DateTimeFormat",te[te.NumberSymbols=13]="NumberSymbols",te[te.NumberFormats=14]="NumberFormats",te[te.CurrencyCode=15]="CurrencyCode",te[te.CurrencySymbol=16]="CurrencySymbol",te[te.CurrencyName=17]="CurrencyName",te[te.Currencies=18]="Currencies",te[te.Directionality=19]="Directionality",te[te.PluralCase=20]="PluralCase",te[te.ExtraData=21]="ExtraData",te}(Fa||{});const Ba="en-US";let Ha=Ba;function setLocaleId(te){"string"==typeof te&&(Ha=te.toLowerCase().replace(/_/g,"-"))}function ɵɵlistener(te,ne,ie,re){const le=getLView(),ce=getTView(),de=getCurrentTNode();return listenerInternal(ce,le,le[Ht],de,te,ne,re),ɵɵlistener}function listenerInternal(te,ne,ie,re,le,ce,de){const ue=isDirectiveHost(re),me=te.firstCreatePass&&getOrCreateTViewCleanup(te),ge=ne[Vt],fe=getOrCreateLViewCleanup(ne);let _e=!0;if(3&re.type||de){const be=getNativeByTNode(re,ne),Ce=de?de(be):be,ye=fe.length,we=de?te=>de(unwrapRNode(te[re.index])):re.index;let ke=null;if(!de&&ue&&(ke=function findExistingListener(te,ne,ie,re){const le=te.cleanup;if(null!=le)for(let te=0;te<le.length-1;te+=2){const ce=le[te];if(ce===ie&&le[te+1]===re){const ie=ne[Ot],re=le[te+2];return ie.length>re?ie[re]:null}"string"==typeof ce&&(te+=2)}return null}(te,ne,le,re.index)),null!==ke){(ke.__ngLastListenerFn__||ke).__ngNextListenerFn__=ce,ke.__ngLastListenerFn__=ce,_e=!1}else{ce=wrapListener(re,ne,ge,ce,!1);const te=ie.listen(Ce,le,ce);fe.push(ce,te),me&&me.push(le,we,ye,ye+1)}}else ce=wrapListener(re,ne,ge,ce,!1);const be=re.outputs;let Ce;if(_e&&null!==be&&(Ce=be[le])){const te=Ce.length;if(te)for(let ie=0;ie<te;ie+=2){const te=Ce[ie],de=Ce[ie+1];0;const ue=ne[te][de].subscribe(ce),ge=fe.length;if(fe.push(ce,ue),me){const te="function"==typeof ue?ge+1:-(ge+1);me.push(le,re.index,ge,te)}}}}function executeListenerWithErrorHandling(te,ne,ie,re){try{return profiler(6,ne,ie),!1!==ie(re)}catch(ne){return handleError(te,ne),!1}finally{profiler(7,ne,ie)}}function wrapListener(te,ne,ie,re,le){return function wrapListenerIn_markDirtyAndPreventDefault(ce){if(ce===Function)return re;markViewDirty(te.componentOffset>-1?getComponentLViewByIndex(te.index,ne):ne);let de=executeListenerWithErrorHandling(ne,ie,re,ce),ue=wrapListenerIn_markDirtyAndPreventDefault.__ngNextListenerFn__;for(;ue;)de=executeListenerWithErrorHandling(ne,ie,ue,ce)&&de,ue=ue.__ngNextListenerFn__;return le&&!1===de&&ce.preventDefault(),de}}function ɵɵnextContext(te=1){return function nextContextImpl(te){return(wn.lFrame.contextLView=walkUpViews(te,wn.lFrame.contextLView))[Vt]}(te)}function matchingProjectionSlotIndex(te,ne){let ie=null;const re=function getProjectAsAttrValue(te){const ne=te.attrs;if(null!=ne){const te=ne.indexOf(5);if(0==(1&te))return ne[te+1]}return null}(te);for(let le=0;le<ne.length;le++){const ce=ne[le];if("*"!==ce){if(null===re?isNodeMatchingSelectorList(te,ce,!0):isSelectorInSelectorList(re,ce))return le}else ie=le}return ie}function ɵɵprojectionDef(te){const ne=getLView()[Wt][Nt];if(!ne.projection){const ie=te?te.length:1,re=ne.projection=newArray(ie,null),le=re.slice();let ce=ne.child;for(;null!==ce;){const ne=te?matchingProjectionSlotIndex(ce,te):0;null!==ne&&(le[ne]?le[ne].projectionNext=ce:re[ne]=ce,le[ne]=ce),ce=ce.next}}}function ɵɵprojection(te,ne=0,ie){const re=getLView(),le=getTView(),ce=getOrCreateTNode(le,sn+te,16,null,ie||null);null===ce.projection&&(ce.projection=ne),setCurrentTNodeAsNotParent();(!re[Rt]||isInSkipHydrationBlock$1())&&32!=(32&ce.flags)&&function applyProjection(te,ne,ie){applyProjectionRecursive(ne[Ht],0,ne,ie,getParentRElement(te,ie,ne),getInsertInFrontOfRNode(ie.parent||ne[Nt],ie,ne))}(le,re,ce)}function ɵɵpropertyInterpolate1(te,ne,ie,re,le){const ce=getLView(),de=interpolation1(ce,ne,ie,re);if(de!==Lr){elementPropertyInternal(getTView(),getSelectedTNode(),ce,te,de,ce[Ht],le,!1)}return ɵɵpropertyInterpolate1}function ɵɵpropertyInterpolate2(te,ne,ie,re,le,ce,de){const ue=getLView(),me=interpolation2(ue,ne,ie,re,le,ce);if(me!==Lr){elementPropertyInternal(getTView(),getSelectedTNode(),ue,te,me,ue[Ht],de,!1)}return ɵɵpropertyInterpolate2}function ɵɵcontentQuery(te,ne,ie,re){createContentQuery(te,ne,ie,re)}function ɵɵviewQuery(te,ne,ie){createViewQuery(te,ne,ie)}function ɵɵqueryRefresh(te){const ne=getLView(),ie=getTView(),re=getCurrentQueryIndex();setCurrentQueryIndex(re+1);const le=getTQuery(ie,re);if(te.dirty&&function isCreationMode(te){return 4==(4&te[It])}(ne)===(2==(2&le.metadata.flags))){if(null===le.matches)te.reset([]);else{const ie=getQueryResults(ne,re);te.reset(ie,unwrapElementRef),te.notifyOnChanges()}return!0}return!1}function ɵɵloadQuery(){return loadQueryInternal(getLView(),getCurrentQueryIndex())}function ɵɵreference(te){return load(function getContextLView(){return wn.lFrame.contextLView}(),sn+te)}function ɵɵtext(te,ne=""){const ie=getLView(),re=getTView(),le=te+sn,ce=re.firstCreatePass?getOrCreateTNode(re,le,1,ne,null):re.data[le],de=_locateOrCreateTextNode(re,ie,ce,ne,te);ie[le]=de,wasLastNodeCreated()&&appendChild(re,ie,de,ce),setCurrentTNode(ce,!1)}let _locateOrCreateTextNode=(te,ne,ie,re,le)=>(lastNodeWasCreated(!0),createTextNode(ne[Ht],re));function ɵɵtextInterpolate(te){return ɵɵtextInterpolate1("",te,""),ɵɵtextInterpolate}function ɵɵtextInterpolate1(te,ne,ie){const re=getLView(),le=interpolation1(re,te,ne,ie);return le!==Lr&&textBindingInternal(re,getSelectedIndex(),le),ɵɵtextInterpolate1}function ɵɵtextInterpolate2(te,ne,ie,re,le){const ce=getLView(),de=interpolation2(ce,te,ne,ie,re,le);return de!==Lr&&textBindingInternal(ce,getSelectedIndex(),de),ɵɵtextInterpolate2}function ɵɵtwoWayProperty(te,ne,ie){isWritableSignal(ne)&&(ne=ne());const re=getLView();if(bindingUpdated(re,nextBindingIndex(),ne)){elementPropertyInternal(getTView(),getSelectedTNode(),re,te,ne,re[Ht],ie,!1)}return ɵɵtwoWayProperty}function ɵɵtwoWayBindingSet(te,ne){const ie=isWritableSignal(te);return ie&&te.set(ne),ie}function ɵɵtwoWayListener(te,ne){const ie=getLView(),re=getTView(),le=getCurrentTNode();return listenerInternal(re,ie,ie[Ht],le,te,ne),ɵɵtwoWayListener}function resolveProvider(te,ne,ie,re,le){if(te=resolveForwardRef(te),Array.isArray(te))for(let ce=0;ce<te.length;ce++)resolveProvider(te[ce],ne,ie,re,le);else{const ce=getTView(),de=getLView(),ue=getCurrentTNode();let me=isTypeProvider(te)?te:resolveForwardRef(te.provide);const ge=providerToFactory(te);0;const fe=1048575&ue.providerIndexes,_e=ue.directiveStart,be=ue.providerIndexes>>20;if(isTypeProvider(te)||!te.multi){const re=new NodeInjectorFactory(ge,le,ɵɵdirectiveInject),Ce=indexOf(me,ne,le?fe:fe+be,_e);-1===Ce?(diPublicInInjector(getOrCreateNodeInjectorForNode(ue,de),ce,me),registerDestroyHooksIfSupported(ce,te,ne.length),ne.push(me),ue.directiveStart++,ue.directiveEnd++,le&&(ue.providerIndexes+=1048576),ie.push(re),de.push(re)):(ie[Ce]=re,de[Ce]=re)}else{const Ce=indexOf(me,ne,fe+be,_e),ye=indexOf(me,ne,fe,fe+be),we=Ce>=0&&ie[Ce],ke=ye>=0&&ie[ye];if(le&&!ke||!le&&!we){diPublicInInjector(getOrCreateNodeInjectorForNode(ue,de),ce,me);const fe=function multiFactory(te,ne,ie,re,le){const ce=new NodeInjectorFactory(te,ie,ɵɵdirectiveInject);return ce.multi=[],ce.index=ne,ce.componentProviders=0,multiFactoryAdd(ce,le,re&&!ie),ce}(le?multiViewProvidersFactoryResolver:multiProvidersFactoryResolver,ie.length,le,re,ge);!le&&ke&&(ie[ye].providerFactory=fe),registerDestroyHooksIfSupported(ce,te,ne.length,0),ne.push(me),ue.directiveStart++,ue.directiveEnd++,le&&(ue.providerIndexes+=1048576),ie.push(fe),de.push(fe)}else{registerDestroyHooksIfSupported(ce,te,Ce>-1?Ce:ye,multiFactoryAdd(ie[le?ye:Ce],ge,!le&&re))}!le&&re&&ke&&ie[ye].componentProviders++}}}function registerDestroyHooksIfSupported(te,ne,ie,re){const le=isTypeProvider(ne),ce=function isClassProvider(te){return!!te.useClass}(ne);if(le||ce){const de=(ce?resolveForwardRef(ne.useClass):ne).prototype.ngOnDestroy;if(de){const ce=te.destroyHooks||(te.destroyHooks=[]);if(!le&&ne.multi){const te=ce.indexOf(ie);-1===te?ce.push(ie,[re,de]):ce[te+1].push(re,de)}else ce.push(ie,de)}}}function multiFactoryAdd(te,ne,ie){return ie&&te.componentProviders++,te.multi.push(ne)-1}function indexOf(te,ne,ie,re){for(let le=ie;le<re;le++)if(ne[le]===te)return le;return-1}function multiProvidersFactoryResolver(te,ne,ie,re){return multiResolve(this.multi,[])}function multiViewProvidersFactoryResolver(te,ne,ie,re){const le=this.multi;let ce;if(this.providerFactory){const te=this.providerFactory.componentProviders,ne=getNodeInjectable(ie,ie[vt],this.providerFactory.index,re);ce=ne.slice(0,te),multiResolve(le,ce);for(let ie=te;ie<ne.length;ie++)ce.push(ne[ie])}else ce=[],multiResolve(le,ce);return ce}function multiResolve(te,ne){for(let ie=0;ie<te.length;ie++){const re=te[ie];ne.push(re())}return ne}function ɵɵProvidersFeature(te,ne=[]){return ie=>{ie.providersResolver=(ie,re)=>function providersResolver(te,ne,ie){const re=getTView();if(re.firstCreatePass){const le=isComponentDef(te);resolveProvider(ie,re.data,re.blueprint,le,!0),resolveProvider(ne,re.data,re.blueprint,le,!1)}}(ie,re?re(te):te,ne)}}let Ua=(()=>{class StandaloneService{constructor(te){this._injector=te,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(te){if(!te.standalone)return null;if(!this.cachedInjectors.has(te)){const ne=internalImportProvidersFrom(!1,te.type),ie=ne.length>0?createEnvironmentInjector([ne],this._injector,`Standalone[${te.type.name}]`):null;this.cachedInjectors.set(te,ie)}return this.cachedInjectors.get(te)}ngOnDestroy(){try{for(const te of this.cachedInjectors.values())null!==te&&te.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.ɵprov=ɵɵdefineInjectable({token:StandaloneService,providedIn:"environment",factory:()=>new StandaloneService(ɵɵinject(EnvironmentInjector))})}return StandaloneService})();function ɵɵStandaloneFeature(te){performanceMarkFeature("NgStandalone"),te.getStandaloneInjector=ne=>ne.get(Ua).getOrCreateStandaloneInjector(te)}function ɵɵpureFunction0(te,ne,ie){const re=getBindingRoot()+te,le=getLView();return le[re]===Lr?updateBinding(le,re,ie?ne.call(ie):ne()):getBinding(le,re)}function ɵɵpureFunction1(te,ne,ie,re){return pureFunction1Internal(getLView(),getBindingRoot(),te,ne,ie,re)}function ɵɵpureFunction2(te,ne,ie,re,le){return pureFunction2Internal(getLView(),getBindingRoot(),te,ne,ie,re,le)}function ɵɵpureFunction3(te,ne,ie,re,le,ce){return pureFunction3Internal(getLView(),getBindingRoot(),te,ne,ie,re,le,ce)}function ɵɵpureFunction4(te,ne,ie,re,le,ce,de){return pureFunction4Internal(getLView(),getBindingRoot(),te,ne,ie,re,le,ce,de)}function ɵɵpureFunction5(te,ne,ie,re,le,ce,de,ue){const me=getBindingRoot()+te,ge=getLView(),fe=bindingUpdated4(ge,me,ie,re,le,ce);return bindingUpdated(ge,me+4,de)||fe?updateBinding(ge,me+5,ue?ne.call(ue,ie,re,le,ce,de):ne(ie,re,le,ce,de)):getBinding(ge,me+5)}function ɵɵpureFunction6(te,ne,ie,re,le,ce,de,ue,me){const ge=getBindingRoot()+te,fe=getLView(),_e=bindingUpdated4(fe,ge,ie,re,le,ce);return bindingUpdated2(fe,ge+4,de,ue)||_e?updateBinding(fe,ge+6,me?ne.call(me,ie,re,le,ce,de,ue):ne(ie,re,le,ce,de,ue)):getBinding(fe,ge+6)}function ɵɵpureFunction7(te,ne,ie,re,le,ce,de,ue,me,ge){const fe=getBindingRoot()+te,_e=getLView();let be=bindingUpdated4(_e,fe,ie,re,le,ce);return bindingUpdated3(_e,fe+4,de,ue,me)||be?updateBinding(_e,fe+7,ge?ne.call(ge,ie,re,le,ce,de,ue,me):ne(ie,re,le,ce,de,ue,me)):getBinding(_e,fe+7)}function ɵɵpureFunctionV(te,ne,ie,re){return pureFunctionVInternal(getLView(),getBindingRoot(),te,ne,ie,re)}function getPureFunctionReturnValue(te,ne){const ie=te[ne];return ie===Lr?void 0:ie}function pureFunction1Internal(te,ne,ie,re,le,ce){const de=ne+ie;return bindingUpdated(te,de,le)?updateBinding(te,de+1,ce?re.call(ce,le):re(le)):getPureFunctionReturnValue(te,de+1)}function pureFunction2Internal(te,ne,ie,re,le,ce,de){const ue=ne+ie;return bindingUpdated2(te,ue,le,ce)?updateBinding(te,ue+2,de?re.call(de,le,ce):re(le,ce)):getPureFunctionReturnValue(te,ue+2)}function pureFunction3Internal(te,ne,ie,re,le,ce,de,ue){const me=ne+ie;return bindingUpdated3(te,me,le,ce,de)?updateBinding(te,me+3,ue?re.call(ue,le,ce,de):re(le,ce,de)):getPureFunctionReturnValue(te,me+3)}function pureFunction4Internal(te,ne,ie,re,le,ce,de,ue,me){const ge=ne+ie;return bindingUpdated4(te,ge,le,ce,de,ue)?updateBinding(te,ge+4,me?re.call(me,le,ce,de,ue):re(le,ce,de,ue)):getPureFunctionReturnValue(te,ge+4)}function pureFunctionVInternal(te,ne,ie,re,le,ce){let de=ne+ie,ue=!1;for(let ne=0;ne<le.length;ne++)bindingUpdated(te,de++,le[ne])&&(ue=!0);return ue?updateBinding(te,de,re.apply(ce,le)):getPureFunctionReturnValue(te,de)}function ɵɵpipe(te,ne){const ie=getTView();let re;const le=te+sn;ie.firstCreatePass?(re=function getPipeDef(te,ne){if(ne){0;for(let ie=ne.length-1;ie>=0;ie--){const re=ne[ie];if(te===re.name)return re}}0;return}(ne,ie.pipeRegistry),ie.data[le]=re,re.onDestroy&&(ie.destroyHooks??=[]).push(le,re.onDestroy)):re=ie.data[le];const ce=re.factory||(re.factory=getFactoryDef(re.type));const de=setInjectImplementation(ɵɵdirectiveInject);try{const te=setIncludeViewProviders(!1),ne=ce();return setIncludeViewProviders(te),function store(te,ne,ie,re){ie>=te.data.length&&(te.data[ie]=null,te.blueprint[ie]=null),ne[ie]=re}(ie,getLView(),le,ne),ne}finally{setInjectImplementation(de)}}function ɵɵpipeBind1(te,ne,ie){const re=te+sn,le=getLView(),ce=load(le,re);return isPure(le,re)?pureFunction1Internal(le,getBindingRoot(),ne,ce.transform,ie,ce):ce.transform(ie)}function ɵɵpipeBind2(te,ne,ie,re){const le=te+sn,ce=getLView(),de=load(ce,le);return isPure(ce,le)?pureFunction2Internal(ce,getBindingRoot(),ne,de.transform,ie,re,de):de.transform(ie,re)}function isPure(te,ne){return te[vt].data[ne].pure}function ɵɵtemplateRefExtractor(te,ne){return createTemplateRef(te,ne)}let es=null;class Version{constructor(te){this.full=te;const ne=te.split(".");this.major=ne[0],this.minor=ne[1],this.patch=ne.slice(2).join(".")}}let ts=(()=>{class Console{log(te){console.log(te)}warn(te){console.warn(te)}static#e=this.ɵfac=function Console_Factory(te){return new(te||Console)};static#t=this.ɵprov=ɵɵdefineInjectable({token:Console,factory:Console.ɵfac,providedIn:"platform"})}return Console})();const is=new InjectionToken(""),os=new InjectionToken("");let as,ls=(()=>{class Testability{constructor(te,ne,ie){this._ngZone=te,this.registry=ne,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,as||(!function setTestabilityGetter(te){as=te}(ie),ie.addToWindow(ne)),this._watchAngularEvents(),te.run((()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular((()=>{this._ngZone.onStable.subscribe({next:()=>{NgZone.assertNotInAngularZone(),queueMicrotask((()=>{this._isZoneStable=!0,this._runCallbacksIfReady()}))}})}))}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask((()=>{for(;0!==this._callbacks.length;){let te=this._callbacks.pop();clearTimeout(te.timeoutId),te.doneCb()}}));else{let te=this.getPendingTasks();this._callbacks=this._callbacks.filter((ne=>!ne.updateCb||!ne.updateCb(te)||(clearTimeout(ne.timeoutId),!1)))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((te=>({source:te.source,creationLocation:te.creationLocation,data:te.data}))):[]}addCallback(te,ne,ie){let re=-1;ne&&ne>0&&(re=setTimeout((()=>{this._callbacks=this._callbacks.filter((te=>te.timeoutId!==re)),te()}),ne)),this._callbacks.push({doneCb:te,timeoutId:re,updateCb:ie})}whenStable(te,ne,ie){if(ie&&!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(te,ne,ie),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(te){this.registry.registerApplication(te,this)}unregisterApplication(te){this.registry.unregisterApplication(te)}findProviders(te,ne,ie){return[]}static#e=this.ɵfac=function Testability_Factory(te){return new(te||Testability)(ɵɵinject(NgZone),ɵɵinject(us),ɵɵinject(os))};static#t=this.ɵprov=ɵɵdefineInjectable({token:Testability,factory:Testability.ɵfac})}return Testability})(),us=(()=>{class TestabilityRegistry{constructor(){this._applications=new Map}registerApplication(te,ne){this._applications.set(te,ne)}unregisterApplication(te){this._applications.delete(te)}unregisterAllApplications(){this._applications.clear()}getTestability(te){return this._applications.get(te)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(te,ne=!0){return as?.findTestabilityInTree(this,te,ne)??null}static#e=this.ɵfac=function TestabilityRegistry_Factory(te){return new(te||TestabilityRegistry)};static#t=this.ɵprov=ɵɵdefineInjectable({token:TestabilityRegistry,factory:TestabilityRegistry.ɵfac,providedIn:"platform"})}return TestabilityRegistry})();function isPromise(te){return!!te&&"function"==typeof te.then}function isSubscribable(te){return!!te&&"function"==typeof te.subscribe}const ps=new InjectionToken("");let ms=(()=>{class ApplicationInitStatus{constructor(){if(this.initialized=!1,this.done=!1,this.donePromise=new Promise(((te,ne)=>{this.resolve=te,this.reject=ne})),this.appInits=inject(ps,{optional:!0})??[],!Array.isArray(this.appInits))throw new RuntimeError(-209,`Unexpected type of the \`APP_INITIALIZER\` token value (expected an array, but got ${typeof this.appInits}). Please check that the \`APP_INITIALIZER\` token is configured as a \`multi: true\` provider.`)}runInitializers(){if(this.initialized)return;const te=[];for(const ne of this.appInits){const ie=ne();if(isPromise(ie))te.push(ie);else if(isSubscribable(ie)){const ne=new Promise(((te,ne)=>{ie.subscribe({complete:te,error:ne})}));te.push(ne)}}const complete=()=>{this.done=!0,this.resolve()};Promise.all(te).then((()=>{complete()})).catch((te=>{this.reject(te)})),0===te.length&&complete(),this.initialized=!0}static#e=this.ɵfac=function ApplicationInitStatus_Factory(te){return new(te||ApplicationInitStatus)};static#t=this.ɵprov=ɵɵdefineInjectable({token:ApplicationInitStatus,factory:ApplicationInitStatus.ɵfac,providedIn:"root"})}return ApplicationInitStatus})();const fs=new InjectionToken("");function publishSignalConfiguration(){!function setThrowInvalidWriteToSignalError(te){be=te}((()=>{throw new RuntimeError(600,void 0)}))}function _callAndReportToErrorHandler(te,ne,ie){try{const re=ie();return isPromise(re)?re.catch((ie=>{throw ne.runOutsideAngular((()=>te.handleError(ie))),ie})):re}catch(ie){throw ne.runOutsideAngular((()=>te.handleError(ie))),ie}}function optionsReducer(te,ne){return Array.isArray(ne)?ne.reduce(optionsReducer,te):{...te,...ne}}let bs=(()=>{class ApplicationRef{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=inject(mo),this.afterRenderEffectManager=inject(pa),this.componentTypes=[],this.components=[],this.isStable=inject(Ma).hasPendingTasks.pipe((0,Ee.T)((te=>!te))),this._injector=inject(EnvironmentInjector)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(te,ne){this.warnIfDestroyed();const ie=te instanceof ComponentFactory$1;if(!this._injector.get(ms).done){const ne=!ie&&isStandalone(te);throw new RuntimeError(405,"Cannot bootstrap as there are still asynchronous initializers running."+(ne?"":" Bootstrap components in the `ngDoBootstrap` method of the root module."))}let re;if(ie)re=te;else{re=this._injector.get(Kr).resolveComponentFactory(te)}this.componentTypes.push(re.componentType);const le=function isBoundToModule(te){return te.isBoundToModule}(re)?void 0:this._injector.get(NgModuleRef$1),ce=ne||re.selector,de=re.create(co.NULL,[],ce,le),ue=de.location.nativeElement,me=de.injector.get(is,null);me?.registerApplication(ue),de.onDestroy((()=>{this.detachView(de.hostView),remove(this.components,de),me?.unregisterApplication(ue)})),this._loadComponent(de);this._injector.get(ts).log("Angular is running in development mode.");return de}tick(){if(this.warnIfDestroyed(),this._runningTick)throw new RuntimeError(101,void 0);try{this._runningTick=!0,this.detectChangesInAttachedViews();for(let te of this._views)te.checkNoChanges()}catch(te){this.internalErrorHandler(te)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let te=0;const ne=this.afterRenderEffectManager;for(;;){if(te===jr)throw new RuntimeError(103,void 0);const ie=0===te;for(let{_lView:te,notifyErrorHandler:ne}of this._views)(ie||shouldRecheckView(te))&&this.detectChangesInView(te,ne,ie);if(te++,ne.executeInternalCallbacks(),!this._views.some((({_lView:te})=>shouldRecheckView(te)))&&(ne.execute(),!this._views.some((({_lView:te})=>shouldRecheckView(te)))))break}}detectChangesInView(te,ne,ie){let re;ie?(re=0,te[It]|=1024):re=64&te[It]?0:1,detectChangesInternal(te,ne,re)}attachView(te){this.warnIfDestroyed();const ne=te;this._views.push(ne),ne.attachToAppRef(this)}detachView(te){this.warnIfDestroyed();const ne=te;remove(this._views,ne),ne.detachFromAppRef()}_loadComponent(te){this.attachView(te.hostView),this.tick(),this.components.push(te);const ne=this._injector.get(fs,[]);[...this._bootstrapListeners,...ne].forEach((ne=>ne(te)))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach((te=>te())),this._views.slice().forEach((te=>te.destroy()))}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(te){return this.warnIfDestroyed(),this._destroyListeners.push(te),()=>remove(this._destroyListeners,te)}destroy(){if(this._destroyed)throw new RuntimeError(406,void 0);const te=this._injector;te.destroy&&!te.destroyed&&te.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){this._destroyed&&console.warn(formatRuntimeError(406,"This instance of the `ApplicationRef` has already been destroyed."))}static#e=this.ɵfac=function ApplicationRef_Factory(te){return new(te||ApplicationRef)};static#t=this.ɵprov=ɵɵdefineInjectable({token:ApplicationRef,factory:ApplicationRef.ɵfac,providedIn:"root"})}return ApplicationRef})();function remove(te,ne){const ie=te.indexOf(ne);ie>-1&&te.splice(ie,1)}function shouldRecheckView(te){return requiresRefreshOrTraversal(te)}class ModuleWithComponentFactories{constructor(te,ne){this.ngModuleFactory=te,this.componentFactories=ne}}let Ls=(()=>{class Compiler{compileModuleSync(te){return new NgModuleFactory(te)}compileModuleAsync(te){return Promise.resolve(this.compileModuleSync(te))}compileModuleAndAllComponentsSync(te){const ne=this.compileModuleSync(te),ie=maybeUnwrapFn(getNgModuleDef(te).declarations).reduce(((te,ne)=>{const ie=getComponentDef(ne);return ie&&te.push(new ComponentFactory(ie)),te}),[]);return new ModuleWithComponentFactories(ne,ie)}compileModuleAndAllComponentsAsync(te){return Promise.resolve(this.compileModuleAndAllComponentsSync(te))}clearCache(){}clearCacheFor(te){}getModuleId(te){}static#e=this.ɵfac=function Compiler_Factory(te){return new(te||Compiler)};static#t=this.ɵprov=ɵɵdefineInjectable({token:Compiler,factory:Compiler.ɵfac,providedIn:"root"})}return Compiler})();const Os=new InjectionToken("");function compileNgModuleFactory(te,ne,ie){const re=new NgModuleFactory(ie);if("undefined"!=typeof ngJitMode&&!ngJitMode)return Promise.resolve(re);const le=te.get(Os,[]).concat(ne);if(function setJitOptions(te){if(null!==es){if(te.defaultEncapsulation!==es.defaultEncapsulation)return;if(te.preserveWhitespaces!==es.preserveWhitespaces)return}es=te}({defaultEncapsulation:_lastDefined(le.map((te=>te.defaultEncapsulation))),preserveWhitespaces:_lastDefined(le.map((te=>te.preserveWhitespaces)))}),function isComponentResourceResolutionQueueEmpty(){return 0===Da.size}())return Promise.resolve(re);const ce=le.flatMap((te=>te.providers??[]));if(0===ce.length)return Promise.resolve(re);const de=getCompilerFacade({usage:0,kind:"NgModule",type:ie}),ue=co.create({providers:ce}).get(de.ResourceLoader);return resolveComponentResources((te=>Promise.resolve(ue.get(te)))).then((()=>re))}function _lastDefined(te){for(let ne=te.length-1;ne>=0;ne--)if(void 0!==te[ne])return te[ne]}let Ps=(()=>{class NgZoneChangeDetectionScheduler{constructor(){this.zone=inject(NgZone),this.applicationRef=inject(bs)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run((()=>{this.applicationRef.tick()}))}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.ɵfac=function NgZoneChangeDetectionScheduler_Factory(te){return new(te||NgZoneChangeDetectionScheduler)};static#t=this.ɵprov=ɵɵdefineInjectable({token:NgZoneChangeDetectionScheduler,factory:NgZoneChangeDetectionScheduler.ɵfac,providedIn:"root"})}return NgZoneChangeDetectionScheduler})();const zs=new InjectionToken("provideZoneChangeDetection token");function internalProvideZoneChangeDetection(te){return[{provide:NgZone,useFactory:te},{provide:gi,multi:!0,useFactory:()=>{const te=inject(Ps,{optional:!0});if(null===te)throw new RuntimeError(402,"A required Injectable was not found in the dependency injection tree. If you are bootstrapping an NgModule, make sure that the `BrowserModule` is imported.");return()=>te.initialize()}},{provide:gi,multi:!0,useFactory:()=>{const te=inject(Xs);return()=>{te.initialize()}}},{provide:mo,useFactory:ngZoneApplicationErrorHandlerFactory}]}function ngZoneApplicationErrorHandlerFactory(){const te=inject(NgZone),ne=inject(ErrorHandler);return ie=>te.runOutsideAngular((()=>ne.handleError(ie)))}function getNgZoneOptions(te){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:te?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:te?.runCoalescing??!1}}let Xs=(()=>{class ZoneStablePendingTask{constructor(){this.subscription=new Se.yU,this.initialized=!1,this.zone=inject(NgZone),this.pendingTasks=inject(Ma)}initialize(){if(this.initialized)return;this.initialized=!0;let te=null;this.zone.isStable||this.zone.hasPendingMacrotasks||this.zone.hasPendingMicrotasks||(te=this.pendingTasks.add()),this.zone.runOutsideAngular((()=>{this.subscription.add(this.zone.onStable.subscribe((()=>{NgZone.assertNotInAngularZone(),queueMicrotask((()=>{null===te||this.zone.hasPendingMacrotasks||this.zone.hasPendingMicrotasks||(this.pendingTasks.remove(te),te=null)}))})))})),this.subscription.add(this.zone.onUnstable.subscribe((()=>{NgZone.assertInAngularZone(),te??=this.pendingTasks.add()})))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.ɵfac=function ZoneStablePendingTask_Factory(te){return new(te||ZoneStablePendingTask)};static#t=this.ɵprov=ɵɵdefineInjectable({token:ZoneStablePendingTask,factory:ZoneStablePendingTask.ɵfac,providedIn:"root"})}return ZoneStablePendingTask})();const tl=new InjectionToken("",{providedIn:"root",factory:()=>inject(tl,Pe.Optional|Pe.SkipSelf)||function getGlobalLocale(){return"undefined"!=typeof ngI18nClosureMode&&ngI18nClosureMode&&"undefined"!=typeof goog&&"en"!==goog.LOCALE?goog.LOCALE:"undefined"!=typeof $localize&&$localize.locale||Ba}()}),cl=new InjectionToken("",{providedIn:"root",factory:()=>"USD"});const kl=new InjectionToken("");let zl=(()=>{class PlatformRef{constructor(te){this._injector=te,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(te,ne){const ie=function getNgZone(te="zone.js",ne){return"noop"===te?new NoopNgZone:"zone.js"===te?new NgZone(ne):te}(ne?.ngZone,getNgZoneOptions({eventCoalescing:ne?.ngZoneEventCoalescing,runCoalescing:ne?.ngZoneRunCoalescing}));return ie.run((()=>{const ne=function createNgModuleRefWithProviders(te,ne,ie){return new NgModuleRef(te,ne,ie)}(te.moduleType,this.injector,internalProvideZoneChangeDetection((()=>ie)));if(null!==ne.injector.get(zs,null))throw new RuntimeError(207,"`bootstrapModule` does not support `provideZoneChangeDetection`. Use `BootstrapOptions` instead.");const re=ne.injector.get(ErrorHandler,null);if(null===re)throw new RuntimeError(402,"No ErrorHandler. Is platform module (BrowserModule) included?");return ie.runOutsideAngular((()=>{const te=ie.onError.subscribe({next:te=>{re.handleError(te)}});ne.onDestroy((()=>{remove(this._modules,ne),te.unsubscribe()}))})),_callAndReportToErrorHandler(re,ie,(()=>{const te=ne.injector.get(ms);return te.runInitializers(),te.donePromise.then((()=>(setLocaleId(ne.injector.get(tl,Ba)||Ba),this._moduleDoBootstrap(ne),ne)))}))}))}bootstrapModule(te,ne=[]){const ie=optionsReducer({},ne);return compileNgModuleFactory(this.injector,ie,te).then((te=>this.bootstrapModuleFactory(te,ie)))}_moduleDoBootstrap(te){const ne=te.injector.get(bs);if(te._bootstrapComponents.length>0)te._bootstrapComponents.forEach((te=>ne.bootstrap(te)));else{if(!te.instance.ngDoBootstrap)throw new RuntimeError(-403,void 0);te.instance.ngDoBootstrap(ne)}this._modules.push(te)}onDestroy(te){this._destroyListeners.push(te)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new RuntimeError(404,void 0);this._modules.slice().forEach((te=>te.destroy())),this._destroyListeners.forEach((te=>te()));const te=this._injector.get(kl,null);te&&(te.forEach((te=>te())),te.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.ɵfac=function PlatformRef_Factory(te){return new(te||PlatformRef)(ɵɵinject(co))};static#t=this.ɵprov=ɵɵdefineInjectable({token:PlatformRef,factory:PlatformRef.ɵfac,providedIn:"platform"})}return PlatformRef})(),Hl=null;const Ul=new InjectionToken("");function createPlatformFactory(te,ne,ie=[]){const re=`Platform: ${ne}`,le=new InjectionToken(re);return(ne=[])=>{let ce=getPlatform();if(!ce||ce.injector.get(Ul,!1)){const ce=[...ie,...ne,{provide:le,useValue:!0}];te?te(ce):function createPlatform(te){if(Hl&&!Hl.get(Ul,!1))throw new RuntimeError(400,void 0);publishSignalConfiguration(),Hl=te;const ne=te.get(zl);return runPlatformInitializers(te),ne}(createPlatformInjector(ce,re))}return function assertPlatform(te){const ne=getPlatform();if(!ne)throw new RuntimeError(401,void 0);if(!ne.injector.get(te,null))throw new RuntimeError(400,"A platform with a different configuration has been created. Please destroy it first.");return ne}(le)}}function createPlatformInjector(te=[],ne){return co.create({name:ne,providers:[{provide:Ri,useValue:"platform"},{provide:kl,useValue:new Set([()=>Hl=null])},...te]})}function getPlatform(){return Hl?.get(zl)??null}function runPlatformInitializers(te){const ne=te.get(Fn,null);ne?.forEach((te=>te()))}const $l=createPlatformFactory(null,"core",[]);let Kl=(()=>{class ApplicationModule{constructor(te){}static#e=this.ɵfac=function ApplicationModule_Factory(te){return new(te||ApplicationModule)(ɵɵinject(bs))};static#t=this.ɵmod=ɵɵdefineNgModule({type:ApplicationModule});static#n=this.ɵinj=ɵɵdefineInjector({})}return ApplicationModule})();function booleanAttribute(te){return"boolean"==typeof te?te:null!=te&&"false"!==te}function numberAttribute(te,ne=NaN){return!isNaN(parseFloat(te))&&!isNaN(Number(te))?Number(te):ne}function createComponent(te,ne){const ie=getComponentDef(te),re=ne.elementInjector||getNullInjector();return new ComponentFactory(ie).create(re,ne.projectableNodes,ne.hostElement,ne.environmentInjector)}function reflectComponentType(te){const ne=getComponentDef(te);if(!ne)return null;const ie=new ComponentFactory(ne);return{get selector(){return ie.selector},get type(){return ie.componentType},get inputs(){return ie.inputs},get outputs(){return ie.outputs},get ngContentSelectors(){return ie.ngContentSelectors},get isStandalone(){return ne.standalone},get isSignal(){return ne.signals}}}},6082:(te,ne,ie)=>{"use strict";ie.d(ne,{pQ:()=>takeUntilDestroyed});var re=ie(3107),le=ie(1698),ce=ie(5424);function takeUntilDestroyed(te){te||((0,re.Af3)(takeUntilDestroyed),te=(0,re.WQX)(re.abz));const ne=new le.c((ne=>te.onDestroy(ne.next.bind(ne))));return te=>te.pipe((0,ce.Q)(ne))}},936:(te,ne,ie)=>{"use strict";ie.d(ne,{BC:()=>Se,JD:()=>Gt,MJ:()=>$e,Qk:()=>Ut,X1:()=>Yt,YN:()=>$t,cb:()=>xe,j4:()=>Dt,k0:()=>Validators,kq:()=>fe,l_:()=>vt,me:()=>Ce,ok:()=>Ht,qT:()=>dt,vO:()=>NgControl,vS:()=>Je});var re=ie(3107),le=ie(4460),ce=ie(1787),de=ie(2653),ue=ie(7947);let me=(()=>{class BaseControlValueAccessor{constructor(te,ne){this._renderer=te,this._elementRef=ne,this.onChange=te=>{},this.onTouched=()=>{}}setProperty(te,ne){this._renderer.setProperty(this._elementRef.nativeElement,te,ne)}registerOnTouched(te){this.onTouched=te}registerOnChange(te){this.onChange=te}setDisabledState(te){this.setProperty("disabled",te)}static#e=this.ɵfac=function BaseControlValueAccessor_Factory(te){return new(te||BaseControlValueAccessor)(re.rXU(re.sFG),re.rXU(re.aKT))};static#t=this.ɵdir=re.FsC({type:BaseControlValueAccessor})}return BaseControlValueAccessor})(),ge=(()=>{class BuiltInControlValueAccessor extends me{static#e=this.ɵfac=(()=>{let te;return function BuiltInControlValueAccessor_Factory(ne){return(te||(te=re.xGo(BuiltInControlValueAccessor)))(ne||BuiltInControlValueAccessor)}})();static#t=this.ɵdir=re.FsC({type:BuiltInControlValueAccessor,features:[re.Vt3]})}return BuiltInControlValueAccessor})();const fe=new re.nKC("");const _e={provide:fe,useExisting:(0,re.Rfq)((()=>Ce)),multi:!0};const be=new re.nKC("");let Ce=(()=>{class DefaultValueAccessor extends me{constructor(te,ne,ie){super(te,ne),this._compositionMode=ie,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function _isAndroid(){const te=(0,le.QT)()?(0,le.QT)().getUserAgent():"";return/android (\d+)/.test(te.toLowerCase())}())}writeValue(te){const ne=null==te?"":te;this.setProperty("value",ne)}_handleInput(te){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(te)}_compositionStart(){this._composing=!0}_compositionEnd(te){this._composing=!1,this._compositionMode&&this.onChange(te)}static#e=this.ɵfac=function DefaultValueAccessor_Factory(te){return new(te||DefaultValueAccessor)(re.rXU(re.sFG),re.rXU(re.aKT),re.rXU(be,8))};static#t=this.ɵdir=re.FsC({type:DefaultValueAccessor,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 DefaultValueAccessor_HostBindings(te,ne){1&te&&re.bIt("input",(function DefaultValueAccessor_input_HostBindingHandler(te){return ne._handleInput(te.target.value)}))("blur",(function DefaultValueAccessor_blur_HostBindingHandler(){return ne.onTouched()}))("compositionstart",(function DefaultValueAccessor_compositionstart_HostBindingHandler(){return ne._compositionStart()}))("compositionend",(function DefaultValueAccessor_compositionend_HostBindingHandler(te){return ne._compositionEnd(te.target.value)}))},features:[re.Jv_([_e]),re.Vt3]})}return DefaultValueAccessor})();function isEmptyInputValue(te){return null==te||("string"==typeof te||Array.isArray(te))&&0===te.length}function hasValidLength(te){return null!=te&&"number"==typeof te.length}const ye=new re.nKC(""),we=new re.nKC(""),ke=/^(?=.{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 Validators{static min(te){return minValidator(te)}static max(te){return maxValidator(te)}static required(te){return requiredValidator(te)}static requiredTrue(te){return requiredTrueValidator(te)}static email(te){return emailValidator(te)}static minLength(te){return minLengthValidator(te)}static maxLength(te){return maxLengthValidator(te)}static pattern(te){return patternValidator(te)}static nullValidator(te){return null}static compose(te){return compose(te)}static composeAsync(te){return composeAsync(te)}}function minValidator(te){return ne=>{if(isEmptyInputValue(ne.value)||isEmptyInputValue(te))return null;const ie=parseFloat(ne.value);return!isNaN(ie)&&ie<te?{min:{min:te,actual:ne.value}}:null}}function maxValidator(te){return ne=>{if(isEmptyInputValue(ne.value)||isEmptyInputValue(te))return null;const ie=parseFloat(ne.value);return!isNaN(ie)&&ie>te?{max:{max:te,actual:ne.value}}:null}}function requiredValidator(te){return isEmptyInputValue(te.value)?{required:!0}:null}function requiredTrueValidator(te){return!0===te.value?null:{required:!0}}function emailValidator(te){return isEmptyInputValue(te.value)||ke.test(te.value)?null:{email:!0}}function minLengthValidator(te){return ne=>isEmptyInputValue(ne.value)||!hasValidLength(ne.value)?null:ne.value.length<te?{minlength:{requiredLength:te,actualLength:ne.value.length}}:null}function maxLengthValidator(te){return ne=>hasValidLength(ne.value)&&ne.value.length>te?{maxlength:{requiredLength:te,actualLength:ne.value.length}}:null}function patternValidator(te){if(!te)return nullValidator;let ne,ie;return"string"==typeof te?(ie="","^"!==te.charAt(0)&&(ie+="^"),ie+=te,"$"!==te.charAt(te.length-1)&&(ie+="$"),ne=new RegExp(ie)):(ie=te.toString(),ne=te),te=>{if(isEmptyInputValue(te.value))return null;const re=te.value;return ne.test(re)?null:{pattern:{requiredPattern:ie,actualValue:re}}}}function nullValidator(te){return null}function isPresent(te){return null!=te}function toObservable(te){const ne=(0,re.jNT)(te)?(0,ce.H)(te):te;if(!(0,re.zjR)(ne)){let ne="Expected async validator to return Promise or Observable.";throw"object"==typeof te&&(ne+=" Are you using a synchronous validator where an async validator is expected?"),new re.wOt(-1101,ne)}return ne}function mergeErrors(te){let ne={};return te.forEach((te=>{ne=null!=te?{...ne,...te}:ne})),0===Object.keys(ne).length?null:ne}function executeValidators(te,ne){return ne.map((ne=>ne(te)))}function normalizeValidators(te){return te.map((te=>function isValidatorFn(te){return!te.validate}(te)?te:ne=>te.validate(ne)))}function compose(te){if(!te)return null;const ne=te.filter(isPresent);return 0==ne.length?null:function(te){return mergeErrors(executeValidators(te,ne))}}function composeValidators(te){return null!=te?compose(normalizeValidators(te)):null}function composeAsync(te){if(!te)return null;const ne=te.filter(isPresent);return 0==ne.length?null:function(te){const ie=executeValidators(te,ne).map(toObservable);return(0,de.p)(ie).pipe((0,ue.T)(mergeErrors))}}function composeAsyncValidators(te){return null!=te?composeAsync(normalizeValidators(te)):null}function mergeValidators(te,ne){return null===te?[ne]:Array.isArray(te)?[...te,ne]:[te,ne]}function getControlValidators(te){return te._rawValidators}function getControlAsyncValidators(te){return te._rawAsyncValidators}function makeValidatorsArray(te){return te?Array.isArray(te)?te:[te]:[]}function hasValidator(te,ne){return Array.isArray(te)?te.includes(ne):te===ne}function addValidators(te,ne){const ie=makeValidatorsArray(ne);return makeValidatorsArray(te).forEach((te=>{hasValidator(ie,te)||ie.push(te)})),ie}function removeValidators(te,ne){return makeValidatorsArray(ne).filter((ne=>!hasValidator(te,ne)))}class AbstractControlDirective{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(te){this._rawValidators=te||[],this._composedValidatorFn=composeValidators(this._rawValidators)}_setAsyncValidators(te){this._rawAsyncValidators=te||[],this._composedAsyncValidatorFn=composeAsyncValidators(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(te){this._onDestroyCallbacks.push(te)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach((te=>te())),this._onDestroyCallbacks=[]}reset(te=void 0){this.control&&this.control.reset(te)}hasError(te,ne){return!!this.control&&this.control.hasError(te,ne)}getError(te,ne){return this.control?this.control.getError(te,ne):null}}class ControlContainer extends AbstractControlDirective{get formDirective(){return null}get path(){return null}}class NgControl extends AbstractControlDirective{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class AbstractControlStatus{constructor(te){this._cd=te}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Se=(()=>{class NgControlStatus extends AbstractControlStatus{constructor(te){super(te)}static#e=this.ɵfac=function NgControlStatus_Factory(te){return new(te||NgControlStatus)(re.rXU(NgControl,2))};static#t=this.ɵdir=re.FsC({type:NgControlStatus,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function NgControlStatus_HostBindings(te,ne){2&te&&re.AVh("ng-untouched",ne.isUntouched)("ng-touched",ne.isTouched)("ng-pristine",ne.isPristine)("ng-dirty",ne.isDirty)("ng-valid",ne.isValid)("ng-invalid",ne.isInvalid)("ng-pending",ne.isPending)},features:[re.Vt3]})}return NgControlStatus})(),xe=(()=>{class NgControlStatusGroup extends AbstractControlStatus{constructor(te){super(te)}static#e=this.ɵfac=function NgControlStatusGroup_Factory(te){return new(te||NgControlStatusGroup)(re.rXU(ControlContainer,10))};static#t=this.ɵdir=re.FsC({type:NgControlStatusGroup,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function NgControlStatusGroup_HostBindings(te,ne){2&te&&re.AVh("ng-untouched",ne.isUntouched)("ng-touched",ne.isTouched)("ng-pristine",ne.isPristine)("ng-dirty",ne.isDirty)("ng-valid",ne.isValid)("ng-invalid",ne.isInvalid)("ng-pending",ne.isPending)("ng-submitted",ne.isSubmitted)},features:[re.Vt3]})}return NgControlStatusGroup})();const Ee='\n  <div [formGroup]="myGroup">\n    <input formControlName="firstName">\n  </div>\n\n  In your class:\n\n  this.myGroup = new FormGroup({\n      firstName: new FormControl()\n  });',Me='\n  <div [formGroup]="myGroup">\n      <div formGroupName="person">\n        <input formControlName="firstName">\n      </div>\n  </div>\n\n  In your class:\n\n  this.myGroup = new FormGroup({\n      person: new FormGroup({ firstName: new FormControl() })\n  });',Ne='\n  <form>\n      <div ngModelGroup="person">\n        <input [(ngModel)]="person.name" name="firstName">\n      </div>\n  </form>';const Re="\n  It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n  when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n  you. We recommend using this approach to avoid 'changed after checked' errors.\n\n  Example:\n  // Specify the `disabled` property at control creation time:\n  form = new FormGroup({\n    first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n    last: new FormControl('Drew', Validators.required)\n  });\n\n  // Controls can also be enabled/disabled after creation:\n  form.get('first')?.enable();\n  form.get('last')?.disable();\n";function describeKey(te,ne){return te?`with name: '${ne}'`:`at index: ${ne}`}const Le="VALID",Oe="INVALID",Pe="PENDING",Fe="DISABLED";function pickValidators(te){return(isOptionsObj(te)?te.validators:te)||null}function pickAsyncValidators(te,ne){return isOptionsObj(ne)&&te&&console.warn("\n  It looks like you're constructing using a FormControl with both an options argument and an\n  async validators argument. Mixing these arguments will cause your async validators to be dropped.\n  You should either put all your validators in the options object, or in separate validators\n  arguments. For example:\n\n  // Using validators arguments\n  fc = new FormControl(42, Validators.required, myAsyncValidator);\n\n  // Using AbstractControlOptions\n  fc = new FormControl(42, {validators: Validators.required, asyncValidators: myAV});\n\n  // Do NOT mix them: async validators will be dropped!\n  fc = new FormControl(42, {validators: Validators.required}, /* Oops! */ myAsyncValidator);\n"),(isOptionsObj(ne)?ne.asyncValidators:te)||null}function isOptionsObj(te){return null!=te&&!Array.isArray(te)&&"object"==typeof te}function assertControlPresent(te,ne,ie){const le=te.controls;if(!(ne?Object.keys(le):le).length)throw new re.wOt(1e3,function noControlsError(te){return`\n    There are no form controls registered with this ${te?"group":"array"} yet. If you're using ngModel,\n    you may want to check next tick (e.g. use setTimeout).\n  `}(ne));if(!le[ie])throw new re.wOt(1001,function missingControlError(te,ne){return`Cannot find form control ${describeKey(te,ne)}`}(ne,ie))}function assertAllValuesPresent(te,ne,ie){te._forEachChild(((te,le)=>{if(void 0===ie[le])throw new re.wOt(1002,function missingControlValueError(te,ne){return`Must supply a value for form control ${describeKey(te,ne)}`}(ne,le))}))}class AbstractControl{constructor(te,ne){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(te),this._assignAsyncValidators(ne)}get validator(){return this._composedValidatorFn}set validator(te){this._rawValidators=this._composedValidatorFn=te}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(te){this._rawAsyncValidators=this._composedAsyncValidatorFn=te}get parent(){return this._parent}get valid(){return this.status===Le}get invalid(){return this.status===Oe}get pending(){return this.status==Pe}get disabled(){return this.status===Fe}get enabled(){return this.status!==Fe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(te){this._assignValidators(te)}setAsyncValidators(te){this._assignAsyncValidators(te)}addValidators(te){this.setValidators(addValidators(te,this._rawValidators))}addAsyncValidators(te){this.setAsyncValidators(addValidators(te,this._rawAsyncValidators))}removeValidators(te){this.setValidators(removeValidators(te,this._rawValidators))}removeAsyncValidators(te){this.setAsyncValidators(removeValidators(te,this._rawAsyncValidators))}hasValidator(te){return hasValidator(this._rawValidators,te)}hasAsyncValidator(te){return hasValidator(this._rawAsyncValidators,te)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(te={}){this.touched=!0,this._parent&&!te.onlySelf&&this._parent.markAsTouched(te)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild((te=>te.markAllAsTouched()))}markAsUntouched(te={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild((te=>{te.markAsUntouched({onlySelf:!0})})),this._parent&&!te.onlySelf&&this._parent._updateTouched(te)}markAsDirty(te={}){this.pristine=!1,this._parent&&!te.onlySelf&&this._parent.markAsDirty(te)}markAsPristine(te={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild((te=>{te.markAsPristine({onlySelf:!0})})),this._parent&&!te.onlySelf&&this._parent._updatePristine(te)}markAsPending(te={}){this.status=Pe,!1!==te.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!te.onlySelf&&this._parent.markAsPending(te)}disable(te={}){const ne=this._parentMarkedDirty(te.onlySelf);this.status=Fe,this.errors=null,this._forEachChild((ne=>{ne.disable({...te,onlySelf:!0})})),this._updateValue(),!1!==te.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...te,skipPristineCheck:ne}),this._onDisabledChange.forEach((te=>te(!0)))}enable(te={}){const ne=this._parentMarkedDirty(te.onlySelf);this.status=Le,this._forEachChild((ne=>{ne.enable({...te,onlySelf:!0})})),this.updateValueAndValidity({onlySelf:!0,emitEvent:te.emitEvent}),this._updateAncestors({...te,skipPristineCheck:ne}),this._onDisabledChange.forEach((te=>te(!1)))}_updateAncestors(te){this._parent&&!te.onlySelf&&(this._parent.updateValueAndValidity(te),te.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(te){this._parent=te}getRawValue(){return this.value}updateValueAndValidity(te={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Le&&this.status!==Pe||this._runAsyncValidator(te.emitEvent)),!1!==te.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!te.onlySelf&&this._parent.updateValueAndValidity(te)}_updateTreeValidity(te={emitEvent:!0}){this._forEachChild((ne=>ne._updateTreeValidity(te))),this.updateValueAndValidity({onlySelf:!0,emitEvent:te.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Fe:Le}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(te){if(this.asyncValidator){this.status=Pe,this._hasOwnPendingAsyncValidator=!0;const ne=toObservable(this.asyncValidator(this));this._asyncValidationSubscription=ne.subscribe((ne=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ne,{emitEvent:te})}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(te,ne={}){this.errors=te,this._updateControlsErrors(!1!==ne.emitEvent)}get(te){let ne=te;return null==ne?null:(Array.isArray(ne)||(ne=ne.split(".")),0===ne.length?null:ne.reduce(((te,ne)=>te&&te._find(ne)),this))}getError(te,ne){const ie=ne?this.get(ne):this;return ie&&ie.errors?ie.errors[te]:null}hasError(te,ne){return!!this.getError(te,ne)}get root(){let te=this;for(;te._parent;)te=te._parent;return te}_updateControlsErrors(te){this.status=this._calculateStatus(),te&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(te)}_initObservables(){this.valueChanges=new re.bkB,this.statusChanges=new re.bkB}_calculateStatus(){return this._allControlsDisabled()?Fe:this.errors?Oe:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pe)?Pe:this._anyControlsHaveStatus(Oe)?Oe:Le}_anyControlsHaveStatus(te){return this._anyControls((ne=>ne.status===te))}_anyControlsDirty(){return this._anyControls((te=>te.dirty))}_anyControlsTouched(){return this._anyControls((te=>te.touched))}_updatePristine(te={}){this.pristine=!this._anyControlsDirty(),this._parent&&!te.onlySelf&&this._parent._updatePristine(te)}_updateTouched(te={}){this.touched=this._anyControlsTouched(),this._parent&&!te.onlySelf&&this._parent._updateTouched(te)}_registerOnCollectionChange(te){this._onCollectionChange=te}_setUpdateStrategy(te){isOptionsObj(te)&&null!=te.updateOn&&(this._updateOn=te.updateOn)}_parentMarkedDirty(te){const ne=this._parent&&this._parent.dirty;return!te&&!!ne&&!this._parent._anyControlsDirty()}_find(te){return null}_assignValidators(te){this._rawValidators=Array.isArray(te)?te.slice():te,this._composedValidatorFn=function coerceToValidator(te){return Array.isArray(te)?composeValidators(te):te||null}(this._rawValidators)}_assignAsyncValidators(te){this._rawAsyncValidators=Array.isArray(te)?te.slice():te,this._composedAsyncValidatorFn=function coerceToAsyncValidator(te){return Array.isArray(te)?composeAsyncValidators(te):te||null}(this._rawAsyncValidators)}}class FormGroup extends AbstractControl{constructor(te,ne,ie){super(pickValidators(ne),pickAsyncValidators(ie,ne)),function validateFormGroupControls(te){const ne=Object.keys(te).filter((te=>te.includes(".")));ne.length>0&&console.warn(`FormGroup keys cannot include \`.\`, please replace the keys for: ${ne.join(",")}.`)}(te),this.controls=te,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(te,ne){return this.controls[te]?this.controls[te]:(this.controls[te]=ne,ne.setParent(this),ne._registerOnCollectionChange(this._onCollectionChange),ne)}addControl(te,ne,ie={}){this.registerControl(te,ne),this.updateValueAndValidity({emitEvent:ie.emitEvent}),this._onCollectionChange()}removeControl(te,ne={}){this.controls[te]&&this.controls[te]._registerOnCollectionChange((()=>{})),delete this.controls[te],this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}setControl(te,ne,ie={}){this.controls[te]&&this.controls[te]._registerOnCollectionChange((()=>{})),delete this.controls[te],ne&&this.registerControl(te,ne),this.updateValueAndValidity({emitEvent:ie.emitEvent}),this._onCollectionChange()}contains(te){return this.controls.hasOwnProperty(te)&&this.controls[te].enabled}setValue(te,ne={}){assertAllValuesPresent(this,!0,te),Object.keys(te).forEach((ie=>{assertControlPresent(this,!0,ie),this.controls[ie].setValue(te[ie],{onlySelf:!0,emitEvent:ne.emitEvent})})),this.updateValueAndValidity(ne)}patchValue(te,ne={}){null!=te&&(Object.keys(te).forEach((ie=>{const re=this.controls[ie];re&&re.patchValue(te[ie],{onlySelf:!0,emitEvent:ne.emitEvent})})),this.updateValueAndValidity(ne))}reset(te={},ne={}){this._forEachChild(((ie,re)=>{ie.reset(te?te[re]:null,{onlySelf:!0,emitEvent:ne.emitEvent})})),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this._reduceChildren({},((te,ne,ie)=>(te[ie]=ne.getRawValue(),te)))}_syncPendingControls(){let te=this._reduceChildren(!1,((te,ne)=>!!ne._syncPendingControls()||te));return te&&this.updateValueAndValidity({onlySelf:!0}),te}_forEachChild(te){Object.keys(this.controls).forEach((ne=>{const ie=this.controls[ne];ie&&te(ie,ne)}))}_setUpControls(){this._forEachChild((te=>{te.setParent(this),te._registerOnCollectionChange(this._onCollectionChange)}))}_updateValue(){this.value=this._reduceValue()}_anyControls(te){for(const[ne,ie]of Object.entries(this.controls))if(this.contains(ne)&&te(ie))return!0;return!1}_reduceValue(){return this._reduceChildren({},((te,ne,ie)=>((ne.enabled||this.disabled)&&(te[ie]=ne.value),te)))}_reduceChildren(te,ne){let ie=te;return this._forEachChild(((te,re)=>{ie=ne(ie,te,re)})),ie}_allControlsDisabled(){for(const te of Object.keys(this.controls))if(this.controls[te].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(te){return this.controls.hasOwnProperty(te)?this.controls[te]:null}}class FormRecord extends FormGroup{}const je=new re.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Ve}),Ve="always";function controlPath(te,ne){return[...ne.path,te]}function setUpControl(te,ne,ie=Ve){te||_throwError(ne,"Cannot find control with"),ne.valueAccessor||function _throwMissingValueAccessorError(te){const ne=_describeControlLocation(te);throw new re.wOt(-1203,`No value accessor for form control ${ne}.`)}(ne),setUpValidators(te,ne),ne.valueAccessor.writeValue(te.value),(te.disabled||"always"===ie)&&ne.valueAccessor.setDisabledState?.(te.disabled),function setUpViewChangePipeline(te,ne){ne.valueAccessor.registerOnChange((ie=>{te._pendingValue=ie,te._pendingChange=!0,te._pendingDirty=!0,"change"===te.updateOn&&updateControl(te,ne)}))}(te,ne),function setUpModelChangePipeline(te,ne){const onChange=(te,ie)=>{ne.valueAccessor.writeValue(te),ie&&ne.viewToModelUpdate(te)};te.registerOnChange(onChange),ne._registerOnDestroy((()=>{te._unregisterOnChange(onChange)}))}(te,ne),function setUpBlurPipeline(te,ne){ne.valueAccessor.registerOnTouched((()=>{te._pendingTouched=!0,"blur"===te.updateOn&&te._pendingChange&&updateControl(te,ne),"submit"!==te.updateOn&&te.markAsTouched()}))}(te,ne),function setUpDisabledChangeHandler(te,ne){if(ne.valueAccessor.setDisabledState){const onDisabledChange=te=>{ne.valueAccessor.setDisabledState(te)};te.registerOnDisabledChange(onDisabledChange),ne._registerOnDestroy((()=>{te._unregisterOnDisabledChange(onDisabledChange)}))}}(te,ne)}function cleanUpControl(te,ne,ie=!0){const noop=()=>{ie&&function _noControlError(te){return _throwError(te,"There is no FormControl instance attached to form control element with")}(ne)};ne.valueAccessor&&(ne.valueAccessor.registerOnChange(noop),ne.valueAccessor.registerOnTouched(noop)),cleanUpValidators(te,ne),te&&(ne._invokeOnDestroyCallbacks(),te._registerOnCollectionChange((()=>{})))}function registerOnValidatorChange(te,ne){te.forEach((te=>{te.registerOnValidatorChange&&te.registerOnValidatorChange(ne)}))}function setUpValidators(te,ne){const ie=getControlValidators(te);null!==ne.validator?te.setValidators(mergeValidators(ie,ne.validator)):"function"==typeof ie&&te.setValidators([ie]);const re=getControlAsyncValidators(te);null!==ne.asyncValidator?te.setAsyncValidators(mergeValidators(re,ne.asyncValidator)):"function"==typeof re&&te.setAsyncValidators([re]);const onValidatorChange=()=>te.updateValueAndValidity();registerOnValidatorChange(ne._rawValidators,onValidatorChange),registerOnValidatorChange(ne._rawAsyncValidators,onValidatorChange)}function cleanUpValidators(te,ne){let ie=!1;if(null!==te){if(null!==ne.validator){const re=getControlValidators(te);if(Array.isArray(re)&&re.length>0){const le=re.filter((te=>te!==ne.validator));le.length!==re.length&&(ie=!0,te.setValidators(le))}}if(null!==ne.asyncValidator){const re=getControlAsyncValidators(te);if(Array.isArray(re)&&re.length>0){const le=re.filter((te=>te!==ne.asyncValidator));le.length!==re.length&&(ie=!0,te.setAsyncValidators(le))}}}const noop=()=>{};return registerOnValidatorChange(ne._rawValidators,noop),registerOnValidatorChange(ne._rawAsyncValidators,noop),ie}function updateControl(te,ne){te._pendingDirty&&te.markAsDirty(),te.setValue(te._pendingValue,{emitModelToViewChange:!1}),ne.viewToModelUpdate(te._pendingValue),te._pendingChange=!1}function setUpFormContainer(te,ne){null==te&&_throwError(ne,"Cannot find control with"),setUpValidators(te,ne)}function _throwError(te,ne){const ie=_describeControlLocation(te);throw new Error(`${ne} ${ie}`)}function _describeControlLocation(te){const ne=te.path;return ne&&ne.length>1?`path: '${ne.join(" -> ")}'`:ne?.[0]?`name: '${ne}'`:"unspecified name attribute"}function isPropertyUpdated(te,ne){if(!te.hasOwnProperty("model"))return!1;const ie=te.model;return!!ie.isFirstChange()||!Object.is(ne,ie.currentValue)}function syncPendingControls(te,ne){te._syncPendingControls(),ne.forEach((te=>{const ne=te.control;"submit"===ne.updateOn&&ne._pendingChange&&(te.viewToModelUpdate(ne._pendingValue),ne._pendingChange=!1)}))}function selectValueAccessor(te,ne){if(!ne)return null;let ie,le,ce;return Array.isArray(ne)||function _throwInvalidValueAccessorError(te){const ne=_describeControlLocation(te);throw new re.wOt(1200,`Value accessor was not provided as an array for form control with ${ne}. Check that the \`NG_VALUE_ACCESSOR\` token is configured as a \`multi: true\` provider.`)}(te),ne.forEach((ne=>{ne.constructor===Ce?ie=ne:!function isBuiltInAccessor(te){return Object.getPrototypeOf(te.constructor)===ge}(ne)?(ce&&_throwError(te,"More than one custom value accessor matches form control with"),ce=ne):(le&&_throwError(te,"More than one built-in value accessor matches form control with"),le=ne)})),ce||(le||(ie||(_throwError(te,"No valid value accessor for form control with"),null)))}function _ngModelWarning(te,ne,ie,re){"never"!==re&&((null!==re&&"once"!==re||ne._ngModelWarningSentOnce)&&("always"!==re||ie._ngModelWarningSent)||(console.warn(function ngModelWarning(te){return`\n  It looks like you're using ngModel on the same form field as ${te}.\n  Support for using the ngModel input property and ngModelChange event with\n  reactive form directives has been deprecated in Angular v6 and will be removed\n  in a future version of Angular.\n\n  For more information on this, see our API docs here:\n  https://angular.io/api/forms/${"formControl"===te?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n  `}(te)),ne._ngModelWarningSentOnce=!0,ie._ngModelWarningSent=!0))}const Ge={provide:ControlContainer,useExisting:(0,re.Rfq)((()=>He))},ze=(()=>Promise.resolve())();let He=(()=>{class NgForm extends ControlContainer{constructor(te,ne,ie){super(),this.callSetDisabledState=ie,this.submitted=!1,this._directives=new Set,this.ngSubmit=new re.bkB,this.form=new FormGroup({},composeValidators(te),composeAsyncValidators(ne))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(te){ze.then((()=>{const ne=this._findContainer(te.path);te.control=ne.registerControl(te.name,te.control),setUpControl(te.control,te,this.callSetDisabledState),te.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(te)}))}getControl(te){return this.form.get(te.path)}removeControl(te){ze.then((()=>{const ne=this._findContainer(te.path);ne&&ne.removeControl(te.name),this._directives.delete(te)}))}addFormGroup(te){ze.then((()=>{const ne=this._findContainer(te.path),ie=new FormGroup({});setUpFormContainer(ie,te),ne.registerControl(te.name,ie),ie.updateValueAndValidity({emitEvent:!1})}))}removeFormGroup(te){ze.then((()=>{const ne=this._findContainer(te.path);ne&&ne.removeControl(te.name)}))}getFormGroup(te){return this.form.get(te.path)}updateModel(te,ne){ze.then((()=>{this.form.get(te.path).setValue(ne)}))}setValue(te){this.control.setValue(te)}onSubmit(te){return this.submitted=!0,syncPendingControls(this.form,this._directives),this.ngSubmit.emit(te),"dialog"===te?.target?.method}onReset(){this.resetForm()}resetForm(te=void 0){this.form.reset(te),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(te){return te.pop(),te.length?this.form.get(te):this.form}static#e=this.ɵfac=function NgForm_Factory(te){return new(te||NgForm)(re.rXU(ye,10),re.rXU(we,10),re.rXU(je,8))};static#t=this.ɵdir=re.FsC({type:NgForm,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function NgForm_HostBindings(te,ne){1&te&&re.bIt("submit",(function NgForm_submit_HostBindingHandler(te){return ne.onSubmit(te)}))("reset",(function NgForm_reset_HostBindingHandler(){return ne.onReset()}))},inputs:{options:[re.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[re.Jv_([Ge]),re.Vt3]})}return NgForm})();function removeListItem(te,ne){const ie=te.indexOf(ne);ie>-1&&te.splice(ie,1)}function isFormControlState(te){return"object"==typeof te&&null!==te&&2===Object.keys(te).length&&"value"in te&&"disabled"in te}const $e=class FormControl extends AbstractControl{constructor(te=null,ne,ie){super(pickValidators(ne),pickAsyncValidators(ie,ne)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(te),this._setUpdateStrategy(ne),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),isOptionsObj(ne)&&(ne.nonNullable||ne.initialValueIsDefault)&&(isFormControlState(te)?this.defaultValue=te.value:this.defaultValue=te)}setValue(te,ne={}){this.value=this._pendingValue=te,this._onChange.length&&!1!==ne.emitModelToViewChange&&this._onChange.forEach((te=>te(this.value,!1!==ne.emitViewToModelChange))),this.updateValueAndValidity(ne)}patchValue(te,ne={}){this.setValue(te,ne)}reset(te=this.defaultValue,ne={}){this._applyFormState(te),this.markAsPristine(ne),this.markAsUntouched(ne),this.setValue(this.value,ne),this._pendingChange=!1}_updateValue(){}_anyControls(te){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(te){this._onChange.push(te)}_unregisterOnChange(te){removeListItem(this._onChange,te)}registerOnDisabledChange(te){this._onDisabledChange.push(te)}_unregisterOnDisabledChange(te){removeListItem(this._onDisabledChange,te)}_forEachChild(te){}_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(te){isFormControlState(te)?(this.value=this._pendingValue=te.value,te.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=te}};let qe=(()=>{class AbstractFormGroupDirective extends ControlContainer{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return controlPath(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.ɵfac=(()=>{let te;return function AbstractFormGroupDirective_Factory(ne){return(te||(te=re.xGo(AbstractFormGroupDirective)))(ne||AbstractFormGroupDirective)}})();static#t=this.ɵdir=re.FsC({type:AbstractFormGroupDirective,features:[re.Vt3]})}return AbstractFormGroupDirective})();const Ye={provide:ControlContainer,useExisting:(0,re.Rfq)((()=>Xe))};let Xe=(()=>{class NgModelGroup extends qe{constructor(te,ne,ie){super(),this.name="",this._parent=te,this._setValidators(ne),this._setAsyncValidators(ie)}_checkParentType(){if(!(this._parent instanceof NgModelGroup)&&!(this._parent instanceof He))throw function modelGroupParentException(){return new re.wOt(1353,`\n    ngModelGroup cannot be used with a parent formGroup directive.\n\n    Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n    ${Me}\n\n    Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n    ${Ne}`)}()}static#e=this.ɵfac=function NgModelGroup_Factory(te){return new(te||NgModelGroup)(re.rXU(ControlContainer,5),re.rXU(ye,10),re.rXU(we,10))};static#t=this.ɵdir=re.FsC({type:NgModelGroup,selectors:[["","ngModelGroup",""]],inputs:{name:[re.Mj6.None,"ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[re.Jv_([Ye]),re.Vt3]})}return NgModelGroup})();const Ke={provide:NgControl,useExisting:(0,re.Rfq)((()=>Je))},Qe=(()=>Promise.resolve())();let Je=(()=>{class NgModel extends NgControl{constructor(te,ne,ie,le,ce,de){super(),this._changeDetectorRef=ce,this.callSetDisabledState=de,this.control=new $e,this._registered=!1,this.name="",this.update=new re.bkB,this._parent=te,this._setValidators(ne),this._setAsyncValidators(ie),this.valueAccessor=selectValueAccessor(this,le)}ngOnChanges(te){if(this._checkForErrors(),!this._registered||"name"in te){if(this._registered&&(this._checkName(),this.formDirective)){const ne=te.name.previousValue;this.formDirective.removeControl({name:ne,path:this._getPath(ne)})}this._setUpControl()}"isDisabled"in te&&this._updateDisabled(te),isPropertyUpdated(te,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(te){this.viewModel=te,this.update.emit(te)}_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(){setUpControl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){if(!(this._parent instanceof Xe)&&this._parent instanceof qe)throw function formGroupNameException(){return new re.wOt(1351,`\n    ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n    Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n    ${Me}\n\n    Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n    ${Ne}`)}();if(!(this._parent instanceof Xe||this._parent instanceof He))throw function modelParentException(){return new re.wOt(1350,`\n    ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n    formGroup's partner directive "formControlName" instead.  Example:\n\n    ${Ee}\n\n    Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n    Example:\n\n    \n  <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n      <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n  </div>\n`)}()}_checkName(){if(this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&!this.name)throw function missingNameException(){return new re.wOt(1352,'If ngModel is used within a form tag, either the name attribute must be set or the form\n    control must be defined as \'standalone\' in ngModelOptions.\n\n    Example 1: <input [(ngModel)]="person.firstName" name="first">\n    Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}()}_updateValue(te){Qe.then((()=>{this.control.setValue(te,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()}))}_updateDisabled(te){const ne=te.isDisabled.currentValue,ie=0!==ne&&(0,re.L39)(ne);Qe.then((()=>{ie&&!this.control.disabled?this.control.disable():!ie&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()}))}_getPath(te){return this._parent?controlPath(te,this._parent):[te]}static#e=this.ɵfac=function NgModel_Factory(te){return new(te||NgModel)(re.rXU(ControlContainer,9),re.rXU(ye,10),re.rXU(we,10),re.rXU(fe,10),re.rXU(re.gRc,8),re.rXU(je,8))};static#t=this.ɵdir=re.FsC({type:NgModel,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[re.Mj6.None,"disabled","isDisabled"],model:[re.Mj6.None,"ngModel","model"],options:[re.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[re.Jv_([Ke]),re.Vt3,re.OA$]})}return NgModel})(),dt=(()=>{class ɵNgNoValidate{static#e=this.ɵfac=function ɵNgNoValidate_Factory(te){return new(te||ɵNgNoValidate)};static#t=this.ɵdir=re.FsC({type:ɵNgNoValidate,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return ɵNgNoValidate})();const pt=new re.nKC(""),Ct={provide:NgControl,useExisting:(0,re.Rfq)((()=>vt))};let vt=(()=>{class FormControlDirective extends NgControl{set isDisabled(te){console.warn(Re)}static#e=this._ngModelWarningSentOnce=!1;constructor(te,ne,ie,le,ce){super(),this._ngModelWarningConfig=le,this.callSetDisabledState=ce,this.update=new re.bkB,this._ngModelWarningSent=!1,this._setValidators(te),this._setAsyncValidators(ne),this.valueAccessor=selectValueAccessor(this,ie)}ngOnChanges(te){if(this._isControlChanged(te)){const ne=te.form.previousValue;ne&&cleanUpControl(ne,this,!1),setUpControl(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}isPropertyUpdated(te,this.viewModel)&&(_ngModelWarning("formControl",FormControlDirective,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&cleanUpControl(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(te){this.viewModel=te,this.update.emit(te)}_isControlChanged(te){return te.hasOwnProperty("form")}static#t=this.ɵfac=function FormControlDirective_Factory(te){return new(te||FormControlDirective)(re.rXU(ye,10),re.rXU(we,10),re.rXU(fe,10),re.rXU(pt,8),re.rXU(je,8))};static#n=this.ɵdir=re.FsC({type:FormControlDirective,selectors:[["","formControl",""]],inputs:{form:[re.Mj6.None,"formControl","form"],isDisabled:[re.Mj6.None,"disabled","isDisabled"],model:[re.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[re.Jv_([Ct]),re.Vt3,re.OA$]})}return FormControlDirective})();const It={provide:ControlContainer,useExisting:(0,re.Rfq)((()=>Dt))};let Dt=(()=>{class FormGroupDirective extends ControlContainer{constructor(te,ne,ie){super(),this.callSetDisabledState=ie,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new re.bkB,this._setValidators(te),this._setAsyncValidators(ne)}ngOnChanges(te){this._checkFormPresent(),te.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(cleanUpValidators(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange((()=>{})))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(te){const ne=this.form.get(te.path);return setUpControl(ne,te,this.callSetDisabledState),ne.updateValueAndValidity({emitEvent:!1}),this.directives.push(te),ne}getControl(te){return this.form.get(te.path)}removeControl(te){cleanUpControl(te.control||null,te,!1),function removeListItem$1(te,ne){const ie=te.indexOf(ne);ie>-1&&te.splice(ie,1)}(this.directives,te)}addFormGroup(te){this._setUpFormContainer(te)}removeFormGroup(te){this._cleanUpFormContainer(te)}getFormGroup(te){return this.form.get(te.path)}addFormArray(te){this._setUpFormContainer(te)}removeFormArray(te){this._cleanUpFormContainer(te)}getFormArray(te){return this.form.get(te.path)}updateModel(te,ne){this.form.get(te.path).setValue(ne)}onSubmit(te){return this.submitted=!0,syncPendingControls(this.form,this.directives),this.ngSubmit.emit(te),"dialog"===te?.target?.method}onReset(){this.resetForm()}resetForm(te=void 0){this.form.reset(te),this.submitted=!1}_updateDomValue(){this.directives.forEach((te=>{const ne=te.control,ie=this.form.get(te.path);ne!==ie&&(cleanUpControl(ne||null,te),ie instanceof $e&&(setUpControl(ie,te,this.callSetDisabledState),te.control=ie))})),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(te){const ne=this.form.get(te.path);setUpFormContainer(ne,te),ne.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(te){if(this.form){const ne=this.form.get(te.path);if(ne){const ie=function cleanUpFormContainer(te,ne){return cleanUpValidators(te,ne)}(ne,te);ie&&ne.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange((()=>{}))}_updateValidators(){setUpValidators(this.form,this),this._oldForm&&cleanUpValidators(this._oldForm,this)}_checkFormPresent(){if(!this.form)throw function missingFormException(){return new re.wOt(1052,`formGroup expects a FormGroup instance. Please pass one in.\n\n      Example:\n\n      ${Ee}`)}()}static#e=this.ɵfac=function FormGroupDirective_Factory(te){return new(te||FormGroupDirective)(re.rXU(ye,10),re.rXU(we,10),re.rXU(je,8))};static#t=this.ɵdir=re.FsC({type:FormGroupDirective,selectors:[["","formGroup",""]],hostBindings:function FormGroupDirective_HostBindings(te,ne){1&te&&re.bIt("submit",(function FormGroupDirective_submit_HostBindingHandler(te){return ne.onSubmit(te)}))("reset",(function FormGroupDirective_reset_HostBindingHandler(){return ne.onReset()}))},inputs:{form:[re.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[re.Jv_([It]),re.Vt3,re.OA$]})}return FormGroupDirective})();const Mt={provide:ControlContainer,useExisting:(0,re.Rfq)((()=>Nt))};let Nt=(()=>{class FormGroupName extends qe{constructor(te,ne,ie){super(),this.name=null,this._parent=te,this._setValidators(ne),this._setAsyncValidators(ie)}_checkParentType(){if(_hasInvalidParent(this._parent))throw function groupParentException(){return new re.wOt(1053,`formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n    directive and pass it an existing FormGroup instance (you can create one in your class).\n\n    Example:\n\n    ${Me}`)}()}static#e=this.ɵfac=function FormGroupName_Factory(te){return new(te||FormGroupName)(re.rXU(ControlContainer,13),re.rXU(ye,10),re.rXU(we,10))};static#t=this.ɵdir=re.FsC({type:FormGroupName,selectors:[["","formGroupName",""]],inputs:{name:[re.Mj6.None,"formGroupName","name"]},features:[re.Jv_([Mt]),re.Vt3]})}return FormGroupName})();const Rt={provide:ControlContainer,useExisting:(0,re.Rfq)((()=>Ot))};let Ot=(()=>{class FormArrayName extends ControlContainer{constructor(te,ne,ie){super(),this.name=null,this._parent=te,this._setValidators(ne),this._setAsyncValidators(ie)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return controlPath(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){if(_hasInvalidParent(this._parent))throw function arrayParentException(){return new re.wOt(1054,'formArrayName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      \n  <div [formGroup]="myGroup">\n    <div formArrayName="cities">\n      <div *ngFor="let city of cityArray.controls; index as i">\n        <input [formControlName]="i">\n      </div>\n    </div>\n  </div>\n\n  In your class:\n\n  this.cityArray = new FormArray([new FormControl(\'SF\')]);\n  this.myGroup = new FormGroup({\n    cities: this.cityArray\n  });')}()}static#e=this.ɵfac=function FormArrayName_Factory(te){return new(te||FormArrayName)(re.rXU(ControlContainer,13),re.rXU(ye,10),re.rXU(we,10))};static#t=this.ɵdir=re.FsC({type:FormArrayName,selectors:[["","formArrayName",""]],inputs:{name:[re.Mj6.None,"formArrayName","name"]},features:[re.Jv_([Rt]),re.Vt3]})}return FormArrayName})();function _hasInvalidParent(te){return!(te instanceof Nt||te instanceof Dt||te instanceof Ot)}const Vt={provide:NgControl,useExisting:(0,re.Rfq)((()=>Gt))};let Gt=(()=>{class FormControlName extends NgControl{set isDisabled(te){console.warn(Re)}static#e=this._ngModelWarningSentOnce=!1;constructor(te,ne,ie,le,ce){super(),this._ngModelWarningConfig=ce,this._added=!1,this.name=null,this.update=new re.bkB,this._ngModelWarningSent=!1,this._parent=te,this._setValidators(ne),this._setAsyncValidators(ie),this.valueAccessor=selectValueAccessor(this,le)}ngOnChanges(te){this._added||this._setUpControl(),isPropertyUpdated(te,this.viewModel)&&(_ngModelWarning("formControlName",FormControlName,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(te){this.viewModel=te,this.update.emit(te)}get path(){return controlPath(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){if(!(this._parent instanceof Nt)&&this._parent instanceof qe)throw function ngModelGroupException(){return new re.wOt(1051,`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n      that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n      Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n      ${Me}\n\n      Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n      ${Ne}`)}();if(!(this._parent instanceof Nt||this._parent instanceof Dt||this._parent instanceof Ot))throw function controlParentException(){return new re.wOt(1050,`formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n    Example:\n\n    ${Ee}`)}()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.ɵfac=function FormControlName_Factory(te){return new(te||FormControlName)(re.rXU(ControlContainer,13),re.rXU(ye,10),re.rXU(we,10),re.rXU(fe,10),re.rXU(pt,8))};static#n=this.ɵdir=re.FsC({type:FormControlName,selectors:[["","formControlName",""]],inputs:{name:[re.Mj6.None,"formControlName","name"],isDisabled:[re.Mj6.None,"disabled","isDisabled"],model:[re.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[re.Jv_([Vt]),re.Vt3,re.OA$]})}return FormControlName})();let zt=(()=>{class ɵInternalFormsSharedModule{static#e=this.ɵfac=function ɵInternalFormsSharedModule_Factory(te){return new(te||ɵInternalFormsSharedModule)};static#t=this.ɵmod=re.$C({type:ɵInternalFormsSharedModule});static#n=this.ɵinj=re.G2t({})}return ɵInternalFormsSharedModule})();class FormArray extends AbstractControl{constructor(te,ne,ie){super(pickValidators(ne),pickAsyncValidators(ie,ne)),this.controls=te,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(te){return this.controls[this._adjustIndex(te)]}push(te,ne={}){this.controls.push(te),this._registerControl(te),this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}insert(te,ne,ie={}){this.controls.splice(te,0,ne),this._registerControl(ne),this.updateValueAndValidity({emitEvent:ie.emitEvent})}removeAt(te,ne={}){let ie=this._adjustIndex(te);ie<0&&(ie=0),this.controls[ie]&&this.controls[ie]._registerOnCollectionChange((()=>{})),this.controls.splice(ie,1),this.updateValueAndValidity({emitEvent:ne.emitEvent})}setControl(te,ne,ie={}){let re=this._adjustIndex(te);re<0&&(re=0),this.controls[re]&&this.controls[re]._registerOnCollectionChange((()=>{})),this.controls.splice(re,1),ne&&(this.controls.splice(re,0,ne),this._registerControl(ne)),this.updateValueAndValidity({emitEvent:ie.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(te,ne={}){assertAllValuesPresent(this,!1,te),te.forEach(((te,ie)=>{assertControlPresent(this,!1,ie),this.at(ie).setValue(te,{onlySelf:!0,emitEvent:ne.emitEvent})})),this.updateValueAndValidity(ne)}patchValue(te,ne={}){null!=te&&(te.forEach(((te,ie)=>{this.at(ie)&&this.at(ie).patchValue(te,{onlySelf:!0,emitEvent:ne.emitEvent})})),this.updateValueAndValidity(ne))}reset(te=[],ne={}){this._forEachChild(((ie,re)=>{ie.reset(te[re],{onlySelf:!0,emitEvent:ne.emitEvent})})),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this.controls.map((te=>te.getRawValue()))}clear(te={}){this.controls.length<1||(this._forEachChild((te=>te._registerOnCollectionChange((()=>{})))),this.controls.splice(0),this.updateValueAndValidity({emitEvent:te.emitEvent}))}_adjustIndex(te){return te<0?te+this.length:te}_syncPendingControls(){let te=this.controls.reduce(((te,ne)=>!!ne._syncPendingControls()||te),!1);return te&&this.updateValueAndValidity({onlySelf:!0}),te}_forEachChild(te){this.controls.forEach(((ne,ie)=>{te(ne,ie)}))}_updateValue(){this.value=this.controls.filter((te=>te.enabled||this.disabled)).map((te=>te.value))}_anyControls(te){return this.controls.some((ne=>ne.enabled&&te(ne)))}_setUpControls(){this._forEachChild((te=>this._registerControl(te)))}_allControlsDisabled(){for(const te of this.controls)if(te.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(te){te.setParent(this),te._registerOnCollectionChange(this._onCollectionChange)}_find(te){return this.at(te)??null}}function isAbstractControlOptions(te){return!!te&&(void 0!==te.asyncValidators||void 0!==te.validators||void 0!==te.updateOn)}let Ht=(()=>{class FormBuilder{constructor(){this.useNonNullable=!1}get nonNullable(){const te=new FormBuilder;return te.useNonNullable=!0,te}group(te,ne=null){const ie=this._reduceControls(te);let re={};return isAbstractControlOptions(ne)?re=ne:null!==ne&&(re.validators=ne.validator,re.asyncValidators=ne.asyncValidator),new FormGroup(ie,re)}record(te,ne=null){const ie=this._reduceControls(te);return new FormRecord(ie,ne)}control(te,ne,ie){let re={};return this.useNonNullable?(isAbstractControlOptions(ne)?re=ne:(re.validators=ne,re.asyncValidators=ie),new $e(te,{...re,nonNullable:!0})):new $e(te,ne,ie)}array(te,ne,ie){const re=te.map((te=>this._createControl(te)));return new FormArray(re,ne,ie)}_reduceControls(te){const ne={};return Object.keys(te).forEach((ie=>{ne[ie]=this._createControl(te[ie])})),ne}_createControl(te){if(te instanceof $e)return te;if(te instanceof AbstractControl)return te;if(Array.isArray(te)){const ne=te[0],ie=te.length>1?te[1]:null,re=te.length>2?te[2]:null;return this.control(ne,ie,re)}return this.control(te)}static#e=this.ɵfac=function FormBuilder_Factory(te){return new(te||FormBuilder)};static#t=this.ɵprov=re.jDH({token:FormBuilder,factory:FormBuilder.ɵfac,providedIn:"root"})}return FormBuilder})(),Ut=(()=>{class NonNullableFormBuilder{static#e=this.ɵfac=function NonNullableFormBuilder_Factory(te){return new(te||NonNullableFormBuilder)};static#t=this.ɵprov=re.jDH({token:NonNullableFormBuilder,factory:()=>(0,re.WQX)(Ht).nonNullable,providedIn:"root"})}return NonNullableFormBuilder})();let $t=(()=>{class FormsModule{static withConfig(te){return{ngModule:FormsModule,providers:[{provide:je,useValue:te.callSetDisabledState??Ve}]}}static#e=this.ɵfac=function FormsModule_Factory(te){return new(te||FormsModule)};static#t=this.ɵmod=re.$C({type:FormsModule});static#n=this.ɵinj=re.G2t({imports:[zt]})}return FormsModule})(),Yt=(()=>{class ReactiveFormsModule{static withConfig(te){return{ngModule:ReactiveFormsModule,providers:[{provide:pt,useValue:te.warnOnNgModelWithFormControl??"always"},{provide:je,useValue:te.callSetDisabledState??Ve}]}}static#e=this.ɵfac=function ReactiveFormsModule_Factory(te){return new(te||ReactiveFormsModule)};static#t=this.ɵmod=re.$C({type:ReactiveFormsModule});static#n=this.ɵinj=re.G2t({imports:[zt]})}return ReactiveFormsModule})()},6388:(te,ne,ie)=>{"use strict";ie.d(ne,{B7:()=>Se,Bb:()=>Ge,hE:()=>ze,sG:()=>Pe,up:()=>He});var re=ie(3107),le=ie(4460);class GenericBrowserDomAdapter extends le.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class BrowserDomAdapter extends GenericBrowserDomAdapter{static makeCurrent(){(0,le.ZD)(new BrowserDomAdapter)}onAndCancel(te,ne,ie){return te.addEventListener(ne,ie),()=>{te.removeEventListener(ne,ie)}}dispatchEvent(te,ne){te.dispatchEvent(ne)}remove(te){te.parentNode&&te.parentNode.removeChild(te)}createElement(te,ne){return(ne=ne||this.getDefaultDocument()).createElement(te)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(te){return te.nodeType===Node.ELEMENT_NODE}isShadowRoot(te){return te instanceof DocumentFragment}getGlobalEventTarget(te,ne){return"window"===ne?window:"document"===ne?te:"body"===ne?te.body:null}getBaseHref(te){const ne=function getBaseElementHref(){return ce=ce||document.querySelector("base"),ce?ce.getAttribute("href"):null}();return null==ne?null:function relativePath(te){return new URL(te,document.baseURI).pathname}(ne)}resetBaseElement(){ce=null}getUserAgent(){return window.navigator.userAgent}getCookie(te){return(0,le._b)(document.cookie,te)}}let ce=null;let de=(()=>{class BrowserXhr{build(){return new XMLHttpRequest}static#e=this.ɵfac=function BrowserXhr_Factory(te){return new(te||BrowserXhr)};static#t=this.ɵprov=re.jDH({token:BrowserXhr,factory:BrowserXhr.ɵfac})}return BrowserXhr})();const ue=new re.nKC("");let me=(()=>{class EventManager{constructor(te,ne){this._zone=ne,this._eventNameToPlugin=new Map,te.forEach((te=>{te.manager=this})),this._plugins=te.slice().reverse()}addEventListener(te,ne,ie){return this._findPluginFor(ne).addEventListener(te,ne,ie)}getZone(){return this._zone}_findPluginFor(te){let ne=this._eventNameToPlugin.get(te);if(ne)return ne;if(ne=this._plugins.find((ne=>ne.supports(te))),!ne)throw new re.wOt(5101,`No event manager plugin found for event ${te}`);return this._eventNameToPlugin.set(te,ne),ne}static#e=this.ɵfac=function EventManager_Factory(te){return new(te||EventManager)(re.KVO(ue),re.KVO(re.SKi))};static#t=this.ɵprov=re.jDH({token:EventManager,factory:EventManager.ɵfac})}return EventManager})();class EventManagerPlugin{constructor(te){this._doc=te}}const ge="ng-app-id";let fe=(()=>{class SharedStylesHost{constructor(te,ne,ie,re={}){this.doc=te,this.appId=ne,this.nonce=ie,this.platformId=re,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,le.Vy)(re),this.resetHostNodes()}addStyles(te){for(const ne of te){1===this.changeUsageCount(ne,1)&&this.onStyleAdded(ne)}}removeStyles(te){for(const ne of te){this.changeUsageCount(ne,-1)<=0&&this.onStyleRemoved(ne)}}ngOnDestroy(){const te=this.styleNodesInDOM;te&&(te.forEach((te=>te.remove())),te.clear());for(const te of this.getAllStyles())this.onStyleRemoved(te);this.resetHostNodes()}addHost(te){this.hostNodes.add(te);for(const ne of this.getAllStyles())this.addStyleToHost(te,ne)}removeHost(te){this.hostNodes.delete(te)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(te){for(const ne of this.hostNodes)this.addStyleToHost(ne,te)}onStyleRemoved(te){const ne=this.styleRef;ne.get(te)?.elements?.forEach((te=>te.remove())),ne.delete(te)}collectServerRenderedStyles(){const te=this.doc.head?.querySelectorAll(`style[${ge}="${this.appId}"]`);if(te?.length){const ne=new Map;return te.forEach((te=>{null!=te.textContent&&ne.set(te.textContent,te)})),ne}return null}changeUsageCount(te,ne){const ie=this.styleRef;if(ie.has(te)){const re=ie.get(te);return re.usage+=ne,re.usage}return ie.set(te,{usage:ne,elements:[]}),ne}getStyleElement(te,ne){const ie=this.styleNodesInDOM,re=ie?.get(ne);if(re?.parentNode===te)return ie.delete(ne),re.removeAttribute(ge),re.setAttribute("ng-style-reused",""),re;{const ie=this.doc.createElement("style");return this.nonce&&ie.setAttribute("nonce",this.nonce),ie.textContent=ne,this.platformIsServer&&ie.setAttribute(ge,this.appId),te.appendChild(ie),ie}}addStyleToHost(te,ne){const ie=this.getStyleElement(te,ne),re=this.styleRef,le=re.get(ne)?.elements;le?le.push(ie):re.set(ne,{elements:[ie],usage:1})}resetHostNodes(){const te=this.hostNodes;te.clear(),te.add(this.doc.head)}static#e=this.ɵfac=function SharedStylesHost_Factory(te){return new(te||SharedStylesHost)(re.KVO(le.qQ),re.KVO(re.sZ2),re.KVO(re.BIS,8),re.KVO(re.Agw))};static#t=this.ɵprov=re.jDH({token:SharedStylesHost,factory:SharedStylesHost.ɵfac})}return SharedStylesHost})();const _e={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},be=/%COMP%/g,Ce="%COMP%",ye=`_nghost-${Ce}`,we=`_ngcontent-${Ce}`,ke=new re.nKC("",{providedIn:"root",factory:()=>true});function shimStylesContent(te,ne){return ne.map((ne=>ne.replace(be,te)))}let Se=(()=>{class DomRendererFactory2{constructor(te,ne,ie,re,ce,de,ue,me=null){this.eventManager=te,this.sharedStylesHost=ne,this.appId=ie,this.removeStylesOnCompDestroy=re,this.doc=ce,this.platformId=de,this.ngZone=ue,this.nonce=me,this.rendererByCompId=new Map,this.platformIsServer=(0,le.Vy)(de),this.defaultRenderer=new DefaultDomRenderer2(te,ce,ue,this.platformIsServer)}createRenderer(te,ne){if(!te||!ne)return this.defaultRenderer;this.platformIsServer&&ne.encapsulation===re.gXe.ShadowDom&&(ne={...ne,encapsulation:re.gXe.Emulated});const ie=this.getOrCreateRenderer(te,ne);return ie instanceof EmulatedEncapsulationDomRenderer2?ie.applyToHost(te):ie instanceof NoneEncapsulationDomRenderer&&ie.applyStyles(),ie}getOrCreateRenderer(te,ne){const ie=this.rendererByCompId;let le=ie.get(ne.id);if(!le){const ce=this.doc,de=this.ngZone,ue=this.eventManager,me=this.sharedStylesHost,ge=this.removeStylesOnCompDestroy,fe=this.platformIsServer;switch(ne.encapsulation){case re.gXe.Emulated:le=new EmulatedEncapsulationDomRenderer2(ue,me,ne,this.appId,ge,ce,de,fe);break;case re.gXe.ShadowDom:return new ShadowDomRenderer(ue,me,te,ne,ce,de,this.nonce,fe);default:le=new NoneEncapsulationDomRenderer(ue,me,ne,ge,ce,de,fe)}ie.set(ne.id,le)}return le}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.ɵfac=function DomRendererFactory2_Factory(te){return new(te||DomRendererFactory2)(re.KVO(me),re.KVO(fe),re.KVO(re.sZ2),re.KVO(ke),re.KVO(le.qQ),re.KVO(re.Agw),re.KVO(re.SKi),re.KVO(re.BIS))};static#t=this.ɵprov=re.jDH({token:DomRendererFactory2,factory:DomRendererFactory2.ɵfac})}return DomRendererFactory2})();class DefaultDomRenderer2{constructor(te,ne,ie,re){this.eventManager=te,this.doc=ne,this.ngZone=ie,this.platformIsServer=re,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(te,ne){return ne?this.doc.createElementNS(_e[ne]||ne,te):this.doc.createElement(te)}createComment(te){return this.doc.createComment(te)}createText(te){return this.doc.createTextNode(te)}appendChild(te,ne){(isTemplateNode(te)?te.content:te).appendChild(ne)}insertBefore(te,ne,ie){if(te){(isTemplateNode(te)?te.content:te).insertBefore(ne,ie)}}removeChild(te,ne){te&&te.removeChild(ne)}selectRootElement(te,ne){let ie="string"==typeof te?this.doc.querySelector(te):te;if(!ie)throw new re.wOt(-5104,`The selector "${te}" did not match any elements`);return ne||(ie.textContent=""),ie}parentNode(te){return te.parentNode}nextSibling(te){return te.nextSibling}setAttribute(te,ne,ie,re){if(re){ne=re+":"+ne;const le=_e[re];le?te.setAttributeNS(le,ne,ie):te.setAttribute(ne,ie)}else te.setAttribute(ne,ie)}removeAttribute(te,ne,ie){if(ie){const re=_e[ie];re?te.removeAttributeNS(re,ne):te.removeAttribute(`${ie}:${ne}`)}else te.removeAttribute(ne)}addClass(te,ne){te.classList.add(ne)}removeClass(te,ne){te.classList.remove(ne)}setStyle(te,ne,ie,le){le&(re.czy.DashCase|re.czy.Important)?te.style.setProperty(ne,ie,le&re.czy.Important?"important":""):te.style[ne]=ie}removeStyle(te,ne,ie){ie&re.czy.DashCase?te.style.removeProperty(ne):te.style[ne]=""}setProperty(te,ne,ie){null!=te&&(this.throwOnSyntheticProps&&checkNoSyntheticProp(ne,"property"),te[ne]=ie)}setValue(te,ne){te.nodeValue=ne}listen(te,ne,ie){if(this.throwOnSyntheticProps&&checkNoSyntheticProp(ne,"listener"),"string"==typeof te&&!(te=(0,le.QT)().getGlobalEventTarget(this.doc,te)))throw new Error(`Unsupported event target ${te} for event ${ne}`);return this.eventManager.addEventListener(te,ne,this.decoratePreventDefault(ie))}decoratePreventDefault(te){return ne=>{if("__ngUnwrap__"===ne)return te;!1===(this.platformIsServer?this.ngZone.runGuarded((()=>te(ne))):te(ne))&&ne.preventDefault()}}}const xe=(()=>"@".charCodeAt(0))();function checkNoSyntheticProp(te,ne){if(te.charCodeAt(0)===xe)throw new re.wOt(5105,`Unexpected synthetic ${ne} ${te} found. Please make sure that:\n  - Either \`BrowserAnimationsModule\` or \`NoopAnimationsModule\` are imported in your application.\n  - There is corresponding configuration for the animation named \`${te}\` defined in the \`animations\` field of the \`@Component\` decorator (see https://angular.io/api/core/Component#animations).`)}function isTemplateNode(te){return"TEMPLATE"===te.tagName&&void 0!==te.content}class ShadowDomRenderer extends DefaultDomRenderer2{constructor(te,ne,ie,re,le,ce,de,ue){super(te,le,ce,ue),this.sharedStylesHost=ne,this.hostEl=ie,this.shadowRoot=ie.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const me=shimStylesContent(re.id,re.styles);for(const te of me){const ne=document.createElement("style");de&&ne.setAttribute("nonce",de),ne.textContent=te,this.shadowRoot.appendChild(ne)}}nodeOrShadowRoot(te){return te===this.hostEl?this.shadowRoot:te}appendChild(te,ne){return super.appendChild(this.nodeOrShadowRoot(te),ne)}insertBefore(te,ne,ie){return super.insertBefore(this.nodeOrShadowRoot(te),ne,ie)}removeChild(te,ne){return super.removeChild(this.nodeOrShadowRoot(te),ne)}parentNode(te){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(te)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class NoneEncapsulationDomRenderer extends DefaultDomRenderer2{constructor(te,ne,ie,re,le,ce,de,ue){super(te,le,ce,de),this.sharedStylesHost=ne,this.removeStylesOnCompDestroy=re,this.styles=ue?shimStylesContent(ue,ie.styles):ie.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer{constructor(te,ne,ie,re,le,ce,de,ue){const me=re+"-"+ie.id;super(te,ne,ie,le,ce,de,ue,me),this.contentAttr=function shimContentAttribute(te){return we.replace(be,te)}(me),this.hostAttr=function shimHostAttribute(te){return ye.replace(be,te)}(me)}applyToHost(te){this.applyStyles(),this.setAttribute(te,this.hostAttr,"")}createElement(te,ne){const ie=super.createElement(te,ne);return super.setAttribute(ie,this.contentAttr,""),ie}}let Ee=(()=>{class DomEventsPlugin extends EventManagerPlugin{constructor(te){super(te)}supports(te){return!0}addEventListener(te,ne,ie){return te.addEventListener(ne,ie,!1),()=>this.removeEventListener(te,ne,ie)}removeEventListener(te,ne,ie){return te.removeEventListener(ne,ie)}static#e=this.ɵfac=function DomEventsPlugin_Factory(te){return new(te||DomEventsPlugin)(re.KVO(le.qQ))};static#t=this.ɵprov=re.jDH({token:DomEventsPlugin,factory:DomEventsPlugin.ɵfac})}return DomEventsPlugin})();const Me=["alt","control","meta","shift"],Ne={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Re={alt:te=>te.altKey,control:te=>te.ctrlKey,meta:te=>te.metaKey,shift:te=>te.shiftKey};let Le=(()=>{class KeyEventsPlugin extends EventManagerPlugin{constructor(te){super(te)}supports(te){return null!=KeyEventsPlugin.parseEventName(te)}addEventListener(te,ne,ie){const re=KeyEventsPlugin.parseEventName(ne),ce=KeyEventsPlugin.eventCallback(re.fullKey,ie,this.manager.getZone());return this.manager.getZone().runOutsideAngular((()=>(0,le.QT)().onAndCancel(te,re.domEventName,ce)))}static parseEventName(te){const ne=te.toLowerCase().split("."),ie=ne.shift();if(0===ne.length||"keydown"!==ie&&"keyup"!==ie)return null;const re=KeyEventsPlugin._normalizeKey(ne.pop());let le="",ce=ne.indexOf("code");if(ce>-1&&(ne.splice(ce,1),le="code."),Me.forEach((te=>{const ie=ne.indexOf(te);ie>-1&&(ne.splice(ie,1),le+=te+".")})),le+=re,0!=ne.length||0===re.length)return null;const de={};return de.domEventName=ie,de.fullKey=le,de}static matchEventFullKeyCode(te,ne){let ie=Ne[te.key]||te.key,re="";return ne.indexOf("code.")>-1&&(ie=te.code,re="code."),!(null==ie||!ie)&&(ie=ie.toLowerCase()," "===ie?ie="space":"."===ie&&(ie="dot"),Me.forEach((ne=>{if(ne!==ie){(0,Re[ne])(te)&&(re+=ne+".")}})),re+=ie,re===ne)}static eventCallback(te,ne,ie){return re=>{KeyEventsPlugin.matchEventFullKeyCode(re,te)&&ie.runGuarded((()=>ne(re)))}}static _normalizeKey(te){return"esc"===te?"escape":te}static#e=this.ɵfac=function KeyEventsPlugin_Factory(te){return new(te||KeyEventsPlugin)(re.KVO(le.qQ))};static#t=this.ɵprov=re.jDH({token:KeyEventsPlugin,factory:KeyEventsPlugin.ɵfac})}return KeyEventsPlugin})();const Oe=[{provide:re.Agw,useValue:le.AJ},{provide:re.PLl,useValue:function initDomAdapter(){BrowserDomAdapter.makeCurrent()},multi:!0},{provide:le.qQ,useFactory:function _document(){return(0,re.TL$)(document),document},deps:[]}],Pe=(0,re.oH4)(re.fpN,"browser",Oe),Fe=new re.nKC("BrowserModule Providers Marker"),je=[{provide:re.e01,useClass:class BrowserGetTestability{addToWindow(te){re.JZv.getAngularTestability=(ne,ie=!0)=>{const le=te.findTestabilityInTree(ne,ie);if(null==le)throw new re.wOt(5103,"Could not find testability for element.");return le},re.JZv.getAllAngularTestabilities=()=>te.getAllTestabilities(),re.JZv.getAllAngularRootElements=()=>te.getAllRootElements();re.JZv.frameworkStabilizers||(re.JZv.frameworkStabilizers=[]),re.JZv.frameworkStabilizers.push((te=>{const ne=re.JZv.getAllAngularTestabilities();let ie=ne.length;const decrement=function(){ie--,0==ie&&te()};ne.forEach((te=>{te.whenStable(decrement)}))}))}findTestabilityInTree(te,ne,ie){if(null==ne)return null;const re=te.getTestability(ne);return null!=re?re:ie?(0,le.QT)().isShadowRoot(ne)?this.findTestabilityInTree(te,ne.host,!0):this.findTestabilityInTree(te,ne.parentElement,!0):null}},deps:[]},{provide:re.WHO,useClass:re.NYb,deps:[re.SKi,re.giA,re.e01]},{provide:re.NYb,useClass:re.NYb,deps:[re.SKi,re.giA,re.e01]}],Ve=[{provide:re.H8p,useValue:"root"},{provide:re.zcH,useFactory:function errorHandler(){return new re.zcH},deps:[]},{provide:ue,useClass:Ee,multi:!0,deps:[le.qQ,re.SKi,re.Agw]},{provide:ue,useClass:Le,multi:!0,deps:[le.qQ]},Se,fe,me,{provide:re._9s,useExisting:Se},{provide:le.N0,useClass:de,deps:[]},{provide:Fe,useValue:!0}];let Ge=(()=>{class BrowserModule{constructor(te){if(te)throw new re.wOt(5100,"Providers from the `BrowserModule` have already been loaded. If you need access to common directives such as NgIf and NgFor, import the `CommonModule` instead.")}static withServerTransition(te){return{ngModule:BrowserModule,providers:[{provide:re.sZ2,useValue:te.appId}]}}static#e=this.ɵfac=function BrowserModule_Factory(te){return new(te||BrowserModule)(re.KVO(Fe,12))};static#t=this.ɵmod=re.$C({type:BrowserModule});static#n=this.ɵinj=re.G2t({providers:[...Ve,...je],imports:[le.MD,re.Hbi]})}return BrowserModule})();let ze=(()=>{class Title{constructor(te){this._doc=te}getTitle(){return this._doc.title}setTitle(te){this._doc.title=te||""}static#e=this.ɵfac=function Title_Factory(te){return new(te||Title)(re.KVO(le.qQ))};static#t=this.ɵprov=re.jDH({token:Title,factory:Title.ɵfac,providedIn:"root"})}return Title})();let He=(()=>{class DomSanitizer{static#e=this.ɵfac=function DomSanitizer_Factory(te){return new(te||DomSanitizer)};static#t=this.ɵprov=re.jDH({token:DomSanitizer,factory:function DomSanitizer_Factory(te){let ne=null;return ne=te?new(te||DomSanitizer):re.KVO($e),ne},providedIn:"root"})}return DomSanitizer})(),$e=(()=>{class DomSanitizerImpl extends He{constructor(te){super(),this._doc=te}sanitize(te,ne){if(null==ne)return null;switch(te){case re.WPN.NONE:return ne;case re.WPN.HTML:return(0,re.ZF7)(ne,"HTML")?(0,re.rcV)(ne):(0,re.h9k)(this._doc,String(ne)).toString();case re.WPN.STYLE:return(0,re.ZF7)(ne,"Style")?(0,re.rcV)(ne):ne;case re.WPN.SCRIPT:if((0,re.ZF7)(ne,"Script"))return(0,re.rcV)(ne);throw new re.wOt(5200,"unsafe value used in a script context");case re.WPN.URL:return(0,re.ZF7)(ne,"URL")?(0,re.rcV)(ne):(0,re.$MX)(String(ne));case re.WPN.RESOURCE_URL:if((0,re.ZF7)(ne,"ResourceURL"))return(0,re.rcV)(ne);throw new re.wOt(5201,`unsafe value used in a resource URL context (see ${re.lNU})`);default:throw new re.wOt(5202,`Unexpected SecurityContext ${te} (see ${re.lNU})`)}}bypassSecurityTrustHtml(te){return(0,re.Kcf)(te)}bypassSecurityTrustStyle(te){return(0,re.cWb)(te)}bypassSecurityTrustScript(te){return(0,re.UyX)(te)}bypassSecurityTrustUrl(te){return(0,re.osQ)(te)}bypassSecurityTrustResourceUrl(te){return(0,re.e5t)(te)}static#e=this.ɵfac=function DomSanitizerImpl_Factory(te){return new(te||DomSanitizerImpl)(re.KVO(le.qQ))};static#t=this.ɵprov=re.jDH({token:DomSanitizerImpl,factory:DomSanitizerImpl.ɵfac,providedIn:"root"})}return DomSanitizerImpl})()},5656:(te,ne,ie)=>{"use strict";ie.d(ne,{nX:()=>ActivatedRoute,Ix:()=>xn,Wk:()=>En,wQ:()=>Rn,iI:()=>Un,n3:()=>$t});var re=ie(3107),le=ie(1698),ce=ie(1126);var de=ie(1787),ue=ie(3016),me=ie(1217),ge=ie(6627),fe=ie(8747),_e=ie(3569),be=ie(6381),Ce=ie(6742);function throwError_throwError(te,ne){const ie=(0,ce.T)(te)?te:()=>te,init=te=>te.error(ie());return new le.c(ne?te=>ne.schedule(init,0,te):init)}var ye=ie(6564),we=ie(5710),ke=ie(5351),Se=ie(2483);function refCount(){return(0,ke.N)(((te,ne)=>{let ie=null;te._refCount++;const re=(0,Se._)(ne,void 0,void 0,void 0,(()=>{if(!te||te._refCount<=0||0<--te._refCount)return void(ie=null);const re=te._connection,le=ie;ie=null,!re||le&&re!==le||re.unsubscribe(),ne.unsubscribe()}));te.subscribe(re),re.closed||(ie=te.connect())}))}class ConnectableObservable extends le.c{constructor(te,ne){super(),this.source=te,this.subjectFactory=ne,this._subject=null,this._refCount=0,this._connection=null,(0,ke.S)(te)&&(this.lift=te.lift)}_subscribe(te){return this.getSubject().subscribe(te)}getSubject(){const te=this._subject;return te&&!te.isStopped||(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:te}=this;this._subject=this._connection=null,null==te||te.unsubscribe()}connect(){let te=this._connection;if(!te){te=this._connection=new we.yU;const ne=this.getSubject();te.add(this.source.subscribe((0,Se._)(ne,void 0,(()=>{this._teardown(),ne.complete()}),(te=>{this._teardown(),ne.error(te)}),(()=>this._teardown())))),te.closed&&(this._connection=null,te=we.yU.EMPTY)}return te}refCount(){return refCount()(this)}}var xe=ie(8447),Ee=ie(4460),Me=ie(7947),Ne=ie(2867),Re=ie(7610),Le=ie(593),Oe=ie(1483),Pe=ie(5823),Fe=ie(1703),je=ie(1459),Ve=ie(2040),Ge=ie(7178),ze=ie(36);var He=ie(5670);function takeLast(te){return te<=0?()=>ye.w:(0,ke.N)(((ne,ie)=>{let re=[];ne.subscribe((0,Se._)(ie,(ne=>{re.push(ne),te<re.length&&re.shift()}),(()=>{for(const te of re)ie.next(te);ie.complete()}),void 0,(()=>{re=null})))}))}var $e=ie(5017),qe=ie(9220);var Ye=ie(6590),Xe=ie(4447),Ke=ie(5424),Qe=ie(1890),Je=ie(6388);const dt="primary",pt=Symbol("RouteTitle");class ParamsAsMap{constructor(te){this.params=te||{}}has(te){return Object.prototype.hasOwnProperty.call(this.params,te)}get(te){if(this.has(te)){const ne=this.params[te];return Array.isArray(ne)?ne[0]:ne}return null}getAll(te){if(this.has(te)){const ne=this.params[te];return Array.isArray(ne)?ne:[ne]}return[]}get keys(){return Object.keys(this.params)}}function convertToParamMap(te){return new ParamsAsMap(te)}function defaultUrlMatcher(te,ne,ie){const re=ie.path.split("/");if(re.length>te.length)return null;if("full"===ie.pathMatch&&(ne.hasChildren()||re.length<te.length))return null;const le={};for(let ne=0;ne<re.length;ne++){const ie=re[ne],ce=te[ne];if(ie.startsWith(":"))le[ie.substring(1)]=ce;else if(ie!==ce.path)return null}return{consumed:te.slice(0,re.length),posParams:le}}function shallowEqual(te,ne){const ie=te?getDataKeys(te):void 0,re=ne?getDataKeys(ne):void 0;if(!ie||!re||ie.length!=re.length)return!1;let le;for(let re=0;re<ie.length;re++)if(le=ie[re],!equalArraysOrString(te[le],ne[le]))return!1;return!0}function getDataKeys(te){return[...Object.keys(te),...Object.getOwnPropertySymbols(te)]}function equalArraysOrString(te,ne){if(Array.isArray(te)&&Array.isArray(ne)){if(te.length!==ne.length)return!1;const ie=[...te].sort(),re=[...ne].sort();return ie.every(((te,ne)=>re[ne]===te))}return te===ne}function router_last(te){return te.length>0?te[te.length-1]:null}function wrapIntoObservable(te){return function isObservable(te){return!!te&&(te instanceof le.c||(0,ce.T)(te.lift)&&(0,ce.T)(te.subscribe))}(te)?te:(0,re.jNT)(te)?(0,de.H)(Promise.resolve(te)):(0,ue.of)(te)}const Ct={exact:function equalSegmentGroups(te,ne,ie){if(!equalPath(te.segments,ne.segments))return!1;if(!matrixParamsMatch(te.segments,ne.segments,ie))return!1;if(te.numberOfChildren!==ne.numberOfChildren)return!1;for(const re in ne.children){if(!te.children[re])return!1;if(!equalSegmentGroups(te.children[re],ne.children[re],ie))return!1}return!0},subset:containsSegmentGroup},vt={exact:function equalParams(te,ne){return shallowEqual(te,ne)},subset:function containsParams(te,ne){return Object.keys(ne).length<=Object.keys(te).length&&Object.keys(ne).every((ie=>equalArraysOrString(te[ie],ne[ie])))},ignored:()=>!0};function containsTree(te,ne,ie){return Ct[ie.paths](te.root,ne.root,ie.matrixParams)&&vt[ie.queryParams](te.queryParams,ne.queryParams)&&!("exact"===ie.fragment&&te.fragment!==ne.fragment)}function containsSegmentGroup(te,ne,ie){return containsSegmentGroupHelper(te,ne,ne.segments,ie)}function containsSegmentGroupHelper(te,ne,ie,re){if(te.segments.length>ie.length){const le=te.segments.slice(0,ie.length);return!!equalPath(le,ie)&&(!ne.hasChildren()&&!!matrixParamsMatch(le,ie,re))}if(te.segments.length===ie.length){if(!equalPath(te.segments,ie))return!1;if(!matrixParamsMatch(te.segments,ie,re))return!1;for(const ie in ne.children){if(!te.children[ie])return!1;if(!containsSegmentGroup(te.children[ie],ne.children[ie],re))return!1}return!0}{const le=ie.slice(0,te.segments.length),ce=ie.slice(te.segments.length);return!!equalPath(te.segments,le)&&(!!matrixParamsMatch(te.segments,le,re)&&(!!te.children[dt]&&containsSegmentGroupHelper(te.children[dt],ne,ce,re)))}}function matrixParamsMatch(te,ne,ie){return ne.every(((ne,re)=>vt[ie](te[re].parameters,ne.parameters)))}class UrlTree{constructor(te=new UrlSegmentGroup([],{}),ne={},ie=null){if(this.root=te,this.queryParams=ne,this.fragment=ie,te.segments.length>0)throw new re.wOt(4015,"The root `UrlSegmentGroup` should not contain `segments`. Instead, these segments belong in the `children` so they can be associated with a named outlet.")}get queryParamMap(){return this._queryParamMap??=convertToParamMap(this.queryParams),this._queryParamMap}toString(){return Dt.serialize(this)}}class UrlSegmentGroup{constructor(te,ne){this.segments=te,this.children=ne,this.parent=null,Object.values(ne).forEach((te=>te.parent=this))}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return serializePaths(this)}}class UrlSegment{constructor(te,ne){this.path=te,this.parameters=ne}get parameterMap(){return this._parameterMap??=convertToParamMap(this.parameters),this._parameterMap}toString(){return serializePath(this)}}function equalPath(te,ne){return te.length===ne.length&&te.every(((te,ie)=>te.path===ne[ie].path))}let It=(()=>{class UrlSerializer{static#e=this.ɵfac=function UrlSerializer_Factory(te){return new(te||UrlSerializer)};static#t=this.ɵprov=re.jDH({token:UrlSerializer,factory:()=>new DefaultUrlSerializer,providedIn:"root"})}return UrlSerializer})();class DefaultUrlSerializer{parse(te){const ne=new UrlParser(te);return new UrlTree(ne.parseRootSegment(),ne.parseQueryParams(),ne.parseFragment())}serialize(te){return`${`/${serializeSegment(te.root,!0)}`}${function serializeQueryParams(te){const ne=Object.entries(te).map((([te,ne])=>Array.isArray(ne)?ne.map((ne=>`${encodeUriQuery(te)}=${encodeUriQuery(ne)}`)).join("&"):`${encodeUriQuery(te)}=${encodeUriQuery(ne)}`)).filter((te=>te));return ne.length?`?${ne.join("&")}`:""}(te.queryParams)}${"string"==typeof te.fragment?`#${function encodeUriFragment(te){return encodeURI(te)}(te.fragment)}`:""}`}}const Dt=new DefaultUrlSerializer;function serializePaths(te){return te.segments.map((te=>serializePath(te))).join("/")}function serializeSegment(te,ne){if(!te.hasChildren())return serializePaths(te);if(ne){const ne=te.children[dt]?serializeSegment(te.children[dt],!1):"",ie=[];return Object.entries(te.children).forEach((([te,ne])=>{te!==dt&&ie.push(`${te}:${serializeSegment(ne,!1)}`)})),ie.length>0?`${ne}(${ie.join("//")})`:ne}{const ne=function mapChildrenIntoArray(te,ne){let ie=[];return Object.entries(te.children).forEach((([te,re])=>{te===dt&&(ie=ie.concat(ne(re,te)))})),Object.entries(te.children).forEach((([te,re])=>{te!==dt&&(ie=ie.concat(ne(re,te)))})),ie}(te,((ne,ie)=>ie===dt?[serializeSegment(te.children[dt],!1)]:[`${ie}:${serializeSegment(ne,!1)}`]));return 1===Object.keys(te.children).length&&null!=te.children[dt]?`${serializePaths(te)}/${ne[0]}`:`${serializePaths(te)}/(${ne.join("//")})`}}function encodeUriString(te){return encodeURIComponent(te).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function encodeUriQuery(te){return encodeUriString(te).replace(/%3B/gi,";")}function encodeUriSegment(te){return encodeUriString(te).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function decode(te){return decodeURIComponent(te)}function decodeQuery(te){return decode(te.replace(/\+/g,"%20"))}function serializePath(te){return`${encodeUriSegment(te.path)}${function serializeMatrixParams(te){return Object.entries(te).map((([te,ne])=>`;${encodeUriSegment(te)}=${encodeUriSegment(ne)}`)).join("")}(te.parameters)}`}const Mt=/^[^\/()?;#]+/;function matchSegments(te){const ne=te.match(Mt);return ne?ne[0]:""}const Nt=/^[^\/()?;=#]+/;const Rt=/^[^=?&#]+/;const Ot=/^[^&#]+/;class UrlParser{constructor(te){this.url=te,this.remaining=te}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new UrlSegmentGroup([],{}):new UrlSegmentGroup([],this.parseChildren())}parseQueryParams(){const te={};if(this.consumeOptional("?"))do{this.parseQueryParam(te)}while(this.consumeOptional("&"));return te}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const te=[];for(this.peekStartsWith("(")||te.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),te.push(this.parseSegment());let ne={};this.peekStartsWith("/(")&&(this.capture("/"),ne=this.parseParens(!0));let ie={};return this.peekStartsWith("(")&&(ie=this.parseParens(!1)),(te.length>0||Object.keys(ne).length>0)&&(ie[dt]=new UrlSegmentGroup(te,ne)),ie}parseSegment(){const te=matchSegments(this.remaining);if(""===te&&this.peekStartsWith(";"))throw new re.wOt(4009,`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(te),new UrlSegment(decode(te),this.parseMatrixParams())}parseMatrixParams(){const te={};for(;this.consumeOptional(";");)this.parseParam(te);return te}parseParam(te){const ne=function matchMatrixKeySegments(te){const ne=te.match(Nt);return ne?ne[0]:""}(this.remaining);if(!ne)return;this.capture(ne);let ie="";if(this.consumeOptional("=")){const te=matchSegments(this.remaining);te&&(ie=te,this.capture(ie))}te[decode(ne)]=decode(ie)}parseQueryParam(te){const ne=function matchQueryParams(te){const ne=te.match(Rt);return ne?ne[0]:""}(this.remaining);if(!ne)return;this.capture(ne);let ie="";if(this.consumeOptional("=")){const te=function matchUrlQueryParamValue(te){const ne=te.match(Ot);return ne?ne[0]:""}(this.remaining);te&&(ie=te,this.capture(ie))}const re=decodeQuery(ne),le=decodeQuery(ie);if(te.hasOwnProperty(re)){let ne=te[re];Array.isArray(ne)||(ne=[ne],te[re]=ne),ne.push(le)}else te[re]=le}parseParens(te){const ne={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ie=matchSegments(this.remaining),le=this.remaining[ie.length];if("/"!==le&&")"!==le&&";"!==le)throw new re.wOt(4010,`Cannot parse url '${this.url}'`);let ce;ie.indexOf(":")>-1?(ce=ie.slice(0,ie.indexOf(":")),this.capture(ce),this.capture(":")):te&&(ce=dt);const de=this.parseChildren();ne[ce]=1===Object.keys(de).length?de[dt]:new UrlSegmentGroup([],de),this.consumeOptional("//")}return ne}peekStartsWith(te){return this.remaining.startsWith(te)}consumeOptional(te){return!!this.peekStartsWith(te)&&(this.remaining=this.remaining.substring(te.length),!0)}capture(te){if(!this.consumeOptional(te))throw new re.wOt(4011,`Expected "${te}".`)}}function createRoot(te){return te.segments.length>0?new UrlSegmentGroup([],{[dt]:te}):te}function squashSegmentGroup(te){const ne={};for(const[ie,re]of Object.entries(te.children)){const te=squashSegmentGroup(re);if(ie===dt&&0===te.segments.length&&te.hasChildren())for(const[ie,re]of Object.entries(te.children))ne[ie]=re;else(te.segments.length>0||te.hasChildren())&&(ne[ie]=te)}return function mergeTrivialChildren(te){if(1===te.numberOfChildren&&te.children[dt]){const ne=te.children[dt];return new UrlSegmentGroup(te.segments.concat(ne.segments),ne.children)}return te}(new UrlSegmentGroup(te.segments,ne))}function isUrlTree(te){return te instanceof UrlTree}function createSegmentGroupFromRoute(te){let ne;const ie=function createSegmentGroupFromRouteRecursive(ie){const re={};for(const te of ie.children){const ne=createSegmentGroupFromRouteRecursive(te);re[te.outlet]=ne}const le=new UrlSegmentGroup(ie.url,re);return ie===te&&(ne=le),le}(te.root),re=createRoot(ie);return ne??re}function createUrlTreeFromSegmentGroup(te,ne,ie,le){let ce=te;for(;ce.parent;)ce=ce.parent;if(0===ne.length)return tree(ce,ce,ce,ie,le);const de=function computeNavigation(te){if("string"==typeof te[0]&&1===te.length&&"/"===te[0])return new Navigation(!0,0,te);let ne=0,ie=!1;const re=te.reduce(((te,re,le)=>{if("object"==typeof re&&null!=re){if(re.outlets){const ne={};return Object.entries(re.outlets).forEach((([te,ie])=>{ne[te]="string"==typeof ie?ie.split("/"):ie})),[...te,{outlets:ne}]}if(re.segmentPath)return[...te,re.segmentPath]}return"string"!=typeof re?[...te,re]:0===le?(re.split("/").forEach(((re,le)=>{0==le&&"."===re||(0==le&&""===re?ie=!0:".."===re?ne++:""!=re&&te.push(re))})),te):[...te,re]}),[]);return new Navigation(ie,ne,re)}(ne);if(de.toRoot())return tree(ce,ce,new UrlSegmentGroup([],{}),ie,le);const ue=function findStartingPositionForTargetGroup(te,ne,ie){if(te.isAbsolute)return new Position(ne,!0,0);if(!ie)return new Position(ne,!1,NaN);if(null===ie.parent)return new Position(ie,!0,0);const le=isMatrixParams(te.commands[0])?0:1,ce=ie.segments.length-1+le;return function createPositionApplyingDoubleDots(te,ne,ie){let le=te,ce=ne,de=ie;for(;de>ce;){if(de-=ce,le=le.parent,!le)throw new re.wOt(4005,"Invalid number of '../'");ce=le.segments.length}return new Position(le,!1,ce-de)}(ie,ce,te.numberOfDoubleDots)}(de,ce,te),me=ue.processChildren?updateSegmentGroupChildren(ue.segmentGroup,ue.index,de.commands):updateSegmentGroup(ue.segmentGroup,ue.index,de.commands);return tree(ce,ue.segmentGroup,me,ie,le)}function isMatrixParams(te){return"object"==typeof te&&null!=te&&!te.outlets&&!te.segmentPath}function isCommandWithOutlets(te){return"object"==typeof te&&null!=te&&te.outlets}function tree(te,ne,ie,re,le){let ce,de={};re&&Object.entries(re).forEach((([te,ne])=>{de[te]=Array.isArray(ne)?ne.map((te=>`${te}`)):`${ne}`})),ce=te===ne?ie:replaceSegment(te,ne,ie);const ue=createRoot(squashSegmentGroup(ce));return new UrlTree(ue,de,le)}function replaceSegment(te,ne,ie){const re={};return Object.entries(te.children).forEach((([te,le])=>{re[te]=le===ne?ie:replaceSegment(le,ne,ie)})),new UrlSegmentGroup(te.segments,re)}class Navigation{constructor(te,ne,ie){if(this.isAbsolute=te,this.numberOfDoubleDots=ne,this.commands=ie,te&&ie.length>0&&isMatrixParams(ie[0]))throw new re.wOt(4003,"Root segment cannot have matrix parameters");const le=ie.find(isCommandWithOutlets);if(le&&le!==router_last(ie))throw new re.wOt(4004,"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Position{constructor(te,ne,ie){this.segmentGroup=te,this.processChildren=ne,this.index=ie}}function updateSegmentGroup(te,ne,ie){if(te??=new UrlSegmentGroup([],{}),0===te.segments.length&&te.hasChildren())return updateSegmentGroupChildren(te,ne,ie);const re=function prefixedWith(te,ne,ie){let re=0,le=ne;const ce={match:!1,pathIndex:0,commandIndex:0};for(;le<te.segments.length;){if(re>=ie.length)return ce;const ne=te.segments[le],de=ie[re];if(isCommandWithOutlets(de))break;const ue=`${de}`,me=re<ie.length-1?ie[re+1]:null;if(le>0&&void 0===ue)break;if(ue&&me&&"object"==typeof me&&void 0===me.outlets){if(!compare(ue,me,ne))return ce;re+=2}else{if(!compare(ue,{},ne))return ce;re++}le++}return{match:!0,pathIndex:le,commandIndex:re}}(te,ne,ie),le=ie.slice(re.commandIndex);if(re.match&&re.pathIndex<te.segments.length){const ne=new UrlSegmentGroup(te.segments.slice(0,re.pathIndex),{});return ne.children[dt]=new UrlSegmentGroup(te.segments.slice(re.pathIndex),te.children),updateSegmentGroupChildren(ne,0,le)}return re.match&&0===le.length?new UrlSegmentGroup(te.segments,{}):re.match&&!te.hasChildren()?createNewSegmentGroup(te,ne,ie):re.match?updateSegmentGroupChildren(te,0,le):createNewSegmentGroup(te,ne,ie)}function updateSegmentGroupChildren(te,ne,ie){if(0===ie.length)return new UrlSegmentGroup(te.segments,{});{const re=function getOutlets(te){return isCommandWithOutlets(te[0])?te[0].outlets:{[dt]:te}}(ie),le={};if(Object.keys(re).some((te=>te!==dt))&&te.children[dt]&&1===te.numberOfChildren&&0===te.children[dt].segments.length){const re=updateSegmentGroupChildren(te.children[dt],ne,ie);return new UrlSegmentGroup(te.segments,re.children)}return Object.entries(re).forEach((([ie,re])=>{"string"==typeof re&&(re=[re]),null!==re&&(le[ie]=updateSegmentGroup(te.children[ie],ne,re))})),Object.entries(te.children).forEach((([te,ne])=>{void 0===re[te]&&(le[te]=ne)})),new UrlSegmentGroup(te.segments,le)}}function createNewSegmentGroup(te,ne,ie){const re=te.segments.slice(0,ne);let le=0;for(;le<ie.length;){const ce=ie[le];if(isCommandWithOutlets(ce)){const te=createNewSegmentChildren(ce.outlets);return new UrlSegmentGroup(re,te)}if(0===le&&isMatrixParams(ie[0])){const ce=te.segments[ne];re.push(new UrlSegment(ce.path,stringify(ie[0]))),le++;continue}const de=isCommandWithOutlets(ce)?ce.outlets[dt]:`${ce}`,ue=le<ie.length-1?ie[le+1]:null;de&&ue&&isMatrixParams(ue)?(re.push(new UrlSegment(de,stringify(ue))),le+=2):(re.push(new UrlSegment(de,{})),le++)}return new UrlSegmentGroup(re,{})}function createNewSegmentChildren(te){const ne={};return Object.entries(te).forEach((([te,ie])=>{"string"==typeof ie&&(ie=[ie]),null!==ie&&(ne[te]=createNewSegmentGroup(new UrlSegmentGroup([],{}),0,ie))})),ne}function stringify(te){const ne={};return Object.entries(te).forEach((([te,ie])=>ne[te]=`${ie}`)),ne}function compare(te,ne,ie){return te==ie.path&&shallowEqual(ne,ie.parameters)}const Vt="imperative";var Gt=function(te){return te[te.NavigationStart=0]="NavigationStart",te[te.NavigationEnd=1]="NavigationEnd",te[te.NavigationCancel=2]="NavigationCancel",te[te.NavigationError=3]="NavigationError",te[te.RoutesRecognized=4]="RoutesRecognized",te[te.ResolveStart=5]="ResolveStart",te[te.ResolveEnd=6]="ResolveEnd",te[te.GuardsCheckStart=7]="GuardsCheckStart",te[te.GuardsCheckEnd=8]="GuardsCheckEnd",te[te.RouteConfigLoadStart=9]="RouteConfigLoadStart",te[te.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",te[te.ChildActivationStart=11]="ChildActivationStart",te[te.ChildActivationEnd=12]="ChildActivationEnd",te[te.ActivationStart=13]="ActivationStart",te[te.ActivationEnd=14]="ActivationEnd",te[te.Scroll=15]="Scroll",te[te.NavigationSkipped=16]="NavigationSkipped",te}(Gt||{});class RouterEvent{constructor(te,ne){this.id=te,this.url=ne}}class NavigationStart extends RouterEvent{constructor(te,ne,ie="imperative",re=null){super(te,ne),this.type=Gt.NavigationStart,this.navigationTrigger=ie,this.restoredState=re}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class NavigationEnd extends RouterEvent{constructor(te,ne,ie){super(te,ne),this.urlAfterRedirects=ie,this.type=Gt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var zt=function(te){return te[te.Redirect=0]="Redirect",te[te.SupersededByNewNavigation=1]="SupersededByNewNavigation",te[te.NoDataFromResolver=2]="NoDataFromResolver",te[te.GuardRejected=3]="GuardRejected",te}(zt||{}),Ht=function(te){return te[te.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",te[te.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",te}(Ht||{});class NavigationCancel extends RouterEvent{constructor(te,ne,ie,re){super(te,ne),this.reason=ie,this.code=re,this.type=Gt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class NavigationSkipped extends RouterEvent{constructor(te,ne,ie,re){super(te,ne),this.reason=ie,this.code=re,this.type=Gt.NavigationSkipped}}class NavigationError extends RouterEvent{constructor(te,ne,ie,re){super(te,ne),this.error=ie,this.target=re,this.type=Gt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class RoutesRecognized extends RouterEvent{constructor(te,ne,ie,re){super(te,ne),this.urlAfterRedirects=ie,this.state=re,this.type=Gt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class GuardsCheckStart extends RouterEvent{constructor(te,ne,ie,re){super(te,ne),this.urlAfterRedirects=ie,this.state=re,this.type=Gt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class GuardsCheckEnd extends RouterEvent{constructor(te,ne,ie,re,le){super(te,ne),this.urlAfterRedirects=ie,this.state=re,this.shouldActivate=le,this.type=Gt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ResolveStart extends RouterEvent{constructor(te,ne,ie,re){super(te,ne),this.urlAfterRedirects=ie,this.state=re,this.type=Gt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ResolveEnd extends RouterEvent{constructor(te,ne,ie,re){super(te,ne),this.urlAfterRedirects=ie,this.state=re,this.type=Gt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class RouteConfigLoadStart{constructor(te){this.route=te,this.type=Gt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class RouteConfigLoadEnd{constructor(te){this.route=te,this.type=Gt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ChildActivationStart{constructor(te){this.snapshot=te,this.type=Gt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ChildActivationEnd{constructor(te){this.snapshot=te,this.type=Gt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ActivationStart{constructor(te){this.snapshot=te,this.type=Gt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ActivationEnd{constructor(te){this.snapshot=te,this.type=Gt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Scroll{constructor(te,ne,ie){this.routerEvent=te,this.position=ne,this.anchor=ie,this.type=Gt.Scroll}toString(){const te=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${te}')`}}class BeforeActivateRoutes{}class RedirectRequest{constructor(te){this.url=te}}class OutletContext{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ut,this.attachRef=null}}let Ut=(()=>{class ChildrenOutletContexts{constructor(){this.contexts=new Map}onChildOutletCreated(te,ne){const ie=this.getOrCreateContext(te);ie.outlet=ne,this.contexts.set(te,ie)}onChildOutletDestroyed(te){const ne=this.getContext(te);ne&&(ne.outlet=null,ne.attachRef=null)}onOutletDeactivated(){const te=this.contexts;return this.contexts=new Map,te}onOutletReAttached(te){this.contexts=te}getOrCreateContext(te){let ne=this.getContext(te);return ne||(ne=new OutletContext,this.contexts.set(te,ne)),ne}getContext(te){return this.contexts.get(te)||null}static#e=this.ɵfac=function ChildrenOutletContexts_Factory(te){return new(te||ChildrenOutletContexts)};static#t=this.ɵprov=re.jDH({token:ChildrenOutletContexts,factory:ChildrenOutletContexts.ɵfac,providedIn:"root"})}return ChildrenOutletContexts})();class Tree{constructor(te){this._root=te}get root(){return this._root.value}parent(te){const ne=this.pathFromRoot(te);return ne.length>1?ne[ne.length-2]:null}children(te){const ne=findNode(te,this._root);return ne?ne.children.map((te=>te.value)):[]}firstChild(te){const ne=findNode(te,this._root);return ne&&ne.children.length>0?ne.children[0].value:null}siblings(te){const ne=findPath(te,this._root);if(ne.length<2)return[];return ne[ne.length-2].children.map((te=>te.value)).filter((ne=>ne!==te))}pathFromRoot(te){return findPath(te,this._root).map((te=>te.value))}}function findNode(te,ne){if(te===ne.value)return ne;for(const ie of ne.children){const ne=findNode(te,ie);if(ne)return ne}return null}function findPath(te,ne){if(te===ne.value)return[ne];for(const ie of ne.children){const re=findPath(te,ie);if(re.length)return re.unshift(ne),re}return[]}class TreeNode{constructor(te,ne){this.value=te,this.children=ne}toString(){return`TreeNode(${this.value})`}}function nodeChildrenAsMap(te){const ne={};return te&&te.children.forEach((te=>ne[te.value.outlet]=te)),ne}class RouterState extends Tree{constructor(te,ne){super(te),this.snapshot=ne,setRouterState(this,te)}toString(){return this.snapshot.toString()}}function createEmptyState(te){const ne=function createEmptyStateSnapshot(te){const ne={},ie={},re={},le="",ce=new ActivatedRouteSnapshot([],ne,re,le,ie,dt,te,null,{});return new RouterStateSnapshot("",new TreeNode(ce,[]))}(te),ie=new me.t([new UrlSegment("",{})]),re=new me.t({}),le=new me.t({}),ce=new me.t({}),de=new me.t(""),ue=new ActivatedRoute(ie,re,ce,de,le,dt,te,ne.root);return ue.snapshot=ne.root,new RouterState(new TreeNode(ue,[]),ne)}class ActivatedRoute{constructor(te,ne,ie,re,le,ce,de,me){this.urlSubject=te,this.paramsSubject=ne,this.queryParamsSubject=ie,this.fragmentSubject=re,this.dataSubject=le,this.outlet=ce,this.component=de,this._futureSnapshot=me,this.title=this.dataSubject?.pipe((0,Me.T)((te=>te[pt])))??(0,ue.of)(void 0),this.url=te,this.params=ne,this.queryParams=ie,this.fragment=re,this.data=le}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.params.pipe((0,Me.T)((te=>convertToParamMap(te)))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,Me.T)((te=>convertToParamMap(te)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function getInherited(te,ne,ie="emptyOnly"){let re;const{routeConfig:le}=te;return re=null===ne||"always"!==ie&&""!==le?.path&&(ne.component||ne.routeConfig?.loadComponent)?{params:{...te.params},data:{...te.data},resolve:{...te.data,...te._resolvedData??{}}}:{params:{...ne.params,...te.params},data:{...ne.data,...te.data},resolve:{...te.data,...ne.data,...le?.data,...te._resolvedData}},le&&hasStaticTitle(le)&&(re.resolve[pt]=le.title),re}class ActivatedRouteSnapshot{get title(){return this.data?.[pt]}constructor(te,ne,ie,re,le,ce,de,ue,me){this.url=te,this.params=ne,this.queryParams=ie,this.fragment=re,this.data=le,this.outlet=ce,this.component=de,this.routeConfig=ue,this._resolve=me}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??=convertToParamMap(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=convertToParamMap(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map((te=>te.toString())).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class RouterStateSnapshot extends Tree{constructor(te,ne){super(ne),this.url=te,setRouterState(this,ne)}toString(){return serializeNode(this._root)}}function setRouterState(te,ne){ne.value._routerState=te,ne.children.forEach((ne=>setRouterState(te,ne)))}function serializeNode(te){const ne=te.children.length>0?` { ${te.children.map(serializeNode).join(", ")} } `:"";return`${te.value}${ne}`}function advanceActivatedRoute(te){if(te.snapshot){const ne=te.snapshot,ie=te._futureSnapshot;te.snapshot=ie,shallowEqual(ne.queryParams,ie.queryParams)||te.queryParamsSubject.next(ie.queryParams),ne.fragment!==ie.fragment&&te.fragmentSubject.next(ie.fragment),shallowEqual(ne.params,ie.params)||te.paramsSubject.next(ie.params),function shallowEqualArrays(te,ne){if(te.length!==ne.length)return!1;for(let ie=0;ie<te.length;++ie)if(!shallowEqual(te[ie],ne[ie]))return!1;return!0}(ne.url,ie.url)||te.urlSubject.next(ie.url),shallowEqual(ne.data,ie.data)||te.dataSubject.next(ie.data)}else te.snapshot=te._futureSnapshot,te.dataSubject.next(te._futureSnapshot.data)}function equalParamsAndUrlSegments(te,ne){const ie=shallowEqual(te.params,ne.params)&&function equalSegments(te,ne){return equalPath(te,ne)&&te.every(((te,ie)=>shallowEqual(te.parameters,ne[ie].parameters)))}(te.url,ne.url),re=!te.parent!=!ne.parent;return ie&&!re&&(!te.parent||equalParamsAndUrlSegments(te.parent,ne.parent))}function hasStaticTitle(te){return"string"==typeof te.title||null===te.title}let $t=(()=>{class RouterOutlet{constructor(){this.activated=null,this._activatedRoute=null,this.name=dt,this.activateEvents=new re.bkB,this.deactivateEvents=new re.bkB,this.attachEvents=new re.bkB,this.detachEvents=new re.bkB,this.parentContexts=(0,re.WQX)(Ut),this.location=(0,re.WQX)(re.c1b),this.changeDetector=(0,re.WQX)(re.gRc),this.environmentInjector=(0,re.WQX)(re.uvJ),this.inputBinder=(0,re.WQX)(Yt,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(te){if(te.name){const{firstChange:ne,previousValue:ie}=te.name;if(ne)return;this.isTrackedInParentContexts(ie)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ie)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(te){return this.parentContexts.getContext(te)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const te=this.parentContexts.getContext(this.name);te?.route&&(te.attachRef?this.attach(te.attachRef,te.route):this.activateWith(te.route,te.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new re.wOt(4012,"Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new re.wOt(4012,"Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new re.wOt(4012,"Outlet is not activated");this.location.detach();const te=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(te.instance),te}attach(te,ne){this.activated=te,this._activatedRoute=ne,this.location.insert(te.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(te.instance)}deactivate(){if(this.activated){const te=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(te)}}activateWith(te,ne){if(this.isActivated)throw new re.wOt(4013,"Cannot activate an already activated outlet");this._activatedRoute=te;const ie=this.location,le=te.snapshot.component,ce=this.parentContexts.getOrCreateContext(this.name).children,de=new OutletInjector(te,ce,ie.injector);this.activated=ie.createComponent(le,{index:ie.length,injector:de,environmentInjector:ne??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.ɵfac=function RouterOutlet_Factory(te){return new(te||RouterOutlet)};static#t=this.ɵdir=re.FsC({type:RouterOutlet,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[re.OA$]})}return RouterOutlet})();class OutletInjector{constructor(te,ne,ie){this.route=te,this.childContexts=ne,this.parent=ie}get(te,ne){return te===ActivatedRoute?this.route:te===Ut?this.childContexts:this.parent.get(te,ne)}}const Yt=new re.nKC("");let Wt=(()=>{class RoutedComponentInputBinder{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(te){this.unsubscribeFromRouteData(te),this.subscribeToRouteData(te)}unsubscribeFromRouteData(te){this.outletDataSubscriptions.get(te)?.unsubscribe(),this.outletDataSubscriptions.delete(te)}subscribeToRouteData(te){const{activatedRoute:ne}=te,ie=(0,ge.z)([ne.queryParams,ne.params,ne.data]).pipe((0,Ne.n)((([te,ne,ie],re)=>(ie={...te,...ne,...ie},0===re?(0,ue.of)(ie):Promise.resolve(ie))))).subscribe((ie=>{if(!te.isActivated||!te.activatedComponentRef||te.activatedRoute!==ne||null===ne.component)return void this.unsubscribeFromRouteData(te);const le=(0,re.HJs)(ne.component);if(le)for(const{templateName:ne}of le.inputs)te.activatedComponentRef.setInput(ne,ie[ne]);else this.unsubscribeFromRouteData(te)}));this.outletDataSubscriptions.set(te,ie)}static#e=this.ɵfac=function RoutedComponentInputBinder_Factory(te){return new(te||RoutedComponentInputBinder)};static#t=this.ɵprov=re.jDH({token:RoutedComponentInputBinder,factory:RoutedComponentInputBinder.ɵfac})}return RoutedComponentInputBinder})();function createNode(te,ne,ie){if(ie&&te.shouldReuseRoute(ne.value,ie.value.snapshot)){const re=ie.value;re._futureSnapshot=ne.value;const le=function createOrReuseChildren(te,ne,ie){return ne.children.map((ne=>{for(const re of ie.children)if(te.shouldReuseRoute(ne.value,re.value.snapshot))return createNode(te,ne,re);return createNode(te,ne)}))}(te,ne,ie);return new TreeNode(re,le)}{if(te.shouldAttach(ne.value)){const ie=te.retrieve(ne.value);if(null!==ie){const re=ie.route;return re.value._futureSnapshot=ne.value,re.children=ne.children.map((ne=>createNode(te,ne))),re}}const ie=function createActivatedRoute(te){return new ActivatedRoute(new me.t(te.url),new me.t(te.params),new me.t(te.queryParams),new me.t(te.fragment),new me.t(te.data),te.outlet,te.component,te)}(ne.value),re=ne.children.map((ne=>createNode(te,ne)));return new TreeNode(ie,re)}}const Kt="ngNavigationCancelingError";function redirectingNavigationError(te,ne){const{redirectTo:ie,navigationBehaviorOptions:re}=isUrlTree(ne)?{redirectTo:ne,navigationBehaviorOptions:void 0}:ne,le=navigationCancelingError(void 0,zt.Redirect);return le.url=ie,le.navigationBehaviorOptions=re,le}function navigationCancelingError(te,ne){const ie=new Error(`NavigationCancelingError: ${te||""}`);return ie[Kt]=!0,ie.cancellationCode=ne,ie}function isNavigationCancelingError(te){return!!te&&te[Kt]}let Qt=(()=>{class ɵEmptyOutletComponent{static#e=this.ɵfac=function ɵEmptyOutletComponent_Factory(te){return new(te||ɵEmptyOutletComponent)};static#t=this.ɵcmp=re.VBU({type:ɵEmptyOutletComponent,selectors:[["ng-component"]],standalone:!0,features:[re.aNF],decls:1,vars:0,template:function ɵEmptyOutletComponent_Template(te,ne){1&te&&re.nrm(0,"router-outlet")},dependencies:[$t],encapsulation:2})}return ɵEmptyOutletComponent})();function validateConfig(te,ne="",ie=!1){for(let re=0;re<te.length;re++){const le=te[re];validateNode(le,getFullPath(ne,le),ie)}}function assertStandalone(te,ne){if(ne&&(0,re.plB)(ne))throw new re.wOt(4014,`Invalid configuration of route '${te}'. You are using 'loadComponent' with a module, but it must be used with standalone components. Use 'loadChildren' instead.`);if(ne&&!(0,re.QuC)(ne))throw new re.wOt(4014,`Invalid configuration of route '${te}'. The component must be standalone.`)}function validateNode(te,ne,ie){if(!te)throw new re.wOt(4014,`\n      Invalid configuration of route '${ne}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(te))throw new re.wOt(4014,`Invalid configuration of route '${ne}': Array cannot be specified`);if(!te.redirectTo&&!te.component&&!te.loadComponent&&!te.children&&!te.loadChildren&&te.outlet&&te.outlet!==dt)throw new re.wOt(4014,`Invalid configuration of route '${ne}': a componentless route without children or loadChildren cannot have a named outlet set`);if(te.redirectTo&&te.children)throw new re.wOt(4014,`Invalid configuration of route '${ne}': redirectTo and children cannot be used together`);if(te.redirectTo&&te.loadChildren)throw new re.wOt(4014,`Invalid configuration of route '${ne}': redirectTo and loadChildren cannot be used together`);if(te.children&&te.loadChildren)throw new re.wOt(4014,`Invalid configuration of route '${ne}': children and loadChildren cannot be used together`);if(te.redirectTo&&(te.component||te.loadComponent))throw new re.wOt(4014,`Invalid configuration of route '${ne}': redirectTo and component/loadComponent cannot be used together`);if(te.component&&te.loadComponent)throw new re.wOt(4014,`Invalid configuration of route '${ne}': component and loadComponent cannot be used together`);if(te.redirectTo&&te.canActivate)throw new re.wOt(4014,`Invalid configuration of route '${ne}': redirectTo and canActivate cannot be used together. Redirects happen before activation so canActivate will never be executed.`);if(te.path&&te.matcher)throw new re.wOt(4014,`Invalid configuration of route '${ne}': path and matcher cannot be used together`);if(!(void 0!==te.redirectTo||te.component||te.loadComponent||te.children||te.loadChildren))throw new re.wOt(4014,`Invalid configuration of route '${ne}'. One of the following must be provided: component, loadComponent, redirectTo, children or loadChildren`);if(void 0===te.path&&void 0===te.matcher)throw new re.wOt(4014,`Invalid configuration of route '${ne}': routes must have either a path or a matcher specified`);if("string"==typeof te.path&&"/"===te.path.charAt(0))throw new re.wOt(4014,`Invalid configuration of route '${ne}': path cannot start with a slash`);if(""===te.path&&void 0!==te.redirectTo&&void 0===te.pathMatch){const ie="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new re.wOt(4014,`Invalid configuration of route '{path: "${ne}", redirectTo: "${te.redirectTo}"}': please provide 'pathMatch'. ${ie}`)}ie&&assertStandalone(ne,te.component),te.children&&validateConfig(te.children,ne,ie)}function getFullPath(te,ne){return ne?te||ne.path?te&&!ne.path?`${te}/`:!te&&ne.path?ne.path:`${te}/${ne.path}`:"":te}function standardizeConfig(te){const ne=te.children&&te.children.map(standardizeConfig),ie=ne?{...te,children:ne}:{...te};return ie.component||ie.loadComponent||!ne&&!ie.loadChildren||!ie.outlet||ie.outlet===dt||(ie.component=Qt),ie}function getOutlet(te){return te.outlet||dt}function getClosestRouteInjector(te){if(!te)return null;if(te.routeConfig?._injector)return te.routeConfig._injector;for(let ne=te.parent;ne;ne=ne.parent){const te=ne.routeConfig;if(te?._loadedInjector)return te._loadedInjector;if(te?._injector)return te._injector}return null}let Jt=!1;class ActivateRoutes{constructor(te,ne,ie,re,le){this.routeReuseStrategy=te,this.futureState=ne,this.currState=ie,this.forwardEvent=re,this.inputBindingEnabled=le}activate(te){const ne=this.futureState._root,ie=this.currState?this.currState._root:null;this.deactivateChildRoutes(ne,ie,te),advanceActivatedRoute(this.futureState.root),this.activateChildRoutes(ne,ie,te)}deactivateChildRoutes(te,ne,ie){const re=nodeChildrenAsMap(ne);te.children.forEach((te=>{const ne=te.value.outlet;this.deactivateRoutes(te,re[ne],ie),delete re[ne]})),Object.values(re).forEach((te=>{this.deactivateRouteAndItsChildren(te,ie)}))}deactivateRoutes(te,ne,ie){const re=te.value,le=ne?ne.value:null;if(re===le)if(re.component){const le=ie.getContext(re.outlet);le&&this.deactivateChildRoutes(te,ne,le.children)}else this.deactivateChildRoutes(te,ne,ie);else le&&this.deactivateRouteAndItsChildren(ne,ie)}deactivateRouteAndItsChildren(te,ne){te.value.component&&this.routeReuseStrategy.shouldDetach(te.value.snapshot)?this.detachAndStoreRouteSubtree(te,ne):this.deactivateRouteAndOutlet(te,ne)}detachAndStoreRouteSubtree(te,ne){const ie=ne.getContext(te.value.outlet),re=ie&&te.value.component?ie.children:ne,le=nodeChildrenAsMap(te);for(const te of Object.values(le))this.deactivateRouteAndItsChildren(te,re);if(ie&&ie.outlet){const ne=ie.outlet.detach(),re=ie.children.onOutletDeactivated();this.routeReuseStrategy.store(te.value.snapshot,{componentRef:ne,route:te,contexts:re})}}deactivateRouteAndOutlet(te,ne){const ie=ne.getContext(te.value.outlet),re=ie&&te.value.component?ie.children:ne,le=nodeChildrenAsMap(te);for(const te of Object.values(le))this.deactivateRouteAndItsChildren(te,re);ie&&(ie.outlet&&(ie.outlet.deactivate(),ie.children.onOutletDeactivated()),ie.attachRef=null,ie.route=null)}activateChildRoutes(te,ne,ie){const re=nodeChildrenAsMap(ne);te.children.forEach((te=>{this.activateRoutes(te,re[te.value.outlet],ie),this.forwardEvent(new ActivationEnd(te.value.snapshot))})),te.children.length&&this.forwardEvent(new ChildActivationEnd(te.value.snapshot))}activateRoutes(te,ne,ie){const re=te.value,le=ne?ne.value:null;if(advanceActivatedRoute(re),re===le)if(re.component){const le=ie.getOrCreateContext(re.outlet);this.activateChildRoutes(te,ne,le.children)}else this.activateChildRoutes(te,ne,ie);else if(re.component){const ne=ie.getOrCreateContext(re.outlet);if(this.routeReuseStrategy.shouldAttach(re.snapshot)){const ie=this.routeReuseStrategy.retrieve(re.snapshot);this.routeReuseStrategy.store(re.snapshot,null),ne.children.onOutletReAttached(ie.contexts),ne.attachRef=ie.componentRef,ne.route=ie.route.value,ne.outlet&&ne.outlet.attach(ie.componentRef,ie.route.value),advanceActivatedRoute(ie.route.value),this.activateChildRoutes(te,null,ne.children)}else{const ie=getClosestRouteInjector(re.snapshot);ne.attachRef=null,ne.route=re,ne.injector=ie,ne.outlet&&ne.outlet.activateWith(re,ne.injector),this.activateChildRoutes(te,null,ne.children)}}else this.activateChildRoutes(te,null,ie);{const te=ie.getOrCreateContext(re.outlet).outlet;te&&this.inputBindingEnabled&&!te.supportsBindingToComponentInputs&&!Jt&&(console.warn("'withComponentInputBinding' feature is enabled but this application is using an outlet that may not support binding to component inputs."),Jt=!0)}}}class CanActivate{constructor(te){this.path=te,this.route=this.path[this.path.length-1]}}class CanDeactivate{constructor(te,ne){this.component=te,this.route=ne}}function getAllRouteGuards(te,ne,ie){const re=te._root;return getChildRouteGuards(re,ne?ne._root:null,ie,[re.value])}function getTokenOrFunctionIdentity(te,ne){const ie=Symbol(),le=ne.get(te,ie);return le===ie?"function"!=typeof te||(0,re.LfX)(te)?ne.get(te):te:le}function getChildRouteGuards(te,ne,ie,re,le={canDeactivateChecks:[],canActivateChecks:[]}){const ce=nodeChildrenAsMap(ne);return te.children.forEach((te=>{!function getRouteGuards(te,ne,ie,re,le={canDeactivateChecks:[],canActivateChecks:[]}){const ce=te.value,de=ne?ne.value:null,ue=ie?ie.getContext(te.value.outlet):null;if(de&&ce.routeConfig===de.routeConfig){const me=function shouldRunGuardsAndResolvers(te,ne,ie){if("function"==typeof ie)return ie(te,ne);switch(ie){case"pathParamsChange":return!equalPath(te.url,ne.url);case"pathParamsOrQueryParamsChange":return!equalPath(te.url,ne.url)||!shallowEqual(te.queryParams,ne.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!equalParamsAndUrlSegments(te,ne)||!shallowEqual(te.queryParams,ne.queryParams);default:return!equalParamsAndUrlSegments(te,ne)}}(de,ce,ce.routeConfig.runGuardsAndResolvers);me?le.canActivateChecks.push(new CanActivate(re)):(ce.data=de.data,ce._resolvedData=de._resolvedData),ce.component?getChildRouteGuards(te,ne,ue?ue.children:null,re,le):getChildRouteGuards(te,ne,ie,re,le),me&&ue&&ue.outlet&&ue.outlet.isActivated&&le.canDeactivateChecks.push(new CanDeactivate(ue.outlet.component,de))}else de&&deactivateRouteAndItsChildren(ne,ue,le),le.canActivateChecks.push(new CanActivate(re)),ce.component?getChildRouteGuards(te,null,ue?ue.children:null,re,le):getChildRouteGuards(te,null,ie,re,le);return le}(te,ce[te.value.outlet],ie,re.concat([te.value]),le),delete ce[te.value.outlet]})),Object.entries(ce).forEach((([te,ne])=>deactivateRouteAndItsChildren(ne,ie.getContext(te),le))),le}function deactivateRouteAndItsChildren(te,ne,ie){const re=nodeChildrenAsMap(te),le=te.value;Object.entries(re).forEach((([te,re])=>{le.component?deactivateRouteAndItsChildren(re,ne?ne.children.getContext(te):null,ie):deactivateRouteAndItsChildren(re,ne,ie)})),le.component&&ne&&ne.outlet&&ne.outlet.isActivated?ie.canDeactivateChecks.push(new CanDeactivate(ne.outlet.component,le)):ie.canDeactivateChecks.push(new CanDeactivate(null,le))}function router_isFunction(te){return"function"==typeof te}function isEmptyError(te){return te instanceof fe.G||"EmptyError"===te?.name}const Zt=Symbol("INITIAL_VALUE");function prioritizedGuardValue(){return(0,Ne.n)((te=>(0,ge.z)(te.map((te=>te.pipe((0,Re.s)(1),(0,Le.Z)(Zt))))).pipe((0,Me.T)((te=>{for(const ne of te)if(!0!==ne){if(ne===Zt)return Zt;if(!1===ne||ne instanceof UrlTree)return ne}return!0})),(0,Oe.p)((te=>te!==Zt)),(0,Re.s)(1))))}function checkGuards(te,ne){return(0,Pe.Z)((ie=>{const{targetSnapshot:le,currentSnapshot:ce,guards:{canActivateChecks:me,canDeactivateChecks:ge}}=ie;return 0===ge.length&&0===me.length?(0,ue.of)({...ie,guardsResult:!0}):function runCanDeactivateChecks(te,ne,ie,le){return(0,de.H)(te).pipe((0,Pe.Z)((te=>function runCanDeactivate(te,ne,ie,le,ce){const de=ne&&ne.routeConfig?ne.routeConfig.canDeactivate:null;if(!de||0===de.length)return(0,ue.of)(!0);const me=de.map((de=>{const ue=getClosestRouteInjector(ne)??ce,me=getTokenOrFunctionIdentity(de,ue);return wrapIntoObservable(function isCanDeactivate(te){return te&&router_isFunction(te.canDeactivate)}(me)?me.canDeactivate(te,ne,ie,le):(0,re.N4e)(ue,(()=>me(te,ne,ie,le)))).pipe((0,Fe.$)())}));return(0,ue.of)(me).pipe(prioritizedGuardValue())}(te.component,te.route,ie,ne,le))),(0,Fe.$)((te=>!0!==te),!0))}(ge,le,ce,te).pipe((0,Pe.Z)((ie=>ie&&function isBoolean(te){return"boolean"==typeof te}(ie)?function runCanActivateChecks(te,ne,ie,le){return(0,de.H)(ne).pipe((0,je.H)((ne=>(0,_e.x)(function fireChildActivationStart(te,ne){null!==te&&ne&&ne(new ChildActivationStart(te));return(0,ue.of)(!0)}(ne.route.parent,le),function fireActivationStart(te,ne){null!==te&&ne&&ne(new ActivationStart(te));return(0,ue.of)(!0)}(ne.route,le),function runCanActivateChild(te,ne,ie){const le=ne[ne.length-1],ce=ne.slice(0,ne.length-1).reverse().map((te=>function getCanActivateChild(te){const ne=te.routeConfig?te.routeConfig.canActivateChild:null;return ne&&0!==ne.length?{node:te,guards:ne}:null}(te))).filter((te=>null!==te)).map((ne=>(0,be.v)((()=>{const ce=ne.guards.map((ce=>{const de=getClosestRouteInjector(ne.node)??ie,ue=getTokenOrFunctionIdentity(ce,de);return wrapIntoObservable(function isCanActivateChild(te){return te&&router_isFunction(te.canActivateChild)}(ue)?ue.canActivateChild(le,te):(0,re.N4e)(de,(()=>ue(le,te)))).pipe((0,Fe.$)())}));return(0,ue.of)(ce).pipe(prioritizedGuardValue())}))));return(0,ue.of)(ce).pipe(prioritizedGuardValue())}(te,ne.path,ie),function runCanActivate(te,ne,ie){const le=ne.routeConfig?ne.routeConfig.canActivate:null;if(!le||0===le.length)return(0,ue.of)(!0);const ce=le.map((le=>(0,be.v)((()=>{const ce=getClosestRouteInjector(ne)??ie,de=getTokenOrFunctionIdentity(le,ce);return wrapIntoObservable(function isCanActivate(te){return te&&router_isFunction(te.canActivate)}(de)?de.canActivate(ne,te):(0,re.N4e)(ce,(()=>de(ne,te)))).pipe((0,Fe.$)())}))));return(0,ue.of)(ce).pipe(prioritizedGuardValue())}(te,ne.route,ie)))),(0,Fe.$)((te=>!0!==te),!0))}(le,me,te,ne):(0,ue.of)(ie))),(0,Me.T)((te=>({...ie,guardsResult:te}))))}))}function runCanLoadGuards(te,ne,ie,le){const ce=ne.canLoad;if(void 0===ce||0===ce.length)return(0,ue.of)(!0);const de=ce.map((le=>{const ce=getTokenOrFunctionIdentity(le,te);return wrapIntoObservable(function isCanLoad(te){return te&&router_isFunction(te.canLoad)}(ce)?ce.canLoad(ne,ie):(0,re.N4e)(te,(()=>ce(ne,ie))))}));return(0,ue.of)(de).pipe(prioritizedGuardValue(),redirectIfUrlTree(le))}function redirectIfUrlTree(te){return(0,Ce.F)((0,Ve.M)((te=>{if(isUrlTree(te))throw redirectingNavigationError(0,te)})),(0,Me.T)((te=>!0===te)))}function runCanMatchGuards(te,ne,ie,le){const ce=ne.canMatch;if(!ce||0===ce.length)return(0,ue.of)(!0);const de=ce.map((le=>{const ce=getTokenOrFunctionIdentity(le,te);return wrapIntoObservable(function isCanMatch(te){return te&&router_isFunction(te.canMatch)}(ce)?ce.canMatch(ne,ie):(0,re.N4e)(te,(()=>ce(ne,ie))))}));return(0,ue.of)(de).pipe(prioritizedGuardValue(),redirectIfUrlTree())}class NoMatch{constructor(te){this.segmentGroup=te||null}}class AbsoluteRedirect extends Error{constructor(te){super(),this.urlTree=te}}function noMatch$1(te){return throwError_throwError(new NoMatch(te))}class ApplyRedirects{constructor(te,ne){this.urlSerializer=te,this.urlTree=ne}lineralizeSegments(te,ne){let ie=[],le=ne.root;for(;;){if(ie=ie.concat(le.segments),0===le.numberOfChildren)return(0,ue.of)(ie);if(le.numberOfChildren>1||!le.children[dt])return ce=te.redirectTo,throwError_throwError(new re.wOt(4e3,`Only absolute redirects can have named outlets. redirectTo: '${ce}'`));le=le.children[dt]}var ce}applyRedirectCommands(te,ne,ie){const re=this.applyRedirectCreateUrlTree(ne,this.urlSerializer.parse(ne),te,ie);if(ne.startsWith("/"))throw new AbsoluteRedirect(re);return re}applyRedirectCreateUrlTree(te,ne,ie,re){const le=this.createSegmentGroup(te,ne.root,ie,re);return new UrlTree(le,this.createQueryParams(ne.queryParams,this.urlTree.queryParams),ne.fragment)}createQueryParams(te,ne){const ie={};return Object.entries(te).forEach((([te,re])=>{if("string"==typeof re&&re.startsWith(":")){const le=re.substring(1);ie[te]=ne[le]}else ie[te]=re})),ie}createSegmentGroup(te,ne,ie,re){const le=this.createSegments(te,ne.segments,ie,re);let ce={};return Object.entries(ne.children).forEach((([ne,le])=>{ce[ne]=this.createSegmentGroup(te,le,ie,re)})),new UrlSegmentGroup(le,ce)}createSegments(te,ne,ie,re){return ne.map((ne=>ne.path.startsWith(":")?this.findPosParam(te,ne,re):this.findOrReturn(ne,ie)))}findPosParam(te,ne,ie){const le=ie[ne.path.substring(1)];if(!le)throw new re.wOt(4001,`Cannot redirect to '${te}'. Cannot find '${ne.path}'.`);return le}findOrReturn(te,ne){let ie=0;for(const re of ne){if(re.path===te.path)return ne.splice(ie),re;ie++}return te}}const tn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function matchWithChecks(te,ne,ie,le,ce){const de=match(te,ne,ie);return de.matched?(le=function getOrCreateRouteInjectorIfNeeded(te,ne){return te.providers&&!te._injector&&(te._injector=(0,re.Ol2)(te.providers,ne,`Route: ${te.path}`)),te._injector??ne}(ne,le),runCanMatchGuards(le,ne,ie).pipe((0,Me.T)((te=>!0===te?de:{...tn})))):(0,ue.of)(de)}function match(te,ne,ie){if("**"===ne.path)return function createWildcardMatchResult(te){return{matched:!0,parameters:te.length>0?router_last(te).parameters:{},consumedSegments:te,remainingSegments:[],positionalParamSegments:{}}}(ie);if(""===ne.path)return"full"===ne.pathMatch&&(te.hasChildren()||ie.length>0)?{...tn}:{matched:!0,consumedSegments:[],remainingSegments:ie,parameters:{},positionalParamSegments:{}};const re=(ne.matcher||defaultUrlMatcher)(ie,te,ne);if(!re)return{...tn};const le={};Object.entries(re.posParams??{}).forEach((([te,ne])=>{le[te]=ne.path}));const ce=re.consumed.length>0?{...le,...re.consumed[re.consumed.length-1].parameters}:le;return{matched:!0,consumedSegments:re.consumed,remainingSegments:ie.slice(re.consumed.length),parameters:ce,positionalParamSegments:re.posParams??{}}}function split(te,ne,ie,re){if(ie.length>0&&function containsEmptyPathMatchesWithNamedOutlets(te,ne,ie){return ie.some((ie=>emptyPathMatch(te,ne,ie)&&getOutlet(ie)!==dt))}(te,ie,re)){return{segmentGroup:new UrlSegmentGroup(ne,function createChildrenForEmptyPaths(te,ne){const ie={};ie[dt]=ne;for(const ne of te)if(""===ne.path&&getOutlet(ne)!==dt){const te=new UrlSegmentGroup([],{});ie[getOutlet(ne)]=te}return ie}(re,new UrlSegmentGroup(ie,te.children))),slicedSegments:[]}}if(0===ie.length&&function containsEmptyPathMatches(te,ne,ie){return ie.some((ie=>emptyPathMatch(te,ne,ie)))}(te,ie,re)){const ne=new UrlSegmentGroup(te.segments,function addEmptyPathsToChildrenIfNeeded(te,ne,ie,re){const le={};for(const ce of ie)if(emptyPathMatch(te,ne,ce)&&!re[getOutlet(ce)]){const te=new UrlSegmentGroup([],{});le[getOutlet(ce)]=te}return{...re,...le}}(te,ie,re,te.children));return{segmentGroup:ne,slicedSegments:ie}}return{segmentGroup:new UrlSegmentGroup(te.segments,te.children),slicedSegments:ie}}function emptyPathMatch(te,ne,ie){return(!(te.hasChildren()||ne.length>0)||"full"!==ie.pathMatch)&&""===ie.path}class NoLeftoversInUrl{}class Recognizer{constructor(te,ne,ie,re,le,ce,de){this.injector=te,this.configLoader=ne,this.rootComponentType=ie,this.config=re,this.urlTree=le,this.paramsInheritanceStrategy=ce,this.urlSerializer=de,this.applyRedirects=new ApplyRedirects(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(te){return new re.wOt(4002,`Cannot match any routes. URL Segment: '${te.segmentGroup}'`)}recognize(){const te=split(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(te).pipe((0,Me.T)((te=>{const ne=new ActivatedRouteSnapshot([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},dt,this.rootComponentType,null,{}),ie=new TreeNode(ne,te),re=new RouterStateSnapshot("",ie),le=function createUrlTreeFromSnapshot(te,ne,ie=null,re=null){return createUrlTreeFromSegmentGroup(createSegmentGroupFromRoute(te),ne,ie,re)}(ne,[],this.urlTree.queryParams,this.urlTree.fragment);return le.queryParams=this.urlTree.queryParams,re.url=this.urlSerializer.serialize(le),this.inheritParamsAndData(re._root,null),{state:re,tree:le}})))}match(te){return this.processSegmentGroup(this.injector,this.config,te,dt).pipe((0,Ge.W)((te=>{if(te instanceof AbsoluteRedirect)return this.urlTree=te.urlTree,this.match(te.urlTree.root);if(te instanceof NoMatch)throw this.noMatchError(te);throw te})))}inheritParamsAndData(te,ne){const ie=te.value,re=getInherited(ie,ne,this.paramsInheritanceStrategy);ie.params=Object.freeze(re.params),ie.data=Object.freeze(re.data),te.children.forEach((te=>this.inheritParamsAndData(te,ie)))}processSegmentGroup(te,ne,ie,re){return 0===ie.segments.length&&ie.hasChildren()?this.processChildren(te,ne,ie):this.processSegment(te,ne,ie,ie.segments,re,!0).pipe((0,Me.T)((te=>te instanceof TreeNode?[te]:[])))}processChildren(te,ne,ie){const le=[];for(const te of Object.keys(ie.children))"primary"===te?le.unshift(te):le.push(te);return(0,de.H)(le).pipe((0,je.H)((re=>{const le=ie.children[re],ce=function sortByMatchingOutlets(te,ne){const ie=te.filter((te=>getOutlet(te)===ne));return ie.push(...te.filter((te=>getOutlet(te)!==ne))),ie}(ne,re);return this.processSegmentGroup(te,ce,le,re)})),function scan(te,ne){return(0,ke.N)((0,ze.S)(te,ne,arguments.length>=2,!0))}(((te,ne)=>(te.push(...ne),te))),(0,He.U)(null),function last(te,ne){const ie=arguments.length>=2;return re=>re.pipe(te?(0,Oe.p)(((ne,ie)=>te(ne,ie,re))):qe.D,takeLast(1),ie?(0,He.U)(ne):(0,$e.v)((()=>new fe.G)))}(),(0,Pe.Z)((te=>{if(null===te)return noMatch$1(ie);const ne=mergeEmptyPathMatches(te);return function checkOutletNameUniqueness(te){const ne={};te.forEach((te=>{const ie=ne[te.value.outlet];if(ie){const ne=ie.url.map((te=>te.toString())).join("/"),le=te.value.url.map((te=>te.toString())).join("/");throw new re.wOt(4006,`Two segments cannot have the same outlet name: '${ne}' and '${le}'.`)}ne[te.value.outlet]=te.value}))}(ne),function sortActivatedRouteSnapshots(te){te.sort(((te,ne)=>te.value.outlet===dt?-1:ne.value.outlet===dt?1:te.value.outlet.localeCompare(ne.value.outlet)))}(ne),(0,ue.of)(ne)})))}processSegment(te,ne,ie,re,le,ce){return(0,de.H)(ne).pipe((0,je.H)((de=>this.processSegmentAgainstRoute(de._injector??te,ne,de,ie,re,le,ce).pipe((0,Ge.W)((te=>{if(te instanceof NoMatch)return(0,ue.of)(null);throw te}))))),(0,Fe.$)((te=>!!te)),(0,Ge.W)((te=>{if(isEmptyError(te))return function noLeftoversInUrl(te,ne,ie){return 0===ne.length&&!te.children[ie]}(ie,re,le)?(0,ue.of)(new NoLeftoversInUrl):noMatch$1(ie);throw te})))}processSegmentAgainstRoute(te,ne,ie,re,le,ce,de){return function isImmediateMatch(te,ne,ie,re){return!!(getOutlet(te)===re||re!==dt&&emptyPathMatch(ne,ie,te))&&match(ne,te,ie).matched}(ie,re,le,ce)?void 0===ie.redirectTo?this.matchSegmentAgainstRoute(te,re,ie,le,ce):this.allowRedirects&&de?this.expandSegmentAgainstRouteUsingRedirect(te,re,ne,ie,le,ce):noMatch$1(re):noMatch$1(re)}expandSegmentAgainstRouteUsingRedirect(te,ne,ie,re,le,ce){const{matched:de,consumedSegments:ue,positionalParamSegments:me,remainingSegments:ge}=match(ne,re,le);if(!de)return noMatch$1(ne);re.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const fe=this.applyRedirects.applyRedirectCommands(ue,re.redirectTo,me);return this.applyRedirects.lineralizeSegments(re,fe).pipe((0,Pe.Z)((re=>this.processSegment(te,ie,ne,re.concat(ge),ce,!1))))}matchSegmentAgainstRoute(te,ne,ie,re,le){const ce=matchWithChecks(ne,ie,re,te,this.urlSerializer);return"**"===ie.path&&(ne.children={}),ce.pipe((0,Ne.n)((ce=>ce.matched?(te=ie._injector??te,this.getChildConfig(te,ie,re).pipe((0,Ne.n)((({routes:re})=>{const de=ie._loadedInjector??te,{consumedSegments:me,remainingSegments:ge,parameters:fe}=ce,_e=new ActivatedRouteSnapshot(me,fe,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function getData(te){return te.data||{}}(ie),getOutlet(ie),ie.component??ie._loadedComponent??null,ie,function getResolve(te){return te.resolve||{}}(ie)),{segmentGroup:be,slicedSegments:Ce}=split(ne,me,ge,re);if(0===Ce.length&&be.hasChildren())return this.processChildren(de,re,be).pipe((0,Me.T)((te=>null===te?null:new TreeNode(_e,te))));if(0===re.length&&0===Ce.length)return(0,ue.of)(new TreeNode(_e,[]));const ye=getOutlet(ie)===le;return this.processSegment(de,re,be,Ce,ye?dt:le,!0).pipe((0,Me.T)((te=>new TreeNode(_e,te instanceof TreeNode?[te]:[]))))})))):noMatch$1(ne))))}getChildConfig(te,ne,ie){return ne.children?(0,ue.of)({routes:ne.children,injector:te}):ne.loadChildren?void 0!==ne._loadedRoutes?(0,ue.of)({routes:ne._loadedRoutes,injector:ne._loadedInjector}):runCanLoadGuards(te,ne,ie,this.urlSerializer).pipe((0,Pe.Z)((ie=>ie?this.configLoader.loadChildren(te,ne).pipe((0,Ve.M)((te=>{ne._loadedRoutes=te.routes,ne._loadedInjector=te.injector}))):function canLoadFails(te){return throwError_throwError(navigationCancelingError(`Cannot load children because the guard of the route "path: '${te.path}'" returned false`,zt.GuardRejected))}(ne)))):(0,ue.of)({routes:[],injector:te})}}function hasEmptyPathConfig(te){const ne=te.value.routeConfig;return ne&&""===ne.path}function mergeEmptyPathMatches(te){const ne=[],ie=new Set;for(const re of te){if(!hasEmptyPathConfig(re)){ne.push(re);continue}const te=ne.find((te=>re.value.routeConfig===te.value.routeConfig));void 0!==te?(te.children.push(...re.children),ie.add(te)):ne.push(re)}for(const te of ie){const ie=mergeEmptyPathMatches(te.children);ne.push(new TreeNode(te.value,ie))}return ne.filter((te=>!ie.has(te)))}function recognize(te,ne,ie,re,le,ce){return(0,Pe.Z)((de=>function recognize$1(te,ne,ie,re,le,ce,de="emptyOnly"){return new Recognizer(te,ne,ie,re,le,de,ce).recognize()}(te,ne,ie,re,de.extractedUrl,le,ce).pipe((0,Me.T)((({state:te,tree:ne})=>({...de,targetSnapshot:te,urlAfterRedirects:ne}))))))}function resolveData(te,ne){return(0,Pe.Z)((ie=>{const{targetSnapshot:le,guards:{canActivateChecks:ce}}=ie;if(!ce.length)return(0,ue.of)(ie);const me=new Set(ce.map((te=>te.route))),ge=new Set;for(const te of me)if(!ge.has(te))for(const ne of flattenRouteTree(te))ge.add(ne);let fe=0;return(0,de.H)(ge).pipe((0,je.H)((ie=>me.has(ie)?function runResolve(te,ne,ie,le){const ce=te.routeConfig,me=te._resolve;void 0===ce?.title||hasStaticTitle(ce)||(me[pt]=ce.title);return function resolveNode(te,ne,ie,le){const ce=getDataKeys(te);if(0===ce.length)return(0,ue.of)({});const me={};return(0,de.H)(ce).pipe((0,Pe.Z)((ce=>function getResolver(te,ne,ie,le){const ce=getClosestRouteInjector(ne)??le,de=getTokenOrFunctionIdentity(te,ce),ue=de.resolve?de.resolve(ne,ie):(0,re.N4e)(ce,(()=>de(ne,ie)));return wrapIntoObservable(ue)}(te[ce],ne,ie,le).pipe((0,Fe.$)(),(0,Ve.M)((te=>{me[ce]=te}))))),takeLast(1),(0,Ye.u)(me),(0,Ge.W)((te=>isEmptyError(te)?ye.w:throwError_throwError(te))))}(me,te,ne,le).pipe((0,Me.T)((ne=>(te._resolvedData=ne,te.data=getInherited(te,te.parent,ie).resolve,null))))}(ie,le,te,ne):(ie.data=getInherited(ie,ie.parent,te).resolve,(0,ue.of)(void 0)))),(0,Ve.M)((()=>fe++)),takeLast(1),(0,Pe.Z)((te=>fe===ge.size?(0,ue.of)(ie):ye.w)))}))}function flattenRouteTree(te){const ne=te.children.map((te=>flattenRouteTree(te))).flat();return[te,...ne]}function switchTap(te){return(0,Ne.n)((ne=>{const ie=te(ne);return ie?(0,de.H)(ie).pipe((0,Me.T)((()=>ne))):(0,ue.of)(ne)}))}let nn=(()=>{class TitleStrategy{buildTitle(te){let ne,ie=te.root;for(;void 0!==ie;)ne=this.getResolvedTitleForRoute(ie)??ne,ie=ie.children.find((te=>te.outlet===dt));return ne}getResolvedTitleForRoute(te){return te.data[pt]}static#e=this.ɵfac=function TitleStrategy_Factory(te){return new(te||TitleStrategy)};static#t=this.ɵprov=re.jDH({token:TitleStrategy,factory:()=>(0,re.WQX)(rn),providedIn:"root"})}return TitleStrategy})(),rn=(()=>{class DefaultTitleStrategy extends nn{constructor(te){super(),this.title=te}updateTitle(te){const ne=this.buildTitle(te);void 0!==ne&&this.title.setTitle(ne)}static#e=this.ɵfac=function DefaultTitleStrategy_Factory(te){return new(te||DefaultTitleStrategy)(re.KVO(Je.hE))};static#t=this.ɵprov=re.jDH({token:DefaultTitleStrategy,factory:DefaultTitleStrategy.ɵfac,providedIn:"root"})}return DefaultTitleStrategy})();const an=new re.nKC("router config",{providedIn:"root",factory:()=>({})}),sn=new re.nKC("");let dn=(()=>{class RouterConfigLoader{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,re.WQX)(re.Ql9)}loadComponent(te){if(this.componentLoaders.get(te))return this.componentLoaders.get(te);if(te._loadedComponent)return(0,ue.of)(te._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(te);const ne=wrapIntoObservable(te.loadComponent()).pipe((0,Me.T)(maybeUnwrapDefaultExport),(0,Ve.M)((ne=>{this.onLoadEndListener&&this.onLoadEndListener(te),assertStandalone(te.path??"",ne),te._loadedComponent=ne})),(0,Xe.j)((()=>{this.componentLoaders.delete(te)}))),ie=new ConnectableObservable(ne,(()=>new xe.B)).pipe(refCount());return this.componentLoaders.set(te,ie),ie}loadChildren(te,ne){if(this.childrenLoaders.get(ne))return this.childrenLoaders.get(ne);if(ne._loadedRoutes)return(0,ue.of)({routes:ne._loadedRoutes,injector:ne._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(ne);const ie=function loadChildren(te,ne,ie,le){return wrapIntoObservable(te.loadChildren()).pipe((0,Me.T)(maybeUnwrapDefaultExport),(0,Pe.Z)((te=>te instanceof re.Co$||Array.isArray(te)?(0,ue.of)(te):(0,de.H)(ne.compileModuleAsync(te)))),(0,Me.T)((ne=>{let re,ce;le&&le(te);let de=!1;Array.isArray(ne)?(ce=ne,de=!0):(re=ne.create(ie).injector,ce=re.get(sn,[],{optional:!0,self:!0}).flat());const ue=ce.map(standardizeConfig);return validateConfig(ue,te.path,de),{routes:ue,injector:re}})))}(ne,this.compiler,te,this.onLoadEndListener),le=ie.pipe((0,Xe.j)((()=>{this.childrenLoaders.delete(ne)}))),ce=new ConnectableObservable(le,(()=>new xe.B)).pipe(refCount());return this.childrenLoaders.set(ne,ce),ce}static#e=this.ɵfac=function RouterConfigLoader_Factory(te){return new(te||RouterConfigLoader)};static#t=this.ɵprov=re.jDH({token:RouterConfigLoader,factory:RouterConfigLoader.ɵfac,providedIn:"root"})}return RouterConfigLoader})();function maybeUnwrapDefaultExport(te){return function isWrappedDefaultExport(te){return te&&"object"==typeof te&&"default"in te}(te)?te.default:te}let un=(()=>{class UrlHandlingStrategy{static#e=this.ɵfac=function UrlHandlingStrategy_Factory(te){return new(te||UrlHandlingStrategy)};static#t=this.ɵprov=re.jDH({token:UrlHandlingStrategy,factory:()=>(0,re.WQX)(pn),providedIn:"root"})}return UrlHandlingStrategy})(),pn=(()=>{class DefaultUrlHandlingStrategy{shouldProcessUrl(te){return!0}extract(te){return te}merge(te,ne){return te}static#e=this.ɵfac=function DefaultUrlHandlingStrategy_Factory(te){return new(te||DefaultUrlHandlingStrategy)};static#t=this.ɵprov=re.jDH({token:DefaultUrlHandlingStrategy,factory:DefaultUrlHandlingStrategy.ɵfac,providedIn:"root"})}return DefaultUrlHandlingStrategy})();const hn=new re.nKC(""),fn=new re.nKC("");function createViewTransition(te,ne,ie){const le=te.get(fn),ce=te.get(Ee.qQ);return te.get(re.SKi).runOutsideAngular((()=>{if(!ce.startViewTransition||le.skipNextTransition)return le.skipNextTransition=!1,Promise.resolve();let de;const ue=new Promise((te=>{de=te})),me=ce.startViewTransition((()=>(de(),function createRenderPromise(te){return new Promise((ne=>{(0,re.mal)(ne,{injector:te})}))}(te)))),{onViewTransitionCreated:ge}=le;return ge&&(0,re.N4e)(te,(()=>ge({transition:me,from:ne,to:ie}))),ue}))}let _n=(()=>{class NavigationTransitions{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new xe.B,this.transitionAbortSubject=new xe.B,this.configLoader=(0,re.WQX)(dn),this.environmentInjector=(0,re.WQX)(re.uvJ),this.urlSerializer=(0,re.WQX)(It),this.rootContexts=(0,re.WQX)(Ut),this.location=(0,re.WQX)(Ee.aZ),this.inputBindingEnabled=null!==(0,re.WQX)(Yt,{optional:!0}),this.titleStrategy=(0,re.WQX)(nn),this.options=(0,re.WQX)(an,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,re.WQX)(un),this.createViewTransition=(0,re.WQX)(hn,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,ue.of)(void 0),this.rootComponentType=null;this.configLoader.onLoadEndListener=te=>this.events.next(new RouteConfigLoadEnd(te)),this.configLoader.onLoadStartListener=te=>this.events.next(new RouteConfigLoadStart(te))}complete(){this.transitions?.complete()}handleNavigationRequest(te){const ne=++this.navigationId;this.transitions?.next({...this.transitions.value,...te,id:ne})}setupNavigations(te,ne,ie){return this.transitions=new me.t({id:0,currentUrlTree:ne,currentRawUrl:ne,extractedUrl:this.urlHandlingStrategy.extract(ne),urlAfterRedirects:this.urlHandlingStrategy.extract(ne),rawUrl:ne,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Vt,restoredState:null,currentSnapshot:ie.snapshot,targetSnapshot:null,currentRouterState:ie,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Oe.p)((te=>0!==te.id)),(0,Me.T)((te=>({...te,extractedUrl:this.urlHandlingStrategy.extract(te.rawUrl)}))),(0,Ne.n)((ne=>{this.currentTransition=ne;let ie=!1,re=!1;return(0,ue.of)(ne).pipe((0,Ve.M)((te=>{this.currentNavigation={id:te.id,initialUrl:te.rawUrl,extractedUrl:te.extractedUrl,trigger:te.source,extras:te.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}})),(0,Ne.n)((ie=>{const re=!te.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),le=ie.extras.onSameUrlNavigation??te.onSameUrlNavigation;if(!re&&"reload"!==le){const te=`Navigation to ${ie.rawUrl} was ignored because it is the same as the current Router URL.`;return this.events.next(new NavigationSkipped(ie.id,this.urlSerializer.serialize(ie.rawUrl),te,Ht.IgnoredSameUrlNavigation)),ie.resolve(null),ye.w}if(this.urlHandlingStrategy.shouldProcessUrl(ie.rawUrl))return(0,ue.of)(ie).pipe((0,Ne.n)((te=>{const ne=this.transitions?.getValue();return this.events.next(new NavigationStart(te.id,this.urlSerializer.serialize(te.extractedUrl),te.source,te.restoredState)),ne!==this.transitions?.getValue()?ye.w:Promise.resolve(te)})),recognize(this.environmentInjector,this.configLoader,this.rootComponentType,te.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Ve.M)((te=>{ne.targetSnapshot=te.targetSnapshot,ne.urlAfterRedirects=te.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:te.urlAfterRedirects};const ie=new RoutesRecognized(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot);this.events.next(ie)})));if(re&&this.urlHandlingStrategy.shouldProcessUrl(ie.currentRawUrl)){const{id:te,extractedUrl:re,source:le,restoredState:ce,extras:de}=ie,me=new NavigationStart(te,this.urlSerializer.serialize(re),le,ce);this.events.next(me);const ge=createEmptyState(this.rootComponentType).snapshot;return this.currentTransition=ne={...ie,targetSnapshot:ge,urlAfterRedirects:re,extras:{...de,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=re,(0,ue.of)(ne)}{const te=`Navigation was ignored because the UrlHandlingStrategy indicated neither the current URL ${ie.currentRawUrl} nor target URL ${ie.rawUrl} should be processed.`;return this.events.next(new NavigationSkipped(ie.id,this.urlSerializer.serialize(ie.extractedUrl),te,Ht.IgnoredByUrlHandlingStrategy)),ie.resolve(null),ye.w}})),(0,Ve.M)((te=>{const ne=new GuardsCheckStart(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot);this.events.next(ne)})),(0,Me.T)((te=>(this.currentTransition=ne={...te,guards:getAllRouteGuards(te.targetSnapshot,te.currentSnapshot,this.rootContexts)},ne))),checkGuards(this.environmentInjector,(te=>this.events.next(te))),(0,Ve.M)((te=>{if(ne.guardsResult=te.guardsResult,isUrlTree(te.guardsResult))throw redirectingNavigationError(this.urlSerializer,te.guardsResult);const ie=new GuardsCheckEnd(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot,!!te.guardsResult);this.events.next(ie)})),(0,Oe.p)((te=>!!te.guardsResult||(this.cancelNavigationTransition(te,"",zt.GuardRejected),!1))),switchTap((te=>{if(te.guards.canActivateChecks.length)return(0,ue.of)(te).pipe((0,Ve.M)((te=>{const ne=new ResolveStart(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot);this.events.next(ne)})),(0,Ne.n)((te=>{let ne=!1;return(0,ue.of)(te).pipe(resolveData(this.paramsInheritanceStrategy,this.environmentInjector),(0,Ve.M)({next:()=>ne=!0,complete:()=>{ne||this.cancelNavigationTransition(te,"At least one route resolver didn't emit any value.",zt.NoDataFromResolver)}}))})),(0,Ve.M)((te=>{const ne=new ResolveEnd(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot);this.events.next(ne)})))})),switchTap((te=>{const loadComponents=te=>{const ne=[];te.routeConfig?.loadComponent&&!te.routeConfig._loadedComponent&&ne.push(this.configLoader.loadComponent(te.routeConfig).pipe((0,Ve.M)((ne=>{te.component=ne})),(0,Me.T)((()=>{}))));for(const ie of te.children)ne.push(...loadComponents(ie));return ne};return(0,ge.z)(loadComponents(te.targetSnapshot.root)).pipe((0,He.U)(null),(0,Re.s)(1))})),switchTap((()=>this.afterPreactivation())),(0,Ne.n)((()=>{const{currentSnapshot:te,targetSnapshot:ie}=ne,re=this.createViewTransition?.(this.environmentInjector,te.root,ie.root);return re?(0,de.H)(re).pipe((0,Me.T)((()=>ne))):(0,ue.of)(ne)})),(0,Me.T)((ie=>{const re=function createRouterState(te,ne,ie){const re=createNode(te,ne._root,ie?ie._root:void 0);return new RouterState(re,ne)}(te.routeReuseStrategy,ie.targetSnapshot,ie.currentRouterState);return this.currentTransition=ne={...ie,targetRouterState:re},this.currentNavigation.targetRouterState=re,ne})),(0,Ve.M)((()=>{this.events.next(new BeforeActivateRoutes)})),(le=this.rootContexts,ce=te.routeReuseStrategy,me=te=>this.events.next(te),fe=this.inputBindingEnabled,(0,Me.T)((te=>(new ActivateRoutes(ce,te.targetRouterState,te.currentRouterState,me,fe).activate(le),te)))),(0,Re.s)(1),(0,Ve.M)({next:te=>{ie=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new NavigationEnd(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects))),this.titleStrategy?.updateTitle(te.targetRouterState.snapshot),te.resolve(!0)},complete:()=>{ie=!0}}),(0,Ke.Q)(this.transitionAbortSubject.pipe((0,Ve.M)((te=>{throw te})))),(0,Xe.j)((()=>{if(!ie&&!re){const te=`Navigation ID ${ne.id} is not equal to the current navigation id ${this.navigationId}`;this.cancelNavigationTransition(ne,te,zt.SupersededByNewNavigation)}this.currentTransition?.id===ne.id&&(this.currentNavigation=null,this.currentTransition=null)})),(0,Ge.W)((ie=>{if(re=!0,isNavigationCancelingError(ie))this.events.next(new NavigationCancel(ne.id,this.urlSerializer.serialize(ne.extractedUrl),ie.message,ie.cancellationCode)),!function isRedirectingNavigationCancelingError(te){return isNavigationCancelingError(te)&&isUrlTree(te.url)}(ie)?ne.resolve(!1):this.events.next(new RedirectRequest(ie.url));else{this.events.next(new NavigationError(ne.id,this.urlSerializer.serialize(ne.extractedUrl),ie,ne.targetSnapshot??void 0));try{ne.resolve(te.errorHandler(ie))}catch(te){this.options.resolveNavigationPromiseOnError?ne.resolve(!1):ne.reject(te)}}return ye.w})));var le,ce,me,fe})))}cancelNavigationTransition(te,ne,ie){const re=new NavigationCancel(te.id,this.urlSerializer.serialize(te.extractedUrl),ne,ie);this.events.next(re),te.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.ɵfac=function NavigationTransitions_Factory(te){return new(te||NavigationTransitions)};static#t=this.ɵprov=re.jDH({token:NavigationTransitions,factory:NavigationTransitions.ɵfac,providedIn:"root"})}return NavigationTransitions})();let bn=(()=>{class RouteReuseStrategy{static#e=this.ɵfac=function RouteReuseStrategy_Factory(te){return new(te||RouteReuseStrategy)};static#t=this.ɵprov=re.jDH({token:RouteReuseStrategy,factory:()=>(0,re.WQX)(yn),providedIn:"root"})}return RouteReuseStrategy})();class BaseRouteReuseStrategy{shouldDetach(te){return!1}store(te,ne){}shouldAttach(te){return!1}retrieve(te){return null}shouldReuseRoute(te,ne){return te.routeConfig===ne.routeConfig}}let yn=(()=>{class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy{static#e=this.ɵfac=(()=>{let te;return function DefaultRouteReuseStrategy_Factory(ne){return(te||(te=re.xGo(DefaultRouteReuseStrategy)))(ne||DefaultRouteReuseStrategy)}})();static#t=this.ɵprov=re.jDH({token:DefaultRouteReuseStrategy,factory:DefaultRouteReuseStrategy.ɵfac,providedIn:"root"})}return DefaultRouteReuseStrategy})(),wn=(()=>{class StateManager{static#e=this.ɵfac=function StateManager_Factory(te){return new(te||StateManager)};static#t=this.ɵprov=re.jDH({token:StateManager,factory:()=>(0,re.WQX)(kn),providedIn:"root"})}return StateManager})(),kn=(()=>{class HistoryStateManager extends wn{constructor(){super(...arguments),this.location=(0,re.WQX)(Ee.aZ),this.urlSerializer=(0,re.WQX)(It),this.options=(0,re.WQX)(an,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,re.WQX)(un),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new UrlTree,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=createEmptyState(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(te){return this.location.subscribe((ne=>{"popstate"===ne.type&&te(ne.url,ne.state)}))}handleRouterEvent(te,ne){if(te instanceof NavigationStart)this.stateMemento=this.createStateMemento();else if(te instanceof NavigationSkipped)this.rawUrlTree=ne.initialUrl;else if(te instanceof RoutesRecognized){if("eager"===this.urlUpdateStrategy&&!ne.extras.skipLocationChange){const te=this.urlHandlingStrategy.merge(ne.finalUrl,ne.initialUrl);this.setBrowserUrl(te,ne)}}else te instanceof BeforeActivateRoutes?(this.currentUrlTree=ne.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(ne.finalUrl,ne.initialUrl),this.routerState=ne.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ne.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ne))):te instanceof NavigationCancel&&(te.code===zt.GuardRejected||te.code===zt.NoDataFromResolver)?this.restoreHistory(ne):te instanceof NavigationError?this.restoreHistory(ne,!0):te instanceof NavigationEnd&&(this.lastSuccessfulId=te.id,this.currentPageId=this.browserPageId)}setBrowserUrl(te,ne){const ie=this.urlSerializer.serialize(te);if(this.location.isCurrentPathEqualTo(ie)||ne.extras.replaceUrl){const te=this.browserPageId,re={...ne.extras.state,...this.generateNgRouterState(ne.id,te)};this.location.replaceState(ie,"",re)}else{const te={...ne.extras.state,...this.generateNgRouterState(ne.id,this.browserPageId+1)};this.location.go(ie,"",te)}}restoreHistory(te,ne=!1){if("computed"===this.canceledNavigationResolution){const ne=this.browserPageId,ie=this.currentPageId-ne;0!==ie?this.location.historyGo(ie):this.currentUrlTree===te.finalUrl&&0===ie&&(this.resetState(te),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(ne&&this.resetState(te),this.resetUrlToCurrentUrlTree())}resetState(te){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,te.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(te,ne){return"computed"===this.canceledNavigationResolution?{navigationId:te,ɵrouterPageId:ne}:{navigationId:te}}static#e=this.ɵfac=(()=>{let te;return function HistoryStateManager_Factory(ne){return(te||(te=re.xGo(HistoryStateManager)))(ne||HistoryStateManager)}})();static#t=this.ɵprov=re.jDH({token:HistoryStateManager,factory:HistoryStateManager.ɵfac,providedIn:"root"})}return HistoryStateManager})();var In=function(te){return te[te.COMPLETE=0]="COMPLETE",te[te.FAILED=1]="FAILED",te[te.REDIRECTING=2]="REDIRECTING",te}(In||{});function afterNextNavigation(te,ne){te.events.pipe((0,Oe.p)((te=>te instanceof NavigationEnd||te instanceof NavigationCancel||te instanceof NavigationError||te instanceof NavigationSkipped)),(0,Me.T)((te=>{if(te instanceof NavigationEnd||te instanceof NavigationSkipped)return In.COMPLETE;return te instanceof NavigationCancel&&(te.code===zt.Redirect||te.code===zt.SupersededByNewNavigation)?In.REDIRECTING:In.FAILED})),(0,Oe.p)((te=>te!==In.REDIRECTING)),(0,Re.s)(1)).subscribe((()=>{ne()}))}function defaultErrorHandler(te){throw te}const Tn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Dn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let xn=(()=>{class Router{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,re.WQX)(re.H3F),this.stateManager=(0,re.WQX)(wn),this.options=(0,re.WQX)(an,{optional:!0})||{},this.pendingTasks=(0,re.WQX)(re.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,re.WQX)(_n),this.urlSerializer=(0,re.WQX)(It),this.location=(0,re.WQX)(Ee.aZ),this.urlHandlingStrategy=(0,re.WQX)(un),this._events=new xe.B,this.errorHandler=this.options.errorHandler||defaultErrorHandler,this.navigated=!1,this.routeReuseStrategy=(0,re.WQX)(bn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,re.WQX)(sn,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,re.WQX)(Yt,{optional:!0}),this.eventsSubscription=new we.yU,this.isNgZoneEnabled=(0,re.WQX)(re.SKi)instanceof re.SKi&&re.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:te=>{this.console.warn(te)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const te=this.navigationTransitions.events.subscribe((te=>{try{const ie=this.navigationTransitions.currentTransition,re=this.navigationTransitions.currentNavigation;if(null!==ie&&null!==re)if(this.stateManager.handleRouterEvent(te,re),te instanceof NavigationCancel&&te.code!==zt.Redirect&&te.code!==zt.SupersededByNewNavigation)this.navigated=!0;else if(te instanceof NavigationEnd)this.navigated=!0;else if(te instanceof RedirectRequest){const re=this.urlHandlingStrategy.merge(te.url,ie.currentRawUrl),le={info:ie.extras.info,skipLocationChange:ie.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||(ne=ie.source,ne!==Vt)};this.scheduleNavigation(re,Vt,null,le,{resolve:ie.resolve,reject:ie.reject,promise:ie.promise})}(function isPublicRouterEvent(te){return!(te instanceof BeforeActivateRoutes||te instanceof RedirectRequest)})(te)&&this._events.next(te)}catch(te){this.navigationTransitions.transitionAbortSubject.next(te)}var ne}));this.eventsSubscription.add(te)}resetRootComponentType(te){this.routerState.root.component=te,this.navigationTransitions.rootComponentType=te}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Vt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener(((te,ne)=>{setTimeout((()=>{this.navigateToSyncWithBrowser(te,"popstate",ne)}),0)}))}navigateToSyncWithBrowser(te,ne,ie){const re={replaceUrl:!0},le=ie?.navigationId?ie:null;if(ie){const te={...ie};delete te.navigationId,delete te.ɵrouterPageId,0!==Object.keys(te).length&&(re.state=te)}const ce=this.parseUrl(te);this.scheduleNavigation(ce,ne,le,re)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(te){validateConfig(te),this.config=te.map(standardizeConfig),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(te,ne={}){const{relativeTo:ie,queryParams:re,fragment:le,queryParamsHandling:ce,preserveFragment:de}=ne,ue=de?this.currentUrlTree.fragment:le;let me,ge=null;switch(ce){case"merge":ge={...this.currentUrlTree.queryParams,...re};break;case"preserve":ge=this.currentUrlTree.queryParams;break;default:ge=re||null}null!==ge&&(ge=this.removeEmptyProps(ge));try{me=createSegmentGroupFromRoute(ie?ie.snapshot:this.routerState.snapshot.root)}catch(ne){"string"==typeof te[0]&&te[0].startsWith("/")||(te=[]),me=this.currentUrlTree.root}return createUrlTreeFromSegmentGroup(me,te,ge,ue??null)}navigateByUrl(te,ne={skipLocationChange:!1}){this.isNgZoneEnabled&&!re.SKi.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const ie=isUrlTree(te)?te:this.parseUrl(te),le=this.urlHandlingStrategy.merge(ie,this.rawUrlTree);return this.scheduleNavigation(le,Vt,null,ne)}navigate(te,ne={skipLocationChange:!1}){return function validateCommands(te){for(let ne=0;ne<te.length;ne++){const ie=te[ne];if(null==ie)throw new re.wOt(4008,`The requested path contains ${ie} segment at index ${ne}`)}}(te),this.navigateByUrl(this.createUrlTree(te,ne),ne)}serializeUrl(te){return this.urlSerializer.serialize(te)}parseUrl(te){try{return this.urlSerializer.parse(te)}catch{return this.urlSerializer.parse("/")}}isActive(te,ne){let ie;if(ie=!0===ne?{...Tn}:!1===ne?{...Dn}:ne,isUrlTree(te))return containsTree(this.currentUrlTree,te,ie);const re=this.parseUrl(te);return containsTree(this.currentUrlTree,re,ie)}removeEmptyProps(te){return Object.entries(te).reduce(((te,[ne,ie])=>(null!=ie&&(te[ne]=ie),te)),{})}scheduleNavigation(te,ne,ie,re,le){if(this.disposed)return Promise.resolve(!1);let ce,de,ue;le?(ce=le.resolve,de=le.reject,ue=le.promise):ue=new Promise(((te,ne)=>{ce=te,de=ne}));const me=this.pendingTasks.add();return afterNextNavigation(this,(()=>{queueMicrotask((()=>this.pendingTasks.remove(me)))})),this.navigationTransitions.handleNavigationRequest({source:ne,restoredState:ie,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:te,extras:re,resolve:ce,reject:de,promise:ue,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ue.catch((te=>Promise.reject(te)))}static#e=this.ɵfac=function Router_Factory(te){return new(te||Router)};static#t=this.ɵprov=re.jDH({token:Router,factory:Router.ɵfac,providedIn:"root"})}return Router})();let En=(()=>{class RouterLink{constructor(te,ne,ie,re,le,ce){this.router=te,this.route=ne,this.tabIndexAttribute=ie,this.renderer=re,this.el=le,this.locationStrategy=ce,this.href=null,this.commands=null,this.onChanges=new xe.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const de=le.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===de||"area"===de,this.isAnchorElement?this.subscription=te.events.subscribe((te=>{te instanceof NavigationEnd&&this.updateHref()})):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(te){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",te)}ngOnChanges(te){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(te){null!=te?(this.commands=Array.isArray(te)?te:[te],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(te,ne,ie,re,le){const ce=this.urlTree;if(null===ce)return!0;if(this.isAnchorElement){if(0!==te||ne||ie||re||le)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0}const de={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(ce,de),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const te=this.urlTree;this.href=null!==te&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(te)):null;const ne=null===this.href?null:(0,re.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ne)}applyAttributeValue(te,ne){const ie=this.renderer,re=this.el.nativeElement;null!==ne?ie.setAttribute(re,te,ne):ie.removeAttribute(re,te)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.ɵfac=function RouterLink_Factory(te){return new(te||RouterLink)(re.rXU(xn),re.rXU(ActivatedRoute),re.kS0("tabindex"),re.rXU(re.sFG),re.rXU(re.aKT),re.rXU(Ee.hb))};static#t=this.ɵdir=re.FsC({type:RouterLink,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function RouterLink_HostBindings(te,ne){1&te&&re.bIt("click",(function RouterLink_click_HostBindingHandler(te){return ne.onClick(te.button,te.ctrlKey,te.shiftKey,te.altKey,te.metaKey)})),2&te&&re.BMQ("target",ne.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[re.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",re.L39],skipLocationChange:[re.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",re.L39],replaceUrl:[re.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",re.L39],routerLink:"routerLink"},standalone:!0,features:[re.GFd,re.OA$]})}return RouterLink})(),Rn=(()=>{class RouterLinkActive{get isActive(){return this._isActive}constructor(te,ne,ie,le,ce){this.router=te,this.element=ne,this.renderer=ie,this.cdr=le,this.link=ce,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new re.bkB,this.routerEventsSubscription=te.events.subscribe((te=>{te instanceof NavigationEnd&&this.update()}))}ngAfterContentInit(){(0,ue.of)(this.links.changes,(0,ue.of)(null)).pipe((0,Qe.U)()).subscribe((te=>{this.update(),this.subscribeToEachLinkOnChanges()}))}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const te=[...this.links.toArray(),this.link].filter((te=>!!te)).map((te=>te.onChanges));this.linkInputChangesSubscription=(0,de.H)(te).pipe((0,Qe.U)()).subscribe((te=>{this._isActive!==this.isLinkActive(this.router)(te)&&this.update()}))}set routerLinkActive(te){const ne=Array.isArray(te)?te:te.split(" ");this.classes=ne.filter((te=>!!te))}ngOnChanges(te){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){this.links&&this.router.navigated&&queueMicrotask((()=>{const te=this.hasActiveLinks();this._isActive!==te&&(this._isActive=te,this.cdr.markForCheck(),this.classes.forEach((ne=>{te?this.renderer.addClass(this.element.nativeElement,ne):this.renderer.removeClass(this.element.nativeElement,ne)})),te&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(te))}))}isLinkActive(te){const ne=function isActiveMatchOptions(te){return!!te.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ie=>{const re=ie.urlTree;return!!re&&te.isActive(re,ne)}}hasActiveLinks(){const te=this.isLinkActive(this.router);return this.link&&te(this.link)||this.links.some(te)}static#e=this.ɵfac=function RouterLinkActive_Factory(te){return new(te||RouterLinkActive)(re.rXU(xn),re.rXU(re.aKT),re.rXU(re.sFG),re.rXU(re.gRc),re.rXU(En,8))};static#t=this.ɵdir=re.FsC({type:RouterLinkActive,selectors:[["","routerLinkActive",""]],contentQueries:function RouterLinkActive_ContentQueries(te,ne,ie){if(1&te&&re.wni(ie,En,5),2&te){let te;re.mGM(te=re.lsd())&&(ne.links=te)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[re.OA$]})}return RouterLinkActive})();class PreloadingStrategy{}let Ln=(()=>{class RouterPreloader{constructor(te,ne,ie,re,le){this.router=te,this.injector=ie,this.preloadingStrategy=re,this.loader=le}setUpPreloading(){this.subscription=this.router.events.pipe((0,Oe.p)((te=>te instanceof NavigationEnd)),(0,je.H)((()=>this.preload()))).subscribe((()=>{}))}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(te,ne){const ie=[];for(const le of ne){le.providers&&!le._injector&&(le._injector=(0,re.Ol2)(le.providers,te,`Route: ${le.path}`));const ne=le._injector??te,ce=le._loadedInjector??ne;(le.loadChildren&&!le._loadedRoutes&&void 0===le.canLoad||le.loadComponent&&!le._loadedComponent)&&ie.push(this.preloadConfig(ne,le)),(le.children||le._loadedRoutes)&&ie.push(this.processRoutes(ce,le.children??le._loadedRoutes))}return(0,de.H)(ie).pipe((0,Qe.U)())}preloadConfig(te,ne){return this.preloadingStrategy.preload(ne,(()=>{let ie;ie=ne.loadChildren&&void 0===ne.canLoad?this.loader.loadChildren(te,ne):(0,ue.of)(null);const re=ie.pipe((0,Pe.Z)((ie=>null===ie?(0,ue.of)(void 0):(ne._loadedRoutes=ie.routes,ne._loadedInjector=ie.injector,this.processRoutes(ie.injector??te,ie.routes)))));if(ne.loadComponent&&!ne._loadedComponent){const te=this.loader.loadComponent(ne);return(0,de.H)([re,te]).pipe((0,Qe.U)())}return re}))}static#e=this.ɵfac=function RouterPreloader_Factory(te){return new(te||RouterPreloader)(re.KVO(xn),re.KVO(re.Ql9),re.KVO(re.uvJ),re.KVO(PreloadingStrategy),re.KVO(dn))};static#t=this.ɵprov=re.jDH({token:RouterPreloader,factory:RouterPreloader.ɵfac,providedIn:"root"})}return RouterPreloader})();const On=new re.nKC("");let Pn=(()=>{class RouterScroller{constructor(te,ne,ie,re,le={}){this.urlSerializer=te,this.transitions=ne,this.viewportScroller=ie,this.zone=re,this.options=le,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},le.scrollPositionRestoration||="disabled",le.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe((te=>{te instanceof NavigationStart?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=te.navigationTrigger,this.restoredId=te.restoredState?te.restoredState.navigationId:0):te instanceof NavigationEnd?(this.lastId=te.id,this.scheduleScrollEvent(te,this.urlSerializer.parse(te.urlAfterRedirects).fragment)):te instanceof NavigationSkipped&&te.code===Ht.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(te,this.urlSerializer.parse(te.url).fragment))}))}consumeScrollEvents(){return this.transitions.events.subscribe((te=>{te instanceof Scroll&&(te.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(te.position):te.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(te.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))}))}scheduleScrollEvent(te,ne){this.zone.runOutsideAngular((()=>{setTimeout((()=>{this.zone.run((()=>{this.transitions.events.next(new Scroll(te,"popstate"===this.lastSource?this.store[this.restoredId]:null,ne))}))}),0)}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.ɵfac=function RouterScroller_Factory(te){re.QTQ()};static#t=this.ɵprov=re.jDH({token:RouterScroller,factory:RouterScroller.ɵfac})}return RouterScroller})();function rootRoute(te){return te.routerState.root}function routerFeature(te,ne){return{ɵkind:te,ɵproviders:ne}}const Fn=new re.nKC("",{providedIn:"root",factory:()=>!1});re.Z63;function getBootstrapListener(){const te=(0,re.WQX)(re.zZn);return ne=>{const ie=te.get(re.o8S);if(ne!==ie.components[0])return;const le=te.get(xn),ce=te.get(jn);1===te.get(Vn)&&le.initialNavigation(),te.get(Gn,null,re.$GK.Optional)?.setUpPreloading(),te.get(On,null,re.$GK.Optional)?.init(),le.resetRootComponentType(ie.componentTypes[0]),ce.closed||(ce.next(),ce.complete(),ce.unsubscribe())}}const jn=new re.nKC("bootstrap done indicator",{factory:()=>new xe.B}),Vn=new re.nKC("initial navigation",{providedIn:"root",factory:()=>1});function withDebugTracing(){let te=[];return te=[{provide:re.Z63,multi:!0,useFactory:()=>{const te=(0,re.WQX)(xn);return()=>te.events.subscribe((te=>{console.group?.(`Router Event: ${te.constructor.name}`),console.log(function stringifyEvent(te){switch(te.type){case Gt.ActivationEnd:return`ActivationEnd(path: '${te.snapshot.routeConfig?.path||""}')`;case Gt.ActivationStart:return`ActivationStart(path: '${te.snapshot.routeConfig?.path||""}')`;case Gt.ChildActivationEnd:return`ChildActivationEnd(path: '${te.snapshot.routeConfig?.path||""}')`;case Gt.ChildActivationStart:return`ChildActivationStart(path: '${te.snapshot.routeConfig?.path||""}')`;case Gt.GuardsCheckEnd:return`GuardsCheckEnd(id: ${te.id}, url: '${te.url}', urlAfterRedirects: '${te.urlAfterRedirects}', state: ${te.state}, shouldActivate: ${te.shouldActivate})`;case Gt.GuardsCheckStart:return`GuardsCheckStart(id: ${te.id}, url: '${te.url}', urlAfterRedirects: '${te.urlAfterRedirects}', state: ${te.state})`;case Gt.NavigationCancel:return`NavigationCancel(id: ${te.id}, url: '${te.url}')`;case Gt.NavigationSkipped:return`NavigationSkipped(id: ${te.id}, url: '${te.url}')`;case Gt.NavigationEnd:return`NavigationEnd(id: ${te.id}, url: '${te.url}', urlAfterRedirects: '${te.urlAfterRedirects}')`;case Gt.NavigationError:return`NavigationError(id: ${te.id}, url: '${te.url}', error: ${te.error})`;case Gt.NavigationStart:return`NavigationStart(id: ${te.id}, url: '${te.url}')`;case Gt.ResolveEnd:return`ResolveEnd(id: ${te.id}, url: '${te.url}', urlAfterRedirects: '${te.urlAfterRedirects}', state: ${te.state})`;case Gt.ResolveStart:return`ResolveStart(id: ${te.id}, url: '${te.url}', urlAfterRedirects: '${te.urlAfterRedirects}', state: ${te.state})`;case Gt.RouteConfigLoadEnd:return`RouteConfigLoadEnd(path: ${te.route.path})`;case Gt.RouteConfigLoadStart:return`RouteConfigLoadStart(path: ${te.route.path})`;case Gt.RoutesRecognized:return`RoutesRecognized(id: ${te.id}, url: '${te.url}', urlAfterRedirects: '${te.urlAfterRedirects}', state: ${te.state})`;case Gt.Scroll:const ne=te.position?`${te.position[0]}, ${te.position[1]}`:null;return`Scroll(anchor: '${te.anchor}', position: '${ne}')`}}(te)),console.log(te),console.groupEnd?.()}))}}],routerFeature(1,te)}const Gn=new re.nKC("router preloader");const zn=new re.nKC("router duplicate forRoot guard"),Hn=[Ee.aZ,{provide:It,useClass:DefaultUrlSerializer},xn,Ut,{provide:ActivatedRoute,useFactory:rootRoute,deps:[xn]},dn,{provide:Fn,useValue:!0}];let Un=(()=>{class RouterModule{constructor(te){}static forRoot(te,ne){return{ngModule:RouterModule,providers:[Hn,ne?.enableTracing?withDebugTracing().ɵproviders:[],{provide:sn,multi:!0,useValue:te},{provide:zn,useFactory:provideForRootGuard,deps:[[xn,new re.Xx1,new re.kdw]]},{provide:an,useValue:ne||{}},ne?.useHash?{provide:Ee.hb,useClass:Ee.fw}:{provide:Ee.hb,useClass:Ee.Sm},{provide:On,useFactory:()=>{const te=(0,re.WQX)(Ee.Xr),ne=(0,re.WQX)(re.SKi),ie=(0,re.WQX)(an),le=(0,re.WQX)(_n),ce=(0,re.WQX)(It);return ie.scrollOffset&&te.setOffset(ie.scrollOffset),new Pn(ce,le,te,ne,ie)}},ne?.preloadingStrategy?(le=ne.preloadingStrategy,routerFeature(0,[{provide:Gn,useExisting:Ln},{provide:PreloadingStrategy,useExisting:le}])).ɵproviders:[],ne?.initialNavigation?provideInitialNavigation(ne):[],ne?.bindToComponentInputs?routerFeature(8,[Wt,{provide:Yt,useExisting:Wt}]).ɵproviders:[],ne?.enableViewTransitions?routerFeature(9,[{provide:hn,useValue:createViewTransition},{provide:fn,useValue:{skipNextTransition:!!ie?.skipInitialTransition,...ie}}]).ɵproviders:[],[{provide:$n,useFactory:getBootstrapListener},{provide:re.iLQ,multi:!0,useExisting:$n}]]};var ie,le}static forChild(te){return{ngModule:RouterModule,providers:[{provide:sn,multi:!0,useValue:te}]}}static#e=this.ɵfac=function RouterModule_Factory(te){return new(te||RouterModule)(re.KVO(zn,8))};static#t=this.ɵmod=re.$C({type:RouterModule});static#n=this.ɵinj=re.G2t({})}return RouterModule})();function provideForRootGuard(te){if(te)throw new re.wOt(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function provideInitialNavigation(te){return["disabled"===te.initialNavigation?routerFeature(3,[{provide:re.hnV,multi:!0,useFactory:()=>{const te=(0,re.WQX)(xn);return()=>{te.setUpLocationChangeListener()}}},{provide:Vn,useValue:2}]).ɵproviders:[],"enabledBlocking"===te.initialNavigation?routerFeature(2,[{provide:Vn,useValue:0},{provide:re.hnV,multi:!0,deps:[re.zZn],useFactory:te=>{const ne=te.get(Ee.hj,Promise.resolve());return()=>ne.then((()=>new Promise((ne=>{const ie=te.get(xn),re=te.get(jn);afterNextNavigation(ie,(()=>{ne(!0)})),te.get(_n).afterPreactivation=()=>(ne(!0),re.closed?(0,ue.of)(void 0):re),ie.initialNavigation()}))))}}]).ɵproviders:[]]}const $n=new re.nKC("Router Initializer")},3005:(te,ne,ie)=>{"use strict";function isBuffer(te){return te&&te.constructor&&"function"==typeof te.constructor.isBuffer&&te.constructor.isBuffer(te)}function keyIdentity(te){return te}function flatten(te,ne){const ie=(ne=ne||{}).delimiter||".",re=ne.maxDepth,le=ne.transformKey||keyIdentity,ce={};return function step(te,de,ue){ue=ue||1,Object.keys(te).forEach((function(me){const ge=te[me],fe=ne.safe&&Array.isArray(ge),_e=Object.prototype.toString.call(ge),be=isBuffer(ge),Ce="[object Object]"===_e||"[object Array]"===_e,ye=de?de+ie+le(me):le(me);if(!fe&&!be&&Ce&&Object.keys(ge).length&&(!ne.maxDepth||ue<re))return step(ge,ye,ue+1);ce[ye]=ge}))}(te),ce}function unflatten(te,ne){const ie=(ne=ne||{}).delimiter||".",re=ne.overwrite||!1,le=ne.transformKey||keyIdentity,ce={};if(isBuffer(te)||"[object Object]"!==Object.prototype.toString.call(te))return te;function getkey(te){const ie=Number(te);return isNaN(ie)||-1!==te.indexOf(".")||ne.object?te:ie}return te=Object.keys(te).reduce((function(re,le){const ce=Object.prototype.toString.call(te[le]);return!("[object Object]"===ce||"[object Array]"===ce)||function isEmpty(te){const ne=Object.prototype.toString.call(te),ie="[object Object]"===ne;return!te||("[object Array]"===ne?!te.length:ie?!Object.keys(te).length:void 0)}(te[le])?(re[le]=te[le],re):function addKeys(te,ne,re){return Object.keys(re).reduce((function(ne,le){return ne[te+ie+le]=re[le],ne}),ne)}(le,re,flatten(te[le],ne))}),{}),Object.keys(te).forEach((function(de){const ue=de.split(ie).map(le);let me=getkey(ue.shift()),ge=getkey(ue[0]),fe=ce;for(;void 0!==ge;){if("__proto__"===me)return;const te=Object.prototype.toString.call(fe[me]),ie="[object Object]"===te||"[object Array]"===te;if(!re&&!ie&&void 0!==fe[me])return;(re&&!ie||!re&&null==fe[me])&&(fe[me]="number"!=typeof ge||ne.object?{}:[]),fe=fe[me],ue.length>0&&(me=getkey(ue.shift()),ge=getkey(ue[0]))}fe[me]=unflatten(te[de],ne)})),ce}ie.d(ne,{B:()=>flatten,s:()=>unflatten})},3828:(te,ne,ie)=>{"use strict";ie.d(ne,{$9:()=>Ne,E:()=>_e,EE:()=>ye,Ei:()=>xe,Gg:()=>Ee,Rn:()=>ge,TJ:()=>ue,Y9:()=>ke,Yj:()=>Me,bg:()=>be,r1:()=>we,si:()=>Ce,td:()=>me,tl:()=>fe,wi:()=>Se});var re=ie(3107),le=ie(8447),ce=ie(1939);const de=["*"];var ue=function(te){return te[te.ACCEPT=0]="ACCEPT",te[te.REJECT=1]="REJECT",te[te.CANCEL=2]="CANCEL",te}(ue||{});let me=(()=>{class ConfirmationService{requireConfirmationSource=new le.B;acceptConfirmationSource=new le.B;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(te){return this.requireConfirmationSource.next(te),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static ɵfac=function ConfirmationService_Factory(te){return new(te||ConfirmationService)};static ɵprov=re.jDH({token:ConfirmationService,factory:ConfirmationService.ɵfac})}return ConfirmationService})(),ge=(()=>class FilterMatchMode{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),fe=(()=>class FilterOperator{static AND="and";static OR="or"})(),_e=(()=>{class FilterService{filter(te,ne,ie,re,le){let de=[];if(te)for(let ue of te)for(let te of ne){let ne=ce.BF.resolveFieldData(ue,te);if(this.filters[re](ne,ie,le)){de.push(ue);break}}return de}filters={startsWith:(te,ne,ie)=>{if(null==ne||""===ne.trim())return!0;if(null==te)return!1;let re=ce.BF.removeAccents(ne.toString()).toLocaleLowerCase(ie);return ce.BF.removeAccents(te.toString()).toLocaleLowerCase(ie).slice(0,re.length)===re},contains:(te,ne,ie)=>{if(null==ne||"string"==typeof ne&&""===ne.trim())return!0;if(null==te)return!1;let re=ce.BF.removeAccents(ne.toString()).toLocaleLowerCase(ie);return-1!==ce.BF.removeAccents(te.toString()).toLocaleLowerCase(ie).indexOf(re)},notContains:(te,ne,ie)=>{if(null==ne||"string"==typeof ne&&""===ne.trim())return!0;if(null==te)return!1;let re=ce.BF.removeAccents(ne.toString()).toLocaleLowerCase(ie);return-1===ce.BF.removeAccents(te.toString()).toLocaleLowerCase(ie).indexOf(re)},endsWith:(te,ne,ie)=>{if(null==ne||""===ne.trim())return!0;if(null==te)return!1;let re=ce.BF.removeAccents(ne.toString()).toLocaleLowerCase(ie),le=ce.BF.removeAccents(te.toString()).toLocaleLowerCase(ie);return-1!==le.indexOf(re,le.length-re.length)},equals:(te,ne,ie)=>null==ne||"string"==typeof ne&&""===ne.trim()||null!=te&&(te.getTime&&ne.getTime?te.getTime()===ne.getTime():te==ne||ce.BF.removeAccents(te.toString()).toLocaleLowerCase(ie)==ce.BF.removeAccents(ne.toString()).toLocaleLowerCase(ie)),notEquals:(te,ne,ie)=>null!=ne&&("string"!=typeof ne||""!==ne.trim())&&(null==te||(te.getTime&&ne.getTime?te.getTime()!==ne.getTime():te!=ne&&ce.BF.removeAccents(te.toString()).toLocaleLowerCase(ie)!=ce.BF.removeAccents(ne.toString()).toLocaleLowerCase(ie))),in:(te,ne)=>{if(null==ne||0===ne.length)return!0;for(let ie=0;ie<ne.length;ie++)if(ce.BF.equals(te,ne[ie]))return!0;return!1},between:(te,ne)=>null==ne||null==ne[0]||null==ne[1]||null!=te&&(te.getTime?ne[0].getTime()<=te.getTime()&&te.getTime()<=ne[1].getTime():ne[0]<=te&&te<=ne[1]),lt:(te,ne,ie)=>null==ne||null!=te&&(te.getTime&&ne.getTime?te.getTime()<ne.getTime():te<ne),lte:(te,ne,ie)=>null==ne||null!=te&&(te.getTime&&ne.getTime?te.getTime()<=ne.getTime():te<=ne),gt:(te,ne,ie)=>null==ne||null!=te&&(te.getTime&&ne.getTime?te.getTime()>ne.getTime():te>ne),gte:(te,ne,ie)=>null==ne||null!=te&&(te.getTime&&ne.getTime?te.getTime()>=ne.getTime():te>=ne),is:(te,ne,ie)=>this.filters.equals(te,ne,ie),isNot:(te,ne,ie)=>this.filters.notEquals(te,ne,ie),before:(te,ne,ie)=>this.filters.lt(te,ne,ie),after:(te,ne,ie)=>this.filters.gt(te,ne,ie),dateIs:(te,ne)=>null==ne||null!=te&&te.toDateString()===ne.toDateString(),dateIsNot:(te,ne)=>null==ne||null!=te&&te.toDateString()!==ne.toDateString(),dateBefore:(te,ne)=>null==ne||null!=te&&te.getTime()<ne.getTime(),dateAfter:(te,ne)=>{if(null==ne)return!0;if(null==te)return!1;const ie=new Date(te);return ie.setHours(0,0,0,0),ie.getTime()>ne.getTime()}};register(te,ne){this.filters[te]=ne}static ɵfac=function FilterService_Factory(te){return new(te||FilterService)};static ɵprov=re.jDH({token:FilterService,factory:FilterService.ɵfac,providedIn:"root"})}return FilterService})(),be=(()=>{class MessageService{messageSource=new le.B;clearSource=new le.B;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(te){te&&this.messageSource.next(te)}addAll(te){te&&te.length&&this.messageSource.next(te)}clear(te){this.clearSource.next(te||null)}static ɵfac=function MessageService_Factory(te){return new(te||MessageService)};static ɵprov=re.jDH({token:MessageService,factory:MessageService.ɵfac})}return MessageService})(),Ce=(()=>{class OverlayService{clickSource=new le.B;clickObservable=this.clickSource.asObservable();add(te){te&&this.clickSource.next(te)}static ɵfac=function OverlayService_Factory(te){return new(te||OverlayService)};static ɵprov=re.jDH({token:OverlayService,factory:OverlayService.ɵfac,providedIn:"root"})}return OverlayService})(),ye=(()=>class PrimeIcons{static ADDRESS_BOOK="pi pi-address-book";static ALIGN_CENTER="pi pi-align-center";static ALIGN_JUSTIFY="pi pi-align-justify";static ALIGN_LEFT="pi pi-align-left";static ALIGN_RIGHT="pi pi-align-right";static AMAZON="pi pi-amazon";static ANDROID="pi pi-android";static ANGLE_DOUBLE_DOWN="pi pi-angle-double-down";static ANGLE_DOUBLE_LEFT="pi pi-angle-double-left";static ANGLE_DOUBLE_RIGHT="pi pi-angle-double-right";static ANGLE_DOUBLE_UP="pi pi-angle-double-up";static ANGLE_DOWN="pi pi-angle-down";static ANGLE_LEFT="pi pi-angle-left";static ANGLE_RIGHT="pi pi-angle-right";static ANGLE_UP="pi pi-angle-up";static APPLE="pi pi-apple";static ARROWS_ALT="pi pi-arrows-alt";static ARROW_CIRCLE_DOWN="pi pi-arrow-circle-down";static ARROW_CIRCLE_LEFT="pi pi-arrow-circle-left";static ARROW_CIRCLE_RIGHT="pi pi-arrow-circle-right";static ARROW_CIRCLE_UP="pi pi-arrow-circle-up";static ARROW_DOWN="pi pi-arrow-down";static ARROW_DOWN_LEFT="pi pi-arrow-down-left";static ARROW_DOWN_LEFT_AND_ARROW_UP_RIGHT_TO_CENTER="pi pi-arrow-down-left-and-arrow-up-right-to-center";static ARROW_DOWN_RIGHT="pi pi-arrow-down-right";static ARROW_LEFT="pi pi-arrow-left";static ARROW_RIGHT_ARROW_LEFT="pi pi-arrow-right-arrow-left";static ARROW_RIGHT="pi pi-arrow-right";static ARROW_UP="pi pi-arrow-up";static ARROW_UP_LEFT="pi pi-arrow-up-left";static ARROW_UP_RIGHT="pi pi-arrow-up-right";static ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="pi pi-arrow-up-right-and-arrow-down-left-from-center";static ARROW_H="pi pi-arrows-h";static ARROW_V="pi pi-arrows-v";static ASTERIKS="pi pi-asteriks";static AT="pi pi-at";static BACKWARD="pi pi-backward";static BAN="pi pi-ban";static BARCODE="pi pi-barcode";static BARS="pi pi-bars";static BELL="pi pi-bell";static BELL_SLASH="pi pi-bell-slash";static BITCOIN="pi pi-bitcoin";static BOLT="pi pi-bolt";static BOOK="pi pi-book";static BOOKMARK="pi pi-bookmark";static BOOKMARK_FILL="pi pi-bookmark-fill";static BOX="pi pi-box";static BRIEFCASE="pi pi-briefcase";static BUILDING="pi pi-building";static BUILDING_COLUMNS="pi pi-building-columns";static BULLSEYE="pi pi-bullseye";static CALCULATOR="pi pi-calculator";static CALENDAR="pi pi-calendar";static CALENDAR_CLOCK="pi pi-calendar-clock";static CALENDAR_MINUS="pi pi-calendar-minus";static CALENDAR_PLUS="pi pi-calendar-plus";static CALENDAR_TIMES="pi pi-calendar-times";static CAMERA="pi pi-camera";static CAR="pi pi-car";static CARET_DOWN="pi pi-caret-down";static CARET_LEFT="pi pi-caret-left";static CARET_RIGHT="pi pi-caret-right";static CARET_UP="pi pi-caret-up";static CART_ARROW_DOWN="pi pi-cart-arrow-down";static CART_MINUS="pi pi-cart-minus";static CART_PLUS="pi pi-cart-plus";static CHART_BAR="pi pi-chart-bar";static CHART_LINE="pi pi-chart-line";static CHART_PIE="pi pi-chart-pie";static CHART_SCATTER="pi pi-chart-scatter";static CHECK="pi pi-check";static CHECK_CIRCLE="pi pi-check-circle";static CHECK_SQUARE="pi pi-check-square";static CHEVRON_CIRCLE_DOWN="pi pi-chevron-circle-down";static CHEVRON_CIRCLE_LEFT="pi pi-chevron-circle-left";static CHEVRON_CIRCLE_RIGHT="pi pi-chevron-circle-right";static CHEVRON_CIRCLE_UP="pi pi-chevron-circle-up";static CHEVRON_DOWN="pi pi-chevron-down";static CHEVRON_LEFT="pi pi-chevron-left";static CHEVRON_RIGHT="pi pi-chevron-right";static CHEVRON_UP="pi pi-chevron-up";static CIRCLE="pi pi-circle";static CIRCLE_FILL="pi pi-circle-fill";static CLIPBOARD="pi pi-clipboard";static CLOCK="pi pi-clock";static CLONE="pi pi-clone";static CLOUD="pi pi-cloud";static CLOUD_DOWNLOAD="pi pi-cloud-download";static CLOUD_UPLOAD="pi pi-cloud-upload";static CODE="pi pi-code";static COG="pi pi-cog";static COMMENT="pi pi-comment";static COMMENTS="pi pi-comments";static COMPASS="pi pi-compass";static COPY="pi pi-copy";static CREDIT_CARD="pi pi-credit-card";static CROWN="pi pi-crown";static DATABASE="pi pi-database";static DESKTOP="pi pi-desktop";static DELETE_LEFT="pi pi-delete-left";static DIRECTIONS="pi pi-directions";static DIRECTIONS_ALT="pi pi-directions-alt";static DISCORD="pi pi-discord";static DOLLAR="pi pi-dollar";static DOWNLOAD="pi pi-download";static EJECT="pi pi-eject";static ELLIPSIS_H="pi pi-ellipsis-h";static ELLIPSIS_V="pi pi-ellipsis-v";static ENVELOPE="pi pi-envelope";static EQUALS="pi pi-equals";static ERASER="pi pi-eraser";static ETHEREUM="pi pi-ethereum";static EURO="pi pi-euro";static EXCLAMATION_CIRCLE="pi pi-exclamation-circle";static EXCLAMATION_TRIANGLE="pi pi-exclamation-triangle";static EXPAND="pi pi-expand";static EXTERNAL_LINK="pi pi-external-link";static EYE="pi pi-eye";static EYE_SLASH="pi pi-eye-slash";static FACE_SMILE="pi pi-face-smile";static FACEBOOK="pi pi-facebook";static FAST_BACKWARD="pi pi-fast-backward";static FAST_FORWARD="pi pi-fast-forward";static FILE="pi pi-file";static FILE_ARROW_UP="pi pi-file-arrow-up";static FILE_CHECK="pi pi-file-check";static FILE_EDIT="pi pi-file-edit";static FILE_IMPORT="pi pi-file-import";static FILE_PDF="pi pi-file-pdf";static FILE_PLUS="pi pi-file-plus";static FILE_EXCEL="pi pi-file-excel";static FILE_EXPORT="pi pi-file-export";static FILE_WORD="pi pi-file-word";static FILTER="pi pi-filter";static FILTER_FILL="pi pi-filter-fill";static FILTER_SLASH="pi pi-filter-slash";static FLAG="pi pi-flag";static FLAG_FILL="pi pi-flag-fill";static FOLDER="pi pi-folder";static FOLDER_OPEN="pi pi-folder-open";static FOLDER_PLUS="pi pi-folder-plus";static FORWARD="pi pi-forward";static GAUGE="pi pi-gauge";static GIFT="pi pi-gift";static GITHUB="pi pi-github";static GLOBE="pi pi-globe";static GOOGLE="pi pi-google";static GRADUATION_CAP="pi pi-graduation-cap";static HAMMER="pi pi-hammer";static HASHTAG="pi pi-hashtag";static HEADPHONES="pi pi-headphones";static HEART="pi pi-heart";static HEART_FILL="pi pi-heart-fill";static HISTORY="pi pi-history";static HOME="pi pi-home";static HOURGLASS="pi pi-hourglass";static ID_CARD="pi pi-id-card";static IMAGE="pi pi-image";static IMAGES="pi pi-images";static INBOX="pi pi-inbox";static INDIAN_RUPEE="pi pi-indian-rupee";static INFO="pi pi-info";static INFO_CIRCLE="pi pi-info-circle";static INSTAGRAM="pi pi-instagram";static KEY="pi pi-key";static LANGUAGE="pi pi-language";static LIGHTBULB="pi pi-lightbulb";static LINK="pi pi-link";static LINKEDIN="pi pi-linkedin";static LIST="pi pi-list";static LIST_CHECK="pi pi-list-check";static LOCK="pi pi-lock";static LOCK_OPEN="pi pi-lock-open";static MAP="pi pi-map";static MAP_MARKER="pi pi-map-marker";static MARS="pi pi-mars";static MEGAPHONE="pi pi-megaphone";static MICROCHIP="pi pi-microchip";static MICROCHIP_AI="pi pi-microchip-ai";static MICROPHONE="pi pi-microphone";static MICROSOFT="pi pi-microsoft";static MINUS="pi pi-minus";static MINUS_CIRCLE="pi pi-minus-circle";static MOBILE="pi pi-mobile";static MONEY_BILL="pi pi-money-bill";static MOON="pi pi-moon";static OBJECTS_COLUMN="pi pi-objects-column";static PALETTE="pi pi-palette";static PAPERCLIP="pi pi-paperclip";static PAUSE="pi pi-pause";static PAUSE_CIRCLE="pi pi-pause-circle";static PAYPAL="pi pi-paypal";static PEN_TO_SQUARE="pi pi-pen-to-square";static PENCIL="pi pi-pencil";static PERCENTAGE="pi pi-percentage";static PHONE="pi pi-phone";static PINTEREST="pi pi-pinterest";static PLAY="pi pi-play";static PLAY_CIRCLE="pi pi-play-circle";static PLUS="pi pi-plus";static PLUS_CIRCLE="pi pi-plus-circle";static POUND="pi pi-pound";static POWER_OFF="pi pi-power-off";static PRIME="pi pi-prime";static PRINT="pi pi-print";static QRCODE="pi pi-qrcode";static QUESTION="pi pi-question";static QUESTION_CIRCLE="pi pi-question-circle";static RECEIPT="pi pi-receipt";static REDDIT="pi pi-reddit";static REFRESH="pi pi-refresh";static REPLAY="pi pi-replay";static REPLY="pi pi-reply";static SAVE="pi pi-save";static SEARCH="pi pi-search";static SEARCH_MINUS="pi pi-search-minus";static SEARCH_PLUS="pi pi-search-plus";static SEND="pi pi-send";static SERVER="pi pi-server";static SHARE_ALT="pi pi-share-alt";static SHIELD="pi pi-shield";static SHOP="pi pi-shop";static SHOPPING_BAG="pi pi-shopping-bag";static SHOPPING_CART="pi pi-shopping-cart";static SIGN_IN="pi pi-sign-in";static SIGN_OUT="pi pi-sign-out";static SITEMAP="pi pi-sitemap";static SLACK="pi pi-slack";static SLIDERS_H="pi pi-sliders-h";static SLIDERS_V="pi pi-sliders-v";static SORT="pi pi-sort";static SORT_ALPHA_DOWN="pi pi-sort-alpha-down";static SORT_ALPHA_DOWN_ALT="pi pi-sort-alpha-down-alt";static SORT_ALPHA_UP="pi pi-sort-alpha-up";static SORT_ALPHA_UP_ALT="pi pi-sort-alpha-up-alt";static SORT_ALT="pi pi-sort-alt";static SORT_ALT_SLASH="pi pi-sort-alt-slash";static SORT_AMOUNT_DOWN="pi pi-sort-amount-down";static SORT_AMOUNT_DOWN_ALT="pi pi-sort-amount-down-alt";static SORT_AMOUNT_UP="pi pi-sort-amount-up";static SORT_AMOUNT_UP_ALT="pi pi-sort-amount-up-alt";static SORT_DOWN="pi pi-sort-down";static SORT_DOWN_FILL="pi pi-sort-down-fill";static SORT_NUMERIC_DOWN="pi pi-sort-numeric-down";static SORT_NUMERIC_DOWN_ALT="pi pi-sort-numeric-down-alt";static SORT_NUMERIC_UP="pi pi-sort-numeric-up";static SORT_NUMERIC_UP_ALT="pi pi-sort-numeric-up-alt";static SORT_UP="pi pi-sort-up";static SORT_UP_FILL="pi pi-sort-up-fill";static SPARKLES="pi pi-sparkles";static SPINNER="pi pi-spinner";static SPINNER_DOTTED="pi pi-spinner-dotted";static STAR="pi pi-star";static STAR_FILL="pi pi-star-fill";static STAR_HALF="pi pi-star-half";static STAR_HALF_FILL="pi pi-star-half-fill";static STEP_BACKWARD="pi pi-step-backward";static STEP_BACKWARD_ALT="pi pi-step-backward-alt";static STEP_FORWARD="pi pi-step-forward";static STEP_FORWARD_ALT="pi pi-step-forward-alt";static STOP="pi pi-stop";static STOP_CIRCLE="pi pi-stop-circle";static STOPWATCH="pi pi-stopwatch";static SUN="pi pi-sun";static SYNC="pi pi-sync";static TABLE="pi pi-table";static TABLET="pi pi-tablet";static TAG="pi pi-tag";static TAGS="pi pi-tags";static TELEGRAM="pi pi-telegram";static TH_LARGE="pi pi-th-large";static THUMBS_DOWN="pi pi-thumbs-down";static THUMBS_DOWN_FILL="pi pi-thumbs-down-fill";static THUMBS_UP="pi pi-thumbs-up";static THUMBS_UP_FILL="pi pi-thumbs-up-fill";static THUMBTACK="pi pi-thumbtack";static TICKET="pi pi-ticket";static TIKTOK="pi pi-tiktok";static TIMES="pi pi-times";static TIMES_CIRCLE="pi pi-times-circle";static TRASH="pi pi-trash";static TROPHY="pi pi-trophy";static TRUCK="pi pi-truck";static TURKISH_LIRA="pi pi-turkish-lira";static TWITCH="pi pi-twitch";static TWITTER="pi pi-twitter";static UNDO="pi pi-undo";static UNLOCK="pi pi-unlock";static UPLOAD="pi pi-upload";static USER="pi pi-user";static USER_EDIT="pi pi-user-edit";static USER_MINUS="pi pi-user-minus";static USER_PLUS="pi pi-user-plus";static USERS="pi pi-users";static VENUS="pi pi-venus";static VERIFIED="pi pi-verified";static VIDEO="pi pi-video";static VIMEO="pi pi-vimeo";static VOLUME_DOWN="pi pi-volume-down";static VOLUME_OFF="pi pi-volume-off";static VOLUME_UP="pi pi-volume-up";static WALLET="pi pi-wallet";static WAREHOUSE="pi pi-warehouse";static WAVE_PULSE="pi pi-wave-pulse";static WHATSAPP="pi pi-whatsapp";static WIFI="pi pi-wifi";static WINDOW_MAXIMIZE="pi pi-window-maximize";static WINDOW_MINIMIZE="pi pi-window-minimize";static WRENCH="pi pi-wrench";static YOUTUBE="pi pi-youtube"})(),we=(()=>{class PrimeNGConfig{ripple=!1;inputStyle=(0,re.vPA)("outlined");overlayOptions={};csp=(0,re.vPA)({nonce:void 0});filterMatchModeOptions={text:[ge.STARTS_WITH,ge.CONTAINS,ge.NOT_CONTAINS,ge.ENDS_WITH,ge.EQUALS,ge.NOT_EQUALS],numeric:[ge.EQUALS,ge.NOT_EQUALS,ge.LESS_THAN,ge.LESS_THAN_OR_EQUAL_TO,ge.GREATER_THAN,ge.GREATER_THAN_OR_EQUAL_TO],date:[ge.DATE_IS,ge.DATE_IS_NOT,ge.DATE_BEFORE,ge.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new le.B;translationObserver=this.translationSource.asObservable();getTranslation(te){return this.translation[te]}setTranslation(te){this.translation={...this.translation,...te},this.translationSource.next(this.translation)}static ɵfac=function PrimeNGConfig_Factory(te){return new(te||PrimeNGConfig)};static ɵprov=re.jDH({token:PrimeNGConfig,factory:PrimeNGConfig.ɵfac,providedIn:"root"})}return PrimeNGConfig})(),ke=(()=>{class Header{static ɵfac=function Header_Factory(te){return new(te||Header)};static ɵcmp=re.VBU({type:Header,selectors:[["p-header"]],standalone:!0,features:[re.aNF],ngContentSelectors:de,decls:1,vars:0,template:function Header_Template(te,ne){1&te&&(re.NAR(),re.SdG(0))},encapsulation:2})}return Header})(),Se=(()=>{class Footer{static ɵfac=function Footer_Factory(te){return new(te||Footer)};static ɵcmp=re.VBU({type:Footer,selectors:[["p-footer"]],standalone:!0,features:[re.aNF],ngContentSelectors:de,decls:1,vars:0,template:function Footer_Template(te,ne){1&te&&(re.NAR(),re.SdG(0))},encapsulation:2})}return Footer})(),xe=(()=>{class PrimeTemplate{template;type;name;constructor(te){this.template=te}getType(){return this.name}static ɵfac=function PrimeTemplate_Factory(te){return new(te||PrimeTemplate)(re.rXU(re.C4Q))};static ɵdir=re.FsC({type:PrimeTemplate,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[re.Mj6.None,"pTemplate","name"]},standalone:!0})}return PrimeTemplate})(),Ee=(()=>{class SharedModule{static ɵfac=function SharedModule_Factory(te){return new(te||SharedModule)};static ɵmod=re.$C({type:SharedModule});static ɵinj=re.G2t({})}return SharedModule})(),Me=(()=>class TranslationKeys{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"})(),Ne=(()=>{class TreeDragDropService{dragStartSource=new le.B;dragStopSource=new le.B;dragStart$=this.dragStartSource.asObservable();dragStop$=this.dragStopSource.asObservable();startDrag(te){this.dragStartSource.next(te)}stopDrag(te){this.dragStopSource.next(te)}static ɵfac=function TreeDragDropService_Factory(te){return new(te||TreeDragDropService)};static ɵprov=re.jDH({token:TreeDragDropService,factory:TreeDragDropService.ɵfac})}return TreeDragDropService})()},336:(te,ne,ie)=>{"use strict";ie.d(ne,{$$:()=>Ge,j9:()=>Ve});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(3828),ue=ie(2583),me=ie(7280),ge=ie(5724),fe=ie(7721),_e=ie(1080),be=ie(1646),Ce=ie(3934),ye=ie(1939),we=ie(8471),ke=ie(5774),Se=ie(239),xe=ie(60);const Ee=["container"],Me=["focusInput"],Ne=["multiIn"],Re=["multiContainer"],Le=["ddBtn"],Oe=["items"],Pe=["scroller"],Fe=["overlay"];function AutoComplete_input_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"input",13,14),le.bIt("input",(function AutoComplete_input_2_Template_input_input_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInput(ne))}))("keydown",(function AutoComplete_input_2_Template_input_keydown_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onKeyDown(ne))}))("change",(function AutoComplete_input_2_Template_input_change_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputChange(ne))}))("focus",(function AutoComplete_input_2_Template_input_focus_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputFocus(ne))}))("blur",(function AutoComplete_input_2_Template_input_blur_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputBlur(ne))}))("paste",(function AutoComplete_input_2_Template_input_paste_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputPaste(ne))}))("keyup",(function AutoComplete_input_2_Template_input_keyup_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputKeyUp(ne))})),le.k0s()}if(2&te){const te=le.XpG();let ne;le.HbH(te.inputStyleClass),le.Y8G("autofocus",te.autofocus)("ngClass",te.inputClass)("ngStyle",te.inputStyle)("type",te.type)("autocomplete",te.autocomplete)("required",te.required)("name",te.name)("tabindex",te.disabled?-1:te.tabindex)("readonly",te.readonly)("disabled",te.disabled),le.BMQ("value",te.inputValue())("id",te.inputId)("placeholder",te.placeholder)("size",te.size)("maxlength",te.maxlength)("aria-label",te.ariaLabel)("aria-labelledby",te.ariaLabelledBy)("aria-required",te.required)("aria-expanded",null!==(ne=te.overlayVisible)&&void 0!==ne&&ne)("aria-controls",te.overlayVisible?te.id+"_list":null)("aria-activedescendant",te.focused?te.focusedOptionId:void 0)}}function AutoComplete_ng_container_3_TimesIcon_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"TimesIcon",17),le.bIt("click",(function AutoComplete_ng_container_3_TimesIcon_1_Template_TimesIcon_click_0_listener(){le.eBV(te);const ne=le.XpG(2);return le.Njj(ne.clear())})),le.k0s()}2&te&&(le.Y8G("styleClass","p-autocomplete-clear-icon"),le.BMQ("aria-hidden",!0))}function AutoComplete_ng_container_3_span_2_1_ng_template_0_Template(te,ne){}function AutoComplete_ng_container_3_span_2_1_Template(te,ne){1&te&&le.DNE(0,AutoComplete_ng_container_3_span_2_1_ng_template_0_Template,0,0,"ng-template")}function AutoComplete_ng_container_3_span_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"span",18),le.bIt("click",(function AutoComplete_ng_container_3_span_2_Template_span_click_0_listener(){le.eBV(te);const ne=le.XpG(2);return le.Njj(ne.clear())})),le.DNE(1,AutoComplete_ng_container_3_span_2_1_Template,1,0,null,9),le.k0s()}if(2&te){const te=le.XpG(2);le.BMQ("aria-hidden",!0),le.R7$(),le.Y8G("ngTemplateOutlet",te.clearIconTemplate)}}function AutoComplete_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,AutoComplete_ng_container_3_TimesIcon_1_Template,1,2,"TimesIcon",15)(2,AutoComplete_ng_container_3_span_2_Template,2,2,"span",16),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",!te.clearIconTemplate),le.R7$(),le.Y8G("ngIf",te.clearIconTemplate)}}function AutoComplete_ul_4_li_2_ng_container_2_Template(te,ne){1&te&&le.eu8(0)}function AutoComplete_ul_4_li_2_span_3_Template(te,ne){if(1&te&&(le.j41(0,"span",31),le.EFF(1),le.k0s()),2&te){const te=le.XpG().$implicit,ne=le.XpG(2);le.R7$(),le.JRh(ne.getMultipleLabel(te))}}function AutoComplete_ul_4_li_2_TimesCircleIcon_5_Template(te,ne){1&te&&le.nrm(0,"TimesCircleIcon",32),2&te&&(le.Y8G("styleClass","p-autocomplete-token-icon"),le.BMQ("aria-hidden",!0))}function AutoComplete_ul_4_li_2_span_6_1_ng_template_0_Template(te,ne){}function AutoComplete_ul_4_li_2_span_6_1_Template(te,ne){1&te&&le.DNE(0,AutoComplete_ul_4_li_2_span_6_1_ng_template_0_Template,0,0,"ng-template")}function AutoComplete_ul_4_li_2_span_6_Template(te,ne){if(1&te&&(le.j41(0,"span",33),le.DNE(1,AutoComplete_ul_4_li_2_span_6_1_Template,1,0,null,9),le.k0s()),2&te){const te=le.XpG(3);le.BMQ("aria-hidden",!0),le.R7$(),le.Y8G("ngTemplateOutlet",te.removeIconTemplate)}}const _c8=te=>({"p-autocomplete-token":!0,"p-focus":te}),_c9=te=>({$implicit:te});function AutoComplete_ul_4_li_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"li",24,25),le.DNE(2,AutoComplete_ul_4_li_2_ng_container_2_Template,1,0,"ng-container",26)(3,AutoComplete_ul_4_li_2_span_3_Template,2,1,"span",27),le.j41(4,"span",28),le.bIt("click",(function AutoComplete_ul_4_li_2_Template_span_click_4_listener(ne){const ie=le.eBV(te).index,re=le.XpG(2);return le.Njj(re.readonly?"":re.removeOption(ne,ie))})),le.DNE(5,AutoComplete_ul_4_li_2_TimesCircleIcon_5_Template,1,2,"TimesCircleIcon",29)(6,AutoComplete_ul_4_li_2_span_6_Template,2,2,"span",30),le.k0s()()}if(2&te){const te=ne.$implicit,ie=ne.index,re=le.XpG(2);le.Y8G("ngClass",le.eq3(11,_c8,re.focusedMultipleOptionIndex()===ie)),le.BMQ("id",re.id+"_multiple_option_"+ie)("aria-label",re.getOptionLabel(te))("aria-setsize",re.modelValue().length)("aria-posinset",ie+1)("aria-selected",!0),le.R7$(2),le.Y8G("ngTemplateOutlet",re.selectedItemTemplate)("ngTemplateOutletContext",le.eq3(13,_c9,te)),le.R7$(),le.Y8G("ngIf",!re.selectedItemTemplate),le.R7$(2),le.Y8G("ngIf",!re.removeIconTemplate),le.R7$(),le.Y8G("ngIf",re.removeIconTemplate)}}function AutoComplete_ul_4_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"ul",19,20),le.bIt("focus",(function AutoComplete_ul_4_Template_ul_focus_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onMultipleContainerFocus(ne))}))("blur",(function AutoComplete_ul_4_Template_ul_blur_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onMultipleContainerBlur(ne))}))("keydown",(function AutoComplete_ul_4_Template_ul_keydown_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onMultipleContainerKeyDown(ne))})),le.DNE(2,AutoComplete_ul_4_li_2_Template,7,15,"li",21),le.j41(3,"li",22)(4,"input",23,14),le.bIt("input",(function AutoComplete_ul_4_Template_input_input_4_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInput(ne))}))("keydown",(function AutoComplete_ul_4_Template_input_keydown_4_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onKeyDown(ne))}))("change",(function AutoComplete_ul_4_Template_input_change_4_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputChange(ne))}))("focus",(function AutoComplete_ul_4_Template_input_focus_4_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputFocus(ne))}))("blur",(function AutoComplete_ul_4_Template_input_blur_4_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputBlur(ne))}))("paste",(function AutoComplete_ul_4_Template_input_paste_4_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputPaste(ne))}))("keyup",(function AutoComplete_ul_4_Template_input_keyup_4_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputKeyUp(ne))})),le.k0s()()()}if(2&te){const te=le.XpG();let ne;le.Y8G("ngClass",te.multiContainerClass)("tabindex",-1),le.BMQ("aria-orientation","horizontal")("aria-activedescendant",te.focused?te.focusedMultipleOptionId:void 0),le.R7$(2),le.Y8G("ngForOf",te.modelValue()),le.R7$(2),le.HbH(te.inputStyleClass),le.Y8G("autofocus",te.autofocus)("ngClass",te.inputClass)("ngStyle",te.inputStyle)("autocomplete",te.autocomplete)("required",te.required)("tabindex",te.disabled?-1:te.tabindex)("readonly",te.readonly)("disabled",te.disabled),le.BMQ("type",te.type)("id",te.inputId)("name",te.name)("placeholder",te.filled?null:te.placeholder)("size",te.size)("maxlength",te.maxlength)("aria-label",te.ariaLabel)("aria-labelledby",te.ariaLabelledBy)("aria-required",te.required)("aria-expanded",null!==(ne=te.overlayVisible)&&void 0!==ne&&ne)("aria-controls",te.overlayVisible?te.id+"_list":null)("aria-activedescendant",te.focused?te.focusedOptionId:void 0)}}function AutoComplete_ng_container_5_SpinnerIcon_1_Template(te,ne){1&te&&le.nrm(0,"SpinnerIcon",36),2&te&&(le.Y8G("styleClass","p-autocomplete-loader")("spin",!0),le.BMQ("aria-hidden",!0))}function AutoComplete_ng_container_5_span_2_1_ng_template_0_Template(te,ne){}function AutoComplete_ng_container_5_span_2_1_Template(te,ne){1&te&&le.DNE(0,AutoComplete_ng_container_5_span_2_1_ng_template_0_Template,0,0,"ng-template")}function AutoComplete_ng_container_5_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span",37),le.DNE(1,AutoComplete_ng_container_5_span_2_1_Template,1,0,null,9),le.k0s()),2&te){const te=le.XpG(2);le.BMQ("aria-hidden",!0),le.R7$(),le.Y8G("ngTemplateOutlet",te.loadingIconTemplate)}}function AutoComplete_ng_container_5_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,AutoComplete_ng_container_5_SpinnerIcon_1_Template,1,3,"SpinnerIcon",34)(2,AutoComplete_ng_container_5_span_2_Template,2,2,"span",35),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",!te.loadingIconTemplate),le.R7$(),le.Y8G("ngIf",te.loadingIconTemplate)}}function AutoComplete_button_6_span_2_Template(te,ne){if(1&te&&le.nrm(0,"span",41),2&te){const te=le.XpG(2);le.Y8G("ngClass",te.dropdownIcon),le.BMQ("aria-hidden",!0)}}function AutoComplete_button_6_ng_container_3_ChevronDownIcon_1_Template(te,ne){1&te&&le.nrm(0,"ChevronDownIcon")}function AutoComplete_button_6_ng_container_3_2_ng_template_0_Template(te,ne){}function AutoComplete_button_6_ng_container_3_2_Template(te,ne){1&te&&le.DNE(0,AutoComplete_button_6_ng_container_3_2_ng_template_0_Template,0,0,"ng-template")}function AutoComplete_button_6_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,AutoComplete_button_6_ng_container_3_ChevronDownIcon_1_Template,1,0,"ChevronDownIcon",3)(2,AutoComplete_button_6_ng_container_3_2_Template,1,0,null,9),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",!te.dropdownIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.dropdownIconTemplate)}}function AutoComplete_button_6_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"button",38,39),le.bIt("click",(function AutoComplete_button_6_Template_button_click_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.handleDropdownClick(ne))})),le.DNE(2,AutoComplete_button_6_span_2_Template,1,2,"span",40)(3,AutoComplete_button_6_ng_container_3_Template,3,2,"ng-container",3),le.k0s()}if(2&te){const te=le.XpG();le.Y8G("disabled",te.disabled),le.BMQ("aria-label",te.dropdownAriaLabel)("tabindex",te.tabindex),le.R7$(2),le.Y8G("ngIf",te.dropdownIcon),le.R7$(),le.Y8G("ngIf",!te.dropdownIcon)}}function AutoComplete_ng_container_10_Template(te,ne){1&te&&le.eu8(0)}function AutoComplete_p_scroller_11_ng_template_2_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}const _c10=(te,ne)=>({$implicit:te,options:ne});function AutoComplete_p_scroller_11_ng_template_2_Template(te,ne){if(1&te&&le.DNE(0,AutoComplete_p_scroller_11_ng_template_2_ng_container_0_Template,1,0,"ng-container",26),2&te){const te=ne.$implicit,ie=ne.options;le.XpG(2);const re=le.sdS(14);le.Y8G("ngTemplateOutlet",re)("ngTemplateOutletContext",le.l_i(2,_c10,te,ie))}}function AutoComplete_p_scroller_11_ng_container_3_ng_template_1_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}const _c11=te=>({options:te});function AutoComplete_p_scroller_11_ng_container_3_ng_template_1_Template(te,ne){if(1&te&&le.DNE(0,AutoComplete_p_scroller_11_ng_container_3_ng_template_1_ng_container_0_Template,1,0,"ng-container",26),2&te){const te=ne.options,ie=le.XpG(3);le.Y8G("ngTemplateOutlet",ie.loaderTemplate)("ngTemplateOutletContext",le.eq3(2,_c11,te))}}function AutoComplete_p_scroller_11_ng_container_3_Template(te,ne){1&te&&(le.qex(0),le.DNE(1,AutoComplete_p_scroller_11_ng_container_3_ng_template_1_Template,1,4,"ng-template",45),le.bVm())}const _c12=te=>({height:te});function AutoComplete_p_scroller_11_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-scroller",42,43),le.bIt("onLazyLoad",(function AutoComplete_p_scroller_11_Template_p_scroller_onLazyLoad_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onLazyLoad.emit(ne))})),le.DNE(2,AutoComplete_p_scroller_11_ng_template_2_Template,1,5,"ng-template",44)(3,AutoComplete_p_scroller_11_ng_container_3_Template,2,0,"ng-container",3),le.k0s()}if(2&te){const te=le.XpG();le.Aen(le.eq3(8,_c12,te.scrollHeight)),le.Y8G("items",te.visibleOptions())("itemSize",te.virtualScrollItemSize||te._itemSize)("autoSize",!0)("lazy",te.lazy)("options",te.virtualScrollOptions),le.R7$(3),le.Y8G("ngIf",te.loaderTemplate)}}function AutoComplete_ng_container_12_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c13=()=>({});function AutoComplete_ng_container_12_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,AutoComplete_ng_container_12_ng_container_1_Template,1,0,"ng-container",26),le.bVm()),2&te){const te=le.XpG(),ne=le.sdS(14);le.R7$(),le.Y8G("ngTemplateOutlet",ne)("ngTemplateOutletContext",le.l_i(3,_c10,te.visibleOptions(),le.lJ4(2,_c13)))}}function AutoComplete_ng_template_13_ng_template_2_ng_container_0_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span"),le.EFF(1),le.k0s()),2&te){const te=le.XpG(2).$implicit,ne=le.XpG(2);le.R7$(),le.JRh(ne.getOptionGroupLabel(te.optionGroup))}}function AutoComplete_ng_template_13_ng_template_2_ng_container_0_ng_container_3_Template(te,ne){1&te&&le.eu8(0)}function AutoComplete_ng_template_13_ng_template_2_ng_container_0_Template(te,ne){if(1&te&&(le.qex(0),le.j41(1,"li",50),le.DNE(2,AutoComplete_ng_template_13_ng_template_2_ng_container_0_span_2_Template,2,1,"span",3)(3,AutoComplete_ng_template_13_ng_template_2_ng_container_0_ng_container_3_Template,1,0,"ng-container",26),le.k0s(),le.bVm()),2&te){const te=le.XpG(),ne=te.index,ie=te.$implicit,re=le.XpG().options,ce=le.XpG();le.R7$(),le.Y8G("ngStyle",le.eq3(5,_c12,re.itemSize+"px")),le.BMQ("id",ce.id+"_"+ce.getOptionIndex(ne,re)),le.R7$(),le.Y8G("ngIf",!ce.groupTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",ce.groupTemplate)("ngTemplateOutletContext",le.eq3(7,_c9,ie.optionGroup))}}function AutoComplete_ng_template_13_ng_template_2_ng_container_1_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span"),le.EFF(1),le.k0s()),2&te){const te=le.XpG(2).$implicit,ne=le.XpG(2);le.R7$(),le.JRh(ne.getOptionLabel(te))}}function AutoComplete_ng_template_13_ng_template_2_ng_container_1_ng_container_3_Template(te,ne){1&te&&le.eu8(0)}const _c14=(te,ne,ie)=>({"p-highlight":te,"p-focus":ne,"p-disabled":ie}),_c15=(te,ne)=>({$implicit:te,index:ne});function AutoComplete_ng_template_13_ng_template_2_ng_container_1_Template(te,ne){if(1&te){const te=le.RV6();le.qex(0),le.j41(1,"li",51),le.bIt("click",(function AutoComplete_ng_template_13_ng_template_2_ng_container_1_Template_li_click_1_listener(ne){le.eBV(te);const ie=le.XpG().$implicit,re=le.XpG(2);return le.Njj(re.onOptionSelect(ne,ie))}))("mouseenter",(function AutoComplete_ng_template_13_ng_template_2_ng_container_1_Template_li_mouseenter_1_listener(ne){le.eBV(te);const ie=le.XpG().index,re=le.XpG().options,ce=le.XpG();return le.Njj(ce.onOptionMouseEnter(ne,ce.getOptionIndex(ie,re)))})),le.DNE(2,AutoComplete_ng_template_13_ng_template_2_ng_container_1_span_2_Template,2,1,"span",3)(3,AutoComplete_ng_template_13_ng_template_2_ng_container_1_ng_container_3_Template,1,0,"ng-container",26),le.k0s(),le.bVm()}if(2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG().options,ce=le.XpG();le.R7$(),le.Y8G("ngStyle",le.eq3(12,_c12,re.itemSize+"px"))("ngClass",le.sMw(14,_c14,ce.isSelected(ne),ce.focusedOptionIndex()===ce.getOptionIndex(ie,re),ce.isOptionDisabled(ne))),le.BMQ("id",ce.id+"_"+ce.getOptionIndex(ie,re))("aria-label",ce.getOptionLabel(ne))("aria-selected",ce.isSelected(ne))("aria-disabled",ce.isOptionDisabled(ne))("data-p-focused",ce.focusedOptionIndex()===ce.getOptionIndex(ie,re))("aria-setsize",ce.ariaSetSize)("aria-posinset",ce.getAriaPosInset(ce.getOptionIndex(ie,re))),le.R7$(),le.Y8G("ngIf",!ce.itemTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",ce.itemTemplate)("ngTemplateOutletContext",le.l_i(18,_c15,ne,re.getOptions?re.getOptions(ie):ie))}}function AutoComplete_ng_template_13_ng_template_2_Template(te,ne){if(1&te&&le.DNE(0,AutoComplete_ng_template_13_ng_template_2_ng_container_0_Template,4,9,"ng-container",3)(1,AutoComplete_ng_template_13_ng_template_2_ng_container_1_Template,4,21,"ng-container",3),2&te){const te=ne.$implicit,ie=le.XpG(2);le.Y8G("ngIf",ie.isOptionGroup(te)),le.R7$(),le.Y8G("ngIf",!ie.isOptionGroup(te))}}function AutoComplete_ng_template_13_li_3_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.EFF(1),le.bVm()),2&te){const te=le.XpG(3);le.R7$(),le.SpI(" ",te.searchResultMessageText," ")}}function AutoComplete_ng_template_13_li_3_ng_container_2_Template(te,ne){1&te&&le.eu8(0,null,54)}function AutoComplete_ng_template_13_li_3_Template(te,ne){if(1&te&&(le.j41(0,"li",52),le.DNE(1,AutoComplete_ng_template_13_li_3_ng_container_1_Template,2,1,"ng-container",53)(2,AutoComplete_ng_template_13_li_3_ng_container_2_Template,2,0,"ng-container",9),le.k0s()),2&te){const te=le.XpG().options,ne=le.XpG();le.Y8G("ngStyle",le.eq3(4,_c12,te.itemSize+"px")),le.R7$(),le.Y8G("ngIf",!ne.emptyTemplate)("ngIfElse",ne.empty),le.R7$(),le.Y8G("ngTemplateOutlet",ne.emptyTemplate)}}function AutoComplete_ng_template_13_Template(te,ne){if(1&te&&(le.j41(0,"ul",46,47),le.DNE(2,AutoComplete_ng_template_13_ng_template_2_Template,2,2,"ng-template",48)(3,AutoComplete_ng_template_13_li_3_Template,3,6,"li",49),le.k0s()),2&te){const te=ne.$implicit,ie=ne.options,re=le.XpG();le.Aen(ie.contentStyle),le.Y8G("ngClass",ie.contentStyleClass),le.BMQ("id",re.id+"_list")("aria-label",re.listLabel),le.R7$(2),le.Y8G("ngForOf",te),le.R7$(),le.Y8G("ngIf",!te||te&&0===te.length&&re.showEmptyMessage)}}function AutoComplete_ng_container_15_Template(te,ne){1&te&&le.eu8(0)}const je={provide:ce.kq,useExisting:(0,le.Rfq)((()=>Ve)),multi:!0};let Ve=(()=>{class AutoComplete{document;el;renderer;cd;config;overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage=!0;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(te){this._suggestions.set(te),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(te){this._itemSize=te,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;optionValue;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!1;selectOnFocus;searchLocale;optionDisabled;focusOnHover;variant="outlined";completeMethod=new le.bkB;onSelect=new le.bkB;onUnselect=new le.bkB;onFocus=new le.bkB;onBlur=new le.bkB;onDropdownClick=new le.bkB;onClear=new le.bkB;onKeyUp=new le.bkB;onShow=new le.bkB;onHide=new le.bkB;onLazyLoad=new le.bkB;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;templates;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;value;_suggestions=(0,le.vPA)(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;_filled;get filled(){return this._filled}set filled(te){this._filled=te}loading;scrollHandler;listId;searchTimeout;dirty=!1;modelValue=(0,le.vPA)(null);focusedMultipleOptionIndex=(0,le.vPA)(-1);focusedOptionIndex=(0,le.vPA)(-1);visibleOptions=(0,le.EWP)((()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]));inputValue=(0,le.EWP)((()=>{const te=this.modelValue(),ne=this.getSelectedOption(te);if(te){if("object"==typeof te||this.optionValue){const ie=this.getOptionLabel(ne);return null!=ie?ie:te}return te}return""}));get focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex()?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get containerClass(){return{"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}}get multiContainerClass(){return{"p-autocomplete-multiple-container p-component p-inputtext":!0,"p-variant-filled":"filled"===this.variant||"filled"===this.config.inputStyle()}}get panelClass(){return{"p-autocomplete-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle(),"p-ripple-disabled":!1===this.config.ripple}}get panelStyles(){return{"max-height":this.virtualScroll?"auto":this.scrollHeight,...this.panelStyle}}get inputClass(){return{"p-autocomplete-input p-inputtext p-component":!this.multiple,"p-autocomplete-dd-input":this.dropdown,"p-variant-filled":"filled"===this.variant||"filled"===this.config.inputStyle()}}get searchResultMessageText(){return ye.BF.isNotEmpty(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter((te=>!this.isOptionGroup(te))).length}get listLabel(){return this.config.getTranslation(de.Yj.ARIA).listLabel}get virtualScrollerDisabled(){return!this.virtualScroll}get optionValueSelected(){return"string"==typeof this.modelValue()&&this.optionValue}constructor(te,ne,ie,re,ce,de,ue){this.document=te,this.el=ne,this.renderer=ie,this.cd=re,this.config=ce,this.overlayService=de,this.zone=ue,(0,le.QZP)((()=>{this.filled=ye.BF.isNotEmpty(this.modelValue())}))}ngOnInit(){this.id=this.id||(0,ye._Y)(),this.cd.detectChanges()}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular((()=>{setTimeout((()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()}),1),this.suggestionsUpdated=!1}))}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"item":default:this.itemTemplate=te.template;break;case"group":this.groupTemplate=te.template;break;case"selectedItem":this.selectedItemTemplate=te.template;break;case"header":this.headerTemplate=te.template;break;case"empty":this.emptyTemplate=te.template;break;case"footer":this.footerTemplate=te.template;break;case"loader":this.loaderTemplate=te.template;break;case"removetokenicon":this.removeIconTemplate=te.template;break;case"loadingicon":this.loadingIconTemplate=te.template;break;case"clearicon":this.clearIconTemplate=te.template;break;case"dropdownicon":this.dropdownIconTemplate=te.template}}))}handleSuggestionsChange(){if(this.loading){this._suggestions().length>0||this.showEmptyMessage||this.emptyTemplate?this.show():this.hide();const te=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(te),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(te){return(te||[]).reduce(((te,ne,ie)=>{te.push({optionGroup:ne,group:!0,index:ie});const re=this.getOptionGroupChildren(ne);return re&&re.forEach((ne=>te.push(ne))),te}),[])}isOptionGroup(te){return this.optionGroupLabel&&te.optionGroup&&te.group}findFirstOptionIndex(){return this.visibleOptions().findIndex((te=>this.isValidOption(te)))}findLastOptionIndex(){return ye.BF.findLastIndex(this.visibleOptions(),(te=>this.isValidOption(te)))}findFirstFocusedOptionIndex(){const te=this.findSelectedOptionIndex();return te<0?this.findFirstOptionIndex():te}findLastFocusedOptionIndex(){const te=this.findSelectedOptionIndex();return te<0?this.findLastOptionIndex():te}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex((te=>this.isValidSelectedOption(te))):-1}findNextOptionIndex(te){const ne=te<this.visibleOptions().length-1?this.visibleOptions().slice(te+1).findIndex((te=>this.isValidOption(te))):-1;return ne>-1?ne+te+1:te}findPrevOptionIndex(te){const ne=te>0?ye.BF.findLastIndex(this.visibleOptions().slice(0,te),(te=>this.isValidOption(te))):-1;return ne>-1?ne:te}isValidSelectedOption(te){return this.isValidOption(te)&&this.isSelected(te)}isValidOption(te){return te&&!(this.isOptionDisabled(te)||this.isOptionGroup(te))}isOptionDisabled(te){return!!this.optionDisabled&&ye.BF.resolveFieldData(te,this.optionDisabled)}isSelected(te){return this.multiple?!!this.unique&&this.modelValue()?.find((ne=>ye.BF.equals(ne,this.getOptionValue(te),this.equalityKey()))):ye.BF.equals(this.modelValue(),this.getOptionValue(te),this.equalityKey())}isOptionMatched(te,ne){return this.isValidOption(te)&&this.getOptionLabel(te).toLocaleLowerCase(this.searchLocale)===ne.toLocaleLowerCase(this.searchLocale)}isInputClicked(te){return te.target===this.inputEL.nativeElement}isDropdownClicked(te){return!!this.dropdownButton?.nativeElement&&(te.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(te.target))}equalityKey(){return this.dataKey}onContainerClick(te){this.disabled||this.loading||this.isInputClicked(te)||this.isDropdownClicked(te)||this.overlayViewChild&&this.overlayViewChild.overlayViewChild?.nativeElement.contains(te.target)||ge.D.focus(this.inputEL.nativeElement)}handleDropdownClick(te){let ne;this.overlayVisible?this.hide(!0):(ge.D.focus(this.inputEL.nativeElement),ne=this.inputEL.nativeElement.value,"blank"===this.dropdownMode?this.search(te,"","dropdown"):"current"===this.dropdownMode&&this.search(te,ne,"dropdown")),this.onDropdownClick.emit({originalEvent:te,query:ne})}onInput(te){this.searchTimeout&&clearTimeout(this.searchTimeout);let ne=te.target.value;null!==this.maxlength&&(ne=ne.split("").slice(0,this.maxlength).join("")),this.multiple||this.forceSelection||this.updateModel(ne),0!==ne.length||this.multiple||this.completeOnFocus?ne.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout((()=>{this.search(te,ne,"input")}),this.delay)):this.hide():(this.onClear.emit(),this.hide())}onInputChange(te){if(this.forceSelection){let ne=!1;if(this.visibleOptions()){const ie=this.visibleOptions().find((te=>this.isOptionMatched(te,this.inputEL.nativeElement.value||"")));void 0!==ie&&(ne=!0,!this.isSelected(ie)&&this.onOptionSelect(te,ie))}ne||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(te){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&(this.search(te,te.target.value,"focus"),this.show()),this.dirty=!0,this.focused=!0;const ne=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(ne),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(te)}onMultipleContainerFocus(te){this.disabled||(this.focused=!0)}onMultipleContainerBlur(te){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(te){if(this.disabled)te.preventDefault();else switch(te.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(te);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(te);break;case"Backspace":this.onBackspaceKeyOnMultiple(te)}}onInputBlur(te){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(te)}onInputPaste(te){this.onKeyDown(te)}onInputKeyUp(te){this.onKeyUp.emit(te)}onKeyDown(te){if(this.disabled)te.preventDefault();else switch(te.code){case"ArrowDown":this.onArrowDownKey(te);break;case"ArrowUp":this.onArrowUpKey(te);break;case"ArrowLeft":this.onArrowLeftKey(te);break;case"ArrowRight":this.onArrowRightKey(te);break;case"Home":this.onHomeKey(te);break;case"End":this.onEndKey(te);break;case"PageDown":this.onPageDownKey(te);break;case"PageUp":this.onPageUpKey(te);break;case"Enter":case"NumpadEnter":this.onEnterKey(te);break;case"Escape":this.onEscapeKey(te);break;case"Tab":this.onTabKey(te);break;case"Backspace":this.onBackspaceKey(te)}}onArrowDownKey(te){if(!this.overlayVisible)return;const ne=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(te,ne),te.preventDefault(),te.stopPropagation()}onArrowUpKey(te){if(this.overlayVisible)if(te.altKey)-1!==this.focusedOptionIndex()&&this.onOptionSelect(te,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),te.preventDefault();else{const ne=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(te,ne),te.preventDefault(),te.stopPropagation()}}onArrowLeftKey(te){const ne=te.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(ye.BF.isEmpty(ne.value)&&this.hasSelectedOption()?(ge.D.focus(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):te.stopPropagation())}onArrowRightKey(te){this.focusedOptionIndex.set(-1),this.multiple&&te.stopPropagation()}onHomeKey(te){const{currentTarget:ne}=te,ie=ne.value.length;ne.setSelectionRange(0,te.shiftKey?ie:0),this.focusedOptionIndex.set(-1),te.preventDefault()}onEndKey(te){const{currentTarget:ne}=te,ie=ne.value.length;ne.setSelectionRange(te.shiftKey?0:ie,ie),this.focusedOptionIndex.set(-1),te.preventDefault()}onPageDownKey(te){this.scrollInView(this.visibleOptions().length-1),te.preventDefault()}onPageUpKey(te){this.scrollInView(0),te.preventDefault()}onEnterKey(te){this.overlayVisible?(-1!==this.focusedOptionIndex()&&(this.onOptionSelect(te,this.visibleOptions()[this.focusedOptionIndex()]),te.preventDefault()),this.hide()):this.onArrowDownKey(te)}onEscapeKey(te){this.overlayVisible&&this.hide(!0),te.preventDefault()}onTabKey(te){-1!==this.focusedOptionIndex()&&this.onOptionSelect(te,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(te){if(this.multiple){if(ye.BF.isNotEmpty(this.modelValue())&&!this.inputEL.nativeElement.value){const ne=this.modelValue()[this.modelValue().length-1],ie=this.modelValue().slice(0,-1);this.updateModel(ie),this.onUnselect.emit({originalEvent:te,value:ne})}te.stopPropagation()}!this.multiple&&this.showClear&&-1!=this.findSelectedOptionIndex()&&this.clear()}onArrowLeftKeyOnMultiple(te){const ne=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(ne)}onArrowRightKeyOnMultiple(te){let ne=this.focusedMultipleOptionIndex();ne++,this.focusedMultipleOptionIndex.set(ne),ne>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),ge.D.focus(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(te){-1!==this.focusedMultipleOptionIndex()&&this.removeOption(te,this.focusedMultipleOptionIndex())}onOptionSelect(te,ne,ie=!0){const re=this.getOptionValue(ne);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(ne)||this.updateModel([...this.modelValue()||[],re])):this.updateModel(re),this.onSelect.emit({originalEvent:te,value:ne}),ie&&this.hide(!0)}onOptionMouseEnter(te,ne){this.focusOnHover&&this.changeFocusedOptionIndex(te,ne)}search(te,ne,ie){null!=ne&&("input"===ie&&ne.trim().length<this.minLength||(this.loading=!0,this.completeMethod.emit({originalEvent:te,query:ne})))}removeOption(te,ne){te.stopPropagation();const ie=this.modelValue()[ne],re=this.modelValue().filter(((te,ie)=>ie!==ne)).map((te=>this.getOptionValue(te)));this.updateModel(re),this.onUnselect.emit({originalEvent:te,value:ie}),ge.D.focus(this.inputEL.nativeElement)}updateModel(te){this.value=te,this.modelValue.set(te),this.onModelChange(te),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.inputEL&&this.inputEL.nativeElement&&(this.multiple?this.inputEL.nativeElement.value="":this.inputEL.nativeElement.value=this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){const te=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(te),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(te=-1){const ne=-1!==te?`${this.id}_${te}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const ie=ge.D.findSingle(this.itemsViewChild.nativeElement,`li[id="${ne}"]`);ie?ie.scrollIntoView&&ie.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout((()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==te?te:this.focusedOptionIndex())}),0)}}changeFocusedOptionIndex(te,ne){this.focusedOptionIndex()!==ne&&(this.focusedOptionIndex.set(ne),this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(te,this.visibleOptions()[ne],!1))}show(te=!1){this.dirty=!0,this.overlayVisible=!0;const ne=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(ne),te&&ge.D.focus(this.inputEL.nativeElement),te&&ge.D.focus(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(te=!1){const _hide=()=>{this.dirty=te,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),te&&ge.D.focus(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};this.virtualScroll&&this.scroller.onScrollChange(event),setTimeout((()=>{_hide()}),0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(te){this.value=te,this.modelValue.set(te),this.updateInputValue(),this.cd.markForCheck()}hasSelectedOption(){return ye.BF.isNotEmpty(this.modelValue())}getAriaPosInset(te){return(this.optionGroupLabel?te-this.visibleOptions().slice(0,te).filter((te=>this.isOptionGroup(te))).length:te)+1}getOptionLabel(te){return this.field||this.optionLabel?ye.BF.resolveFieldData(te,this.field||this.optionLabel):te&&null!=te.label?te.label:te}getOptionValue(te){return this.optionValue?ye.BF.resolveFieldData(te,this.optionValue):te}getOptionIndex(te,ne){return this.virtualScrollerDisabled?te:ne&&ne.getItemOptions(te).index}getOptionGroupLabel(te){return this.optionGroupLabel?ye.BF.resolveFieldData(te,this.optionGroupLabel):te&&null!=te.label?te.label:te}getOptionGroupChildren(te){return this.optionGroupChildren?ye.BF.resolveFieldData(te,this.optionGroupChildren):te.items}getSelectedOption(te){return this.optionValue?(this.suggestions||[]).find((ne=>ye.BF.resolveFieldData(ne,this.optionValue)===te)):te}getMultipleLabel(te){let ne=this.getSelectedOption(te);return this.getOptionLabel(ne)}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}onOverlayAnimationStart(te){if("visible"===te.toState&&(this.itemsWrapper=ge.D.findSingle(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){const te=this.modelValue()?this.focusedOptionIndex():-1;-1!==te&&this.scroller?.scrollToIndex(te)}else{let te=ge.D.findSingle(this.itemsWrapper,".p-autocomplete-item.p-highlight");te&&te.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static ɵfac=function AutoComplete_Factory(te){return new(te||AutoComplete)(le.rXU(re.qQ),le.rXU(le.aKT),le.rXU(le.sFG),le.rXU(le.gRc),le.rXU(de.r1),le.rXU(de.si),le.rXU(le.SKi))};static ɵcmp=le.VBU({type:AutoComplete,selectors:[["p-autoComplete"]],contentQueries:function AutoComplete_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,de.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},viewQuery:function AutoComplete_Query(te,ne){if(1&te&&(le.GBs(Ee,5),le.GBs(Me,5),le.GBs(Ne,5),le.GBs(Re,5),le.GBs(Le,5),le.GBs(Oe,5),le.GBs(Pe,5),le.GBs(Fe,5)),2&te){let te;le.mGM(te=le.lsd())&&(ne.containerEL=te.first),le.mGM(te=le.lsd())&&(ne.inputEL=te.first),le.mGM(te=le.lsd())&&(ne.multiInputEl=te.first),le.mGM(te=le.lsd())&&(ne.multiContainerEL=te.first),le.mGM(te=le.lsd())&&(ne.dropdownButton=te.first),le.mGM(te=le.lsd())&&(ne.itemsViewChild=te.first),le.mGM(te=le.lsd())&&(ne.scroller=te.first),le.mGM(te=le.lsd())&&(ne.overlayViewChild=te.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function AutoComplete_HostBindings(te,ne){2&te&&le.AVh("p-inputwrapper-filled",ne.filled)("p-inputwrapper-focus",ne.focused&&!ne.disabled||ne.autofocus||ne.overlayVisible)("p-autocomplete-clearable",ne.showClear&&!ne.disabled)},inputs:{minLength:[le.Mj6.HasDecoratorInputTransform,"minLength","minLength",le.Udg],delay:[le.Mj6.HasDecoratorInputTransform,"delay","delay",le.Udg],style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:[le.Mj6.HasDecoratorInputTransform,"readonly","readonly",le.L39],disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],scrollHeight:"scrollHeight",lazy:[le.Mj6.HasDecoratorInputTransform,"lazy","lazy",le.L39],virtualScroll:[le.Mj6.HasDecoratorInputTransform,"virtualScroll","virtualScroll",le.L39],virtualScrollItemSize:[le.Mj6.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",le.Udg],virtualScrollOptions:"virtualScrollOptions",maxlength:[le.Mj6.HasDecoratorInputTransform,"maxlength","maxlength",te=>(0,le.Udg)(te,null)],name:"name",required:[le.Mj6.HasDecoratorInputTransform,"required","required",le.L39],size:[le.Mj6.HasDecoratorInputTransform,"size","size",le.Udg],appendTo:"appendTo",autoHighlight:[le.Mj6.HasDecoratorInputTransform,"autoHighlight","autoHighlight",le.L39],forceSelection:[le.Mj6.HasDecoratorInputTransform,"forceSelection","forceSelection",le.L39],type:"type",autoZIndex:[le.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",le.L39],baseZIndex:[le.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",le.Udg],ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:[le.Mj6.HasDecoratorInputTransform,"unique","unique",le.L39],group:[le.Mj6.HasDecoratorInputTransform,"group","group",le.L39],completeOnFocus:[le.Mj6.HasDecoratorInputTransform,"completeOnFocus","completeOnFocus",le.L39],showClear:[le.Mj6.HasDecoratorInputTransform,"showClear","showClear",le.L39],field:"field",dropdown:[le.Mj6.HasDecoratorInputTransform,"dropdown","dropdown",le.L39],showEmptyMessage:[le.Mj6.HasDecoratorInputTransform,"showEmptyMessage","showEmptyMessage",le.L39],dropdownMode:"dropdownMode",multiple:[le.Mj6.HasDecoratorInputTransform,"multiple","multiple",le.L39],tabindex:[le.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",le.Udg],dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39],autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",optionValue:"optionValue",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:[le.Mj6.HasDecoratorInputTransform,"autoOptionFocus","autoOptionFocus",le.L39],selectOnFocus:[le.Mj6.HasDecoratorInputTransform,"selectOnFocus","selectOnFocus",le.L39],searchLocale:[le.Mj6.HasDecoratorInputTransform,"searchLocale","searchLocale",le.L39],optionDisabled:"optionDisabled",focusOnHover:[le.Mj6.HasDecoratorInputTransform,"focusOnHover","focusOnHover",le.L39],variant:"variant"},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[le.Jv_([je]),le.GFd],decls:18,vars:24,consts:[[3,"ngClass","ngStyle","click"],["container",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","class","type","autocomplete","required","name","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"ngClass","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown p-button-icon-only","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["role","status","aria-live","polite",1,"p-hidden-accessible"],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","type","autocomplete","required","name","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["focusInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-autocomplete-clear-icon",3,"click"],["role","listbox",3,"ngClass","tabindex","focus","blur","keydown"],["multiContainer",""],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-token"],["pAutoFocus","","role","combobox","aria-autocomplete","list",3,"autofocus","ngClass","ngStyle","autocomplete","required","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["role","option",3,"ngClass"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-autocomplete-token-label",4,"ngIf"],[1,"p-autocomplete-token-icon",3,"click"],[3,"styleClass",4,"ngIf"],["class","p-autocomplete-token-icon",4,"ngIf"],[1,"p-autocomplete-token-label"],[3,"styleClass"],[1,"p-autocomplete-token-icon"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pButton","","pRipple","",1,"p-autocomplete-dropdown","p-button-icon-only",3,"disabled","click"],["ddBtn",""],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-autocomplete-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-autocomplete-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-autocomplete-item",3,"ngStyle","ngClass","click","mouseenter"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"],["empty",""]],template:function AutoComplete_Template(te,ne){1&te&&(le.j41(0,"div",0,1),le.bIt("click",(function AutoComplete_Template_div_click_0_listener(te){return ne.onContainerClick(te)})),le.DNE(2,AutoComplete_input_2_Template,2,23,"input",2)(3,AutoComplete_ng_container_3_Template,3,2,"ng-container",3)(4,AutoComplete_ul_4_Template,6,27,"ul",4)(5,AutoComplete_ng_container_5_Template,3,2,"ng-container",3)(6,AutoComplete_button_6_Template,4,5,"button",5),le.j41(7,"p-overlay",6,7),le.mxI("visibleChange",(function AutoComplete_Template_p_overlay_visibleChange_7_listener(te){return le.DH7(ne.overlayVisible,te)||(ne.overlayVisible=te),te})),le.bIt("onAnimationStart",(function AutoComplete_Template_p_overlay_onAnimationStart_7_listener(te){return ne.onOverlayAnimationStart(te)}))("onHide",(function AutoComplete_Template_p_overlay_onHide_7_listener(){return ne.hide()})),le.j41(9,"div",8),le.DNE(10,AutoComplete_ng_container_10_Template,1,0,"ng-container",9)(11,AutoComplete_p_scroller_11_Template,4,10,"p-scroller",10)(12,AutoComplete_ng_container_12_Template,2,6,"ng-container",3)(13,AutoComplete_ng_template_13_Template,4,7,"ng-template",null,11,le.C5r)(15,AutoComplete_ng_container_15_Template,1,0,"ng-container",9),le.k0s(),le.j41(16,"span",12),le.EFF(17),le.k0s()()()),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngClass",ne.containerClass)("ngStyle",ne.style),le.R7$(2),le.Y8G("ngIf",!ne.multiple),le.R7$(),le.Y8G("ngIf",ne.filled&&!ne.disabled&&ne.showClear&&!ne.loading),le.R7$(),le.Y8G("ngIf",ne.multiple),le.R7$(),le.Y8G("ngIf",ne.loading),le.R7$(),le.Y8G("ngIf",ne.dropdown),le.R7$(),le.R50("visible",ne.overlayVisible),le.Y8G("options",ne.overlayOptions)("target","@parent")("appendTo",ne.appendTo)("showTransitionOptions",ne.showTransitionOptions)("hideTransitionOptions",ne.hideTransitionOptions),le.R7$(2),le.HbH(ne.panelStyleClass),le.Y8G("ngClass",ne.panelClass)("ngStyle",ne.panelStyles),le.R7$(),le.Y8G("ngTemplateOutlet",ne.headerTemplate),le.R7$(),le.Y8G("ngIf",ne.virtualScroll),le.R7$(),le.Y8G("ngIf",!ne.virtualScroll),le.R7$(3),le.Y8G("ngTemplateOutlet",ne.footerTemplate),le.R7$(2),le.SpI(" ",ne.selectedMessageText," "))},dependencies:()=>[re.YU,re.Sq,re.bT,re.T3,re.B3,_e.hJ,de.Ei,me._f,be.n,Ce.H,ue.q,we.I,ke.N,Se.A,xe.D],styles:["@layer primeng{.p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{position:absolute;top:50%;margin-top:-.5rem}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-top-right-radius:0;border-bottom-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-top-left-radius:0;border-bottom-left-radius:0}.p-autocomplete-panel{overflow:auto}.p-autocomplete-items{margin:0;padding:0;list-style-type:none}.p-autocomplete-item{cursor:pointer;white-space:nowrap;position:relative;overflow:hidden}.p-autocomplete-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-autocomplete-token{width:fit-content;cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-autocomplete-token-icon{display:flex;cursor:pointer}.p-autocomplete-input-token{flex:1 1 auto;display:inline-flex}.p-autocomplete-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}.p-autocomplete-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-autocomplete-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return AutoComplete})(),Ge=(()=>{class AutoCompleteModule{static ɵfac=function AutoCompleteModule_Factory(te){return new(te||AutoCompleteModule)};static ɵmod=le.$C({type:AutoCompleteModule});static ɵinj=le.G2t({imports:[re.MD,_e.z_,fe.u,me.tm,de.Gg,be.Z,Ce.h,ue.u,we.I,ke.N,Se.A,xe.D,_e.z_,de.Gg,Ce.h,ue.u]})}return AutoCompleteModule})()},2583:(te,ne,ie)=>{"use strict";ie.d(ne,{q:()=>de,u:()=>ue});var re=ie(4460),le=ie(3107),ce=ie(5724);let de=(()=>{class AutoFocus{autofocus=!1;focused=!1;platformId=(0,le.WQX)(le.Agw);document=(0,le.WQX)(re.qQ);host=(0,le.WQX)(le.aKT);ngAfterContentChecked(){!1===this.autofocus?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}ngAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){(0,re.UE)(this.platformId)&&this.autofocus&&setTimeout((()=>{const te=ce.D.getFocusableElements(this.host?.nativeElement);0===te.length&&this.host.nativeElement.focus(),te.length>0&&te[0].focus(),this.focused=!0}))}static ɵfac=function AutoFocus_Factory(te){return new(te||AutoFocus)};static ɵdir=le.FsC({type:AutoFocus,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39]},standalone:!0,features:[le.GFd]})}return AutoFocus})(),ue=(()=>{class AutoFocusModule{static ɵfac=function AutoFocusModule_Factory(te){return new(te||AutoFocusModule)};static ɵmod=le.$C({type:AutoFocusModule});static ɵinj=le.G2t({})}return AutoFocusModule})()},1196:(te,ne,ie)=>{"use strict";ie.d(ne,{h:()=>de});var re=ie(3107),le=ie(1939);const ce=["*"];let de=(()=>{class BaseIcon{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const te=le.BF.isEmpty(this.label);this.role=te?void 0:"img",this.ariaLabel=te?void 0:this.label,this.ariaHidden=te}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static ɵfac=function BaseIcon_Factory(te){return new(te||BaseIcon)};static ɵcmp=re.VBU({type:BaseIcon,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:[re.Mj6.HasDecoratorInputTransform,"spin","spin",re.L39],styleClass:"styleClass"},standalone:!0,features:[re.GFd,re.aNF],ngContentSelectors:ce,decls:1,vars:0,template:function BaseIcon_Template(te,ne){1&te&&(re.NAR(),re.SdG(0))},encapsulation:2,changeDetection:0})}return BaseIcon})()},7280:(te,ne,ie)=>{"use strict";ie.d(ne,{$n:()=>ye,_f:()=>Ce,tm:()=>we});var re=ie(4460),le=ie(3107),ce=ie(3828),de=ie(2583),ue=ie(5724),me=ie(5774),ge=ie(1646),fe=ie(1939);function Button_ng_container_2_Template(te,ne){1&te&&le.eu8(0)}function Button_ng_container_3_ng_container_1_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",8),2&te){const te=le.XpG(3);le.Y8G("ngClass",te.iconClass()),le.BMQ("aria-hidden",!0)("data-pc-section","loadingicon")}}function Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template(te,ne){if(1&te&&le.nrm(0,"SpinnerIcon",9),2&te){const te=le.XpG(3);le.Y8G("styleClass",te.spinnerIconClass())("spin",!0),le.BMQ("aria-hidden",!0)("data-pc-section","loadingicon")}}function Button_ng_container_3_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Button_ng_container_3_ng_container_1_span_1_Template,1,3,"span",6)(2,Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template,1,4,"SpinnerIcon",7),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",te.loadingIcon),le.R7$(),le.Y8G("ngIf",!te.loadingIcon)}}function Button_ng_container_3_2_ng_template_0_Template(te,ne){}function Button_ng_container_3_2_Template(te,ne){if(1&te&&le.DNE(0,Button_ng_container_3_2_ng_template_0_Template,0,0,"ng-template",10),2&te){const te=le.XpG(2);le.Y8G("ngIf",te.loadingIconTemplate)}}const _c0=te=>({class:te});function Button_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Button_ng_container_3_ng_container_1_Template,3,2,"ng-container",2)(2,Button_ng_container_3_2_Template,1,1,null,5),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",!te.loadingIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.loadingIconTemplate)("ngTemplateOutletContext",le.eq3(3,_c0,te.iconClass()))}}function Button_ng_container_4_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",8),2&te){const te=le.XpG(2);le.Y8G("ngClass",te.iconClass()),le.BMQ("data-pc-section","icon")}}function Button_ng_container_4_2_ng_template_0_Template(te,ne){}function Button_ng_container_4_2_Template(te,ne){if(1&te&&le.DNE(0,Button_ng_container_4_2_ng_template_0_Template,0,0,"ng-template",10),2&te){const te=le.XpG(2);le.Y8G("ngIf",!te.icon&&te.iconTemplate)}}function Button_ng_container_4_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Button_ng_container_4_span_1_Template,1,2,"span",6)(2,Button_ng_container_4_2_Template,1,1,null,5),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.icon&&!te.iconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.iconTemplate)("ngTemplateOutletContext",le.eq3(3,_c0,te.iconClass()))}}function Button_span_5_Template(te,ne){if(1&te&&(le.j41(0,"span",11),le.EFF(1),le.k0s()),2&te){const te=le.XpG();le.BMQ("aria-hidden",te.icon&&!te.label)("data-pc-section","label"),le.R7$(),le.JRh(te.label)}}function Button_span_6_Template(te,ne){if(1&te&&(le.j41(0,"span",8),le.EFF(1),le.k0s()),2&te){const te=le.XpG();le.HbH(te.badgeClass),le.Y8G("ngClass",te.badgeStyleClass()),le.BMQ("data-pc-section","badge"),le.R7$(),le.JRh(te.badge)}}const _e=["*"],be={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let Ce=(()=>{class ButtonDirective{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(te){this._label=te,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(te){this._icon=te,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(te){this._loading=te,this.initialized&&(this.updateIcon(),this.setStyleClass())}severity;raised=!1;rounded=!1;text=!1;outlined=!1;size=null;plain=!1;_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(be);constructor(te,ne){this.el=te,this.document=ne}ngAfterViewInit(){ue.D.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const te=[be.button,be.component];return this.icon&&!this.label&&fe.BF.isEmpty(this.htmlElement.textContent)&&te.push(be.iconOnly),this.loading&&(te.push(be.disabled,be.loading),!this.icon&&this.label&&te.push(be.labelOnly),!this.icon||this.label||fe.BF.isEmpty(this.htmlElement.textContent)||te.push(be.iconOnly)),this.text&&te.push("p-button-text"),this.severity&&te.push(`p-button-${this.severity}`),this.plain&&te.push("p-button-plain"),this.raised&&te.push("p-button-raised"),this.size&&te.push(`p-button-${this.size}`),this.outlined&&te.push("p-button-outlined"),this.rounded&&te.push("p-button-rounded"),"small"===this.size&&te.push("p-button-sm"),"large"===this.size&&te.push("p-button-lg"),te}setStyleClass(){const te=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...te)}createLabel(){if(!ue.D.findSingle(this.htmlElement,".p-button-label")&&this.label){let te=this.document.createElement("span");this.icon&&!this.label&&te.setAttribute("aria-hidden","true"),te.className="p-button-label",te.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(te)}}createIcon(){if(!ue.D.findSingle(this.htmlElement,".p-button-icon")&&(this.icon||this.loading)){let te=this.document.createElement("span");te.className="p-button-icon",te.setAttribute("aria-hidden","true");let ne=this.label?"p-button-icon-"+this.iconPos:null;ne&&ue.D.addClass(te,ne);let ie=this.getIconClass();ie&&ue.D.addMultipleClasses(te,ie),this.htmlElement.insertBefore(te,this.htmlElement.firstChild)}}updateLabel(){let te=ue.D.findSingle(this.htmlElement,".p-button-label");this.label?te?te.textContent=this.label:this.createLabel():te&&this.htmlElement.removeChild(te)}updateIcon(){let te=ue.D.findSingle(this.htmlElement,".p-button-icon"),ne=ue.D.findSingle(this.htmlElement,".p-button-label");te?this.iconPos?te.className="p-button-icon "+(ne?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():te.className="p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon pi-spin "+(this.loadingIcon??"pi pi-spinner"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static ɵfac=function ButtonDirective_Factory(te){return new(te||ButtonDirective)(le.rXU(le.aKT),le.rXU(re.qQ))};static ɵdir=le.FsC({type:ButtonDirective,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading",severity:"severity",raised:[le.Mj6.HasDecoratorInputTransform,"raised","raised",le.L39],rounded:[le.Mj6.HasDecoratorInputTransform,"rounded","rounded",le.L39],text:[le.Mj6.HasDecoratorInputTransform,"text","text",le.L39],outlined:[le.Mj6.HasDecoratorInputTransform,"outlined","outlined",le.L39],size:"size",plain:[le.Mj6.HasDecoratorInputTransform,"plain","plain",le.L39]},standalone:!0,features:[le.GFd]})}return ButtonDirective})(),ye=(()=>{class Button{el;type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;tabindex;size;style;styleClass;badgeClass;ariaLabel;autofocus;onClick=new le.bkB;onFocus=new le.bkB;onBlur=new le.bkB;contentTemplate;loadingIconTemplate;iconTemplate;templates;constructor(te){this.el=te}spinnerIconClass(){return Object.entries(this.iconClass()).filter((([,te])=>!!te)).reduce(((te,[ne])=>te+` ${ne}`),"p-button-loading-icon")}iconClass(){const te={"p-button-icon":!0,"p-button-icon-left":"left"===this.iconPos&&this.label,"p-button-icon-right":"right"===this.iconPos&&this.label,"p-button-icon-top":"top"===this.iconPos&&this.label,"p-button-icon-bottom":"bottom"===this.iconPos&&this.label};return this.loading?te[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]=!0:this.icon&&(te[this.icon]=!0),te}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate)&&!this.label,"p-button-vertical":("top"===this.iconPos||"bottom"===this.iconPos)&&this.label,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&"left"===this.iconPos,"p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":"small"===this.size,"p-button-lg":"large"===this.size,"p-button-plain":this.plain,[`${this.styleClass}`]:this.styleClass}}ngAfterContentInit(){this.templates?.forEach((te=>{switch(te.getType()){case"content":default:this.contentTemplate=te.template;break;case"icon":this.iconTemplate=te.template;break;case"loadingicon":this.loadingIconTemplate=te.template}}))}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}focus(){this.el.nativeElement.firstChild.focus()}static ɵfac=function Button_Factory(te){return new(te||Button)(le.rXU(le.aKT))};static ɵcmp=le.VBU({type:Button,selectors:[["p-button"]],contentQueries:function Button_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,ce.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],hostVars:2,hostBindings:function Button_HostBindings(te,ne){2&te&&le.AVh("p-disabled",ne.disabled)},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],loading:[le.Mj6.HasDecoratorInputTransform,"loading","loading",le.L39],loadingIcon:"loadingIcon",raised:[le.Mj6.HasDecoratorInputTransform,"raised","raised",le.L39],rounded:[le.Mj6.HasDecoratorInputTransform,"rounded","rounded",le.L39],text:[le.Mj6.HasDecoratorInputTransform,"text","text",le.L39],plain:[le.Mj6.HasDecoratorInputTransform,"plain","plain",le.L39],severity:"severity",outlined:[le.Mj6.HasDecoratorInputTransform,"outlined","outlined",le.L39],link:[le.Mj6.HasDecoratorInputTransform,"link","link",le.L39],tabindex:[le.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",le.Udg],size:"size",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel",autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},standalone:!0,features:[le.GFd,le.aNF],ngContentSelectors:_e,decls:7,vars:14,consts:[["pRipple","","pAutoFocus","",3,"ngStyle","disabled","ngClass","autofocus","click","focus","blur"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[3,"ngIf"],[1,"p-button-label"]],template:function Button_Template(te,ne){1&te&&(le.NAR(),le.j41(0,"button",0),le.bIt("click",(function Button_Template_button_click_0_listener(te){return ne.onClick.emit(te)}))("focus",(function Button_Template_button_focus_0_listener(te){return ne.onFocus.emit(te)}))("blur",(function Button_Template_button_blur_0_listener(te){return ne.onBlur.emit(te)})),le.SdG(1),le.DNE(2,Button_ng_container_2_Template,1,0,"ng-container",1)(3,Button_ng_container_3_Template,3,5,"ng-container",2)(4,Button_ng_container_4_Template,3,5,"ng-container",2)(5,Button_span_5_Template,2,3,"span",3)(6,Button_span_6_Template,2,5,"span",4),le.k0s()),2&te&&(le.Y8G("ngStyle",ne.style)("disabled",ne.disabled||ne.loading)("ngClass",ne.buttonClass)("autofocus",ne.autofocus),le.BMQ("type",ne.type)("aria-label",ne.ariaLabel)("data-pc-name","button")("data-pc-section","root")("tabindex",ne.tabindex),le.R7$(2),le.Y8G("ngTemplateOutlet",ne.contentTemplate),le.R7$(),le.Y8G("ngIf",ne.loading),le.R7$(),le.Y8G("ngIf",!ne.loading),le.R7$(),le.Y8G("ngIf",!ne.contentTemplate&&ne.label),le.R7$(),le.Y8G("ngIf",!ne.contentTemplate&&ne.badge))},dependencies:[re.bT,re.T3,re.B3,re.YU,ge.n,de.q,me.N],encapsulation:2,changeDetection:0})}return Button})(),we=(()=>{class ButtonModule{static ɵfac=function ButtonModule_Factory(te){return new(te||ButtonModule)};static ɵmod=le.$C({type:ButtonModule});static ɵinj=le.G2t({imports:[ye,ce.Gg]})}return ButtonModule})()},30:(te,ne,ie)=>{"use strict";ie.d(ne,{Vv:()=>Fe,rO:()=>je});var re=ie(1204),le=ie(4460),ce=ie(3107),de=ie(936),ue=ie(3828),me=ie(7280),ge=ie(5724),fe=ie(1646),_e=ie(1939),be=ie(9135),Ce=ie(2778),ye=ie(1196);let we=(()=>{class ChevronUpIcon extends ye.h{static ɵfac=(()=>{let te;return function ChevronUpIcon_Factory(ne){return(te||(te=ce.xGo(ChevronUpIcon)))(ne||ChevronUpIcon)}})();static ɵcmp=ce.VBU({type:ChevronUpIcon,selectors:[["ChevronUpIcon"]],standalone:!0,features:[ce.Vt3,ce.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function ChevronUpIcon_Template(te,ne){1&te&&(ce.qSk(),ce.j41(0,"svg",0),ce.nrm(1,"path",1),ce.k0s()),2&te&&(ce.HbH(ne.getClassNames()),ce.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return ChevronUpIcon})();var ke=ie(60),Se=ie(239);let xe=(()=>{class CalendarIcon extends ye.h{static ɵfac=(()=>{let te;return function CalendarIcon_Factory(ne){return(te||(te=ce.xGo(CalendarIcon)))(ne||CalendarIcon)}})();static ɵcmp=ce.VBU({type:CalendarIcon,selectors:[["CalendarIcon"]],standalone:!0,features:[ce.Vt3,ce.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function CalendarIcon_Template(te,ne){1&te&&(ce.qSk(),ce.j41(0,"svg",0),ce.nrm(1,"path",1),ce.k0s()),2&te&&(ce.HbH(ne.getClassNames()),ce.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return CalendarIcon})();var Ee=ie(2583);const Me=["container"],Ne=["inputfield"],Re=["contentWrapper"];function Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"TimesIcon",10),ce.bIt("click",(function Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template_TimesIcon_click_0_listener(){ce.eBV(te);const ne=ce.XpG(3);return ce.Njj(ne.clear())})),ce.k0s()}2&te&&ce.Y8G("styleClass","p-calendar-clear-icon")}function Calendar_ng_template_2_ng_container_2_span_2_1_ng_template_0_Template(te,ne){}function Calendar_ng_template_2_ng_container_2_span_2_1_Template(te,ne){1&te&&ce.DNE(0,Calendar_ng_template_2_ng_container_2_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Calendar_ng_template_2_ng_container_2_span_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"span",11),ce.bIt("click",(function Calendar_ng_template_2_ng_container_2_span_2_Template_span_click_0_listener(){ce.eBV(te);const ne=ce.XpG(3);return ce.Njj(ne.clear())})),ce.DNE(1,Calendar_ng_template_2_ng_container_2_span_2_1_Template,1,0,null,12),ce.k0s()}if(2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.clearIconTemplate)}}function Calendar_ng_template_2_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template,1,1,"TimesIcon",8)(2,Calendar_ng_template_2_ng_container_2_span_2_Template,2,1,"span",9),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("ngIf",!te.clearIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.clearIconTemplate)}}function Calendar_ng_template_2_button_3_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",15),2&te){const te=ce.XpG(3);ce.Y8G("ngClass",te.icon)}}function Calendar_ng_template_2_button_3_ng_container_2_CalendarIcon_1_Template(te,ne){1&te&&ce.nrm(0,"CalendarIcon")}function Calendar_ng_template_2_button_3_ng_container_2_2_ng_template_0_Template(te,ne){}function Calendar_ng_template_2_button_3_ng_container_2_2_Template(te,ne){1&te&&ce.DNE(0,Calendar_ng_template_2_button_3_ng_container_2_2_ng_template_0_Template,0,0,"ng-template")}function Calendar_ng_template_2_button_3_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Calendar_ng_template_2_button_3_ng_container_2_CalendarIcon_1_Template,1,0,"CalendarIcon",6)(2,Calendar_ng_template_2_button_3_ng_container_2_2_Template,1,0,null,12),ce.bVm()),2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngIf",!te.triggerIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.triggerIconTemplate)}}function Calendar_ng_template_2_button_3_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",13),ce.bIt("click",(function Calendar_ng_template_2_button_3_Template_button_click_0_listener(ne){ce.eBV(te),ce.XpG();const ie=ce.sdS(1),re=ce.XpG();return ce.Njj(re.onButtonClick(ne,ie))})),ce.DNE(1,Calendar_ng_template_2_button_3_span_1_Template,1,1,"span",14)(2,Calendar_ng_template_2_button_3_ng_container_2_Template,3,2,"ng-container",6),ce.k0s()}if(2&te){const te=ce.XpG(2);let ne;ce.Y8G("disabled",te.disabled),ce.BMQ("aria-label",te.iconButtonAriaLabel)("aria-expanded",null!==(ne=te.overlayVisible)&&void 0!==ne&&ne)("aria-controls",te.overlayVisible?te.panelId:null),ce.R7$(),ce.Y8G("ngIf",te.icon),ce.R7$(),ce.Y8G("ngIf",!te.icon)}}const _c3=te=>({"p-datepicker-icon":te});function Calendar_ng_template_2_ng_container_4_CalendarIcon_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"CalendarIcon",18),ce.bIt("click",(function Calendar_ng_template_2_ng_container_4_CalendarIcon_1_Template_CalendarIcon_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onButtonClick(ne))})),ce.k0s()}if(2&te){const te=ce.XpG(3);ce.Y8G("ngClass",ce.eq3(1,_c3,te.showOnFocus))}}function Calendar_ng_template_2_ng_container_4_ng_container_2_Template(te,ne){1&te&&ce.eu8(0)}const _c4=te=>({clickCallBack:te});function Calendar_ng_template_2_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Calendar_ng_template_2_ng_container_4_CalendarIcon_1_Template,1,3,"CalendarIcon",16)(2,Calendar_ng_template_2_ng_container_4_ng_container_2_Template,1,0,"ng-container",17),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("ngIf",!te.inputIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.inputIconTemplate)("ngTemplateOutletContext",ce.eq3(3,_c4,te.onButtonClick.bind(te)))}}function Calendar_ng_template_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"input",4,5),ce.bIt("focus",(function Calendar_ng_template_2_Template_input_focus_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onInputFocus(ne))}))("keydown",(function Calendar_ng_template_2_Template_input_keydown_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onInputKeydown(ne))}))("click",(function Calendar_ng_template_2_Template_input_click_0_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.onInputClick())}))("blur",(function Calendar_ng_template_2_Template_input_blur_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onInputBlur(ne))}))("input",(function Calendar_ng_template_2_Template_input_input_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onUserInput(ne))})),ce.k0s(),ce.DNE(2,Calendar_ng_template_2_ng_container_2_Template,3,2,"ng-container",6)(3,Calendar_ng_template_2_button_3_Template,3,6,"button",7)(4,Calendar_ng_template_2_ng_container_4_Template,3,5,"ng-container",6)}if(2&te){const te=ce.XpG();let ne;ce.HbH(te.inputStyleClass),ce.Y8G("value",te.inputFieldValue)("readonly",te.readonlyInput)("ngStyle",te.inputStyle)("placeholder",te.placeholder||"")("disabled",te.disabled)("ngClass",te.inputClass)("autofocus",te.autofocus),ce.BMQ("id",te.inputId)("name",te.name)("required",te.required)("aria-required",te.required)("aria-expanded",null!==(ne=te.overlayVisible)&&void 0!==ne&&ne)("aria-controls",te.overlayVisible?te.panelId:null)("aria-labelledby",te.ariaLabelledBy)("aria-label",te.ariaLabel)("tabindex",te.tabindex)("inputmode",te.touchUI?"off":null),ce.R7$(2),ce.Y8G("ngIf",te.showClear&&!te.disabled&&null!=te.value),ce.R7$(),ce.Y8G("ngIf",te.showIcon&&"button"===te.iconDisplay),ce.R7$(),ce.Y8G("ngIf","input"===te.iconDisplay&&te.showIcon)}}function Calendar_div_3_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function Calendar_div_3_ng_container_4_div_2_button_2_ChevronLeftIcon_1_Template(te,ne){1&te&&ce.nrm(0,"ChevronLeftIcon",40),2&te&&ce.Y8G("styleClass","p-datepicker-prev-icon")}function Calendar_div_3_ng_container_4_div_2_button_2_span_2_1_ng_template_0_Template(te,ne){}function Calendar_div_3_ng_container_4_div_2_button_2_span_2_1_Template(te,ne){1&te&&ce.DNE(0,Calendar_div_3_ng_container_4_div_2_button_2_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Calendar_div_3_ng_container_4_div_2_button_2_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",41),ce.DNE(1,Calendar_div_3_ng_container_4_div_2_button_2_span_2_1_Template,1,0,null,12),ce.k0s()),2&te){const te=ce.XpG(5);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.previousIconTemplate)}}function Calendar_div_3_ng_container_4_div_2_button_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",38),ce.bIt("keydown",(function Calendar_div_3_ng_container_4_div_2_button_2_Template_button_keydown_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("click",(function Calendar_div_3_ng_container_4_div_2_button_2_Template_button_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onPrevButtonClick(ne))})),ce.DNE(1,Calendar_div_3_ng_container_4_div_2_button_2_ChevronLeftIcon_1_Template,1,1,"ChevronLeftIcon",35)(2,Calendar_div_3_ng_container_4_div_2_button_2_span_2_Template,2,1,"span",39),ce.k0s()}if(2&te){const te=ce.XpG(4);ce.BMQ("aria-label",te.prevIconAriaLabel),ce.R7$(),ce.Y8G("ngIf",!te.previousIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.previousIconTemplate)}}function Calendar_div_3_ng_container_4_div_2_button_4_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",42),ce.bIt("click",(function Calendar_div_3_ng_container_4_div_2_button_4_Template_button_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.switchToMonthView(ne))}))("keydown",(function Calendar_div_3_ng_container_4_div_2_button_4_Template_button_keydown_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onContainerButtonKeydown(ne))})),ce.EFF(1),ce.k0s()}if(2&te){const te=ce.XpG().$implicit,ne=ce.XpG(3);ce.Y8G("disabled",ne.switchViewButtonDisabled()),ce.BMQ("aria-label",ne.getTranslation("chooseMonth")),ce.R7$(),ce.SpI(" ",ne.getMonthName(te.month)," ")}}function Calendar_div_3_ng_container_4_div_2_button_5_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",43),ce.bIt("click",(function Calendar_div_3_ng_container_4_div_2_button_5_Template_button_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.switchToYearView(ne))}))("keydown",(function Calendar_div_3_ng_container_4_div_2_button_5_Template_button_keydown_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onContainerButtonKeydown(ne))})),ce.EFF(1),ce.k0s()}if(2&te){const te=ce.XpG().$implicit,ne=ce.XpG(3);ce.Y8G("disabled",ne.switchViewButtonDisabled()),ce.BMQ("aria-label",ne.getTranslation("chooseYear")),ce.R7$(),ce.SpI(" ",ne.getYear(te)," ")}}function Calendar_div_3_ng_container_4_div_2_span_6_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.EFF(1),ce.bVm()),2&te){const te=ce.XpG(5);ce.R7$(),ce.Lme("",te.yearPickerValues()[0]," - ",te.yearPickerValues()[te.yearPickerValues().length-1],"")}}function Calendar_div_3_ng_container_4_div_2_span_6_ng_container_2_Template(te,ne){1&te&&ce.eu8(0)}const _c5=te=>({$implicit:te});function Calendar_div_3_ng_container_4_div_2_span_6_Template(te,ne){if(1&te&&(ce.j41(0,"span",44),ce.DNE(1,Calendar_div_3_ng_container_4_div_2_span_6_ng_container_1_Template,2,2,"ng-container",6)(2,Calendar_div_3_ng_container_4_div_2_span_6_ng_container_2_Template,1,0,"ng-container",17),ce.k0s()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngIf",!te.decadeTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.decadeTemplate)("ngTemplateOutletContext",ce.eq3(3,_c5,te.yearPickerValues))}}function Calendar_div_3_ng_container_4_div_2_ChevronRightIcon_8_Template(te,ne){1&te&&ce.nrm(0,"ChevronRightIcon",40),2&te&&ce.Y8G("styleClass","p-datepicker-next-icon")}function Calendar_div_3_ng_container_4_div_2_span_9_1_ng_template_0_Template(te,ne){}function Calendar_div_3_ng_container_4_div_2_span_9_1_Template(te,ne){1&te&&ce.DNE(0,Calendar_div_3_ng_container_4_div_2_span_9_1_ng_template_0_Template,0,0,"ng-template")}function Calendar_div_3_ng_container_4_div_2_span_9_Template(te,ne){if(1&te&&(ce.j41(0,"span",45),ce.DNE(1,Calendar_div_3_ng_container_4_div_2_span_9_1_Template,1,0,null,12),ce.k0s()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.nextIconTemplate)}}function Calendar_div_3_ng_container_4_div_2_div_10_th_4_Template(te,ne){if(1&te&&(ce.j41(0,"th",51)(1,"span"),ce.EFF(2),ce.k0s()()),2&te){const te=ce.XpG(5);ce.R7$(2),ce.JRh(te.getTranslation("weekHeader"))}}function Calendar_div_3_ng_container_4_div_2_div_10_th_5_Template(te,ne){if(1&te&&(ce.j41(0,"th",52)(1,"span"),ce.EFF(2),ce.k0s()()),2&te){const te=ne.$implicit;ce.R7$(2),ce.JRh(te)}}function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_1_Template(te,ne){if(1&te&&(ce.j41(0,"td",55)(1,"span",56),ce.EFF(2),ce.k0s()()),2&te){const te=ce.XpG().index,ne=ce.XpG(2).$implicit;ce.R7$(2),ce.SpI(" ",ne.weekNumbers[te]," ")}}function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.EFF(1),ce.bVm()),2&te){const te=ce.XpG(2).$implicit;ce.R7$(),ce.JRh(te.day)}}function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_3_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_3_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_3_ng_container_1_Template,1,0,"ng-container",17),ce.bVm()),2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG(6);ce.R7$(),ce.Y8G("ngTemplateOutlet",ne.dateTemplate)("ngTemplateOutletContext",ce.eq3(2,_c5,te))}}function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_4_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_4_ng_container_1_Template,1,0,"ng-container",17),ce.bVm()),2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG(6);ce.R7$(),ce.Y8G("ngTemplateOutlet",ne.disabledDateTemplate)("ngTemplateOutletContext",ce.eq3(2,_c5,te))}}function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_div_5_Template(te,ne){if(1&te&&(ce.j41(0,"div",59),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(2).$implicit;ce.R7$(),ce.SpI(" ",te.day," ")}}const _c6=(te,ne)=>({"p-highlight p-datepicker-current-day":te,"p-disabled":ne});function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.qex(0),ce.j41(1,"span",57),ce.bIt("click",(function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_Template_span_click_1_listener(ne){ce.eBV(te);const ie=ce.XpG().$implicit,re=ce.XpG(6);return ce.Njj(re.onDateSelect(ne,ie))}))("keydown",(function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_Template_span_keydown_1_listener(ne){ce.eBV(te);const ie=ce.XpG().$implicit,re=ce.XpG(3).index,le=ce.XpG(3);return ce.Njj(le.onDateCellKeydown(ne,ie,re))})),ce.DNE(2,Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_2_Template,2,1,"ng-container",6)(3,Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_3_Template,2,4,"ng-container",6)(4,Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_4_Template,2,4,"ng-container",6),ce.k0s(),ce.DNE(5,Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_div_5_Template,2,1,"div",58),ce.bVm()}if(2&te){const te=ce.XpG().$implicit,ne=ce.XpG(6);ce.R7$(),ce.Y8G("ngClass",ce.l_i(6,_c6,ne.isSelected(te)&&te.selectable,!te.selectable)),ce.BMQ("data-date",ne.formatDateKey(ne.formatDateMetaToDate(te))),ce.R7$(),ce.Y8G("ngIf",!ne.dateTemplate&&(te.selectable||!ne.disabledDateTemplate)),ce.R7$(),ce.Y8G("ngIf",te.selectable||!ne.disabledDateTemplate),ce.R7$(),ce.Y8G("ngIf",!te.selectable),ce.R7$(),ce.Y8G("ngIf",ne.isSelected(te))}}const _c7=(te,ne)=>({"p-datepicker-other-month":te,"p-datepicker-today":ne});function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_Template(te,ne){if(1&te&&(ce.j41(0,"td",15),ce.DNE(1,Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_Template,6,9,"ng-container",6),ce.k0s()),2&te){const te=ne.$implicit,ie=ce.XpG(6);ce.Y8G("ngClass",ce.l_i(3,_c7,te.otherMonth,te.today)),ce.BMQ("aria-label",te.day),ce.R7$(),ce.Y8G("ngIf",!te.otherMonth||ie.showOtherMonths)}}function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_Template(te,ne){if(1&te&&(ce.j41(0,"tr"),ce.DNE(1,Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_1_Template,3,1,"td",53)(2,Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_Template,2,6,"td",54),ce.k0s()),2&te){const te=ne.$implicit,ie=ce.XpG(5);ce.R7$(),ce.Y8G("ngIf",ie.showWeek),ce.R7$(),ce.Y8G("ngForOf",te)}}function Calendar_div_3_ng_container_4_div_2_div_10_Template(te,ne){if(1&te&&(ce.j41(0,"div",46)(1,"table",47)(2,"thead")(3,"tr"),ce.DNE(4,Calendar_div_3_ng_container_4_div_2_div_10_th_4_Template,3,1,"th",48)(5,Calendar_div_3_ng_container_4_div_2_div_10_th_5_Template,3,1,"th",49),ce.k0s()(),ce.j41(6,"tbody"),ce.DNE(7,Calendar_div_3_ng_container_4_div_2_div_10_tr_7_Template,3,2,"tr",50),ce.k0s()()()),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(3);ce.R7$(4),ce.Y8G("ngIf",ne.showWeek),ce.R7$(),ce.Y8G("ngForOf",ne.weekDays),ce.R7$(2),ce.Y8G("ngForOf",te.dates)}}function Calendar_div_3_ng_container_4_div_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",27)(1,"div",28),ce.DNE(2,Calendar_div_3_ng_container_4_div_2_button_2_Template,3,3,"button",29),ce.j41(3,"div",30),ce.DNE(4,Calendar_div_3_ng_container_4_div_2_button_4_Template,2,3,"button",31)(5,Calendar_div_3_ng_container_4_div_2_button_5_Template,2,3,"button",32)(6,Calendar_div_3_ng_container_4_div_2_span_6_Template,3,5,"span",33),ce.k0s(),ce.j41(7,"button",34),ce.bIt("keydown",(function Calendar_div_3_ng_container_4_div_2_Template_button_keydown_7_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("click",(function Calendar_div_3_ng_container_4_div_2_Template_button_click_7_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onNextButtonClick(ne))})),ce.DNE(8,Calendar_div_3_ng_container_4_div_2_ChevronRightIcon_8_Template,1,1,"ChevronRightIcon",35)(9,Calendar_div_3_ng_container_4_div_2_span_9_Template,2,1,"span",36),ce.k0s()(),ce.DNE(10,Calendar_div_3_ng_container_4_div_2_div_10_Template,8,3,"div",37),ce.k0s()}if(2&te){const te=ne.index,ie=ce.XpG(3);ce.R7$(2),ce.Y8G("ngIf",0===te),ce.R7$(2),ce.Y8G("ngIf","date"===ie.currentView),ce.R7$(),ce.Y8G("ngIf","year"!==ie.currentView),ce.R7$(),ce.Y8G("ngIf","year"===ie.currentView),ce.R7$(),ce.xc7("display",1===ie.numberOfMonths||te===ie.numberOfMonths-1?"inline-flex":"none"),ce.BMQ("aria-label",ie.nextIconAriaLabel),ce.R7$(),ce.Y8G("ngIf",!ie.nextIconTemplate),ce.R7$(),ce.Y8G("ngIf",ie.nextIconTemplate),ce.R7$(),ce.Y8G("ngIf","date"===ie.currentView)}}function Calendar_div_3_ng_container_4_div_3_span_1_div_2_Template(te,ne){if(1&te&&(ce.j41(0,"div",59),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG().$implicit;ce.R7$(),ce.SpI(" ",te," ")}}const _c8=(te,ne)=>({"p-highlight":te,"p-disabled":ne});function Calendar_div_3_ng_container_4_div_3_span_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"span",62),ce.bIt("click",(function Calendar_div_3_ng_container_4_div_3_span_1_Template_span_click_0_listener(ne){const ie=ce.eBV(te).index,re=ce.XpG(4);return ce.Njj(re.onMonthSelect(ne,ie))}))("keydown",(function Calendar_div_3_ng_container_4_div_3_span_1_Template_span_keydown_0_listener(ne){const ie=ce.eBV(te).index,re=ce.XpG(4);return ce.Njj(re.onMonthCellKeydown(ne,ie))})),ce.EFF(1),ce.DNE(2,Calendar_div_3_ng_container_4_div_3_span_1_div_2_Template,2,1,"div",58),ce.k0s()}if(2&te){const te=ne.$implicit,ie=ne.index,re=ce.XpG(4);ce.Y8G("ngClass",ce.l_i(3,_c8,re.isMonthSelected(ie),re.isMonthDisabled(ie))),ce.R7$(),ce.SpI(" ",te," "),ce.R7$(),ce.Y8G("ngIf",re.isMonthSelected(ie))}}function Calendar_div_3_ng_container_4_div_3_Template(te,ne){if(1&te&&(ce.j41(0,"div",60),ce.DNE(1,Calendar_div_3_ng_container_4_div_3_span_1_Template,3,6,"span",61),ce.k0s()),2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngForOf",te.monthPickerValues())}}function Calendar_div_3_ng_container_4_div_4_span_1_div_2_Template(te,ne){if(1&te&&(ce.j41(0,"div",59),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG().$implicit;ce.R7$(),ce.SpI(" ",te," ")}}function Calendar_div_3_ng_container_4_div_4_span_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"span",65),ce.bIt("click",(function Calendar_div_3_ng_container_4_div_4_span_1_Template_span_click_0_listener(ne){const ie=ce.eBV(te).$implicit,re=ce.XpG(4);return ce.Njj(re.onYearSelect(ne,ie))}))("keydown",(function Calendar_div_3_ng_container_4_div_4_span_1_Template_span_keydown_0_listener(ne){const ie=ce.eBV(te).$implicit,re=ce.XpG(4);return ce.Njj(re.onYearCellKeydown(ne,ie))})),ce.EFF(1),ce.DNE(2,Calendar_div_3_ng_container_4_div_4_span_1_div_2_Template,2,1,"div",58),ce.k0s()}if(2&te){const te=ne.$implicit,ie=ce.XpG(4);ce.Y8G("ngClass",ce.l_i(3,_c8,ie.isYearSelected(te),ie.isYearDisabled(te))),ce.R7$(),ce.SpI(" ",te," "),ce.R7$(),ce.Y8G("ngIf",ie.isYearSelected(te))}}function Calendar_div_3_ng_container_4_div_4_Template(te,ne){if(1&te&&(ce.j41(0,"div",63),ce.DNE(1,Calendar_div_3_ng_container_4_div_4_span_1_Template,3,6,"span",64),ce.k0s()),2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngForOf",te.yearPickerValues())}}function Calendar_div_3_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.j41(1,"div",23),ce.DNE(2,Calendar_div_3_ng_container_4_div_2_Template,11,10,"div",24),ce.k0s(),ce.DNE(3,Calendar_div_3_ng_container_4_div_3_Template,2,1,"div",25)(4,Calendar_div_3_ng_container_4_div_4_Template,2,1,"div",26),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(2),ce.Y8G("ngForOf",te.months),ce.R7$(),ce.Y8G("ngIf","month"===te.currentView),ce.R7$(),ce.Y8G("ngIf","year"===te.currentView)}}function Calendar_div_3_div_5_ChevronUpIcon_3_Template(te,ne){1&te&&ce.nrm(0,"ChevronUpIcon")}function Calendar_div_3_div_5_4_ng_template_0_Template(te,ne){}function Calendar_div_3_div_5_4_Template(te,ne){1&te&&ce.DNE(0,Calendar_div_3_div_5_4_ng_template_0_Template,0,0,"ng-template")}function Calendar_div_3_div_5_ng_container_6_Template(te,ne){1&te&&(ce.qex(0),ce.EFF(1,"0"),ce.bVm())}function Calendar_div_3_div_5_ChevronDownIcon_9_Template(te,ne){1&te&&ce.nrm(0,"ChevronDownIcon")}function Calendar_div_3_div_5_10_ng_template_0_Template(te,ne){}function Calendar_div_3_div_5_10_Template(te,ne){1&te&&ce.DNE(0,Calendar_div_3_div_5_10_ng_template_0_Template,0,0,"ng-template")}function Calendar_div_3_div_5_ChevronUpIcon_16_Template(te,ne){1&te&&ce.nrm(0,"ChevronUpIcon")}function Calendar_div_3_div_5_17_ng_template_0_Template(te,ne){}function Calendar_div_3_div_5_17_Template(te,ne){1&te&&ce.DNE(0,Calendar_div_3_div_5_17_ng_template_0_Template,0,0,"ng-template")}function Calendar_div_3_div_5_ng_container_19_Template(te,ne){1&te&&(ce.qex(0),ce.EFF(1,"0"),ce.bVm())}function Calendar_div_3_div_5_ChevronDownIcon_22_Template(te,ne){1&te&&ce.nrm(0,"ChevronDownIcon")}function Calendar_div_3_div_5_23_ng_template_0_Template(te,ne){}function Calendar_div_3_div_5_23_Template(te,ne){1&te&&ce.DNE(0,Calendar_div_3_div_5_23_ng_template_0_Template,0,0,"ng-template")}function Calendar_div_3_div_5_div_24_Template(te,ne){if(1&te&&(ce.j41(0,"div",69)(1,"span"),ce.EFF(2),ce.k0s()()),2&te){const te=ce.XpG(3);ce.R7$(2),ce.JRh(te.timeSeparator)}}function Calendar_div_3_div_5_div_25_ChevronUpIcon_2_Template(te,ne){1&te&&ce.nrm(0,"ChevronUpIcon")}function Calendar_div_3_div_5_div_25_3_ng_template_0_Template(te,ne){}function Calendar_div_3_div_5_div_25_3_Template(te,ne){1&te&&ce.DNE(0,Calendar_div_3_div_5_div_25_3_ng_template_0_Template,0,0,"ng-template")}function Calendar_div_3_div_5_div_25_ng_container_5_Template(te,ne){1&te&&(ce.qex(0),ce.EFF(1,"0"),ce.bVm())}function Calendar_div_3_div_5_div_25_ChevronDownIcon_8_Template(te,ne){1&te&&ce.nrm(0,"ChevronDownIcon")}function Calendar_div_3_div_5_div_25_9_ng_template_0_Template(te,ne){}function Calendar_div_3_div_5_div_25_9_Template(te,ne){1&te&&ce.DNE(0,Calendar_div_3_div_5_div_25_9_ng_template_0_Template,0,0,"ng-template")}function Calendar_div_3_div_5_div_25_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",74)(1,"button",68),ce.bIt("keydown",(function Calendar_div_3_div_5_div_25_Template_button_keydown_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("keydown.enter",(function Calendar_div_3_div_5_div_25_Template_button_keydown_enter_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.incrementSecond(ne))}))("keydown.space",(function Calendar_div_3_div_5_div_25_Template_button_keydown_space_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.incrementSecond(ne))}))("mousedown",(function Calendar_div_3_div_5_div_25_Template_button_mousedown_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onTimePickerElementMouseDown(ne,2,1))}))("mouseup",(function Calendar_div_3_div_5_div_25_Template_button_mouseup_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.enter",(function Calendar_div_3_div_5_div_25_Template_button_keyup_enter_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.space",(function Calendar_div_3_div_5_div_25_Template_button_keyup_space_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("mouseleave",(function Calendar_div_3_div_5_div_25_Template_button_mouseleave_1_listener(){ce.eBV(te);const ne=ce.XpG(3);return ce.Njj(ne.onTimePickerElementMouseLeave())})),ce.DNE(2,Calendar_div_3_div_5_div_25_ChevronUpIcon_2_Template,1,0,"ChevronUpIcon",6)(3,Calendar_div_3_div_5_div_25_3_Template,1,0,null,12),ce.k0s(),ce.j41(4,"span"),ce.DNE(5,Calendar_div_3_div_5_div_25_ng_container_5_Template,2,0,"ng-container",6),ce.EFF(6),ce.k0s(),ce.j41(7,"button",68),ce.bIt("keydown",(function Calendar_div_3_div_5_div_25_Template_button_keydown_7_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("keydown.enter",(function Calendar_div_3_div_5_div_25_Template_button_keydown_enter_7_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.decrementSecond(ne))}))("keydown.space",(function Calendar_div_3_div_5_div_25_Template_button_keydown_space_7_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.decrementSecond(ne))}))("mousedown",(function Calendar_div_3_div_5_div_25_Template_button_mousedown_7_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onTimePickerElementMouseDown(ne,2,-1))}))("mouseup",(function Calendar_div_3_div_5_div_25_Template_button_mouseup_7_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.enter",(function Calendar_div_3_div_5_div_25_Template_button_keyup_enter_7_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.space",(function Calendar_div_3_div_5_div_25_Template_button_keyup_space_7_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("mouseleave",(function Calendar_div_3_div_5_div_25_Template_button_mouseleave_7_listener(){ce.eBV(te);const ne=ce.XpG(3);return ce.Njj(ne.onTimePickerElementMouseLeave())})),ce.DNE(8,Calendar_div_3_div_5_div_25_ChevronDownIcon_8_Template,1,0,"ChevronDownIcon",6)(9,Calendar_div_3_div_5_div_25_9_Template,1,0,null,12),ce.k0s()()}if(2&te){const te=ce.XpG(3);ce.R7$(),ce.BMQ("aria-label",te.getTranslation("nextSecond")),ce.R7$(),ce.Y8G("ngIf",!te.incrementIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.incrementIconTemplate),ce.R7$(2),ce.Y8G("ngIf",te.currentSecond<10),ce.R7$(),ce.JRh(te.currentSecond),ce.R7$(),ce.BMQ("aria-label",te.getTranslation("prevSecond")),ce.R7$(),ce.Y8G("ngIf",!te.decrementIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.decrementIconTemplate)}}function Calendar_div_3_div_5_div_26_ChevronUpIcon_2_Template(te,ne){1&te&&ce.nrm(0,"ChevronUpIcon")}function Calendar_div_3_div_5_div_26_3_ng_template_0_Template(te,ne){}function Calendar_div_3_div_5_div_26_3_Template(te,ne){1&te&&ce.DNE(0,Calendar_div_3_div_5_div_26_3_ng_template_0_Template,0,0,"ng-template")}function Calendar_div_3_div_5_div_26_ChevronDownIcon_7_Template(te,ne){1&te&&ce.nrm(0,"ChevronDownIcon")}function Calendar_div_3_div_5_div_26_8_ng_template_0_Template(te,ne){}function Calendar_div_3_div_5_div_26_8_Template(te,ne){1&te&&ce.DNE(0,Calendar_div_3_div_5_div_26_8_ng_template_0_Template,0,0,"ng-template")}function Calendar_div_3_div_5_div_26_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",75)(1,"button",76),ce.bIt("keydown",(function Calendar_div_3_div_5_div_26_Template_button_keydown_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("click",(function Calendar_div_3_div_5_div_26_Template_button_click_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.toggleAMPM(ne))}))("keydown.enter",(function Calendar_div_3_div_5_div_26_Template_button_keydown_enter_1_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.toggleAMPM(ne))})),ce.DNE(2,Calendar_div_3_div_5_div_26_ChevronUpIcon_2_Template,1,0,"ChevronUpIcon",6)(3,Calendar_div_3_div_5_div_26_3_Template,1,0,null,12),ce.k0s(),ce.j41(4,"span"),ce.EFF(5),ce.k0s(),ce.j41(6,"button",76),ce.bIt("keydown",(function Calendar_div_3_div_5_div_26_Template_button_keydown_6_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("click",(function Calendar_div_3_div_5_div_26_Template_button_click_6_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.toggleAMPM(ne))}))("keydown.enter",(function Calendar_div_3_div_5_div_26_Template_button_keydown_enter_6_listener(ne){ce.eBV(te);const ie=ce.XpG(3);return ce.Njj(ie.toggleAMPM(ne))})),ce.DNE(7,Calendar_div_3_div_5_div_26_ChevronDownIcon_7_Template,1,0,"ChevronDownIcon",6)(8,Calendar_div_3_div_5_div_26_8_Template,1,0,null,12),ce.k0s()()}if(2&te){const te=ce.XpG(3);ce.R7$(),ce.BMQ("aria-label",te.getTranslation("am")),ce.R7$(),ce.Y8G("ngIf",!te.incrementIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.incrementIconTemplate),ce.R7$(2),ce.JRh(te.pm?"PM":"AM"),ce.R7$(),ce.BMQ("aria-label",te.getTranslation("pm")),ce.R7$(),ce.Y8G("ngIf",!te.decrementIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.decrementIconTemplate)}}function Calendar_div_3_div_5_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",66)(1,"div",67)(2,"button",68),ce.bIt("keydown",(function Calendar_div_3_div_5_Template_button_keydown_2_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("keydown.enter",(function Calendar_div_3_div_5_Template_button_keydown_enter_2_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.incrementHour(ne))}))("keydown.space",(function Calendar_div_3_div_5_Template_button_keydown_space_2_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.incrementHour(ne))}))("mousedown",(function Calendar_div_3_div_5_Template_button_mousedown_2_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseDown(ne,0,1))}))("mouseup",(function Calendar_div_3_div_5_Template_button_mouseup_2_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.enter",(function Calendar_div_3_div_5_Template_button_keyup_enter_2_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.space",(function Calendar_div_3_div_5_Template_button_keyup_space_2_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("mouseleave",(function Calendar_div_3_div_5_Template_button_mouseleave_2_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.onTimePickerElementMouseLeave())})),ce.DNE(3,Calendar_div_3_div_5_ChevronUpIcon_3_Template,1,0,"ChevronUpIcon",6)(4,Calendar_div_3_div_5_4_Template,1,0,null,12),ce.k0s(),ce.j41(5,"span"),ce.DNE(6,Calendar_div_3_div_5_ng_container_6_Template,2,0,"ng-container",6),ce.EFF(7),ce.k0s(),ce.j41(8,"button",68),ce.bIt("keydown",(function Calendar_div_3_div_5_Template_button_keydown_8_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("keydown.enter",(function Calendar_div_3_div_5_Template_button_keydown_enter_8_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.decrementHour(ne))}))("keydown.space",(function Calendar_div_3_div_5_Template_button_keydown_space_8_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.decrementHour(ne))}))("mousedown",(function Calendar_div_3_div_5_Template_button_mousedown_8_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseDown(ne,0,-1))}))("mouseup",(function Calendar_div_3_div_5_Template_button_mouseup_8_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.enter",(function Calendar_div_3_div_5_Template_button_keyup_enter_8_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.space",(function Calendar_div_3_div_5_Template_button_keyup_space_8_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("mouseleave",(function Calendar_div_3_div_5_Template_button_mouseleave_8_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.onTimePickerElementMouseLeave())})),ce.DNE(9,Calendar_div_3_div_5_ChevronDownIcon_9_Template,1,0,"ChevronDownIcon",6)(10,Calendar_div_3_div_5_10_Template,1,0,null,12),ce.k0s()(),ce.j41(11,"div",69)(12,"span"),ce.EFF(13),ce.k0s()(),ce.j41(14,"div",70)(15,"button",68),ce.bIt("keydown",(function Calendar_div_3_div_5_Template_button_keydown_15_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("keydown.enter",(function Calendar_div_3_div_5_Template_button_keydown_enter_15_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.incrementMinute(ne))}))("keydown.space",(function Calendar_div_3_div_5_Template_button_keydown_space_15_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.incrementMinute(ne))}))("mousedown",(function Calendar_div_3_div_5_Template_button_mousedown_15_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseDown(ne,1,1))}))("mouseup",(function Calendar_div_3_div_5_Template_button_mouseup_15_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.enter",(function Calendar_div_3_div_5_Template_button_keyup_enter_15_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.space",(function Calendar_div_3_div_5_Template_button_keyup_space_15_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("mouseleave",(function Calendar_div_3_div_5_Template_button_mouseleave_15_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.onTimePickerElementMouseLeave())})),ce.DNE(16,Calendar_div_3_div_5_ChevronUpIcon_16_Template,1,0,"ChevronUpIcon",6)(17,Calendar_div_3_div_5_17_Template,1,0,null,12),ce.k0s(),ce.j41(18,"span"),ce.DNE(19,Calendar_div_3_div_5_ng_container_19_Template,2,0,"ng-container",6),ce.EFF(20),ce.k0s(),ce.j41(21,"button",68),ce.bIt("keydown",(function Calendar_div_3_div_5_Template_button_keydown_21_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("keydown.enter",(function Calendar_div_3_div_5_Template_button_keydown_enter_21_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.decrementMinute(ne))}))("keydown.space",(function Calendar_div_3_div_5_Template_button_keydown_space_21_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.decrementMinute(ne))}))("mousedown",(function Calendar_div_3_div_5_Template_button_mousedown_21_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseDown(ne,1,-1))}))("mouseup",(function Calendar_div_3_div_5_Template_button_mouseup_21_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.enter",(function Calendar_div_3_div_5_Template_button_keyup_enter_21_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("keyup.space",(function Calendar_div_3_div_5_Template_button_keyup_space_21_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTimePickerElementMouseUp(ne))}))("mouseleave",(function Calendar_div_3_div_5_Template_button_mouseleave_21_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.onTimePickerElementMouseLeave())})),ce.DNE(22,Calendar_div_3_div_5_ChevronDownIcon_22_Template,1,0,"ChevronDownIcon",6)(23,Calendar_div_3_div_5_23_Template,1,0,null,12),ce.k0s()(),ce.DNE(24,Calendar_div_3_div_5_div_24_Template,3,1,"div",71)(25,Calendar_div_3_div_5_div_25_Template,10,8,"div",72)(26,Calendar_div_3_div_5_div_26_Template,9,7,"div",73),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.R7$(2),ce.BMQ("aria-label",te.getTranslation("nextHour")),ce.R7$(),ce.Y8G("ngIf",!te.incrementIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.incrementIconTemplate),ce.R7$(2),ce.Y8G("ngIf",te.currentHour<10),ce.R7$(),ce.JRh(te.currentHour),ce.R7$(),ce.BMQ("aria-label",te.getTranslation("prevHour")),ce.R7$(),ce.Y8G("ngIf",!te.decrementIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.decrementIconTemplate),ce.R7$(3),ce.JRh(te.timeSeparator),ce.R7$(2),ce.BMQ("aria-label",te.getTranslation("nextMinute")),ce.R7$(),ce.Y8G("ngIf",!te.incrementIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.incrementIconTemplate),ce.R7$(2),ce.Y8G("ngIf",te.currentMinute<10),ce.R7$(),ce.JRh(te.currentMinute),ce.R7$(),ce.BMQ("aria-label",te.getTranslation("prevMinute")),ce.R7$(),ce.Y8G("ngIf",!te.decrementIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.decrementIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.showSeconds),ce.R7$(),ce.Y8G("ngIf",te.showSeconds),ce.R7$(),ce.Y8G("ngIf","12"==te.hourFormat)}}const _c9=te=>[te];function Calendar_div_3_div_6_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",77)(1,"button",78),ce.bIt("keydown",(function Calendar_div_3_div_6_Template_button_keydown_1_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("click",(function Calendar_div_3_div_6_Template_button_click_1_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onTodayButtonClick(ne))})),ce.k0s(),ce.j41(2,"button",78),ce.bIt("keydown",(function Calendar_div_3_div_6_Template_button_keydown_2_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onContainerButtonKeydown(ne))}))("click",(function Calendar_div_3_div_6_Template_button_click_2_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onClearButtonClick(ne))})),ce.k0s()()}if(2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("label",te.getTranslation("today"))("ngClass",ce.eq3(4,_c9,te.todayButtonStyleClass)),ce.R7$(),ce.Y8G("label",te.getTranslation("clear"))("ngClass",ce.eq3(6,_c9,te.clearButtonStyleClass))}}function Calendar_div_3_ng_container_8_Template(te,ne){1&te&&ce.eu8(0)}const _c10=(te,ne,ie,re,le,ce)=>({"p-datepicker p-component":!0,"p-datepicker-inline":te,"p-disabled":ne,"p-datepicker-timeonly":ie,"p-datepicker-multiple-month":re,"p-datepicker-monthpicker":le,"p-datepicker-touch-ui":ce}),_c11=(te,ne)=>({showTransitionParams:te,hideTransitionParams:ne}),_c12=te=>({value:"visibleTouchUI",params:te}),_c13=te=>({value:"visible",params:te});function Calendar_div_3_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",19,20),ce.bIt("@overlayAnimation.start",(function Calendar_div_3_Template_div_animation_overlayAnimation_start_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onOverlayAnimationStart(ne))}))("@overlayAnimation.done",(function Calendar_div_3_Template_div_animation_overlayAnimation_done_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onOverlayAnimationDone(ne))}))("click",(function Calendar_div_3_Template_div_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onOverlayClick(ne))})),ce.SdG(2),ce.DNE(3,Calendar_div_3_ng_container_3_Template,1,0,"ng-container",12)(4,Calendar_div_3_ng_container_4_Template,5,3,"ng-container",6)(5,Calendar_div_3_div_5_Template,27,20,"div",21)(6,Calendar_div_3_div_6_Template,3,8,"div",22),ce.SdG(7,1),ce.DNE(8,Calendar_div_3_ng_container_8_Template,1,0,"ng-container",12),ce.k0s()}if(2&te){const te=ce.XpG();ce.HbH(te.panelStyleClass),ce.Y8G("ngStyle",te.panelStyle)("ngClass",ce.l4e(15,_c10,te.inline,te.disabled,te.timeOnly,te.numberOfMonths>1,"month"===te.view,te.touchUI))("@overlayAnimation",te.touchUI?ce.eq3(25,_c12,ce.l_i(22,_c11,te.showTransitionOptions,te.hideTransitionOptions)):ce.eq3(30,_c13,ce.l_i(27,_c11,te.showTransitionOptions,te.hideTransitionOptions)))("@.disabled",!0===te.inline),ce.BMQ("id",te.panelId)("aria-label",te.getTranslation("chooseDate"))("role",te.inline?null:"dialog")("aria-modal",te.inline?null:"true"),ce.R7$(3),ce.Y8G("ngTemplateOutlet",te.headerTemplate),ce.R7$(),ce.Y8G("ngIf",!te.timeOnly),ce.R7$(),ce.Y8G("ngIf",(te.showTime||te.timeOnly)&&"date"===te.currentView),ce.R7$(),ce.Y8G("ngIf",te.showButtonBar),ce.R7$(2),ce.Y8G("ngTemplateOutlet",te.footerTemplate)}}const Le=[[["p-header"]],[["p-footer"]]],_c15=(te,ne,ie,re,le)=>({"p-calendar":!0,"p-input-icon-right":te,"p-calendar-w-btn":ne,"p-calendar-timeonly":ie,"p-calendar-disabled":re,"p-focus":le}),Oe=["p-header","p-footer"],Pe={provide:de.kq,useExisting:(0,ce.Rfq)((()=>Fe)),multi:!0};let Fe=(()=>{class Calendar{document;el;renderer;cd;zone;config;overlayService;iconDisplay="button";style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepYearPicker=10;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;variant="outlined";get minDate(){return this._minDate}set minDate(te){this._minDate=te,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(te){this._maxDate=te,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(te){this._disabledDates=te,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(te){this._disabledDays=te,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(te){if(this._yearRange=te,te){const ne=te.split(":"),ie=parseInt(ne[0]),re=parseInt(ne[1]);this.populateYearOptions(ie,re)}}get showTime(){return this._showTime}set showTime(te){this._showTime=te,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(te){this._responsiveOptions=te,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(te){this._numberOfMonths=te,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(te){this._firstDayOfWeek=te,this.createWeekDays()}set locale(te){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(te){this._view=te,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(te){if(this._defaultDate=te,this.initialized){const ne=te||new Date;this.currentMonth=ne.getMonth(),this.currentYear=ne.getFullYear(),this.initTime(ne),this.createMonths(this.currentMonth,this.currentYear)}}get inputClass(){return{"p-inputtext p-component":!0,"p-variant-filled":"filled"===this.variant||"filled"===this.config.inputStyle()}}onFocus=new ce.bkB;onBlur=new ce.bkB;onClose=new ce.bkB;onSelect=new ce.bkB;onClear=new ce.bkB;onInput=new ce.bkB;onTodayClick=new ce.bkB;onClearClick=new ce.bkB;onMonthChange=new ce.bkB;onYearChange=new ce.bkB;onClickOutside=new ce.bkB;onShow=new ce.bkB;templates;containerViewChild;inputfieldViewChild;set content(te){this.contentViewChild=te,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then((()=>this.updateFocus())),this.isMonthNavigate=!1):this.focus||this.inline||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return"year"===this.currentView?this.getTranslation("prevDecade"):"month"===this.currentView?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return"year"===this.currentView?this.getTranslation("nextDecade"):"month"===this.currentView?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(te,ne,ie,re,le,ce,de){this.document=te,this.el=ne,this.renderer=ie,this.cd=re,this.zone=le,this.config=ce,this.overlayService=de,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=(0,_e._Y)(),this.panelId=this.attributeSelector+"_panel";const te=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=te.getMonth(),this.currentYear=te.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(te),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe((()=>{this.createWeekDays(),this.cd.markForCheck()})),this.initialized=!0}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"date":default:this.dateTemplate=te.template;break;case"decade":this.decadeTemplate=te.template;break;case"disabledDate":this.disabledDateTemplate=te.template;break;case"header":this.headerTemplate=te.template;break;case"inputicon":this.inputIconTemplate=te.template;break;case"previousicon":this.previousIconTemplate=te.template;break;case"nexticon":this.nextIconTemplate=te.template;break;case"triggericon":this.triggerIconTemplate=te.template;break;case"clearicon":this.clearIconTemplate=te.template;break;case"decrementicon":this.decrementIconTemplate=te.template;break;case"incrementicon":this.incrementIconTemplate=te.template;break;case"footer":this.footerTemplate=te.template}}))}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||this.inline||(this.initFocusableCell(),1===this.numberOfMonths&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=ge.D.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(te){return this.config.getTranslation(te)}populateYearOptions(te,ne){this.yearOptions=[];for(let ie=te;ie<=ne;ie++)this.yearOptions.push(ie)}createWeekDays(){this.weekDays=[];let te=this.getFirstDateOfWeek(),ne=this.getTranslation(ue.Yj.DAY_NAMES_MIN);for(let ie=0;ie<7;ie++)this.weekDays.push(ne[te]),te=6==te?0:++te}monthPickerValues(){let te=[];for(let ne=0;ne<=11;ne++)te.push(this.config.getTranslation("monthNamesShort")[ne]);return te}yearPickerValues(){let te=[],ne=this.currentYear-this.currentYear%this.stepYearPicker;for(let ie=0;ie<this.stepYearPicker;ie++)te.push(ne+ie);return te}createMonths(te,ne){this.months=this.months=[];for(let ie=0;ie<this.numberOfMonths;ie++){let re=te+ie,le=ne;re>11&&(re=re%11-1,le=ne+1),this.months.push(this.createMonth(re,le))}}getWeekNumber(te){let ne=new Date(te.getTime());if(this.startWeekFromFirstDayOfYear){let te=+this.getFirstDateOfWeek();ne.setDate(ne.getDate()+6+te-ne.getDay())}else ne.setDate(ne.getDate()+4-(ne.getDay()||7));let ie=ne.getTime();return ne.setMonth(0),ne.setDate(1),Math.floor(Math.round((ie-ne.getTime())/864e5)/7)+1}createMonth(te,ne){let ie=[],re=this.getFirstDayOfMonthIndex(te,ne),le=this.getDaysCountInMonth(te,ne),ce=this.getDaysCountInPrevMonth(te,ne),de=1,ue=new Date,me=[],ge=Math.ceil((le+re)/7);for(let fe=0;fe<ge;fe++){let ge=[];if(0==fe){for(let ie=ce-re+1;ie<=ce;ie++){let re=this.getPreviousMonthAndYear(te,ne);ge.push({day:ie,month:re.month,year:re.year,otherMonth:!0,today:this.isToday(ue,ie,re.month,re.year),selectable:this.isSelectable(ie,re.month,re.year,!0)})}let ie=7-ge.length;for(let re=0;re<ie;re++)ge.push({day:de,month:te,year:ne,today:this.isToday(ue,de,te,ne),selectable:this.isSelectable(de,te,ne,!1)}),de++}else for(let ie=0;ie<7;ie++){if(de>le){let ie=this.getNextMonthAndYear(te,ne);ge.push({day:de-le,month:ie.month,year:ie.year,otherMonth:!0,today:this.isToday(ue,de-le,ie.month,ie.year),selectable:this.isSelectable(de-le,ie.month,ie.year,!0)})}else ge.push({day:de,month:te,year:ne,today:this.isToday(ue,de,te,ne),selectable:this.isSelectable(de,te,ne,!1)});de++}this.showWeek&&me.push(this.getWeekNumber(new Date(ge[0].year,ge[0].month,ge[0].day))),ie.push(ge)}return{month:te,year:ne,dates:ie,weekNumbers:me}}initTime(te){this.pm=te.getHours()>11,this.showTime?(this.currentMinute=te.getMinutes(),this.currentSecond=te.getSeconds(),this.setCurrentHourPM(te.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(te){this.disabled?te.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout((()=>{this.updateFocus()}),1)):"year"===this.currentView?(this.decrementYearPickerStep(),setTimeout((()=>{this.updateFocus()}),1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(te){this.disabled?te.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout((()=>{this.updateFocus()}),1)):"year"===this.currentView?(this.incrementYearPickerStep(),setTimeout((()=>{this.updateFocus()}),1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let te=this.yearOptions;if(this.yearNavigator&&this.currentYear<te[0]){let ne=te[te.length-1]-te[0];this.populateYearOptions(te[0]-ne,te[te.length-1]-ne)}}decrementYearPickerStep(){this.currentYear=this.currentYear-this.stepYearPicker}incrementYearPickerStep(){this.currentYear=this.currentYear+this.stepYearPicker}incrementYear(){this.currentYear++;let te=this.yearOptions;if(this.yearNavigator&&this.currentYear>te[te.length-1]){let ne=te[te.length-1]-te[0];this.populateYearOptions(te[0]+ne,te[te.length-1]+ne)}}switchToMonthView(te){this.setCurrentView("month"),te.preventDefault()}switchToYearView(te){this.setCurrentView("year"),te.preventDefault()}onDateSelect(te,ne){!this.disabled&&ne.selectable?(this.isMultipleSelection()&&this.isSelected(ne)?(this.value=this.value.filter(((te,ie)=>!this.isDateEquals(te,ne))),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(ne)&&this.selectDate(ne),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout((()=>{te.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()}),150),this.updateInputfield(),te.preventDefault()):te.preventDefault()}shouldSelectDate(te){return!this.isMultipleSelection()||(null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0))}onMonthSelect(te,ne){"month"===this.view?this.onDateSelect(te,{year:this.currentYear,month:ne,day:1,selectable:!0}):(this.currentMonth=ne,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(te,ne){"year"===this.view?this.onDateSelect(te,{year:ne,month:0,day:1,selectable:!0}):(this.currentYear=ne,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let te="";if(this.value)if(this.isSingleSelection())te=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let ne=0;ne<this.value.length;ne++){te+=this.formatDateTime(this.value[ne]),ne!==this.value.length-1&&(te+=this.multipleSeparator+" ")}else if(this.isRangeSelection()&&this.value&&this.value.length){let ne=this.value[0],ie=this.value[1];te=this.formatDateTime(ne),ie&&(te+=" "+this.rangeSeparator+" "+this.formatDateTime(ie))}this.inputFieldValue=te,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(te){let ne=this.keepInvalid?te:null;const ie=this.isValidDateForTimeConstraints(te);return this.isValidDate(te)?this.timeOnly?ne=this.formatTime(te):(ne=this.formatDate(te,this.getDateFormat()),this.showTime&&(ne+=" "+this.formatTime(te))):"string"===this.dataType&&(ne=te),ne=ie?ne:"",ne}formatDateMetaToDate(te){return new Date(te.year,te.month,te.day)}formatDateKey(te){return`${te.getFullYear()}-${te.getMonth()}-${te.getDate()}`}setCurrentHourPM(te){"12"==this.hourFormat?(this.pm=te>11,this.currentHour=te>=12?12==te?12:te-12:0==te?12:te):this.currentHour=te}setCurrentView(te){this.currentView=te,this.cd.detectChanges(),this.alignOverlay()}selectDate(te){let ne=this.formatDateMetaToDate(te);if(this.showTime&&("12"==this.hourFormat?12===this.currentHour?ne.setHours(this.pm?12:0):ne.setHours(this.pm?this.currentHour+12:this.currentHour):ne.setHours(this.currentHour),ne.setMinutes(this.currentMinute),ne.setSeconds(this.currentSecond)),this.minDate&&this.minDate>ne&&(ne=this.minDate,this.setCurrentHourPM(ne.getHours()),this.currentMinute=ne.getMinutes(),this.currentSecond=ne.getSeconds()),this.maxDate&&this.maxDate<ne&&(ne=this.maxDate,this.setCurrentHourPM(ne.getHours()),this.currentMinute=ne.getMinutes(),this.currentSecond=ne.getSeconds()),this.isSingleSelection())this.updateModel(ne);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,ne]:[ne]);else if(this.isRangeSelection())if(this.value&&this.value.length){let te=this.value[0],ie=this.value[1];!ie&&ne.getTime()>=te.getTime()?ie=ne:(te=ne,ie=null),this.updateModel([te,ie])}else this.updateModel([ne,null]);this.onSelect.emit(ne)}updateModel(te){if(this.value=te,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let te=null;Array.isArray(this.value)&&(te=this.value.map((te=>this.formatDateTime(te)))),this.onModelChange(te)}}getFirstDayOfMonthIndex(te,ne){let ie=new Date;ie.setDate(1),ie.setMonth(te),ie.setFullYear(ne);let re=ie.getDay()+this.getSundayIndex();return re>=7?re-7:re}getDaysCountInMonth(te,ne){return 32-this.daylightSavingAdjust(new Date(ne,te,32)).getDate()}getDaysCountInPrevMonth(te,ne){let ie=this.getPreviousMonthAndYear(te,ne);return this.getDaysCountInMonth(ie.month,ie.year)}getPreviousMonthAndYear(te,ne){let ie,re;return 0===te?(ie=11,re=ne-1):(ie=te-1,re=ne),{month:ie,year:re}}getNextMonthAndYear(te,ne){let ie,re;return 11===te?(ie=0,re=ne+1):(ie=te+1,re=ne),{month:ie,year:re}}getSundayIndex(){let te=this.getFirstDateOfWeek();return te>0?7-te:0}isSelected(te){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,te);if(this.isMultipleSelection()){let ne=!1;for(let ie of this.value)if(ne=this.isDateEquals(ie,te),ne)break;return ne}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],te)||this.isDateEquals(this.value[1],te)||this.isDateBetween(this.value[0],this.value[1],te):this.isDateEquals(this.value[0],te):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(te){if(this.isComparable()&&!this.isMultipleSelection()){const[ne,ie]=this.isRangeSelection()?this.value:[this.value,this.value],re=new Date(this.currentYear,te,1);return re>=ne&&re<=(ie??ne)}return!1}isMonthDisabled(te,ne){const ie=ne??this.currentYear;for(let ne=1;ne<this.getDaysCountInMonth(te,ie)+1;ne++)if(this.isSelectable(ne,te,ie,!1))return!1;return!0}isYearDisabled(te){return Array(12).fill(0).every(((ne,ie)=>this.isMonthDisabled(ie,te)))}isYearSelected(te){if(this.isComparable()){let ne=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&ne.getFullYear()===te}return!1}isDateEquals(te,ne){return!(!te||!_e.BF.isDate(te))&&(te.getDate()===ne.day&&te.getMonth()===ne.month&&te.getFullYear()===ne.year)}isDateBetween(te,ne,ie){if(_e.BF.isDate(te)&&_e.BF.isDate(ne)){let re=this.formatDateMetaToDate(ie);return te.getTime()<=re.getTime()&&ne.getTime()>=re.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(te,ne,ie,re){return te.getDate()===ne&&te.getMonth()===ie&&te.getFullYear()===re}isSelectable(te,ne,ie,re){let le=!0,ce=!0,de=!0,ue=!0;return!(re&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>ie||this.minDate.getFullYear()===ie&&"year"!=this.currentView&&(this.minDate.getMonth()>ne||this.minDate.getMonth()===ne&&this.minDate.getDate()>te))&&(le=!1),this.maxDate&&(this.maxDate.getFullYear()<ie||this.maxDate.getFullYear()===ie&&(this.maxDate.getMonth()<ne||this.maxDate.getMonth()===ne&&this.maxDate.getDate()<te))&&(ce=!1),this.disabledDates&&(de=!this.isDateDisabled(te,ne,ie)),this.disabledDays&&(ue=!this.isDayDisabled(te,ne,ie)),le&&ce&&de&&ue)}isDateDisabled(te,ne,ie){if(this.disabledDates)for(let re of this.disabledDates)if(re.getFullYear()===ie&&re.getMonth()===ne&&re.getDate()===te)return!0;return!1}isDayDisabled(te,ne,ie){if(this.disabledDays){let re=new Date(ie,ne,te).getDay();return-1!==this.disabledDays.indexOf(re)}return!1}onInputFocus(te){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(te)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(te){this.focus=!1,this.onBlur.emit(te),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(te,ne=this.inputfieldViewChild?.nativeElement){this.overlayVisible?this.hideOverlay():(ne.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(te){this.overlayService.add({originalEvent:te,target:this.el.nativeElement})}getMonthName(te){return this.config.getTranslation("monthNames")[te]}getYear(te){return"month"===this.currentView?this.currentYear:te.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(te){this.navigationState={backward:!0,button:!0},this.navBackward(te)}onNextButtonClick(te){this.navigationState={backward:!1,button:!0},this.navForward(te)}onContainerButtonKeydown(te){switch(te.which){case 9:if(this.inline||this.trapFocus(te),this.inline){const ne=ge.D.findSingle(this.containerViewChild?.nativeElement,".p-datepicker-header"),ie=te.target;if(this.timeOnly)return;ie==ne.children[ne?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,te.preventDefault()}}onInputKeydown(te){this.isKeydown=!0,40===te.keyCode&&this.contentViewChild?this.trapFocus(te):27===te.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,te.preventDefault()):13===te.keyCode?this.overlayVisible&&(this.overlayVisible=!1,te.preventDefault()):9===te.keyCode&&this.contentViewChild&&(ge.D.getFocusableElements(this.contentViewChild.nativeElement).forEach((te=>te.tabIndex="-1")),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(te,ne,ie){const re=te.currentTarget,le=re.parentElement,ce=this.formatDateMetaToDate(ne);switch(te.which){case 40:{re.tabIndex="-1";let ne=ge.D.index(le),ie=le.parentElement.nextElementSibling;if(ie){let re=ie.children[ne].children[0];ge.D.hasClass(re,"p-disabled")?(this.navigationState={backward:!1},this.navForward(te)):(ie.children[ne].children[0].tabIndex="0",ie.children[ne].children[0].focus())}else this.navigationState={backward:!1},this.navForward(te);te.preventDefault();break}case 38:{re.tabIndex="-1";let ne=ge.D.index(le),ie=le.parentElement.previousElementSibling;if(ie){let re=ie.children[ne].children[0];ge.D.hasClass(re,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(te)):(re.tabIndex="0",re.focus())}else this.navigationState={backward:!0},this.navBackward(te);te.preventDefault();break}case 37:{re.tabIndex="-1";let ne=le.previousElementSibling;if(ne){let te=ne.children[0];ge.D.hasClass(te,"p-disabled")||ge.D.hasClass(te.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,ie):(te.tabIndex="0",te.focus())}else this.navigateToMonth(!0,ie);te.preventDefault();break}case 39:{re.tabIndex="-1";let ne=le.nextElementSibling;if(ne){let te=ne.children[0];ge.D.hasClass(te,"p-disabled")?this.navigateToMonth(!1,ie):(te.tabIndex="0",te.focus())}else this.navigateToMonth(!1,ie);te.preventDefault();break}case 13:case 32:this.onDateSelect(te,ne),te.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,te.preventDefault();break;case 9:this.inline||this.trapFocus(te);break;case 33:{re.tabIndex="-1";const ne=new Date(ce.getFullYear(),ce.getMonth()-1,ce.getDate()),le=this.formatDateKey(ne);this.navigateToMonth(!0,ie,`span[data-date='${le}']:not(.p-disabled):not(.p-ink)`),te.preventDefault();break}case 34:{re.tabIndex="-1";const ne=new Date(ce.getFullYear(),ce.getMonth()+1,ce.getDate()),le=this.formatDateKey(ne);this.navigateToMonth(!1,ie,`span[data-date='${le}']:not(.p-disabled):not(.p-ink)`),te.preventDefault();break}case 36:re.tabIndex="-1";const de=new Date(ce.getFullYear(),ce.getMonth(),1),ue=this.formatDateKey(de),me=ge.D.findSingle(re.offsetParent,`span[data-date='${ue}']:not(.p-disabled):not(.p-ink)`);me&&(me.tabIndex="0",me.focus()),te.preventDefault();break;case 35:re.tabIndex="-1";const fe=new Date(ce.getFullYear(),ce.getMonth()+1,0),_e=this.formatDateKey(fe),be=ge.D.findSingle(re.offsetParent,`span[data-date='${_e}']:not(.p-disabled):not(.p-ink)`);fe&&(be.tabIndex="0",be.focus()),te.preventDefault()}}onMonthCellKeydown(te,ne){const ie=te.currentTarget;switch(te.which){case 38:case 40:{ie.tabIndex="-1";var re=ie.parentElement.children,le=ge.D.index(ie);let ne=re[40===te.which?le+3:le-3];ne&&(ne.tabIndex="0",ne.focus()),te.preventDefault();break}case 37:{ie.tabIndex="-1";let ne=ie.previousElementSibling;ne?(ne.tabIndex="0",ne.focus()):(this.navigationState={backward:!0},this.navBackward(te)),te.preventDefault();break}case 39:{ie.tabIndex="-1";let ne=ie.nextElementSibling;ne?(ne.tabIndex="0",ne.focus()):(this.navigationState={backward:!1},this.navForward(te)),te.preventDefault();break}case 13:case 32:this.onMonthSelect(te,ne),te.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,te.preventDefault();break;case 9:this.inline||this.trapFocus(te)}}onYearCellKeydown(te,ne){const ie=te.currentTarget;switch(te.which){case 38:case 40:{ie.tabIndex="-1";var re=ie.parentElement.children,le=ge.D.index(ie);let ne=re[40===te.which?le+2:le-2];ne&&(ne.tabIndex="0",ne.focus()),te.preventDefault();break}case 37:{ie.tabIndex="-1";let ne=ie.previousElementSibling;ne?(ne.tabIndex="0",ne.focus()):(this.navigationState={backward:!0},this.navBackward(te)),te.preventDefault();break}case 39:{ie.tabIndex="-1";let ne=ie.nextElementSibling;ne?(ne.tabIndex="0",ne.focus()):(this.navigationState={backward:!1},this.navForward(te)),te.preventDefault();break}case 13:case 32:this.onYearSelect(te,ne),te.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,te.preventDefault();break;case 9:this.trapFocus(te)}}navigateToMonth(te,ne,ie){if(te)if(1===this.numberOfMonths||0===ne)this.navigationState={backward:!0},this._focusKey=ie,this.navBackward(event);else{let te=this.contentViewChild.nativeElement.children[ne-1];if(ie){const ne=ge.D.findSingle(te,ie);ne.tabIndex="0",ne.focus()}else{let ne=ge.D.find(te,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),ie=ne[ne.length-1];ie.tabIndex="0",ie.focus()}}else if(1===this.numberOfMonths||ne===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=ie,this.navForward(event);else{let te=this.contentViewChild.nativeElement.children[ne+1];if(ie){const ne=ge.D.findSingle(te,ie);ne.tabIndex="0",ne.focus()}else{let ne=ge.D.findSingle(te,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");ne.tabIndex="0",ne.focus()}}}updateFocus(){let te;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?ge.D.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():ge.D.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let ne;ne="month"===this.currentView?ge.D.find(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):"year"===this.currentView?ge.D.find(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):ge.D.find(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),ne&&ne.length>0&&(te=ne[ne.length-1])}else te="month"===this.currentView?ge.D.findSingle(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):"year"===this.currentView?ge.D.findSingle(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):ge.D.findSingle(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");te&&(te.tabIndex="0",te.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell();this.alignOverlay()}initFocusableCell(){const te=this.contentViewChild?.nativeElement;let ne;if("month"===this.currentView){let ie=ge.D.find(te,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),re=ge.D.findSingle(te,".p-monthpicker .p-monthpicker-month.p-highlight");if(ie.forEach((te=>te.tabIndex=-1)),ne=re||ie[0],0===ie.length){ge.D.find(te,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach((te=>te.tabIndex=-1))}}else if("year"===this.currentView){let ie=ge.D.find(te,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),re=ge.D.findSingle(te,".p-yearpicker .p-yearpicker-year.p-highlight");if(ie.forEach((te=>te.tabIndex=-1)),ne=re||ie[0],0===ie.length){ge.D.find(te,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach((te=>te.tabIndex=-1))}}else if(ne=ge.D.findSingle(te,"span.p-highlight"),!ne){let ie=ge.D.findSingle(te,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");ne=ie||ge.D.findSingle(te,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}ne&&(ne.tabIndex="0",this.preventFocus||this.navigationState&&this.navigationState.button||setTimeout((()=>{this.disabled||ne.focus()}),1),this.preventFocus=!1)}trapFocus(te){let ne=ge.D.getFocusableElements(this.contentViewChild.nativeElement);if(ne&&ne.length>0)if(ne[0].ownerDocument.activeElement){let ie=ne.indexOf(ne[0].ownerDocument.activeElement);if(te.shiftKey)if(-1==ie||0===ie)if(this.focusTrap)ne[ne.length-1].focus();else{if(-1===ie)return this.hideOverlay();if(0===ie)return}else ne[ie-1].focus();else if(-1==ie)if(this.timeOnly)ne[0].focus();else{let te=0;for(let ie=0;ie<ne.length;ie++)"SPAN"===ne[ie].tagName&&(te=ie);ne[te].focus()}else if(ie===ne.length-1){if(!this.focusTrap&&-1!=ie)return this.hideOverlay();ne[0].focus()}else ne[ie+1].focus()}else ne[0].focus();te.preventDefault()}onMonthDropdownChange(te){this.currentMonth=parseInt(te),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(te){this.currentYear=parseInt(te),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour(te,ne){return"12"==this.hourFormat?12===te?ne?12:0:ne?te+12:te:te}constrainTime(te,ne,ie,re){let le,ce=[te,ne,ie],de=this.value;const ue=this.convertTo24Hour(te,re),me=this.isRangeSelection(),ge=this.isMultipleSelection();(me||ge)&&(this.value||(this.value=[new Date,new Date]),me&&(de=this.value[1]||this.value[0]),ge&&(de=this.value[this.value.length-1]));const fe=de?de.toDateString():null;let _e=this.minDate&&fe&&this.minDate.toDateString()===fe,be=this.maxDate&&fe&&this.maxDate.toDateString()===fe;switch(_e&&(le=this.minDate.getHours()>=12),!0){case _e&&le&&12===this.minDate.getHours()&&this.minDate.getHours()>ue:ce[0]=11;case _e&&this.minDate.getHours()===ue&&this.minDate.getMinutes()>ne:ce[1]=this.minDate.getMinutes();case _e&&this.minDate.getHours()===ue&&this.minDate.getMinutes()===ne&&this.minDate.getSeconds()>ie:ce[2]=this.minDate.getSeconds();break;case _e&&!le&&this.minDate.getHours()-1===ue&&this.minDate.getHours()>ue:ce[0]=11,this.pm=!0;case _e&&this.minDate.getHours()===ue&&this.minDate.getMinutes()>ne:ce[1]=this.minDate.getMinutes();case _e&&this.minDate.getHours()===ue&&this.minDate.getMinutes()===ne&&this.minDate.getSeconds()>ie:ce[2]=this.minDate.getSeconds();break;case _e&&le&&this.minDate.getHours()>ue&&12!==ue:this.setCurrentHourPM(this.minDate.getHours()),ce[0]=this.currentHour;case _e&&this.minDate.getHours()===ue&&this.minDate.getMinutes()>ne:ce[1]=this.minDate.getMinutes();case _e&&this.minDate.getHours()===ue&&this.minDate.getMinutes()===ne&&this.minDate.getSeconds()>ie:ce[2]=this.minDate.getSeconds();break;case _e&&this.minDate.getHours()>ue:ce[0]=this.minDate.getHours();case _e&&this.minDate.getHours()===ue&&this.minDate.getMinutes()>ne:ce[1]=this.minDate.getMinutes();case _e&&this.minDate.getHours()===ue&&this.minDate.getMinutes()===ne&&this.minDate.getSeconds()>ie:ce[2]=this.minDate.getSeconds();break;case be&&this.maxDate.getHours()<ue:ce[0]=this.maxDate.getHours();case be&&this.maxDate.getHours()===ue&&this.maxDate.getMinutes()<ne:ce[1]=this.maxDate.getMinutes();case be&&this.maxDate.getHours()===ue&&this.maxDate.getMinutes()===ne&&this.maxDate.getSeconds()<ie:ce[2]=this.maxDate.getSeconds()}return ce}incrementHour(te){const ne=this.currentHour??0;let ie=(this.currentHour??0)+this.stepHour,re=this.pm;"24"==this.hourFormat?ie=ie>=24?ie-24:ie:"12"==this.hourFormat&&(ne<12&&ie>11&&(re=!this.pm),ie=ie>=13?ie-12:ie),this.toggleAMPMIfNotMinDate(re),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(ie,this.currentMinute,this.currentSecond,re),te.preventDefault()}toggleAMPMIfNotMinDate(te){let ne=this.value;("range"==this.selectionMode||"multiple"==this.selectionMode)&&Array.isArray(ne)&&ne.length>0&&(ne=ne[ne.length-1]);const ie=ne?ne.toDateString():null;this.minDate&&ie&&this.minDate.toDateString()===ie&&this.minDate.getHours()>=12?this.pm=!0:this.pm=te}onTimePickerElementMouseDown(te,ne,ie){this.disabled||(this.repeat(te,null,ne,ie),te.preventDefault())}onTimePickerElementMouseUp(te){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(te,ne,ie,re){let le=ne||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout((()=>{this.repeat(te,100,ie,re),this.cd.markForCheck()}),le),ie){case 0:1===re?this.incrementHour(te):this.decrementHour(te);break;case 1:1===re?this.incrementMinute(te):this.decrementMinute(te);break;case 2:1===re?this.incrementSecond(te):this.decrementSecond(te)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(te){let ne=(this.currentHour??0)-this.stepHour,ie=this.pm;"24"==this.hourFormat?ne=ne<0?24+ne:ne:"12"==this.hourFormat&&(12===this.currentHour&&(ie=!this.pm),ne=ne<=0?12+ne:ne),this.toggleAMPMIfNotMinDate(ie),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(ne,this.currentMinute,this.currentSecond,ie),te.preventDefault()}incrementMinute(te){let ne=(this.currentMinute??0)+this.stepMinute;ne=ne>59?ne-60:ne,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,ne,this.currentSecond,this.pm),te.preventDefault()}decrementMinute(te){let ne=(this.currentMinute??0)-this.stepMinute;ne=ne<0?60+ne:ne,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,ne,this.currentSecond,this.pm),te.preventDefault()}incrementSecond(te){let ne=this.currentSecond+this.stepSecond;ne=ne>59?ne-60:ne,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,ne,this.pm),te.preventDefault()}decrementSecond(te){let ne=this.currentSecond-this.stepSecond;ne=ne<0?60+ne:ne,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,ne,this.pm),te.preventDefault()}updateTime(){let te=this.value;this.isRangeSelection()&&(te=this.value[1]||this.value[0]),this.isMultipleSelection()&&(te=this.value[this.value.length-1]),te=te?new Date(te.getTime()):new Date,"12"==this.hourFormat?12===this.currentHour?te.setHours(this.pm?12:0):te.setHours(this.pm?this.currentHour+12:this.currentHour):te.setHours(this.currentHour),te.setMinutes(this.currentMinute),te.setSeconds(this.currentSecond),this.isRangeSelection()&&(te=this.value[1]?[this.value[0],te]:[te,null]),this.isMultipleSelection()&&(te=[...this.value.slice(0,-1),te]),this.updateModel(te),this.onSelect.emit(te),this.updateInputfield()}toggleAMPM(te){const ne=!this.pm;this.pm=ne,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,this.currentSecond,ne),this.updateTime(),te.preventDefault()}onUserInput(te){if(!this.isKeydown)return;this.isKeydown=!1;let ne=te.target.value;try{let te=this.parseValueFromString(ne);this.isValidSelection(te)?(this.updateModel(te),this.updateUI()):this.keepInvalid&&this.updateModel(te)}catch(te){let ie=this.keepInvalid?ne:null;this.updateModel(ie)}this.filled=null!=ne&&ne.length,this.onInput.emit(te)}isValidSelection(te){if(this.isSingleSelection())return this.isSelectable(te.getDate(),te.getMonth(),te.getFullYear(),!1);let ne=te.every((te=>this.isSelectable(te.getDate(),te.getMonth(),te.getFullYear(),!1)));return ne&&this.isRangeSelection()&&(ne=1===te.length||te.length>1&&te[1]>=te[0]),ne}parseValueFromString(te){if(!te||0===te.trim().length)return null;let ne;if(this.isSingleSelection())ne=this.parseDateTime(te);else if(this.isMultipleSelection()){let ie=te.split(this.multipleSeparator);ne=[];for(let te of ie)ne.push(this.parseDateTime(te.trim()))}else if(this.isRangeSelection()){let ie=te.split(" "+this.rangeSeparator+" ");ne=[];for(let te=0;te<ie.length;te++)ne[te]=this.parseDateTime(ie[te].trim())}return ne}parseDateTime(te){let ne,ie=te.split(" ");if(this.timeOnly)ne=new Date,this.populateTime(ne,ie[0],ie[1]);else{const re=this.getDateFormat();if(this.showTime){let te="12"==this.hourFormat?ie.pop():null,le=ie.pop();ne=this.parseDate(ie.join(" "),re),this.populateTime(ne,le,te)}else ne=this.parseDate(te,re)}return ne}populateTime(te,ne,ie){if("12"==this.hourFormat&&!ie)throw"Invalid Time";this.pm="PM"===ie||"pm"===ie;let re=this.parseTime(ne);te.setHours(re.hour),te.setMinutes(re.minute),te.setSeconds(re.second)}isValidDate(te){return _e.BF.isDate(te)&&_e.BF.isNotEmpty(te)}updateUI(){let te=this.value;Array.isArray(te)&&(te=te[1]||te[0]);let ne=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:te&&this.isValidDate(te)?te:new Date;this.currentMonth=ne.getMonth(),this.currentYear=ne.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(ne.getHours()),this.currentMinute=ne.getMinutes(),this.currentSecond=ne.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild?.nativeElement.focus()))}onOverlayAnimationStart(te){switch(te.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=te.element,this.overlay?.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?_e.Q$.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):_e.Q$.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(te));break;case"void":this.onOverlayHide(),this.onClose.emit(te)}}onOverlayAnimationDone(te){switch(te.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&_e.Q$.clear(te.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.document.body.appendChild(this.overlay):ge.D.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?("date"===this.view?(this.overlay.style.width||(this.overlay.style.width=ge.D.getOuterWidth(this.overlay)+"px"),this.overlay.style.minWidth||(this.overlay.style.minWidth=ge.D.getOuterWidth(this.inputfieldViewChild?.nativeElement)+"px")):this.overlay.style.width||(this.overlay.style.width=ge.D.getOuterWidth(this.inputfieldViewChild?.nativeElement)+"px"),ge.D.absolutePosition(this.overlay,this.inputfieldViewChild?.nativeElement)):ge.D.relativePosition(this.overlay,this.inputfieldViewChild?.nativeElement))}enableModality(te){if(!this.mask&&this.touchUI){this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(te.style.zIndex)-1));let ne="p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter";ge.D.addMultipleClasses(this.mask,ne),this.maskClickListener=this.renderer.listen(this.mask,"click",(te=>{this.disableModality(),this.overlayVisible=!1})),this.renderer.appendChild(this.document.body,this.mask),ge.D.blockBodyScroll()}}disableModality(){this.mask&&(ge.D.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let te,ne=this.document.body.children;for(let ie=0;ie<ne.length;ie++){let re=ne[ie];if(ge.D.hasClass(re,"p-datepicker-mask-scrollblocker")){te=!0;break}}te||ge.D.unblockBodyScroll(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}writeValue(te){if(this.value=te,this.value&&"string"==typeof this.value)try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=te)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(ue.Yj.FIRST_DAY_OF_WEEK)}formatDate(te,ne){if(!te)return"";let ie;const lookAhead=te=>{const re=ie+1<ne.length&&ne.charAt(ie+1)===te;return re&&ie++,re},formatNumber=(te,ne,ie)=>{let re=""+ne;if(lookAhead(te))for(;re.length<ie;)re="0"+re;return re},formatName=(te,ne,ie,re)=>lookAhead(te)?re[ne]:ie[ne];let re="",le=!1;if(te)for(ie=0;ie<ne.length;ie++)if(le)"'"!==ne.charAt(ie)||lookAhead("'")?re+=ne.charAt(ie):le=!1;else switch(ne.charAt(ie)){case"d":re+=formatNumber("d",te.getDate(),2);break;case"D":re+=formatName("D",te.getDay(),this.getTranslation(ue.Yj.DAY_NAMES_SHORT),this.getTranslation(ue.Yj.DAY_NAMES));break;case"o":re+=formatNumber("o",Math.round((new Date(te.getFullYear(),te.getMonth(),te.getDate()).getTime()-new Date(te.getFullYear(),0,0).getTime())/864e5),3);break;case"m":re+=formatNumber("m",te.getMonth()+1,2);break;case"M":re+=formatName("M",te.getMonth(),this.getTranslation(ue.Yj.MONTH_NAMES_SHORT),this.getTranslation(ue.Yj.MONTH_NAMES));break;case"y":re+=lookAhead("y")?te.getFullYear():(te.getFullYear()%100<10?"0":"")+te.getFullYear()%100;break;case"@":re+=te.getTime();break;case"!":re+=1e4*te.getTime()+this.ticksTo1970;break;case"'":lookAhead("'")?re+="'":le=!0;break;default:re+=ne.charAt(ie)}return re}formatTime(te){if(!te)return"";let ne="",ie=te.getHours(),re=te.getMinutes(),le=te.getSeconds();return"12"==this.hourFormat&&ie>11&&12!=ie&&(ie-=12),"12"==this.hourFormat?ne+=0===ie?12:ie<10?"0"+ie:ie:ne+=ie<10?"0"+ie:ie,ne+=":",ne+=re<10?"0"+re:re,this.showSeconds&&(ne+=":",ne+=le<10?"0"+le:le),"12"==this.hourFormat&&(ne+=te.getHours()>11?" PM":" AM"),ne}parseTime(te){let ne=te.split(":"),ie=this.showSeconds?3:2;if(ne.length!==ie)throw"Invalid time";let re=parseInt(ne[0]),le=parseInt(ne[1]),ce=this.showSeconds?parseInt(ne[2]):null;if(isNaN(re)||isNaN(le)||re>23||le>59||"12"==this.hourFormat&&re>12||this.showSeconds&&(isNaN(ce)||ce>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==re&&this.pm?re+=12:this.pm||12!==re||(re-=12)),{hour:re,minute:le,second:ce}}parseDate(te,ne){if(null==ne||null==te)throw"Invalid arguments";if(""===(te="object"==typeof te?te.toString():te+""))return null;let ie,re,le,ce,de=0,me="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),ge=-1,fe=-1,_e=-1,be=-1,Ce=!1,lookAhead=te=>{let re=ie+1<ne.length&&ne.charAt(ie+1)===te;return re&&ie++,re},getNumber=ne=>{let ie=lookAhead(ne),re="@"===ne?14:"!"===ne?20:"y"===ne&&ie?4:"o"===ne?3:2,le=new RegExp("^\\d{"+("y"===ne?re:1)+","+re+"}"),ce=te.substring(de).match(le);if(!ce)throw"Missing number at position "+de;return de+=ce[0].length,parseInt(ce[0],10)},getName=(ne,ie,re)=>{let le=-1,ce=lookAhead(ne)?re:ie,ue=[];for(let te=0;te<ce.length;te++)ue.push([te,ce[te]]);ue.sort(((te,ne)=>-(te[1].length-ne[1].length)));for(let ne=0;ne<ue.length;ne++){let ie=ue[ne][1];if(te.substr(de,ie.length).toLowerCase()===ie.toLowerCase()){le=ue[ne][0],de+=ie.length;break}}if(-1!==le)return le+1;throw"Unknown name at position "+de},checkLiteral=()=>{if(te.charAt(de)!==ne.charAt(ie))throw"Unexpected literal at position "+de;de++};for("month"===this.view&&(_e=1),ie=0;ie<ne.length;ie++)if(Ce)"'"!==ne.charAt(ie)||lookAhead("'")?checkLiteral():Ce=!1;else switch(ne.charAt(ie)){case"d":_e=getNumber("d");break;case"D":getName("D",this.getTranslation(ue.Yj.DAY_NAMES_SHORT),this.getTranslation(ue.Yj.DAY_NAMES));break;case"o":be=getNumber("o");break;case"m":fe=getNumber("m");break;case"M":fe=getName("M",this.getTranslation(ue.Yj.MONTH_NAMES_SHORT),this.getTranslation(ue.Yj.MONTH_NAMES));break;case"y":ge=getNumber("y");break;case"@":ce=new Date(getNumber("@")),ge=ce.getFullYear(),fe=ce.getMonth()+1,_e=ce.getDate();break;case"!":ce=new Date((getNumber("!")-this.ticksTo1970)/1e4),ge=ce.getFullYear(),fe=ce.getMonth()+1,_e=ce.getDate();break;case"'":lookAhead("'")?checkLiteral():Ce=!0;break;default:checkLiteral()}if(de<te.length&&(le=te.substr(de),!/^\s+/.test(le)))throw"Extra/unparsed characters found in date: "+le;if(-1===ge?ge=(new Date).getFullYear():ge<100&&(ge+=(new Date).getFullYear()-(new Date).getFullYear()%100+(ge<=me?0:-100)),be>-1)for(fe=1,_e=be;;){if(re=this.getDaysCountInMonth(ge,fe-1),_e<=re)break;fe++,_e-=re}if("year"===this.view&&(fe=-1===fe?1:fe,_e=-1===_e?1:_e),ce=this.daylightSavingAdjust(new Date(ge,fe-1,_e)),ce.getFullYear()!==ge||ce.getMonth()+1!==fe||ce.getDate()!==_e)throw"Invalid date";return ce}daylightSavingAdjust(te){return te?(te.setHours(te.getHours()>12?te.getHours()+2:0),te):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}isValidDateForTimeConstraints(te){return!!this.keepInvalid||(!this.minDate||te>=this.minDate)&&(!this.maxDate||te<=this.maxDate)}onTodayButtonClick(te){const ne=new Date,ie={day:ne.getDate(),month:ne.getMonth(),year:ne.getFullYear(),otherMonth:ne.getMonth()!==this.currentMonth||ne.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(ne.getMonth(),ne.getFullYear()),this.onDateSelect(te,ie),this.onTodayClick.emit(ne)}onClearButtonClick(te){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(te)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",ge.D.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let te="";if(this.responsiveOptions){let ne=[...this.responsiveOptions].filter((te=>!(!te.breakpoint||!te.numMonths))).sort(((te,ne)=>-1*te.breakpoint.localeCompare(ne.breakpoint,void 0,{numeric:!0})));for(let ie=0;ie<ne.length;ie++){let{breakpoint:re,numMonths:le}=ne[ie],ce=`\n                        .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${le}) .p-datepicker-next {\n                            display: inline-flex !important;\n                        }\n                    `;for(let te=le;te<this.numberOfMonths;te++)ce+=`\n                            .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${te+1}) {\n                                display: none !important;\n                            }\n                        `;te+=`\n                        @media screen and (max-width: ${re}) {\n                            ${ce}\n                        }\n                    `}}this.responsiveStyleElement.innerHTML=te}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular((()=>{const te=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(te,"mousedown",(te=>{this.isOutsideClicked(te)&&this.overlayVisible&&this.zone.run((()=>{this.hideOverlay(),this.onClickOutside.emit(te),this.cd.markForCheck()}))}))}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||this.touchUI||(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new ge.b(this.containerViewChild?.nativeElement,(()=>{this.overlayVisible&&this.hideOverlay()}))),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(te){return!(this.el.nativeElement.isSameNode(te.target)||this.isNavIconClicked(te)||this.el.nativeElement.contains(te.target)||this.overlay&&this.overlay.contains(te.target))}isNavIconClicked(te){return ge.D.hasClass(te.target,"p-datepicker-prev")||ge.D.hasClass(te.target,"p-datepicker-prev-icon")||ge.D.hasClass(te.target,"p-datepicker-next")||ge.D.hasClass(te.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!ge.D.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&_e.Q$.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static ɵfac=function Calendar_Factory(te){return new(te||Calendar)(ce.rXU(le.qQ),ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(ce.gRc),ce.rXU(ce.SKi),ce.rXU(ue.r1),ce.rXU(ue.si))};static ɵcmp=ce.VBU({type:Calendar,selectors:[["p-calendar"]],contentQueries:function Calendar_ContentQueries(te,ne,ie){if(1&te&&ce.wni(ie,ue.Ei,4),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.templates=te)}},viewQuery:function Calendar_Query(te,ne){if(1&te&&(ce.GBs(Me,5),ce.GBs(Ne,5),ce.GBs(Re,5)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.containerViewChild=te.first),ce.mGM(te=ce.lsd())&&(ne.inputfieldViewChild=te.first),ce.mGM(te=ce.lsd())&&(ne.content=te.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function Calendar_HostBindings(te,ne){2&te&&ce.AVh("p-inputwrapper-filled",ne.filled)("p-inputwrapper-focus",ne.focus)("p-calendar-clearable",ne.showClear&&!ne.disabled)},inputs:{iconDisplay:"iconDisplay",style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:[ce.Mj6.HasDecoratorInputTransform,"disabled","disabled",ce.L39],dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[ce.Mj6.HasDecoratorInputTransform,"inline","inline",ce.L39],showOtherMonths:[ce.Mj6.HasDecoratorInputTransform,"showOtherMonths","showOtherMonths",ce.L39],selectOtherMonths:[ce.Mj6.HasDecoratorInputTransform,"selectOtherMonths","selectOtherMonths",ce.L39],showIcon:[ce.Mj6.HasDecoratorInputTransform,"showIcon","showIcon",ce.L39],icon:"icon",appendTo:"appendTo",readonlyInput:[ce.Mj6.HasDecoratorInputTransform,"readonlyInput","readonlyInput",ce.L39],shortYearCutoff:"shortYearCutoff",monthNavigator:[ce.Mj6.HasDecoratorInputTransform,"monthNavigator","monthNavigator",ce.L39],yearNavigator:[ce.Mj6.HasDecoratorInputTransform,"yearNavigator","yearNavigator",ce.L39],hourFormat:"hourFormat",timeOnly:[ce.Mj6.HasDecoratorInputTransform,"timeOnly","timeOnly",ce.L39],stepYearPicker:[ce.Mj6.HasDecoratorInputTransform,"stepYearPicker","stepYearPicker",ce.Udg],stepHour:[ce.Mj6.HasDecoratorInputTransform,"stepHour","stepHour",ce.Udg],stepMinute:[ce.Mj6.HasDecoratorInputTransform,"stepMinute","stepMinute",ce.Udg],stepSecond:[ce.Mj6.HasDecoratorInputTransform,"stepSecond","stepSecond",ce.Udg],showSeconds:[ce.Mj6.HasDecoratorInputTransform,"showSeconds","showSeconds",ce.L39],required:[ce.Mj6.HasDecoratorInputTransform,"required","required",ce.L39],showOnFocus:[ce.Mj6.HasDecoratorInputTransform,"showOnFocus","showOnFocus",ce.L39],showWeek:[ce.Mj6.HasDecoratorInputTransform,"showWeek","showWeek",ce.L39],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[ce.Mj6.HasDecoratorInputTransform,"showClear","showClear",ce.L39],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[ce.Mj6.HasDecoratorInputTransform,"maxDateCount","maxDateCount",ce.Udg],showButtonBar:[ce.Mj6.HasDecoratorInputTransform,"showButtonBar","showButtonBar",ce.L39],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[ce.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",ce.L39],autoZIndex:[ce.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",ce.L39],baseZIndex:[ce.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",ce.Udg],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[ce.Mj6.HasDecoratorInputTransform,"keepInvalid","keepInvalid",ce.L39],hideOnDateTimeSelect:[ce.Mj6.HasDecoratorInputTransform,"hideOnDateTimeSelect","hideOnDateTimeSelect",ce.L39],touchUI:[ce.Mj6.HasDecoratorInputTransform,"touchUI","touchUI",ce.L39],timeSeparator:"timeSeparator",focusTrap:[ce.Mj6.HasDecoratorInputTransform,"focusTrap","focusTrap",ce.L39],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[ce.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",ce.Udg],variant:"variant",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[ce.Jv_([Pe]),ce.GFd],ngContentSelectors:Oe,decls:4,vars:12,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off","pAutoFocus","",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","autofocus","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass","click"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function Calendar_Template(te,ne){1&te&&(ce.NAR(Le),ce.j41(0,"span",0,1),ce.DNE(2,Calendar_ng_template_2_Template,5,22,"ng-template",2)(3,Calendar_div_3_Template,9,32,"div",3),ce.k0s()),2&te&&(ce.HbH(ne.styleClass),ce.Y8G("ngClass",ce.s1E(6,_c15,ne.showIcon&&"input"===ne.iconDisplay,ne.showIcon&&"button"===ne.iconDisplay,ne.timeOnly,ne.disabled,ne.focus||ne.overlayVisible))("ngStyle",ne.style),ce.R7$(2),ce.Y8G("ngIf",!ne.inline),ce.R7$(),ce.Y8G("ngIf",ne.inline||ne.overlayVisible))},dependencies:()=>[le.YU,le.Sq,le.bT,le.T3,le.B3,me._f,fe.n,be.Y,Ce.v,we,ke.D,Se.A,xe,Ee.q],styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%;text-overflow:ellipsis}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-datepicker-icon{pointer-events:none}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[(0,re.hZ)("overlayAnimation",[(0,re.wk)("visibleTouchUI",(0,re.iF)({transform:"translate(-50%,-50%)",opacity:1})),(0,re.kY)("void => visible",[(0,re.iF)({opacity:0,transform:"scaleY(0.8)"}),(0,re.i0)("{{showTransitionParams}}",(0,re.iF)({opacity:1,transform:"*"}))]),(0,re.kY)("visible => void",[(0,re.i0)("{{hideTransitionParams}}",(0,re.iF)({opacity:0}))]),(0,re.kY)("void => visibleTouchUI",[(0,re.iF)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),(0,re.i0)("{{showTransitionParams}}")]),(0,re.kY)("visibleTouchUI => void",[(0,re.i0)("{{hideTransitionParams}}",(0,re.iF)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return Calendar})(),je=(()=>{class CalendarModule{static ɵfac=function CalendarModule_Factory(te){return new(te||CalendarModule)};static ɵmod=ce.$C({type:CalendarModule});static ɵinj=ce.G2t({imports:[le.MD,me.tm,ue.Gg,fe.Z,be.Y,Ce.v,we,ke.D,Se.A,xe,Ee.u,me.tm,ue.Gg]})}return CalendarModule})()},3646:(te,ne,ie)=>{"use strict";ie.d(ne,{D:()=>fe,Z:()=>ge});var re=ie(4460),le=ie(3107),ce=ie(3828),de=ie(1939);function Card_div_1_ng_container_2_Template(te,ne){1&te&&le.eu8(0)}function Card_div_1_Template(te,ne){if(1&te&&(le.j41(0,"div",8),le.SdG(1,1),le.DNE(2,Card_div_1_ng_container_2_Template,1,0,"ng-container",6),le.k0s()),2&te){const te=le.XpG();le.R7$(2),le.Y8G("ngTemplateOutlet",te.headerTemplate)}}function Card_div_3_ng_container_2_Template(te,ne){1&te&&le.eu8(0)}function Card_div_3_Template(te,ne){if(1&te&&(le.j41(0,"div",9),le.EFF(1),le.DNE(2,Card_div_3_ng_container_2_Template,1,0,"ng-container",6),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.SpI(" ",te.header," "),le.R7$(),le.Y8G("ngTemplateOutlet",te.titleTemplate)}}function Card_div_4_ng_container_2_Template(te,ne){1&te&&le.eu8(0)}function Card_div_4_Template(te,ne){if(1&te&&(le.j41(0,"div",10),le.EFF(1),le.DNE(2,Card_div_4_ng_container_2_Template,1,0,"ng-container",6),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.SpI(" ",te.subheader," "),le.R7$(),le.Y8G("ngTemplateOutlet",te.subtitleTemplate)}}function Card_ng_container_7_Template(te,ne){1&te&&le.eu8(0)}function Card_div_8_ng_container_2_Template(te,ne){1&te&&le.eu8(0)}function Card_div_8_Template(te,ne){if(1&te&&(le.j41(0,"div",11),le.SdG(1,2),le.DNE(2,Card_div_8_ng_container_2_Template,1,0,"ng-container",6),le.k0s()),2&te){const te=le.XpG();le.R7$(2),le.Y8G("ngTemplateOutlet",te.footerTemplate)}}const ue=["*",[["p-header"]],[["p-footer"]]],me=["*","p-header","p-footer"];let ge=(()=>{class Card{el;header;subheader;set style(te){de.BF.equals(this._style(),te)||this._style.set(te)}styleClass;headerFacet;footerFacet;templates;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;_style=(0,le.vPA)(null);constructor(te){this.el=te}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"header":this.headerTemplate=te.template;break;case"title":this.titleTemplate=te.template;break;case"subtitle":this.subtitleTemplate=te.template;break;case"content":default:this.contentTemplate=te.template;break;case"footer":this.footerTemplate=te.template}}))}getBlockableElement(){return this.el.nativeElement.children[0]}static ɵfac=function Card_Factory(te){return new(te||Card)(le.rXU(le.aKT))};static ɵcmp=le.VBU({type:Card,selectors:[["p-card"]],contentQueries:function Card_ContentQueries(te,ne,ie){if(1&te&&(le.wni(ie,ce.Y9,5),le.wni(ie,ce.wi,5),le.wni(ie,ce.Ei,4)),2&te){let te;le.mGM(te=le.lsd())&&(ne.headerFacet=te.first),le.mGM(te=le.lsd())&&(ne.footerFacet=te.first),le.mGM(te=le.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:me,decls:9,vars:10,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function Card_Template(te,ne){1&te&&(le.NAR(ue),le.j41(0,"div",0),le.DNE(1,Card_div_1_Template,3,1,"div",1),le.j41(2,"div",2),le.DNE(3,Card_div_3_Template,3,2,"div",3)(4,Card_div_4_Template,3,2,"div",4),le.j41(5,"div",5),le.SdG(6),le.DNE(7,Card_ng_container_7_Template,1,0,"ng-container",6),le.k0s(),le.DNE(8,Card_div_8_Template,3,1,"div",7),le.k0s()()),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngClass","p-card p-component")("ngStyle",ne._style()),le.BMQ("data-pc-name","card"),le.R7$(),le.Y8G("ngIf",ne.headerFacet||ne.headerTemplate),le.R7$(2),le.Y8G("ngIf",ne.header||ne.titleTemplate),le.R7$(),le.Y8G("ngIf",ne.subheader||ne.subtitleTemplate),le.R7$(3),le.Y8G("ngTemplateOutlet",ne.contentTemplate),le.R7$(),le.Y8G("ngIf",ne.footerFacet||ne.footerTemplate))},dependencies:[re.YU,re.bT,re.T3,re.B3],styles:["@layer primeng{.p-card-header img{width:100%}}\n"],encapsulation:2,changeDetection:0})}return Card})(),fe=(()=>{class CardModule{static ɵfac=function CardModule_Factory(te){return new(te||CardModule)};static ɵmod=le.$C({type:CardModule});static ɵinj=le.G2t({imports:[re.MD,ce.Gg]})}return CardModule})()},403:(te,ne,ie)=>{"use strict";ie.d(ne,{Sc:()=>be,q4:()=>Ce});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(3828),ue=ie(2583),me=ie(7825),ge=ie(1939);const fe=["input"];function Checkbox_ng_container_5_ng_container_1_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",10),2&te){const te=le.XpG(3);le.Y8G("ngClass",te.checkboxIcon),le.BMQ("data-pc-section","icon")}}function Checkbox_ng_container_5_ng_container_1_CheckIcon_2_Template(te,ne){1&te&&le.nrm(0,"CheckIcon",11),2&te&&(le.Y8G("styleClass","p-checkbox-icon"),le.BMQ("data-pc-section","icon"))}function Checkbox_ng_container_5_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Checkbox_ng_container_5_ng_container_1_span_1_Template,1,2,"span",8)(2,Checkbox_ng_container_5_ng_container_1_CheckIcon_2_Template,1,2,"CheckIcon",9),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",te.checkboxIcon),le.R7$(),le.Y8G("ngIf",!te.checkboxIcon)}}function Checkbox_ng_container_5_span_2_1_ng_template_0_Template(te,ne){}function Checkbox_ng_container_5_span_2_1_Template(te,ne){1&te&&le.DNE(0,Checkbox_ng_container_5_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Checkbox_ng_container_5_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span",12),le.DNE(1,Checkbox_ng_container_5_span_2_1_Template,1,0,null,13),le.k0s()),2&te){const te=le.XpG(2);le.BMQ("data-pc-section","icon"),le.R7$(),le.Y8G("ngTemplateOutlet",te.checkboxIconTemplate)}}function Checkbox_ng_container_5_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Checkbox_ng_container_5_ng_container_1_Template,3,2,"ng-container",5)(2,Checkbox_ng_container_5_span_2_Template,2,2,"span",7),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",!te.checkboxIconTemplate),le.R7$(),le.Y8G("ngIf",te.checkboxIconTemplate)}}const _c1=(te,ne,ie)=>({"p-checkbox-label":!0,"p-checkbox-label-active":te,"p-disabled":ne,"p-checkbox-label-focus":ie});function Checkbox_label_6_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"label",14),le.bIt("click",(function Checkbox_label_6_Template_label_click_0_listener(ne){le.eBV(te);const ie=le.XpG(),re=le.sdS(3);return le.Njj(ie.onClick(ne,re,!0))})),le.EFF(1),le.k0s()}if(2&te){const te=le.XpG();le.HbH(te.labelStyleClass),le.Y8G("ngClass",le.sMw(6,_c1,te.checked(),te.disabled,te.focused)),le.BMQ("for",te.inputId)("data-pc-section","label"),le.R7$(),le.SpI(" ",te.label,"")}}const _c2=(te,ne,ie,re)=>({"p-checkbox p-component":!0,"p-checkbox-checked":te,"p-checkbox-disabled":ne,"p-checkbox-focused":ie,"p-variant-filled":re}),_c3=(te,ne,ie)=>({"p-highlight":te,"p-disabled":ne,"p-focus":ie}),_e={provide:ce.kq,useExisting:(0,le.Rfq)((()=>be)),multi:!0};let be=(()=>{class Checkbox{cd;injector;config;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;autofocus;trueValue=!0;falseValue=!1;variant="outlined";onChange=new le.bkB;onFocus=new le.bkB;onBlur=new le.bkB;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(te,ne,ie){this.cd=te,this.injector=ne,this.config=ie}ngAfterContentInit(){this.templates.forEach((te=>{if("icon"===te.getType())this.checkboxIconTemplate=te.template}))}onClick(te,ne,ie){te.preventDefault(),this.disabled||this.readonly||(this.updateModel(te),ie&&ne.focus())}updateModel(te){let ne;const ie=this.injector.get(ce.vO,null,{optional:!0,self:!0}),re=ie&&!this.formControl?ie.value:this.model;this.binary?(ne=this.checked()?this.falseValue:this.trueValue,this.model=ne,this.onModelChange(ne)):(ne=this.checked()?re.filter((te=>!ge.BF.equals(te,this.value))):re?[...re,this.value]:[this.value],this.onModelChange(ne),this.model=ne,this.formControl&&this.formControl.setValue(ne)),this.onChange.emit({checked:ne,originalEvent:te})}handleChange(te){this.readonly||this.updateModel(te)}onInputFocus(te){this.focused=!0,this.onFocus.emit(te)}onInputBlur(te){this.focused=!1,this.onBlur.emit(te),this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(te){this.model=te,this.cd.markForCheck()}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){setTimeout((()=>{this.disabled=te,this.cd.markForCheck()}))}checked(){return this.binary?this.model===this.trueValue:ge.BF.contains(this.value,this.model)}static ɵfac=function Checkbox_Factory(te){return new(te||Checkbox)(le.rXU(le.gRc),le.rXU(le.zZn),le.rXU(de.r1))};static ɵcmp=le.VBU({type:Checkbox,selectors:[["p-checkbox"]],contentQueries:function Checkbox_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,de.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},viewQuery:function Checkbox_Query(te,ne){if(1&te&&le.GBs(fe,5),2&te){let te;le.mGM(te=le.lsd())&&(ne.inputViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],binary:[le.Mj6.HasDecoratorInputTransform,"binary","binary",le.L39],label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[le.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",le.Udg],inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[le.Mj6.HasDecoratorInputTransform,"readonly","readonly",le.L39],required:[le.Mj6.HasDecoratorInputTransform,"required","required",le.L39],autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39],trueValue:"trueValue",falseValue:"falseValue",variant:"variant"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[le.Jv_([_e]),le.GFd],decls:7,vars:37,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox","pAutoFocus","",3,"value","checked","disabled","readonly","autofocus","change","focus","blur"],["input",""],[1,"p-checkbox-box",3,"ngClass","click"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function Checkbox_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",0)(1,"div",1)(2,"input",2,3),le.bIt("change",(function Checkbox_Template_input_change_2_listener(te){return ne.handleChange(te)}))("focus",(function Checkbox_Template_input_focus_2_listener(te){return ne.onInputFocus(te)}))("blur",(function Checkbox_Template_input_blur_2_listener(te){return ne.onInputBlur(te)})),le.k0s()(),le.j41(4,"div",4),le.bIt("click",(function Checkbox_Template_div_click_4_listener(ie){le.eBV(te);const re=le.sdS(3);return le.Njj(ne.onClick(ie,re,!0))})),le.DNE(5,Checkbox_ng_container_5_Template,3,2,"ng-container",5),le.k0s()(),le.DNE(6,Checkbox_label_6_Template,2,10,"label",6)}2&te&&(le.HbH(ne.styleClass),le.Y8G("ngStyle",ne.style)("ngClass",le.ziG(28,_c2,ne.checked(),ne.disabled,ne.focused,"filled"===ne.variant||"filled"===ne.config.inputStyle())),le.BMQ("data-pc-name","checkbox")("data-pc-section","root"),le.R7$(),le.BMQ("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),le.R7$(),le.Y8G("value",ne.value)("checked",ne.checked())("disabled",ne.disabled)("readonly",ne.readonly)("autofocus",ne.autofocus),le.BMQ("id",ne.inputId)("name",ne.name)("tabindex",ne.tabindex)("required",ne.required)("aria-labelledby",ne.ariaLabelledBy)("aria-label",ne.ariaLabel)("aria-checked",ne.checked())("data-pc-section","hiddenInput"),le.R7$(2),le.Y8G("ngClass",le.sMw(33,_c3,ne.checked(),ne.disabled,ne.focused)),le.BMQ("data-p-highlight",ne.checked())("data-p-disabled",ne.disabled)("data-p-focused",ne.focused)("data-pc-section","input"),le.R7$(),le.Y8G("ngIf",ne.checked()),le.R7$(),le.Y8G("ngIf",ne.label))},dependencies:()=>[re.YU,re.bT,re.T3,re.B3,ue.q,me.S],styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return Checkbox})(),Ce=(()=>{class CheckboxModule{static ɵfac=function CheckboxModule_Factory(te){return new(te||CheckboxModule)};static ɵmod=le.$C({type:CheckboxModule});static ɵinj=le.G2t({imports:[re.MD,ue.u,me.S,de.Gg]})}return CheckboxModule})()},5501:(te,ne,ie)=>{"use strict";ie.d(ne,{AV:()=>ke,C4:()=>we});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(3828),ue=ie(2583),me=ie(239),ge=ie(8471),fe=ie(7721),_e=ie(1939);const be=["inputtext"],Ce=["container"];function Chips_li_3_ng_container_2_Template(te,ne){1&te&&le.eu8(0)}function Chips_li_3_span_3_Template(te,ne){if(1&te&&(le.j41(0,"span",12),le.EFF(1),le.k0s()),2&te){const te=le.XpG().$implicit,ne=le.XpG();le.BMQ("data-pc-section","label"),le.R7$(),le.JRh(ne.field?ne.resolveFieldData(te,ne.field):te)}}function Chips_li_3_ng_container_4_TimesCircleIcon_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"TimesCircleIcon",15),le.bIt("click",(function Chips_li_3_ng_container_4_TimesCircleIcon_1_Template_TimesCircleIcon_click_0_listener(ne){le.eBV(te);const ie=le.XpG(2).index,re=le.XpG();return le.Njj(re.removeItem(ne,ie))})),le.k0s()}2&te&&(le.Y8G("styleClass","p-chips-token-icon"),le.BMQ("data-pc-section","removeTokenIcon")("aria-hidden",!0))}function Chips_li_3_ng_container_4_span_2_1_ng_template_0_Template(te,ne){}function Chips_li_3_ng_container_4_span_2_1_Template(te,ne){1&te&&le.DNE(0,Chips_li_3_ng_container_4_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Chips_li_3_ng_container_4_span_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"span",16),le.bIt("click",(function Chips_li_3_ng_container_4_span_2_Template_span_click_0_listener(ne){le.eBV(te);const ie=le.XpG(2).index,re=le.XpG();return le.Njj(re.removeItem(ne,ie))})),le.DNE(1,Chips_li_3_ng_container_4_span_2_1_Template,1,0,null,17),le.k0s()}if(2&te){const te=le.XpG(3);le.BMQ("data-pc-section","removeTokenIcon")("aria-hidden",!0),le.R7$(),le.Y8G("ngTemplateOutlet",te.removeTokenIconTemplate)}}function Chips_li_3_ng_container_4_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Chips_li_3_ng_container_4_TimesCircleIcon_1_Template,1,3,"TimesCircleIcon",13)(2,Chips_li_3_ng_container_4_span_2_Template,2,3,"span",14),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",!te.removeTokenIconTemplate),le.R7$(),le.Y8G("ngIf",te.removeTokenIconTemplate)}}const _c2=te=>({"p-chips-token":!0,"p-focus":te}),_c3=te=>({$implicit:te});function Chips_li_3_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"li",8,9),le.bIt("click",(function Chips_li_3_Template_li_click_0_listener(ne){const ie=le.eBV(te).$implicit,re=le.XpG();return le.Njj(re.onItemClick(ne,ie))})),le.DNE(2,Chips_li_3_ng_container_2_Template,1,0,"ng-container",10)(3,Chips_li_3_span_3_Template,2,2,"span",11)(4,Chips_li_3_ng_container_4_Template,3,2,"ng-container",7),le.k0s()}if(2&te){const te=ne.$implicit,ie=ne.index,re=le.XpG();le.Y8G("ngClass",le.eq3(12,_c2,re.focusedIndex===ie)),le.BMQ("id",re.id+"_chips_item_"+ie)("ariaLabel",te)("aria-selected",!0)("aria-setsize",re.value.length)("aria-posinset",ie+1)("data-p-focused",re.focusedIndex===ie)("data-pc-section","token"),le.R7$(2),le.Y8G("ngTemplateOutlet",re.itemTemplate)("ngTemplateOutletContext",le.eq3(14,_c3,te)),le.R7$(),le.Y8G("ngIf",!re.itemTemplate),le.R7$(),le.Y8G("ngIf",!re.disabled)}}function Chips_li_7_TimesIcon_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"TimesIcon",15),le.bIt("click",(function Chips_li_7_TimesIcon_1_Template_TimesIcon_click_0_listener(){le.eBV(te);const ne=le.XpG(2);return le.Njj(ne.clear())})),le.k0s()}2&te&&le.Y8G("styleClass","p-chips-clear-icon")}function Chips_li_7_span_2_1_ng_template_0_Template(te,ne){}function Chips_li_7_span_2_1_Template(te,ne){1&te&&le.DNE(0,Chips_li_7_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Chips_li_7_span_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"span",19),le.bIt("click",(function Chips_li_7_span_2_Template_span_click_0_listener(){le.eBV(te);const ne=le.XpG(2);return le.Njj(ne.clear())})),le.DNE(1,Chips_li_7_span_2_1_Template,1,0,null,17),le.k0s()}if(2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",te.clearIconTemplate)}}function Chips_li_7_Template(te,ne){if(1&te&&(le.j41(0,"li"),le.DNE(1,Chips_li_7_TimesIcon_1_Template,1,1,"TimesIcon",13)(2,Chips_li_7_span_2_Template,2,1,"span",18),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",!te.clearIconTemplate),le.R7$(),le.Y8G("ngIf",te.clearIconTemplate)}}const _c4=(te,ne,ie,re)=>({"p-chips p-component p-input-wrapper":!0,"p-disabled":te,"p-focus":ne,"p-inputwrapper-filled":ie,"p-inputwrapper-focus":re}),_c5=te=>({"p-inputtext p-chips-multiple-container":!0,"p-variant-filled":te}),_c6=te=>({"p-chips-clearable":te}),ye={provide:ce.kq,useExisting:(0,le.Rfq)((()=>we)),multi:!0};let we=(()=>{class Chips{document;el;cd;config;style;styleClass;disabled;field;placeholder;max;maxLength;ariaLabel;ariaLabelledBy;tabindex;inputId;allowDuplicate=!0;caseSensitiveDuplication=!0;inputStyle;inputStyleClass;addOnTab;addOnBlur;separator;showClear=!1;autofocus;variant="outlined";onAdd=new le.bkB;onRemove=new le.bkB;onFocus=new le.bkB;onBlur=new le.bkB;onChipClick=new le.bkB;onClear=new le.bkB;inputViewChild;containerViewChild;templates;itemTemplate;removeTokenIconTemplate;clearIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};valueChanged;id=(0,_e._Y)();focused;focusedIndex;filled;get focusedOptionId(){return null!==this.focusedIndex?`${this.id}_chips_item_${this.focusedIndex}`:null}get isMaxedOut(){return this.max&&this.value&&this.max===this.value.length}constructor(te,ne,ie,re){this.document=te,this.el=ne,this.cd=ie,this.config=re}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"item":default:this.itemTemplate=te.template;break;case"removetokenicon":this.removeTokenIconTemplate=te.template;break;case"clearicon":this.clearIconTemplate=te.template}})),this.updateFilledState()}onWrapperClick(){this.inputViewChild?.nativeElement.focus()}onContainerFocus(){this.focused=!0}onContainerBlur(){this.focusedIndex=-1,this.focused=!1}onContainerKeyDown(te){switch(te.code){case"ArrowLeft":this.onArrowLeftKeyOn();break;case"ArrowRight":this.onArrowRightKeyOn();break;case"Backspace":this.onBackspaceKeyOn(te);break;case"Space":null!==this.focusedIndex&&this.value&&this.value.length>0&&this.onItemClick(te,this.value[this.focusedIndex])}}onArrowLeftKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex=null===this.focusedIndex?this.value.length-1:this.focusedIndex-1,this.focusedIndex<0&&(this.focusedIndex=0))}onArrowRightKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex===this.value.length-1?(this.focusedIndex=null,this.inputViewChild?.nativeElement.focus()):this.focusedIndex++)}onBackspaceKeyOn(te){null!==this.focusedIndex&&this.removeItem(te,this.focusedIndex)}onInput(){this.updateFilledState(),this.focusedIndex=null}onPaste(te){if(!this.disabled){if(this.separator){(te.clipboardData||this.document.defaultView.clipboardData).getData("Text").split(this.separator).forEach((ne=>{this.addItem(te,ne,!0)})),this.inputViewChild.nativeElement.value=""}this.updateFilledState()}}updateFilledState(){this.value&&0!==this.value.length?this.filled=!0:this.filled=this.inputViewChild&&this.inputViewChild.nativeElement&&""!=this.inputViewChild.nativeElement.value}onItemClick(te,ne){this.onChipClick.emit({originalEvent:te,value:ne})}writeValue(te){this.value=te,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}resolveFieldData(te,ne){if(te&&ne){if(-1==ne.indexOf("."))return te[ne];{let le=ne.split("."),ce=te;for(var ie=0,re=le.length;ie<re;++ie)ce=ce[le[ie]];return ce}}return null}onInputFocus(te){this.focused=!0,this.focusedIndex=null,this.onFocus.emit(te)}onInputBlur(te){this.focused=!1,this.focusedIndex=null,this.addOnBlur&&this.inputViewChild.nativeElement.value&&this.addItem(te,this.inputViewChild.nativeElement.value,!1),this.onModelTouched(),this.onBlur.emit(te)}removeItem(te,ne){if(this.disabled)return;let ie=this.value[ne];this.value=this.value.filter(((te,ie)=>ie!=ne)),this.focusedIndex=null,this.inputViewChild.nativeElement.focus(),this.onModelChange(this.value),this.onRemove.emit({originalEvent:te,value:ie}),this.updateFilledState(),this.updateMaxedOut()}addItem(te,ne,ie){if(this.value=this.value||[],ne&&ne.trim().length){const ie=this.caseSensitiveDuplication?this.value.includes(ne):this.value.some((te=>te.toLowerCase()===ne.toLowerCase()));!this.allowDuplicate&&ie||this.isMaxedOut||(this.value=[...this.value,ne],this.onModelChange(this.value),this.onAdd.emit({originalEvent:te,value:ne}))}this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",ie&&te.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.updateMaxedOut(),this.onClear.emit()}onKeyDown(te){const ne=te.target.value;switch(te.code){case"Backspace":0===ne.length&&this.value&&this.value.length>0&&(null!==this.focusedIndex?this.removeItem(te,this.focusedIndex):this.removeItem(te,this.value.length-1));break;case"Enter":case"NumpadEnter":ne&&ne.trim().length&&!this.isMaxedOut&&this.addItem(te,ne,!0);break;case"Tab":this.addOnTab&&ne&&ne.trim().length&&!this.isMaxedOut&&(this.addItem(te,ne,!0),te.preventDefault());break;case"ArrowLeft":0===ne.length&&this.value&&this.value.length>0&&this.containerViewChild?.nativeElement.focus();break;case"ArrowRight":te.stopPropagation();break;default:this.separator&&(this.separator===te.key||te.key.match(this.separator))&&this.addItem(te,ne,!0)}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.isMaxedOut?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}static ɵfac=function Chips_Factory(te){return new(te||Chips)(le.rXU(re.qQ),le.rXU(le.aKT),le.rXU(le.gRc),le.rXU(de.r1))};static ɵcmp=le.VBU({type:Chips,selectors:[["p-chips"]],contentQueries:function Chips_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,de.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},viewQuery:function Chips_Query(te,ne){if(1&te&&(le.GBs(be,5),le.GBs(Ce,5)),2&te){let te;le.mGM(te=le.lsd())&&(ne.inputViewChild=te.first),le.mGM(te=le.lsd())&&(ne.containerViewChild=te.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function Chips_HostBindings(te,ne){2&te&&le.AVh("p-inputwrapper-filled",ne.filled)("p-inputwrapper-focus",ne.focused)("p-chips-clearable",ne.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],field:"field",placeholder:"placeholder",max:[le.Mj6.HasDecoratorInputTransform,"max","max",le.Udg],maxLength:"maxLength",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:[le.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",le.Udg],inputId:"inputId",allowDuplicate:[le.Mj6.HasDecoratorInputTransform,"allowDuplicate","allowDuplicate",le.L39],caseSensitiveDuplication:[le.Mj6.HasDecoratorInputTransform,"caseSensitiveDuplication","caseSensitiveDuplication",le.L39],inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:[le.Mj6.HasDecoratorInputTransform,"addOnTab","addOnTab",le.L39],addOnBlur:[le.Mj6.HasDecoratorInputTransform,"addOnBlur","addOnBlur",le.L39],separator:"separator",showClear:[le.Mj6.HasDecoratorInputTransform,"showClear","showClear",le.L39],autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39],variant:"variant"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[le.Jv_([ye]),le.GFd],decls:8,vars:34,consts:[[3,"ngClass","ngStyle"],["tabindex","-1","role","listbox",3,"ngClass","click","focus","blur","keydown"],["container",""],["role","option",3,"ngClass","click",4,"ngFor","ngForOf"],["role","option",1,"p-chips-input-token",3,"ngClass"],["type","text","pAutoFocus","",3,"disabled","ngStyle","autofocus","keydown","input","paste","focus","blur"],["inputtext",""],[4,"ngIf"],["role","option",3,"ngClass","click"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],[1,"p-chips-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-chips-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-chips-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-chips-clear-icon",3,"click",4,"ngIf"],[1,"p-chips-clear-icon",3,"click"]],template:function Chips_Template(te,ne){1&te&&(le.j41(0,"div",0)(1,"ul",1,2),le.bIt("click",(function Chips_Template_ul_click_1_listener(){return ne.onWrapperClick()}))("focus",(function Chips_Template_ul_focus_1_listener(){return ne.onContainerFocus()}))("blur",(function Chips_Template_ul_blur_1_listener(){return ne.onContainerBlur()}))("keydown",(function Chips_Template_ul_keydown_1_listener(te){return ne.onContainerKeyDown(te)})),le.DNE(3,Chips_li_3_Template,5,16,"li",3),le.j41(4,"li",4)(5,"input",5,6),le.bIt("keydown",(function Chips_Template_input_keydown_5_listener(te){return ne.onKeyDown(te)}))("input",(function Chips_Template_input_input_5_listener(){return ne.onInput()}))("paste",(function Chips_Template_input_paste_5_listener(te){return ne.onPaste(te)}))("focus",(function Chips_Template_input_focus_5_listener(te){return ne.onInputFocus(te)}))("blur",(function Chips_Template_input_blur_5_listener(te){return ne.onInputBlur(te)})),le.k0s()(),le.DNE(7,Chips_li_7_Template,3,2,"li",7),le.k0s()()),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngClass",le.ziG(25,_c4,ne.disabled,ne.focused,ne.value&&ne.value.length||(null==ne.inputViewChild?null:ne.inputViewChild.nativeElement.value)&&(null==ne.inputViewChild?null:ne.inputViewChild.nativeElement.value.length),ne.focused))("ngStyle",ne.style),le.BMQ("data-pc-name","chips")("data-pc-section","root"),le.R7$(),le.Y8G("ngClass",le.eq3(30,_c5,"filled"===ne.variant||"filled"===ne.config.inputStyle())),le.BMQ("aria-labelledby",ne.ariaLabelledBy)("aria-label",ne.ariaLabel)("aria-activedescendant",ne.focused?ne.focusedOptionId:void 0)("aria-orientation","horizontal")("data-pc-section","container"),le.R7$(2),le.Y8G("ngForOf",ne.value),le.R7$(),le.Y8G("ngClass",le.eq3(32,_c6,ne.showClear&&!ne.disabled)),le.BMQ("data-pc-section","inputToken"),le.R7$(),le.HbH(ne.inputStyleClass),le.Y8G("disabled",ne.disabled||ne.isMaxedOut)("ngStyle",ne.inputStyle)("autofocus",ne.autofocus),le.BMQ("id",ne.inputId)("maxlength",ne.maxLength)("placeholder",ne.value&&ne.value.length?null:ne.placeholder)("tabindex",ne.tabindex),le.R7$(2),le.Y8G("ngIf",null!=ne.value&&ne.filled&&!ne.disabled&&ne.showClear))},dependencies:()=>[re.YU,re.Sq,re.bT,re.T3,re.B3,ue.q,ge.I,me.A],styles:["@layer primeng{.p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}}\n"],encapsulation:2,changeDetection:0})}return Chips})(),ke=(()=>{class ChipsModule{static ɵfac=function ChipsModule_Factory(te){return new(te||ChipsModule)};static ɵmod=le.$C({type:ChipsModule});static ɵinj=le.G2t({imports:[re.MD,fe.u,de.Gg,ue.u,ge.I,me.A,fe.u,de.Gg]})}return ChipsModule})()},9568:(te,ne,ie)=>{"use strict";ie.d(ne,{F:()=>Ee,T:()=>xe});var re=ie(1204),le=ie(4460),ce=ie(3107),de=ie(3828),ue=ie(7280),me=ie(5724),ge=ie(7825),fe=ie(239),_e=ie(1646),be=ie(1939);const Ce=["content"];function ConfirmDialog_div_0_div_1_ng_container_1_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}const _c1=te=>({$implicit:te});function ConfirmDialog_div_0_div_1_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_container_1_ng_container_1_Template,1,0,"ng-container",6),ce.bVm()),2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.headlessTemplate)("ngTemplateOutletContext",ce.eq3(2,_c1,te.confirmation))}}function ConfirmDialog_div_0_div_1_ng_template_2_div_0_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function ConfirmDialog_div_0_div_1_ng_template_2_div_0_Template(te,ne){if(1&te&&(ce.j41(0,"div",14),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_div_0_ng_container_1_Template,1,0,"ng-container",15),ce.k0s()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.headerTemplate)}}function ConfirmDialog_div_0_div_1_ng_template_2_div_1_span_1_Template(te,ne){if(1&te&&(ce.j41(0,"span",19),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(5);ce.Y8G("id",te.ariaLabelledBy),ce.R7$(),ce.JRh(te.option("header"))}}const _c2=()=>({"p-dialog-header-icon p-dialog-header-close p-link":!0});function ConfirmDialog_div_0_div_1_ng_template_2_div_1_button_3_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",20),ce.bIt("click",(function ConfirmDialog_div_0_div_1_ng_template_2_div_1_button_3_Template_button_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(5);return ce.Njj(ie.close(ne))}))("keydown.enter",(function ConfirmDialog_div_0_div_1_ng_template_2_div_1_button_3_Template_button_keydown_enter_0_listener(ne){ce.eBV(te);const ie=ce.XpG(5);return ce.Njj(ie.close(ne))})),ce.nrm(1,"TimesIcon"),ce.k0s()}if(2&te){const te=ce.XpG(5);ce.Y8G("ngClass",ce.lJ4(2,_c2)),ce.BMQ("aria-label",te.closeAriaLabel)}}function ConfirmDialog_div_0_div_1_ng_template_2_div_1_Template(te,ne){if(1&te&&(ce.j41(0,"div",14),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_div_1_span_1_Template,2,2,"span",16),ce.j41(2,"div",17),ce.DNE(3,ConfirmDialog_div_0_div_1_ng_template_2_div_1_button_3_Template,2,3,"button",18),ce.k0s()()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngIf",te.option("header")),ce.R7$(2),ce.Y8G("ngIf",te.closable)}}function ConfirmDialog_div_0_div_1_ng_template_2_i_4_Template(te,ne){if(1&te&&ce.nrm(0,"i",1),2&te){const te=ce.XpG(4);ce.HbH(te.option("icon")),ce.Y8G("ngClass","p-confirm-dialog-icon")}}function ConfirmDialog_div_0_div_1_ng_template_2_ng_container_5_1_ng_template_0_Template(te,ne){}function ConfirmDialog_div_0_div_1_ng_template_2_ng_container_5_1_Template(te,ne){1&te&&ce.DNE(0,ConfirmDialog_div_0_div_1_ng_template_2_ng_container_5_1_ng_template_0_Template,0,0,"ng-template")}function ConfirmDialog_div_0_div_1_ng_template_2_ng_container_5_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_ng_container_5_1_Template,1,0,null,15),ce.bVm()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.iconTemplate)}}function ConfirmDialog_div_0_div_1_ng_template_2_span_6_Template(te,ne){if(1&te&&ce.nrm(0,"span",21),2&te){const te=ce.XpG(4);ce.Y8G("innerHTML",te.option("message"),ce.npT)}}function ConfirmDialog_div_0_div_1_ng_template_2_ng_container_7_1_ng_template_0_Template(te,ne){}function ConfirmDialog_div_0_div_1_ng_template_2_ng_container_7_1_Template(te,ne){1&te&&ce.DNE(0,ConfirmDialog_div_0_div_1_ng_template_2_ng_container_7_1_ng_template_0_Template,0,0,"ng-template")}function ConfirmDialog_div_0_div_1_ng_template_2_ng_container_7_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_ng_container_7_1_Template,1,0,null,6),ce.bVm()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.messageTemplate)("ngTemplateOutletContext",ce.eq3(2,_c1,te.confirmation))}}function ConfirmDialog_div_0_div_1_ng_template_2_div_8_ng_container_2_Template(te,ne){1&te&&ce.eu8(0)}function ConfirmDialog_div_0_div_1_ng_template_2_div_8_Template(te,ne){if(1&te&&(ce.j41(0,"div",22),ce.SdG(1),ce.DNE(2,ConfirmDialog_div_0_div_1_ng_template_2_div_8_ng_container_2_Template,1,0,"ng-container",15),ce.k0s()),2&te){const te=ce.XpG(4);ce.R7$(2),ce.Y8G("ngTemplateOutlet",te.footerTemplate)}}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_ng_container_1_i_1_Template(te,ne){if(1&te&&ce.nrm(0,"i"),2&te){const te=ce.XpG(7);ce.HbH(te.option("rejectIcon"))}}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_ng_container_1_TimesIcon_2_Template(te,ne){1&te&&ce.nrm(0,"TimesIcon",28),2&te&&ce.Y8G("styleClass","p-button-icon-left")}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_ng_container_1_i_1_Template,1,2,"i",26)(2,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_ng_container_1_TimesIcon_2_Template,1,1,"TimesIcon",27),ce.bVm()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngIf",te.option("rejectIcon")),ce.R7$(),ce.Y8G("ngIf",!te.option("rejectIcon"))}}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_span_2_1_ng_template_0_Template(te,ne){}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_span_2_1_Template(te,ne){1&te&&ce.DNE(0,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_span_2_1_ng_template_0_Template,0,0,"ng-template")}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",29),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_span_2_1_Template,1,0,null,15),ce.k0s()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.rejectIconTemplate)}}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",24),ce.bIt("click",(function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_Template_button_click_0_listener(){ce.eBV(te);const ne=ce.XpG(5);return ce.Njj(ne.reject())})),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_ng_container_1_Template,3,2,"ng-container",11)(2,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_span_2_Template,2,1,"span",25),ce.k0s()}if(2&te){const te=ce.XpG(5);ce.HbH(te.option("rejectButtonStyleClass")),ce.Y8G("label",te.rejectButtonLabel)("ngClass","p-confirm-dialog-reject"),ce.BMQ("aria-label",te.rejectAriaLabel),ce.R7$(),ce.Y8G("ngIf",!te.rejectIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.rejectIconTemplate)}}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_ng_container_1_i_1_Template(te,ne){if(1&te&&ce.nrm(0,"i"),2&te){const te=ce.XpG(7);ce.HbH(te.option("acceptIcon"))}}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_ng_container_1_CheckIcon_2_Template(te,ne){1&te&&ce.nrm(0,"CheckIcon",28),2&te&&ce.Y8G("styleClass","p-button-icon-left")}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_ng_container_1_i_1_Template,1,2,"i",26)(2,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_ng_container_1_CheckIcon_2_Template,1,1,"CheckIcon",27),ce.bVm()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngIf",te.option("acceptIcon")),ce.R7$(),ce.Y8G("ngIf",!te.option("acceptIcon"))}}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_span_2_1_ng_template_0_Template(te,ne){}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_span_2_1_Template(te,ne){1&te&&ce.DNE(0,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_span_2_1_ng_template_0_Template,0,0,"ng-template")}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",29),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_span_2_1_Template,1,0,null,15),ce.k0s()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.acceptIconTemplate)}}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",24),ce.bIt("click",(function ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_Template_button_click_0_listener(){ce.eBV(te);const ne=ce.XpG(5);return ce.Njj(ne.accept())})),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_ng_container_1_Template,3,2,"ng-container",11)(2,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_span_2_Template,2,1,"span",25),ce.k0s()}if(2&te){const te=ce.XpG(5);ce.HbH(te.option("acceptButtonStyleClass")),ce.Y8G("label",te.acceptButtonLabel)("ngClass","p-confirm-dialog-accept"),ce.BMQ("aria-label",te.acceptAriaLabel),ce.R7$(),ce.Y8G("ngIf",!te.acceptIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.acceptIconTemplate)}}function ConfirmDialog_div_0_div_1_ng_template_2_div_9_Template(te,ne){if(1&te&&(ce.j41(0,"div",22),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_1_Template,3,7,"button",23)(2,ConfirmDialog_div_0_div_1_ng_template_2_div_9_button_2_Template,3,7,"button",23),ce.k0s()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngIf",te.option("rejectVisible")),ce.R7$(),ce.Y8G("ngIf",te.option("acceptVisible"))}}function ConfirmDialog_div_0_div_1_ng_template_2_Template(te,ne){if(1&te&&(ce.DNE(0,ConfirmDialog_div_0_div_1_ng_template_2_div_0_Template,2,1,"div",7)(1,ConfirmDialog_div_0_div_1_ng_template_2_div_1_Template,4,2,"div",7),ce.j41(2,"div",8,9),ce.DNE(4,ConfirmDialog_div_0_div_1_ng_template_2_i_4_Template,1,3,"i",10)(5,ConfirmDialog_div_0_div_1_ng_template_2_ng_container_5_Template,2,1,"ng-container",11)(6,ConfirmDialog_div_0_div_1_ng_template_2_span_6_Template,1,1,"span",12)(7,ConfirmDialog_div_0_div_1_ng_template_2_ng_container_7_Template,2,4,"ng-container",11),ce.k0s(),ce.DNE(8,ConfirmDialog_div_0_div_1_ng_template_2_div_8_Template,3,1,"div",13)(9,ConfirmDialog_div_0_div_1_ng_template_2_div_9_Template,3,2,"div",13)),2&te){const te=ce.XpG(3);ce.Y8G("ngIf",te.headerTemplate),ce.R7$(),ce.Y8G("ngIf",!te.headerTemplate),ce.R7$(3),ce.Y8G("ngIf",!te.iconTemplate&&te.option("icon")),ce.R7$(),ce.Y8G("ngIf",te.iconTemplate),ce.R7$(),ce.Y8G("ngIf",!te.messageTemplate),ce.R7$(),ce.Y8G("ngIf",te.messageTemplate),ce.R7$(),ce.Y8G("ngIf",te.footer||te.footerTemplate),ce.R7$(),ce.Y8G("ngIf",!te.footer&&!te.footerTemplate)}}const _c3=te=>({"p-dialog p-confirm-dialog p-component":!0,"p-dialog-rtl":te}),_c4=(te,ne)=>({transform:te,transition:ne}),_c5=te=>({value:"visible",params:te});function ConfirmDialog_div_0_div_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",3),ce.bIt("@animation.start",(function ConfirmDialog_div_0_div_1_Template_div_animation_animation_start_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onAnimationStart(ne))}))("@animation.done",(function ConfirmDialog_div_0_div_1_Template_div_animation_animation_done_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onAnimationEnd(ne))})),ce.DNE(1,ConfirmDialog_div_0_div_1_ng_container_1_Template,2,4,"ng-container",4)(2,ConfirmDialog_div_0_div_1_ng_template_2_Template,10,8,"ng-template",null,5,ce.C5r),ce.k0s()}if(2&te){const te=ce.sdS(3),ne=ce.XpG(2);ce.HbH(ne.styleClass),ce.Y8G("ngClass",ce.eq3(9,_c3,ne.rtl))("ngStyle",ne.style)("@animation",ce.eq3(14,_c5,ce.l_i(11,_c4,ne.transformOptions,ne.transitionOptions))),ce.BMQ("aria-labelledby",ne.ariaLabelledBy)("aria-modal",!0),ce.R7$(),ce.Y8G("ngIf",ne.headlessTemplate)("ngIfElse",te)}}function ConfirmDialog_div_0_Template(te,ne){if(1&te&&(ce.j41(0,"div",1),ce.DNE(1,ConfirmDialog_div_0_div_1_Template,4,16,"div",2),ce.k0s()),2&te){const te=ce.XpG();ce.HbH(te.maskStyleClass),ce.Y8G("ngClass",te.getMaskClass()),ce.R7$(),ce.Y8G("ngIf",te.visible)}}const ye=[[["p-footer"]]],we=["p-footer"],ke=(0,re.lY)([(0,re.iF)({transform:"{{transform}}",opacity:0}),(0,re.i0)("{{transition}}",(0,re.iF)({transform:"none",opacity:1}))]),Se=(0,re.lY)([(0,re.i0)("{{transition}}",(0,re.iF)({transform:"{{transform}}",opacity:0}))]);let xe=(()=>{class ConfirmDialog{el;renderer;confirmationService;zone;cd;config;document;header;icon;message;get style(){return this._style}set style(te){this._style=te,this.cd.markForCheck()}styleClass;maskStyleClass;acceptIcon;acceptLabel;closeAriaLabel;acceptAriaLabel;acceptVisible=!0;rejectIcon;rejectLabel;rejectAriaLabel;rejectVisible=!0;acceptButtonStyleClass;rejectButtonStyleClass;closeOnEscape=!0;dismissableMask;blockScroll=!0;rtl=!1;closable=!0;appendTo;key;autoZIndex=!0;baseZIndex=0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";focusTrap=!0;defaultFocus="accept";breakpoints;get visible(){return this._visible}set visible(te){this._visible=te,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()}get position(){return this._position}set position(te){switch(this._position=te,te){case"top-left":case"bottom-left":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"top-right":case"bottom-right":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}onHide=new ce.bkB;footer;contentViewChild;templates;ngAfterContentInit(){this.templates?.forEach((te=>{switch(te.getType()){case"header":this.headerTemplate=te.template;break;case"footer":this.footerTemplate=te.template;break;case"message":this.messageTemplate=te.template;break;case"icon":this.iconTemplate=te.template;break;case"rejecticon":this.rejectIconTemplate=te.template;break;case"accepticon":this.acceptIconTemplate=te.template;break;case"headless":this.headlessTemplate=te.template}}))}headerTemplate;footerTemplate;rejectIconTemplate;acceptIconTemplate;messageTemplate;iconTemplate;headlessTemplate;confirmation;_visible;_style;maskVisible;documentEscapeListener;container;wrapper;contentContainer;subscription;maskClickListener;preWidth;_position="center";transformOptions="scale(0.7)";styleElement;id=(0,be._Y)();ariaLabelledBy=this.getAriaLabelledBy();confirmationOptions;translationSubscription;constructor(te,ne,ie,re,le,de,ue){this.el=te,this.renderer=ne,this.confirmationService=ie,this.zone=re,this.cd=le,this.config=de,this.document=ue,this.subscription=this.confirmationService.requireConfirmation$.subscribe((te=>{te?te.key===this.key&&(this.confirmation=te,this.confirmationOptions={message:this.confirmation.message||this.message,icon:this.confirmation.icon||this.icon,header:this.confirmation.header||this.header,rejectVisible:null==this.confirmation.rejectVisible?this.rejectVisible:this.confirmation.rejectVisible,acceptVisible:null==this.confirmation.acceptVisible?this.acceptVisible:this.confirmation.acceptVisible,acceptLabel:this.confirmation.acceptLabel||this.acceptLabel,rejectLabel:this.confirmation.rejectLabel||this.rejectLabel,acceptIcon:this.confirmation.acceptIcon||this.acceptIcon,rejectIcon:this.confirmation.rejectIcon||this.rejectIcon,acceptButtonStyleClass:this.confirmation.acceptButtonStyleClass||this.acceptButtonStyleClass,rejectButtonStyleClass:this.confirmation.rejectButtonStyleClass||this.rejectButtonStyleClass,defaultFocus:this.confirmation.defaultFocus||this.defaultFocus,blockScroll:!1===this.confirmation.blockScroll||!0===this.confirmation.blockScroll?this.confirmation.blockScroll:this.blockScroll,closeOnEscape:!1===this.confirmation.closeOnEscape||!0===this.confirmation.closeOnEscape?this.confirmation.closeOnEscape:this.closeOnEscape,dismissableMask:!1===this.confirmation.dismissableMask||!0===this.confirmation.dismissableMask?this.confirmation.dismissableMask:this.dismissableMask},this.confirmation.accept&&(this.confirmation.acceptEvent=new ce.bkB,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new ce.bkB,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0):this.hide()}))}ngOnInit(){this.breakpoints&&this.createStyle(),this.translationSubscription=this.config.translationObserver.subscribe((()=>{this.visible&&this.cd.markForCheck()}))}getAriaLabelledBy(){return null!==this.header?(0,be._Y)()+"_header":null}option(te){const ne=this.confirmationOptions||this;if(ne.hasOwnProperty(te))return ne[te]}onAnimationStart(te){if("visible"===te.toState){this.container=te.element,this.wrapper=this.container?.parentElement,this.contentContainer=me.D.findSingle(this.container,".p-dialog-content"),this.container?.setAttribute(this.id,""),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.enableModality();const ne=this.getElementToFocus();ne&&ne.focus()}}onAnimationEnd(te){if("void"===te.toState)this.onOverlayHide()}getElementToFocus(){switch(this.option("defaultFocus")){case"accept":default:return me.D.findSingle(this.container,".p-confirm-dialog-accept");case"reject":return me.D.findSingle(this.container,".p-confirm-dialog-reject");case"close":return me.D.findSingle(this.container,".p-dialog-header-close");case"none":return null}}appendContainer(){this.appendTo&&("body"===this.appendTo?this.document.body.appendChild(this.wrapper):me.D.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.wrapper&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}enableModality(){this.option("blockScroll")&&me.D.addClass(this.document.body,"p-overflow-hidden"),this.option("dismissableMask")&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",(te=>{this.wrapper&&this.wrapper.isSameNode(te.target)&&this.close(te)})))}disableModality(){this.maskVisible=!1,this.option("blockScroll")&&me.D.removeClass(this.document.body,"p-overflow-hidden"),this.dismissableMask&&this.unbindMaskClickListener(),this.container&&!this.cd.destroyed&&this.cd.detectChanges()}createStyle(){if(!this.styleElement){this.styleElement=this.document.createElement("style"),this.styleElement.type="text/css",me.D.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.document.head.appendChild(this.styleElement);let te="";for(let ne in this.breakpoints)te+=`\n                    @media screen and (max-width: ${ne}) {\n                        .p-dialog[${this.id}] {\n                            width: ${this.breakpoints[ne]} !important;\n                        }\n                    }\n                `;this.styleElement.innerHTML=te}}close(te){this.confirmation?.rejectEvent&&this.confirmation.rejectEvent.emit(de.TJ.CANCEL),this.hide(de.TJ.CANCEL),te.preventDefault()}hide(te){this.onHide.emit(te),this.visible=!1,this.confirmation=null,this.confirmationOptions=null}moveOnTop(){this.autoZIndex&&(be.Q$.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}getMaskClass(){let te={"p-dialog-mask p-component-overlay":!0,"p-dialog-mask-scrollblocker":this.blockScroll};return te[this.getPositionClass().toString()]=!0,te}getPositionClass(){const te=["left","right","top","top-left","top-right","bottom","bottom-left","bottom-right"].find((te=>te===this.position));return te?`p-dialog-${te}`:""}bindGlobalListeners(){if(this.option("closeOnEscape")&&this.closable||this.focusTrap&&!this.documentEscapeListener){const te=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(te,"keydown",(te=>{if(27==te.which&&this.option("closeOnEscape")&&this.closable&&parseInt(this.container.style.zIndex)===be.Q$.get(this.container)&&this.visible&&this.close(te),9===te.which&&this.focusTrap){te.preventDefault();let ne=me.D.getFocusableElements(this.container);if(ne&&ne.length>0)if(ne[0].ownerDocument.activeElement){let ie=ne.indexOf(ne[0].ownerDocument.activeElement);te.shiftKey?-1==ie||0===ie?ne[ne.length-1].focus():ne[ie-1].focus():-1==ie||ie===ne.length-1?ne[0].focus():ne[ie+1].focus()}else ne[0].focus()}}))}}unbindGlobalListeners(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}onOverlayHide(){this.container&&this.autoZIndex&&be.Q$.clear(this.container),this.disableModality(),this.unbindGlobalListeners(),this.container=null}destroyStyle(){this.styleElement&&(this.document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.restoreAppend(),this.onOverlayHide(),this.subscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.destroyStyle()}accept(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(de.TJ.ACCEPT)}reject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(de.TJ.REJECT),this.hide(de.TJ.REJECT)}get acceptButtonLabel(){return this.option("acceptLabel")||this.config.getTranslation(de.Yj.ACCEPT)}get rejectButtonLabel(){return this.option("rejectLabel")||this.config.getTranslation(de.Yj.REJECT)}static ɵfac=function ConfirmDialog_Factory(te){return new(te||ConfirmDialog)(ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(de.td),ce.rXU(ce.SKi),ce.rXU(ce.gRc),ce.rXU(de.r1),ce.rXU(le.qQ))};static ɵcmp=ce.VBU({type:ConfirmDialog,selectors:[["p-confirmDialog"]],contentQueries:function ConfirmDialog_ContentQueries(te,ne,ie){if(1&te&&(ce.wni(ie,de.wi,5),ce.wni(ie,de.Ei,4)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.footer=te.first),ce.mGM(te=ce.lsd())&&(ne.templates=te)}},viewQuery:function ConfirmDialog_Query(te,ne){if(1&te&&ce.GBs(Ce,5),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.contentViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",icon:"icon",message:"message",style:"style",styleClass:"styleClass",maskStyleClass:"maskStyleClass",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",closeAriaLabel:"closeAriaLabel",acceptAriaLabel:"acceptAriaLabel",acceptVisible:[ce.Mj6.HasDecoratorInputTransform,"acceptVisible","acceptVisible",ce.L39],rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectAriaLabel:"rejectAriaLabel",rejectVisible:[ce.Mj6.HasDecoratorInputTransform,"rejectVisible","rejectVisible",ce.L39],acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",closeOnEscape:[ce.Mj6.HasDecoratorInputTransform,"closeOnEscape","closeOnEscape",ce.L39],dismissableMask:[ce.Mj6.HasDecoratorInputTransform,"dismissableMask","dismissableMask",ce.L39],blockScroll:[ce.Mj6.HasDecoratorInputTransform,"blockScroll","blockScroll",ce.L39],rtl:[ce.Mj6.HasDecoratorInputTransform,"rtl","rtl",ce.L39],closable:[ce.Mj6.HasDecoratorInputTransform,"closable","closable",ce.L39],appendTo:"appendTo",key:"key",autoZIndex:[ce.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",ce.L39],baseZIndex:[ce.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",ce.Udg],transitionOptions:"transitionOptions",focusTrap:[ce.Mj6.HasDecoratorInputTransform,"focusTrap","focusTrap",ce.L39],defaultFocus:"defaultFocus",breakpoints:"breakpoints",visible:"visible",position:"position"},outputs:{onHide:"onHide"},features:[ce.GFd],ngContentSelectors:we,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["role","alertdialog",3,"ngClass","ngStyle","class",4,"ngIf"],["role","alertdialog",3,"ngClass","ngStyle"],[4,"ngIf","ngIfElse"],["notHeadless",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-dialog-header",4,"ngIf"],[1,"p-dialog-content"],["content",""],[3,"ngClass","class",4,"ngIf"],[4,"ngIf"],["class","p-confirm-dialog-message",3,"innerHTML",4,"ngIf"],["class","p-dialog-footer",4,"ngIf"],[1,"p-dialog-header"],[4,"ngTemplateOutlet"],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","role","button",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["type","button","role","button",3,"ngClass","click","keydown.enter"],[1,"p-confirm-dialog-message",3,"innerHTML"],[1,"p-dialog-footer"],["type","button","pRipple","","pButton","",3,"label","ngClass","class","click",4,"ngIf"],["type","button","pRipple","","pButton","",3,"label","ngClass","click"],["class","p-button-icon-left",4,"ngIf"],[3,"class",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon-left"]],template:function ConfirmDialog_Template(te,ne){1&te&&(ce.NAR(ye),ce.DNE(0,ConfirmDialog_div_0_Template,2,4,"div",0)),2&te&&ce.Y8G("ngIf",ne.maskVisible)},dependencies:()=>[le.YU,le.bT,le.T3,le.B3,ue._f,_e.n,fe.A,ge.S],styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[(0,re.hZ)("animation",[(0,re.kY)("void => visible",[(0,re.sM)(ke)]),(0,re.kY)("visible => void",[(0,re.sM)(Se)])])]},changeDetection:0})}return ConfirmDialog})(),Ee=(()=>{class ConfirmDialogModule{static ɵfac=function ConfirmDialogModule_Factory(te){return new(te||ConfirmDialogModule)};static ɵmod=ce.$C({type:ConfirmDialogModule});static ɵinj=ce.G2t({imports:[le.MD,ue.tm,_e.Z,fe.A,ge.S,ue.tm,de.Gg]})}return ConfirmDialogModule})()},104:(te,ne,ie)=>{"use strict";ie.d(ne,{rc:()=>xe,tz:()=>Se});var re=ie(1204),le=ie(4460),ce=ie(3107),de=ie(5656),ue=ie(3828),me=ie(5724),ge=ie(5598),fe=ie(1646),_e=ie(4613),be=ie(1939);const Ce=["sublist"];function ContextMenuSub_ul_0_ng_template_2_li_0_Template(te,ne){if(1&te&&ce.nrm(0,"li",6),2&te){const te=ce.XpG().$implicit,ne=ce.XpG(2);ce.Y8G("ngStyle",ne.getItemProp(te,"style"))("ngClass",ne.getSeparatorItemClass(te)),ce.BMQ("id",ne.getItemId(te))("data-pc-section","separator")}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",19),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG(2);ce.Y8G("ngClass",ne.getItemProp(te,"icon"))("ngStyle",ne.getItemProp(te,"iconStyle")),ce.BMQ("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",20),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG(2);ce.BMQ("data-pc-section","label"),ce.R7$(),ce.SpI(" ",ne.getItemLabel(te)," ")}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_template_3_Template(te,ne){if(1&te&&ce.nrm(0,"span",21),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG(2);ce.Y8G("innerHTML",ne.getItemLabel(te),ce.npT),ce.BMQ("data-pc-section","label")}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_span_5_Template(te,ne){if(1&te&&(ce.j41(0,"span",22),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG(2);ce.Y8G("ngClass",ne.getItemProp(te,"badgeStyleClass")),ce.R7$(),ce.JRh(ne.getItemProp(te,"badge"))}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_AngleRightIcon_1_Template(te,ne){1&te&&ce.nrm(0,"AngleRightIcon",25),2&te&&(ce.Y8G("styleClass","p-submenu-icon"),ce.BMQ("data-pc-section","submenuicon")("aria-hidden",!0))}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_ng_template_0_Template(te,ne){}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_Template(te,ne){1&te&&ce.DNE(0,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_ng_template_0_Template,0,0,"ng-template"),2&te&&ce.Y8G("data-pc-section","submenuicon")("aria-hidden",!0)}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_AngleRightIcon_1_Template,1,3,"AngleRightIcon",23)(2,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_Template,1,2,null,24),ce.bVm()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngIf",!te.contextMenu.submenuIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.contextMenu.submenuIconTemplate)}}const _c1=()=>({"p-menuitem-link":!0});function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_Template(te,ne){if(1&te&&(ce.j41(0,"a",14),ce.DNE(1,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_span_1_Template,1,5,"span",15)(2,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_span_2_Template,2,2,"span",16)(3,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_template_3_Template,1,2,"ng-template",null,17,ce.C5r)(5,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_span_5_Template,2,2,"span",18)(6,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_Template,3,2,"ng-container",10),ce.k0s()),2&te){const te=ce.sdS(4),ne=ce.XpG(3).$implicit,ie=ce.XpG(2);ce.Y8G("target",ie.getItemProp(ne,"target"))("ngClass",ce.lJ4(12,_c1)),ce.BMQ("href",ie.getItemProp(ne,"url"),ce.B4B)("aria-hidden",!0)("data-automationid",ie.getItemProp(ne,"automationId"))("data-pc-section","action")("tabindex",-1),ce.R7$(),ce.Y8G("ngIf",ie.getItemProp(ne,"icon")),ce.R7$(),ce.Y8G("ngIf",ie.getItemProp(ne,"escape"))("ngIfElse",te),ce.R7$(3),ce.Y8G("ngIf",ie.getItemProp(ne,"badge")),ce.R7$(),ce.Y8G("ngIf",ie.isItemGroup(ne))}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",19),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG(2);ce.Y8G("ngClass",ne.getItemProp(te,"icon"))("ngStyle",ne.getItemProp(te,"iconStyle")),ce.BMQ("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",20),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG(2);ce.BMQ("data-pc-section","label"),ce.R7$(),ce.SpI(" ",ne.getItemLabel(te)," ")}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_template_3_Template(te,ne){if(1&te&&ce.nrm(0,"span",21),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG(2);ce.Y8G("innerHTML",ne.getItemLabel(te),ce.npT),ce.BMQ("data-pc-section","label")}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_span_5_Template(te,ne){if(1&te&&(ce.j41(0,"span",22),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(4).$implicit,ne=ce.XpG(2);ce.Y8G("ngClass",ne.getItemProp(te,"badgeStyleClass")),ce.R7$(),ce.JRh(ne.getItemProp(te,"badge"))}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_AngleRightIcon_1_Template(te,ne){1&te&&ce.nrm(0,"AngleRightIcon",25),2&te&&(ce.Y8G("styleClass","p-submenu-icon"),ce.BMQ("data-pc-section","submenuicon")("aria-hidden",!0))}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_ng_template_0_Template(te,ne){}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_Template(te,ne){1&te&&ce.DNE(0,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_ng_template_0_Template,0,0,"ng-template"),2&te&&ce.Y8G("data-pc-section","submenuicon")("aria-hidden",!0)}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_AngleRightIcon_1_Template,1,3,"AngleRightIcon",23)(2,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_Template,1,2,null,24),ce.bVm()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngIf",!te.contextMenu.submenuIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.contextMenu.submenuIconTemplate)}}const _c2=()=>({exact:!1}),_c3=te=>({"p-menuitem-link":!0,"p-disabled":te});function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_Template(te,ne){if(1&te&&(ce.j41(0,"a",26),ce.DNE(1,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_span_1_Template,1,5,"span",15)(2,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_span_2_Template,2,2,"span",16)(3,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_template_3_Template,1,2,"ng-template",null,17,ce.C5r)(5,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_span_5_Template,2,2,"span",18)(6,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_Template,3,2,"ng-container",10),ce.k0s()),2&te){const te=ce.sdS(4),ne=ce.XpG(3).$implicit,ie=ce.XpG(2);ce.Y8G("routerLink",ie.getItemProp(ne,"routerLink"))("queryParams",ie.getItemProp(ne,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",ie.getItemProp(ne,"routerLinkActiveOptions")||ce.lJ4(21,_c2))("target",ie.getItemProp(ne,"target"))("ngClass",ce.eq3(22,_c3,ie.getItemProp(ne,"disabled")))("fragment",ie.getItemProp(ne,"fragment"))("queryParamsHandling",ie.getItemProp(ne,"queryParamsHandling"))("preserveFragment",ie.getItemProp(ne,"preserveFragment"))("skipLocationChange",ie.getItemProp(ne,"skipLocationChange"))("replaceUrl",ie.getItemProp(ne,"replaceUrl"))("state",ie.getItemProp(ne,"state")),ce.BMQ("data-automationid",ie.getItemProp(ne,"automationId"))("tabindex",-1)("aria-hidden",!0)("data-pc-section","action"),ce.R7$(),ce.Y8G("ngIf",ie.getItemProp(ne,"icon")),ce.R7$(),ce.Y8G("ngIf",ie.getItemProp(ne,"escape"))("ngIfElse",te),ce.R7$(3),ce.Y8G("ngIf",ie.getItemProp(ne,"badge")),ce.R7$(),ce.Y8G("ngIf",ie.isItemGroup(ne))}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_Template,7,13,"a",12)(2,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_Template,7,24,"a",13),ce.bVm()),2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG(2);ce.R7$(),ce.Y8G("ngIf",!ne.getItemProp(te,"routerLink")),ce.R7$(),ce.Y8G("ngIf",ne.getItemProp(te,"routerLink"))}}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_1_ng_template_0_Template(te,ne){}function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_1_Template(te,ne){1&te&&ce.DNE(0,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_1_ng_template_0_Template,0,0,"ng-template")}const _c4=te=>({$implicit:te});function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_1_Template,1,0,null,27),ce.bVm()),2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG(2);ce.R7$(),ce.Y8G("ngTemplateOutlet",ne.itemTemplate)("ngTemplateOutletContext",ce.eq3(2,_c4,te.item))}}function ContextMenuSub_ul_0_ng_template_2_li_1_p_contextMenuSub_5_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-contextMenuSub",28),ce.bIt("itemClick",(function ContextMenuSub_ul_0_ng_template_2_li_1_p_contextMenuSub_5_Template_p_contextMenuSub_itemClick_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.itemClick.emit(ne))}))("itemMouseEnter",(function ContextMenuSub_ul_0_ng_template_2_li_1_p_contextMenuSub_5_Template_p_contextMenuSub_itemMouseEnter_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.onItemMouseEnter(ne))})),ce.k0s()}if(2&te){const te=ce.XpG(2).$implicit,ne=ce.XpG(2);ce.Y8G("items",te.items)("itemTemplate",ne.itemTemplate)("menuId",ne.menuId)("visible",ne.isItemActive(te)&&ne.isItemGroup(te))("activeItemPath",ne.activeItemPath)("focusedItemId",ne.focusedItemId)("level",ne.level+1)}}function ContextMenuSub_ul_0_ng_template_2_li_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"li",7,8)(2,"div",9),ce.bIt("click",(function ContextMenuSub_ul_0_ng_template_2_li_1_Template_div_click_2_listener(ne){ce.eBV(te);const ie=ce.XpG().$implicit,re=ce.XpG(2);return ce.Njj(re.onItemClick(ne,ie))}))("mouseenter",(function ContextMenuSub_ul_0_ng_template_2_li_1_Template_div_mouseenter_2_listener(ne){ce.eBV(te);const ie=ce.XpG().$implicit,re=ce.XpG(2);return ce.Njj(re.onItemMouseEnter({$event:ne,processedItem:ie}))})),ce.DNE(3,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_Template,3,2,"ng-container",10)(4,ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_Template,2,4,"ng-container",10),ce.k0s(),ce.DNE(5,ContextMenuSub_ul_0_ng_template_2_li_1_p_contextMenuSub_5_Template,1,7,"p-contextMenuSub",11),ce.k0s()}if(2&te){const te=ce.XpG(),ne=te.$implicit,ie=te.index,re=ce.XpG(2);ce.HbH(re.getItemProp(ne,"styleClass")),ce.Y8G("ngStyle",re.getItemProp(ne,"style"))("ngClass",re.getItemClass(ne))("tooltipOptions",re.getItemProp(ne,"tooltipOptions")),ce.BMQ("id",re.getItemId(ne))("data-pc-section","menuitem")("data-p-highlight",re.isItemActive(ne))("data-p-focused",re.isItemFocused(ne))("data-p-disabled",re.isItemDisabled(ne))("aria-label",re.getItemLabel(ne))("aria-disabled",re.isItemDisabled(ne)||void 0)("aria-haspopup",re.isItemGroup(ne)&&!re.getItemProp(ne,"to")?"menu":void 0)("aria-expanded",re.isItemGroup(ne)?re.isItemActive(ne):void 0)("aria-level",re.level+1)("aria-setsize",re.getAriaSetSize())("aria-posinset",re.getAriaPosInset(ie)),ce.R7$(2),ce.BMQ("data-pc-section","content"),ce.R7$(),ce.Y8G("ngIf",!re.itemTemplate),ce.R7$(),ce.Y8G("ngIf",re.itemTemplate),ce.R7$(),ce.Y8G("ngIf",re.isItemVisible(ne)&&re.isItemGroup(ne))}}function ContextMenuSub_ul_0_ng_template_2_Template(te,ne){if(1&te&&ce.DNE(0,ContextMenuSub_ul_0_ng_template_2_li_0_Template,1,4,"li",4)(1,ContextMenuSub_ul_0_ng_template_2_li_1_Template,6,21,"li",5),2&te){const te=ne.$implicit,ie=ce.XpG(2);ce.Y8G("ngIf",ie.isItemVisible(te)&&ie.getItemProp(te,"separator")),ce.R7$(),ce.Y8G("ngIf",ie.isItemVisible(te)&&!ie.getItemProp(te,"separator"))}}const _c5=(te,ne)=>({"p-submenu-list":te,"p-contextmenu-root-list":ne});function ContextMenuSub_ul_0_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"ul",1,2),ce.bIt("@overlayAnimation.start",(function ContextMenuSub_ul_0_Template_ul_animation_overlayAnimation_start_0_listener(ne){ce.eBV(te);const ie=ce.sdS(1),re=ce.XpG();return ce.Njj(re.onEnter(ne,ie))}))("keydown",(function ContextMenuSub_ul_0_Template_ul_keydown_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.menuKeydown.emit(ne))}))("focus",(function ContextMenuSub_ul_0_Template_ul_focus_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.menuFocus.emit(ne))}))("blur",(function ContextMenuSub_ul_0_Template_ul_blur_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.menuBlur.emit(ne))})),ce.DNE(2,ContextMenuSub_ul_0_ng_template_2_Template,2,2,"ng-template",3),ce.k0s()}if(2&te){const te=ce.XpG();ce.Y8G("ngClass",ce.l_i(10,_c5,!te.root,te.root))("@overlayAnimation",te.visible)("tabindex",te.tabindex),ce.BMQ("id",te.menuId+"_list")("aria-label",te.ariaLabel)("aria-labelledBy",te.ariaLabelledBy)("aria-activedescendant",te.focusedItemId)("aria-orientation","vertical")("data-pc-section","menu"),ce.R7$(2),ce.Y8G("ngForOf",te.items)}}const ye=["rootmenu"],we=["container"],_c8=()=>({"p-contextmenu p-component":!0,"p-contextmenu-overlay":!0}),_c9=()=>({value:"visible"});function ContextMenu_div_0_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",1,2),ce.bIt("@overlayAnimation.start",(function ContextMenu_div_0_Template_div_animation_overlayAnimation_start_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onOverlayAnimationStart(ne))}))("@overlayAnimation.done",(function ContextMenu_div_0_Template_div_animation_overlayAnimation_done_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onOverlayAnimationEnd(ne))})),ce.j41(2,"p-contextMenuSub",3,4),ce.bIt("itemClick",(function ContextMenu_div_0_Template_p_contextMenuSub_itemClick_2_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onItemClick(ne))}))("menuFocus",(function ContextMenu_div_0_Template_p_contextMenuSub_menuFocus_2_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onMenuFocus(ne))}))("menuBlur",(function ContextMenu_div_0_Template_p_contextMenuSub_menuBlur_2_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onMenuBlur(ne))}))("menuKeydown",(function ContextMenu_div_0_Template_p_contextMenuSub_menuKeydown_2_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onKeyDown(ne))}))("itemMouseEnter",(function ContextMenu_div_0_Template_p_contextMenuSub_itemMouseEnter_2_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onItemMouseEnter(ne))})),ce.k0s()()}if(2&te){const te=ce.XpG();ce.HbH(te.styleClass),ce.Y8G("ngClass",ce.lJ4(20,_c8))("ngStyle",te.style)("@overlayAnimation",ce.lJ4(21,_c9)),ce.BMQ("data-pc-section","root")("data-pc-name","contextmenu")("id",te.id),ce.R7$(2),ce.Y8G("root",!0)("items",te.processedItems)("itemTemplate",te.itemTemplate)("menuId",te.id)("tabindex",te.disabled?-1:te.tabindex)("ariaLabel",te.ariaLabel)("ariaLabelledBy",te.ariaLabelledBy)("baseZIndex",te.baseZIndex)("autoZIndex",te.autoZIndex)("visible",te.submenuVisible())("focusedItemId",te.focused?te.focusedItemId:void 0)("activeItemPath",te.activeItemPath())}}let ke=(()=>{class ContextMenuSub{document;el;renderer;cd;contextMenu;ref;visible=!1;items;itemTemplate;root=!1;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;tabindex=0;itemClick=new ce.bkB;itemMouseEnter=new ce.bkB;menuFocus=new ce.bkB;menuBlur=new ce.bkB;menuKeydown=new ce.bkB;sublistViewChild;constructor(te,ne,ie,re,le,ce){this.document=te,this.el=ne,this.renderer=ie,this.cd=re,this.contextMenu=le,this.ref=ce}getItemProp(te,ne,ie=null){return te&&te.item?be.BF.getItemValue(te.item[ne],ie):void 0}getItemId(te){return te.item&&te.item?.id?te.item.id:`${this.menuId}_${te.key}`}getItemKey(te){return this.getItemId(te)}getItemClass(te){return{...this.getItemProp(te,"class"),"p-menuitem":!0,"p-highlight":this.isItemActive(te),"p-menuitem-active":this.isItemActive(te),"p-focus":this.isItemFocused(te),"p-disabled":this.isItemDisabled(te)}}getItemLabel(te){return this.getItemProp(te,"label")}getSeparatorItemClass(te){return{...this.getItemProp(te,"class"),"p-menuitem-separator":!0}}getAriaSetSize(){return this.items.filter((te=>this.isItemVisible(te)&&!this.getItemProp(te,"separator"))).length}getAriaPosInset(te){return te-this.items.slice(0,te).filter((te=>this.isItemVisible(te)&&this.getItemProp(te,"separator"))).length+1}isItemVisible(te){return!1!==this.getItemProp(te,"visible")}isItemActive(te){if(this.activeItemPath)return this.activeItemPath.some((ne=>ne.key===te.key))}isItemDisabled(te){return this.getItemProp(te,"disabled")}isItemFocused(te){return this.focusedItemId===this.getItemId(te)}isItemGroup(te){return be.BF.isNotEmpty(te.items)}onItemMouseEnter(te){const{event:ne,processedItem:ie}=te;this.itemMouseEnter.emit({originalEvent:ne,processedItem:ie})}onItemClick(te,ne){this.getItemProp(ne,"command",{originalEvent:te,item:ne.item}),this.itemClick.emit({originalEvent:te,processedItem:ne,isFocus:!0})}onEnter(te,ne){if("void"===te.fromState&&te.toState){const ne=te.element;this.position(ne)}}position(te){const ne=te.parentElement.parentElement,ie=me.D.getOffset(te.parentElement.parentElement),re=me.D.getViewport(),le=te.offsetParent?te.offsetWidth:me.D.getHiddenElementOuterWidth(te),ce=me.D.getOuterWidth(ne.children[0]);te.style.top="0px",parseInt(ie.left,10)+ce+le>re.width-me.D.calculateScrollbarWidth()?te.style.left=-1*le+"px":te.style.left=ce+"px"}static ɵfac=function ContextMenuSub_Factory(te){return new(te||ContextMenuSub)(ce.rXU(le.qQ),ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(ce.gRc),ce.rXU((0,ce.Rfq)((()=>Se))),ce.rXU(ce.c1b))};static ɵcmp=ce.VBU({type:ContextMenuSub,selectors:[["p-contextMenuSub"]],viewQuery:function ContextMenuSub_Query(te,ne){if(1&te&&ce.GBs(Ce,5),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.sublistViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{visible:[ce.Mj6.HasDecoratorInputTransform,"visible","visible",ce.L39],items:"items",itemTemplate:"itemTemplate",root:[ce.Mj6.HasDecoratorInputTransform,"root","root",ce.L39],autoZIndex:[ce.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",ce.L39],baseZIndex:[ce.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",ce.Udg],popup:[ce.Mj6.HasDecoratorInputTransform,"popup","popup",ce.L39],menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:[ce.Mj6.HasDecoratorInputTransform,"level","level",ce.Udg],focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",tabindex:[ce.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",ce.Udg]},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},features:[ce.GFd],decls:1,vars:1,consts:[["role","menu",3,"ngClass","tabindex","keydown","focus","blur",4,"ngIf"],["role","menu",3,"ngClass","tabindex","keydown","focus","blur"],["sublist",""],["ngFor","",3,"ngForOf"],["role","separator",3,"ngStyle","ngClass",4,"ngIf"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","class","tooltipOptions",4,"ngIf"],["role","separator",3,"ngStyle","ngClass"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["listItem",""],[1,"p-menuitem-content",3,"click","mouseenter"],[4,"ngIf"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter"]],template:function ContextMenuSub_Template(te,ne){1&te&&ce.DNE(0,ContextMenuSub_ul_0_Template,3,13,"ul",0),2&te&&ce.Y8G("ngIf",!!ne.root||ne.visible)},dependencies:()=>[le.YU,le.Sq,le.bT,le.T3,le.B3,de.Wk,de.wQ,fe.n,_e.m,ge.D,ContextMenuSub],encapsulation:2,data:{animation:[(0,re.hZ)("overlayAnimation",[(0,re.kY)(":enter",[(0,re.iF)({opacity:0})]),(0,re.kY)(":leave",[(0,re.iF)({opacity:0})])])]}})}return ContextMenuSub})(),Se=(()=>{class ContextMenu{document;platformId;el;renderer;cd;config;overlayService;set model(te){this._model=te,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}triggerEvent="contextmenu";target;global;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;id;ariaLabel;ariaLabelledBy;pressDelay=500;onShow=new ce.bkB;onHide=new ce.bkB;templates;rootmenu;containerViewChild;submenuIconTemplate;itemTemplate;container;outsideClickListener;resizeListener;triggerEventListener;documentClickListener;documentTriggerListener;touchEndListener;pageX;pageY;visible=(0,ce.vPA)(!1);relativeAlign;window;focused=!1;activeItemPath=(0,ce.vPA)([]);focusedItemInfo=(0,ce.vPA)({index:-1,level:0,parentKey:"",item:null});submenuVisible=(0,ce.vPA)(!1);searchValue="";searchTimeout;_processedItems;_model;pressTimer;get visibleItems(){const te=this.activeItemPath().find((te=>te.key===this.focusedItemInfo().parentKey));return te?te.items:this.processedItems}get processedItems(){return this._processedItems&&this._processedItems.length||(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){const te=this.focusedItemInfo();return te.item&&te.item?.id?te.item.id:-1!==te.index?`${this.id}${be.BF.isNotEmpty(te.parentKey)?"_"+te.parentKey:""}_${te.index}`:null}constructor(te,ne,ie,re,le,de,ue){this.document=te,this.platformId=ne,this.el=ie,this.renderer=re,this.cd=le,this.config=de,this.overlayService=ue,this.window=this.document.defaultView,(0,ce.QZP)((()=>{const te=this.activeItemPath();be.BF.isNotEmpty(te)?this.bindGlobalListeners():this.visible()||this.unbindGlobalListeners()}))}ngOnInit(){this.id=this.id||(0,be._Y)(),this.bindTriggerEventListener()}isMobile(){return me.D.isIOS()||me.D.isAndroid()}bindTriggerEventListener(){(0,le.UE)(this.platformId)&&(this.triggerEventListener||(this.isMobile()?this.global?(this.triggerEventListener=this.renderer.listen(this.document,"touchstart",this.onTouchStart.bind(this)),this.touchEndListener=this.renderer.listen(this.document,"touchend",this.onTouchEnd.bind(this))):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,"touchstart",this.onTouchStart.bind(this)),this.touchEndListener=this.renderer.listen(this.target,"touchend",this.onTouchEnd.bind(this))):this.global?this.triggerEventListener=this.renderer.listen(this.document,this.triggerEvent,(te=>{this.show(te)})):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,this.triggerEvent,(te=>{this.show(te)})))))}bindGlobalListeners(){if((0,le.UE)(this.platformId)){if(!this.documentClickListener){const te=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(te,"click",(te=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(te)&&!te.ctrlKey&&2!==te.button&&"click"!==this.triggerEvent&&this.hide()})),this.documentTriggerListener=this.renderer.listen(te,this.triggerEvent,(te=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(te)&&this.hide()}))}this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",(te=>{this.hide()})))}}ngAfterContentInit(){this.templates?.forEach((te=>{if("submenuicon"===te.getType())this.submenuIconTemplate=te.template;else this.itemTemplate=te.template}))}createProcessedItems(te,ne=0,ie={},re=""){const le=[];return te&&te.forEach(((te,ce)=>{const de=(""!==re?re+"_":"")+ce,ue={item:te,index:ce,level:ne,key:de,parent:ie,parentKey:re};ue.items=this.createProcessedItems(te.items,ne+1,ue,de),le.push(ue)})),le}getItemProp(te,ne){return te?be.BF.getItemValue(te[ne]):void 0}getProccessedItemLabel(te){return te?this.getItemLabel(te.item):void 0}getItemLabel(te){return this.getItemProp(te,"label")}isProcessedItemGroup(te){return te&&be.BF.isNotEmpty(te.items)}isSelected(te){return this.activeItemPath().some((ne=>ne.key===te.key))}isValidSelectedItem(te){return this.isValidItem(te)&&this.isSelected(te)}isValidItem(te){return!!te&&!this.isItemDisabled(te.item)&&!this.isItemSeparator(te.item)}isItemDisabled(te){return this.getItemProp(te,"disabled")}isItemSeparator(te){return this.getItemProp(te,"separator")}isItemMatched(te){return this.isValidItem(te)&&this.getProccessedItemLabel(te).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(te){return te&&be.BF.isNotEmpty(te.items)}onItemClick(te){const{processedItem:ne}=te,ie=this.isProcessedItemGroup(ne);if(this.isSelected(ne)){const{index:te,key:ie,level:re,parentKey:le,item:ce}=ne;this.activeItemPath.set(this.activeItemPath().filter((te=>ie!==te.key&&ie.startsWith(te.key)))),this.focusedItemInfo.set({index:te,level:re,parentKey:le,item:ce}),me.D.focus(this.rootmenu.sublistViewChild.nativeElement)}else ie?this.onItemChange(te):this.hide()}onItemMouseEnter(te){this.onItemChange(te)}onKeyDown(te){const ne=te.metaKey||te.ctrlKey;switch(te.code){case"ArrowDown":this.onArrowDownKey(te);break;case"ArrowUp":this.onArrowUpKey(te);break;case"ArrowLeft":this.onArrowLeftKey(te);break;case"ArrowRight":this.onArrowRightKey(te);break;case"Home":this.onHomeKey(te);break;case"End":this.onEndKey(te);break;case"Space":this.onSpaceKey(te);break;case"Enter":this.onEnterKey(te);break;case"Escape":this.onEscapeKey(te);break;case"Tab":this.onTabKey(te);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!ne&&be.BF.isPrintableCharacter(te.key)&&this.searchItems(te,te.key)}}onArrowDownKey(te){const ne=-1!==this.focusedItemInfo().index?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(te,ne),te.preventDefault()}onArrowRightKey(te){const ne=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(ne)&&(this.onItemChange({originalEvent:te,processedItem:ne}),this.focusedItemInfo.set({index:-1,parentKey:ne.key,item:ne.item}),this.searchValue="",this.onArrowDownKey(te)),te.preventDefault()}onArrowUpKey(te){if(te.altKey){if(-1!==this.focusedItemInfo().index){const ne=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(ne)&&this.onItemChange({originalEvent:te,processedItem:ne})}this.hide(),te.preventDefault()}else{const ne=-1!==this.focusedItemInfo().index?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(te,ne),te.preventDefault()}}onArrowLeftKey(te){const ne=this.visibleItems[this.focusedItemInfo().index],ie=this.activeItemPath().find((te=>te.key===ne.parentKey));be.BF.isEmpty(ne.parent)||(this.focusedItemInfo.set({index:-1,parentKey:ie?ie.parentKey:"",item:ne.item}),this.searchValue="",this.onArrowDownKey(te));const re=this.activeItemPath().filter((te=>te.parentKey!==this.focusedItemInfo().parentKey));this.activeItemPath.set(re),te.preventDefault()}onHomeKey(te){this.changeFocusedItemIndex(te,this.findFirstItemIndex()),te.preventDefault()}onEndKey(te){this.changeFocusedItemIndex(te,this.findLastItemIndex()),te.preventDefault()}onSpaceKey(te){this.onEnterKey(te)}onEscapeKey(te){this.hide();const ne=this.findVisibleItem(this.findFirstFocusedItemIndex()),ie=this.focusedItemInfo();this.focusedItemInfo.set({...ie,index:this.findFirstFocusedItemIndex(),item:ne.item}),te.preventDefault()}onTabKey(te){if(-1!==this.focusedItemInfo().index){const ne=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(ne)&&this.onItemChange({originalEvent:te,processedItem:ne})}this.hide()}onEnterKey(te){if(-1!==this.focusedItemInfo().index){const te=me.D.findSingle(this.rootmenu.el.nativeElement,`li[id="${this.focusedItemId}"]`),ne=te&&me.D.findSingle(te,'a[data-pc-section="action"]');ne?ne.click():te&&te.click();const ie=this.visibleItems[this.focusedItemInfo().index];if(!this.isProccessedItemGroup(ie)){const te=this.focusedItemInfo();this.focusedItemInfo.set({...te,index:this.findFirstFocusedItemIndex()})}}te.preventDefault()}onItemChange(te){const{processedItem:ne,isFocus:ie}=te;if(be.BF.isEmpty(ne))return;const{index:re,key:le,level:ce,parentKey:de,items:ue}=ne,ge=be.BF.isNotEmpty(ue),fe=this.activeItemPath().filter((te=>te.parentKey!==de&&te.parentKey!==le));ge&&(fe.push(ne),this.submenuVisible.set(!0)),this.focusedItemInfo.set({index:re,level:ce,parentKey:de,item:ne.item}),this.activeItemPath.set(fe),ie&&me.D.focus(this.rootmenu.sublistViewChild.nativeElement)}onMenuFocus(te){this.focused=!0;const ne=-1!==this.focusedItemInfo().index?this.focusedItemInfo():{index:-1,level:0,parentKey:"",item:null};this.focusedItemInfo.set(ne)}onMenuBlur(te){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue=""}onOverlayAnimationStart(te){if("visible"===te.toState)this.container=te.element,this.position(),this.moveOnTop(),this.appendOverlay(),this.bindGlobalListeners(),me.D.focus(this.rootmenu.sublistViewChild.nativeElement)}onOverlayAnimationEnd(te){if("void"===te.toState)this.onOverlayHide()}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.containerViewChild.nativeElement):me.D.appendChild(this.containerViewChild.nativeElement,this.appendTo))}moveOnTop(){this.autoZIndex&&this.containerViewChild&&be.Q$.set("menu",this.containerViewChild.nativeElement,this.baseZIndex+this.config.zIndex.menu)}onOverlayHide(){this.unbindGlobalListeners(),this.cd.destroyed||(this.target=null),this.container&&this.autoZIndex&&be.Q$.clear(this.container),this.container=null}onTouchStart(te){this.pressTimer=setTimeout((()=>{this.show(te)}),this.pressDelay)}onTouchEnd(){clearTimeout(this.pressTimer)}hide(){this.visible.set(!1),this.onHide.emit(),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null})}toggle(te){this.visible()?this.hide():this.show(te)}show(te){this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.pageX=te.pageX,this.pageY=te.pageY,this.onShow.emit(),this.visible()?this.position():this.visible.set(!0),te.stopPropagation(),te.preventDefault()}position(){let te=this.pageX+1,ne=this.pageY+1,ie=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetWidth:me.D.getHiddenElementOuterWidth(this.containerViewChild.nativeElement),re=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetHeight:me.D.getHiddenElementOuterHeight(this.containerViewChild.nativeElement),le=me.D.getViewport();te+ie-this.document.scrollingElement.scrollLeft>le.width&&(te-=ie),ne+re-this.document.scrollingElement.scrollTop>le.height&&(ne-=re),te<this.document.scrollingElement.scrollLeft&&(te=this.document.scrollingElement.scrollLeft),ne<this.document.scrollingElement.scrollTop&&(ne=this.document.scrollingElement.scrollTop),this.containerViewChild.nativeElement.style.left=te+"px",this.containerViewChild.nativeElement.style.top=ne+"px"}searchItems(te,ne){this.searchValue=(this.searchValue||"")+ne;let ie=-1,re=!1;return-1!==this.focusedItemInfo().index?(ie=this.visibleItems.slice(this.focusedItemInfo().index).findIndex((te=>this.isItemMatched(te))),ie=-1===ie?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex((te=>this.isItemMatched(te))):ie+this.focusedItemInfo().index):ie=this.visibleItems.findIndex((te=>this.isItemMatched(te))),-1!==ie&&(re=!0),-1===ie&&-1===this.focusedItemInfo().index&&(ie=this.findFirstFocusedItemIndex()),-1!==ie&&this.changeFocusedItemIndex(te,ie),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((()=>{this.searchValue="",this.searchTimeout=null}),500),re}findVisibleItem(te){return be.BF.isNotEmpty(this.visibleItems)?this.visibleItems[te]:null}findLastFocusedItemIndex(){const te=this.findSelectedItemIndex();return te<0?this.findLastItemIndex():te}findLastItemIndex(){return be.BF.findLastIndex(this.visibleItems,(te=>this.isValidItem(te)))}findPrevItemIndex(te){const ne=te>0?be.BF.findLastIndex(this.visibleItems.slice(0,te),(te=>this.isValidItem(te))):-1;return ne>-1?ne:te}findNextItemIndex(te){const ne=te<this.visibleItems.length-1?this.visibleItems.slice(te+1).findIndex((te=>this.isValidItem(te))):-1;return ne>-1?ne+te+1:te}findFirstFocusedItemIndex(){const te=this.findSelectedItemIndex();return te<0?this.findFirstItemIndex():te}findFirstItemIndex(){return this.visibleItems.findIndex((te=>this.isValidItem(te)))}findSelectedItemIndex(){return this.visibleItems.findIndex((te=>this.isValidSelectedItem(te)))}changeFocusedItemIndex(te,ne){const ie=this.findVisibleItem(ne),re=this.focusedItemInfo();re.index!==ne&&(this.focusedItemInfo.set({...re,index:ne,item:ie.item}),this.scrollInView())}scrollInView(te=-1){const ne=-1!==te?`${this.id}_${te}`:this.focusedItemId,ie=me.D.findSingle(this.rootmenu.el.nativeElement,`li[id="${ne}"]`);ie&&ie.scrollIntoView&&ie.scrollIntoView({block:"nearest",inline:"nearest"})}bindResizeListener(){(0,le.UE)(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",(te=>{this.hide()}))))}isOutsideClicked(te){return!(this.containerViewChild.nativeElement.isSameNode(te.target)||this.containerViewChild.nativeElement.contains(te.target))}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindGlobalListeners(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null),this.documentTriggerListener&&(this.documentTriggerListener(),this.documentTriggerListener=null),this.resizeListener&&(this.resizeListener(),this.resizeListener=null),this.touchEndListener&&(this.touchEndListener(),this.touchEndListener=null)}unbindTriggerEventListener(){this.triggerEventListener&&(this.triggerEventListener(),this.triggerEventListener=null)}removeAppendedElements(){this.appendTo&&this.containerViewChild&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.containerViewChild.nativeElement):me.D.removeChild(this.containerViewChild.nativeElement,this.appendTo))}ngOnDestroy(){this.unbindGlobalListeners(),this.unbindTriggerEventListener(),this.removeAppendedElements()}static ɵfac=function ContextMenu_Factory(te){return new(te||ContextMenu)(ce.rXU(le.qQ),ce.rXU(ce.Agw),ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(ce.gRc),ce.rXU(ue.r1),ce.rXU(ue.si))};static ɵcmp=ce.VBU({type:ContextMenu,selectors:[["p-contextMenu"]],contentQueries:function ContextMenu_ContentQueries(te,ne,ie){if(1&te&&ce.wni(ie,ue.Ei,4),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.templates=te)}},viewQuery:function ContextMenu_Query(te,ne){if(1&te&&(ce.GBs(ye,5),ce.GBs(we,5)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.rootmenu=te.first),ce.mGM(te=ce.lsd())&&(ne.containerViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",triggerEvent:"triggerEvent",target:"target",global:[ce.Mj6.HasDecoratorInputTransform,"global","global",ce.L39],style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:[ce.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",ce.L39],baseZIndex:[ce.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",ce.Udg],id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",pressDelay:[ce.Mj6.HasDecoratorInputTransform,"pressDelay","pressDelay",ce.Udg]},outputs:{onShow:"onShow",onHide:"onHide"},features:[ce.GFd],decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"],["container",""],[3,"root","items","itemTemplate","menuId","tabindex","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","visible","focusedItemId","activeItemPath","itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter"],["rootmenu",""]],template:function ContextMenu_Template(te,ne){1&te&&ce.DNE(0,ContextMenu_div_0_Template,4,22,"div",0),2&te&&ce.Y8G("ngIf",ne.visible())},dependencies:[le.YU,le.bT,le.B3,ke],styles:["@layer primeng{.p-contextmenu{position:absolute}.p-contextmenu ul{margin:0;padding:0;list-style:none}.p-contextmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1}.p-contextmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-contextmenu .p-menuitem-text{line-height:1}.p-contextmenu .p-menuitem{position:relative}.p-contextmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-contextmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}}\n"],encapsulation:2,data:{animation:[(0,re.hZ)("overlayAnimation",[(0,re.kY)(":enter",[(0,re.iF)({opacity:0}),(0,re.i0)("250ms")]),(0,re.kY)(":leave",[(0,re.i0)(".1s linear",(0,re.iF)({opacity:0}))])])]},changeDetection:0})}return ContextMenu})(),xe=(()=>{class ContextMenuModule{static ɵfac=function ContextMenuModule_Factory(te){return new(te||ContextMenuModule)};static ɵmod=ce.$C({type:ContextMenuModule});static ɵinj=ce.G2t({imports:[le.MD,de.iI,fe.Z,_e.S,ge.D,ue.Gg,de.iI,_e.S,ue.Gg]})}return ContextMenuModule})()},344:(te,ne,ie)=>{"use strict";ie.d(ne,{P:()=>Le,l:()=>Re});var re=ie(1204),le=ie(4460),ce=ie(3107),de=ie(3828),ue=ie(5724),me=ie(777),ge=ie(239),fe=ie(9605),_e=ie(5311),be=ie(1646),Ce=ie(1939),ye=ie(7280);const we=["titlebar"],ke=["content"],Se=["footer"];function Dialog_div_0_div_1_ng_container_2_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}function Dialog_div_0_div_1_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Dialog_div_0_div_1_ng_container_2_ng_container_1_Template,1,0,"ng-container",7),ce.bVm()),2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.headlessTemplate)}}function Dialog_div_0_div_1_ng_template_3_div_0_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",13),ce.bIt("mousedown",(function Dialog_div_0_div_1_ng_template_3_div_0_Template_div_mousedown_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.initResize(ne))})),ce.k0s()}}function Dialog_div_0_div_1_ng_template_3_div_1_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",20),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(5);ce.Y8G("id",te.ariaLabelledBy),ce.R7$(),ce.JRh(te.header)}}function Dialog_div_0_div_1_ng_template_3_div_1_span_3_Template(te,ne){if(1&te&&(ce.j41(0,"span",20),ce.SdG(1,1),ce.k0s()),2&te){const te=ce.XpG(5);ce.Y8G("id",te.ariaLabelledBy)}}function Dialog_div_0_div_1_ng_template_3_div_1_ng_container_4_Template(te,ne){1&te&&ce.eu8(0)}function Dialog_div_0_div_1_ng_template_3_div_1_button_6_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",24),2&te){const te=ce.XpG(6);ce.Y8G("ngClass",te.maximized?te.minimizeIcon:te.maximizeIcon)}}function Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_2_WindowMaximizeIcon_1_Template(te,ne){1&te&&ce.nrm(0,"WindowMaximizeIcon",26),2&te&&ce.Y8G("styleClass","p-dialog-header-maximize-icon")}function Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_2_WindowMinimizeIcon_2_Template(te,ne){1&te&&ce.nrm(0,"WindowMinimizeIcon",26),2&te&&ce.Y8G("styleClass","p-dialog-header-maximize-icon")}function Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_2_WindowMaximizeIcon_1_Template,1,1,"WindowMaximizeIcon",25)(2,Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_2_WindowMinimizeIcon_2_Template,1,1,"WindowMinimizeIcon",25),ce.bVm()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngIf",!te.maximized&&!te.maximizeIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.maximized&&!te.minimizeIconTemplate)}}function Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_3_1_ng_template_0_Template(te,ne){}function Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_3_1_Template(te,ne){1&te&&ce.DNE(0,Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_3_1_ng_template_0_Template,0,0,"ng-template")}function Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_3_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_3_1_Template,1,0,null,7),ce.bVm()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.maximizeIconTemplate)}}function Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_4_1_ng_template_0_Template(te,ne){}function Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_4_1_Template(te,ne){1&te&&ce.DNE(0,Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_4_1_ng_template_0_Template,0,0,"ng-template")}function Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_4_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_4_1_Template,1,0,null,7),ce.bVm()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.minimizeIconTemplate)}}const _c3=()=>({"p-dialog-header-icon p-dialog-header-maximize p-link":!0});function Dialog_div_0_div_1_ng_template_3_div_1_button_6_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",21),ce.bIt("click",(function Dialog_div_0_div_1_ng_template_3_div_1_button_6_Template_button_click_0_listener(){ce.eBV(te);const ne=ce.XpG(5);return ce.Njj(ne.maximize())}))("keydown.enter",(function Dialog_div_0_div_1_ng_template_3_div_1_button_6_Template_button_keydown_enter_0_listener(){ce.eBV(te);const ne=ce.XpG(5);return ce.Njj(ne.maximize())})),ce.DNE(1,Dialog_div_0_div_1_ng_template_3_div_1_button_6_span_1_Template,1,1,"span",22)(2,Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_2_Template,3,2,"ng-container",23)(3,Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_3_Template,2,1,"ng-container",23)(4,Dialog_div_0_div_1_ng_template_3_div_1_button_6_ng_container_4_Template,2,1,"ng-container",23),ce.k0s()}if(2&te){const te=ce.XpG(5);ce.Y8G("ngClass",ce.lJ4(7,_c3)),ce.BMQ("tabindex",te.maximizable?"0":"-1")("aria-label",te.maximizeLabel),ce.R7$(),ce.Y8G("ngIf",te.maximizeIcon&&!te.maximizeIconTemplate&&!te.minimizeIconTemplate),ce.R7$(),ce.Y8G("ngIf",!te.maximizeIcon),ce.R7$(),ce.Y8G("ngIf",!te.maximized),ce.R7$(),ce.Y8G("ngIf",te.maximized)}}function Dialog_div_0_div_1_ng_template_3_div_1_button_7_ng_container_1_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",29),2&te){const te=ce.XpG(7);ce.Y8G("ngClass",te.closeIcon)}}function Dialog_div_0_div_1_ng_template_3_div_1_button_7_ng_container_1_TimesIcon_2_Template(te,ne){1&te&&ce.nrm(0,"TimesIcon",26),2&te&&ce.Y8G("styleClass","p-dialog-header-close-icon")}function Dialog_div_0_div_1_ng_template_3_div_1_button_7_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Dialog_div_0_div_1_ng_template_3_div_1_button_7_ng_container_1_span_1_Template,1,1,"span",28)(2,Dialog_div_0_div_1_ng_template_3_div_1_button_7_ng_container_1_TimesIcon_2_Template,1,1,"TimesIcon",25),ce.bVm()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngIf",te.closeIcon),ce.R7$(),ce.Y8G("ngIf",!te.closeIcon)}}function Dialog_div_0_div_1_ng_template_3_div_1_button_7_span_2_1_ng_template_0_Template(te,ne){}function Dialog_div_0_div_1_ng_template_3_div_1_button_7_span_2_1_Template(te,ne){1&te&&ce.DNE(0,Dialog_div_0_div_1_ng_template_3_div_1_button_7_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Dialog_div_0_div_1_ng_template_3_div_1_button_7_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span"),ce.DNE(1,Dialog_div_0_div_1_ng_template_3_div_1_button_7_span_2_1_Template,1,0,null,7),ce.k0s()),2&te){const te=ce.XpG(6);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.closeIconTemplate)}}const _c4=()=>({"p-dialog-header-icon p-dialog-header-close p-link":!0}),_c5=()=>({"min-width":0});function Dialog_div_0_div_1_ng_template_3_div_1_button_7_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",27),ce.bIt("click",(function Dialog_div_0_div_1_ng_template_3_div_1_button_7_Template_button_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(5);return ce.Njj(ie.close(ne))}))("keydown.enter",(function Dialog_div_0_div_1_ng_template_3_div_1_button_7_Template_button_keydown_enter_0_listener(ne){ce.eBV(te);const ie=ce.XpG(5);return ce.Njj(ie.close(ne))})),ce.DNE(1,Dialog_div_0_div_1_ng_template_3_div_1_button_7_ng_container_1_Template,3,2,"ng-container",23)(2,Dialog_div_0_div_1_ng_template_3_div_1_button_7_span_2_Template,2,1,"span",23),ce.k0s()}if(2&te){const te=ce.XpG(5);ce.Y8G("ngClass",ce.lJ4(6,_c4))("ngStyle",ce.lJ4(7,_c5)),ce.BMQ("aria-label",te.closeAriaLabel)("tabindex",te.closeTabindex),ce.R7$(),ce.Y8G("ngIf",!te.closeIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.closeIconTemplate)}}function Dialog_div_0_div_1_ng_template_3_div_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",14,15),ce.bIt("mousedown",(function Dialog_div_0_div_1_ng_template_3_div_1_Template_div_mousedown_0_listener(ne){ce.eBV(te);const ie=ce.XpG(4);return ce.Njj(ie.initDrag(ne))})),ce.DNE(2,Dialog_div_0_div_1_ng_template_3_div_1_span_2_Template,2,2,"span",16)(3,Dialog_div_0_div_1_ng_template_3_div_1_span_3_Template,2,1,"span",16)(4,Dialog_div_0_div_1_ng_template_3_div_1_ng_container_4_Template,1,0,"ng-container",7),ce.j41(5,"div",17),ce.DNE(6,Dialog_div_0_div_1_ng_template_3_div_1_button_6_Template,5,8,"button",18)(7,Dialog_div_0_div_1_ng_template_3_div_1_button_7_Template,3,8,"button",19),ce.k0s()()}if(2&te){const te=ce.XpG(4);ce.R7$(2),ce.Y8G("ngIf",!te.headerFacet&&!te.headerTemplate),ce.R7$(),ce.Y8G("ngIf",te.headerFacet),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.headerTemplate),ce.R7$(2),ce.Y8G("ngIf",te.maximizable),ce.R7$(),ce.Y8G("ngIf",te.closable)}}function Dialog_div_0_div_1_ng_template_3_ng_container_5_Template(te,ne){1&te&&ce.eu8(0)}function Dialog_div_0_div_1_ng_template_3_div_6_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function Dialog_div_0_div_1_ng_template_3_div_6_Template(te,ne){if(1&te&&(ce.j41(0,"div",30,31),ce.SdG(2,2),ce.DNE(3,Dialog_div_0_div_1_ng_template_3_div_6_ng_container_3_Template,1,0,"ng-container",7),ce.k0s()),2&te){const te=ce.XpG(4);ce.R7$(3),ce.Y8G("ngTemplateOutlet",te.footerTemplate)}}function Dialog_div_0_div_1_ng_template_3_Template(te,ne){if(1&te&&(ce.DNE(0,Dialog_div_0_div_1_ng_template_3_div_0_Template,1,0,"div",8)(1,Dialog_div_0_div_1_ng_template_3_div_1_Template,8,5,"div",9),ce.j41(2,"div",10,11),ce.SdG(4),ce.DNE(5,Dialog_div_0_div_1_ng_template_3_ng_container_5_Template,1,0,"ng-container",7),ce.k0s(),ce.DNE(6,Dialog_div_0_div_1_ng_template_3_div_6_Template,4,1,"div",12)),2&te){const te=ce.XpG(3);ce.Y8G("ngIf",te.resizable),ce.R7$(),ce.Y8G("ngIf",te.showHeader),ce.R7$(),ce.HbH(te.contentStyleClass),ce.Y8G("ngClass","p-dialog-content")("ngStyle",te.contentStyle),ce.R7$(3),ce.Y8G("ngTemplateOutlet",te.contentTemplate),ce.R7$(),ce.Y8G("ngIf",te.footerFacet||te.footerTemplate)}}const _c6=(te,ne,ie,re)=>({"p-dialog p-component":!0,"p-dialog-rtl":te,"p-dialog-draggable":ne,"p-dialog-resizable":ie,"p-dialog-maximized":re}),_c7=(te,ne)=>({transform:te,transition:ne}),_c8=te=>({value:"visible",params:te});function Dialog_div_0_div_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",3,4),ce.bIt("@animation.start",(function Dialog_div_0_div_1_Template_div_animation_animation_start_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onAnimationStart(ne))}))("@animation.done",(function Dialog_div_0_div_1_Template_div_animation_animation_done_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onAnimationEnd(ne))})),ce.DNE(2,Dialog_div_0_div_1_ng_container_2_Template,2,1,"ng-container",5)(3,Dialog_div_0_div_1_ng_template_3_Template,7,8,"ng-template",null,6,ce.C5r),ce.k0s()}if(2&te){const te=ce.sdS(4),ne=ce.XpG(2);ce.HbH(ne.styleClass),ce.Y8G("ngClass",ce.ziG(10,_c6,ne.rtl,ne.draggable,ne.resizable,ne.maximized))("ngStyle",ne.style)("pFocusTrapDisabled",!1===ne.focusTrap)("@animation",ce.eq3(18,_c8,ce.l_i(15,_c7,ne.transformOptions,ne.transitionOptions))),ce.BMQ("aria-labelledby",ne.ariaLabelledBy)("aria-modal",!0),ce.R7$(2),ce.Y8G("ngIf",ne.headlessTemplate)("ngIfElse",te)}}const _c9=(te,ne,ie,re,le,ce,de,ue,me,ge)=>({"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":te,"p-dialog-mask-scrollblocker":ne,"p-dialog-left":ie,"p-dialog-right":re,"p-dialog-top":le,"p-dialog-top-left":ce,"p-dialog-top-right":de,"p-dialog-bottom":ue,"p-dialog-bottom-left":me,"p-dialog-bottom-right":ge});function Dialog_div_0_Template(te,ne){if(1&te&&(ce.j41(0,"div",1),ce.DNE(1,Dialog_div_0_div_1_Template,5,20,"div",2),ce.k0s()),2&te){const te=ce.XpG();ce.HbH(te.maskStyleClass),ce.Y8G("ngStyle",te.maskStyle)("ngClass",ce.zJS(5,_c9,[te.modal,te.modal||te.blockScroll,"left"===te.position,"right"===te.position,"top"===te.position,"topleft"===te.position||"top-left"===te.position,"topright"===te.position||"top-right"===te.position,"bottom"===te.position,"bottomleft"===te.position||"bottom-left"===te.position,"bottomright"===te.position||"bottom-right"===te.position])),ce.R7$(),ce.Y8G("ngIf",te.visible)}}const xe=["*",[["p-header"]],[["p-footer"]]],Ee=["*","p-header","p-footer"],Me=(0,re.lY)([(0,re.iF)({transform:"{{transform}}",opacity:0}),(0,re.i0)("{{transition}}")]),Ne=(0,re.lY)([(0,re.i0)("{{transition}}",(0,re.iF)({transform:"{{transform}}",opacity:0}))]);let Re=(()=>{class Dialog{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(te){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(te){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(te){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;get breakpoint(){return 649}set breakpoint(te){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(te){this._visible=te,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(te){te&&(this._style={...te},this.originalStyle=te)}get position(){return this._position}set position(te){switch(this._position=te,te){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}onShow=new ce.bkB;onHide=new ce.bkB;visibleChange=new ce.bkB;onResizeInit=new ce.bkB;onResizeEnd=new ce.bkB;onDragEnd=new ce.bkB;onMaximize=new ce.bkB;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;headlessTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=(0,Ce._Y)();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;get maximizeLabel(){return this.config.getTranslation(de.Yj.ARIA).maximizeLabel}constructor(te,ne,ie,re,le,ce,de){this.document=te,this.platformId=ne,this.el=ie,this.renderer=re,this.zone=le,this.cd=ce,this.config=de,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach((te=>{switch(te.getType()){case"header":this.headerTemplate=te.template;break;case"content":default:this.contentTemplate=te.template;break;case"footer":this.footerTemplate=te.template;break;case"closeicon":this.closeIconTemplate=te.template;break;case"maximizeicon":this.maximizeIconTemplate=te.template;break;case"minimizeicon":this.minimizeIconTemplate=te.template;break;case"headless":this.headlessTemplate=te.template}}))}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return null!==this.header?(0,Ce._Y)()+"_header":null}parseDurationToMilliseconds(te){const ne=/([\d\.]+)(ms|s)\b/g;let ie,re=0;for(;null!==(ie=ne.exec(te));){const te=parseFloat(ie[1]),ne=ie[2];"ms"===ne?re+=te:"s"===ne&&(re+=1e3*te)}if(0!==re)return re}focus(te=this.contentViewChild?.nativeElement){const ne=this.parseDurationToMilliseconds(this.transitionOptions);let ie=ue.D.getFocusableElement(te,"[autofocus]");if(ie)return void this.zone.runOutsideAngular((()=>{setTimeout((()=>ie.focus()),ne||5)}));const re=ue.D.getFocusableElement(te);re?this.zone.runOutsideAngular((()=>{setTimeout((()=>re.focus()),ne||5)})):this.footerViewChild&&te!==this.footerViewChild.nativeElement&&this.focus(this.footerViewChild.nativeElement)}close(te){this.visibleChange.emit(!1),te.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",(te=>{this.wrapper&&this.wrapper.isSameNode(te.target)&&this.close(te)}))),this.modal&&ue.D.blockBodyScroll()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();const te=document.querySelectorAll(".p-dialog-mask-scrollblocker");this.modal&&te&&1==te.length&&ue.D.unblockBodyScroll(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,this.modal||this.blockScroll||(this.maximized?ue.D.blockBodyScroll():ue.D.unblockBodyScroll()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Ce.Q$.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if((0,le.UE)(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",ue.D.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let te="";for(let ne in this.breakpoints)te+=`\n                        @media screen and (max-width: ${ne}) {\n                            .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n                                width: ${this.breakpoints[ne]} !important;\n                            }\n                        }\n                    `;this.renderer.setProperty(this.styleElement,"innerHTML",te)}}initDrag(te){ue.D.hasClass(te.target,"p-dialog-header-icon")||ue.D.hasClass(te.target,"p-dialog-header-close-icon")||ue.D.hasClass(te.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=te.pageX,this.lastPageY=te.pageY,this.container.style.margin="0",ue.D.addClass(this.document.body,"p-unselectable-text"))}onDrag(te){if(this.dragging){const ne=ue.D.getOuterWidth(this.container),ie=ue.D.getOuterHeight(this.container),re=te.pageX-this.lastPageX,le=te.pageY-this.lastPageY,ce=this.container.getBoundingClientRect(),de=getComputedStyle(this.container),me=parseFloat(de.marginLeft),ge=parseFloat(de.marginTop),fe=ce.left+re-me,_e=ce.top+le-ge,be=ue.D.getViewport();this.container.style.position="fixed",this.keepInViewport?(fe>=this.minX&&fe+ne<be.width&&(this._style.left=`${fe}px`,this.lastPageX=te.pageX,this.container.style.left=`${fe}px`),_e>=this.minY&&_e+ie<be.height&&(this._style.top=`${_e}px`,this.lastPageY=te.pageY,this.container.style.top=`${_e}px`)):(this.lastPageX=te.pageX,this.container.style.left=`${fe}px`,this.lastPageY=te.pageY,this.container.style.top=`${_e}px`)}}endDrag(te){this.dragging&&(this.dragging=!1,ue.D.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(te))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(te){this.resizable&&(this.resizing=!0,this.lastPageX=te.pageX,this.lastPageY=te.pageY,ue.D.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(te))}onResize(te){if(this.resizing){let ne=te.pageX-this.lastPageX,ie=te.pageY-this.lastPageY,re=ue.D.getOuterWidth(this.container),le=ue.D.getOuterHeight(this.container),ce=ue.D.getOuterHeight(this.contentViewChild?.nativeElement),de=re+ne,me=le+ie,ge=this.container.style.minWidth,fe=this.container.style.minHeight,_e=this.container.getBoundingClientRect(),be=ue.D.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(de+=ne,me+=ie),(!ge||de>parseInt(ge))&&_e.left+de<be.width&&(this._style.width=de+"px",this.container.style.width=this._style.width),(!fe||me>parseInt(fe))&&_e.top+me<be.height&&(this.contentViewChild.nativeElement.style.height=ce+me-le+"px",this._style.height&&(this._style.height=me+"px",this.container.style.height=this._style.height)),this.lastPageX=te.pageX,this.lastPageY=te.pageY}}resizeEnd(te){this.resizing&&(this.resizing=!1,ue.D.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(te))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular((()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))}))}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular((()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))}))}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){this.documentResizeListener||this.documentResizeEndListener||this.zone.runOutsideAngular((()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))}))}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){const te=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(te,"keydown",(te=>{"Escape"==te.key&&this.close(te)}))}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.wrapper):ue.D.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(te){switch(te.toState){case"visible":this.container=te.element,this.wrapper=this.container?.parentElement,this.moveOnTop(),this.appendContainer(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&ue.D.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&ue.D.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(te){switch(te.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(ue.D.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&ue.D.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Ce.Q$.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static ɵfac=function Dialog_Factory(te){return new(te||Dialog)(ce.rXU(le.qQ),ce.rXU(ce.Agw),ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(ce.SKi),ce.rXU(ce.gRc),ce.rXU(de.r1))};static ɵcmp=ce.VBU({type:Dialog,selectors:[["p-dialog"]],contentQueries:function Dialog_ContentQueries(te,ne,ie){if(1&te&&(ce.wni(ie,de.Y9,5),ce.wni(ie,de.wi,5),ce.wni(ie,de.Ei,4)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.headerFacet=te.first),ce.mGM(te=ce.lsd())&&(ne.footerFacet=te.first),ce.mGM(te=ce.lsd())&&(ne.templates=te)}},viewQuery:function Dialog_Query(te,ne){if(1&te&&(ce.GBs(we,5),ce.GBs(ke,5),ce.GBs(Se,5)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.headerViewChild=te.first),ce.mGM(te=ce.lsd())&&(ne.contentViewChild=te.first),ce.mGM(te=ce.lsd())&&(ne.footerViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:[ce.Mj6.HasDecoratorInputTransform,"draggable","draggable",ce.L39],resizable:[ce.Mj6.HasDecoratorInputTransform,"resizable","resizable",ce.L39],positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[ce.Mj6.HasDecoratorInputTransform,"modal","modal",ce.L39],closeOnEscape:[ce.Mj6.HasDecoratorInputTransform,"closeOnEscape","closeOnEscape",ce.L39],dismissableMask:[ce.Mj6.HasDecoratorInputTransform,"dismissableMask","dismissableMask",ce.L39],rtl:[ce.Mj6.HasDecoratorInputTransform,"rtl","rtl",ce.L39],closable:[ce.Mj6.HasDecoratorInputTransform,"closable","closable",ce.L39],responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[ce.Mj6.HasDecoratorInputTransform,"showHeader","showHeader",ce.L39],breakpoint:"breakpoint",blockScroll:[ce.Mj6.HasDecoratorInputTransform,"blockScroll","blockScroll",ce.L39],autoZIndex:[ce.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",ce.L39],baseZIndex:[ce.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",ce.Udg],minX:[ce.Mj6.HasDecoratorInputTransform,"minX","minX",ce.Udg],minY:[ce.Mj6.HasDecoratorInputTransform,"minY","minY",ce.Udg],focusOnShow:[ce.Mj6.HasDecoratorInputTransform,"focusOnShow","focusOnShow",ce.L39],maximizable:[ce.Mj6.HasDecoratorInputTransform,"maximizable","maximizable",ce.L39],keepInViewport:[ce.Mj6.HasDecoratorInputTransform,"keepInViewport","keepInViewport",ce.L39],focusTrap:[ce.Mj6.HasDecoratorInputTransform,"focusTrap","focusTrap",ce.L39],transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[ce.GFd],ngContentSelectors:Ee,decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],[4,"ngIf","ngIfElse"],["notHeadless",""],[4,"ngTemplateOutlet"],["class","p-resizable-handle",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","pRipple","","pButton","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","","pButton","",3,"ngClass","ngStyle","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","pRipple","","pButton","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","","pButton","",3,"ngClass","ngStyle","click","keydown.enter"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function Dialog_Template(te,ne){1&te&&(ce.NAR(xe),ce.DNE(0,Dialog_div_0_Template,2,16,"div",0)),2&te&&ce.Y8G("ngIf",ne.maskVisible)},dependencies:()=>[le.YU,le.bT,le.T3,le.B3,me.s,ye._f,be.n,ge.A,fe.Y,_e.o],styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[(0,re.hZ)("animation",[(0,re.kY)("void => visible",[(0,re.sM)(Me)]),(0,re.kY)("visible => void",[(0,re.sM)(Ne)])])]},changeDetection:0})}return Dialog})(),Le=(()=>{class DialogModule{static ɵfac=function DialogModule_Factory(te){return new(te||DialogModule)};static ɵmod=ce.$C({type:DialogModule});static ɵinj=ce.G2t({imports:[le.MD,me.A,ye.tm,be.Z,ge.A,fe.Y,_e.o,de.Gg]})}return DialogModule})()},5724:(te,ne,ie)=>{"use strict";ie.d(ne,{D:()=>re,b:()=>ConnectedOverlayScrollHandler});let re=(()=>{class DomHandler{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(te,ne){te&&ne&&(te.classList?te.classList.add(ne):te.className+=" "+ne)}static addMultipleClasses(te,ne){if(te&&ne)if(te.classList){let ie=ne.trim().split(" ");for(let ne=0;ne<ie.length;ne++)te.classList.add(ie[ne])}else{let ie=ne.split(" ");for(let ne=0;ne<ie.length;ne++)te.className+=" "+ie[ne]}}static removeClass(te,ne){te&&ne&&(te.classList?te.classList.remove(ne):te.className=te.className.replace(new RegExp("(^|\\b)"+ne.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(te,ne){te&&ne&&[ne].flat().filter(Boolean).forEach((ne=>ne.split(" ").forEach((ne=>this.removeClass(te,ne)))))}static hasClass(te,ne){return!(!te||!ne)&&(te.classList?te.classList.contains(ne):new RegExp("(^| )"+ne+"( |$)","gi").test(te.className))}static siblings(te){return Array.prototype.filter.call(te.parentNode.children,(function(ne){return ne!==te}))}static find(te,ne){return Array.from(te.querySelectorAll(ne))}static findSingle(te,ne){return this.isElement(te)?te.querySelector(ne):null}static index(te){let ne=te.parentNode.childNodes,ie=0;for(var re=0;re<ne.length;re++){if(ne[re]==te)return ie;1==ne[re].nodeType&&ie++}return-1}static indexWithinGroup(te,ne){let ie=te.parentNode?te.parentNode.childNodes:[],re=0;for(var le=0;le<ie.length;le++){if(ie[le]==te)return re;ie[le].attributes&&ie[le].attributes[ne]&&1==ie[le].nodeType&&re++}return-1}static appendOverlay(te,ne,ie="self"){"self"!==ie&&te&&ne&&this.appendChild(te,ne)}static alignOverlay(te,ne,ie="self",re=!0){te&&ne&&(re&&(te.style.minWidth=`${DomHandler.getOuterWidth(ne)}px`),"self"===ie?this.relativePosition(te,ne):this.absolutePosition(te,ne))}static relativePosition(te,ne,ie=!0){const getClosestRelativeElement=te=>{if(te)return"relative"===getComputedStyle(te).getPropertyValue("position")?te:getClosestRelativeElement(te.parentElement)},re=te.offsetParent?{width:te.offsetWidth,height:te.offsetHeight}:this.getHiddenElementDimensions(te),le=ne.offsetHeight??ne.getBoundingClientRect().height,ce=ne.getBoundingClientRect(),de=this.getWindowScrollTop(),ue=this.getWindowScrollLeft(),me=this.getViewport(),ge=getClosestRelativeElement(te),fe=ge?.getBoundingClientRect()||{top:-1*de,left:-1*ue};let _e,be;ce.top+le+re.height>me.height?(_e=ce.top-fe.top-re.height,te.style.transformOrigin="bottom",ce.top+_e<0&&(_e=-1*ce.top)):(_e=le+ce.top-fe.top,te.style.transformOrigin="top");const Ce=ce.left+re.width-me.width,ye=ce.left-fe.left;be=re.width>me.width?-1*(ce.left-fe.left):Ce>0?ye-Ce:ce.left-fe.left,te.style.top=_e+"px",te.style.left=be+"px",ie&&(te.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(te,ne,ie=!0){const re=te.offsetParent?{width:te.offsetWidth,height:te.offsetHeight}:this.getHiddenElementDimensions(te),le=re.height,ce=re.width,de=ne.offsetHeight??ne.getBoundingClientRect().height,ue=ne.offsetWidth??ne.getBoundingClientRect().width,me=ne.getBoundingClientRect(),ge=this.getWindowScrollTop(),fe=this.getWindowScrollLeft(),_e=this.getViewport();let be,Ce;me.top+de+le>_e.height?(be=me.top+ge-le,te.style.transformOrigin="bottom",be<0&&(be=ge)):(be=de+me.top+ge,te.style.transformOrigin="top"),Ce=me.left+ce>_e.width?Math.max(0,me.left+fe+ue-ce):me.left+fe,te.style.top=be+"px",te.style.left=Ce+"px",ie&&(te.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(te,ne=[]){return null===te.parentNode?ne:this.getParents(te.parentNode,ne.concat([te.parentNode]))}static getScrollableParents(te){let ne=[];if(te){let ie=this.getParents(te);const re=/(auto|scroll)/,overflowCheck=te=>{let ne=window.getComputedStyle(te,null);return re.test(ne.getPropertyValue("overflow"))||re.test(ne.getPropertyValue("overflowX"))||re.test(ne.getPropertyValue("overflowY"))};for(let te of ie){let ie=1===te.nodeType&&te.dataset.scrollselectors;if(ie){let re=ie.split(",");for(let ie of re){let re=this.findSingle(te,ie);re&&overflowCheck(re)&&ne.push(re)}}9!==te.nodeType&&overflowCheck(te)&&ne.push(te)}}return ne}static getHiddenElementOuterHeight(te){te.style.visibility="hidden",te.style.display="block";let ne=te.offsetHeight;return te.style.display="none",te.style.visibility="visible",ne}static getHiddenElementOuterWidth(te){te.style.visibility="hidden",te.style.display="block";let ne=te.offsetWidth;return te.style.display="none",te.style.visibility="visible",ne}static getHiddenElementDimensions(te){let ne={};return te.style.visibility="hidden",te.style.display="block",ne.width=te.offsetWidth,ne.height=te.offsetHeight,te.style.display="none",te.style.visibility="visible",ne}static scrollInView(te,ne){let ie=getComputedStyle(te).getPropertyValue("borderTopWidth"),re=ie?parseFloat(ie):0,le=getComputedStyle(te).getPropertyValue("paddingTop"),ce=le?parseFloat(le):0,de=te.getBoundingClientRect(),ue=ne.getBoundingClientRect().top+document.body.scrollTop-(de.top+document.body.scrollTop)-re-ce,me=te.scrollTop,ge=te.clientHeight,fe=this.getOuterHeight(ne);ue<0?te.scrollTop=me+ue:ue+fe>ge&&(te.scrollTop=me+ue-ge+fe)}static fadeIn(te,ne){te.style.opacity=0;let ie=+new Date,re=0,tick=function(){re=+te.style.opacity.replace(",",".")+((new Date).getTime()-ie)/ne,te.style.opacity=re,ie=+new Date,+re<1&&(window.requestAnimationFrame&&requestAnimationFrame(tick)||setTimeout(tick,16))};tick()}static fadeOut(te,ne){var ie=1,re=50/ne;let le=setInterval((()=>{(ie-=re)<=0&&(ie=0,clearInterval(le)),te.style.opacity=ie}),50)}static getWindowScrollTop(){let te=document.documentElement;return(window.pageYOffset||te.scrollTop)-(te.clientTop||0)}static getWindowScrollLeft(){let te=document.documentElement;return(window.pageXOffset||te.scrollLeft)-(te.clientLeft||0)}static matches(te,ne){var ie=Element.prototype;return(ie.matches||ie.webkitMatchesSelector||ie.mozMatchesSelector||ie.msMatchesSelector||function(te){return-1!==[].indexOf.call(document.querySelectorAll(te),this)}).call(te,ne)}static getOuterWidth(te,ne){let ie=te.offsetWidth;if(ne){let ne=getComputedStyle(te);ie+=parseFloat(ne.marginLeft)+parseFloat(ne.marginRight)}return ie}static getHorizontalPadding(te){let ne=getComputedStyle(te);return parseFloat(ne.paddingLeft)+parseFloat(ne.paddingRight)}static getHorizontalMargin(te){let ne=getComputedStyle(te);return parseFloat(ne.marginLeft)+parseFloat(ne.marginRight)}static innerWidth(te){let ne=te.offsetWidth,ie=getComputedStyle(te);return ne+=parseFloat(ie.paddingLeft)+parseFloat(ie.paddingRight),ne}static width(te){let ne=te.offsetWidth,ie=getComputedStyle(te);return ne-=parseFloat(ie.paddingLeft)+parseFloat(ie.paddingRight),ne}static getInnerHeight(te){let ne=te.offsetHeight,ie=getComputedStyle(te);return ne+=parseFloat(ie.paddingTop)+parseFloat(ie.paddingBottom),ne}static getOuterHeight(te,ne){let ie=te.offsetHeight;if(ne){let ne=getComputedStyle(te);ie+=parseFloat(ne.marginTop)+parseFloat(ne.marginBottom)}return ie}static getHeight(te){let ne=te.offsetHeight,ie=getComputedStyle(te);return ne-=parseFloat(ie.paddingTop)+parseFloat(ie.paddingBottom)+parseFloat(ie.borderTopWidth)+parseFloat(ie.borderBottomWidth),ne}static getWidth(te){let ne=te.offsetWidth,ie=getComputedStyle(te);return ne-=parseFloat(ie.paddingLeft)+parseFloat(ie.paddingRight)+parseFloat(ie.borderLeftWidth)+parseFloat(ie.borderRightWidth),ne}static getViewport(){let te=window,ne=document,ie=ne.documentElement,re=ne.getElementsByTagName("body")[0];return{width:te.innerWidth||ie.clientWidth||re.clientWidth,height:te.innerHeight||ie.clientHeight||re.clientHeight}}static getOffset(te){var ne=te.getBoundingClientRect();return{top:ne.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:ne.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(te,ne){let ie=te.parentNode;if(!ie)throw"Can't replace element";return ie.replaceChild(ne,te)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var te=window.navigator.userAgent;if(te.indexOf("MSIE ")>0)return!0;if(te.indexOf("Trident/")>0){te.indexOf("rv:");return!0}return te.indexOf("Edge/")>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(te,ne){if(this.isElement(ne))ne.appendChild(te);else{if(!(ne&&ne.el&&ne.el.nativeElement))throw"Cannot append "+ne+" to "+te;ne.el.nativeElement.appendChild(te)}}static removeChild(te,ne){if(this.isElement(ne))ne.removeChild(te);else{if(!ne.el||!ne.el.nativeElement)throw"Cannot remove "+te+" from "+ne;ne.el.nativeElement.removeChild(te)}}static removeElement(te){"remove"in Element.prototype?te.remove():te.parentNode.removeChild(te)}static isElement(te){return"object"==typeof HTMLElement?te instanceof HTMLElement:te&&"object"==typeof te&&null!==te&&1===te.nodeType&&"string"==typeof te.nodeName}static calculateScrollbarWidth(te){if(te){let ne=getComputedStyle(te);return te.offsetWidth-te.clientWidth-parseFloat(ne.borderLeftWidth)-parseFloat(ne.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let te=document.createElement("div");te.className="p-scrollbar-measure",document.body.appendChild(te);let ne=te.offsetWidth-te.clientWidth;return document.body.removeChild(te),this.calculatedScrollbarWidth=ne,ne}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let te=document.createElement("div");te.className="p-scrollbar-measure",document.body.appendChild(te);let ne=te.offsetHeight-te.clientHeight;return document.body.removeChild(te),this.calculatedScrollbarWidth=ne,ne}static invokeElementMethod(te,ne,ie){te[ne].apply(te,ie)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(te){}}static getBrowser(){if(!this.browser){let te=this.resolveUserAgent();this.browser={},te.browser&&(this.browser[te.browser]=!0,this.browser.version=te.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let te=navigator.userAgent.toLowerCase(),ne=/(chrome)[ \/]([\w.]+)/.exec(te)||/(webkit)[ \/]([\w.]+)/.exec(te)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(te)||/(msie) ([\w.]+)/.exec(te)||te.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(te)||[];return{browser:ne[1]||"",version:ne[2]||"0"}}static isInteger(te){return Number.isInteger?Number.isInteger(te):"number"==typeof te&&isFinite(te)&&Math.floor(te)===te}static isHidden(te){return!te||null===te.offsetParent}static isVisible(te){return te&&null!=te.offsetParent}static isExist(te){return null!=te&&te.nodeName&&te.parentNode}static focus(te,ne){te&&document.activeElement!==te&&te.focus(ne)}static getFocusableSelectorString(te=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${te},\n        [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${te},\n        input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${te},\n        select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${te},\n        textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${te},\n        [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${te},\n        [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${te},\n        .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${te},\n        .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${te}`}static getFocusableElements(te,ne=""){let ie=this.find(te,this.getFocusableSelectorString(ne)),re=[];for(let te of ie){const ne=getComputedStyle(te);this.isVisible(te)&&"none"!=ne.display&&"hidden"!=ne.visibility&&re.push(te)}return re}static getFocusableElement(te,ne=""){let ie=this.findSingle(te,this.getFocusableSelectorString(ne));if(ie){const te=getComputedStyle(ie);if(this.isVisible(ie)&&"none"!=te.display&&"hidden"!=te.visibility)return ie}return null}static getFirstFocusableElement(te,ne=""){const ie=this.getFocusableElements(te,ne);return ie.length>0?ie[0]:null}static getLastFocusableElement(te,ne){const ie=this.getFocusableElements(te,ne);return ie.length>0?ie[ie.length-1]:null}static getNextFocusableElement(te,ne=!1){const ie=DomHandler.getFocusableElements(te);let re=0;if(ie&&ie.length>0){const te=ie.indexOf(ie[0].ownerDocument.activeElement);ne?re=-1==te||0===te?ie.length-1:te-1:-1!=te&&te!==ie.length-1&&(re=te+1)}return ie[re]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(te,ne){if(!te)return null;switch(te){case"document":return document;case"window":return window;case"@next":return ne?.nextElementSibling;case"@prev":return ne?.previousElementSibling;case"@parent":return ne?.parentElement;case"@grandparent":return ne?.parentElement.parentElement;default:const ie=typeof te;if("string"===ie)return document.querySelector(te);if("object"===ie&&te.hasOwnProperty("nativeElement"))return this.isExist(te.nativeElement)?te.nativeElement:void 0;const re=(te=>!!(te&&te.constructor&&te.call&&te.apply))(te)?te():te;return re&&9===re.nodeType||this.isExist(re)?re:null}}static isClient(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}static getAttribute(te,ne){if(te){const ie=te.getAttribute(ne);return isNaN(ie)?"true"===ie||"false"===ie?"true"===ie:ie:+ie}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(te="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,te)}static unblockBodyScroll(te="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,te)}static createElement(te,ne={},...ie){if(te){const re=document.createElement(te);return this.setAttributes(re,ne),re.append(...ie),re}}static setAttribute(te,ne="",ie){this.isElement(te)&&null!=ie&&te.setAttribute(ne,ie)}static setAttributes(te,ne={}){if(this.isElement(te)){const computedStyles=(ne,ie)=>{const re=te?.$attrs?.[ne]?[te?.$attrs?.[ne]]:[];return[ie].flat().reduce(((te,ie)=>{if(null!=ie){const re=typeof ie;if("string"===re||"number"===re)te.push(ie);else if("object"===re){const re=Array.isArray(ie)?computedStyles(ne,ie):Object.entries(ie).map((([te,ie])=>"style"!==ne||!ie&&0!==ie?ie?te:void 0:`${te.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${ie}`));te=re.length?te.concat(re.filter((te=>!!te))):te}}return te}),re)};Object.entries(ne).forEach((([ne,ie])=>{if(null!=ie){const re=ne.match(/^on(.+)/);re?te.addEventListener(re[1].toLowerCase(),ie):"pBind"===ne?this.setAttributes(te,ie):(ie="class"===ne?[...new Set(computedStyles("class",ie))].join(" ").trim():"style"===ne?computedStyles("style",ie).join(";").trim():ie,(te.$attrs=te.$attrs||{})&&(te.$attrs[ne]=ie),te.setAttribute(ne,ie))}}))}}static isFocusableElement(te,ne=""){return!!this.isElement(te)&&te.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${ne},\n                [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${ne},\n                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${ne},\n                select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${ne},\n                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${ne},\n                [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${ne},\n                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${ne}`)}}return DomHandler})();class ConnectedOverlayScrollHandler{element;listener;scrollableParents;constructor(te,ne=(()=>{})){this.element=te,this.listener=ne}bindScrollListener(){this.scrollableParents=re.getScrollableParents(this.element);for(let te=0;te<this.scrollableParents.length;te++)this.scrollableParents[te].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let te=0;te<this.scrollableParents.length;te++)this.scrollableParents[te].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}},208:(te,ne,ie)=>{"use strict";ie.d(ne,{ms:()=>He,kr:()=>$e});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(3828),ue=ie(2583),me=ie(5724),ge=ie(1080),fe=ie(1646),_e=ie(3934),be=ie(4613),Ce=ie(1939),ye=ie(239),we=ie(7825),ke=ie(1196);let Se=(()=>{class BlankIcon extends ke.h{static ɵfac=(()=>{let te;return function BlankIcon_Factory(ne){return(te||(te=le.xGo(BlankIcon)))(ne||BlankIcon)}})();static ɵcmp=le.VBU({type:BlankIcon,selectors:[["BlankIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg","v-bind","pti()"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function BlankIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0),le.nrm(1,"rect",1),le.k0s())},encapsulation:2})}return BlankIcon})();var xe=ie(60),Ee=ie(9935);function DropdownItem_ng_container_1_CheckIcon_1_Template(te,ne){1&te&&le.nrm(0,"CheckIcon",4),2&te&&le.Y8G("styleClass","p-dropdown-check-icon")}function DropdownItem_ng_container_1_BlankIcon_2_Template(te,ne){1&te&&le.nrm(0,"BlankIcon",4),2&te&&le.Y8G("styleClass","p-dropdown-blank-icon")}function DropdownItem_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,DropdownItem_ng_container_1_CheckIcon_1_Template,1,1,"CheckIcon",3)(2,DropdownItem_ng_container_1_BlankIcon_2_Template,1,1,"BlankIcon",3),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.selected),le.R7$(),le.Y8G("ngIf",!te.selected)}}function DropdownItem_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span"),le.EFF(1),le.k0s()),2&te){const te=le.XpG();let ne;le.R7$(),le.JRh(null!==(ne=te.label)&&void 0!==ne?ne:"empty")}}function DropdownItem_ng_container_3_Template(te,ne){1&te&&le.eu8(0)}const _c0=te=>({height:te}),_c1=(te,ne,ie)=>({"p-dropdown-item":!0,"p-highlight":te,"p-disabled":ne,"p-focus":ie}),_c2=te=>({$implicit:te}),Me=["container"],Ne=["filter"],Re=["focusInput"],Le=["editableInput"],Oe=["items"],Pe=["scroller"],Fe=["overlay"],je=["firstHiddenFocusableEl"],Ve=["lastHiddenFocusableEl"];function Dropdown_span_2_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.EFF(1),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.JRh("p-emptylabel"===te.label()?" ":te.label())}}function Dropdown_span_2_ng_container_3_Template(te,ne){if(1&te&&le.eu8(0,15),2&te){const te=le.XpG(2);le.Y8G("ngTemplateOutlet",te.selectedItemTemplate)("ngTemplateOutletContext",le.eq3(2,_c2,te.selectedOption))}}function Dropdown_span_2_ng_template_4_span_0_Template(te,ne){if(1&te&&(le.j41(0,"span"),le.EFF(1),le.k0s()),2&te){const te=le.XpG(3);le.R7$(),le.JRh("p-emptylabel"===te.label()?" ":te.label())}}function Dropdown_span_2_ng_template_4_Template(te,ne){if(1&te&&le.DNE(0,Dropdown_span_2_ng_template_4_span_0_Template,2,1,"span",4),2&te){const te=le.XpG(2);le.Y8G("ngIf",te.isSelectedOptionEmpty())}}function Dropdown_span_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"span",11,12),le.bIt("focus",(function Dropdown_span_2_Template_span_focus_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputFocus(ne))}))("blur",(function Dropdown_span_2_Template_span_blur_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputBlur(ne))}))("keydown",(function Dropdown_span_2_Template_span_keydown_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onKeyDown(ne))})),le.DNE(2,Dropdown_span_2_ng_container_2_Template,2,1,"ng-container",6)(3,Dropdown_span_2_ng_container_3_Template,1,4,"ng-container",13)(4,Dropdown_span_2_ng_template_4_Template,1,1,"ng-template",null,14,le.C5r),le.k0s()}if(2&te){const te=le.sdS(5),ne=le.XpG();let ie;le.Y8G("ngClass",ne.inputClass)("pTooltip",ne.tooltip)("tooltipPosition",ne.tooltipPosition)("positionStyle",ne.tooltipPositionStyle)("tooltipStyleClass",ne.tooltipStyleClass)("autofocus",ne.autofocus),le.BMQ("aria-disabled",ne.disabled)("id",ne.inputId)("aria-label",ne.ariaLabel||("p-emptylabel"===ne.label()?void 0:ne.label()))("aria-labelledby",ne.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",null!==(ie=ne.overlayVisible)&&void 0!==ie&&ie)("aria-controls",ne.overlayVisible?ne.id+"_list":null)("tabindex",ne.disabled?-1:ne.tabindex)("aria-activedescendant",ne.focused?ne.focusedOptionId:void 0)("aria-required",ne.required)("required",ne.required),le.R7$(2),le.Y8G("ngIf",!ne.selectedItemTemplate)("ngIfElse",te),le.R7$(),le.Y8G("ngIf",ne.selectedItemTemplate&&!ne.isSelectedOptionEmpty())}}function Dropdown_input_3_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"input",16,17),le.bIt("input",(function Dropdown_input_3_Template_input_input_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onEditableInput(ne))}))("keydown",(function Dropdown_input_3_Template_input_keydown_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onKeyDown(ne))}))("focus",(function Dropdown_input_3_Template_input_focus_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputFocus(ne))}))("blur",(function Dropdown_input_3_Template_input_blur_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onInputBlur(ne))})),le.k0s()}if(2&te){const te=le.XpG();le.Y8G("ngClass",te.inputClass)("disabled",te.disabled)("autofocus",te.autofocus),le.BMQ("id",te.inputId)("maxlength",te.maxlength)("placeholder",void 0===te.modelValue()||null===te.modelValue()?te.placeholder():void 0)("aria-label",te.ariaLabel||("p-emptylabel"===te.label()?void 0:te.label()))("aria-activedescendant",te.focused?te.focusedOptionId:void 0)}}function Dropdown_ng_container_4_TimesIcon_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"TimesIcon",20),le.bIt("click",(function Dropdown_ng_container_4_TimesIcon_1_Template_TimesIcon_click_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.clear(ne))})),le.k0s()}2&te&&(le.Y8G("styleClass","p-dropdown-clear-icon"),le.BMQ("data-pc-section","clearicon"))}function Dropdown_ng_container_4_span_2_1_ng_template_0_Template(te,ne){}function Dropdown_ng_container_4_span_2_1_Template(te,ne){1&te&&le.DNE(0,Dropdown_ng_container_4_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Dropdown_ng_container_4_span_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"span",21),le.bIt("click",(function Dropdown_ng_container_4_span_2_Template_span_click_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.clear(ne))})),le.DNE(1,Dropdown_ng_container_4_span_2_1_Template,1,0,null,22),le.k0s()}if(2&te){const te=le.XpG(2);le.BMQ("data-pc-section","clearicon"),le.R7$(),le.Y8G("ngTemplateOutlet",te.clearIconTemplate)}}function Dropdown_ng_container_4_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Dropdown_ng_container_4_TimesIcon_1_Template,1,2,"TimesIcon",18)(2,Dropdown_ng_container_4_span_2_Template,2,2,"span",19),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",!te.clearIconTemplate),le.R7$(),le.Y8G("ngIf",te.clearIconTemplate)}}function Dropdown_ng_container_6_ng_container_1_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function Dropdown_ng_container_6_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Dropdown_ng_container_6_ng_container_1_ng_container_1_Template,1,0,"ng-container",22),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",te.loadingIconTemplate)}}function Dropdown_ng_container_6_ng_container_2_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",25),2&te){const te=le.XpG(3);le.Y8G("ngClass","p-dropdown-trigger-icon pi-spin "+te.loadingIcon)}}function Dropdown_ng_container_6_ng_container_2_span_2_Template(te,ne){1&te&&le.nrm(0,"span",26),2&te&&le.HbH("p-dropdown-trigger-icon pi pi-spinner pi-spin")}function Dropdown_ng_container_6_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Dropdown_ng_container_6_ng_container_2_span_1_Template,1,1,"span",23)(2,Dropdown_ng_container_6_ng_container_2_span_2_Template,1,2,"span",24),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",te.loadingIcon),le.R7$(),le.Y8G("ngIf",!te.loadingIcon)}}function Dropdown_ng_container_6_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Dropdown_ng_container_6_ng_container_1_Template,2,1,"ng-container",4)(2,Dropdown_ng_container_6_ng_container_2_Template,3,2,"ng-container",4),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.loadingIconTemplate),le.R7$(),le.Y8G("ngIf",!te.loadingIconTemplate)}}function Dropdown_ng_template_7_ng_container_0_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",30),2&te){const te=le.XpG(3);le.Y8G("ngClass",te.dropdownIcon)}}function Dropdown_ng_template_7_ng_container_0_ChevronDownIcon_2_Template(te,ne){1&te&&le.nrm(0,"ChevronDownIcon",31),2&te&&le.Y8G("styleClass","p-dropdown-trigger-icon")}function Dropdown_ng_template_7_ng_container_0_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Dropdown_ng_template_7_ng_container_0_span_1_Template,1,1,"span",28)(2,Dropdown_ng_template_7_ng_container_0_ChevronDownIcon_2_Template,1,1,"ChevronDownIcon",29),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",te.dropdownIcon),le.R7$(),le.Y8G("ngIf",!te.dropdownIcon)}}function Dropdown_ng_template_7_span_1_1_ng_template_0_Template(te,ne){}function Dropdown_ng_template_7_span_1_1_Template(te,ne){1&te&&le.DNE(0,Dropdown_ng_template_7_span_1_1_ng_template_0_Template,0,0,"ng-template")}function Dropdown_ng_template_7_span_1_Template(te,ne){if(1&te&&(le.j41(0,"span",32),le.DNE(1,Dropdown_ng_template_7_span_1_1_Template,1,0,null,22),le.k0s()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",te.dropdownIconTemplate)}}function Dropdown_ng_template_7_Template(te,ne){if(1&te&&le.DNE(0,Dropdown_ng_template_7_ng_container_0_Template,3,2,"ng-container",4)(1,Dropdown_ng_template_7_span_1_Template,2,1,"span",27),2&te){const te=le.XpG();le.Y8G("ngIf",!te.dropdownIconTemplate),le.R7$(),le.Y8G("ngIf",te.dropdownIconTemplate)}}function Dropdown_ng_template_11_ng_container_3_Template(te,ne){1&te&&le.eu8(0)}function Dropdown_ng_template_11_div_4_ng_container_1_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c12=te=>({options:te});function Dropdown_ng_template_11_div_4_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Dropdown_ng_template_11_div_4_ng_container_1_ng_container_1_Template,1,0,"ng-container",43),le.bVm()),2&te){const te=le.XpG(3);le.R7$(),le.Y8G("ngTemplateOutlet",te.filterTemplate)("ngTemplateOutletContext",le.eq3(2,_c12,te.filterOptions))}}function Dropdown_ng_template_11_div_4_ng_template_2_SearchIcon_3_Template(te,ne){1&te&&le.nrm(0,"SearchIcon",31),2&te&&le.Y8G("styleClass","p-dropdown-filter-icon")}function Dropdown_ng_template_11_div_4_ng_template_2_span_4_1_ng_template_0_Template(te,ne){}function Dropdown_ng_template_11_div_4_ng_template_2_span_4_1_Template(te,ne){1&te&&le.DNE(0,Dropdown_ng_template_11_div_4_ng_template_2_span_4_1_ng_template_0_Template,0,0,"ng-template")}function Dropdown_ng_template_11_div_4_ng_template_2_span_4_Template(te,ne){if(1&te&&(le.j41(0,"span",48),le.DNE(1,Dropdown_ng_template_11_div_4_ng_template_2_span_4_1_Template,1,0,null,22),le.k0s()),2&te){const te=le.XpG(4);le.R7$(),le.Y8G("ngTemplateOutlet",te.filterIconTemplate)}}const _c13=te=>({"p-variant-filled":te});function Dropdown_ng_template_11_div_4_ng_template_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",44)(1,"input",45,46),le.bIt("input",(function Dropdown_ng_template_11_div_4_ng_template_2_Template_input_input_1_listener(ne){le.eBV(te);const ie=le.XpG(3);return le.Njj(ie.onFilterInputChange(ne))}))("keydown",(function Dropdown_ng_template_11_div_4_ng_template_2_Template_input_keydown_1_listener(ne){le.eBV(te);const ie=le.XpG(3);return le.Njj(ie.onFilterKeyDown(ne))}))("blur",(function Dropdown_ng_template_11_div_4_ng_template_2_Template_input_blur_1_listener(ne){le.eBV(te);const ie=le.XpG(3);return le.Njj(ie.onFilterBlur(ne))})),le.k0s(),le.DNE(3,Dropdown_ng_template_11_div_4_ng_template_2_SearchIcon_3_Template,1,1,"SearchIcon",29)(4,Dropdown_ng_template_11_div_4_ng_template_2_span_4_Template,2,1,"span",47),le.k0s()}if(2&te){const te=le.XpG(3);le.R7$(),le.Y8G("value",te._filterValue()||"")("ngClass",le.eq3(8,_c13,"filled"===te.variant||"filled"===te.config.inputStyle())),le.BMQ("placeholder",te.filterPlaceholder)("aria-owns",te.id+"_list")("aria-label",te.ariaFilterLabel)("aria-activedescendant",te.focusedOptionId),le.R7$(2),le.Y8G("ngIf",!te.filterIconTemplate),le.R7$(),le.Y8G("ngIf",te.filterIconTemplate)}}function Dropdown_ng_template_11_div_4_Template(te,ne){if(1&te&&(le.j41(0,"div",41),le.bIt("click",(function Dropdown_ng_template_11_div_4_Template_div_click_0_listener(te){return te.stopPropagation()})),le.DNE(1,Dropdown_ng_template_11_div_4_ng_container_1_Template,2,4,"ng-container",6)(2,Dropdown_ng_template_11_div_4_ng_template_2_Template,5,10,"ng-template",null,42,le.C5r),le.k0s()),2&te){const te=le.sdS(3),ne=le.XpG(2);le.R7$(),le.Y8G("ngIf",ne.filterTemplate)("ngIfElse",te)}}function Dropdown_ng_template_11_p_scroller_6_ng_template_2_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}const _c14=(te,ne)=>({$implicit:te,options:ne});function Dropdown_ng_template_11_p_scroller_6_ng_template_2_Template(te,ne){if(1&te&&le.DNE(0,Dropdown_ng_template_11_p_scroller_6_ng_template_2_ng_container_0_Template,1,0,"ng-container",43),2&te){const te=ne.$implicit,ie=ne.options;le.XpG(2);const re=le.sdS(9);le.Y8G("ngTemplateOutlet",re)("ngTemplateOutletContext",le.l_i(2,_c14,te,ie))}}function Dropdown_ng_template_11_p_scroller_6_ng_container_3_ng_template_1_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Dropdown_ng_template_11_p_scroller_6_ng_container_3_ng_template_1_Template(te,ne){if(1&te&&le.DNE(0,Dropdown_ng_template_11_p_scroller_6_ng_container_3_ng_template_1_ng_container_0_Template,1,0,"ng-container",43),2&te){const te=ne.options,ie=le.XpG(4);le.Y8G("ngTemplateOutlet",ie.loaderTemplate)("ngTemplateOutletContext",le.eq3(2,_c12,te))}}function Dropdown_ng_template_11_p_scroller_6_ng_container_3_Template(te,ne){1&te&&(le.qex(0),le.DNE(1,Dropdown_ng_template_11_p_scroller_6_ng_container_3_ng_template_1_Template,1,4,"ng-template",51),le.bVm())}function Dropdown_ng_template_11_p_scroller_6_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-scroller",49,50),le.bIt("onLazyLoad",(function Dropdown_ng_template_11_p_scroller_6_Template_p_scroller_onLazyLoad_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.onLazyLoad.emit(ne))})),le.DNE(2,Dropdown_ng_template_11_p_scroller_6_ng_template_2_Template,1,5,"ng-template",10)(3,Dropdown_ng_template_11_p_scroller_6_ng_container_3_Template,2,0,"ng-container",4),le.k0s()}if(2&te){const te=le.XpG(2);le.Aen(le.eq3(8,_c0,te.scrollHeight)),le.Y8G("items",te.visibleOptions())("itemSize",te.virtualScrollItemSize||te._itemSize)("autoSize",!0)("lazy",te.lazy)("options",te.virtualScrollOptions),le.R7$(3),le.Y8G("ngIf",te.loaderTemplate)}}function Dropdown_ng_template_11_ng_container_7_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c15=()=>({});function Dropdown_ng_template_11_ng_container_7_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Dropdown_ng_template_11_ng_container_7_ng_container_1_Template,1,0,"ng-container",43),le.bVm()),2&te){le.XpG();const te=le.sdS(9),ne=le.XpG();le.R7$(),le.Y8G("ngTemplateOutlet",te)("ngTemplateOutletContext",le.l_i(3,_c14,ne.visibleOptions(),le.lJ4(2,_c15)))}}function Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span"),le.EFF(1),le.k0s()),2&te){const te=le.XpG(2).$implicit,ne=le.XpG(3);le.R7$(),le.JRh(ne.getOptionGroupLabel(te.optionGroup))}}function Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_ng_container_3_Template(te,ne){1&te&&le.eu8(0)}function Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_Template(te,ne){if(1&te&&(le.qex(0),le.j41(1,"li",56),le.DNE(2,Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_span_2_Template,2,1,"span",4)(3,Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_ng_container_3_Template,1,0,"ng-container",43),le.k0s(),le.bVm()),2&te){const te=le.XpG(),ne=te.index,ie=te.$implicit,re=le.XpG().options,ce=le.XpG(2);le.R7$(),le.Y8G("ngStyle",le.eq3(5,_c0,re.itemSize+"px")),le.BMQ("id",ce.id+"_"+ce.getOptionIndex(ne,re)),le.R7$(),le.Y8G("ngIf",!ce.groupTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",ce.groupTemplate)("ngTemplateOutletContext",le.eq3(7,_c2,ie.optionGroup))}}function Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_1_Template(te,ne){if(1&te){const te=le.RV6();le.qex(0),le.j41(1,"p-dropdownItem",57),le.bIt("onClick",(function Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_1_Template_p_dropdownItem_onClick_1_listener(ne){le.eBV(te);const ie=le.XpG().$implicit,re=le.XpG(3);return le.Njj(re.onOptionSelect(ne,ie))}))("onMouseEnter",(function Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_1_Template_p_dropdownItem_onMouseEnter_1_listener(ne){le.eBV(te);const ie=le.XpG().index,re=le.XpG().options,ce=le.XpG(2);return le.Njj(ce.onOptionMouseEnter(ne,ce.getOptionIndex(ie,re)))})),le.k0s(),le.bVm()}if(2&te){const te=le.XpG(),ne=te.index,ie=te.$implicit,re=le.XpG().options,ce=le.XpG(2);le.R7$(),le.Y8G("id",ce.id+"_"+ce.getOptionIndex(ne,re))("option",ie)("checkmark",ce.checkmark)("selected",ce.isSelected(ie))("label",ce.getOptionLabel(ie))("disabled",ce.isOptionDisabled(ie))("template",ce.itemTemplate)("focused",ce.focusedOptionIndex()===ce.getOptionIndex(ne,re))("ariaPosInset",ce.getAriaPosInset(ce.getOptionIndex(ne,re)))("ariaSetSize",ce.ariaSetSize)}}function Dropdown_ng_template_11_ng_template_8_ng_template_2_Template(te,ne){if(1&te&&le.DNE(0,Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_Template,4,9,"ng-container",4)(1,Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_1_Template,2,10,"ng-container",4),2&te){const te=ne.$implicit,ie=le.XpG(3);le.Y8G("ngIf",ie.isOptionGroup(te)),le.R7$(),le.Y8G("ngIf",!ie.isOptionGroup(te))}}function Dropdown_ng_template_11_ng_template_8_li_3_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.EFF(1),le.bVm()),2&te){const te=le.XpG(4);le.R7$(),le.SpI(" ",te.emptyFilterMessageLabel," ")}}function Dropdown_ng_template_11_ng_template_8_li_3_ng_container_2_Template(te,ne){1&te&&le.eu8(0,null,59)}function Dropdown_ng_template_11_ng_template_8_li_3_Template(te,ne){if(1&te&&(le.j41(0,"li",58),le.DNE(1,Dropdown_ng_template_11_ng_template_8_li_3_ng_container_1_Template,2,1,"ng-container",6)(2,Dropdown_ng_template_11_ng_template_8_li_3_ng_container_2_Template,2,0,"ng-container",22),le.k0s()),2&te){const te=le.XpG().options,ne=le.XpG(2);le.Y8G("ngStyle",le.eq3(4,_c0,te.itemSize+"px")),le.R7$(),le.Y8G("ngIf",!ne.emptyFilterTemplate&&!ne.emptyTemplate)("ngIfElse",ne.emptyFilter),le.R7$(),le.Y8G("ngTemplateOutlet",ne.emptyFilterTemplate||ne.emptyTemplate)}}function Dropdown_ng_template_11_ng_template_8_li_4_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.EFF(1),le.bVm()),2&te){const te=le.XpG(4);le.R7$(),le.SpI(" ",te.emptyMessageLabel," ")}}function Dropdown_ng_template_11_ng_template_8_li_4_ng_container_2_Template(te,ne){1&te&&le.eu8(0,null,60)}function Dropdown_ng_template_11_ng_template_8_li_4_Template(te,ne){if(1&te&&(le.j41(0,"li",58),le.DNE(1,Dropdown_ng_template_11_ng_template_8_li_4_ng_container_1_Template,2,1,"ng-container",6)(2,Dropdown_ng_template_11_ng_template_8_li_4_ng_container_2_Template,2,0,"ng-container",22),le.k0s()),2&te){const te=le.XpG().options,ne=le.XpG(2);le.Y8G("ngStyle",le.eq3(4,_c0,te.itemSize+"px")),le.R7$(),le.Y8G("ngIf",!ne.emptyTemplate)("ngIfElse",ne.empty),le.R7$(),le.Y8G("ngTemplateOutlet",ne.emptyTemplate)}}function Dropdown_ng_template_11_ng_template_8_Template(te,ne){if(1&te&&(le.j41(0,"ul",52,53),le.DNE(2,Dropdown_ng_template_11_ng_template_8_ng_template_2_Template,2,2,"ng-template",54)(3,Dropdown_ng_template_11_ng_template_8_li_3_Template,3,6,"li",55)(4,Dropdown_ng_template_11_ng_template_8_li_4_Template,3,6,"li",55),le.k0s()),2&te){const te=ne.$implicit,ie=ne.options,re=le.XpG(2);le.Y8G("ngClass",ie.contentStyleClass)("ngStyle",ie.contentStyle),le.BMQ("id",re.id+"_list")("aria-label",re.listLabel),le.R7$(2),le.Y8G("ngForOf",te),le.R7$(),le.Y8G("ngIf",re.filterValue&&re.isEmpty()),le.R7$(),le.Y8G("ngIf",!re.filterValue&&re.isEmpty())}}function Dropdown_ng_template_11_ng_container_10_Template(te,ne){1&te&&le.eu8(0)}const _c16=te=>({"max-height":te});function Dropdown_ng_template_11_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",33)(1,"span",34,35),le.bIt("focus",(function Dropdown_ng_template_11_Template_span_focus_1_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onFirstHiddenFocus(ne))})),le.k0s(),le.DNE(3,Dropdown_ng_template_11_ng_container_3_Template,1,0,"ng-container",22)(4,Dropdown_ng_template_11_div_4_Template,4,2,"div",36),le.j41(5,"div",37),le.DNE(6,Dropdown_ng_template_11_p_scroller_6_Template,4,10,"p-scroller",38)(7,Dropdown_ng_template_11_ng_container_7_Template,2,6,"ng-container",4)(8,Dropdown_ng_template_11_ng_template_8_Template,5,7,"ng-template",null,39,le.C5r),le.k0s(),le.DNE(10,Dropdown_ng_template_11_ng_container_10_Template,1,0,"ng-container",22),le.j41(11,"span",34,40),le.bIt("focus",(function Dropdown_ng_template_11_Template_span_focus_11_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onLastHiddenFocus(ne))})),le.k0s()()}if(2&te){const te=le.XpG();le.HbH(te.panelStyleClass),le.Y8G("ngClass","p-dropdown-panel p-component")("ngStyle",te.panelStyle),le.R7$(),le.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),le.R7$(2),le.Y8G("ngTemplateOutlet",te.headerTemplate),le.R7$(),le.Y8G("ngIf",te.filter),le.R7$(),le.Y8G("ngStyle",le.eq3(16,_c16,te.virtualScroll?"auto":te.scrollHeight||"auto")),le.R7$(),le.Y8G("ngIf",te.virtualScroll),le.R7$(),le.Y8G("ngIf",!te.virtualScroll),le.R7$(3),le.Y8G("ngTemplateOutlet",te.footerTemplate),le.R7$(),le.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const Ge={provide:ce.kq,useExisting:(0,le.Rfq)((()=>He)),multi:!0};let ze=(()=>{class DropdownItem{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;onClick=new le.bkB;onMouseEnter=new le.bkB;ngOnInit(){}onOptionClick(te){this.onClick.emit(te)}onOptionMouseEnter(te){this.onMouseEnter.emit(te)}static ɵfac=function DropdownItem_Factory(te){return new(te||DropdownItem)};static ɵcmp=le.VBU({type:DropdownItem,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:[le.Mj6.HasDecoratorInputTransform,"selected","selected",le.L39],focused:[le.Mj6.HasDecoratorInputTransform,"focused","focused",le.L39],label:"label",disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],visible:[le.Mj6.HasDecoratorInputTransform,"visible","visible",le.L39],itemSize:[le.Mj6.HasDecoratorInputTransform,"itemSize","itemSize",le.Udg],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[le.Mj6.HasDecoratorInputTransform,"checkmark","checkmark",le.L39]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[le.GFd],decls:4,vars:22,consts:[["role","option","pRipple","",3,"id","ngStyle","ngClass","click","mouseenter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function DropdownItem_Template(te,ne){1&te&&(le.j41(0,"li",0),le.bIt("click",(function DropdownItem_Template_li_click_0_listener(te){return ne.onOptionClick(te)}))("mouseenter",(function DropdownItem_Template_li_mouseenter_0_listener(te){return ne.onOptionMouseEnter(te)})),le.DNE(1,DropdownItem_ng_container_1_Template,3,2,"ng-container",1)(2,DropdownItem_span_2_Template,2,1,"span",1)(3,DropdownItem_ng_container_3_Template,1,0,"ng-container",2),le.k0s()),2&te&&(le.Y8G("id",ne.id)("ngStyle",le.eq3(14,_c0,ne.itemSize+"px"))("ngClass",le.sMw(16,_c1,ne.selected,ne.disabled,ne.focused)),le.BMQ("aria-label",ne.label)("aria-setsize",ne.ariaSetSize)("aria-posinset",ne.ariaPosInset)("aria-selected",ne.selected)("data-p-focused",ne.focused)("data-p-highlight",ne.selected)("data-p-disabled",ne.disabled),le.R7$(),le.Y8G("ngIf",ne.checkmark),le.R7$(),le.Y8G("ngIf",!ne.template),le.R7$(),le.Y8G("ngTemplateOutlet",ne.template)("ngTemplateOutletContext",le.eq3(20,_c2,ne.option)))},dependencies:()=>[re.YU,re.bT,re.T3,re.B3,fe.n,Se,we.S],encapsulation:2})}return DropdownItem})(),He=(()=>{class Dropdown{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(te){this._placeholder.set(te)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;variant="outlined";inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(te){te&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=te,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(te){this._itemSize=te,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(te){this._autoZIndex=te,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(te){this._baseZIndex=te,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(te){this._showTransitionOptions=te,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(te){this._hideTransitionOptions=te,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(te){setTimeout((()=>{this._filterValue.set(te)}))}get options(){return this._options()}set options(te){Ce.BF.deepEquals(te,this._options())||this._options.set(te)}onChange=new le.bkB;onFilter=new le.bkB;onFocus=new le.bkB;onBlur=new le.bkB;onClick=new le.bkB;onShow=new le.bkB;onHide=new le.bkB;onClear=new le.bkB;onLazyLoad=new le.bkB;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=(0,le.vPA)(null);_placeholder=(0,le.vPA)(void 0);modelValue=(0,le.vPA)(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=(0,le.vPA)(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=(0,le.vPA)(-1);labelId;listId;clicked=(0,le.vPA)(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(de.Yj.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(de.Yj.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return null!=this.modelValue()&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(de.Yj.ARIA).listLabel}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":void 0!==this.modelValue()&&null!==this.modelValue()&&!this.modelValue().length,"p-inputwrapper-focus":this.focused||this.overlayVisible,"p-variant-filled":"filled"===this.variant||"filled"===this.config.inputStyle(),"p-dropdown-open":this.overlayVisible}}get inputClass(){const te=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder()&&te===this.placeholder(),"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||null!=te&&"p-emptylabel"!==te&&0!==te.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle(),"p-ripple-disabled":!1===this.config.ripple}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=(0,le.EWP)((()=>{const te=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){const ne=this.filterBy||this.optionLabel||this.filterFields||this.optionValue?this.filterService.filter(te,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale):this.options.filter((te=>te.label?-1!==te.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()):-1!==te.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())));if(this.group){const te=this.options||[],ie=[];return te.forEach((te=>{const re=this.getOptionGroupChildren(te).filter((te=>ne.includes(te)));re.length>0&&ie.push({...te,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...re]})})),this.flatOptions(ie)}return ne}return te}));label=(0,le.EWP)((()=>{const te=this.getAllVisibleAndNonVisibleOptions(),ne=te.findIndex((te=>this.isOptionValueEqualsModelValue(te)));return-1!==ne?this.getOptionLabel(te[ne]):this.placeholder()||"p-emptylabel"}));filled=(0,le.EWP)((()=>"string"==typeof this.modelValue()?!!this.modelValue():"p-emptylabel"!==this.label()&&void 0!==this.modelValue()&&null!==this.modelValue()));selectedOption;editableInputValue=(0,le.EWP)((()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||""));constructor(te,ne,ie,re,ce,de){this.el=te,this.renderer=ne,this.cd=ie,this.zone=re,this.filterService=ce,this.config=de,(0,le.QZP)((()=>{const te=this.modelValue(),ne=this.visibleOptions();if(ne&&Ce.BF.isNotEmpty(ne)){const ie=this.findSelectedOptionIndex();(-1!==ie||void 0===te||"string"==typeof te&&0===te.length||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=ne[ie])}Ce.BF.isEmpty(ne)&&(void 0===te||this.isModelValueNotSet())&&Ce.BF.isNotEmpty(this.selectedOption)&&(this.selectedOption=null),void 0!==te&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()}))}isModelValueNotSet(){return null===this.modelValue()&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){this.id=this.id||(0,Ce._Y)(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:te=>this.onFilterInputChange(te),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular((()=>{setTimeout((()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()}),1)}))),this.selectedOptionUpdated&&this.itemsWrapper){let te=me.D.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");te&&me.D.scrollInView(this.itemsWrapper,te),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"item":default:this.itemTemplate=te.template;break;case"selectedItem":this.selectedItemTemplate=te.template;break;case"header":this.headerTemplate=te.template;break;case"filter":this.filterTemplate=te.template;break;case"footer":this.footerTemplate=te.template;break;case"emptyfilter":this.emptyFilterTemplate=te.template;break;case"empty":this.emptyTemplate=te.template;break;case"group":this.groupTemplate=te.template;break;case"loader":this.loaderTemplate=te.template;break;case"dropdownicon":this.dropdownIconTemplate=te.template;break;case"loadingicon":this.loadingIconTemplate=te.template;break;case"clearicon":this.clearIconTemplate=te.template;break;case"filtericon":this.filterIconTemplate=te.template}}))}flatOptions(te){return(te||[]).reduce(((te,ne,ie)=>{te.push({optionGroup:ne,group:!0,index:ie});const re=this.getOptionGroupChildren(ne);return re&&re.forEach((ne=>te.push(ne))),te}),[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(null===this.modelValue()||void 0===this.modelValue())&&!this.placeholder()){const te=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[te],!1,!0)}}onOptionSelect(te,ne,ie=!0,re=!1){if(!this.isSelected(ne)){const ie=this.getOptionValue(ne);this.updateModel(ie,te),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),!1===re&&this.onChange.emit({originalEvent:te,value:ie})}ie&&this.hide(!0)}onOptionMouseEnter(te,ne){this.focusOnHover&&this.changeFocusedOptionIndex(te,ne)}updateModel(te,ne){this.value=te,this.onModelChange(te),this.modelValue.set(te),this.selectedOptionUpdated=!0}writeValue(te){this.filter&&this.resetFilter(),this.value=te,this.allowModelChange()&&this.onModelChange(te),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder()&&(void 0===this.modelValue()||null===this.modelValue())&&!this.editable&&this.options&&this.options.length}isSelectedOptionEmpty(){return Ce.BF.isEmpty(this.selectedOption)}isSelected(te){return this.isValidOption(te)&&this.isOptionValueEqualsModelValue(te)}isOptionValueEqualsModelValue(te){return Ce.BF.equals(this.modelValue(),this.getOptionValue(te),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){if(null!==this._placeholder()&&void 0!==this._placeholder())return;const te=this.el.nativeElement.parentElement,ne=te?.classList.contains("p-float-label");if(te&&ne&&!this.selectedOption){const ne=te.querySelector("label");ne&&this._placeholder.set(ne.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(te,ne){return this.virtualScrollerDisabled?te:ne&&ne.getItemOptions(te).index}getOptionLabel(te){return void 0!==this.optionLabel&&null!==this.optionLabel?Ce.BF.resolveFieldData(te,this.optionLabel):te&&void 0!==te.label?te.label:te}getOptionValue(te){return this.optionValue&&null!==this.optionValue?Ce.BF.resolveFieldData(te,this.optionValue):!this.optionLabel&&te&&void 0!==te.value?te.value:te}isOptionDisabled(te){return!(this.getOptionValue(this.modelValue())===this.getOptionValue(te)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(te))&&!1===te.disabled)&&(this.optionDisabled?Ce.BF.resolveFieldData(te,this.optionDisabled):!(!te||void 0===te.disabled)&&te.disabled)}getOptionGroupLabel(te){return void 0!==this.optionGroupLabel&&null!==this.optionGroupLabel?Ce.BF.resolveFieldData(te,this.optionGroupLabel):te&&void 0!==te.label?te.label:te}getOptionGroupChildren(te){return void 0!==this.optionGroupChildren&&null!==this.optionGroupChildren?Ce.BF.resolveFieldData(te,this.optionGroupChildren):te.items}getAriaPosInset(te){return(this.optionGroupLabel?te-this.visibleOptions().slice(0,te).filter((te=>this.isOptionGroup(te))).length:te)+1}get ariaSetSize(){return this.visibleOptions().filter((te=>!this.isOptionGroup(te))).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}onContainerClick(te){this.disabled||this.readonly||this.loading||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"===te.target.tagName||"clearicon"===te.target.getAttribute("data-pc-section")||te.target.closest('[data-pc-section="clearicon"]')||(this.overlayViewChild&&this.overlayViewChild.el.nativeElement.contains(te.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(te),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&0===this.visibleOptions().length}onEditableInput(te){const ne=te.target.value;this.searchValue="";!this.searchOptions(te,ne)&&this.focusedOptionIndex.set(-1),this.onModelChange(ne),this.updateModel(ne,te),setTimeout((()=>{this.onChange.emit({originalEvent:te,value:ne})}),1),!this.overlayVisible&&Ce.BF.isNotEmpty(ne)&&this.show()}show(te){this.overlayVisible=!0;const ne=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex();this.focusedOptionIndex.set(ne),te&&me.D.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(te){if("visible"===te.toState){if(this.itemsWrapper=me.D.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const te=this.modelValue()?this.focusedOptionIndex():-1;-1!==te&&this.scroller?.scrollToIndex(te)}else{let te=me.D.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");te&&te.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(te)}"void"===te.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(te))}hide(te){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="","modal"===this.overlayOptions?.mode&&me.D.unblockBodyScroll(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),te&&(this.focusInputViewChild&&setTimeout((()=>{me.D.focus(this.focusInputViewChild?.nativeElement)})),this.editable&&this.editableInputViewChild&&setTimeout((()=>{me.D.focus(this.editableInputViewChild?.nativeElement)}))),this.cd.markForCheck()}onInputFocus(te){if(this.disabled)return;this.focused=!0;const ne=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(ne),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(te)}onInputBlur(te){this.focused=!1,this.onBlur.emit(te),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onMouseDown(te){te.preventDefault()}onKeyDown(te,ne){if(!(this.disabled||this.readonly||this.loading)){switch(te.code){case"ArrowDown":this.onArrowDownKey(te);break;case"ArrowUp":this.onArrowUpKey(te,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(te,this.editable);break;case"Delete":this.onDeleteKey(te);break;case"Home":this.onHomeKey(te,this.editable);break;case"End":this.onEndKey(te,this.editable);break;case"PageDown":this.onPageDownKey(te);break;case"PageUp":this.onPageUpKey(te);break;case"Space":this.onSpaceKey(te,ne);break;case"Enter":case"NumpadEnter":this.onEnterKey(te);break;case"Escape":this.onEscapeKey(te);break;case"Tab":this.onTabKey(te);break;case"Backspace":this.onBackspaceKey(te,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!te.metaKey&&Ce.BF.isPrintableCharacter(te.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(te,te.key))}this.clicked.set(!1)}}onFilterKeyDown(te){switch(te.code){case"ArrowDown":this.onArrowDownKey(te);break;case"ArrowUp":this.onArrowUpKey(te,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(te,!0);break;case"Home":this.onHomeKey(te,!0);break;case"End":this.onEndKey(te,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(te,!0);break;case"Escape":this.onEscapeKey(te);break;case"Tab":this.onTabKey(te,!0)}}onFilterBlur(te){this.focusedOptionIndex.set(-1)}onArrowDownKey(te){if(this.overlayVisible){const ne=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(te,ne)}else this.show(),this.editable&&this.changeFocusedOptionIndex(te,this.findSelectedOptionIndex());te.preventDefault(),te.stopPropagation()}changeFocusedOptionIndex(te,ne){if(this.focusedOptionIndex()!==ne&&(this.focusedOptionIndex.set(ne),this.scrollInView(),this.selectOnFocus)){const ie=this.visibleOptions()[ne];this.onOptionSelect(te,ie,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(te=-1){const ne=-1!==te?`${this.id}_${te}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const ie=me.D.findSingle(this.itemsViewChild.nativeElement,`li[id="${ne}"]`);ie?ie.scrollIntoView&&ie.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout((()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==te?te:this.focusedOptionIndex())}),0)}}hasSelectedOption(){return void 0!==this.modelValue()}isValidSelectedOption(te){return this.isValidOption(te)&&this.isSelected(te)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const te=this.findSelectedOptionIndex();return te<0?this.findFirstOptionIndex():te}findFirstOptionIndex(){return this.visibleOptions().findIndex((te=>this.isValidOption(te)))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex((te=>this.isValidSelectedOption(te))):-1}findNextOptionIndex(te){const ne=te<this.visibleOptions().length-1?this.visibleOptions().slice(te+1).findIndex((te=>this.isValidOption(te))):-1;return ne>-1?ne+te+1:te}findPrevOptionIndex(te){const ne=te>0?Ce.BF.findLastIndex(this.visibleOptions().slice(0,te),(te=>this.isValidOption(te))):-1;return ne>-1?ne:te}findLastOptionIndex(){return Ce.BF.findLastIndex(this.visibleOptions(),(te=>this.isValidOption(te)))}findLastFocusedOptionIndex(){const te=this.findSelectedOptionIndex();return te<0?this.findLastOptionIndex():te}isValidOption(te){return null!=te&&!(this.isOptionDisabled(te)||this.isOptionGroup(te))}isOptionGroup(te){return void 0!==this.optionGroupLabel&&null!==this.optionGroupLabel&&void 0!==te.optionGroup&&null!==te.optionGroup&&te.group}onArrowUpKey(te,ne=!1){if(te.altKey&&!ne){if(-1!==this.focusedOptionIndex()){const ne=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(te,ne)}this.overlayVisible&&this.hide()}else{const ne=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(te,ne),!this.overlayVisible&&this.show()}te.preventDefault(),te.stopPropagation()}onArrowLeftKey(te,ne=!1){ne&&this.focusedOptionIndex.set(-1)}onDeleteKey(te){this.showClear&&(this.clear(te),te.preventDefault())}onHomeKey(te,ne=!1){if(ne){const ne=te.currentTarget;te.shiftKey?ne.setSelectionRange(0,ne.value.length):(ne.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(te,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();te.preventDefault()}onEndKey(te,ne=!1){if(ne){const ne=te.currentTarget;if(te.shiftKey)ne.setSelectionRange(0,ne.value.length);else{const te=ne.value.length;ne.setSelectionRange(te,te),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(te,this.findLastOptionIndex()),!this.overlayVisible&&this.show();te.preventDefault()}onPageDownKey(te){this.scrollInView(this.visibleOptions().length-1),te.preventDefault()}onPageUpKey(te){this.scrollInView(0),te.preventDefault()}onSpaceKey(te,ne=!1){!this.editable&&!ne&&this.onEnterKey(te)}onEnterKey(te,ne=!1){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const ne=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(te,ne)}!ne&&this.hide()}else this.focusedOptionIndex.set(-1),this.onArrowDownKey(te);te.preventDefault()}onEscapeKey(te){this.overlayVisible&&this.hide(!0),te.preventDefault()}onTabKey(te,ne=!1){if(!ne)if(this.overlayVisible&&this.hasFocusableElements())me.D.focus(te.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),te.preventDefault();else{if(-1!==this.focusedOptionIndex()&&this.overlayVisible){const ne=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(te,ne)}this.overlayVisible&&this.hide(this.filter)}te.stopPropagation()}onFirstHiddenFocus(te){const ne=te.relatedTarget===this.focusInputViewChild?.nativeElement?me.D.getFirstFocusableElement(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;me.D.focus(ne)}onLastHiddenFocus(te){const ne=te.relatedTarget===this.focusInputViewChild?.nativeElement?me.D.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;me.D.focus(ne)}hasFocusableElements(){return me.D.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"]):not([class="p-dropdown-items-wrapper"])').length>0}onBackspaceKey(te,ne=!1){ne&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(te,ne){this.searchValue=(this.searchValue||"")+ne;let ie=-1,re=!1;return-1!==this.focusedOptionIndex()?(ie=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex((te=>this.isOptionMatched(te))),ie=-1===ie?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex((te=>this.isOptionMatched(te))):ie+this.focusedOptionIndex()):ie=this.visibleOptions().findIndex((te=>this.isOptionMatched(te))),-1!==ie&&(re=!0),-1===ie&&-1===this.focusedOptionIndex()&&(ie=this.findFirstFocusedOptionIndex()),-1!==ie&&this.changeFocusedOptionIndex(te,ie),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((()=>{this.searchValue="",this.searchTimeout=null}),500),re}isOptionMatched(te){return this.isValidOption(te)&&this.getOptionLabel(te).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(te){let ne=te.target.value;this._filterValue.set(ne),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:te,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout((()=>{this.overlayViewChild.alignOverlay()})),this.cd.markForCheck()}applyFocus(){this.editable?me.D.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():me.D.focus(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(te){this.updateModel(null,te),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:te,value:this.value}),this.onClear.emit(te),this.resetFilter()}static ɵfac=function Dropdown_Factory(te){return new(te||Dropdown)(le.rXU(le.aKT),le.rXU(le.sFG),le.rXU(le.gRc),le.rXU(le.SKi),le.rXU(de.E),le.rXU(de.r1))};static ɵcmp=le.VBU({type:Dropdown,selectors:[["p-dropdown"]],contentQueries:function Dropdown_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,de.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},viewQuery:function Dropdown_Query(te,ne){if(1&te&&(le.GBs(Me,5),le.GBs(Ne,5),le.GBs(Re,5),le.GBs(Le,5),le.GBs(Oe,5),le.GBs(Pe,5),le.GBs(Fe,5),le.GBs(je,5),le.GBs(Ve,5)),2&te){let te;le.mGM(te=le.lsd())&&(ne.containerViewChild=te.first),le.mGM(te=le.lsd())&&(ne.filterViewChild=te.first),le.mGM(te=le.lsd())&&(ne.focusInputViewChild=te.first),le.mGM(te=le.lsd())&&(ne.editableInputViewChild=te.first),le.mGM(te=le.lsd())&&(ne.itemsViewChild=te.first),le.mGM(te=le.lsd())&&(ne.scroller=te.first),le.mGM(te=le.lsd())&&(ne.overlayViewChild=te.first),le.mGM(te=le.lsd())&&(ne.firstHiddenFocusableElementOnOverlay=te.first),le.mGM(te=le.lsd())&&(ne.lastHiddenFocusableElementOnOverlay=te.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function Dropdown_HostBindings(te,ne){2&te&&le.AVh("p-inputwrapper-filled",ne.filled())("p-inputwrapper-focus",ne.focused||ne.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[le.Mj6.HasDecoratorInputTransform,"filter","filter",le.L39],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[le.Mj6.HasDecoratorInputTransform,"readonly","readonly",le.L39],required:[le.Mj6.HasDecoratorInputTransform,"required","required",le.L39],editable:[le.Mj6.HasDecoratorInputTransform,"editable","editable",le.L39],appendTo:"appendTo",tabindex:[le.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",le.Udg],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",variant:"variant",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39],resetFilterOnHide:[le.Mj6.HasDecoratorInputTransform,"resetFilterOnHide","resetFilterOnHide",le.L39],checkmark:[le.Mj6.HasDecoratorInputTransform,"checkmark","checkmark",le.L39],dropdownIcon:"dropdownIcon",loading:[le.Mj6.HasDecoratorInputTransform,"loading","loading",le.L39],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[le.Mj6.HasDecoratorInputTransform,"autoDisplayFirst","autoDisplayFirst",le.L39],group:[le.Mj6.HasDecoratorInputTransform,"group","group",le.L39],showClear:[le.Mj6.HasDecoratorInputTransform,"showClear","showClear",le.L39],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[le.Mj6.HasDecoratorInputTransform,"lazy","lazy",le.L39],virtualScroll:[le.Mj6.HasDecoratorInputTransform,"virtualScroll","virtualScroll",le.L39],virtualScrollItemSize:[le.Mj6.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",le.Udg],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[le.Mj6.HasDecoratorInputTransform,"maxlength","maxlength",le.Udg],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[le.Mj6.HasDecoratorInputTransform,"focusOnHover","focusOnHover",le.L39],selectOnFocus:[le.Mj6.HasDecoratorInputTransform,"selectOnFocus","selectOnFocus",le.L39],autoOptionFocus:[le.Mj6.HasDecoratorInputTransform,"autoOptionFocus","autoOptionFocus",le.L39],autofocusFilter:[le.Mj6.HasDecoratorInputTransform,"autofocusFilter","autofocusFilter",le.L39],disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[le.Jv_([Ge]),le.GFd],decls:12,vars:20,consts:[[3,"ngClass","ngStyle","click"],["container",""],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"ngClass","disabled","autofocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger",3,"mousedown"],[4,"ngIf","ngIfElse"],["elseBlock",""],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["defaultPlaceholder",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"ngClass","disabled","autofocus","input","keydown","focus","blur"],["editableInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-dropdown-trigger-icon",4,"ngIf"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-dropdown-header",3,"click",4,"ngIf"],["tabindex","0",1,"p-dropdown-items-wrapper",3,"ngStyle"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["lastHiddenFocusableEl",""],[1,"p-dropdown-header",3,"click"],["builtInFilterElement",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-dropdown-filter-container"],["type","text","role","searchbox","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","ngClass","input","keydown","blur"],["filter",""],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass","ngStyle"],["items",""],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],["role","option",1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function Dropdown_Template(te,ne){if(1&te&&(le.j41(0,"div",0,1),le.bIt("click",(function Dropdown_Template_div_click_0_listener(te){return ne.onContainerClick(te)})),le.DNE(2,Dropdown_span_2_Template,6,20,"span",2)(3,Dropdown_input_3_Template,2,8,"input",3)(4,Dropdown_ng_container_4_Template,3,2,"ng-container",4),le.j41(5,"div",5),le.bIt("mousedown",(function Dropdown_Template_div_mousedown_5_listener(te){return ne.onMouseDown(te)})),le.DNE(6,Dropdown_ng_container_6_Template,3,2,"ng-container",6)(7,Dropdown_ng_template_7_Template,2,2,"ng-template",null,7,le.C5r),le.k0s(),le.j41(9,"p-overlay",8,9),le.mxI("visibleChange",(function Dropdown_Template_p_overlay_visibleChange_9_listener(te){return le.DH7(ne.overlayVisible,te)||(ne.overlayVisible=te),te})),le.bIt("onAnimationStart",(function Dropdown_Template_p_overlay_onAnimationStart_9_listener(te){return ne.onOverlayAnimationStart(te)}))("onHide",(function Dropdown_Template_p_overlay_onHide_9_listener(){return ne.hide()})),le.DNE(11,Dropdown_ng_template_11_Template,13,18,"ng-template",10),le.k0s()()),2&te){const te=le.sdS(8);let ie;le.HbH(ne.styleClass),le.Y8G("ngClass",ne.containerClass)("ngStyle",ne.style),le.BMQ("id",ne.id),le.R7$(2),le.Y8G("ngIf",!ne.editable),le.R7$(),le.Y8G("ngIf",ne.editable),le.R7$(),le.Y8G("ngIf",ne.isVisibleClearIcon),le.R7$(),le.BMQ("aria-expanded",null!==(ie=ne.overlayVisible)&&void 0!==ie&&ie)("data-pc-section","trigger"),le.R7$(),le.Y8G("ngIf",ne.loading)("ngIfElse",te),le.R7$(3),le.R50("visible",ne.overlayVisible),le.Y8G("options",ne.overlayOptions)("target","@parent")("appendTo",ne.appendTo)("autoZIndex",ne.autoZIndex)("baseZIndex",ne.baseZIndex)("showTransitionOptions",ne.showTransitionOptions)("hideTransitionOptions",ne.hideTransitionOptions)}},dependencies:()=>[re.YU,re.Sq,re.bT,re.T3,re.B3,ge.hJ,de.Ei,be.m,_e.H,ue.q,ye.A,xe.D,Ee.W,ze],styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}.p-float-label .p-dropdown .p-placeholder{opacity:0}}\n"],encapsulation:2,changeDetection:0})}return Dropdown})(),$e=(()=>{class DropdownModule{static ɵfac=function DropdownModule_Factory(te){return new(te||DropdownModule)};static ɵmod=le.$C({type:DropdownModule});static ɵinj=le.G2t({imports:[re.MD,ge.z_,de.Gg,be.S,fe.Z,_e.h,ue.u,ye.A,xe.D,Ee.W,Se,we.S,ge.z_,de.Gg,_e.h]})}return DropdownModule})()},3511:(te,ne,ie)=>{"use strict";ie.d(ne,{Pw:()=>DynamicDialogRef,o3:()=>Re,sb:()=>DynamicDialogConfig});var re=ie(3107),le=ie(5724),ce=ie(1204),de=ie(4460),ue=ie(3828),me=ie(777),ge=ie(239),fe=ie(9605),_e=ie(5311),be=ie(1939),Ce=ie(8447);const ye=["mask"],we=["content"],ke=["footer"],Se=["titlebar"];function DynamicDialogComponent_div_2_div_2_Template(te,ne){if(1&te){const te=re.RV6();re.j41(0,"div",12),re.bIt("mousedown",(function DynamicDialogComponent_div_2_div_2_Template_div_mousedown_0_listener(ne){re.eBV(te);const ie=re.XpG(2);return re.Njj(ie.initResize(ne))})),re.k0s()}}function DynamicDialogComponent_div_2_div_3_ng_container_2_Template(te,ne){1&te&&re.eu8(0)}function DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_span_1_Template(te,ne){if(1&te&&re.nrm(0,"span",22),2&te){const te=re.XpG(5);re.Y8G("ngClass",te.maximized?te.minimizeIcon:te.maximizeIcon)}}function DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_WindowMaximizeIcon_2_Template(te,ne){1&te&&re.nrm(0,"WindowMaximizeIcon",23),2&te&&re.Y8G("styleClass","p-dialog-header-maximize-icon")}function DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_WindowMinimizeIcon_3_Template(te,ne){1&te&&re.nrm(0,"WindowMinimizeIcon",23),2&te&&re.Y8G("styleClass","p-dialog-header-maximize-icon")}function DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_ng_container_4_Template(te,ne){1&te&&re.eu8(0)}function DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_ng_container_5_Template(te,ne){1&te&&re.eu8(0)}const _c4=()=>({"p-dialog-header-icon p-dialog-header-maximize p-link":!0});function DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_Template(te,ne){if(1&te){const te=re.RV6();re.j41(0,"button",19),re.bIt("click",(function DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_Template_button_click_0_listener(){re.eBV(te);const ne=re.XpG(4);return re.Njj(ne.maximize())}))("keydown.enter",(function DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_Template_button_keydown_enter_0_listener(){re.eBV(te);const ne=re.XpG(4);return re.Njj(ne.maximize())})),re.DNE(1,DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_span_1_Template,1,1,"span",20)(2,DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_WindowMaximizeIcon_2_Template,1,1,"WindowMaximizeIcon",21)(3,DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_WindowMinimizeIcon_3_Template,1,1,"WindowMinimizeIcon",21)(4,DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_ng_container_4_Template,1,0,"ng-container",10)(5,DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_ng_container_5_Template,1,0,"ng-container",10),re.k0s()}if(2&te){const te=re.XpG(4);re.Y8G("ngClass",re.lJ4(6,_c4)),re.R7$(),re.Y8G("ngIf",!te.maximizeIconTemplate||!te.minimizeIconTemplate),re.R7$(),re.Y8G("ngIf",!te.maximized&&!te.maximizeIcon&&!te.maximizeIconTemplate),re.R7$(),re.Y8G("ngIf",te.maximized&&!te.minimizeIcon&&!te.minimizeIconTemplate),re.R7$(),re.Y8G("ngComponentOutlet",te.maximizeIconTemplate),re.R7$(),re.Y8G("ngComponentOutlet",te.minimizeIconTemplate)}}function DynamicDialogComponent_div_2_div_3_ng_container_3_button_5_TimesIcon_1_Template(te,ne){1&te&&re.nrm(0,"TimesIcon",23),2&te&&re.Y8G("styleClass","p-dialog-header-close-icon")}function DynamicDialogComponent_div_2_div_3_ng_container_3_button_5_ng_container_2_Template(te,ne){1&te&&re.eu8(0)}function DynamicDialogComponent_div_2_div_3_ng_container_3_button_5_Template(te,ne){if(1&te){const te=re.RV6();re.j41(0,"button",24),re.bIt("click",(function DynamicDialogComponent_div_2_div_3_ng_container_3_button_5_Template_button_click_0_listener(){re.eBV(te);const ne=re.XpG(4);return re.Njj(ne.hide())}))("keydown.enter",(function DynamicDialogComponent_div_2_div_3_ng_container_3_button_5_Template_button_keydown_enter_0_listener(){re.eBV(te);const ne=re.XpG(4);return re.Njj(ne.hide())})),re.DNE(1,DynamicDialogComponent_div_2_div_3_ng_container_3_button_5_TimesIcon_1_Template,1,1,"TimesIcon",21)(2,DynamicDialogComponent_div_2_div_3_ng_container_3_button_5_ng_container_2_Template,1,0,"ng-container",10),re.k0s()}if(2&te){const te=re.XpG(4);re.Y8G("ngClass","p-dialog-header-icon p-dialog-header-maximize p-link"),re.BMQ("aria-label",te.closeAriaLabel),re.R7$(),re.Y8G("ngIf",!te.closeIconTemplate),re.R7$(),re.Y8G("ngComponentOutlet",te.closeIconTemplate)}}function DynamicDialogComponent_div_2_div_3_ng_container_3_Template(te,ne){if(1&te&&(re.qex(0),re.j41(1,"span",15),re.EFF(2),re.k0s(),re.j41(3,"div",16),re.DNE(4,DynamicDialogComponent_div_2_div_3_ng_container_3_button_4_Template,6,7,"button",17)(5,DynamicDialogComponent_div_2_div_3_ng_container_3_button_5_Template,3,4,"button",18),re.k0s(),re.bVm()),2&te){const te=re.XpG(3);re.R7$(),re.Y8G("id",te.ariaLabelledBy),re.R7$(),re.JRh(te.config.header),re.R7$(2),re.Y8G("ngIf",te.config.maximizable),re.R7$(),re.Y8G("ngIf",!1!==te.config.closable)}}function DynamicDialogComponent_div_2_div_3_Template(te,ne){if(1&te){const te=re.RV6();re.j41(0,"div",13,14),re.bIt("mousedown",(function DynamicDialogComponent_div_2_div_3_Template_div_mousedown_0_listener(ne){re.eBV(te);const ie=re.XpG(2);return re.Njj(ie.initDrag(ne))})),re.DNE(2,DynamicDialogComponent_div_2_div_3_ng_container_2_Template,1,0,"ng-container",10)(3,DynamicDialogComponent_div_2_div_3_ng_container_3_Template,6,4,"ng-container",9),re.k0s()}if(2&te){const te=re.XpG(2);re.R7$(2),re.Y8G("ngComponentOutlet",te.headerTemplate),re.R7$(),re.Y8G("ngIf",!te.headerTemplate)}}function DynamicDialogComponent_div_2_6_ng_template_0_Template(te,ne){}function DynamicDialogComponent_div_2_6_Template(te,ne){1&te&&re.DNE(0,DynamicDialogComponent_div_2_6_ng_template_0_Template,0,0,"ng-template",25)}function DynamicDialogComponent_div_2_ng_container_7_Template(te,ne){1&te&&re.eu8(0)}function DynamicDialogComponent_div_2_div_8_ng_container_2_Template(te,ne){if(1&te&&(re.qex(0),re.EFF(1),re.bVm()),2&te){const te=re.XpG(3);re.R7$(),re.SpI(" ",te.config.footer," ")}}function DynamicDialogComponent_div_2_div_8_ng_container_3_Template(te,ne){1&te&&re.eu8(0)}function DynamicDialogComponent_div_2_div_8_Template(te,ne){if(1&te&&(re.j41(0,"div",26,27),re.DNE(2,DynamicDialogComponent_div_2_div_8_ng_container_2_Template,2,1,"ng-container",9)(3,DynamicDialogComponent_div_2_div_8_ng_container_3_Template,1,0,"ng-container",10),re.k0s()),2&te){const te=re.XpG(2);re.R7$(2),re.Y8G("ngIf",!te.footerTemplate),re.R7$(),re.Y8G("ngComponentOutlet",te.footerTemplate)}}const _c5=(te,ne,ie,re)=>({"p-dialog p-dynamic-dialog p-component":!0,"p-dialog-rtl":te,"p-dialog-resizable":ne,"p-dialog-draggable":ie,"p-dialog-maximized":re}),_c6=(te,ne)=>({transform:te,transition:ne}),_c7=te=>({value:"visible",params:te});function DynamicDialogComponent_div_2_Template(te,ne){if(1&te){const te=re.RV6();re.j41(0,"div",3,4),re.bIt("@animation.start",(function DynamicDialogComponent_div_2_Template_div_animation_animation_start_0_listener(ne){re.eBV(te);const ie=re.XpG();return re.Njj(ie.onAnimationStart(ne))}))("@animation.done",(function DynamicDialogComponent_div_2_Template_div_animation_animation_done_0_listener(ne){re.eBV(te);const ie=re.XpG();return re.Njj(ie.onAnimationEnd(ne))})),re.DNE(2,DynamicDialogComponent_div_2_div_2_Template,1,0,"div",5)(3,DynamicDialogComponent_div_2_div_3_Template,4,2,"div",6),re.j41(4,"div",7,8),re.DNE(6,DynamicDialogComponent_div_2_6_Template,1,0,null,9)(7,DynamicDialogComponent_div_2_ng_container_7_Template,1,0,"ng-container",10),re.k0s(),re.DNE(8,DynamicDialogComponent_div_2_div_8_Template,4,2,"div",11),re.k0s()}if(2&te){const te=re.XpG();re.HbH(te.config.styleClass),re.Y8G("ngClass",re.ziG(14,_c5,te.config.rtl,te.config.resizable,te.config.draggable,te.maximized))("ngStyle",te.containerStyle)("@animation",re.eq3(22,_c7,re.l_i(19,_c6,te.transformOptions,te.config.transitionOptions||"150ms cubic-bezier(0, 0, 0.2, 1)")))("pFocusTrapDisabled",!1===te.config.focusTrap),re.BMQ("aria-labelledby",te.ariaLabelledBy)("aria-modal",!0),re.R7$(2),re.Y8G("ngIf",te.config.resizable),re.R7$(),re.Y8G("ngIf",!1!==te.config.showHeader),re.R7$(),re.Y8G("ngStyle",te.config.contentStyle),re.R7$(2),re.Y8G("ngIf",!te.contentTemplate),re.R7$(),re.Y8G("ngComponentOutlet",te.contentTemplate),re.R7$(),re.Y8G("ngIf",te.config.footer||te.footerTemplate)}}const _c8=(te,ne,ie,re,le,ce,de,ue,me)=>({"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker":te,"p-dialog-left":ne,"p-dialog-right":ie,"p-dialog-top":re,"p-dialog-bottom":le,"p-dialog-top-left":ce,"p-dialog-top-right":de,"p-dialog-bottom-left":ue,"p-dialog-bottom-right":me});let xe=(()=>{class DynamicDialogContent{viewContainerRef;constructor(te){this.viewContainerRef=te}static ɵfac=function DynamicDialogContent_Factory(te){return new(te||DynamicDialogContent)(re.rXU(re.c1b))};static ɵdir=re.FsC({type:DynamicDialogContent,selectors:[["","pDynamicDialogContent",""]],hostAttrs:[1,"p-element"]})}return DynamicDialogContent})();class DynamicDialogConfig{data;header;ariaLabelledBy;footer;width;height;closeOnEscape;focusOnShow=!0;focusOnClose=!0;focusTrap=!0;baseZIndex;autoZIndex;dismissableMask;rtl;style;contentStyle;styleClass;transitionOptions;closable;showHeader;modal;maskStyleClass;resizable;draggable;keepInViewport;minX;minY;maximizable;maximizeIcon;minimizeIcon;position;closeAriaLabel;appendTo;duplicate;breakpoints;templates}class DynamicDialogRef{constructor(){}close(te){this._onClose.next(te),setTimeout((()=>{this._onClose.complete()}),1e3)}destroy(){this._onDestroy.next(null)}dragStart(te){this._onDragStart.next(te)}dragEnd(te){this._onDragEnd.next(te)}resizeInit(te){this._onResizeInit.next(te)}resizeEnd(te){this._onResizeEnd.next(te)}maximize(te){this._onMaximize.next(te)}_onClose=new Ce.B;onClose=this._onClose.asObservable();_onDestroy=new Ce.B;onDestroy=this._onDestroy.asObservable();_onDragStart=new Ce.B;onDragStart=this._onDragStart.asObservable();_onDragEnd=new Ce.B;onDragEnd=this._onDragEnd.asObservable();_onResizeInit=new Ce.B;onResizeInit=this._onResizeInit.asObservable();_onResizeEnd=new Ce.B;onResizeEnd=this._onResizeEnd.asObservable();_onMaximize=new Ce.B;onMaximize=this._onMaximize.asObservable();onChildComponentLoaded=new Ce.B}const Ee=(0,ce.lY)([(0,ce.iF)({transform:"{{transform}}",opacity:0}),(0,ce.i0)("{{transition}}",(0,ce.iF)({transform:"none",opacity:1}))]),Me=(0,ce.lY)([(0,ce.i0)("{{transition}}",(0,ce.iF)({transform:"{{transform}}",opacity:0}))]);let Ne=(()=>{class DynamicDialogComponent{document;platformId;cd;renderer;config;dialogRef;zone;primeNGConfig;parentDialog;visible=!0;componentRef;mask;resizing;dragging;maximized;_style={};originalStyle;lastPageX;lastPageY;ariaLabelledBy;id=(0,be._Y)();styleElement;insertionPoint;maskViewChild;contentViewChild;footerViewChild;headerViewChild;childComponentType;container;wrapper;documentKeydownListener;documentEscapeListener;maskClickListener;transformOptions="scale(0.7)";documentResizeListener;documentResizeEndListener;documentDragListener;documentDragEndListener;get minX(){return this.config.minX?this.config.minX:0}get minY(){return this.config.minY?this.config.minY:0}get keepInViewport(){return this.config.keepInViewport}get maximizable(){return this.config.maximizable}get maximizeIcon(){return this.config.maximizeIcon}get minimizeIcon(){return this.config.minimizeIcon}get style(){return this._style}get position(){return this.config.position}get closeAriaLabel(){return this.primeNGConfig.getTranslation(ue.Yj.ARIA).close}set style(te){te&&(this._style={...te},this.originalStyle=te)}get parent(){const te=Array.from(this.document.getElementsByClassName("p-dialog"));if(te.length>1)return te.pop()}get parentContent(){const te=Array.from(this.document.getElementsByClassName("p-dialog"));if(te.length>0){const ne=te[te.length-1].querySelector(".p-dialog-content");if(ne)return Array.isArray(ne)?ne[0]:ne}}get header(){return this.config.header}get data(){return this.config.data}get breakpoints(){return this.config.breakpoints}get footerTemplate(){return this.config?.templates?.footer}get headerTemplate(){return this.config?.templates?.header}get contentTemplate(){return this.config?.templates?.content}get minimizeIconTemplate(){return this.config?.templates?.minimizeicon}get maximizeIconTemplate(){return this.config?.templates?.maximizeicon}get closeIconTemplate(){return this.config?.templates?.closeicon}get dynamicDialogCount(){const te=this.document.querySelectorAll("p-dynamicdialog"),ne=te?.length;return ne}get containerStyle(){return{...this.config.style,width:this.config.width,height:this.config.height}}constructor(te,ne,ie,re,le,ce,de,ue,me){this.document=te,this.platformId=ne,this.cd=ie,this.renderer=re,this.config=le,this.dialogRef=ce,this.zone=de,this.primeNGConfig=ue,this.parentDialog=me}ngOnInit(){this.breakpoints&&this.createStyle()}createStyle(){if((0,de.UE)(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",le.D.setAttribute(this.styleElement,"nonce",this.primeNGConfig?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let te="";for(let ne in this.breakpoints)te+=`\n                        @media screen and (max-width: ${ne}) {\n                            .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n                                width: ${this.breakpoints[ne]} !important;\n                            }\n                        }\n                    `;this.renderer.setProperty(this.styleElement,"innerHTML",te)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngAfterViewInit(){this.loadChildComponent(this.childComponentType),this.ariaLabelledBy=this.getAriaLabelledBy(),this.cd.detectChanges()}getAriaLabelledBy(){return null!==this.header?(0,be._Y)()+"_header":null}loadChildComponent(te){let ne=this.insertionPoint?.viewContainerRef;ne?.clear(),this.componentRef=ne?.createComponent(te),this.dialogRef.onChildComponentLoaded.next(this.componentRef.instance)}moveOnTop(){!1!==this.config.autoZIndex&&(be.Q$.set("modal",this.container,(this.config.baseZIndex||0)+this.primeNGConfig.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}onAnimationStart(te){switch(te.toState){case"visible":this.container=te.element,this.wrapper=this.container.parentElement,this.moveOnTop(),this.parent&&this.unbindGlobalListeners(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),!1!==this.config.modal&&this.enableModality(),!1!==this.config.focusOnShow&&this.focus();break;case"void":this.wrapper&&!1!==this.config.modal&&le.D.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(te){"void"===te.toState&&(this.parentContent&&!1!==this.config.focusOnClose&&this.focus(this.parentContent),this.onContainerDestroy(),this.dialogRef.destroy())}onContainerDestroy(){this.unbindGlobalListeners(),this.container&&!1!==this.config.autoZIndex&&be.Q$.clear(this.container),!1!==this.config.modal&&this.disableModality(),this.container=null}close(){this.visible=!1,this.cd.markForCheck()}hide(){this.dialogRef&&this.dialogRef.close()}enableModality(){this.config.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",(te=>{this.wrapper&&this.wrapper.isSameNode(te.target)&&this.hide()}))),1===this.dynamicDialogCount&&le.D.addClass(this.document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.config.dismissableMask&&this.unbindMaskClickListener(),1===this.dynamicDialogCount&&le.D.removeClass(this.document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}focus(te=this.contentViewChild.nativeElement){if(!le.D.getFocusableElements(te).length)return;let ne=le.D.getFocusableElement(te,"[autofocus]");if(ne)return void this.zone.runOutsideAngular((()=>{setTimeout((()=>ne.focus()),5)}));const ie=le.D.getFocusableElement(te);ie?this.zone.runOutsideAngular((()=>{setTimeout((()=>ie.focus()),5)})):this.footerViewChild?this.focus(this.footerViewChild.nativeElement):!ie&&this.headerViewChild&&this.focus(this.headerViewChild.nativeElement)}maximize(){this.maximized=!this.maximized,this.maximized?le.D.addClass(this.document.body,"p-overflow-hidden"):le.D.removeClass(this.document.body,"p-overflow-hidden"),this.dialogRef.maximize({maximized:this.maximized})}initResize(te){this.config.resizable&&(this.documentResizeListener||this.bindDocumentResizeListeners(),this.resizing=!0,this.lastPageX=te.pageX,this.lastPageY=te.pageY,le.D.addClass(this.document.body,"p-unselectable-text"),this.dialogRef.resizeInit(te))}onResize(te){if(this.resizing){let ne=te.pageX-this.lastPageX,ie=te.pageY-this.lastPageY,re=le.D.getOuterWidth(this.container),ce=le.D.getOuterHeight(this.container),de=le.D.getOuterHeight(this.contentViewChild.nativeElement),ue=re+ne,me=ce+ie,ge=this.container.style.minWidth,fe=this.container.style.minHeight,_e=this.container.getBoundingClientRect(),be=le.D.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(ue+=ne,me+=ie),(!ge||ue>parseInt(ge))&&_e.left+ue<be.width&&(this._style.width=ue+"px",this.container.style.width=this._style.width),(!fe||me>parseInt(fe))&&_e.top+me<be.height&&(this.contentViewChild.nativeElement.style.height=de+me-ce+"px",this._style.height&&(this._style.height=me+"px",this.container.style.height=this._style.height)),this.lastPageX=te.pageX,this.lastPageY=te.pageY}}resizeEnd(te){this.resizing&&(this.resizing=!1,le.D.removeClass(this.document.body,"p-unselectable-text"),this.dialogRef.resizeEnd(te))}initDrag(te){le.D.hasClass(te.target,"p-dialog-header-icon")||le.D.hasClass(te.target.parentElement,"p-dialog-header-icon")||this.config.draggable&&(this.dragging=!0,this.lastPageX=te.pageX,this.lastPageY=te.pageY,this.container.style.margin="0",le.D.addClass(this.document.body,"p-unselectable-text"),this.dialogRef.dragStart(te))}onDrag(te){if(this.dragging){let ne=le.D.getOuterWidth(this.container),ie=le.D.getOuterHeight(this.container),re=te.pageX-this.lastPageX,ce=te.pageY-this.lastPageY,de=this.container.getBoundingClientRect(),ue=de.left+re,me=de.top+ce,ge=le.D.getViewport();this.container.style.position="fixed",this.keepInViewport?(ue>=this.minX&&ue+ne<ge.width&&(this._style.left=ue+"px",this.lastPageX=te.pageX,this.container.style.left=ue+"px"),me>=this.minY&&me+ie<ge.height&&(this._style.top=me+"px",this.lastPageY=te.pageY,this.container.style.top=me+"px")):(this.lastPageX=te.pageX,this.container.style.left=ue+"px",this.lastPageY=te.pageY,this.container.style.top=me+"px")}}endDrag(te){this.dragging&&(this.dragging=!1,le.D.removeClass(this.document.body,"p-unselectable-text"),this.dialogRef.dragEnd(te),this.cd.detectChanges())}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}bindDocumentDragListener(){(0,de.UE)(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentDragListener=this.renderer.listen(this.document,"mousemove",this.onDrag.bind(this))}))}bindDocumentDragEndListener(){(0,de.UE)(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentDragEndListener=this.renderer.listen(this.document,"mouseup",this.endDrag.bind(this))}))}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragListener=null)}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentResizeListeners(){(0,de.UE)(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentResizeListener=this.renderer.listen(this.document,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document,"mouseup",this.resizeEnd.bind(this))}))}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindGlobalListeners(){!1!==this.config.closeOnEscape&&this.bindDocumentEscapeListener(),this.config.resizable&&this.bindDocumentResizeListeners(),this.config.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener())}unbindGlobalListeners(){this.unbindDocumentEscapeListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener()}bindDocumentEscapeListener(){const te=this.maskViewChild?this.maskViewChild.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(te,"keydown",(te=>{27==te.which&&parseInt(this.container.style.zIndex)==be.Q$.getCurrent()&&this.hide()}))}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}ngOnDestroy(){this.onContainerDestroy(),this.componentRef&&this.componentRef.destroy(),this.destroyStyle()}static ɵfac=function DynamicDialogComponent_Factory(te){return new(te||DynamicDialogComponent)(re.rXU(de.qQ),re.rXU(re.Agw),re.rXU(re.gRc),re.rXU(re.sFG),re.rXU(DynamicDialogConfig),re.rXU(DynamicDialogRef),re.rXU(re.SKi),re.rXU(ue.r1),re.rXU(DynamicDialogComponent,12))};static ɵcmp=re.VBU({type:DynamicDialogComponent,selectors:[["p-dynamicDialog"]],viewQuery:function DynamicDialogComponent_Query(te,ne){if(1&te&&(re.GBs(xe,5),re.GBs(ye,5),re.GBs(we,5),re.GBs(ke,5),re.GBs(Se,5)),2&te){let te;re.mGM(te=re.lsd())&&(ne.insertionPoint=te.first),re.mGM(te=re.lsd())&&(ne.maskViewChild=te.first),re.mGM(te=re.lsd())&&(ne.contentViewChild=te.first),re.mGM(te=re.lsd())&&(ne.footerViewChild=te.first),re.mGM(te=re.lsd())&&(ne.headerViewChild=te.first)}},hostAttrs:[1,"p-element"],decls:3,vars:14,consts:[[3,"ngClass"],["mask",""],["role","dialog","pFocusTrap","",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["role","dialog","pFocusTrap","",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[1,"p-dialog-content",3,"ngStyle"],["content",""],[4,"ngIf"],[4,"ngComponentOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],[1,"p-dialog-title",3,"id"],[1,"p-dialog-header-icons"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","role","button",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass"],["type","button","role","button",3,"ngClass","click","keydown.enter"],["pDynamicDialogContent",""],[1,"p-dialog-footer"],["footer",""]],template:function DynamicDialogComponent_Template(te,ne){1&te&&(re.j41(0,"div",0,1),re.DNE(2,DynamicDialogComponent_div_2_Template,9,24,"div",2),re.k0s()),2&te&&(re.HbH(ne.config.maskStyleClass),re.Y8G("ngClass",re.zJS(4,_c8,[!1!==ne.config.modal,"left"===ne.position,"right"===ne.position,"top"===ne.position,"bottom"===ne.position,"topleft"===ne.position||"top-left"===ne.position,"topright"===ne.position||"top-right"===ne.position,"bottomleft"===ne.position||"bottom-left"===ne.position,"bottomright"===ne.position||"bottom-right"===ne.position])),re.R7$(2),re.Y8G("ngIf",ne.visible))},dependencies:()=>[de.YU,de.OI,de.bT,de.B3,fe.Y,_e.o,ge.A,me.s,xe],styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[(0,ce.hZ)("animation",[(0,ce.kY)("void => visible",[(0,ce.sM)(Ee)]),(0,ce.kY)("visible => void",[(0,ce.sM)(Me)])])]}})}return DynamicDialogComponent})();class DynamicDialogInjector{_parentInjector;_additionalTokens;constructor(te,ne){this._parentInjector=te,this._additionalTokens=ne}get(te,ne,ie){const re=this._additionalTokens.get(te);return re||this._parentInjector.get(te,ne)}}let Re=(()=>{class DialogService{appRef;injector;document;dialogComponentRefMap=new Map;constructor(te,ne,ie){this.appRef=te,this.injector=ne,this.document=ie}open(te,ne){if(!this.duplicationPermission(te,ne))return null;const ie=this.appendDialogComponentToBody(ne,te);return this.dialogComponentRefMap.get(ie).instance.childComponentType=te,ie}getInstance(te){return this.dialogComponentRefMap.get(te).instance}appendDialogComponentToBody(te,ne){const ie=new WeakMap;ie.set(DynamicDialogConfig,te);const ce=new DynamicDialogRef;ie.set(DynamicDialogRef,ce);const de=ce.onClose.subscribe((()=>{this.dialogComponentRefMap.get(ce).instance.close()})),ue=ce.onDestroy.subscribe((()=>{this.removeDialogComponentFromBody(ce),ue.unsubscribe(),de.unsubscribe()})),me=(0,re.a0P)(Ne,{environmentInjector:this.appRef.injector,elementInjector:new DynamicDialogInjector(this.injector,ie)});this.appRef.attachView(me.hostView);const ge=me.hostView.rootNodes[0];return te.appendTo&&"body"!==te.appendTo?le.D.appendChild(ge,te.appendTo):this.document.body.appendChild(ge),this.dialogComponentRefMap.set(ce,me),ce}removeDialogComponentFromBody(te){if(!te||!this.dialogComponentRefMap.has(te))return;const ne=this.dialogComponentRefMap.get(te);this.appRef.detachView(ne.hostView),ne.destroy(),this.dialogComponentRefMap.delete(te)}duplicationPermission(te,ne){if(ne.duplicate)return!0;let ie=!0;for(const[ne,re]of this.dialogComponentRefMap)if(re.instance.childComponentType===te){ie=!1;break}return ie}static ɵfac=function DialogService_Factory(te){return new(te||DialogService)(re.KVO(re.o8S),re.KVO(re.zZn),re.KVO(de.qQ))};static ɵprov=re.jDH({token:DialogService,factory:DialogService.ɵfac})}return DialogService})()},5708:(te,ne,ie)=>{"use strict";ie.d(ne,{V:()=>me,f:()=>ge});var re=ie(4460),le=ie(3107),ce=ie(3828),de=ie(5656);const ue=["*"];let me=(()=>{class FloatLabel{static ɵfac=function FloatLabel_Factory(te){return new(te||FloatLabel)};static ɵcmp=le.VBU({type:FloatLabel,selectors:[["p-floatLabel"]],ngContentSelectors:ue,decls:2,vars:0,consts:[[1,"p-float-label"]],template:function FloatLabel_Template(te,ne){1&te&&(le.NAR(),le.j41(0,"span",0),le.SdG(1),le.k0s())},encapsulation:2,changeDetection:0})}return FloatLabel})(),ge=(()=>{class FloatLabelModule{static ɵfac=function FloatLabelModule_Factory(te){return new(te||FloatLabelModule)};static ɵmod=le.$C({type:FloatLabelModule});static ɵinj=le.G2t({imports:[re.MD,ce.Gg,de.iI,ce.Gg]})}return FloatLabelModule})()},777:(te,ne,ie)=>{"use strict";ie.d(ne,{A:()=>ue,s:()=>de});var re=ie(5724),le=ie(4460),ce=ie(3107);let de=(()=>{class FocusTrap{pFocusTrapDisabled=!1;platformId=(0,ce.WQX)(ce.Agw);host=(0,ce.WQX)(ce.aKT);document=(0,ce.WQX)(le.qQ);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){(0,le.UE)(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(te){te.pFocusTrapDisabled&&(0,le.UE)(this.platformId)&&(te.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(te){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${te??""}`}createHiddenFocusableElements(){const createFocusableElement=te=>re.D.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:te?.bind(this)});this.firstHiddenFocusableElement=createFocusableElement(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=createFocusableElement(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.host.nativeElement.prepend(this.firstHiddenFocusableElement),this.host.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(te){const{currentTarget:ne,relatedTarget:ie}=te,le=ie!==this.lastHiddenFocusableElement&&this.host.nativeElement?.contains(ie)?this.lastHiddenFocusableElement:re.D.getFirstFocusableElement(ne.parentElement,":not(.p-hidden-focusable)");re.D.focus(le)}onLastHiddenElementFocus(te){const{currentTarget:ne,relatedTarget:ie}=te,le=ie!==this.firstHiddenFocusableElement&&this.host.nativeElement?.contains(ie)?this.firstHiddenFocusableElement:re.D.getLastFocusableElement(ne.parentElement,":not(.p-hidden-focusable)");re.D.focus(le)}static ɵfac=function FocusTrap_Factory(te){return new(te||FocusTrap)};static ɵdir=ce.FsC({type:FocusTrap,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],inputs:{pFocusTrapDisabled:[ce.Mj6.HasDecoratorInputTransform,"pFocusTrapDisabled","pFocusTrapDisabled",ce.L39]},features:[ce.GFd,ce.OA$]})}return FocusTrap})(),ue=(()=>{class FocusTrapModule{static ɵfac=function FocusTrapModule_Factory(te){return new(te||FocusTrapModule)};static ɵmod=ce.$C({type:FocusTrapModule});static ɵinj=ce.G2t({imports:[le.MD]})}return FocusTrapModule})()},5288:(te,ne,ie)=>{"use strict";ie.d(ne,{R:()=>ce});var re=ie(3107),le=ie(1196);let ce=(()=>{class AngleDownIcon extends le.h{static ɵfac=(()=>{let te;return function AngleDownIcon_Factory(ne){return(te||(te=re.xGo(AngleDownIcon)))(ne||AngleDownIcon)}})();static ɵcmp=re.VBU({type:AngleDownIcon,selectors:[["AngleDownIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function AngleDownIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0),re.nrm(1,"path",1),re.k0s()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return AngleDownIcon})()},5598:(te,ne,ie)=>{"use strict";ie.d(ne,{D:()=>ce});var re=ie(3107),le=ie(1196);let ce=(()=>{class AngleRightIcon extends le.h{static ɵfac=(()=>{let te;return function AngleRightIcon_Factory(ne){return(te||(te=re.xGo(AngleRightIcon)))(ne||AngleRightIcon)}})();static ɵcmp=re.VBU({type:AngleRightIcon,selectors:[["AngleRightIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function AngleRightIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0),re.nrm(1,"path",1),re.k0s()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return AngleRightIcon})()},7825:(te,ne,ie)=>{"use strict";ie.d(ne,{S:()=>ce});var re=ie(3107),le=ie(1196);let ce=(()=>{class CheckIcon extends le.h{static ɵfac=(()=>{let te;return function CheckIcon_Factory(ne){return(te||(te=re.xGo(CheckIcon)))(ne||CheckIcon)}})();static ɵcmp=re.VBU({type:CheckIcon,selectors:[["CheckIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function CheckIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0),re.nrm(1,"path",1),re.k0s()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return CheckIcon})()},60:(te,ne,ie)=>{"use strict";ie.d(ne,{D:()=>ce});var re=ie(3107),le=ie(1196);let ce=(()=>{class ChevronDownIcon extends le.h{static ɵfac=(()=>{let te;return function ChevronDownIcon_Factory(ne){return(te||(te=re.xGo(ChevronDownIcon)))(ne||ChevronDownIcon)}})();static ɵcmp=re.VBU({type:ChevronDownIcon,selectors:[["ChevronDownIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function ChevronDownIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0),re.nrm(1,"path",1),re.k0s()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return ChevronDownIcon})()},9135:(te,ne,ie)=>{"use strict";ie.d(ne,{Y:()=>ce});var re=ie(3107),le=ie(1196);let ce=(()=>{class ChevronLeftIcon extends le.h{static ɵfac=(()=>{let te;return function ChevronLeftIcon_Factory(ne){return(te||(te=re.xGo(ChevronLeftIcon)))(ne||ChevronLeftIcon)}})();static ɵcmp=re.VBU({type:ChevronLeftIcon,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function ChevronLeftIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0),re.nrm(1,"path",1),re.k0s()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return ChevronLeftIcon})()},2778:(te,ne,ie)=>{"use strict";ie.d(ne,{v:()=>ce});var re=ie(3107),le=ie(1196);let ce=(()=>{class ChevronRightIcon extends le.h{static ɵfac=(()=>{let te;return function ChevronRightIcon_Factory(ne){return(te||(te=re.xGo(ChevronRightIcon)))(ne||ChevronRightIcon)}})();static ɵcmp=re.VBU({type:ChevronRightIcon,selectors:[["ChevronRightIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function ChevronRightIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0),re.nrm(1,"path",1),re.k0s()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return ChevronRightIcon})()},6253:(te,ne,ie)=>{"use strict";ie.d(ne,{Q:()=>de});var re=ie(4460),le=ie(3107),ce=ie(1196);let de=(()=>{class MinusIcon extends ce.h{static ɵfac=(()=>{let te;return function MinusIcon_Factory(ne){return(te||(te=le.xGo(MinusIcon)))(ne||MinusIcon)}})();static ɵcmp=le.VBU({type:MinusIcon,selectors:[["MinusIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function MinusIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0),le.nrm(1,"path",1),le.k0s()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},dependencies:[re.MD],encapsulation:2})}return MinusIcon})()},883:(te,ne,ie)=>{"use strict";ie.d(ne,{c:()=>de});var re=ie(3107),le=ie(1196),ce=ie(1939);let de=(()=>{class PlusIcon extends le.h{pathId;ngOnInit(){this.pathId="url(#"+(0,ce._Y)()+")"}static ɵfac=(()=>{let te;return function PlusIcon_Factory(ne){return(te||(te=re.xGo(PlusIcon)))(ne||PlusIcon)}})();static ɵcmp=re.VBU({type:PlusIcon,selectors:[["PlusIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function PlusIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0)(1,"g"),re.nrm(2,"path",1),re.k0s(),re.j41(3,"defs")(4,"clipPath",2),re.nrm(5,"rect",3),re.k0s()()()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),re.R7$(),re.BMQ("clip-path",ne.pathId),re.R7$(3),re.Y8G("id",ne.pathId))},encapsulation:2})}return PlusIcon})()},9935:(te,ne,ie)=>{"use strict";ie.d(ne,{W:()=>de});var re=ie(3107),le=ie(1196),ce=ie(1939);let de=(()=>{class SearchIcon extends le.h{pathId;ngOnInit(){this.pathId="url(#"+(0,ce._Y)()+")"}static ɵfac=(()=>{let te;return function SearchIcon_Factory(ne){return(te||(te=re.xGo(SearchIcon)))(ne||SearchIcon)}})();static ɵcmp=re.VBU({type:SearchIcon,selectors:[["SearchIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function SearchIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0)(1,"g"),re.nrm(2,"path",1),re.k0s(),re.j41(3,"defs")(4,"clipPath",2),re.nrm(5,"rect",3),re.k0s()()()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),re.R7$(),re.BMQ("clip-path",ne.pathId),re.R7$(3),re.Y8G("id",ne.pathId))},encapsulation:2})}return SearchIcon})()},5774:(te,ne,ie)=>{"use strict";ie.d(ne,{N:()=>de});var re=ie(3107),le=ie(1196),ce=ie(1939);let de=(()=>{class SpinnerIcon extends le.h{pathId;ngOnInit(){this.pathId="url(#"+(0,ce._Y)()+")"}static ɵfac=(()=>{let te;return function SpinnerIcon_Factory(ne){return(te||(te=re.xGo(SpinnerIcon)))(ne||SpinnerIcon)}})();static ɵcmp=re.VBU({type:SpinnerIcon,selectors:[["SpinnerIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function SpinnerIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0)(1,"g"),re.nrm(2,"path",1),re.k0s(),re.j41(3,"defs")(4,"clipPath",2),re.nrm(5,"rect",3),re.k0s()()()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),re.R7$(),re.BMQ("clip-path",ne.pathId),re.R7$(3),re.Y8G("id",ne.pathId))},encapsulation:2})}return SpinnerIcon})()},239:(te,ne,ie)=>{"use strict";ie.d(ne,{A:()=>ce});var re=ie(3107),le=ie(1196);let ce=(()=>{class TimesIcon extends le.h{static ɵfac=(()=>{let te;return function TimesIcon_Factory(ne){return(te||(te=re.xGo(TimesIcon)))(ne||TimesIcon)}})();static ɵcmp=re.VBU({type:TimesIcon,selectors:[["TimesIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function TimesIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0),re.nrm(1,"path",1),re.k0s()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return TimesIcon})()},8471:(te,ne,ie)=>{"use strict";ie.d(ne,{I:()=>de});var re=ie(3107),le=ie(1196),ce=ie(1939);let de=(()=>{class TimesCircleIcon extends le.h{pathId;ngOnInit(){this.pathId="url(#"+(0,ce._Y)()+")"}static ɵfac=(()=>{let te;return function TimesCircleIcon_Factory(ne){return(te||(te=re.xGo(TimesCircleIcon)))(ne||TimesCircleIcon)}})();static ɵcmp=re.VBU({type:TimesCircleIcon,selectors:[["TimesCircleIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function TimesCircleIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0)(1,"g"),re.nrm(2,"path",1),re.k0s(),re.j41(3,"defs")(4,"clipPath",2),re.nrm(5,"rect",3),re.k0s()()()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),re.R7$(),re.BMQ("clip-path",ne.pathId),re.R7$(3),re.Y8G("id",ne.pathId))},encapsulation:2})}return TimesCircleIcon})()},9605:(te,ne,ie)=>{"use strict";ie.d(ne,{Y:()=>de});var re=ie(3107),le=ie(1196),ce=ie(1939);let de=(()=>{class WindowMaximizeIcon extends le.h{pathId;ngOnInit(){this.pathId="url(#"+(0,ce._Y)()+")"}static ɵfac=(()=>{let te;return function WindowMaximizeIcon_Factory(ne){return(te||(te=re.xGo(WindowMaximizeIcon)))(ne||WindowMaximizeIcon)}})();static ɵcmp=re.VBU({type:WindowMaximizeIcon,selectors:[["WindowMaximizeIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function WindowMaximizeIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0)(1,"g"),re.nrm(2,"path",1),re.k0s(),re.j41(3,"defs")(4,"clipPath",2),re.nrm(5,"rect",3),re.k0s()()()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),re.R7$(),re.BMQ("clip-path",ne.pathId),re.R7$(3),re.Y8G("id",ne.pathId))},encapsulation:2})}return WindowMaximizeIcon})()},5311:(te,ne,ie)=>{"use strict";ie.d(ne,{o:()=>de});var re=ie(3107),le=ie(1196),ce=ie(1939);let de=(()=>{class WindowMinimizeIcon extends le.h{pathId;ngOnInit(){this.pathId="url(#"+(0,ce._Y)()+")"}static ɵfac=(()=>{let te;return function WindowMinimizeIcon_Factory(ne){return(te||(te=re.xGo(WindowMinimizeIcon)))(ne||WindowMinimizeIcon)}})();static ɵcmp=re.VBU({type:WindowMinimizeIcon,selectors:[["WindowMinimizeIcon"]],standalone:!0,features:[re.Vt3,re.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function WindowMinimizeIcon_Template(te,ne){1&te&&(re.qSk(),re.j41(0,"svg",0)(1,"g"),re.nrm(2,"path",1),re.k0s(),re.j41(3,"defs")(4,"clipPath",2),re.nrm(5,"rect",3),re.k0s()()()),2&te&&(re.HbH(ne.getClassNames()),re.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),re.R7$(),re.BMQ("clip-path",ne.pathId),re.R7$(3),re.Y8G("id",ne.pathId))},encapsulation:2})}return WindowMinimizeIcon})()},1572:(te,ne,ie)=>{"use strict";ie.d(ne,{N5:()=>Ce,Zn:()=>ye});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(3828),ue=ie(2583),me=ie(5724),ge=ie(239),fe=ie(7721);const _e=["input"];function InputMask_ng_container_2_TimesIcon_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"TimesIcon",5),le.bIt("click",(function InputMask_ng_container_2_TimesIcon_1_Template_TimesIcon_click_0_listener(){le.eBV(te);const ne=le.XpG(2);return le.Njj(ne.clear())})),le.k0s()}2&te&&(le.Y8G("styleClass","p-inputmask-clear-icon"),le.BMQ("data-pc-section","clearIcon"))}function InputMask_ng_container_2_span_2_1_ng_template_0_Template(te,ne){}function InputMask_ng_container_2_span_2_1_Template(te,ne){1&te&&le.DNE(0,InputMask_ng_container_2_span_2_1_ng_template_0_Template,0,0,"ng-template")}function InputMask_ng_container_2_span_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"span",6),le.bIt("click",(function InputMask_ng_container_2_span_2_Template_span_click_0_listener(){le.eBV(te);const ne=le.XpG(2);return le.Njj(ne.clear())})),le.DNE(1,InputMask_ng_container_2_span_2_1_Template,1,0,null,7),le.k0s()}if(2&te){const te=le.XpG(2);le.BMQ("data-pc-section","clearIcon"),le.R7$(),le.Y8G("ngTemplateOutlet",te.clearIconTemplate)}}function InputMask_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,InputMask_ng_container_2_TimesIcon_1_Template,1,2,"TimesIcon",3)(2,InputMask_ng_container_2_span_2_Template,2,2,"span",4),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",!te.clearIconTemplate),le.R7$(),le.Y8G("ngIf",te.clearIconTemplate)}}const be={provide:ce.kq,useExisting:(0,le.Rfq)((()=>Ce)),multi:!0};let Ce=(()=>{class InputMask{document;platformId;el;cd;config;type="text";slotChar="_";autoClear=!0;showClear=!1;style;inputId;styleClass;placeholder;size;maxlength;tabindex;title;variant="outlined";ariaLabel;ariaLabelledBy;ariaRequired;disabled;readonly;unmask;name;required;characterPattern="[A-Za-z]";autofocus;set autoFocus(te){this.autofocus=te,console.warn("autoFocus is deprecated. Use autofocus property instead.")}autocomplete;keepBuffer=!1;get mask(){return this._mask}set mask(te){this._mask=te,this.initMask(),this.writeValue(""),this.onModelChange(this.value)}onComplete=new le.bkB;onFocus=new le.bkB;onBlur=new le.bkB;onInput=new le.bkB;onKeydown=new le.bkB;onClear=new le.bkB;inputViewChild;templates;clearIconTemplate;value;_mask;onModelChange=()=>{};onModelTouched=()=>{};input;filled;defs;tests;partialPosition;firstNonMaskPos;lastRequiredNonMaskPos;len;oldVal;buffer;defaultBuffer;focusText;caretTimeoutId;androidChrome=!0;focused;_variant="outlined";get inputClass(){return{"p-inputmask":!0}}constructor(te,ne,ie,re,le){this.document=te,this.platformId=ne,this.el=ie,this.cd=re,this.config=le}ngOnInit(){if((0,re.UE)(this.platformId)){let te=navigator.userAgent;this.androidChrome=/chrome/i.test(te)&&/android/i.test(te)}this.initMask()}ngAfterContentInit(){this.templates.forEach((te=>{if("clearicon"===te.getType())this.clearIconTemplate=te.template}))}initMask(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:this.characterPattern,"*":`${this.characterPattern}|[0-9]`};let te=this.mask.split("");for(let ne=0;ne<te.length;ne++){let ie=te[ne];"?"==ie?(this.len--,this.partialPosition=ne):this.defs[ie]?(this.tests.push(new RegExp(this.defs[ie])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),ne<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(let ne=0;ne<te.length;ne++){let ie=te[ne];"?"!=ie&&(this.defs[ie]?this.buffer.push(this.getPlaceholder(ne)):this.buffer.push(ie))}this.defaultBuffer=this.buffer.join("")}writeValue(te){this.value=te,this.inputViewChild&&this.inputViewChild.nativeElement&&(null==this.value||null==this.value?this.inputViewChild.nativeElement.value="":this.inputViewChild.nativeElement.value=this.value,this.checkVal(),this.focusText=this.inputViewChild.nativeElement.value,this.updateFilledState())}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}caret(te,ne){let ie,re,le;if(this.inputViewChild?.nativeElement.offsetParent&&this.inputViewChild.nativeElement===this.inputViewChild.nativeElement.ownerDocument.activeElement)return"number"!=typeof te?(this.inputViewChild.nativeElement.setSelectionRange?(re=this.inputViewChild.nativeElement.selectionStart,le=this.inputViewChild.nativeElement.selectionEnd):this.document&&this.document.selection.createRange&&(ie=this.document.createRange(),re=0-ie.duplicate().moveStart("character",-1e5),le=re+ie.text.length),{begin:re,end:le}):(re=te,le="number"==typeof ne?ne:re,void(this.inputViewChild.nativeElement.setSelectionRange?this.inputViewChild.nativeElement.setSelectionRange(re,le):this.inputViewChild.nativeElement.createTextRange&&(ie=this.inputViewChild.nativeElement.createTextRange(),ie.collapse(!0),ie.moveEnd("character",le),ie.moveStart("character",re),ie.select())))}isCompleted(){for(let te=this.firstNonMaskPos;te<=this.lastRequiredNonMaskPos;te++)if(this.tests[te]&&this.buffer[te]===this.getPlaceholder(te))return!1;return!0}getPlaceholder(te){return te<this.slotChar.length?this.slotChar.charAt(te):this.slotChar.charAt(0)}seekNext(te){for(;++te<this.len&&!this.tests[te];);return te}seekPrev(te){for(;--te>=0&&!this.tests[te];);return te}shiftL(te,ne){let ie,re;if(!(te<0)){for(ie=te,re=this.seekNext(ne);ie<this.len;ie++)if(this.tests[ie]){if(!(re<this.len&&this.tests[ie].test(this.buffer[re])))break;this.buffer[ie]=this.buffer[re],this.buffer[re]=this.getPlaceholder(re),re=this.seekNext(re)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,te))}}shiftR(te){let ne,ie,re,le;for(ne=te,ie=this.getPlaceholder(te);ne<this.len;ne++)if(this.tests[ne]){if(re=this.seekNext(ne),le=this.buffer[ne],this.buffer[ne]=ie,!(re<this.len&&this.tests[re].test(le)))break;ie=le}}handleAndroidInput(te){var ne=this.inputViewChild?.nativeElement.value,ie=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>ne.length){for(this.checkVal(!0);ie.begin>0&&!this.tests[ie.begin-1];)ie.begin--;if(0===ie.begin)for(;ie.begin<this.firstNonMaskPos&&!this.tests[ie.begin];)ie.begin++;setTimeout((()=>{this.caret(ie.begin,ie.begin),this.updateModel(te),this.isCompleted()&&this.onComplete.emit()}),0)}else{for(this.checkVal(!0);ie.begin<this.len&&!this.tests[ie.begin];)ie.begin++;setTimeout((()=>{this.caret(ie.begin,ie.begin),this.updateModel(te),this.isCompleted()&&this.onComplete.emit()}),0)}}onInputBlur(te){if(this.focused=!1,this.onModelTouched(),this.keepBuffer||this.checkVal(),this.updateFilledState(),this.onBlur.emit(te),this.inputViewChild?.nativeElement.value!=this.focusText||this.inputViewChild?.nativeElement.value!=this.value){this.updateModel(te);let ne=this.document.createEvent("HTMLEvents");ne.initEvent("change",!0,!1),this.inputViewChild?.nativeElement.dispatchEvent(ne)}}onInputKeydown(te){if(this.readonly)return;let ne,ie,le,ce,de=te.which||te.keyCode;(0,re.UE)(this.platformId)&&(ce=/iphone/i.test(me.D.getUserAgent())),this.oldVal=this.inputViewChild?.nativeElement.value,this.onKeydown.emit(te),8===de||46===de||ce&&127===de?(ne=this.caret(),ie=ne.begin,le=ne.end,le-ie==0&&(ie=46!==de?this.seekPrev(ie):le=this.seekNext(ie-1),le=46===de?this.seekNext(le):le),this.clearBuffer(ie,le),this.keepBuffer?this.shiftL(ie,le-2):this.shiftL(ie,le-1),this.updateModel(te),this.onInput.emit(te),te.preventDefault()):13===de?(this.onInputBlur(te),this.updateModel(te)):27===de&&(this.inputViewChild.nativeElement.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(te),te.preventDefault())}onKeyPress(te){if(!this.readonly){var ne,ie,re,le,ce=te.which||te.keyCode,de=this.caret();if(!(te.ctrlKey||te.altKey||te.metaKey||ce<32||ce>34&&ce<41)){if(ce&&13!==ce){if(de.end-de.begin!=0&&(this.clearBuffer(de.begin,de.end),this.shiftL(de.begin,de.end-1)),(ne=this.seekNext(de.begin-1))<this.len&&(ie=String.fromCharCode(ce),this.tests[ne].test(ie))){if(this.shiftR(ne),this.buffer[ne]=ie,this.writeBuffer(),re=this.seekNext(ne),me.D.isClient()&&/android/i.test(me.D.getUserAgent())){setTimeout((()=>{this.caret(re)}),0)}else this.caret(re);de.begin<=this.lastRequiredNonMaskPos&&(le=this.isCompleted()),this.onInput.emit(te)}te.preventDefault()}this.updateModel(te),this.updateFilledState(),le&&this.onComplete.emit()}}}clearBuffer(te,ne){if(!this.keepBuffer){let ie;for(ie=te;ie<ne&&ie<this.len;ie++)this.tests[ie]&&(this.buffer[ie]=this.getPlaceholder(ie))}}writeBuffer(){this.inputViewChild.nativeElement.value=this.buffer.join("")}checkVal(te){let ne,ie,re,le=this.inputViewChild?.nativeElement.value,ce=-1;for(ne=0,re=0;ne<this.len;ne++)if(this.tests[ne]){for(this.buffer[ne]=this.getPlaceholder(ne);re++<le.length;)if(ie=le.charAt(re-1),this.tests[ne].test(ie)){this.keepBuffer||(this.buffer[ne]=ie),ce=ne;break}if(re>le.length){this.clearBuffer(ne+1,this.len);break}}else this.buffer[ne]===le.charAt(re)&&re++,ne<this.partialPosition&&(ce=ne);return te?this.writeBuffer():ce+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.inputViewChild?.nativeElement.value&&(this.inputViewChild.nativeElement.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.inputViewChild.nativeElement.value=this.inputViewChild?.nativeElement.value.substring(0,ce+1)),this.partialPosition?ne:this.firstNonMaskPos}onInputFocus(te){if(this.readonly)return;let ne;this.focused=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.inputViewChild?.nativeElement.value,ne=this.keepBuffer?this.inputViewChild?.nativeElement.value.length:this.checkVal(),this.caretTimeoutId=setTimeout((()=>{this.inputViewChild?.nativeElement===this.inputViewChild?.nativeElement.ownerDocument.activeElement&&(this.writeBuffer(),ne==this.mask?.replace("?","").length?this.caret(0,ne):this.caret(ne))}),10),this.onFocus.emit(te)}onInputChange(te){this.androidChrome?this.handleAndroidInput(te):this.handleInputChange(te),this.onInput.emit(te)}handleInputChange(te){this.readonly||this.disabled||setTimeout((()=>{var ne=this.checkVal(!0);this.caret(ne),this.updateModel(te),this.isCompleted()&&this.onComplete.emit()}),0)}getUnmaskedValue(){let te=[];for(let ne=0;ne<this.buffer.length;ne++){let ie=this.buffer[ne];this.tests[ne]&&ie!=this.getPlaceholder(ne)&&te.push(ie)}return te.join("")}updateModel(te){const ne=this.unmask?this.getUnmaskedValue():te.target.value;null===ne&&void 0===ne||(this.value=ne,this.onModelChange(this.value))}updateFilledState(){this.filled=this.inputViewChild?.nativeElement&&""!=this.inputViewChild.nativeElement.value}focus(){this.inputViewChild?.nativeElement.focus()}clear(){this.inputViewChild.nativeElement.value="",this.value=null,this.onModelChange(this.value),this.onClear.emit()}static ɵfac=function InputMask_Factory(te){return new(te||InputMask)(le.rXU(re.qQ),le.rXU(le.Agw),le.rXU(le.aKT),le.rXU(le.gRc),le.rXU(de.r1))};static ɵcmp=le.VBU({type:InputMask,selectors:[["p-inputMask"]],contentQueries:function InputMask_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,de.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},viewQuery:function InputMask_Query(te,ne){if(1&te&&le.GBs(_e,7),2&te){let te;le.mGM(te=le.lsd())&&(ne.inputViewChild=te.first)}},hostAttrs:[1,"p-element"],hostVars:6,hostBindings:function InputMask_HostBindings(te,ne){2&te&&le.AVh("p-inputwrapper-filled",ne.filled)("p-inputwrapper-focus",ne.focused)("p-inputmask-clearable",ne.showClear&&!ne.disabled)},inputs:{type:"type",slotChar:"slotChar",autoClear:[le.Mj6.HasDecoratorInputTransform,"autoClear","autoClear",le.L39],showClear:[le.Mj6.HasDecoratorInputTransform,"showClear","showClear",le.L39],style:"style",inputId:"inputId",styleClass:"styleClass",placeholder:"placeholder",size:[le.Mj6.HasDecoratorInputTransform,"size","size",le.Udg],maxlength:[le.Mj6.HasDecoratorInputTransform,"maxlength","maxlength",le.Udg],tabindex:"tabindex",title:"title",variant:"variant",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",ariaRequired:[le.Mj6.HasDecoratorInputTransform,"ariaRequired","ariaRequired",le.L39],disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],readonly:[le.Mj6.HasDecoratorInputTransform,"readonly","readonly",le.L39],unmask:[le.Mj6.HasDecoratorInputTransform,"unmask","unmask",le.L39],name:"name",required:[le.Mj6.HasDecoratorInputTransform,"required","required",le.L39],characterPattern:"characterPattern",autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39],autoFocus:[le.Mj6.HasDecoratorInputTransform,"autoFocus","autoFocus",le.L39],autocomplete:"autocomplete",keepBuffer:[le.Mj6.HasDecoratorInputTransform,"keepBuffer","keepBuffer",le.L39],mask:"mask"},outputs:{onComplete:"onComplete",onFocus:"onFocus",onBlur:"onBlur",onInput:"onInput",onKeydown:"onKeydown",onClear:"onClear"},features:[le.Jv_([be]),le.GFd],decls:3,vars:24,consts:[["pInputText","","pAutoFocus","",3,"ngClass","ngStyle","disabled","readonly","variant","autofocus","focus","blur","keydown","keypress","input","paste"],["input",""],[4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-inputmask-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-inputmask-clear-icon",3,"click"],[4,"ngTemplateOutlet"]],template:function InputMask_Template(te,ne){1&te&&(le.j41(0,"input",0,1),le.bIt("focus",(function InputMask_Template_input_focus_0_listener(te){return ne.onInputFocus(te)}))("blur",(function InputMask_Template_input_blur_0_listener(te){return ne.onInputBlur(te)}))("keydown",(function InputMask_Template_input_keydown_0_listener(te){return ne.onInputKeydown(te)}))("keypress",(function InputMask_Template_input_keypress_0_listener(te){return ne.onKeyPress(te)}))("input",(function InputMask_Template_input_input_0_listener(te){return ne.onInputChange(te)}))("paste",(function InputMask_Template_input_paste_0_listener(te){return ne.handleInputChange(te)})),le.k0s(),le.DNE(2,InputMask_ng_container_2_Template,3,2,"ng-container",2)),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngClass",ne.inputClass)("ngStyle",ne.style)("disabled",ne.disabled)("readonly",ne.readonly)("variant",ne.variant)("autofocus",ne.autofocus),le.BMQ("id",ne.inputId)("type",ne.type)("name",ne.name)("placeholder",ne.placeholder)("title",ne.title)("size",ne.size)("autocomplete",ne.autocomplete)("maxlength",ne.maxlength)("tabindex",ne.tabindex)("aria-label",ne.ariaLabel)("aria-labelledBy",ne.ariaLabelledBy)("aria-required",ne.ariaRequired)("required",ne.required)("data-pc-name","inputmask")("data-pc-section","root"),le.R7$(2),le.Y8G("ngIf",null!=ne.value&&ne.filled&&ne.showClear&&!ne.disabled))},dependencies:()=>[re.YU,re.bT,re.T3,re.B3,fe.S,ue.q,ge.A],styles:["@layer primeng{.p-inputmask-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputmask-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return InputMask})(),ye=(()=>{class InputMaskModule{static ɵfac=function InputMaskModule_Factory(te){return new(te||InputMaskModule)};static ɵmod=le.$C({type:InputMaskModule});static ɵinj=le.G2t({imports:[re.MD,fe.u,ue.u,ge.A,de.Gg]})}return InputMaskModule})()},3531:(te,ne,ie)=>{"use strict";ie.d(ne,{YI:()=>Se,O3:()=>xe});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(3828),ue=ie(2583),me=ie(7280),ge=ie(5724),fe=ie(5288),_e=ie(1196);let be=(()=>{class AngleUpIcon extends _e.h{static ɵfac=(()=>{let te;return function AngleUpIcon_Factory(ne){return(te||(te=le.xGo(AngleUpIcon)))(ne||AngleUpIcon)}})();static ɵcmp=le.VBU({type:AngleUpIcon,selectors:[["AngleUpIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function AngleUpIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0),le.nrm(1,"path",1),le.k0s()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return AngleUpIcon})();var Ce=ie(239),ye=ie(7721);const we=["input"];function InputNumber_ng_container_3_TimesIcon_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"TimesIcon",8),le.bIt("click",(function InputNumber_ng_container_3_TimesIcon_1_Template_TimesIcon_click_0_listener(){le.eBV(te);const ne=le.XpG(2);return le.Njj(ne.clear())})),le.k0s()}2&te&&(le.Y8G("ngClass","p-inputnumber-clear-icon"),le.BMQ("data-pc-section","clearIcon"))}function InputNumber_ng_container_3_span_2_1_ng_template_0_Template(te,ne){}function InputNumber_ng_container_3_span_2_1_Template(te,ne){1&te&&le.DNE(0,InputNumber_ng_container_3_span_2_1_ng_template_0_Template,0,0,"ng-template")}function InputNumber_ng_container_3_span_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"span",9),le.bIt("click",(function InputNumber_ng_container_3_span_2_Template_span_click_0_listener(){le.eBV(te);const ne=le.XpG(2);return le.Njj(ne.clear())})),le.DNE(1,InputNumber_ng_container_3_span_2_1_Template,1,0,null,10),le.k0s()}if(2&te){const te=le.XpG(2);le.BMQ("data-pc-section","clearIcon"),le.R7$(),le.Y8G("ngTemplateOutlet",te.clearIconTemplate)}}function InputNumber_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,InputNumber_ng_container_3_TimesIcon_1_Template,1,2,"TimesIcon",6)(2,InputNumber_ng_container_3_span_2_Template,2,2,"span",7),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",!te.clearIconTemplate),le.R7$(),le.Y8G("ngIf",te.clearIconTemplate)}}function InputNumber_span_4_span_2_Template(te,ne){if(1&te&&le.nrm(0,"span",14),2&te){const te=le.XpG(2);le.Y8G("ngClass",te.incrementButtonIcon),le.BMQ("data-pc-section","incrementbuttonicon")}}function InputNumber_span_4_ng_container_3_AngleUpIcon_1_Template(te,ne){1&te&&le.nrm(0,"AngleUpIcon"),2&te&&le.BMQ("data-pc-section","incrementbuttonicon")}function InputNumber_span_4_ng_container_3_2_ng_template_0_Template(te,ne){}function InputNumber_span_4_ng_container_3_2_Template(te,ne){1&te&&le.DNE(0,InputNumber_span_4_ng_container_3_2_ng_template_0_Template,0,0,"ng-template")}function InputNumber_span_4_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,InputNumber_span_4_ng_container_3_AngleUpIcon_1_Template,1,1,"AngleUpIcon",3)(2,InputNumber_span_4_ng_container_3_2_Template,1,0,null,10),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",!te.incrementButtonIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.incrementButtonIconTemplate)}}function InputNumber_span_4_span_5_Template(te,ne){if(1&te&&le.nrm(0,"span",14),2&te){const te=le.XpG(2);le.Y8G("ngClass",te.decrementButtonIcon),le.BMQ("data-pc-section","decrementbuttonicon")}}function InputNumber_span_4_ng_container_6_AngleDownIcon_1_Template(te,ne){1&te&&le.nrm(0,"AngleDownIcon"),2&te&&le.BMQ("data-pc-section","decrementbuttonicon")}function InputNumber_span_4_ng_container_6_2_ng_template_0_Template(te,ne){}function InputNumber_span_4_ng_container_6_2_Template(te,ne){1&te&&le.DNE(0,InputNumber_span_4_ng_container_6_2_ng_template_0_Template,0,0,"ng-template")}function InputNumber_span_4_ng_container_6_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,InputNumber_span_4_ng_container_6_AngleDownIcon_1_Template,1,1,"AngleDownIcon",3)(2,InputNumber_span_4_ng_container_6_2_Template,1,0,null,10),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",!te.decrementButtonIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.decrementButtonIconTemplate)}}const _c1=()=>({"p-inputnumber-button p-inputnumber-button-up":!0}),_c2=()=>({"p-inputnumber-button p-inputnumber-button-down":!0});function InputNumber_span_4_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"span",11)(1,"button",12),le.bIt("mousedown",(function InputNumber_span_4_Template_button_mousedown_1_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onUpButtonMouseDown(ne))}))("mouseup",(function InputNumber_span_4_Template_button_mouseup_1_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onUpButtonMouseUp())}))("mouseleave",(function InputNumber_span_4_Template_button_mouseleave_1_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onUpButtonMouseLeave())}))("keydown",(function InputNumber_span_4_Template_button_keydown_1_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onUpButtonKeyDown(ne))}))("keyup",(function InputNumber_span_4_Template_button_keyup_1_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onUpButtonKeyUp())})),le.DNE(2,InputNumber_span_4_span_2_Template,1,2,"span",13)(3,InputNumber_span_4_ng_container_3_Template,3,2,"ng-container",3),le.k0s(),le.j41(4,"button",12),le.bIt("mousedown",(function InputNumber_span_4_Template_button_mousedown_4_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onDownButtonMouseDown(ne))}))("mouseup",(function InputNumber_span_4_Template_button_mouseup_4_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onDownButtonMouseUp())}))("mouseleave",(function InputNumber_span_4_Template_button_mouseleave_4_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onDownButtonMouseLeave())}))("keydown",(function InputNumber_span_4_Template_button_keydown_4_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onDownButtonKeyDown(ne))}))("keyup",(function InputNumber_span_4_Template_button_keyup_4_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onDownButtonKeyUp())})),le.DNE(5,InputNumber_span_4_span_5_Template,1,2,"span",13)(6,InputNumber_span_4_ng_container_6_Template,3,2,"ng-container",3),le.k0s()()}if(2&te){const te=le.XpG();le.BMQ("data-pc-section","buttonGroup"),le.R7$(),le.HbH(te.incrementButtonClass),le.Y8G("ngClass",le.lJ4(17,_c1))("disabled",te.disabled),le.BMQ("aria-hidden",!0)("data-pc-section","incrementbutton"),le.R7$(),le.Y8G("ngIf",te.incrementButtonIcon),le.R7$(),le.Y8G("ngIf",!te.incrementButtonIcon),le.R7$(),le.HbH(te.decrementButtonClass),le.Y8G("ngClass",le.lJ4(18,_c2))("disabled",te.disabled),le.BMQ("aria-hidden",!0)("data-pc-section",te.decrementbutton),le.R7$(),le.Y8G("ngIf",te.decrementButtonIcon),le.R7$(),le.Y8G("ngIf",!te.decrementButtonIcon)}}function InputNumber_button_5_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",14),2&te){const te=le.XpG(2);le.Y8G("ngClass",te.incrementButtonIcon),le.BMQ("data-pc-section","incrementbuttonicon")}}function InputNumber_button_5_ng_container_2_AngleUpIcon_1_Template(te,ne){1&te&&le.nrm(0,"AngleUpIcon"),2&te&&le.BMQ("data-pc-section","incrementbuttonicon")}function InputNumber_button_5_ng_container_2_2_ng_template_0_Template(te,ne){}function InputNumber_button_5_ng_container_2_2_Template(te,ne){1&te&&le.DNE(0,InputNumber_button_5_ng_container_2_2_ng_template_0_Template,0,0,"ng-template")}function InputNumber_button_5_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,InputNumber_button_5_ng_container_2_AngleUpIcon_1_Template,1,1,"AngleUpIcon",3)(2,InputNumber_button_5_ng_container_2_2_Template,1,0,null,10),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",!te.incrementButtonIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.incrementButtonIconTemplate)}}function InputNumber_button_5_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"button",12),le.bIt("mousedown",(function InputNumber_button_5_Template_button_mousedown_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onUpButtonMouseDown(ne))}))("mouseup",(function InputNumber_button_5_Template_button_mouseup_0_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onUpButtonMouseUp())}))("mouseleave",(function InputNumber_button_5_Template_button_mouseleave_0_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onUpButtonMouseLeave())}))("keydown",(function InputNumber_button_5_Template_button_keydown_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onUpButtonKeyDown(ne))}))("keyup",(function InputNumber_button_5_Template_button_keyup_0_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onUpButtonKeyUp())})),le.DNE(1,InputNumber_button_5_span_1_Template,1,2,"span",13)(2,InputNumber_button_5_ng_container_2_Template,3,2,"ng-container",3),le.k0s()}if(2&te){const te=le.XpG();le.HbH(te.incrementButtonClass),le.Y8G("ngClass",le.lJ4(8,_c1))("disabled",te.disabled),le.BMQ("aria-hidden",!0)("data-pc-section","incrementbutton"),le.R7$(),le.Y8G("ngIf",te.incrementButtonIcon),le.R7$(),le.Y8G("ngIf",!te.incrementButtonIcon)}}function InputNumber_button_6_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",14),2&te){const te=le.XpG(2);le.Y8G("ngClass",te.decrementButtonIcon),le.BMQ("data-pc-section","decrementbuttonicon")}}function InputNumber_button_6_ng_container_2_AngleDownIcon_1_Template(te,ne){1&te&&le.nrm(0,"AngleDownIcon"),2&te&&le.BMQ("data-pc-section","decrementbuttonicon")}function InputNumber_button_6_ng_container_2_2_ng_template_0_Template(te,ne){}function InputNumber_button_6_ng_container_2_2_Template(te,ne){1&te&&le.DNE(0,InputNumber_button_6_ng_container_2_2_ng_template_0_Template,0,0,"ng-template")}function InputNumber_button_6_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,InputNumber_button_6_ng_container_2_AngleDownIcon_1_Template,1,1,"AngleDownIcon",3)(2,InputNumber_button_6_ng_container_2_2_Template,1,0,null,10),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",!te.decrementButtonIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.decrementButtonIconTemplate)}}function InputNumber_button_6_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"button",12),le.bIt("mousedown",(function InputNumber_button_6_Template_button_mousedown_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onDownButtonMouseDown(ne))}))("mouseup",(function InputNumber_button_6_Template_button_mouseup_0_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onDownButtonMouseUp())}))("mouseleave",(function InputNumber_button_6_Template_button_mouseleave_0_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onDownButtonMouseLeave())}))("keydown",(function InputNumber_button_6_Template_button_keydown_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onDownButtonKeyDown(ne))}))("keyup",(function InputNumber_button_6_Template_button_keyup_0_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onDownButtonKeyUp())})),le.DNE(1,InputNumber_button_6_span_1_Template,1,2,"span",13)(2,InputNumber_button_6_ng_container_2_Template,3,2,"ng-container",3),le.k0s()}if(2&te){const te=le.XpG();le.HbH(te.decrementButtonClass),le.Y8G("ngClass",le.lJ4(8,_c2))("disabled",te.disabled),le.BMQ("aria-hidden",!0)("data-pc-section","decrementbutton"),le.R7$(),le.Y8G("ngIf",te.decrementButtonIcon),le.R7$(),le.Y8G("ngIf",!te.decrementButtonIcon)}}const _c3=(te,ne,ie)=>({"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":te,"p-inputnumber-buttons-horizontal":ne,"p-inputnumber-buttons-vertical":ie}),ke={provide:ce.kq,useExisting:(0,le.Rfq)((()=>Se)),multi:!0};let Se=(()=>{class InputNumber{document;el;cd;injector;config;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;variant="outlined";minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;get disabled(){return this._disabled}set disabled(te){te&&(this.focused=!1),this._disabled=te,this.timer&&this.clearTimer()}onInput=new le.bkB;onFocus=new le.bkB;onBlur=new le.bkB;onKeyDown=new le.bkB;onClear=new le.bkB;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(te,ne,ie,re,le){this.document=te,this.el=ne,this.cd=ie,this.injector=re,this.config=le}ngOnChanges(te){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some((ne=>!!te[ne]))&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"clearicon":this.clearIconTemplate=te.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=te.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=te.template}}))}ngOnInit(){this.ngControl=this.injector.get(ce.vO,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits??void 0,maximumFractionDigits:this.maxFractionDigits??void 0}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const te=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),ne=new Map(te.map(((te,ne)=>[te,ne])));this._numeral=new RegExp(`[${te.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=te=>ne.get(te)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(te){return te.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const te=this.getDecimalChar();return new RegExp(`[${te}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1}).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){const te=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=te.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const te=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${te.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const te=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${te.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const te=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=te.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const te=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=te.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}get isBlurUpdateOnMode(){return"blur"===this.ngControl?.control?.updateOn}formatValue(te){if(null!=te){if("-"===te)return te;if(this.format){let ne=new Intl.NumberFormat(this.locale,this.getOptions()).format(te);return this.prefix&&te!=this.prefix&&(ne=this.prefix+ne),this.suffix&&te!=this.suffix&&(ne+=this.suffix),ne}return te.toString()}return""}parseValue(te){const ne=new RegExp(this._suffix,""),ie=new RegExp(this._prefix,""),re=new RegExp(this._currency,"");let le=te.replace(ne,"").replace(ie,"").trim().replace(/\s/g,"").replace(re,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(le){if("-"===le)return le;let te=+le;return isNaN(te)?null:te}return null}repeat(te,ne,ie){if(this.readonly)return;let re=ne||500;this.clearTimer(),this.timer=setTimeout((()=>{this.repeat(te,40,ie)}),re),this.spin(te,ie)}spin(te,ne){let ie=this.step*ne,re=this.parseValue(this.input?.nativeElement.value)||0,le=this.validateValue(re+ie);this.maxlength&&this.maxlength<this.formatValue(le).length||(this.updateInput(le,null,"spin",null),this.updateModel(te,le),this.handleOnInput(te,re,le))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}onUpButtonMouseDown(te){2!==te.button?this.disabled||(this.input?.nativeElement.focus(),this.repeat(te,null,1),te.preventDefault()):this.clearTimer()}onUpButtonMouseUp(){this.disabled||this.clearTimer()}onUpButtonMouseLeave(){this.disabled||this.clearTimer()}onUpButtonKeyDown(te){32!==te.keyCode&&13!==te.keyCode||this.repeat(te,null,1)}onUpButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonMouseDown(te){2!==te.button?this.disabled||(this.input?.nativeElement.focus(),this.repeat(te,null,-1),te.preventDefault()):this.clearTimer()}onDownButtonMouseUp(){this.disabled||this.clearTimer()}onDownButtonMouseLeave(){this.disabled||this.clearTimer()}onDownButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonKeyDown(te){32!==te.keyCode&&13!==te.keyCode||this.repeat(te,null,-1)}onUserInput(te){this.readonly||(this.isSpecialChar&&(te.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(te){if(this.readonly)return;if(this.lastValue=te.target.value,te.shiftKey||te.altKey)return void(this.isSpecialChar=!0);let ne=te.target.selectionStart,ie=te.target.selectionEnd,re=te.target.value,le=null;switch(te.altKey&&te.preventDefault(),te.key){case"ArrowUp":this.spin(te,1),te.preventDefault();break;case"ArrowDown":this.spin(te,-1),te.preventDefault();break;case"ArrowLeft":for(let te=ne;te<=re.length;te++){const ne=0===te?0:te-1;if(this.isNumeralChar(re.charAt(ne))){this.input.nativeElement.setSelectionRange(te,te);break}}break;case"ArrowRight":for(let te=ie;te>=0;te--)if(this.isNumeralChar(re.charAt(te))){this.input.nativeElement.setSelectionRange(te,te);break}break;case"Tab":case"Enter":le=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(le),this.input.nativeElement.setAttribute("aria-valuenow",le),this.updateModel(te,le);break;case"Backspace":if(te.preventDefault(),ne===ie){if(1==ne&&this.prefix||ne==re.length&&this.suffix)break;const ie=re.charAt(ne-1),{decimalCharIndex:ce,decimalCharIndexWithoutPrefix:de}=this.getDecimalCharIndexes(re);if(this.isNumeralChar(ie)){const te=this.getDecimalLength(re);if(this._group.test(ie))this._group.lastIndex=0,le=re.slice(0,ne-2)+re.slice(ne-1);else if(this._decimal.test(ie))this._decimal.lastIndex=0,te?this.input?.nativeElement.setSelectionRange(ne-1,ne-1):le=re.slice(0,ne-1)+re.slice(ne);else if(ce>0&&ne>ce){const ie=this.isDecimalMode()&&(this.minFractionDigits||0)<te?"":"0";le=re.slice(0,ne-1)+ie+re.slice(ne)}else 1===de?(le=re.slice(0,ne-1)+"0"+re.slice(ne),le=this.parseValue(le)>0?le:""):le=re.slice(0,ne-1)+re.slice(ne)}else"currency"===this.mode&&-1!=ie.search(this._currency)&&(le=re.slice(1));this.updateValue(te,le,null,"delete-single")}else le=this.deleteRange(re,ne,ie),this.updateValue(te,le,null,"delete-range");break;case"Delete":if(te.preventDefault(),ne===ie){if(0==ne&&this.prefix||ne==re.length-1&&this.suffix)break;const ie=re.charAt(ne),{decimalCharIndex:ce,decimalCharIndexWithoutPrefix:de}=this.getDecimalCharIndexes(re);if(this.isNumeralChar(ie)){const te=this.getDecimalLength(re);if(this._group.test(ie))this._group.lastIndex=0,le=re.slice(0,ne)+re.slice(ne+2);else if(this._decimal.test(ie))this._decimal.lastIndex=0,te?this.input?.nativeElement.setSelectionRange(ne+1,ne+1):le=re.slice(0,ne)+re.slice(ne+1);else if(ce>0&&ne>ce){const ie=this.isDecimalMode()&&(this.minFractionDigits||0)<te?"":"0";le=re.slice(0,ne)+ie+re.slice(ne+1)}else 1===de?(le=re.slice(0,ne)+"0"+re.slice(ne+1),le=this.parseValue(le)>0?le:""):le=re.slice(0,ne)+re.slice(ne+1)}this.updateValue(te,le,null,"delete-back-single")}else le=this.deleteRange(re,ne,ie),this.updateValue(te,le,null,"delete-range");break;case"Home":this.min&&(this.updateModel(te,this.min),te.preventDefault());break;case"End":this.max&&(this.updateModel(te,this.max),te.preventDefault())}this.onKeyDown.emit(te)}onInputKeyPress(te){if(this.readonly)return;let ne=te.which||te.keyCode,ie=String.fromCharCode(ne),re=this.isDecimalSign(ie);const le=this.isMinusSign(ie);13!=ne&&te.preventDefault(),re||"NumpadDecimal"!==te.code||(re=!0,ie=this._decimalChar,ne=ie.charCodeAt(0));const ce=this.parseValue(this.input.nativeElement.value+ie),de=null!=ce?ce.toString():"";this.maxlength&&this.getSelectedText()?.length==this.maxlength?this.insert(te,ie,{isDecimalSign:re,isMinusSign:le}):this.maxlength&&de.length>this.maxlength||(48<=ne&&ne<=57||le||re)&&this.insert(te,ie,{isDecimalSign:re,isMinusSign:le})}getSelectedText(){return window?.getSelection()?.toString().replaceAll(/[^0-9']/g,"")||""}onPaste(te){if(!this.disabled&&!this.readonly){te.preventDefault();let ne=(te.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(ne){this.maxlength&&(ne=ne.toString().substring(0,this.maxlength));let ie=this.parseValue(ne);null!=ie&&this.insert(te,ie.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(te){return!(!this._minusSign.test(te)&&"-"!==te)&&(this._minusSign.lastIndex=0,!0)}isDecimalSign(te){return!!this._decimal.test(te)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(te){let ne=te.search(this._decimal);this._decimal.lastIndex=0;const ie=te.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:ne,decimalCharIndexWithoutPrefix:ie}}getCharIndexes(te){const ne=te.search(this._decimal);this._decimal.lastIndex=0;const ie=te.search(this._minusSign);this._minusSign.lastIndex=0;const re=te.search(this._suffix);this._suffix.lastIndex=0;const le=te.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:ne,minusCharIndex:ie,suffixCharIndex:re,currencyCharIndex:le}}insert(te,ne,ie={isDecimalSign:!1,isMinusSign:!1}){const re=ne.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==re)return;let le=this.input?.nativeElement.selectionStart,ce=this.input?.nativeElement.selectionEnd,de=this.input?.nativeElement.value.trim();const{decimalCharIndex:ue,minusCharIndex:me,suffixCharIndex:ge,currencyCharIndex:fe}=this.getCharIndexes(de);let _e;if(ie.isMinusSign)0===le&&(_e=de,-1!==me&&0===ce||(_e=this.insertText(de,ne,0,ce)),this.updateValue(te,_e,ne,"insert"));else if(ie.isDecimalSign)ue>0&&le===ue?this.updateValue(te,de,ne,"insert"):(ue>le&&ue<ce||-1===ue&&this.maxFractionDigits)&&(_e=this.insertText(de,ne,le,ce),this.updateValue(te,_e,ne,"insert"));else{const ie=this.numberFormat.resolvedOptions().maximumFractionDigits,re=le!==ce?"range-insert":"insert";if(ue>0&&le>ue){if(le+ne.length-(ue+1)<=ie){const ie=fe>=le?fe-1:ge>=le?ge:de.length;_e=de.slice(0,le)+ne+de.slice(le+ne.length,ie)+de.slice(ie),this.updateValue(te,_e,ne,re)}}else _e=this.insertText(de,ne,le,ce),this.updateValue(te,_e,ne,re)}}insertText(te,ne,ie,re){if(2===("."===ne?ne:ne.split(".")).length){const le=te.slice(ie,re).search(this._decimal);return this._decimal.lastIndex=0,le>0?te.slice(0,ie)+this.formatValue(ne)+te.slice(re):te||this.formatValue(ne)}return re-ie===te.length?this.formatValue(ne):0===ie?ne+te.slice(re):re===te.length?te.slice(0,ie)+ne:te.slice(0,ie)+ne+te.slice(re)}deleteRange(te,ne,ie){let re;return re=ie-ne===te.length?"":0===ne?te.slice(ie):ie===te.length?te.slice(0,ne):te.slice(0,ne)+te.slice(ie),re}initCursor(){let te=this.input?.nativeElement.selectionStart,ne=this.input?.nativeElement.selectionEnd,ie=this.input?.nativeElement.value,re=ie.length,le=null,ce=(this.prefixChar||"").length;ie=ie.replace(this._prefix,""),(te===ne||0!==te||ne<ce)&&(te-=ce);let de=ie.charAt(te);if(this.isNumeralChar(de))return te+ce;let ue=te-1;for(;ue>=0;){if(de=ie.charAt(ue),this.isNumeralChar(de)){le=ue+ce;break}ue--}if(null!==le)this.input?.nativeElement.setSelectionRange(le+1,le+1);else{for(ue=te;ue<re;){if(de=ie.charAt(ue),this.isNumeralChar(de)){le=ue+ce;break}ue++}null!==le&&this.input?.nativeElement.setSelectionRange(le,le)}return le||0}onInputClick(){const te=this.input?.nativeElement.value;this.readonly||te===ge.D.getSelection()||this.initCursor()}isNumeralChar(te){return!(1!==te.length||!(this._numeral.test(te)||this._decimal.test(te)||this._group.test(te)||this._minusSign.test(te)))&&(this.resetRegex(),!0)}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(te,ne,ie,re){let le=this.input?.nativeElement.value,ce=null;null!=ne&&(ce=this.parseValue(ne),ce=ce||this.allowEmpty?ce:0,this.updateInput(ce,ie,re,ne),this.handleOnInput(te,le,ce))}handleOnInput(te,ne,ie){this.isValueChanged(ne,ie)&&(this.input.nativeElement.value=this.formatValue(ie),this.input?.nativeElement.setAttribute("aria-valuenow",ie),!this.isBlurUpdateOnMode&&this.updateModel(te,ie),this.onInput.emit({originalEvent:te,value:ie,formattedValue:ne}))}isValueChanged(te,ne){if(null===ne&&null!==te)return!0;if(null!=ne){return ne!==("string"==typeof te?this.parseValue(te):te)}return!1}validateValue(te){return"-"===te||null==te?null:null!=this.min&&te<this.min?this.min:null!=this.max&&te>this.max?this.max:te}updateInput(te,ne,ie,re){ne=ne||"";let le=this.input?.nativeElement.value,ce=this.formatValue(te),de=le.length;if(ce!==re&&(ce=this.concatValues(ce,re)),0===de){this.input.nativeElement.value=ce,this.input.nativeElement.setSelectionRange(0,0);const te=this.initCursor()+ne.length;this.input.nativeElement.setSelectionRange(te,te)}else{let te=this.input.nativeElement.selectionStart,re=this.input.nativeElement.selectionEnd;if(this.maxlength&&ce.length>this.maxlength&&(ce=ce.slice(0,this.maxlength),te=Math.min(te,this.maxlength),re=Math.min(re,this.maxlength)),this.maxlength&&this.maxlength<ce.length)return;this.input.nativeElement.value=ce;let ue=ce.length;if("range-insert"===ie){const ie=this.parseValue((le||"").slice(0,te)),de=(null!==ie?ie.toString():"").split("").join(`(${this.groupChar})?`),ue=new RegExp(de,"g");ue.test(ce);const me=ne.split("").join(`(${this.groupChar})?`),ge=new RegExp(me,"g");ge.test(ce.slice(ue.lastIndex)),re=ue.lastIndex+ge.lastIndex,this.input.nativeElement.setSelectionRange(re,re)}else if(ue===de)"insert"===ie||"delete-back-single"===ie?this.input.nativeElement.setSelectionRange(re+1,re+1):"delete-single"===ie?this.input.nativeElement.setSelectionRange(re-1,re-1):"delete-range"!==ie&&"spin"!==ie||this.input.nativeElement.setSelectionRange(re,re);else if("delete-back-single"===ie){let te=le.charAt(re-1),ne=le.charAt(re),ie=de-ue,ce=this._group.test(ne);ce&&1===ie?re+=1:!ce&&this.isNumeralChar(te)&&(re+=-1*ie+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(re,re)}else if("-"===le&&"insert"===ie){this.input.nativeElement.setSelectionRange(0,0);const te=this.initCursor()+ne.length+1;this.input.nativeElement.setSelectionRange(te,te)}else re+=ue-de,this.input.nativeElement.setSelectionRange(re,re)}this.input.nativeElement.setAttribute("aria-valuenow",te)}concatValues(te,ne){if(te&&ne){let ie=ne.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?-1!==ie?te:te.replace(this.suffixChar,"").split(this._decimal)[0]+ne.replace(this.suffixChar,"").slice(ie)+this.suffixChar:-1!==ie?te.split(this._decimal)[0]+ne.slice(ie):te}return te}getDecimalLength(te){if(te){const ne=te.split(this._decimal);if(2===ne.length)return ne[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(te){this.focused=!0,this.onFocus.emit(te)}onInputBlur(te){this.focused=!1;const ne=this.validateValue(this.parseValue(this.input.nativeElement.value)),ie=ne?.toString();this.input.nativeElement.value=this.formatValue(ie),this.input.nativeElement.setAttribute("aria-valuenow",ie),this.updateModel(te,ne),this.onBlur.emit(te)}formattedValue(){const te=this.value||this.allowEmpty?this.value:0;return this.formatValue(te)}updateModel(te,ne){this.value!==ne&&(this.value=ne,this.isBlurUpdateOnMode&&this.focused?this.isBlurUpdateOnMode&&this.onModelChange(ne):this.onModelChange(ne)),this.onModelTouched()}writeValue(te){this.value=te,this.cd.markForCheck()}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}get filled(){return null!=this.value&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}static ɵfac=function InputNumber_Factory(te){return new(te||InputNumber)(le.rXU(re.qQ),le.rXU(le.aKT),le.rXU(le.gRc),le.rXU(le.zZn),le.rXU(de.r1))};static ɵcmp=le.VBU({type:InputNumber,selectors:[["p-inputNumber"]],contentQueries:function InputNumber_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,de.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},viewQuery:function InputNumber_Query(te,ne){if(1&te&&le.GBs(we,5),2&te){let te;le.mGM(te=le.lsd())&&(ne.input=te.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function InputNumber_HostBindings(te,ne){2&te&&le.AVh("p-inputwrapper-filled",ne.filled)("p-inputwrapper-focus",ne.focused)("p-inputnumber-clearable",ne.showClear&&"vertical"!=ne.buttonLayout)},inputs:{showButtons:[le.Mj6.HasDecoratorInputTransform,"showButtons","showButtons",le.L39],format:[le.Mj6.HasDecoratorInputTransform,"format","format",le.L39],buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:[le.Mj6.HasDecoratorInputTransform,"size","size",le.Udg],maxlength:[le.Mj6.HasDecoratorInputTransform,"maxlength","maxlength",le.Udg],tabindex:[le.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",le.Udg],title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:[le.Mj6.HasDecoratorInputTransform,"ariaRequired","ariaRequired",le.L39],name:"name",required:[le.Mj6.HasDecoratorInputTransform,"required","required",le.L39],autocomplete:"autocomplete",min:[le.Mj6.HasDecoratorInputTransform,"min","min",le.Udg],max:[le.Mj6.HasDecoratorInputTransform,"max","max",le.Udg],incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:[le.Mj6.HasDecoratorInputTransform,"readonly","readonly",le.L39],step:[le.Mj6.HasDecoratorInputTransform,"step","step",le.Udg],allowEmpty:[le.Mj6.HasDecoratorInputTransform,"allowEmpty","allowEmpty",le.L39],locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:[le.Mj6.HasDecoratorInputTransform,"useGrouping","useGrouping",le.L39],variant:"variant",minFractionDigits:[le.Mj6.HasDecoratorInputTransform,"minFractionDigits","minFractionDigits",te=>(0,le.Udg)(te,null)],maxFractionDigits:[le.Mj6.HasDecoratorInputTransform,"maxFractionDigits","maxFractionDigits",te=>(0,le.Udg)(te,null)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[le.Mj6.HasDecoratorInputTransform,"showClear","showClear",le.L39],autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39],disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[le.Jv_([ke]),le.GFd,le.OA$],decls:7,vars:43,consts:[[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal","pAutoFocus","",3,"ngClass","ngStyle","value","disabled","readonly","autofocus","input","keydown","keypress","paste","click","focus","blur"],["input",""],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"ngClass","click"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"ngClass","disabled","mousedown","mouseup","mouseleave","keydown","keyup"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function InputNumber_Template(te,ne){1&te&&(le.j41(0,"span",0)(1,"input",1,2),le.bIt("input",(function InputNumber_Template_input_input_1_listener(te){return ne.onUserInput(te)}))("keydown",(function InputNumber_Template_input_keydown_1_listener(te){return ne.onInputKeyDown(te)}))("keypress",(function InputNumber_Template_input_keypress_1_listener(te){return ne.onInputKeyPress(te)}))("paste",(function InputNumber_Template_input_paste_1_listener(te){return ne.onPaste(te)}))("click",(function InputNumber_Template_input_click_1_listener(){return ne.onInputClick()}))("focus",(function InputNumber_Template_input_focus_1_listener(te){return ne.onInputFocus(te)}))("blur",(function InputNumber_Template_input_blur_1_listener(te){return ne.onInputBlur(te)})),le.k0s(),le.DNE(3,InputNumber_ng_container_3_Template,3,2,"ng-container",3)(4,InputNumber_span_4_Template,7,19,"span",4)(5,InputNumber_button_5_Template,3,9,"button",5)(6,InputNumber_button_6_Template,3,9,"button",5),le.k0s()),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngClass",le.sMw(39,_c3,ne.showButtons&&"stacked"===ne.buttonLayout,ne.showButtons&&"horizontal"===ne.buttonLayout,ne.showButtons&&"vertical"===ne.buttonLayout))("ngStyle",ne.style),le.BMQ("data-pc-name","inputnumber")("data-pc-section","root"),le.R7$(),le.HbH(ne.inputStyleClass),le.AVh("p-variant-filled","filled"===ne.variant||"filled"===ne.config.inputStyle()),le.Y8G("ngClass","p-inputnumber-input")("ngStyle",ne.inputStyle)("value",ne.formattedValue())("disabled",ne.disabled)("readonly",ne.readonly)("autofocus",ne.autofocus),le.BMQ("id",ne.inputId)("variant",ne.variant)("aria-valuemin",ne.min)("aria-valuemax",ne.max)("aria-valuenow",ne.value)("placeholder",ne.placeholder)("aria-label",ne.ariaLabel)("aria-labelledby",ne.ariaLabelledBy)("title",ne.title)("size",ne.size)("name",ne.name)("autocomplete",ne.autocomplete)("maxlength",ne.maxlength)("tabindex",ne.tabindex)("aria-required",ne.ariaRequired)("required",ne.required)("min",ne.min)("max",ne.max)("data-pc-section","input"),le.R7$(2),le.Y8G("ngIf","vertical"!=ne.buttonLayout&&ne.showClear&&ne.value),le.R7$(),le.Y8G("ngIf",ne.showButtons&&"stacked"===ne.buttonLayout),le.R7$(),le.Y8G("ngIf",ne.showButtons&&"stacked"!==ne.buttonLayout),le.R7$(),le.Y8G("ngIf",ne.showButtons&&"stacked"!==ne.buttonLayout))},dependencies:()=>[re.YU,re.bT,re.T3,re.B3,ye.S,me._f,ue.q,Ce.A,be,fe.R],styles:["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return InputNumber})(),xe=(()=>{class InputNumberModule{static ɵfac=function InputNumberModule_Factory(te){return new(te||InputNumberModule)};static ɵmod=le.$C({type:InputNumberModule});static ɵinj=le.G2t({imports:[re.MD,ye.u,me.tm,ue.u,Ce.A,be,fe.R,de.Gg]})}return InputNumberModule})()},7721:(te,ne,ie)=>{"use strict";ie.d(ne,{S:()=>ue,u:()=>me});var re=ie(3107),le=ie(4460),ce=ie(936),de=ie(3828);let ue=(()=>{class InputText{el;ngModel;cd;config;variant="outlined";filled;constructor(te,ne,ie,re){this.el=te,this.ngModel=ne,this.cd=ie,this.config=re}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static ɵfac=function InputText_Factory(te){return new(te||InputText)(re.rXU(re.aKT),re.rXU(ce.vS,8),re.rXU(re.gRc),re.rXU(de.r1))};static ɵdir=re.FsC({type:InputText,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:4,hostBindings:function InputText_HostBindings(te,ne){1&te&&re.bIt("input",(function InputText_input_HostBindingHandler(te){return ne.onInput(te)})),2&te&&re.AVh("p-filled",ne.filled)("p-variant-filled","filled"===ne.variant||"filled"===ne.config.inputStyle())},inputs:{variant:"variant"}})}return InputText})(),me=(()=>{class InputTextModule{static ɵfac=function InputTextModule_Factory(te){return new(te||InputTextModule)};static ɵmod=re.$C({type:InputTextModule});static ɵinj=re.G2t({imports:[le.MD]})}return InputTextModule})()},6962:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>ue,f:()=>me});var re=ie(3107),le=ie(4460),ce=ie(936),de=ie(3828);let ue=(()=>{class InputTextarea{el;ngModel;control;cd;config;autoResize;variant="outlined";onResize=new re.bkB;filled;cachedScrollHeight;ngModelSubscription;ngControlSubscription;constructor(te,ne,ie,re,le){this.el=te,this.ngModel=ne,this.control=ie,this.cd=re,this.config=le}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe((()=>{this.updateState()}))),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe((()=>{this.updateState()})))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(te){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}resize(te){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(te||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}static ɵfac=function InputTextarea_Factory(te){return new(te||InputTextarea)(re.rXU(re.aKT),re.rXU(ce.vS,8),re.rXU(ce.vO,8),re.rXU(re.gRc),re.rXU(de.r1))};static ɵdir=re.FsC({type:InputTextarea,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:6,hostBindings:function InputTextarea_HostBindings(te,ne){1&te&&re.bIt("input",(function InputTextarea_input_HostBindingHandler(te){return ne.onInput(te)})),2&te&&re.AVh("p-filled",ne.filled)("p-inputtextarea-resizable",ne.autoResize)("p-variant-filled","filled"===ne.variant||"filled"===ne.config.inputStyle())},inputs:{autoResize:[re.Mj6.HasDecoratorInputTransform,"autoResize","autoResize",re.L39],variant:"variant"},outputs:{onResize:"onResize"},features:[re.GFd]})}return InputTextarea})(),me=(()=>{class InputTextareaModule{static ɵfac=function InputTextareaModule_Factory(te){return new(te||InputTextareaModule)};static ɵmod=re.$C({type:InputTextareaModule});static ɵinj=re.G2t({imports:[le.MD]})}return InputTextareaModule})()},1080:(te,ne,ie)=>{"use strict";ie.d(ne,{hJ:()=>ke,z_:()=>Se});var re=ie(1204),le=ie(4460),ce=ie(3107),de=ie(936),ue=ie(3828),me=ie(5724),ge=ie(1939);const fe=["overlay"],_e=["content"];function Overlay_div_0_div_2_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}const _c2=(te,ne,ie)=>({showTransitionParams:te,hideTransitionParams:ne,transform:ie}),_c3=te=>({value:"visible",params:te}),_c4=te=>({mode:te}),_c5=te=>({$implicit:te});function Overlay_div_0_div_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",1,3),ce.bIt("click",(function Overlay_div_0_div_2_Template_div_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onOverlayContentClick(ne))}))("@overlayContentAnimation.start",(function Overlay_div_0_div_2_Template_div_animation_overlayContentAnimation_start_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onOverlayContentAnimationStart(ne))}))("@overlayContentAnimation.done",(function Overlay_div_0_div_2_Template_div_animation_overlayContentAnimation_done_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onOverlayContentAnimationDone(ne))})),ce.SdG(2),ce.DNE(3,Overlay_div_0_div_2_ng_container_3_Template,1,0,"ng-container",4),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.HbH(te.contentStyleClass),ce.Y8G("ngStyle",te.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",ce.eq3(11,_c3,ce.sMw(7,_c2,te.showTransitionOptions,te.hideTransitionOptions,te.transformOptions[te.modal?te.overlayResponsiveDirection:"default"]))),ce.R7$(3),ce.Y8G("ngTemplateOutlet",te.contentTemplate)("ngTemplateOutletContext",ce.eq3(15,_c5,ce.eq3(13,_c4,te.overlayMode)))}}const _c6=(te,ne,ie,re,le,ce,de,ue,me,ge,fe,_e,be,Ce)=>({"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":te,"p-overlay-center":ne,"p-overlay-top":ie,"p-overlay-top-start":re,"p-overlay-top-end":le,"p-overlay-bottom":ce,"p-overlay-bottom-start":de,"p-overlay-bottom-end":ue,"p-overlay-left":me,"p-overlay-left-start":ge,"p-overlay-left-end":fe,"p-overlay-right":_e,"p-overlay-right-start":be,"p-overlay-right-end":Ce});function Overlay_div_0_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",1,2),ce.bIt("click",(function Overlay_div_0_Template_div_click_0_listener(){ce.eBV(te);const ne=ce.XpG();return ce.Njj(ne.onOverlayClick())})),ce.DNE(2,Overlay_div_0_div_2_Template,4,17,"div",0),ce.k0s()}if(2&te){const te=ce.XpG();ce.HbH(te.styleClass),ce.Y8G("ngStyle",te.style)("ngClass",ce.zJS(5,_c6,[te.modal,te.modal&&"center"===te.overlayResponsiveDirection,te.modal&&"top"===te.overlayResponsiveDirection,te.modal&&"top-start"===te.overlayResponsiveDirection,te.modal&&"top-end"===te.overlayResponsiveDirection,te.modal&&"bottom"===te.overlayResponsiveDirection,te.modal&&"bottom-start"===te.overlayResponsiveDirection,te.modal&&"bottom-end"===te.overlayResponsiveDirection,te.modal&&"left"===te.overlayResponsiveDirection,te.modal&&"left-start"===te.overlayResponsiveDirection,te.modal&&"left-end"===te.overlayResponsiveDirection,te.modal&&"right"===te.overlayResponsiveDirection,te.modal&&"right-start"===te.overlayResponsiveDirection,te.modal&&"right-end"===te.overlayResponsiveDirection])),ce.R7$(2),ce.Y8G("ngIf",te.visible)}}const be=["*"],Ce={provide:de.kq,useExisting:(0,ce.Rfq)((()=>ke)),multi:!0},ye=(0,re.lY)([(0,re.iF)({transform:"{{transform}}",opacity:0}),(0,re.i0)("{{showTransitionParams}}")]),we=(0,re.lY)([(0,re.i0)("{{hideTransitionParams}}",(0,re.iF)({transform:"{{transform}}",opacity:0}))]);let ke=(()=>{class Overlay{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(te){this._visible=te,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(te){this._mode=te}get style(){return ge.BF.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(te){this._style=te}get styleClass(){return ge.BF.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(te){this._styleClass=te}get contentStyle(){return ge.BF.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(te){this._contentStyle=te}get contentStyleClass(){return ge.BF.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(te){this._contentStyleClass=te}get target(){const te=this._target||this.overlayOptions?.target;return void 0===te?"@prev":te}set target(te){this._target=te}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(te){this._appendTo=te}get autoZIndex(){const te=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===te||te}set autoZIndex(te){this._autoZIndex=te}get baseZIndex(){const te=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===te?0:te}set baseZIndex(te){this._baseZIndex=te}get showTransitionOptions(){const te=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===te?".12s cubic-bezier(0, 0, 0.2, 1)":te}set showTransitionOptions(te){this._showTransitionOptions=te}get hideTransitionOptions(){const te=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===te?".1s linear":te}set hideTransitionOptions(te){this._hideTransitionOptions=te}get listener(){return this._listener||this.overlayOptions?.listener}set listener(te){this._listener=te}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(te){this._responsive=te}get options(){return this._options}set options(te){this._options=te}visibleChange=new ce.bkB;onBeforeShow=new ce.bkB;onShow=new ce.bkB;onBeforeHide=new ce.bkB;onHide=new ce.bkB;onAnimationStart=new ce.bkB;onAnimationDone=new ce.bkB;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if((0,le.UE)(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return me.D.getTargetElement(this.target,this.el?.nativeElement)}constructor(te,ne,ie,re,le,ce,de,ue){this.document=te,this.platformId=ne,this.el=ie,this.renderer=re,this.config=le,this.overlayService=ce,this.cd=de,this.zone=ue,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach((te=>{te.getType(),this.contentTemplate=te.template}))}show(te,ne=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:te||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),ne&&me.D.focus(this.targetEl),this.modal&&me.D.addClass(this.document?.body,"p-overflow-hidden")}hide(te,ne=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:te||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),ne&&me.D.focus(this.targetEl),this.modal&&me.D.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&me.D.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(te){this._visible=te,this.visibleChange.emit(te)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(te){this.overlayService.add({originalEvent:te,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(te){switch(te.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&ge.Q$.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),me.D.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&me.D.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",te)}onOverlayContentAnimationDone(te){const ne=this.overlayEl||te.element.parentElement;switch(te.toState){case"visible":this.visible&&this.show(ne,!0),this.bindListeners();break;case"void":if(!this.visible){this.hide(ne,!0),this.modalVisible=!1,this.unbindListeners(),me.D.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),ge.Q$.clear(ne),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",te)}handleEvents(te,ne){this[te].emit(ne),this.options&&this.options[te]&&this.options[te](ne),this.config?.overlayOptions&&(this.config?.overlayOptions)[te]&&(this.config?.overlayOptions)[te](ne)}bindListeners(){this.unbindListeners(),this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new me.b(this.targetEl,(te=>{(!this.listener||this.listener(te,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(te,!0)}))),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",(te=>{const ne=!(this.targetEl&&(this.targetEl.isSameNode(te.target)||!this.isOverlayClicked&&this.targetEl.contains(te.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(te,{type:"outside",mode:this.overlayMode,valid:3!==te.which&&ne}):ne)&&this.hide(te),this.isOverlayClicked=this.isOverlayContentClicked=!1})))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",(te=>{(this.listener?this.listener(te,{type:"resize",mode:this.overlayMode,valid:!me.D.isTouchDevice()}):!me.D.isTouchDevice())&&this.hide(te,!0)})))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular((()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",(te=>{if(!1===this.overlayOptions.hideOnEscape||"Escape"!==te.code)return;(this.listener?this.listener(te,{type:"keydown",mode:this.overlayMode,valid:!me.D.isTouchDevice()}):!me.D.isTouchDevice())&&this.zone.run((()=>{this.hide(te,!0)}))}))}))}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(me.D.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),ge.Q$.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static ɵfac=function Overlay_Factory(te){return new(te||Overlay)(ce.rXU(le.qQ),ce.rXU(ce.Agw),ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(ue.r1),ce.rXU(ue.si),ce.rXU(ce.gRc),ce.rXU(ce.SKi))};static ɵcmp=ce.VBU({type:Overlay,selectors:[["p-overlay"]],contentQueries:function Overlay_ContentQueries(te,ne,ie){if(1&te&&ce.wni(ie,ue.Ei,4),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.templates=te)}},viewQuery:function Overlay_Query(te,ne){if(1&te&&(ce.GBs(fe,5),ce.GBs(_e,5)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.overlayViewChild=te.first),ce.mGM(te=ce.lsd())&&(ne.contentViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[ce.Jv_([Ce])],ngContentSelectors:be,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function Overlay_Template(te,ne){1&te&&(ce.NAR(),ce.DNE(0,Overlay_div_0_Template,3,20,"div",0)),2&te&&ce.Y8G("ngIf",ne.modalVisible)},dependencies:[le.YU,le.bT,le.T3,le.B3],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[(0,re.hZ)("overlayContentAnimation",[(0,re.kY)(":enter",[(0,re.sM)(ye)]),(0,re.kY)(":leave",[(0,re.sM)(we)])])]},changeDetection:0})}return Overlay})(),Se=(()=>{class OverlayModule{static ɵfac=function OverlayModule_Factory(te){return new(te||OverlayModule)};static ɵmod=ce.$C({type:OverlayModule});static ɵinj=ce.G2t({imports:[le.MD,ue.Gg,ue.Gg]})}return OverlayModule})()},1782:(te,ne,ie)=>{"use strict";ie.d(ne,{d:()=>Ce,j:()=>be});var re=ie(1204),le=ie(4460),ce=ie(3107),de=ie(3828),ue=ie(5724),me=ie(239),ge=ie(1646),fe=ie(1939);function OverlayPanel_div_0_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function OverlayPanel_div_0_button_4_TimesIcon_1_Template(te,ne){1&te&&ce.nrm(0,"TimesIcon",8),2&te&&ce.Y8G("styleClass","p-overlaypanel-close-icon")}function OverlayPanel_div_0_button_4_span_2_1_ng_template_0_Template(te,ne){}function OverlayPanel_div_0_button_4_span_2_1_Template(te,ne){1&te&&ce.DNE(0,OverlayPanel_div_0_button_4_span_2_1_ng_template_0_Template,0,0,"ng-template")}function OverlayPanel_div_0_button_4_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",9),ce.DNE(1,OverlayPanel_div_0_button_4_span_2_1_Template,1,0,null,3),ce.k0s()),2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngTemplateOutlet",te.closeIconTemplate)}}function OverlayPanel_div_0_button_4_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",5),ce.bIt("click",(function OverlayPanel_div_0_button_4_Template_button_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onCloseClick(ne))}))("keydown.enter",(function OverlayPanel_div_0_button_4_Template_button_keydown_enter_0_listener(){ce.eBV(te);const ne=ce.XpG(2);return ce.Njj(ne.hide())})),ce.DNE(1,OverlayPanel_div_0_button_4_TimesIcon_1_Template,1,1,"TimesIcon",6)(2,OverlayPanel_div_0_button_4_span_2_Template,2,1,"span",7),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.BMQ("aria-label",te.ariaCloseLabel),ce.R7$(),ce.Y8G("ngIf",!te.closeIconTemplate),ce.R7$(),ce.Y8G("ngIf",te.closeIconTemplate)}}const _c0=(te,ne)=>({showTransitionParams:te,hideTransitionParams:ne}),_c1=(te,ne)=>({value:te,params:ne});function OverlayPanel_div_0_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",1),ce.bIt("click",(function OverlayPanel_div_0_Template_div_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onOverlayClick(ne))}))("@animation.start",(function OverlayPanel_div_0_Template_div_animation_animation_start_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onAnimationStart(ne))}))("@animation.done",(function OverlayPanel_div_0_Template_div_animation_animation_done_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onAnimationEnd(ne))})),ce.j41(1,"div",2),ce.bIt("click",(function OverlayPanel_div_0_Template_div_click_1_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onContentClick(ne))}))("mousedown",(function OverlayPanel_div_0_Template_div_mousedown_1_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onContentClick(ne))})),ce.SdG(2),ce.DNE(3,OverlayPanel_div_0_ng_container_3_Template,1,0,"ng-container",3),ce.k0s(),ce.DNE(4,OverlayPanel_div_0_button_4_Template,3,3,"button",4),ce.k0s()}if(2&te){const te=ce.XpG();ce.HbH(te.styleClass),ce.Y8G("ngClass","p-overlaypanel p-component")("ngStyle",te.style)("@animation",ce.l_i(13,_c1,te.overlayVisible?"open":"close",ce.l_i(10,_c0,te.showTransitionOptions,te.hideTransitionOptions))),ce.BMQ("aria-modal",te.overlayVisible)("aria-label",te.ariaLabel)("aria-labelledBy",te.ariaLabelledBy),ce.R7$(3),ce.Y8G("ngTemplateOutlet",te.contentTemplate),ce.R7$(),ce.Y8G("ngIf",te.showCloseIcon)}}const _e=["*"];let be=(()=>{class OverlayPanel{document;platformId;el;renderer;cd;zone;config;overlayService;ariaLabel;ariaLabelledBy;dismissable=!0;showCloseIcon;style;styleClass;appendTo="body";autoZIndex=!0;ariaCloseLabel;baseZIndex=0;focusOnShow=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onShow=new ce.bkB;onHide=new ce.bkB;templates;container;overlayVisible=!1;render=!1;isOverlayAnimationInProgress=!1;selfClick=!1;documentClickListener;target;willHide;scrollHandler;documentResizeListener;contentTemplate;closeIconTemplate;destroyCallback;overlayEventListener;overlaySubscription;constructor(te,ne,ie,re,le,ce,de,ue){this.document=te,this.platformId=ne,this.el=ie,this.renderer=re,this.cd=le,this.zone=ce,this.config=de,this.overlayService=ue}ngAfterContentInit(){this.templates?.forEach((te=>{switch(te.getType()){case"content":default:this.contentTemplate=te.template;break;case"closeicon":this.closeIconTemplate=te.template}this.cd.markForCheck()}))}bindDocumentClickListener(){if((0,le.UE)(this.platformId)&&!this.documentClickListener&&this.dismissable){let te=ue.D.isIOS()?"touchstart":"click";const ne=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(ne,te,(te=>{this.container?.contains(te.target)||this.target===te.target||this.target.contains(te.target)||this.selfClick||this.hide(),this.selfClick=!1,this.cd.markForCheck()}))}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(te,ne){this.isOverlayAnimationInProgress||(this.overlayVisible?(this.hasTargetChanged(te,ne)&&(this.destroyCallback=()=>{this.show(null,ne||te.currentTarget||te.target)}),this.hide()):this.show(te,ne))}show(te,ne){ne&&te&&te.stopPropagation(),this.isOverlayAnimationInProgress||(this.target=ne||te.currentTarget||te.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck())}onOverlayClick(te){this.overlayService.add({originalEvent:te,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(te){const ne=te.target;this.selfClick=te.offsetX<ne.clientWidth&&te.offsetY<ne.clientHeight}hasTargetChanged(te,ne){return null!=this.target&&this.target!==(ne||te.currentTarget||te.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):ue.D.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}align(){this.autoZIndex&&fe.Q$.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),ue.D.absolutePosition(this.container,this.target,!1);const te=ue.D.getOffset(this.container),ne=ue.D.getOffset(this.target),ie=this.document.defaultView?.getComputedStyle(this.container).getPropertyValue("border-radius");let re=0;te.left<ne.left&&(re=ne.left-te.left-2*parseFloat(ie)),this.container?.style.setProperty("--overlayArrowLeft",`${re}px`),te.top<ne.top&&(ue.D.addClass(this.container,"p-overlaypanel-flipped"),this.showCloseIcon&&this.renderer.setStyle(this.container,"margin-top","-30px"))}onAnimationStart(te){"open"===te.toState&&(this.container=te.element,this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=te=>{this.container&&this.container.contains(te.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)),this.isOverlayAnimationInProgress=!0}onAnimationEnd(te){switch(te.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&fe.Q$.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}this.isOverlayAnimationInProgress=!1}focus(){let te=ue.D.findSingle(this.container,"[autofocus]");te&&this.zone.runOutsideAngular((()=>{setTimeout((()=>te.focus()),5)}))}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(te){this.hide(),te.preventDefault()}onEscapeKeydown(te){this.hide()}onWindowResize(){this.overlayVisible&&!ue.D.isTouchDevice()&&this.hide()}bindDocumentResizeListener(){if((0,le.UE)(this.platformId)&&!this.documentResizeListener){const te=this.document.defaultView;this.documentResizeListener=this.renderer.listen(te,"resize",this.onWindowResize.bind(this))}}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){(0,le.UE)(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new ue.b(this.target,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&fe.Q$.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}static ɵfac=function OverlayPanel_Factory(te){return new(te||OverlayPanel)(ce.rXU(le.qQ),ce.rXU(ce.Agw),ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(ce.gRc),ce.rXU(ce.SKi),ce.rXU(de.r1),ce.rXU(de.si))};static ɵcmp=ce.VBU({type:OverlayPanel,selectors:[["p-overlayPanel"]],contentQueries:function OverlayPanel_ContentQueries(te,ne,ie){if(1&te&&ce.wni(ie,de.Ei,4),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],hostBindings:function OverlayPanel_HostBindings(te,ne){1&te&&ce.bIt("keydown.escape",(function OverlayPanel_keydown_escape_HostBindingHandler(te){return ne.onEscapeKeydown(te)}),!1,ce.EBC)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",dismissable:[ce.Mj6.HasDecoratorInputTransform,"dismissable","dismissable",ce.L39],showCloseIcon:[ce.Mj6.HasDecoratorInputTransform,"showCloseIcon","showCloseIcon",ce.L39],style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:[ce.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",ce.L39],ariaCloseLabel:"ariaCloseLabel",baseZIndex:[ce.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",ce.Udg],focusOnShow:[ce.Mj6.HasDecoratorInputTransform,"focusOnShow","focusOnShow",ce.L39],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},features:[ce.GFd],ngContentSelectors:_e,decls:1,vars:1,consts:[["role","dialog",3,"ngClass","ngStyle","class","click",4,"ngIf"],["role","dialog",3,"ngClass","ngStyle","click"],[1,"p-overlaypanel-content",3,"click","mousedown"],[4,"ngTemplateOutlet"],["type","button","class","p-overlaypanel-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],["type","button","pRipple","",1,"p-overlaypanel-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],["class","p-overlaypanel-close-icon",4,"ngIf"],[3,"styleClass"],[1,"p-overlaypanel-close-icon"]],template:function OverlayPanel_Template(te,ne){1&te&&(ce.NAR(),ce.DNE(0,OverlayPanel_div_0_Template,5,16,"div",0)),2&te&&ce.Y8G("ngIf",ne.render)},dependencies:()=>[le.YU,le.bT,le.T3,le.B3,ge.n,me.A],styles:['@layer primeng{.p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.p-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after{border-bottom-color:transparent}.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}}\n'],encapsulation:2,data:{animation:[(0,re.hZ)("animation",[(0,re.wk)("void",(0,re.iF)({transform:"scaleY(0.8)",opacity:0})),(0,re.wk)("close",(0,re.iF)({opacity:0})),(0,re.wk)("open",(0,re.iF)({transform:"translateY(0)",opacity:1})),(0,re.kY)("void => open",(0,re.i0)("{{showTransitionParams}}")),(0,re.kY)("open => close",(0,re.i0)("{{hideTransitionParams}}"))])]},changeDetection:0})}return OverlayPanel})(),Ce=(()=>{class OverlayPanelModule{static ɵfac=function OverlayPanelModule_Factory(te){return new(te||OverlayPanelModule)};static ɵmod=ce.$C({type:OverlayPanelModule});static ɵinj=ce.G2t({imports:[le.MD,ge.Z,de.Gg,me.A,de.Gg]})}return OverlayPanelModule})()},7718:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>Ce,b:()=>ye});var re=ie(1204),le=ie(4460),ce=ie(3107),de=ie(3828),ue=ie(6253),me=ie(883),ge=ie(1646),fe=ie(1939);function Panel_div_1_span_1_Template(te,ne){if(1&te&&(ce.j41(0,"span",10),ce.EFF(1),ce.k0s()),2&te){const te=ce.XpG(2);ce.BMQ("id",te.id+"_header"),ce.R7$(),ce.JRh(te.header)}}function Panel_div_1_ng_container_3_Template(te,ne){1&te&&ce.eu8(0)}function Panel_div_1_5_ng_template_0_Template(te,ne){}function Panel_div_1_5_Template(te,ne){1&te&&ce.DNE(0,Panel_div_1_5_ng_template_0_Template,0,0,"ng-template")}function Panel_div_1_button_6_ng_container_1_ng_container_1_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",16),2&te){const te=ce.XpG(5);ce.HbH(te.expandIcon),ce.Y8G("ngClass",te.iconClass)}}function Panel_div_1_button_6_ng_container_1_ng_container_1_MinusIcon_2_Template(te,ne){if(1&te&&ce.nrm(0,"MinusIcon",17),2&te){const te=ce.XpG(5);ce.Y8G("styleClass",te.iconClass)}}function Panel_div_1_button_6_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Panel_div_1_button_6_ng_container_1_ng_container_1_span_1_Template,1,3,"span",14)(2,Panel_div_1_button_6_ng_container_1_ng_container_1_MinusIcon_2_Template,1,1,"MinusIcon",15),ce.bVm()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngIf",te.expandIcon),ce.R7$(),ce.Y8G("ngIf",!te.expandIcon)}}function Panel_div_1_button_6_ng_container_1_ng_container_2_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span",16),2&te){const te=ce.XpG(5);ce.HbH(te.collapseIcon),ce.Y8G("ngClass",te.iconClass)}}function Panel_div_1_button_6_ng_container_1_ng_container_2_PlusIcon_2_Template(te,ne){if(1&te&&ce.nrm(0,"PlusIcon",17),2&te){const te=ce.XpG(5);ce.Y8G("styleClass",te.iconClass)}}function Panel_div_1_button_6_ng_container_1_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Panel_div_1_button_6_ng_container_1_ng_container_2_span_1_Template,1,3,"span",14)(2,Panel_div_1_button_6_ng_container_1_ng_container_2_PlusIcon_2_Template,1,1,"PlusIcon",15),ce.bVm()),2&te){const te=ce.XpG(4);ce.R7$(),ce.Y8G("ngIf",te.collapseIcon),ce.R7$(),ce.Y8G("ngIf",!te.collapseIcon)}}function Panel_div_1_button_6_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,Panel_div_1_button_6_ng_container_1_ng_container_1_Template,3,2,"ng-container",12)(2,Panel_div_1_button_6_ng_container_1_ng_container_2_Template,3,2,"ng-container",12),ce.bVm()),2&te){const te=ce.XpG(3);ce.R7$(),ce.Y8G("ngIf",!te.collapsed),ce.R7$(),ce.Y8G("ngIf",te.collapsed)}}function Panel_div_1_button_6_2_ng_template_0_Template(te,ne){}function Panel_div_1_button_6_2_Template(te,ne){1&te&&ce.DNE(0,Panel_div_1_button_6_2_ng_template_0_Template,0,0,"ng-template")}const _c0=te=>({$implicit:te});function Panel_div_1_button_6_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",11),ce.bIt("click",(function Panel_div_1_button_6_Template_button_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onIconClick(ne))}))("keydown",(function Panel_div_1_button_6_Template_button_keydown_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onKeyDown(ne))})),ce.DNE(1,Panel_div_1_button_6_ng_container_1_Template,3,2,"ng-container",12)(2,Panel_div_1_button_6_2_Template,1,0,null,13),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.BMQ("id",te.id+"_header")("aria-label",te.buttonAriaLabel)("aria-controls",te.id+"_content")("aria-expanded",!te.collapsed),ce.R7$(),ce.Y8G("ngIf",!te.headerIconTemplate),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.headerIconTemplate)("ngTemplateOutletContext",ce.eq3(7,_c0,te.collapsed))}}const _c1=(te,ne,ie)=>({"p-panel-icons-start":te,"p-panel-icons-end":ne,"p-panel-icons-center":ie});function Panel_div_1_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"div",6),ce.bIt("click",(function Panel_div_1_Template_div_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onHeaderClick(ne))})),ce.DNE(1,Panel_div_1_span_1_Template,2,2,"span",7),ce.SdG(2,1),ce.DNE(3,Panel_div_1_ng_container_3_Template,1,0,"ng-container",4),ce.j41(4,"div",8),ce.DNE(5,Panel_div_1_5_Template,1,0,null,4)(6,Panel_div_1_button_6_Template,3,9,"button",9),ce.k0s()()}if(2&te){const te=ce.XpG();ce.BMQ("id",te.id+"-titlebar"),ce.R7$(),ce.Y8G("ngIf",te.header),ce.R7$(2),ce.Y8G("ngTemplateOutlet",te.headerTemplate),ce.R7$(),ce.Y8G("ngClass",ce.sMw(6,_c1,"start"===te.iconPos,"end"===te.iconPos,"center"===te.iconPos)),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.iconTemplate),ce.R7$(),ce.Y8G("ngIf",te.toggleable)}}function Panel_ng_container_5_Template(te,ne){1&te&&ce.eu8(0)}function Panel_div_6_ng_container_2_Template(te,ne){1&te&&ce.eu8(0)}function Panel_div_6_Template(te,ne){if(1&te&&(ce.j41(0,"div",18),ce.SdG(1,2),ce.DNE(2,Panel_div_6_ng_container_2_Template,1,0,"ng-container",4),ce.k0s()),2&te){const te=ce.XpG();ce.R7$(2),ce.Y8G("ngTemplateOutlet",te.footerTemplate)}}const _e=["*",[["p-header"]],[["p-footer"]]],_c3=(te,ne)=>({"p-panel p-component":!0,"p-panel-toggleable":te,"p-panel-expanded":ne}),_c4=te=>({transitionParams:te,height:"0",opacity:"0"}),_c5=te=>({value:"hidden",params:te}),_c6=te=>({transitionParams:te,height:"*",opacity:"1"}),_c7=te=>({value:"visible",params:te}),be=["*","p-header","p-footer"];let Ce=(()=>{class Panel{el;cd;toggleable;header;collapsed;style;styleClass;iconPos="end";expandIcon;collapseIcon;showHeader=!0;toggler="icon";transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";collapsedChange=new ce.bkB;onBeforeToggle=new ce.bkB;onAfterToggle=new ce.bkB;footerFacet;templates;iconTemplate;animating;headerTemplate;contentTemplate;footerTemplate;headerIconTemplate;id=(0,fe._Y)();get buttonAriaLabel(){return this.header}constructor(te,ne){this.el=te,this.cd=ne}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"header":this.headerTemplate=te.template;break;case"content":default:this.contentTemplate=te.template;break;case"footer":this.footerTemplate=te.template;break;case"icons":this.iconTemplate=te.template;break;case"headericons":this.headerIconTemplate=te.template}}))}onHeaderClick(te){"header"===this.toggler&&this.toggle(te)}onIconClick(te){"icon"===this.toggler&&this.toggle(te)}toggle(te){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:te,collapsed:this.collapsed}),this.toggleable&&(this.collapsed?this.expand():this.collapse()),this.cd.markForCheck(),te.preventDefault()}expand(){this.collapsed=!1,this.collapsedChange.emit(this.collapsed)}collapse(){this.collapsed=!0,this.collapsedChange.emit(this.collapsed)}getBlockableElement(){return this.el.nativeElement.children[0]}onKeyDown(te){"Enter"!==te.code&&"Space"!==te.code||(this.toggle(te),te.preventDefault())}onToggleDone(te){this.animating=!1,this.onAfterToggle.emit({originalEvent:te,collapsed:this.collapsed})}static ɵfac=function Panel_Factory(te){return new(te||Panel)(ce.rXU(ce.aKT),ce.rXU(ce.gRc))};static ɵcmp=ce.VBU({type:Panel,selectors:[["p-panel"]],contentQueries:function Panel_ContentQueries(te,ne,ie){if(1&te&&(ce.wni(ie,de.wi,5),ce.wni(ie,de.Ei,4)),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.footerFacet=te.first),ce.mGM(te=ce.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{toggleable:[ce.Mj6.HasDecoratorInputTransform,"toggleable","toggleable",ce.L39],header:"header",collapsed:[ce.Mj6.HasDecoratorInputTransform,"collapsed","collapsed",ce.L39],style:"style",styleClass:"styleClass",iconPos:"iconPos",expandIcon:"expandIcon",collapseIcon:"collapseIcon",showHeader:[ce.Mj6.HasDecoratorInputTransform,"showHeader","showHeader",ce.L39],toggler:"toggler",transitionOptions:"transitionOptions"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},features:[ce.GFd],ngContentSelectors:be,decls:7,vars:25,consts:[[3,"ngClass","ngStyle"],["class","p-panel-header",3,"click",4,"ngIf"],["role","region",1,"p-toggleable-content",3,"id"],[1,"p-panel-content"],[4,"ngTemplateOutlet"],["class","p-panel-footer",4,"ngIf"],[1,"p-panel-header",3,"click"],["class","p-panel-title",4,"ngIf"],[1,"p-panel-icons",3,"ngClass"],["pRipple","","type","button","role","button","class","p-panel-header-icon p-panel-toggler p-link",3,"click","keydown",4,"ngIf"],[1,"p-panel-title"],["pRipple","","type","button","role","button",1,"p-panel-header-icon","p-panel-toggler","p-link",3,"click","keydown"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"ngClass"],[3,"styleClass"],[1,"p-panel-footer"]],template:function Panel_Template(te,ne){1&te&&(ce.NAR(_e),ce.j41(0,"div",0),ce.DNE(1,Panel_div_1_Template,7,10,"div",1),ce.j41(2,"div",2),ce.bIt("@panelContent.done",(function Panel_Template_div_animation_panelContent_done_2_listener(te){return ne.onToggleDone(te)})),ce.j41(3,"div",3),ce.SdG(4),ce.DNE(5,Panel_ng_container_5_Template,1,0,"ng-container",4),ce.k0s(),ce.DNE(6,Panel_div_6_Template,3,1,"div",5),ce.k0s()()),2&te&&(ce.HbH(ne.styleClass),ce.Y8G("ngClass",ce.l_i(14,_c3,ne.toggleable,!ne.collapsed&&ne.toggleable))("ngStyle",ne.style),ce.BMQ("id",ne.id)("data-pc-name","panel"),ce.R7$(),ce.Y8G("ngIf",ne.showHeader),ce.R7$(),ce.Y8G("id",ne.id+"_content")("@panelContent",ne.collapsed?ce.eq3(19,_c5,ce.eq3(17,_c4,ne.animating?ne.transitionOptions:"0ms")):ce.eq3(23,_c7,ce.eq3(21,_c6,ne.animating?ne.transitionOptions:"0ms"))),ce.BMQ("aria-labelledby",ne.id+"_header")("aria-hidden",ne.collapsed)("tabindex",ne.collapsed?"-1":void 0),ce.R7$(3),ce.Y8G("ngTemplateOutlet",ne.contentTemplate),ce.R7$(),ce.Y8G("ngIf",ne.footerFacet||ne.footerTemplate))},dependencies:()=>[le.YU,le.bT,le.T3,le.B3,ge.n,me.c,ue.Q],styles:["@layer primeng{.p-panel-header{display:flex;align-items:center}.p-panel-title{line-height:1;order:1}.p-panel-header-icon{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-panel-toggleable.p-panel-expanded>.p-toggleable-content:not(.ng-animating){overflow:visible}.p-panel-toggleable .p-toggleable-content{overflow:hidden}}\n"],encapsulation:2,data:{animation:[(0,re.hZ)("panelContent",[(0,re.wk)("hidden",(0,re.iF)({height:"0"})),(0,re.wk)("void",(0,re.iF)({height:"{{height}}"}),{params:{height:"0"}}),(0,re.wk)("visible",(0,re.iF)({height:"*"})),(0,re.kY)("visible <=> hidden",[(0,re.i0)("{{transitionParams}}")]),(0,re.kY)("void => hidden",(0,re.i0)("{{transitionParams}}")),(0,re.kY)("void => visible",(0,re.i0)("{{transitionParams}}"))])]},changeDetection:0})}return Panel})(),ye=(()=>{class PanelModule{static ɵfac=function PanelModule_Factory(te){return new(te||PanelModule)};static ɵmod=ce.$C({type:PanelModule});static ɵinj=ce.G2t({imports:[le.MD,de.Gg,ge.Z,me.c,ue.Q,de.Gg]})}return PanelModule})()},360:(te,ne,ie)=>{"use strict";ie.d(ne,{d:()=>ue,z:()=>de});var re=ie(4460),le=ie(3107),ce=ie(3828);const _c0=te=>({display:te});function ProgressBar_div_1_div_2_Template(te,ne){if(1&te&&(le.j41(0,"div",7),le.EFF(1),le.k0s()),2&te){const te=le.XpG(2);le.Y8G("ngStyle",le.eq3(4,_c0,null!=te.value&&0!==te.value?"flex":"none")),le.BMQ("data-pc-section","label"),le.R7$(),le.Lme(" ",te.value,"",te.unit," ")}}function ProgressBar_div_1_ng_container_3_Template(te,ne){1&te&&le.eu8(0)}const _c1=(te,ne)=>({width:te,display:"flex",background:ne}),_c2=te=>({$implicit:te});function ProgressBar_div_1_Template(te,ne){if(1&te&&(le.j41(0,"div",3)(1,"div",4),le.DNE(2,ProgressBar_div_1_div_2_Template,2,6,"div",5)(3,ProgressBar_div_1_ng_container_3_Template,1,0,"ng-container",6),le.k0s()()),2&te){const te=le.XpG();le.Y8G("ngStyle",le.l_i(5,_c1,te.value+"%",te.color)),le.BMQ("data-pc-section","value"),le.R7$(2),le.Y8G("ngIf",te.showValue&&!te.contentTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.contentTemplate)("ngTemplateOutletContext",le.eq3(8,_c2,te.value))}}const _c3=te=>({background:te});function ProgressBar_div_2_Template(te,ne){if(1&te&&(le.j41(0,"div",8),le.nrm(1,"div",3),le.k0s()),2&te){const te=le.XpG();le.BMQ("data-pc-section","container"),le.R7$(),le.Y8G("ngStyle",le.eq3(3,_c3,te.color)),le.BMQ("data-pc-section","value")}}const _c4=(te,ne)=>({"p-progressbar p-component":!0,"p-progressbar-determinate":te,"p-progressbar-indeterminate":ne});let de=(()=>{class ProgressBar{value;showValue=!0;styleClass;style;unit="%";mode="determinate";color;templates;contentTemplate;ngAfterContentInit(){this.templates?.forEach((te=>{te.getType(),this.contentTemplate=te.template}))}static ɵfac=function ProgressBar_Factory(te){return new(te||ProgressBar)};static ɵcmp=le.VBU({type:ProgressBar,selectors:[["p-progressBar"]],contentQueries:function ProgressBar_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,ce.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{value:[le.Mj6.HasDecoratorInputTransform,"value","value",le.Udg],showValue:[le.Mj6.HasDecoratorInputTransform,"showValue","showValue",le.L39],styleClass:"styleClass",style:"style",unit:"unit",mode:"mode",color:"color"},features:[le.GFd],decls:3,vars:14,consts:[["role","progressbar",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate",3,"ngStyle",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",3,"ngStyle"],[1,"p-progressbar-label"],[3,"ngStyle",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngStyle"],[1,"p-progressbar-indeterminate-container"]],template:function ProgressBar_Template(te,ne){1&te&&(le.j41(0,"div",0),le.DNE(1,ProgressBar_div_1_Template,4,10,"div",1)(2,ProgressBar_div_2_Template,2,5,"div",2),le.k0s()),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngStyle",ne.style)("ngClass",le.l_i(11,_c4,"determinate"===ne.mode,"indeterminate"===ne.mode)),le.BMQ("aria-valuemin",0)("aria-valuenow",ne.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root"),le.R7$(),le.Y8G("ngIf","determinate"===ne.mode),le.R7$(),le.Y8G("ngIf","indeterminate"===ne.mode))},dependencies:[re.YU,re.bT,re.T3,re.B3],styles:['@layer primeng{.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;-webkit-animation-delay:1.15s;animation-delay:1.15s}}@-webkit-keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@-webkit-keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0})}return ProgressBar})(),ue=(()=>{class ProgressBarModule{static ɵfac=function ProgressBarModule_Factory(te){return new(te||ProgressBarModule)};static ɵmod=le.$C({type:ProgressBarModule});static ɵinj=le.G2t({imports:[re.MD]})}return ProgressBarModule})()},7756:(te,ne,ie)=>{"use strict";ie.d(ne,{d:()=>de,p:()=>ce});var re=ie(4460),le=ie(3107);let ce=(()=>{class ProgressSpinner{styleClass;style;strokeWidth="2";fill="none";animationDuration="2s";ariaLabel;static ɵfac=function ProgressSpinner_Factory(te){return new(te||ProgressSpinner)};static ɵcmp=le.VBU({type:ProgressSpinner,selectors:[["p-progressSpinner"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration",ariaLabel:"ariaLabel"},decls:3,vars:11,consts:[["role","progressbar",1,"p-progress-spinner",3,"ngStyle","ngClass"],["viewBox","25 25 50 50",1,"p-progress-spinner-svg"],["cx","50","cy","50","r","20","stroke-miterlimit","10",1,"p-progress-spinner-circle"]],template:function ProgressSpinner_Template(te,ne){1&te&&(le.j41(0,"div",0),le.qSk(),le.j41(1,"svg",1),le.nrm(2,"circle",2),le.k0s()()),2&te&&(le.Y8G("ngStyle",ne.style)("ngClass",ne.styleClass),le.BMQ("aria-label",ne.ariaLabel)("aria-busy",!0)("data-pc-name","progressspinner")("data-pc-section","root"),le.R7$(),le.xc7("animation-duration",ne.animationDuration),le.BMQ("data-pc-section","root"),le.R7$(),le.BMQ("fill",ne.fill)("stroke-width",ne.strokeWidth))},dependencies:[re.YU,re.B3],styles:['@layer primeng{.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;inset:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n'],encapsulation:2,changeDetection:0})}return ProgressSpinner})(),de=(()=>{class ProgressSpinnerModule{static ɵfac=function ProgressSpinnerModule_Factory(te){return new(te||ProgressSpinnerModule)};static ɵmod=le.$C({type:ProgressSpinnerModule});static ɵinj=le.G2t({imports:[re.MD]})}return ProgressSpinnerModule})()},1646:(te,ne,ie)=>{"use strict";ie.d(ne,{Z:()=>me,n:()=>ue});var re=ie(4460),le=ie(3107),ce=ie(5724),de=ie(3828);let ue=(()=>{class Ripple{document;platformId;renderer;el;zone;config;constructor(te,ne,ie,re,le,ce){this.document=te,this.platformId=ne,this.renderer=ie,this.el=re,this.zone=le,this.config=ce}animationListener;mouseDownListener;timeout;ngAfterViewInit(){(0,re.UE)(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular((()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))}))}onMouseDown(te){let ne=this.getInk();if(!ne||"none"===this.document.defaultView?.getComputedStyle(ne,null).display)return;if(ce.D.removeClass(ne,"p-ink-active"),!ce.D.getHeight(ne)&&!ce.D.getWidth(ne)){let te=Math.max(ce.D.getOuterWidth(this.el.nativeElement),ce.D.getOuterHeight(this.el.nativeElement));ne.style.height=te+"px",ne.style.width=te+"px"}let ie=ce.D.getOffset(this.el.nativeElement),re=te.pageX-ie.left+this.document.body.scrollTop-ce.D.getWidth(ne)/2,le=te.pageY-ie.top+this.document.body.scrollLeft-ce.D.getHeight(ne)/2;this.renderer.setStyle(ne,"top",le+"px"),this.renderer.setStyle(ne,"left",re+"px"),ce.D.addClass(ne,"p-ink-active"),this.timeout=setTimeout((()=>{let te=this.getInk();te&&ce.D.removeClass(te,"p-ink-active")}),401)}getInk(){const te=this.el.nativeElement.children;for(let ne=0;ne<te.length;ne++)if("string"==typeof te[ne].className&&-1!==te[ne].className.indexOf("p-ink"))return te[ne];return null}resetInk(){let te=this.getInk();te&&ce.D.removeClass(te,"p-ink-active")}onAnimationEnd(te){this.timeout&&clearTimeout(this.timeout),ce.D.removeClass(te.currentTarget,"p-ink-active")}create(){let te=this.renderer.createElement("span");this.renderer.addClass(te,"p-ink"),this.renderer.appendChild(this.el.nativeElement,te),this.renderer.setAttribute(te,"aria-hidden","true"),this.renderer.setAttribute(te,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(te,"animationend",this.onAnimationEnd.bind(this)))}remove(){let te=this.getInk();te&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,ce.D.removeElement(te))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}static ɵfac=function Ripple_Factory(te){return new(te||Ripple)(le.rXU(re.qQ),le.rXU(le.Agw),le.rXU(le.sFG),le.rXU(le.aKT),le.rXU(le.SKi),le.rXU(de.r1,8))};static ɵdir=le.FsC({type:Ripple,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"],standalone:!0})}return Ripple})(),me=(()=>{class RippleModule{static ɵfac=function RippleModule_Factory(te){return new(te||RippleModule)};static ɵmod=le.$C({type:RippleModule});static ɵinj=le.G2t({})}return RippleModule})()},3934:(te,ne,ie)=>{"use strict";ie.d(ne,{H:()=>_e,h:()=>be});var re=ie(4460),le=ie(3107),ce=ie(3828),de=ie(5724),ue=ie(5774);const me=["element"],ge=["content"];function Scroller_ng_container_0_ng_container_3_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c2=(te,ne)=>({$implicit:te,options:ne});function Scroller_ng_container_0_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Scroller_ng_container_0_ng_container_3_ng_container_1_Template,1,0,"ng-container",7),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",te.contentTemplate)("ngTemplateOutletContext",le.l_i(2,_c2,te.loadedItems,te.getContentOptions()))}}function Scroller_ng_container_0_ng_template_4_ng_container_2_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function Scroller_ng_container_0_ng_template_4_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Scroller_ng_container_0_ng_template_4_ng_container_2_ng_container_1_Template,1,0,"ng-container",7),le.bVm()),2&te){const te=ne.$implicit,ie=ne.index,re=le.XpG(3);le.R7$(),le.Y8G("ngTemplateOutlet",re.itemTemplate)("ngTemplateOutletContext",le.l_i(2,_c2,te,re.getOptions(ie)))}}const _c3=te=>({"p-scroller-loading":te});function Scroller_ng_container_0_ng_template_4_Template(te,ne){if(1&te&&(le.j41(0,"div",8,9),le.DNE(2,Scroller_ng_container_0_ng_template_4_ng_container_2_Template,2,5,"ng-container",10),le.k0s()),2&te){const te=le.XpG(2);le.Y8G("ngClass",le.eq3(5,_c3,te.d_loading))("ngStyle",te.contentStyle),le.BMQ("data-pc-section","content"),le.R7$(2),le.Y8G("ngForOf",te.loadedItems)("ngForTrackBy",te._trackBy||te.index)}}function Scroller_ng_container_0_div_6_Template(te,ne){if(1&te&&le.nrm(0,"div",11),2&te){const te=le.XpG(2);le.Y8G("ngStyle",te.spacerStyle),le.BMQ("data-pc-section","spacer")}}function Scroller_ng_container_0_div_7_ng_container_1_ng_container_1_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c4=te=>({numCols:te}),_c5=te=>({options:te});function Scroller_ng_container_0_div_7_ng_container_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Scroller_ng_container_0_div_7_ng_container_1_ng_container_1_ng_container_1_Template,1,0,"ng-container",7),le.bVm()),2&te){const te=ne.index,ie=le.XpG(4);le.R7$(),le.Y8G("ngTemplateOutlet",ie.loaderTemplate)("ngTemplateOutletContext",le.eq3(4,_c5,ie.getLoaderOptions(te,ie.both&&le.eq3(2,_c4,ie._numItemsInViewport.cols))))}}function Scroller_ng_container_0_div_7_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Scroller_ng_container_0_div_7_ng_container_1_ng_container_1_Template,2,6,"ng-container",14),le.bVm()),2&te){const te=le.XpG(3);le.R7$(),le.Y8G("ngForOf",te.loaderArr)}}function Scroller_ng_container_0_div_7_ng_template_2_ng_container_0_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c6=()=>({styleClass:"p-scroller-loading-icon"});function Scroller_ng_container_0_div_7_ng_template_2_ng_container_0_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Scroller_ng_container_0_div_7_ng_template_2_ng_container_0_ng_container_1_Template,1,0,"ng-container",7),le.bVm()),2&te){const te=le.XpG(4);le.R7$(),le.Y8G("ngTemplateOutlet",te.loaderIconTemplate)("ngTemplateOutletContext",le.eq3(3,_c5,le.lJ4(2,_c6)))}}function Scroller_ng_container_0_div_7_ng_template_2_ng_template_1_Template(te,ne){1&te&&le.nrm(0,"SpinnerIcon",16),2&te&&(le.Y8G("styleClass","p-scroller-loading-icon pi-spin"),le.BMQ("data-pc-section","loadingIcon"))}function Scroller_ng_container_0_div_7_ng_template_2_Template(te,ne){if(1&te&&le.DNE(0,Scroller_ng_container_0_div_7_ng_template_2_ng_container_0_Template,2,5,"ng-container",0)(1,Scroller_ng_container_0_div_7_ng_template_2_ng_template_1_Template,1,2,"ng-template",null,15,le.C5r),2&te){const te=le.sdS(2),ne=le.XpG(3);le.Y8G("ngIf",ne.loaderIconTemplate)("ngIfElse",te)}}const _c7=te=>({"p-component-overlay":te});function Scroller_ng_container_0_div_7_Template(te,ne){if(1&te&&(le.j41(0,"div",12),le.DNE(1,Scroller_ng_container_0_div_7_ng_container_1_Template,2,1,"ng-container",0)(2,Scroller_ng_container_0_div_7_ng_template_2_Template,3,2,"ng-template",null,13,le.C5r),le.k0s()),2&te){const te=le.sdS(3),ne=le.XpG(2);le.Y8G("ngClass",le.eq3(4,_c7,!ne.loaderTemplate)),le.BMQ("data-pc-section","loader"),le.R7$(),le.Y8G("ngIf",ne.loaderTemplate)("ngIfElse",te)}}const _c8=(te,ne,ie)=>({"p-scroller":!0,"p-scroller-inline":te,"p-both-scroll":ne,"p-horizontal-scroll":ie});function Scroller_ng_container_0_Template(te,ne){if(1&te){const te=le.RV6();le.qex(0),le.j41(1,"div",2,3),le.bIt("scroll",(function Scroller_ng_container_0_Template_div_scroll_1_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onContainerScroll(ne))})),le.DNE(3,Scroller_ng_container_0_ng_container_3_Template,2,5,"ng-container",0)(4,Scroller_ng_container_0_ng_template_4_Template,3,7,"ng-template",null,4,le.C5r)(6,Scroller_ng_container_0_div_6_Template,1,2,"div",5)(7,Scroller_ng_container_0_div_7_Template,4,6,"div",6),le.k0s(),le.bVm()}if(2&te){const te=le.sdS(5),ne=le.XpG();le.R7$(),le.HbH(ne._styleClass),le.Y8G("ngStyle",ne._style)("ngClass",le.sMw(12,_c8,ne.inline,ne.both,ne.horizontal)),le.BMQ("id",ne._id)("tabindex",ne.tabindex)("data-pc-name","scroller")("data-pc-section","root"),le.R7$(2),le.Y8G("ngIf",ne.contentTemplate)("ngIfElse",te),le.R7$(3),le.Y8G("ngIf",ne._showSpacer),le.R7$(),le.Y8G("ngIf",!ne.loaderDisabled&&ne._showLoader&&ne.d_loading)}}function Scroller_ng_template_1_ng_container_1_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c9=(te,ne)=>({rows:te,columns:ne});function Scroller_ng_template_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Scroller_ng_template_1_ng_container_1_ng_container_1_Template,1,0,"ng-container",7),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",te.contentTemplate)("ngTemplateOutletContext",le.l_i(5,_c2,te.items,le.l_i(2,_c9,te._items,te.loadedColumns)))}}function Scroller_ng_template_1_Template(te,ne){if(1&te&&(le.SdG(0),le.DNE(1,Scroller_ng_template_1_ng_container_1_Template,2,8,"ng-container",17)),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.contentTemplate)}}const fe=["*"];let _e=(()=>{class Scroller{document;platformId;renderer;cd;zone;get id(){return this._id}set id(te){this._id=te}get style(){return this._style}set style(te){this._style=te}get styleClass(){return this._styleClass}set styleClass(te){this._styleClass=te}get tabindex(){return this._tabindex}set tabindex(te){this._tabindex=te}get items(){return this._items}set items(te){this._items=te}get itemSize(){return this._itemSize}set itemSize(te){this._itemSize=te}get scrollHeight(){return this._scrollHeight}set scrollHeight(te){this._scrollHeight=te}get scrollWidth(){return this._scrollWidth}set scrollWidth(te){this._scrollWidth=te}get orientation(){return this._orientation}set orientation(te){this._orientation=te}get step(){return this._step}set step(te){this._step=te}get delay(){return this._delay}set delay(te){this._delay=te}get resizeDelay(){return this._resizeDelay}set resizeDelay(te){this._resizeDelay=te}get appendOnly(){return this._appendOnly}set appendOnly(te){this._appendOnly=te}get inline(){return this._inline}set inline(te){this._inline=te}get lazy(){return this._lazy}set lazy(te){this._lazy=te}get disabled(){return this._disabled}set disabled(te){this._disabled=te}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(te){this._loaderDisabled=te}get columns(){return this._columns}set columns(te){this._columns=te}get showSpacer(){return this._showSpacer}set showSpacer(te){this._showSpacer=te}get showLoader(){return this._showLoader}set showLoader(te){this._showLoader=te}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(te){this._numToleratedItems=te}get loading(){return this._loading}set loading(te){this._loading=te}get autoSize(){return this._autoSize}set autoSize(te){this._autoSize=te}get trackBy(){return this._trackBy}set trackBy(te){this._trackBy=te}get options(){return this._options}set options(te){this._options=te,te&&"object"==typeof te&&Object.entries(te).forEach((([te,ne])=>this[`_${te}`]!==ne&&(this[`_${te}`]=ne)))}onLazyLoad=new le.bkB;onScroll=new le.bkB;onScrollIndexChange=new le.bkB;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map((te=>this._columns?te:te.slice(this._appendOnly?0:this.first.cols,this.last.cols))):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}constructor(te,ne,ie,re,le){this.document=te,this.platformId=ne,this.renderer=ie,this.cd=re,this.zone=le}ngOnInit(){this.setInitialState()}ngOnChanges(te){let ne=!1;if(te.loading){const{previousValue:ie,currentValue:re}=te.loading;this.lazy&&ie!==re&&re!==this.d_loading&&(this.d_loading=re,ne=!0)}if(te.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),te.numToleratedItems){const{previousValue:ne,currentValue:ie}=te.numToleratedItems;ne!==ie&&ie!==this.d_numToleratedItems&&(this.d_numToleratedItems=ie)}if(te.options){const{previousValue:ie,currentValue:re}=te.options;this.lazy&&ie?.loading!==re?.loading&&re?.loading!==this.d_loading&&(this.d_loading=re.loading,ne=!0),ie?.numToleratedItems!==re?.numToleratedItems&&re?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=re.numToleratedItems)}if(this.initialized){!ne&&(te.items?.previousValue?.length!==te.items?.currentValue?.length||te.itemSize||te.scrollHeight||te.scrollWidth)&&(this.init(),this.calculateAutoSize())}}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"content":this.contentTemplate=te.template;break;case"item":default:this.itemTemplate=te.template;break;case"loader":this.loaderTemplate=te.template;break;case"loadericon":this.loaderIconTemplate=te.template}}))}ngAfterViewInit(){Promise.resolve().then((()=>{this.viewInit()}))}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){(0,re.UE)(this.platformId)&&!this.initialized&&de.D.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.calculateAutoSize(),this.defaultWidth=de.D.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=de.D.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=de.D.getWidth(this.contentEl),this.defaultContentHeight=de.D.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(te){this.contentEl=te||this.contentViewChild?.nativeElement||de.D.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(te){return Math.floor(((te??this.first)+4*this.d_numToleratedItems)/(this._step||1))}isPageChanged(te){return!this._step||this.page!==this.getPageByFirst(te??this.first)}scrollTo(te){this.elementViewChild?.nativeElement?.scrollTo(te)}scrollToIndex(te,ne="auto"){if(this.both?te.every((te=>te>-1)):te>-1){const ie=this.first,{scrollTop:re=0,scrollLeft:le=0}=this.elementViewChild?.nativeElement,{numToleratedItems:ce}=this.calculateNumItems(),de=this.getContentPosition(),ue=this.itemSize,calculateFirst=(te=0,ne)=>te<=ne?0:te,calculateCoord=(te,ne,ie)=>te*ne+ie,scrollTo=(te=0,ie=0)=>this.scrollTo({left:te,top:ie,behavior:ne});let me=this.both?{rows:0,cols:0}:0,ge=!1,fe=!1;this.both?(me={rows:calculateFirst(te[0],ce[0]),cols:calculateFirst(te[1],ce[1])},scrollTo(calculateCoord(me.cols,ue[1],de.left),calculateCoord(me.rows,ue[0],de.top)),fe=this.lastScrollPos.top!==re||this.lastScrollPos.left!==le,ge=me.rows!==ie.rows||me.cols!==ie.cols):(me=calculateFirst(te,ce),this.horizontal?scrollTo(calculateCoord(me,ue,de.left),re):scrollTo(le,calculateCoord(me,ue,de.top)),fe=this.lastScrollPos!==(this.horizontal?le:re),ge=me!==ie),this.isRangeChanged=ge,fe&&(this.first=me)}}scrollInView(te,ne,ie="auto"){if(ne){const{first:re,viewport:le}=this.getRenderedRange(),scrollTo=(te=0,ne=0)=>this.scrollTo({left:te,top:ne,behavior:ie}),ce="to-end"===ne;if("to-start"===ne){if(this.both)le.first.rows-re.rows>te[0]?scrollTo(le.first.cols*this._itemSize[1],(le.first.rows-1)*this._itemSize[0]):le.first.cols-re.cols>te[1]&&scrollTo((le.first.cols-1)*this._itemSize[1],le.first.rows*this._itemSize[0]);else if(le.first-re>te){const te=(le.first-1)*this._itemSize;this.horizontal?scrollTo(te,0):scrollTo(0,te)}}else if(ce)if(this.both)le.last.rows-re.rows<=te[0]+1?scrollTo(le.first.cols*this._itemSize[1],(le.first.rows+1)*this._itemSize[0]):le.last.cols-re.cols<=te[1]+1&&scrollTo((le.first.cols+1)*this._itemSize[1],le.first.rows*this._itemSize[0]);else if(le.last-re<=te+1){const te=(le.first+1)*this._itemSize;this.horizontal?scrollTo(te,0):scrollTo(0,te)}}else this.scrollToIndex(te,ie)}getRenderedRange(){const calculateFirstInViewport=(te,ne)=>ne||te?Math.floor(te/(ne||te)):0;let te=this.first,ne=0;if(this.elementViewChild?.nativeElement){const{scrollTop:ie,scrollLeft:re}=this.elementViewChild.nativeElement;if(this.both)te={rows:calculateFirstInViewport(ie,this._itemSize[0]),cols:calculateFirstInViewport(re,this._itemSize[1])},ne={rows:te.rows+this.numItemsInViewport.rows,cols:te.cols+this.numItemsInViewport.cols};else{te=calculateFirstInViewport(this.horizontal?re:ie,this._itemSize),ne=te+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:te,last:ne}}}calculateNumItems(){const te=this.getContentPosition(),ne=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-te.left:0)||0,ie=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-te.top:0)||0,calculateNumItemsInViewport=(te,ne)=>ne||te?Math.ceil(te/(ne||te)):0,calculateNumToleratedItems=te=>Math.ceil(te/2),re=this.both?{rows:calculateNumItemsInViewport(ie,this._itemSize[0]),cols:calculateNumItemsInViewport(ne,this._itemSize[1])}:calculateNumItemsInViewport(this.horizontal?ne:ie,this._itemSize);return{numItemsInViewport:re,numToleratedItems:this.d_numToleratedItems||(this.both?[calculateNumToleratedItems(re.rows),calculateNumToleratedItems(re.cols)]:calculateNumToleratedItems(re))}}calculateOptions(){const{numItemsInViewport:te,numToleratedItems:ne}=this.calculateNumItems(),calculateLast=(te,ne,ie,re=!1)=>this.getLast(te+ne+(te<ie?2:3)*ie,re),ie=this.first,re=this.both?{rows:calculateLast(this.first.rows,te.rows,ne[0]),cols:calculateLast(this.first.cols,te.cols,ne[1],!0)}:calculateLast(this.first,te,ne);this.last=re,this.numItemsInViewport=te,this.d_numToleratedItems=ne,this.showLoader&&(this.loaderArr=this.both?Array.from({length:te.rows}).map((()=>Array.from({length:te.cols}))):Array.from({length:te})),this._lazy&&Promise.resolve().then((()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:ie.cols}:0:ie,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)}))}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then((()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[te,ne]=[de.D.getWidth(this.contentEl),de.D.getHeight(this.contentEl)];te!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),ne!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[ie,re]=[de.D.getWidth(this.elementViewChild.nativeElement),de.D.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=ie<this.defaultWidth?ie+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=re<this.defaultHeight?re+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}}))}getLast(te=0,ne=!1){return this._items?Math.min(ne?(this._columns||this._items[0]).length:this._items.length,te):0}getContentPosition(){if(this.contentEl){const te=getComputedStyle(this.contentEl),ne=parseFloat(te.paddingLeft)+Math.max(parseFloat(te.left)||0,0),ie=parseFloat(te.paddingRight)+Math.max(parseFloat(te.right)||0,0),re=parseFloat(te.paddingTop)+Math.max(parseFloat(te.top)||0,0),le=parseFloat(te.paddingBottom)+Math.max(parseFloat(te.bottom)||0,0);return{left:ne,right:ie,top:re,bottom:le,x:ne+ie,y:re+le}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){const te=this.elementViewChild.nativeElement.parentElement.parentElement,ne=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||te.offsetWidth}px`,ie=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||te.offsetHeight}px`,setProp=(te,ne)=>this.elementViewChild.nativeElement.style[te]=ne;this.both||this.horizontal?(setProp("height",ie),setProp("width",ne)):setProp("height",ie)}}setSpacerSize(){if("100%"!==this._scrollHeight&&this._items){const te=this.getContentPosition(),setProp=(te,ne,ie,re=0)=>this.spacerStyle={...this.spacerStyle,[`${te}`]:(ne||[]).length*ie+re+"px"};this.both?(setProp("height",this._items,this._itemSize[0],te.y),setProp("width",this._columns||this._items[1],this._itemSize[1],te.x)):this.horizontal?setProp("width",this._columns||this._items,this._itemSize,te.x):setProp("height",this._items,this._itemSize,te.y)}}setContentPosition(te){if(this.contentEl&&!this._appendOnly){const ne=te?te.first:this.first,calculateTranslateVal=(te,ne)=>te*ne,setTransform=(te=0,ne=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${te}px, ${ne}px, 0)`};if(this.both)setTransform(calculateTranslateVal(ne.cols,this._itemSize[1]),calculateTranslateVal(ne.rows,this._itemSize[0]));else{const te=calculateTranslateVal(ne,this._itemSize);this.horizontal?setTransform(te,0):setTransform(0,te)}}}onScrollPositionChange(te){const ne=te.target,ie=this.getContentPosition(),calculateScrollPos=(te,ne)=>te?te>ne?te-ne:te:0,calculateCurrentIndex=(te,ne)=>ne||te?Math.floor(te/(ne||te)):0,calculateTriggerIndex=(te,ne,ie,re,le,ce)=>te<=le?le:ce?ie-re-le:ne+le-1,calculateFirst=(te,ne,ie,re,le,ce,de)=>te<=ce?0:Math.max(0,de?te<ne?ie:te-ce:te>ne?ie:te-2*ce),calculateLast=(te,ne,ie,re,le,ce=!1)=>{let de=ne+re+2*le;return te>=le&&(de+=le+1),this.getLast(de,ce)},re=calculateScrollPos(ne.scrollTop,ie.top),le=calculateScrollPos(ne.scrollLeft,ie.left);let ce=this.both?{rows:0,cols:0}:0,de=this.last,ue=!1,me=this.lastScrollPos;if(this.both){const te=this.lastScrollPos.top<=re,ne=this.lastScrollPos.left<=le;if(!this._appendOnly||this._appendOnly&&(te||ne)){const ie={rows:calculateCurrentIndex(re,this._itemSize[0]),cols:calculateCurrentIndex(le,this._itemSize[1])},ge={rows:calculateTriggerIndex(ie.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],te),cols:calculateTriggerIndex(ie.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],ne)};ce={rows:calculateFirst(ie.rows,ge.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],te),cols:calculateFirst(ie.cols,ge.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],ne)},de={rows:calculateLast(ie.rows,ce.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:calculateLast(ie.cols,ce.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},ue=ce.rows!==this.first.rows||de.rows!==this.last.rows||ce.cols!==this.first.cols||de.cols!==this.last.cols||this.isRangeChanged,me={top:re,left:le}}}else{const te=this.horizontal?le:re,ne=this.lastScrollPos<=te;if(!this._appendOnly||this._appendOnly&&ne){const ie=calculateCurrentIndex(te,this._itemSize);ce=calculateFirst(ie,calculateTriggerIndex(ie,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,ne),this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,ne),de=calculateLast(ie,ce,this.last,this.numItemsInViewport,this.d_numToleratedItems),ue=ce!==this.first||de!==this.last||this.isRangeChanged,me=te}}return{first:ce,last:de,isRangeChanged:ue,scrollPos:me}}onScrollChange(te){const{first:ne,last:ie,isRangeChanged:re,scrollPos:le}=this.onScrollPositionChange(te);if(re){const te={first:ne,last:ie};if(this.setContentPosition(te),this.first=ne,this.last=ie,this.lastScrollPos=le,this.handleEvents("onScrollIndexChange",te),this._lazy&&this.isPageChanged(ne)){const te={first:this._step?Math.min(this.getPageByFirst(ne)*this._step,this.items.length-this._step):ne,last:Math.min(this._step?(this.getPageByFirst(ne)+1)*this._step:ie,this.items.length)};(this.lazyLoadState.first!==te.first||this.lazyLoadState.last!==te.last)&&this.handleEvents("onLazyLoad",te),this.lazyLoadState=te}}}onContainerScroll(te){if(this.handleEvents("onScroll",{originalEvent:te}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:ne}=this.onScrollPositionChange(te);(ne||!!this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout((()=>{this.onScrollChange(te),!this.d_loading||!this.showLoader||this._lazy&&void 0!==this._loading||(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())}),this._delay)}else!this.d_loading&&this.onScrollChange(te)}bindResizeListener(){(0,re.UE)(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular((()=>{const te=this.document.defaultView,ne=de.D.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(te,ne,this.onWindowResize.bind(this))})))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((()=>{if(de.D.isVisible(this.elementViewChild?.nativeElement)){const[te,ne]=[de.D.getWidth(this.elementViewChild?.nativeElement),de.D.getHeight(this.elementViewChild?.nativeElement)],[ie,re]=[te!==this.defaultWidth,ne!==this.defaultHeight];(this.both?ie||re:this.horizontal?ie:!!this.vertical&&re)&&this.zone.run((()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=te,this.defaultHeight=ne,this.defaultContentWidth=de.D.getWidth(this.contentEl),this.defaultContentHeight=de.D.getHeight(this.contentEl),this.init(),this.calculateAutoSize()}))}}),this._resizeDelay)}handleEvents(te,ne){return this.options&&this.options[te]?this.options[te](ne):this[te].emit(ne)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:te=>this.getOptions(te),loading:this.d_loading,getLoaderOptions:(te,ne)=>this.getLoaderOptions(te,ne),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(te){const ne=(this._items||[]).length,ie=this.both?this.first.rows+te:this.first+te;return{index:ie,count:ne,first:0===ie,last:ie===ne-1,even:ie%2==0,odd:ie%2!=0}}getLoaderOptions(te,ne){const ie=this.loaderArr.length;return{index:te,count:ie,first:0===te,last:te===ie-1,even:te%2==0,odd:te%2!=0,...ne}}static ɵfac=function Scroller_Factory(te){return new(te||Scroller)(le.rXU(re.qQ),le.rXU(le.Agw),le.rXU(le.sFG),le.rXU(le.gRc),le.rXU(le.SKi))};static ɵcmp=le.VBU({type:Scroller,selectors:[["p-scroller"]],contentQueries:function Scroller_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,ce.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},viewQuery:function Scroller_Query(te,ne){if(1&te&&(le.GBs(me,5),le.GBs(ge,5)),2&te){let te;le.mGM(te=le.lsd())&&(ne.elementViewChild=te.first),le.mGM(te=le.lsd())&&(ne.contentViewChild=te.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[le.OA$],ngContentSelectors:fe,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function Scroller_Template(te,ne){if(1&te&&(le.NAR(),le.DNE(0,Scroller_ng_container_0_Template,8,16,"ng-container",0)(1,Scroller_ng_template_1_Template,2,1,"ng-template",null,1,le.C5r)),2&te){const te=le.sdS(2);le.Y8G("ngIf",!ne._disabled)("ngIfElse",te)}},dependencies:()=>[re.YU,re.Sq,re.bT,re.T3,re.B3,ue.N],styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return Scroller})(),be=(()=>{class ScrollerModule{static ɵfac=function ScrollerModule_Factory(te){return new(te||ScrollerModule)};static ɵmod=le.$C({type:ScrollerModule});static ɵinj=le.G2t({imports:[re.MD,ce.Gg,ue.N,ce.Gg]})}return ScrollerModule})()},2541:(te,ne,ie)=>{"use strict";ie.d(ne,{E:()=>ce,k:()=>de});var re=ie(4460),le=ie(3107);let ce=(()=>{class Skeleton{styleClass;style;shape="rectangle";animation="wave";borderRadius;size;width="100%";height="1rem";containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-none":"none"===this.animation}}get containerStyle(){return this.size?{...this.style,width:this.size,height:this.size,borderRadius:this.borderRadius}:{width:this.width,height:this.height,borderRadius:this.borderRadius,...this.style}}static ɵfac=function Skeleton_Factory(te){return new(te||Skeleton)};static ɵcmp=le.VBU({type:Skeleton,selectors:[["p-skeleton"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},decls:1,vars:7,consts:[[3,"ngClass","ngStyle"]],template:function Skeleton_Template(te,ne){1&te&&le.nrm(0,"div",0),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngClass",ne.containerClass())("ngStyle",ne.containerStyle),le.BMQ("data-pc-name","skeleton")("aria-hidden",!0)("data-pc-section","root"))},dependencies:[re.YU,re.B3],styles:['@layer primeng{.p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:"";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n'],encapsulation:2,changeDetection:0})}return Skeleton})(),de=(()=>{class SkeletonModule{static ɵfac=function SkeletonModule_Factory(te){return new(te||SkeletonModule)};static ɵmod=le.$C({type:SkeletonModule});static ɵinj=le.G2t({imports:[re.MD]})}return SkeletonModule})()},3238:(te,ne,ie)=>{"use strict";ie.d(ne,{H$:()=>Jt,SJ:()=>tn,O8:()=>Zt,d5:()=>Qt,XI:()=>Wt,S9:()=>nn,nA:()=>rn,bG:()=>an});var re=ie(4460),le=ie(3107),ce=ie(936),de=ie(3828),ue=ie(7280),me=ie(30),ge=ie(5724),fe=ie(208),_e=ie(1196),be=ie(1939);let Ce=(()=>{class ArrowDownIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function ArrowDownIcon_Factory(ne){return(te||(te=le.xGo(ArrowDownIcon)))(ne||ArrowDownIcon)}})();static ɵcmp=le.VBU({type:ArrowDownIcon,selectors:[["ArrowDownIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function ArrowDownIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1),le.k0s(),le.j41(3,"defs")(4,"clipPath",2),le.nrm(5,"rect",3),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(3),le.Y8G("id",ne.pathId))},encapsulation:2})}return ArrowDownIcon})(),ye=(()=>{class ArrowUpIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function ArrowUpIcon_Factory(ne){return(te||(te=le.xGo(ArrowUpIcon)))(ne||ArrowUpIcon)}})();static ɵcmp=le.VBU({type:ArrowUpIcon,selectors:[["ArrowUpIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function ArrowUpIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1),le.k0s(),le.j41(3,"defs")(4,"clipPath",2),le.nrm(5,"rect",3),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(3),le.Y8G("id",ne.pathId))},encapsulation:2})}return ArrowUpIcon})();var we=ie(7825);let ke=(()=>{class FilterIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function FilterIcon_Factory(ne){return(te||(te=le.xGo(FilterIcon)))(ne||FilterIcon)}})();static ɵcmp=le.VBU({type:FilterIcon,selectors:[["FilterIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function FilterIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1),le.k0s(),le.j41(3,"defs")(4,"clipPath",2),le.nrm(5,"rect",3),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(3),le.Y8G("id",ne.pathId))},encapsulation:2})}return FilterIcon})(),Se=(()=>{class FilterSlashIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function FilterSlashIcon_Factory(ne){return(te||(te=le.xGo(FilterSlashIcon)))(ne||FilterSlashIcon)}})();static ɵcmp=le.VBU({type:FilterSlashIcon,selectors:[["FilterSlashIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function FilterSlashIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1),le.k0s(),le.j41(3,"defs")(4,"clipPath",2),le.nrm(5,"rect",3),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(3),le.Y8G("id",ne.pathId))},encapsulation:2})}return FilterSlashIcon})();var xe=ie(883);let Ee=(()=>{class SortAltIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function SortAltIcon_Factory(ne){return(te||(te=le.xGo(SortAltIcon)))(ne||SortAltIcon)}})();static ɵcmp=le.VBU({type:SortAltIcon,selectors:[["SortAltIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function SortAltIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),le.k0s(),le.j41(6,"defs")(7,"clipPath",5),le.nrm(8,"rect",6),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(6),le.Y8G("id",ne.pathId))},encapsulation:2})}return SortAltIcon})(),Me=(()=>{class SortAmountDownIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function SortAmountDownIcon_Factory(ne){return(te||(te=le.xGo(SortAmountDownIcon)))(ne||SortAmountDownIcon)}})();static ɵcmp=le.VBU({type:SortAmountDownIcon,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function SortAmountDownIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1),le.k0s(),le.j41(3,"defs")(4,"clipPath",2),le.nrm(5,"rect",3),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(3),le.Y8G("id",ne.pathId))},encapsulation:2})}return SortAmountDownIcon})(),Ne=(()=>{class SortAmountUpAltIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function SortAmountUpAltIcon_Factory(ne){return(te||(te=le.xGo(SortAmountUpAltIcon)))(ne||SortAmountUpAltIcon)}})();static ɵcmp=le.VBU({type:SortAmountUpAltIcon,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function SortAmountUpAltIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1),le.k0s(),le.j41(3,"defs")(4,"clipPath",2),le.nrm(5,"rect",3),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(3),le.Y8G("id",ne.pathId))},encapsulation:2})}return SortAmountUpAltIcon})();var Re=ie(5774);let Le=(()=>{class TrashIcon extends _e.h{pathId;ngOnInit(){this.pathId="url(#"+(0,be._Y)()+")"}static ɵfac=(()=>{let te;return function TrashIcon_Factory(ne){return(te||(te=le.xGo(TrashIcon)))(ne||TrashIcon)}})();static ɵcmp=le.VBU({type:TrashIcon,selectors:[["TrashIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function TrashIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0)(1,"g"),le.nrm(2,"path",1),le.k0s(),le.j41(3,"defs")(4,"clipPath",2),le.nrm(5,"rect",3),le.k0s()()()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),le.R7$(),le.BMQ("clip-path",ne.pathId),le.R7$(3),le.Y8G("id",ne.pathId))},encapsulation:2})}return TrashIcon})();var Oe=ie(3531),Pe=ie(7721);let Fe=(()=>{class AngleDoubleLeftIcon extends _e.h{static ɵfac=(()=>{let te;return function AngleDoubleLeftIcon_Factory(ne){return(te||(te=le.xGo(AngleDoubleLeftIcon)))(ne||AngleDoubleLeftIcon)}})();static ɵcmp=le.VBU({type:AngleDoubleLeftIcon,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function AngleDoubleLeftIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0),le.nrm(1,"path",1),le.k0s()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return AngleDoubleLeftIcon})(),je=(()=>{class AngleDoubleRightIcon extends _e.h{static ɵfac=(()=>{let te;return function AngleDoubleRightIcon_Factory(ne){return(te||(te=le.xGo(AngleDoubleRightIcon)))(ne||AngleDoubleRightIcon)}})();static ɵcmp=le.VBU({type:AngleDoubleRightIcon,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function AngleDoubleRightIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0),le.nrm(1,"path",1),le.k0s()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return AngleDoubleRightIcon})(),Ve=(()=>{class AngleLeftIcon extends _e.h{static ɵfac=(()=>{let te;return function AngleLeftIcon_Factory(ne){return(te||(te=le.xGo(AngleLeftIcon)))(ne||AngleLeftIcon)}})();static ɵcmp=le.VBU({type:AngleLeftIcon,selectors:[["AngleLeftIcon"]],standalone:!0,features:[le.Vt3,le.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function AngleLeftIcon_Template(te,ne){1&te&&(le.qSk(),le.j41(0,"svg",0),le.nrm(1,"path",1),le.k0s()),2&te&&(le.HbH(ne.getClassNames()),le.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role))},encapsulation:2})}return AngleLeftIcon})();var Ge=ie(5598),ze=ie(1646);function Paginator_div_0_div_1_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c0=te=>({$implicit:te});function Paginator_div_0_div_1_Template(te,ne){if(1&te&&(le.j41(0,"div",15),le.DNE(1,Paginator_div_0_div_1_ng_container_1_Template,1,0,"ng-container",16),le.k0s()),2&te){const te=le.XpG(2);le.BMQ("data-pc-section","start"),le.R7$(),le.Y8G("ngTemplateOutlet",te.templateLeft)("ngTemplateOutletContext",le.eq3(3,_c0,te.paginatorState))}}function Paginator_div_0_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span",17),le.EFF(1),le.k0s()),2&te){const te=le.XpG(2);le.R7$(),le.JRh(te.currentPageReport)}}function Paginator_div_0_button_3_AngleDoubleLeftIcon_1_Template(te,ne){1&te&&le.nrm(0,"AngleDoubleLeftIcon",19),2&te&&le.Y8G("styleClass","p-paginator-icon")}function Paginator_div_0_button_3_span_2_1_ng_template_0_Template(te,ne){}function Paginator_div_0_button_3_span_2_1_Template(te,ne){1&te&&le.DNE(0,Paginator_div_0_button_3_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Paginator_div_0_button_3_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span",20),le.DNE(1,Paginator_div_0_button_3_span_2_1_Template,1,0,null,21),le.k0s()),2&te){const te=le.XpG(3);le.R7$(),le.Y8G("ngTemplateOutlet",te.firstPageLinkIconTemplate)}}const _c1=te=>({"p-disabled":te});function Paginator_div_0_button_3_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"button",18),le.bIt("click",(function Paginator_div_0_button_3_Template_button_click_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.changePageToFirst(ne))})),le.DNE(1,Paginator_div_0_button_3_AngleDoubleLeftIcon_1_Template,1,1,"AngleDoubleLeftIcon",6)(2,Paginator_div_0_button_3_span_2_Template,2,1,"span",7),le.k0s()}if(2&te){const te=le.XpG(2);le.Y8G("disabled",te.isFirstPage()||te.empty())("ngClass",le.eq3(5,_c1,te.isFirstPage()||te.empty())),le.BMQ("aria-label",te.getAriaLabel("firstPageLabel")),le.R7$(),le.Y8G("ngIf",!te.firstPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.firstPageLinkIconTemplate)}}function Paginator_div_0_AngleLeftIcon_5_Template(te,ne){1&te&&le.nrm(0,"AngleLeftIcon",19),2&te&&le.Y8G("styleClass","p-paginator-icon")}function Paginator_div_0_span_6_1_ng_template_0_Template(te,ne){}function Paginator_div_0_span_6_1_Template(te,ne){1&te&&le.DNE(0,Paginator_div_0_span_6_1_ng_template_0_Template,0,0,"ng-template")}function Paginator_div_0_span_6_Template(te,ne){if(1&te&&(le.j41(0,"span",20),le.DNE(1,Paginator_div_0_span_6_1_Template,1,0,null,21),le.k0s()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",te.previousPageLinkIconTemplate)}}const _c2=te=>({"p-highlight":te});function Paginator_div_0_span_7_button_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"button",24),le.bIt("click",(function Paginator_div_0_span_7_button_1_Template_button_click_0_listener(ne){const ie=le.eBV(te).$implicit,re=le.XpG(3);return le.Njj(re.onPageLinkClick(ne,ie-1))})),le.EFF(1),le.k0s()}if(2&te){const te=ne.$implicit,ie=le.XpG(3);le.Y8G("ngClass",le.eq3(4,_c2,te-1==ie.getPage())),le.BMQ("aria-label",ie.getPageAriaLabel(te))("aria-current",te-1==ie.getPage()?"page":void 0),le.R7$(),le.SpI(" ",ie.getLocalization(te)," ")}}function Paginator_div_0_span_7_Template(te,ne){if(1&te&&(le.j41(0,"span",22),le.DNE(1,Paginator_div_0_span_7_button_1_Template,2,6,"button",23),le.k0s()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngForOf",te.pageLinks)}}function Paginator_div_0_p_dropdown_8_ng_template_1_Template(te,ne){if(1&te&&le.EFF(0),2&te){const te=le.XpG(3);le.JRh(te.currentPageReport)}}function Paginator_div_0_p_dropdown_8_ng_container_2_ng_template_1_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Paginator_div_0_p_dropdown_8_ng_container_2_ng_template_1_Template(te,ne){if(1&te&&le.DNE(0,Paginator_div_0_p_dropdown_8_ng_container_2_ng_template_1_ng_container_0_Template,1,0,"ng-container",16),2&te){const te=ne.$implicit,ie=le.XpG(4);le.Y8G("ngTemplateOutlet",ie.jumpToPageItemTemplate)("ngTemplateOutletContext",le.eq3(2,_c0,te))}}function Paginator_div_0_p_dropdown_8_ng_container_2_Template(te,ne){1&te&&(le.qex(0),le.DNE(1,Paginator_div_0_p_dropdown_8_ng_container_2_ng_template_1_Template,1,4,"ng-template",28),le.bVm())}function Paginator_div_0_p_dropdown_8_3_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Paginator_div_0_p_dropdown_8_3_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Paginator_div_0_p_dropdown_8_3_ng_template_0_ng_container_0_Template,1,0,"ng-container",21),2&te){const te=le.XpG(4);le.Y8G("ngTemplateOutlet",te.dropdownIconTemplate)}}function Paginator_div_0_p_dropdown_8_3_Template(te,ne){1&te&&le.DNE(0,Paginator_div_0_p_dropdown_8_3_ng_template_0_Template,1,1,"ng-template",29)}function Paginator_div_0_p_dropdown_8_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-dropdown",25),le.bIt("onChange",(function Paginator_div_0_p_dropdown_8_Template_p_dropdown_onChange_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.onPageDropdownChange(ne))})),le.DNE(1,Paginator_div_0_p_dropdown_8_ng_template_1_Template,1,1,"ng-template",26)(2,Paginator_div_0_p_dropdown_8_ng_container_2_Template,2,0,"ng-container",27)(3,Paginator_div_0_p_dropdown_8_3_Template,1,0,null,27),le.k0s()}if(2&te){const te=le.XpG(2);le.Y8G("options",te.pageItems)("ngModel",te.getPage())("disabled",te.empty())("appendTo",te.dropdownAppendTo)("scrollHeight",te.dropdownScrollHeight),le.BMQ("aria-label",te.getAriaLabel("jumpToPageDropdownLabel")),le.R7$(2),le.Y8G("ngIf",te.jumpToPageItemTemplate),le.R7$(),le.Y8G("ngIf",te.dropdownIconTemplate)}}function Paginator_div_0_AngleRightIcon_10_Template(te,ne){1&te&&le.nrm(0,"AngleRightIcon",19),2&te&&le.Y8G("styleClass","p-paginator-icon")}function Paginator_div_0_span_11_1_ng_template_0_Template(te,ne){}function Paginator_div_0_span_11_1_Template(te,ne){1&te&&le.DNE(0,Paginator_div_0_span_11_1_ng_template_0_Template,0,0,"ng-template")}function Paginator_div_0_span_11_Template(te,ne){if(1&te&&(le.j41(0,"span",20),le.DNE(1,Paginator_div_0_span_11_1_Template,1,0,null,21),le.k0s()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",te.nextPageLinkIconTemplate)}}function Paginator_div_0_button_12_AngleDoubleRightIcon_1_Template(te,ne){1&te&&le.nrm(0,"AngleDoubleRightIcon",19),2&te&&le.Y8G("styleClass","p-paginator-icon")}function Paginator_div_0_button_12_span_2_1_ng_template_0_Template(te,ne){}function Paginator_div_0_button_12_span_2_1_Template(te,ne){1&te&&le.DNE(0,Paginator_div_0_button_12_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Paginator_div_0_button_12_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span",20),le.DNE(1,Paginator_div_0_button_12_span_2_1_Template,1,0,null,21),le.k0s()),2&te){const te=le.XpG(3);le.R7$(),le.Y8G("ngTemplateOutlet",te.lastPageLinkIconTemplate)}}function Paginator_div_0_button_12_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"button",30),le.bIt("click",(function Paginator_div_0_button_12_Template_button_click_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.changePageToLast(ne))})),le.DNE(1,Paginator_div_0_button_12_AngleDoubleRightIcon_1_Template,1,1,"AngleDoubleRightIcon",6)(2,Paginator_div_0_button_12_span_2_Template,2,1,"span",7),le.k0s()}if(2&te){const te=le.XpG(2);le.Y8G("disabled",te.isLastPage()||te.empty())("ngClass",le.eq3(5,_c1,te.isLastPage()||te.empty())),le.BMQ("aria-label",te.getAriaLabel("lastPageLabel")),le.R7$(),le.Y8G("ngIf",!te.lastPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.lastPageLinkIconTemplate)}}function Paginator_div_0_p_inputNumber_13_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-inputNumber",31),le.bIt("ngModelChange",(function Paginator_div_0_p_inputNumber_13_Template_p_inputNumber_ngModelChange_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.changePage(ne-1))})),le.k0s()}if(2&te){const te=le.XpG(2);le.Y8G("ngModel",te.currentPage())("disabled",te.empty())}}function Paginator_div_0_p_dropdown_14_ng_container_1_ng_template_1_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Paginator_div_0_p_dropdown_14_ng_container_1_ng_template_1_Template(te,ne){if(1&te&&le.DNE(0,Paginator_div_0_p_dropdown_14_ng_container_1_ng_template_1_ng_container_0_Template,1,0,"ng-container",16),2&te){const te=ne.$implicit,ie=le.XpG(4);le.Y8G("ngTemplateOutlet",ie.dropdownItemTemplate)("ngTemplateOutletContext",le.eq3(2,_c0,te))}}function Paginator_div_0_p_dropdown_14_ng_container_1_Template(te,ne){1&te&&(le.qex(0),le.DNE(1,Paginator_div_0_p_dropdown_14_ng_container_1_ng_template_1_Template,1,4,"ng-template",28),le.bVm())}function Paginator_div_0_p_dropdown_14_2_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Paginator_div_0_p_dropdown_14_2_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Paginator_div_0_p_dropdown_14_2_ng_template_0_ng_container_0_Template,1,0,"ng-container",21),2&te){const te=le.XpG(4);le.Y8G("ngTemplateOutlet",te.dropdownIconTemplate)}}function Paginator_div_0_p_dropdown_14_2_Template(te,ne){1&te&&le.DNE(0,Paginator_div_0_p_dropdown_14_2_ng_template_0_Template,1,1,"ng-template",29)}function Paginator_div_0_p_dropdown_14_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-dropdown",32),le.mxI("ngModelChange",(function Paginator_div_0_p_dropdown_14_Template_p_dropdown_ngModelChange_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.DH7(ie.rows,ne)||(ie.rows=ne),le.Njj(ne)})),le.bIt("onChange",(function Paginator_div_0_p_dropdown_14_Template_p_dropdown_onChange_0_listener(ne){le.eBV(te);const ie=le.XpG(2);return le.Njj(ie.onRppChange(ne))})),le.DNE(1,Paginator_div_0_p_dropdown_14_ng_container_1_Template,2,0,"ng-container",27)(2,Paginator_div_0_p_dropdown_14_2_Template,1,0,null,27),le.k0s()}if(2&te){const te=le.XpG(2);le.Y8G("options",te.rowsPerPageItems),le.R50("ngModel",te.rows),le.Y8G("disabled",te.empty())("appendTo",te.dropdownAppendTo)("scrollHeight",te.dropdownScrollHeight)("ariaLabel",te.getAriaLabel("rowsPerPageLabel")),le.R7$(),le.Y8G("ngIf",te.dropdownItemTemplate),le.R7$(),le.Y8G("ngIf",te.dropdownIconTemplate)}}function Paginator_div_0_div_15_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function Paginator_div_0_div_15_Template(te,ne){if(1&te&&(le.j41(0,"div",33),le.DNE(1,Paginator_div_0_div_15_ng_container_1_Template,1,0,"ng-container",16),le.k0s()),2&te){const te=le.XpG(2);le.BMQ("data-pc-section","end"),le.R7$(),le.Y8G("ngTemplateOutlet",te.templateRight)("ngTemplateOutletContext",le.eq3(3,_c0,te.paginatorState))}}function Paginator_div_0_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",1),le.DNE(1,Paginator_div_0_div_1_Template,2,5,"div",2)(2,Paginator_div_0_span_2_Template,2,1,"span",3)(3,Paginator_div_0_button_3_Template,3,7,"button",4),le.j41(4,"button",5),le.bIt("click",(function Paginator_div_0_Template_button_click_4_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.changePageToPrev(ne))})),le.DNE(5,Paginator_div_0_AngleLeftIcon_5_Template,1,1,"AngleLeftIcon",6)(6,Paginator_div_0_span_6_Template,2,1,"span",7),le.k0s(),le.DNE(7,Paginator_div_0_span_7_Template,2,1,"span",8)(8,Paginator_div_0_p_dropdown_8_Template,4,8,"p-dropdown",9),le.j41(9,"button",10),le.bIt("click",(function Paginator_div_0_Template_button_click_9_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.changePageToNext(ne))})),le.DNE(10,Paginator_div_0_AngleRightIcon_10_Template,1,1,"AngleRightIcon",6)(11,Paginator_div_0_span_11_Template,2,1,"span",7),le.k0s(),le.DNE(12,Paginator_div_0_button_12_Template,3,7,"button",11)(13,Paginator_div_0_p_inputNumber_13_Template,1,2,"p-inputNumber",12)(14,Paginator_div_0_p_dropdown_14_Template,3,8,"p-dropdown",13)(15,Paginator_div_0_div_15_Template,2,5,"div",14),le.k0s()}if(2&te){const te=le.XpG();le.HbH(te.styleClass),le.Y8G("ngStyle",te.style)("ngClass","p-paginator p-component"),le.BMQ("data-pc-section","paginator")("data-pc-section","root"),le.R7$(),le.Y8G("ngIf",te.templateLeft),le.R7$(),le.Y8G("ngIf",te.showCurrentPageReport),le.R7$(),le.Y8G("ngIf",te.showFirstLastIcon),le.R7$(),le.Y8G("disabled",te.isFirstPage()||te.empty())("ngClass",le.eq3(25,_c1,te.isFirstPage()||te.empty())),le.BMQ("aria-label",te.getAriaLabel("prevPageLabel")),le.R7$(),le.Y8G("ngIf",!te.previousPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.previousPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.showPageLinks),le.R7$(),le.Y8G("ngIf",te.showJumpToPageDropdown),le.R7$(),le.Y8G("disabled",te.isLastPage()||te.empty())("ngClass",le.eq3(27,_c1,te.isLastPage()||te.empty())),le.BMQ("aria-label",te.getAriaLabel("nextPageLabel")),le.R7$(),le.Y8G("ngIf",!te.nextPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.nextPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.showFirstLastIcon),le.R7$(),le.Y8G("ngIf",te.showJumpToPageInput),le.R7$(),le.Y8G("ngIf",te.rowsPerPageOptions),le.R7$(),le.Y8G("ngIf",te.templateRight)}}let He=(()=>{class Paginator{cd;config;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(te){this._first=te}onPageChange=new le.bkB;templates;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(te,ne){this.cd=te,this.config=ne}ngOnInit(){this.updatePaginatorState()}getAriaLabel(te){return this.config.translation.aria?this.config.translation.aria[te]:void 0}getPageAriaLabel(te){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,`${te}`):void 0}getLocalization(te){const ne=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),ie=new Map(ne.map(((te,ne)=>[ne,te])));if(te>9){return String(te).split("").map((te=>ie.get(Number(te)))).join("")}return ie.get(te)}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"dropdownicon":this.dropdownIconTemplate=te.template;break;case"firstpagelinkicon":this.firstPageLinkIconTemplate=te.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=te.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=te.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=te.template}}))}ngOnChanges(te){te.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),te.first&&(this._first=te.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),te.rows&&(this.updatePageLinks(),this.updatePaginatorState()),te.rowsPerPageOptions&&this.updateRowsPerPageOptions(),te.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let te of this.rowsPerPageOptions)"object"==typeof te&&te.showAll?this.rowsPerPageItems.unshift({label:te.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(te)),value:te})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let te=this.getPageCount(),ne=Math.min(this.pageLinkSize,te),ie=Math.max(0,Math.ceil(this.getPage()-ne/2)),re=Math.min(te-1,ie+ne-1);var le=this.pageLinkSize-(re-ie+1);return ie=Math.max(0,ie-le),[ie,re]}updatePageLinks(){this.pageLinks=[];let te=this.calculatePageLinkBoundaries(),ne=te[0],ie=te[1];for(let te=ne;te<=ie;te++)this.pageLinks.push(te+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let te=0;te<this.getPageCount();te++)this.pageItems.push({label:String(te+1),value:te})}}changePage(te){var ne=this.getPageCount();if(te>=0&&te<ne){this._first=this.rows*te;var ie={page:te,first:this.first,rows:this.rows,pageCount:ne};this.updatePageLinks(),this.onPageChange.emit(ie),this.updatePaginatorState()}}updateFirst(){const te=this.getPage();te>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then((()=>this.changePage(te-1)))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(te){this.isFirstPage()||this.changePage(0),te.preventDefault()}changePageToPrev(te){this.changePage(this.getPage()-1),te.preventDefault()}changePageToNext(te){this.changePage(this.getPage()+1),te.preventDefault()}changePageToLast(te){this.isLastPage()||this.changePage(this.getPageCount()-1),te.preventDefault()}onPageLinkClick(te,ne){this.changePage(ne),te.preventDefault()}onRppChange(te){this.changePage(this.getPage())}onPageDropdownChange(te){this.changePage(te.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static ɵfac=function Paginator_Factory(te){return new(te||Paginator)(le.rXU(le.gRc),le.rXU(de.r1))};static ɵcmp=le.VBU({type:Paginator,selectors:[["p-paginator"]],contentQueries:function Paginator_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,de.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:[le.Mj6.HasDecoratorInputTransform,"pageLinkSize","pageLinkSize",le.Udg],style:"style",styleClass:"styleClass",alwaysShow:[le.Mj6.HasDecoratorInputTransform,"alwaysShow","alwaysShow",le.L39],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[le.Mj6.HasDecoratorInputTransform,"showCurrentPageReport","showCurrentPageReport",le.L39],showFirstLastIcon:[le.Mj6.HasDecoratorInputTransform,"showFirstLastIcon","showFirstLastIcon",le.L39],totalRecords:[le.Mj6.HasDecoratorInputTransform,"totalRecords","totalRecords",le.Udg],rows:[le.Mj6.HasDecoratorInputTransform,"rows","rows",le.Udg],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[le.Mj6.HasDecoratorInputTransform,"showJumpToPageDropdown","showJumpToPageDropdown",le.L39],showJumpToPageInput:[le.Mj6.HasDecoratorInputTransform,"showJumpToPageInput","showJumpToPageInput",le.L39],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[le.Mj6.HasDecoratorInputTransform,"showPageLinks","showPageLinks",le.L39],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[le.GFd,le.OA$],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ariaLabel","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ariaLabel","ngModelChange","onChange"],[1,"p-paginator-right-content"]],template:function Paginator_Template(te,ne){1&te&&le.DNE(0,Paginator_div_0_Template,16,29,"div",0),2&te&&le.Y8G("ngIf",!!ne.alwaysShow||ne.pageLinks&&ne.pageLinks.length>1)},dependencies:()=>[re.YU,re.Sq,re.bT,re.T3,re.B3,fe.ms,de.Ei,Oe.YI,ce.BC,ce.vS,ze.n,Fe,je,Ve,Ge.D],styles:["@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\n"],encapsulation:2,changeDetection:0})}return Paginator})(),$e=(()=>{class PaginatorModule{static ɵfac=function PaginatorModule_Factory(te){return new(te||PaginatorModule)};static ɵmod=le.$C({type:PaginatorModule});static ɵinj=le.G2t({imports:[re.MD,fe.kr,Oe.O3,ce.YN,de.Gg,ze.Z,Fe,je,Ve,Ge.D,fe.kr,Oe.O3,ce.YN,de.Gg]})}return PaginatorModule})();var qe=ie(3934),Ye=ie(2583);const Xe=["container"];function SelectButton_div_2_ng_container_1_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",8),2&te){const te=le.XpG(2).$implicit;le.HbH(te.icon),le.Y8G("ngClass","p-button-icon p-button-icon-left"),le.BMQ("data-pc-section","icon")}}function SelectButton_div_2_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,SelectButton_div_2_ng_container_1_span_1_Template,1,4,"span",6),le.j41(2,"span",7),le.EFF(3),le.k0s(),le.bVm()),2&te){const te=le.XpG().$implicit,ne=le.XpG();le.R7$(),le.Y8G("ngIf",te.icon),le.R7$(),le.BMQ("data-pc-section","label"),le.R7$(),le.JRh(ne.getOptionLabel(te))}}function SelectButton_div_2_ng_template_2_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}const primeng_selectbutton_c1=(te,ne)=>({$implicit:te,index:ne});function SelectButton_div_2_ng_template_2_Template(te,ne){if(1&te&&le.DNE(0,SelectButton_div_2_ng_template_2_ng_container_0_Template,1,0,"ng-container",9),2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG();le.Y8G("ngTemplateOutlet",re.selectButtonTemplate)("ngTemplateOutletContext",le.l_i(2,primeng_selectbutton_c1,ne,ie))}}const primeng_selectbutton_c2=(te,ne,ie)=>({"p-highlight":te,"p-disabled":ne,"p-button-icon-only":ie});function SelectButton_div_2_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",3),le.bIt("click",(function SelectButton_div_2_Template_div_click_0_listener(ne){const ie=le.eBV(te),re=ie.$implicit,ce=ie.index,de=le.XpG();return le.Njj(de.onOptionSelect(ne,re,ce))}))("keydown",(function SelectButton_div_2_Template_div_keydown_0_listener(ne){const ie=le.eBV(te),re=ie.$implicit,ce=ie.index,de=le.XpG();return le.Njj(de.onKeyDown(ne,re,ce))}))("focus",(function SelectButton_div_2_Template_div_focus_0_listener(ne){const ie=le.eBV(te).index,re=le.XpG();return le.Njj(re.onFocus(ne,ie))}))("blur",(function SelectButton_div_2_Template_div_blur_0_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.onBlur())})),le.DNE(1,SelectButton_div_2_ng_container_1_Template,4,3,"ng-container",4)(2,SelectButton_div_2_ng_template_2_Template,1,5,"ng-template",null,5,le.C5r),le.k0s()}if(2&te){const te=ne.$implicit,ie=ne.index,re=le.sdS(3),ce=le.XpG();le.HbH(te.styleClass),le.Y8G("role",ce.multiple?"checkbox":"radio")("ngClass",le.sMw(14,primeng_selectbutton_c2,ce.isSelected(te),ce.disabled||ce.isOptionDisabled(te),te.icon&&!ce.getOptionLabel(te)))("autofocus",ce.autofocus),le.BMQ("tabindex",ie!==ce.focusedIndex||ce.disabled?"-1":"0")("aria-label",te.label)("aria-checked",ce.isSelected(te))("aria-disabled",ce.optionDisabled)("title",te.title)("aria-labelledby",ce.getOptionLabel(te))("data-pc-section","button"),le.R7$(),le.Y8G("ngIf",!ce.itemTemplate)("ngIfElse",re)}}const Ke={provide:ce.kq,useExisting:(0,le.Rfq)((()=>Qe)),multi:!0};let Qe=(()=>{class SelectButton{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;autofocus;onOptionClick=new le.bkB;onChange=new le.bkB;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(te){this.cd=te}getOptionLabel(te){return this.optionLabel?be.BF.resolveFieldData(te,this.optionLabel):null!=te.label?te.label:te}getOptionValue(te){return this.optionValue?be.BF.resolveFieldData(te,this.optionValue):this.optionLabel||void 0===te.value?te:te.value}isOptionDisabled(te){return this.optionDisabled?be.BF.resolveFieldData(te,this.optionDisabled):void 0!==te.disabled&&te.disabled}writeValue(te){this.value=te,this.cd.markForCheck()}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}onOptionSelect(te,ne,ie){if(this.disabled||this.isOptionDisabled(ne))return;let re=this.isSelected(ne);if(re&&this.unselectable)return;let le,ce=this.getOptionValue(ne);if(this.multiple)le=re?this.value.filter((te=>!be.BF.equals(te,ce,this.equalityKey))):this.value?[...this.value,ce]:[ce];else{if(re&&!this.allowEmpty)return;le=re?null:ce}this.focusedIndex=ie,this.value=le,this.onModelChange(this.value),this.onChange.emit({originalEvent:te,value:this.value}),this.onOptionClick.emit({originalEvent:te,option:ne,index:ie})}onKeyDown(te,ne,ie){switch(te.code){case"Space":this.onOptionSelect(te,ne,ie),te.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(te,"next"),te.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(te,"prev"),te.preventDefault()}}changeTabIndexes(te,ne){let ie,re;for(let te=0;te<=this.container.nativeElement.children.length-1;te++)"0"===this.container.nativeElement.children[te].getAttribute("tabindex")&&(ie={elem:this.container.nativeElement.children[te],index:te});re="prev"===ne?0===ie.index?this.container.nativeElement.children.length-1:ie.index-1:ie.index===this.container.nativeElement.children.length-1?0:ie.index+1,this.focusedIndex=re,this.container.nativeElement.children[re].focus()}onFocus(te,ne){this.focusedIndex=ne}onBlur(){this.onModelTouched()}removeOption(te){this.value=this.value.filter((ne=>!be.BF.equals(ne,this.getOptionValue(te),this.dataKey)))}isSelected(te){let ne=!1;const ie=this.getOptionValue(te);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let te of this.value)if(be.BF.equals(te,ie,this.dataKey)){ne=!0;break}}else ne=be.BF.equals(this.getOptionValue(te),this.value,this.equalityKey);return ne}static ɵfac=function SelectButton_Factory(te){return new(te||SelectButton)(le.rXU(le.gRc))};static ɵcmp=le.VBU({type:SelectButton,selectors:[["p-selectButton"]],contentQueries:function SelectButton_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,de.Ei,5),2&te){let te;le.mGM(te=le.lsd())&&(ne.itemTemplate=te.first)}},viewQuery:function SelectButton_Query(te,ne){if(1&te&&le.GBs(Xe,5),2&te){let te;le.mGM(te=le.lsd())&&(ne.container=te.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[le.Mj6.HasDecoratorInputTransform,"unselectable","unselectable",le.L39],tabindex:[le.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",le.Udg],multiple:[le.Mj6.HasDecoratorInputTransform,"multiple","multiple",le.L39],allowEmpty:[le.Mj6.HasDecoratorInputTransform,"allowEmpty","allowEmpty",le.L39],style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],dataKey:"dataKey",autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[le.Jv_([Ke]),le.GFd],decls:3,vars:8,consts:[["role","group",3,"ngClass","ngStyle"],["container",""],["pRipple","","class","p-button p-component","pAutoFocus","",3,"role","class","ngClass","autofocus","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","","pAutoFocus","",1,"p-button","p-component",3,"role","ngClass","autofocus","click","keydown","focus","blur"],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function SelectButton_Template(te,ne){1&te&&(le.j41(0,"div",0,1),le.DNE(2,SelectButton_div_2_Template,4,18,"div",2),le.k0s()),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",ne.style),le.BMQ("aria-labelledby",ne.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),le.R7$(2),le.Y8G("ngForOf",ne.options))},dependencies:[re.YU,re.Sq,re.bT,re.T3,re.B3,ze.n,Ye.q],styles:['@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-button-group .p-button{margin:0}.p-button-group .p-button:focus,.p-button-group p-button:focus .p-button,.p-buttonset .p-button:focus,.p-buttonset p-button:focus .p-button{position:relative;z-index:1}.p-button-group .p-button:not(:last-child),.p-button-group .p-button:not(:last-child):hover,.p-button-group p-button:not(:last-child) .p-button,.p-button-group p-button:not(:last-child) .p-button:hover,.p-buttonset .p-button:not(:last-child),.p-buttonset .p-button:not(:last-child):hover,.p-buttonset p-button:not(:last-child) .p-button,.p-buttonset p-button:not(:last-child) .p-button:hover{border-right:0 none}.p-button-group .p-button:not(:first-of-type):not(:last-of-type),.p-button-group p-button:not(:first-of-type):not(:last-of-type) .p-button,.p-buttonset .p-button:not(:first-of-type):not(:last-of-type),.p-buttonset p-button:not(:first-of-type):not(:last-of-type) .p-button{border-radius:0}.p-button-group .p-button:first-of-type:not(:only-of-type),.p-button-group p-button:first-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:first-of-type:not(:only-of-type),.p-buttonset p-button:first-of-type:not(:only-of-type) .p-button{border-top-right-radius:0;border-bottom-right-radius:0}.p-button-group .p-button:last-of-type:not(:only-of-type),.p-button-group p-button:last-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:last-of-type:not(:only-of-type),.p-buttonset p-button:last-of-type:not(:only-of-type) .p-button{border-top-left-radius:0;border-bottom-left-radius:0}p-button[iconpos=right] spinnericon{order:1}}\n'],encapsulation:2,changeDetection:0})}return SelectButton})(),Je=(()=>{class SelectButtonModule{static ɵfac=function SelectButtonModule_Factory(te){return new(te||SelectButtonModule)};static ɵmod=le.$C({type:SelectButtonModule});static ɵinj=le.G2t({imports:[re.MD,ze.Z,de.Gg,Ye.u,de.Gg]})}return SelectButtonModule})();var dt=ie(239);function TriStateCheckbox_ng_container_5_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",8),2&te){const te=le.XpG(2);le.Y8G("ngClass",te.checkboxTrueIcon),le.BMQ("data-pc-section","checkIcon")}}function TriStateCheckbox_ng_container_5_ng_container_2_CheckIcon_1_Template(te,ne){1&te&&le.nrm(0,"CheckIcon",11),2&te&&(le.Y8G("styleClass","p-checkbox-icon"),le.BMQ("data-pc-section","checkIcon"))}function TriStateCheckbox_ng_container_5_ng_container_2_span_2_1_ng_template_0_Template(te,ne){}function TriStateCheckbox_ng_container_5_ng_container_2_span_2_1_Template(te,ne){1&te&&le.DNE(0,TriStateCheckbox_ng_container_5_ng_container_2_span_2_1_ng_template_0_Template,0,0,"ng-template")}function TriStateCheckbox_ng_container_5_ng_container_2_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span",12),le.DNE(1,TriStateCheckbox_ng_container_5_ng_container_2_span_2_1_Template,1,0,null,13),le.k0s()),2&te){const te=le.XpG(3);le.BMQ("data-pc-section","checkIcon"),le.R7$(),le.Y8G("ngTemplateOutlet",te.checkIconTemplate)}}function TriStateCheckbox_ng_container_5_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TriStateCheckbox_ng_container_5_ng_container_2_CheckIcon_1_Template,1,2,"CheckIcon",9)(2,TriStateCheckbox_ng_container_5_ng_container_2_span_2_Template,2,2,"span",10),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",!te.checkIconTemplate),le.R7$(),le.Y8G("ngIf",te.checkIconTemplate)}}function TriStateCheckbox_ng_container_5_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TriStateCheckbox_ng_container_5_span_1_Template,1,2,"span",7)(2,TriStateCheckbox_ng_container_5_ng_container_2_Template,3,2,"ng-container",5),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.checkboxTrueIcon),le.R7$(),le.Y8G("ngIf",!te.checkboxTrueIcon)}}function TriStateCheckbox_ng_container_6_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",8),2&te){const te=le.XpG(2);le.Y8G("ngClass",te.checkboxFalseIcon),le.BMQ("data-pc-section","uncheckIcon")}}function TriStateCheckbox_ng_container_6_ng_container_2_TimesIcon_1_Template(te,ne){1&te&&le.nrm(0,"TimesIcon",11),2&te&&(le.Y8G("styleClass","p-checkbox-icon"),le.BMQ("data-pc-section","uncheckIcon"))}function TriStateCheckbox_ng_container_6_ng_container_2_span_2_1_ng_template_0_Template(te,ne){}function TriStateCheckbox_ng_container_6_ng_container_2_span_2_1_Template(te,ne){1&te&&le.DNE(0,TriStateCheckbox_ng_container_6_ng_container_2_span_2_1_ng_template_0_Template,0,0,"ng-template")}function TriStateCheckbox_ng_container_6_ng_container_2_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span",12),le.DNE(1,TriStateCheckbox_ng_container_6_ng_container_2_span_2_1_Template,1,0,null,13),le.k0s()),2&te){const te=le.XpG(3);le.BMQ("data-pc-section","uncheckIcon"),le.R7$(),le.Y8G("ngTemplateOutlet",te.uncheckIconTemplate)}}function TriStateCheckbox_ng_container_6_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TriStateCheckbox_ng_container_6_ng_container_2_TimesIcon_1_Template,1,2,"TimesIcon",9)(2,TriStateCheckbox_ng_container_6_ng_container_2_span_2_Template,2,2,"span",10),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",!te.uncheckIconTemplate),le.R7$(),le.Y8G("ngIf",te.uncheckIconTemplate)}}function TriStateCheckbox_ng_container_6_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TriStateCheckbox_ng_container_6_span_1_Template,1,2,"span",7)(2,TriStateCheckbox_ng_container_6_ng_container_2_Template,3,2,"ng-container",5),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.checkboxFalseIcon),le.R7$(),le.Y8G("ngIf",!te.checkboxFalseIcon)}}const primeng_tristatecheckbox_c0=(te,ne,ie)=>({"p-checkbox-label-active":te,"p-disabled":ne,"p-checkbox-label-focus":ie});function TriStateCheckbox_label_7_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"label",14),le.bIt("click",(function TriStateCheckbox_label_7_Template_label_click_0_listener(ne){le.eBV(te);const ie=le.XpG(),re=le.sdS(3);return le.Njj(ie.onClick(ne,re))})),le.EFF(1),le.k0s()}if(2&te){const te=le.XpG();le.Y8G("ngClass",le.sMw(3,primeng_tristatecheckbox_c0,null!=te.value,te.disabled,te.focused)),le.BMQ("for",te.inputId),le.R7$(),le.JRh(te.label)}}const primeng_tristatecheckbox_c1=(te,ne,ie)=>({"p-checkbox p-component":!0,"p-checkbox-disabled":te,"p-checkbox-focused":ne,"p-variant-filled":ie}),primeng_tristatecheckbox_c2=(te,ne,ie)=>({"p-highlight":te,"p-disabled":ne,"p-focus":ie}),pt={provide:ce.kq,useExisting:(0,le.Rfq)((()=>Ct)),multi:!0};let Ct=(()=>{class TriStateCheckbox{cd;config;constructor(te,ne){this.cd=te,this.config=ne}disabled;name;ariaLabel;ariaLabelledBy;variant="outlined";tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;autofocus;onChange=new le.bkB;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(te,ne){this.disabled||this.readonly||(this.toggle(te),this.focused=!0,ne.focus())}onKeyDown(te){"Enter"===te.key&&(this.toggle(te),te.preventDefault())}toggle(te){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:te,value:this.value})}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"checkicon":this.checkIconTemplate=te.template;break;case"uncheckicon":this.uncheckIconTemplate=te.template}}))}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(te){this.onModelChange=te}registerOnTouched(te){this.onModelTouched=te}writeValue(te){this.value=te,this.cd.markForCheck()}setDisabledState(te){this.disabled=te,this.cd.markForCheck()}static ɵfac=function TriStateCheckbox_Factory(te){return new(te||TriStateCheckbox)(le.rXU(le.gRc),le.rXU(de.r1))};static ɵcmp=le.VBU({type:TriStateCheckbox,selectors:[["p-triStateCheckbox"]],contentQueries:function TriStateCheckbox_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,de.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",variant:"variant",tabindex:[le.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",le.Udg],inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:[le.Mj6.HasDecoratorInputTransform,"readonly","readonly",le.L39],checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon",autofocus:[le.Mj6.HasDecoratorInputTransform,"autofocus","autofocus",le.L39]},outputs:{onChange:"onChange"},features:[le.Jv_([pt]),le.GFd],decls:8,vars:28,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none","pAutoFocus","",3,"name","readonly","disabled","autofocus","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function TriStateCheckbox_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"div",0),le.bIt("click",(function TriStateCheckbox_Template_div_click_0_listener(ie){le.eBV(te);const re=le.sdS(3);return le.Njj(ne.onClick(ie,re))})),le.j41(1,"div",1)(2,"input",2,3),le.bIt("keydown",(function TriStateCheckbox_Template_input_keydown_2_listener(te){return ne.onKeyDown(te)}))("focus",(function TriStateCheckbox_Template_input_focus_2_listener(){return ne.onFocus()}))("blur",(function TriStateCheckbox_Template_input_blur_2_listener(){return ne.onBlur()})),le.k0s()(),le.j41(4,"div",4),le.DNE(5,TriStateCheckbox_ng_container_5_Template,3,2,"ng-container",5)(6,TriStateCheckbox_ng_container_6_Template,3,2,"ng-container",5),le.k0s()(),le.DNE(7,TriStateCheckbox_label_7_Template,2,7,"label",6)}2&te&&(le.HbH(ne.styleClass),le.Y8G("ngStyle",ne.style)("ngClass",le.sMw(20,primeng_tristatecheckbox_c1,ne.disabled,ne.focused,"filled"===ne.variant||"filled"===ne.config.inputStyle())),le.BMQ("data-pc-name","tristatecheckbox")("data-pc-section","root"),le.R7$(2),le.Y8G("name",ne.name)("readonly",ne.readonly)("disabled",ne.disabled)("autofocus",ne.autofocus),le.BMQ("id",ne.inputId)("tabindex",ne.tabindex)("aria-labelledby",ne.ariaLabelledBy)("aria-label",ne.ariaLabel)("data-pc-section","hiddenInput"),le.R7$(2),le.Y8G("ngClass",le.sMw(24,primeng_tristatecheckbox_c2,null!=ne.value,ne.disabled,ne.focused)),le.BMQ("aria-checked",!0===ne.value),le.R7$(),le.Y8G("ngIf",!0===ne.value),le.R7$(),le.Y8G("ngIf",!1===ne.value),le.R7$(),le.Y8G("ngIf",ne.label))},dependencies:()=>[re.YU,re.bT,re.T3,re.B3,Ye.q,we.S,dt.A],encapsulation:2,changeDetection:0})}return TriStateCheckbox})(),vt=(()=>{class TriStateCheckboxModule{static ɵfac=function TriStateCheckboxModule_Factory(te){return new(te||TriStateCheckboxModule)};static ɵmod=le.$C({type:TriStateCheckboxModule});static ɵinj=le.G2t({imports:[re.MD,de.Gg,Ye.u,we.S,dt.A,de.Gg]})}return TriStateCheckboxModule})();var It=ie(8447),Dt=ie(6388);const Mt=["container"],Nt=["resizeHelper"],Rt=["reorderIndicatorUp"],Ot=["reorderIndicatorDown"],Vt=["wrapper"],Gt=["table"],zt=["thead"],Ht=["tfoot"],Ut=["scroller"];function Table_div_2_i_1_Template(te,ne){if(1&te&&le.nrm(0,"i"),2&te){const te=le.XpG(2);le.HbH("p-datatable-loading-icon "+te.loadingIcon)}}function Table_div_2_ng_container_2_SpinnerIcon_1_Template(te,ne){1&te&&le.nrm(0,"SpinnerIcon",18),2&te&&le.Y8G("spin",!0)("styleClass","p-datatable-loading-icon")}function Table_div_2_ng_container_2_span_2_1_ng_template_0_Template(te,ne){}function Table_div_2_ng_container_2_span_2_1_Template(te,ne){1&te&&le.DNE(0,Table_div_2_ng_container_2_span_2_1_ng_template_0_Template,0,0,"ng-template")}function Table_div_2_ng_container_2_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span",19),le.DNE(1,Table_div_2_ng_container_2_span_2_1_Template,1,0,null,20),le.k0s()),2&te){const te=le.XpG(3);le.R7$(),le.Y8G("ngTemplateOutlet",te.loadingIconTemplate)}}function Table_div_2_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Table_div_2_ng_container_2_SpinnerIcon_1_Template,1,2,"SpinnerIcon",16)(2,Table_div_2_ng_container_2_span_2_Template,2,1,"span",17),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngIf",!te.loadingIconTemplate),le.R7$(),le.Y8G("ngIf",te.loadingIconTemplate)}}function Table_div_2_Template(te,ne){if(1&te&&(le.j41(0,"div",14),le.DNE(1,Table_div_2_i_1_Template,1,2,"i",15)(2,Table_div_2_ng_container_2_Template,3,2,"ng-container",8),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.loadingIcon),le.R7$(),le.Y8G("ngIf",!te.loadingIcon)}}function Table_div_3_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function Table_div_3_Template(te,ne){if(1&te&&(le.j41(0,"div",21),le.DNE(1,Table_div_3_ng_container_1_Template,1,0,"ng-container",20),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngTemplateOutlet",te.captionTemplate)}}function Table_p_paginator_4_1_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Table_p_paginator_4_1_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Table_p_paginator_4_1_ng_template_0_ng_container_0_Template,1,0,"ng-container",20),2&te){const te=le.XpG(3);le.Y8G("ngTemplateOutlet",te.paginatorDropdownIconTemplate)}}function Table_p_paginator_4_1_Template(te,ne){1&te&&le.DNE(0,Table_p_paginator_4_1_ng_template_0_Template,1,1,"ng-template",23)}function Table_p_paginator_4_2_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Table_p_paginator_4_2_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Table_p_paginator_4_2_ng_template_0_ng_container_0_Template,1,0,"ng-container",20),2&te){const te=le.XpG(3);le.Y8G("ngTemplateOutlet",te.paginatorFirstPageLinkIconTemplate)}}function Table_p_paginator_4_2_Template(te,ne){1&te&&le.DNE(0,Table_p_paginator_4_2_ng_template_0_Template,1,1,"ng-template",24)}function Table_p_paginator_4_3_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Table_p_paginator_4_3_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Table_p_paginator_4_3_ng_template_0_ng_container_0_Template,1,0,"ng-container",20),2&te){const te=le.XpG(3);le.Y8G("ngTemplateOutlet",te.paginatorPreviousPageLinkIconTemplate)}}function Table_p_paginator_4_3_Template(te,ne){1&te&&le.DNE(0,Table_p_paginator_4_3_ng_template_0_Template,1,1,"ng-template",25)}function Table_p_paginator_4_4_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Table_p_paginator_4_4_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Table_p_paginator_4_4_ng_template_0_ng_container_0_Template,1,0,"ng-container",20),2&te){const te=le.XpG(3);le.Y8G("ngTemplateOutlet",te.paginatorLastPageLinkIconTemplate)}}function Table_p_paginator_4_4_Template(te,ne){1&te&&le.DNE(0,Table_p_paginator_4_4_ng_template_0_Template,1,1,"ng-template",26)}function Table_p_paginator_4_5_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Table_p_paginator_4_5_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Table_p_paginator_4_5_ng_template_0_ng_container_0_Template,1,0,"ng-container",20),2&te){const te=le.XpG(3);le.Y8G("ngTemplateOutlet",te.paginatorNextPageLinkIconTemplate)}}function Table_p_paginator_4_5_Template(te,ne){1&te&&le.DNE(0,Table_p_paginator_4_5_ng_template_0_Template,1,1,"ng-template",27)}function Table_p_paginator_4_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-paginator",22),le.bIt("onPageChange",(function Table_p_paginator_4_Template_p_paginator_onPageChange_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onPageChange(ne))})),le.DNE(1,Table_p_paginator_4_1_Template,1,0,null,8)(2,Table_p_paginator_4_2_Template,1,0,null,8)(3,Table_p_paginator_4_3_Template,1,0,null,8)(4,Table_p_paginator_4_4_Template,1,0,null,8)(5,Table_p_paginator_4_5_Template,1,0,null,8),le.k0s()}if(2&te){const te=le.XpG();le.Y8G("rows",te.rows)("first",te.first)("totalRecords",te.totalRecords)("pageLinkSize",te.pageLinks)("alwaysShow",te.alwaysShowPaginator)("rowsPerPageOptions",te.rowsPerPageOptions)("templateLeft",te.paginatorLeftTemplate)("templateRight",te.paginatorRightTemplate)("dropdownAppendTo",te.paginatorDropdownAppendTo)("dropdownScrollHeight",te.paginatorDropdownScrollHeight)("currentPageReportTemplate",te.currentPageReportTemplate)("showFirstLastIcon",te.showFirstLastIcon)("dropdownItemTemplate",te.paginatorDropdownItemTemplate)("showCurrentPageReport",te.showCurrentPageReport)("showJumpToPageDropdown",te.showJumpToPageDropdown)("showJumpToPageInput",te.showJumpToPageInput)("showPageLinks",te.showPageLinks)("styleClass",te.getPaginatorStyleClasses("p-paginator-top"))("locale",te.paginatorLocale),le.R7$(),le.Y8G("ngIf",te.paginatorDropdownIconTemplate),le.R7$(),le.Y8G("ngIf",te.paginatorFirstPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.paginatorPreviousPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.paginatorLastPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.paginatorNextPageLinkIconTemplate)}}function Table_p_scroller_7_ng_template_2_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}const _c9=(te,ne)=>({$implicit:te,options:ne});function Table_p_scroller_7_ng_template_2_Template(te,ne){if(1&te&&le.DNE(0,Table_p_scroller_7_ng_template_2_ng_container_0_Template,1,0,"ng-container",31),2&te){const te=ne.$implicit,ie=ne.options;le.XpG(2);const re=le.sdS(10);le.Y8G("ngTemplateOutlet",re)("ngTemplateOutletContext",le.l_i(2,_c9,te,ie))}}const _c10=te=>({height:te});function Table_p_scroller_7_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-scroller",28,29),le.bIt("onLazyLoad",(function Table_p_scroller_7_Template_p_scroller_onLazyLoad_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onLazyItemLoad(ne))})),le.DNE(2,Table_p_scroller_7_ng_template_2_Template,1,5,"ng-template",30),le.k0s()}if(2&te){const te=le.XpG();le.Aen(le.eq3(15,_c10,"flex"!==te.scrollHeight?te.scrollHeight:void 0)),le.Y8G("items",te.processedData)("columns",te.columns)("scrollHeight","flex"!==te.scrollHeight?void 0:"100%")("itemSize",te.virtualScrollItemSize||te._virtualRowHeight)("step",te.rows)("delay",te.lazy?te.virtualScrollDelay:0)("inline",!0)("autoSize",!0)("lazy",te.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",te.loadingBodyTemplate)("options",te.virtualScrollOptions)}}function Table_ng_container_8_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c11=te=>({columns:te});function Table_ng_container_8_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Table_ng_container_8_ng_container_1_Template,1,0,"ng-container",31),le.bVm()),2&te){const te=le.XpG(),ne=le.sdS(10);le.R7$(),le.Y8G("ngTemplateOutlet",ne)("ngTemplateOutletContext",le.l_i(4,_c9,te.processedData,le.eq3(2,_c11,te.columns)))}}function Table_ng_template_9_ng_container_2_Template(te,ne){1&te&&le.eu8(0)}function Table_ng_template_9_ng_container_5_Template(te,ne){1&te&&le.eu8(0)}function Table_ng_template_9_tbody_6_Template(te,ne){if(1&te&&le.nrm(0,"tbody",40),2&te){const te=le.XpG().options,ne=le.XpG();le.Y8G("value",ne.frozenValue)("frozenRows",!0)("pTableBody",te.columns)("pTableBodyTemplate",ne.frozenBodyTemplate)("frozen",!0)}}function Table_ng_template_9_tbody_8_Template(te,ne){if(1&te&&le.nrm(0,"tbody",41),2&te){const te=le.XpG().options;le.Y8G("ngStyle",le.eq3(1,_c10,"calc("+te.spacerStyle.height+" - "+te.rows.length*te.itemSize+"px)"))}}function Table_ng_template_9_tfoot_9_ng_container_2_Template(te,ne){1&te&&le.eu8(0)}const _c12=te=>({$implicit:te});function Table_ng_template_9_tfoot_9_Template(te,ne){if(1&te&&(le.j41(0,"tfoot",42,43),le.DNE(2,Table_ng_template_9_tfoot_9_ng_container_2_Template,1,0,"ng-container",31),le.k0s()),2&te){const te=le.XpG().options,ne=le.XpG();le.R7$(2),le.Y8G("ngTemplateOutlet",ne.footerGroupedTemplate||ne.footerTemplate)("ngTemplateOutletContext",le.eq3(2,_c12,te.columns))}}const _c13=(te,ne,ie)=>({"p-datatable-table":!0,"p-datatable-scrollable-table":te,"p-datatable-resizable-table":ne,"p-datatable-resizable-table-fit":ie});function Table_ng_template_9_Template(te,ne){if(1&te&&(le.j41(0,"table",32,33),le.DNE(2,Table_ng_template_9_ng_container_2_Template,1,0,"ng-container",31),le.j41(3,"thead",34,35),le.DNE(5,Table_ng_template_9_ng_container_5_Template,1,0,"ng-container",31),le.k0s(),le.DNE(6,Table_ng_template_9_tbody_6_Template,1,5,"tbody",36),le.nrm(7,"tbody",37),le.DNE(8,Table_ng_template_9_tbody_8_Template,1,3,"tbody",38)(9,Table_ng_template_9_tfoot_9_Template,3,4,"tfoot",39),le.k0s()),2&te){const te=ne.options,ie=le.XpG();le.HbH(ie.tableStyleClass),le.Y8G("ngClass",le.sMw(18,_c13,ie.scrollable,ie.resizableColumns,ie.resizableColumns&&"fit"===ie.columnResizeMode))("ngStyle",ie.tableStyle),le.BMQ("id",ie.id+"-table"),le.R7$(2),le.Y8G("ngTemplateOutlet",ie.colGroupTemplate)("ngTemplateOutletContext",le.eq3(22,_c12,te.columns)),le.R7$(3),le.Y8G("ngTemplateOutlet",ie.headerGroupedTemplate||ie.headerTemplate)("ngTemplateOutletContext",le.eq3(24,_c12,te.columns)),le.R7$(),le.Y8G("ngIf",ie.frozenValue||ie.frozenBodyTemplate),le.R7$(),le.Y8G("ngClass",te.contentStyleClass)("ngStyle",te.contentStyle)("value",ie.dataToRender(te.rows))("pTableBody",te.columns)("pTableBodyTemplate",ie.bodyTemplate)("scrollerOptions",te),le.R7$(),le.Y8G("ngIf",te.spacerStyle),le.R7$(),le.Y8G("ngIf",ie.footerGroupedTemplate||ie.footerTemplate)}}function Table_p_paginator_11_1_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Table_p_paginator_11_1_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Table_p_paginator_11_1_ng_template_0_ng_container_0_Template,1,0,"ng-container",20),2&te){const te=le.XpG(3);le.Y8G("ngTemplateOutlet",te.paginatorDropdownIconTemplate)}}function Table_p_paginator_11_1_Template(te,ne){1&te&&le.DNE(0,Table_p_paginator_11_1_ng_template_0_Template,1,1,"ng-template",23)}function Table_p_paginator_11_2_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Table_p_paginator_11_2_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Table_p_paginator_11_2_ng_template_0_ng_container_0_Template,1,0,"ng-container",20),2&te){const te=le.XpG(3);le.Y8G("ngTemplateOutlet",te.paginatorFirstPageLinkIconTemplate)}}function Table_p_paginator_11_2_Template(te,ne){1&te&&le.DNE(0,Table_p_paginator_11_2_ng_template_0_Template,1,1,"ng-template",24)}function Table_p_paginator_11_3_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Table_p_paginator_11_3_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Table_p_paginator_11_3_ng_template_0_ng_container_0_Template,1,0,"ng-container",20),2&te){const te=le.XpG(3);le.Y8G("ngTemplateOutlet",te.paginatorPreviousPageLinkIconTemplate)}}function Table_p_paginator_11_3_Template(te,ne){1&te&&le.DNE(0,Table_p_paginator_11_3_ng_template_0_Template,1,1,"ng-template",25)}function Table_p_paginator_11_4_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Table_p_paginator_11_4_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Table_p_paginator_11_4_ng_template_0_ng_container_0_Template,1,0,"ng-container",20),2&te){const te=le.XpG(3);le.Y8G("ngTemplateOutlet",te.paginatorLastPageLinkIconTemplate)}}function Table_p_paginator_11_4_Template(te,ne){1&te&&le.DNE(0,Table_p_paginator_11_4_ng_template_0_Template,1,1,"ng-template",26)}function Table_p_paginator_11_5_ng_template_0_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function Table_p_paginator_11_5_ng_template_0_Template(te,ne){if(1&te&&le.DNE(0,Table_p_paginator_11_5_ng_template_0_ng_container_0_Template,1,0,"ng-container",20),2&te){const te=le.XpG(3);le.Y8G("ngTemplateOutlet",te.paginatorNextPageLinkIconTemplate)}}function Table_p_paginator_11_5_Template(te,ne){1&te&&le.DNE(0,Table_p_paginator_11_5_ng_template_0_Template,1,1,"ng-template",27)}function Table_p_paginator_11_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"p-paginator",22),le.bIt("onPageChange",(function Table_p_paginator_11_Template_p_paginator_onPageChange_0_listener(ne){le.eBV(te);const ie=le.XpG();return le.Njj(ie.onPageChange(ne))})),le.DNE(1,Table_p_paginator_11_1_Template,1,0,null,8)(2,Table_p_paginator_11_2_Template,1,0,null,8)(3,Table_p_paginator_11_3_Template,1,0,null,8)(4,Table_p_paginator_11_4_Template,1,0,null,8)(5,Table_p_paginator_11_5_Template,1,0,null,8),le.k0s()}if(2&te){const te=le.XpG();le.Y8G("rows",te.rows)("first",te.first)("totalRecords",te.totalRecords)("pageLinkSize",te.pageLinks)("alwaysShow",te.alwaysShowPaginator)("rowsPerPageOptions",te.rowsPerPageOptions)("templateLeft",te.paginatorLeftTemplate)("templateRight",te.paginatorRightTemplate)("dropdownAppendTo",te.paginatorDropdownAppendTo)("dropdownScrollHeight",te.paginatorDropdownScrollHeight)("currentPageReportTemplate",te.currentPageReportTemplate)("showFirstLastIcon",te.showFirstLastIcon)("dropdownItemTemplate",te.paginatorDropdownItemTemplate)("showCurrentPageReport",te.showCurrentPageReport)("showJumpToPageDropdown",te.showJumpToPageDropdown)("showJumpToPageInput",te.showJumpToPageInput)("showPageLinks",te.showPageLinks)("styleClass",te.getPaginatorStyleClasses("p-paginator-bottom"))("locale",te.paginatorLocale),le.R7$(),le.Y8G("ngIf",te.paginatorDropdownIconTemplate),le.R7$(),le.Y8G("ngIf",te.paginatorFirstPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.paginatorPreviousPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.paginatorLastPageLinkIconTemplate),le.R7$(),le.Y8G("ngIf",te.paginatorNextPageLinkIconTemplate)}}function Table_div_12_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function Table_div_12_Template(te,ne){if(1&te&&(le.j41(0,"div",44),le.DNE(1,Table_div_12_ng_container_1_Template,1,0,"ng-container",20),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngTemplateOutlet",te.summaryTemplate)}}const _c14=()=>({display:"none"});function Table_div_13_Template(te,ne){1&te&&le.nrm(0,"div",45,46),2&te&&le.Y8G("ngStyle",le.lJ4(1,_c14))}function Table_span_14_ArrowDownIcon_2_Template(te,ne){1&te&&le.nrm(0,"ArrowDownIcon")}function Table_span_14_3_ng_template_0_Template(te,ne){}function Table_span_14_3_Template(te,ne){1&te&&le.DNE(0,Table_span_14_3_ng_template_0_Template,0,0,"ng-template")}function Table_span_14_Template(te,ne){if(1&te&&(le.j41(0,"span",47,48),le.DNE(2,Table_span_14_ArrowDownIcon_2_Template,1,0,"ArrowDownIcon",8)(3,Table_span_14_3_Template,1,0,null,20),le.k0s()),2&te){const te=le.XpG();le.Y8G("ngStyle",le.lJ4(3,_c14)),le.R7$(2),le.Y8G("ngIf",!te.reorderIndicatorUpIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.reorderIndicatorUpIconTemplate)}}function Table_span_15_ArrowUpIcon_2_Template(te,ne){1&te&&le.nrm(0,"ArrowUpIcon")}function Table_span_15_3_ng_template_0_Template(te,ne){}function Table_span_15_3_Template(te,ne){1&te&&le.DNE(0,Table_span_15_3_ng_template_0_Template,0,0,"ng-template")}function Table_span_15_Template(te,ne){if(1&te&&(le.j41(0,"span",49,50),le.DNE(2,Table_span_15_ArrowUpIcon_2_Template,1,0,"ArrowUpIcon",8)(3,Table_span_15_3_Template,1,0,null,20),le.k0s()),2&te){const te=le.XpG();le.Y8G("ngStyle",le.lJ4(3,_c14)),le.R7$(2),le.Y8G("ngIf",!te.reorderIndicatorDownIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.reorderIndicatorDownIconTemplate)}}const _c15=(te,ne,ie)=>({"p-datatable p-component":!0,"p-datatable-hoverable-rows":te,"p-datatable-scrollable":ne,"p-datatable-flex-scrollable":ie}),_c16=te=>({maxHeight:te}),$t=["pTableBody",""];function TableBody_ng_container_0_ng_template_1_ng_container_0_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c18=(te,ne,ie,re,le)=>({$implicit:te,rowIndex:ne,columns:ie,editing:re,frozen:le});function TableBody_ng_container_0_ng_template_1_ng_container_0_Template(te,ne){if(1&te&&(le.qex(0,3),le.DNE(1,TableBody_ng_container_0_ng_template_1_ng_container_0_ng_container_1_Template,1,0,"ng-container",4),le.bVm()),2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",re.dt.groupHeaderTemplate)("ngTemplateOutletContext",le.s1E(2,_c18,ne,re.getRowIndex(ie),re.columns,"row"===re.dt.editMode&&re.dt.isRowEditing(ne),re.frozen))}}function TableBody_ng_container_0_ng_template_1_ng_container_1_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function TableBody_ng_container_0_ng_template_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableBody_ng_container_0_ng_template_1_ng_container_1_ng_container_1_Template,1,0,"ng-container",4),le.bVm()),2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",ne?re.template:re.dt.loadingBodyTemplate)("ngTemplateOutletContext",le.s1E(2,_c18,ne,re.getRowIndex(ie),re.columns,"row"===re.dt.editMode&&re.dt.isRowEditing(ne),re.frozen))}}function TableBody_ng_container_0_ng_template_1_ng_container_2_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c19=(te,ne,ie,re,le,ce,de)=>({$implicit:te,rowIndex:ne,columns:ie,editing:re,frozen:le,rowgroup:ce,rowspan:de});function TableBody_ng_container_0_ng_template_1_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableBody_ng_container_0_ng_template_1_ng_container_2_ng_container_1_Template,1,0,"ng-container",4),le.bVm()),2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",ne?re.template:re.dt.loadingBodyTemplate)("ngTemplateOutletContext",le.sGs(2,_c19,ne,re.getRowIndex(ie),re.columns,"row"===re.dt.editMode&&re.dt.isRowEditing(ne),re.frozen,re.shouldRenderRowspan(re.value,ne,ie),re.calculateRowGroupSize(re.value,ne,ie)))}}function TableBody_ng_container_0_ng_template_1_ng_container_3_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function TableBody_ng_container_0_ng_template_1_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0,3),le.DNE(1,TableBody_ng_container_0_ng_template_1_ng_container_3_ng_container_1_Template,1,0,"ng-container",4),le.bVm()),2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",re.dt.groupFooterTemplate)("ngTemplateOutletContext",le.s1E(2,_c18,ne,re.getRowIndex(ie),re.columns,"row"===re.dt.editMode&&re.dt.isRowEditing(ne),re.frozen))}}function TableBody_ng_container_0_ng_template_1_Template(te,ne){if(1&te&&le.DNE(0,TableBody_ng_container_0_ng_template_1_ng_container_0_Template,2,8,"ng-container",2)(1,TableBody_ng_container_0_ng_template_1_ng_container_1_Template,2,8,"ng-container",0)(2,TableBody_ng_container_0_ng_template_1_ng_container_2_Template,2,10,"ng-container",0)(3,TableBody_ng_container_0_ng_template_1_ng_container_3_Template,2,8,"ng-container",2),2&te){const te=ne.$implicit,ie=ne.index,re=le.XpG(2);le.Y8G("ngIf",re.dt.groupHeaderTemplate&&!re.dt.virtualScroll&&"subheader"===re.dt.rowGroupMode&&re.shouldRenderRowGroupHeader(re.value,te,ie)),le.R7$(),le.Y8G("ngIf","rowspan"!==re.dt.rowGroupMode),le.R7$(),le.Y8G("ngIf","rowspan"===re.dt.rowGroupMode),le.R7$(),le.Y8G("ngIf",re.dt.groupFooterTemplate&&!re.dt.virtualScroll&&"subheader"===re.dt.rowGroupMode&&re.shouldRenderRowGroupFooter(re.value,te,ie))}}function TableBody_ng_container_0_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableBody_ng_container_0_ng_template_1_Template,4,4,"ng-template",1),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngForOf",te.value)("ngForTrackBy",te.dt.rowTrackBy)}}function TableBody_ng_container_1_ng_template_1_ng_container_0_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c20=(te,ne,ie,re,le,ce)=>({$implicit:te,rowIndex:ne,columns:ie,expanded:re,editing:le,frozen:ce});function TableBody_ng_container_1_ng_template_1_ng_container_0_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableBody_ng_container_1_ng_template_1_ng_container_0_ng_container_1_Template,1,0,"ng-container",4),le.bVm()),2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",re.template)("ngTemplateOutletContext",le.l4e(2,_c20,ne,re.getRowIndex(ie),re.columns,re.dt.isRowExpanded(ne),"row"===re.dt.editMode&&re.dt.isRowEditing(ne),re.frozen))}}function TableBody_ng_container_1_ng_template_1_ng_container_1_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function TableBody_ng_container_1_ng_template_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0,3),le.DNE(1,TableBody_ng_container_1_ng_template_1_ng_container_1_ng_container_1_Template,1,0,"ng-container",4),le.bVm()),2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",re.dt.groupHeaderTemplate)("ngTemplateOutletContext",le.l4e(2,_c20,ne,re.getRowIndex(ie),re.columns,re.dt.isRowExpanded(ne),"row"===re.dt.editMode&&re.dt.isRowEditing(ne),re.frozen))}}function TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_2_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0,3),le.DNE(1,TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_2_ng_container_1_Template,1,0,"ng-container",4),le.bVm()),2&te){const te=le.XpG(2),ne=te.$implicit,ie=te.index,re=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",re.dt.groupFooterTemplate)("ngTemplateOutletContext",le.l4e(2,_c20,ne,re.getRowIndex(ie),re.columns,re.dt.isRowExpanded(ne),"row"===re.dt.editMode&&re.dt.isRowEditing(ne),re.frozen))}}const _c21=(te,ne,ie,re)=>({$implicit:te,rowIndex:ne,columns:ie,frozen:re});function TableBody_ng_container_1_ng_template_1_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_1_Template,1,0,"ng-container",4)(2,TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_2_Template,2,9,"ng-container",2),le.bVm()),2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",re.dt.expandedRowTemplate)("ngTemplateOutletContext",le.ziG(3,_c21,ne,re.getRowIndex(ie),re.columns,re.frozen)),le.R7$(),le.Y8G("ngIf",re.dt.groupFooterTemplate&&"subheader"===re.dt.rowGroupMode&&re.shouldRenderRowGroupFooter(re.value,ne,re.getRowIndex(ie)))}}function TableBody_ng_container_1_ng_template_1_Template(te,ne){if(1&te&&le.DNE(0,TableBody_ng_container_1_ng_template_1_ng_container_0_Template,2,9,"ng-container",0)(1,TableBody_ng_container_1_ng_template_1_ng_container_1_Template,2,9,"ng-container",2)(2,TableBody_ng_container_1_ng_template_1_ng_container_2_Template,3,8,"ng-container",0),2&te){const te=ne.$implicit,ie=ne.index,re=le.XpG(2);le.Y8G("ngIf",!re.dt.groupHeaderTemplate),le.R7$(),le.Y8G("ngIf",re.dt.groupHeaderTemplate&&"subheader"===re.dt.rowGroupMode&&re.shouldRenderRowGroupHeader(re.value,te,re.getRowIndex(ie))),le.R7$(),le.Y8G("ngIf",re.dt.isRowExpanded(te))}}function TableBody_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableBody_ng_container_1_ng_template_1_Template,3,3,"ng-template",1),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngForOf",te.value)("ngForTrackBy",te.dt.rowTrackBy)}}function TableBody_ng_container_2_ng_template_1_ng_container_0_Template(te,ne){1&te&&le.eu8(0)}function TableBody_ng_container_2_ng_template_1_ng_container_1_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function TableBody_ng_container_2_ng_template_1_ng_container_1_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableBody_ng_container_2_ng_template_1_ng_container_1_ng_container_1_Template,1,0,"ng-container",4),le.bVm()),2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",re.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",le.ziG(2,_c21,ne,re.getRowIndex(ie),re.columns,re.frozen))}}function TableBody_ng_container_2_ng_template_1_Template(te,ne){if(1&te&&le.DNE(0,TableBody_ng_container_2_ng_template_1_ng_container_0_Template,1,0,"ng-container",4)(1,TableBody_ng_container_2_ng_template_1_ng_container_1_Template,2,7,"ng-container",0),2&te){const te=ne.$implicit,ie=ne.index,re=le.XpG(2);le.Y8G("ngTemplateOutlet",re.template)("ngTemplateOutletContext",le.l4e(3,_c20,te,re.getRowIndex(ie),re.columns,re.dt.isRowExpanded(te),"row"===re.dt.editMode&&re.dt.isRowEditing(te),re.frozen)),le.R7$(),le.Y8G("ngIf",re.dt.isRowExpanded(te))}}function TableBody_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableBody_ng_container_2_ng_template_1_Template,2,10,"ng-template",1),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngForOf",te.value)("ngForTrackBy",te.dt.rowTrackBy)}}function TableBody_ng_container_3_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}const _c22=(te,ne)=>({$implicit:te,frozen:ne});function TableBody_ng_container_3_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableBody_ng_container_3_ng_container_1_Template,1,0,"ng-container",4),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngTemplateOutlet",te.dt.loadingBodyTemplate)("ngTemplateOutletContext",le.l_i(2,_c22,te.columns,te.frozen))}}function TableBody_ng_container_4_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function TableBody_ng_container_4_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableBody_ng_container_4_ng_container_1_Template,1,0,"ng-container",4),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngTemplateOutlet",te.dt.emptyMessageTemplate)("ngTemplateOutletContext",le.l_i(2,_c22,te.columns,te.frozen))}}function TableCheckbox_ng_container_5_CheckIcon_1_Template(te,ne){1&te&&le.nrm(0,"CheckIcon",7),2&te&&le.Y8G("styleClass","p-checkbox-icon")}function TableCheckbox_ng_container_5_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableCheckbox_ng_container_5_CheckIcon_1_Template,1,1,"CheckIcon",6),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.checked)}}function TableCheckbox_span_6_1_ng_template_0_Template(te,ne){}function TableCheckbox_span_6_1_Template(te,ne){1&te&&le.DNE(0,TableCheckbox_span_6_1_ng_template_0_Template,0,0,"ng-template")}function TableCheckbox_span_6_Template(te,ne){if(1&te&&(le.j41(0,"span"),le.DNE(1,TableCheckbox_span_6_1_Template,1,0,null,8),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngTemplateOutlet",te.dt.checkboxIconTemplate)("ngTemplateOutletContext",le.eq3(2,_c12,te.checked))}}const _c26=(te,ne)=>({"p-checkbox-focused":te,"p-checkbox-disabled":ne}),_c27=(te,ne,ie)=>({"p-checkbox-box p-component":!0,"p-highlight":te,"p-focus":ne,"p-disabled":ie});function TableHeaderCheckbox_ng_container_6_CheckIcon_1_Template(te,ne){1&te&&le.nrm(0,"CheckIcon",9),2&te&&le.Y8G("styleClass","p-checkbox-icon")}function TableHeaderCheckbox_ng_container_6_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TableHeaderCheckbox_ng_container_6_CheckIcon_1_Template,1,1,"CheckIcon",8),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.checked)}}function TableHeaderCheckbox_span_7_1_ng_template_0_Template(te,ne){}function TableHeaderCheckbox_span_7_1_Template(te,ne){1&te&&le.DNE(0,TableHeaderCheckbox_span_7_1_ng_template_0_Template,0,0,"ng-template")}function TableHeaderCheckbox_span_7_Template(te,ne){if(1&te&&(le.j41(0,"span",10),le.DNE(1,TableHeaderCheckbox_span_7_1_Template,1,0,null,11),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngTemplateOutlet",te.dt.headerCheckboxIconTemplate)("ngTemplateOutletContext",le.eq3(2,_c12,te.checked))}}const _c28=(te,ne,ie)=>({"p-checkbox-box":!0,"p-highlight":te,"p-focus":ne,"p-disabled":ie});let Yt=(()=>{class TableService{sortSource=new It.B;selectionSource=new It.B;contextMenuSource=new It.B;valueSource=new It.B;totalRecordsSource=new It.B;columnsSource=new It.B;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(te){this.sortSource.next(te)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(te){this.contextMenuSource.next(te)}onValueChange(te){this.valueSource.next(te)}onTotalRecordsChange(te){this.totalRecordsSource.next(te)}onColumnsChange(te){this.columnsSource.next(te)}static ɵfac=function TableService_Factory(te){return new(te||TableService)};static ɵprov=le.jDH({token:TableService,factory:TableService.ɵfac})}return TableService})(),Wt=(()=>{class Table{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;domSanitizer;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new le.bkB;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;rowSelectable;rowTrackBy=(te,ne)=>ne;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(te){this._responsive=te,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(te){this._value=te}get columns(){return this._columns}set columns(te){this._columns=te}get first(){return this._first}set first(te){this._first=te}get rows(){return this._rows}set rows(te){this._rows=te}get totalRecords(){return this._totalRecords}set totalRecords(te){this._totalRecords=te,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(te){this._sortField=te}get sortOrder(){return this._sortOrder}set sortOrder(te){this._sortOrder=te}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(te){this._multiSortMeta=te}get selection(){return this._selection}set selection(te){this._selection=te}get selectAll(){return this._selection}set selectAll(te){this._selection=te}selectAllChange=new le.bkB;selectionChange=new le.bkB;onRowSelect=new le.bkB;onRowUnselect=new le.bkB;onPage=new le.bkB;onSort=new le.bkB;onFilter=new le.bkB;onLazyLoad=new le.bkB;onRowExpand=new le.bkB;onRowCollapse=new le.bkB;onContextMenuSelect=new le.bkB;onColResize=new le.bkB;onColReorder=new le.bkB;onRowReorder=new le.bkB;onEditInit=new le.bkB;onEditComplete=new le.bkB;onEditCancel=new le.bkB;onHeaderCheckboxToggle=new le.bkB;sortFunction=new le.bkB;firstChange=new le.bkB;rowsChange=new le.bkB;onStateSave=new le.bkB;onStateRestore=new le.bkB;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(te){this._virtualRowHeight=te,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorDropdownIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=(0,be._Y)();styleElement;responsiveStyleElement;window;constructor(te,ne,ie,re,le,ce,de,ue,me,ge,fe){this.document=te,this.platformId=ne,this.renderer=ie,this.el=re,this.zone=le,this.tableService=ce,this.cd=de,this.filterService=ue,this.overlayService=me,this.config=ge,this.domSanitizer=fe,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"caption":this.captionTemplate=te.template;break;case"header":this.headerTemplate=te.template;break;case"headergrouped":this.headerGroupedTemplate=te.template;break;case"body":this.bodyTemplate=te.template;break;case"loadingbody":this.loadingBodyTemplate=te.template;break;case"footer":this.footerTemplate=te.template;break;case"footergrouped":this.footerGroupedTemplate=te.template;break;case"summary":this.summaryTemplate=te.template;break;case"colgroup":this.colGroupTemplate=te.template;break;case"rowexpansion":this.expandedRowTemplate=te.template;break;case"groupheader":this.groupHeaderTemplate=te.template;break;case"groupfooter":this.groupFooterTemplate=te.template;break;case"frozenheader":this.frozenHeaderTemplate=te.template;break;case"frozenbody":this.frozenBodyTemplate=te.template;break;case"frozenfooter":this.frozenFooterTemplate=te.template;break;case"frozencolgroup":this.frozenColGroupTemplate=te.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=te.template;break;case"emptymessage":this.emptyMessageTemplate=te.template;break;case"paginatorleft":this.paginatorLeftTemplate=te.template;break;case"paginatorright":this.paginatorRightTemplate=te.template;break;case"paginatordropdownicon":this.paginatorDropdownIconTemplate=te.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=te.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=te.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=te.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=te.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=te.template;break;case"loadingicon":this.loadingIconTemplate=te.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=te.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=te.template;break;case"sorticon":this.sortIconTemplate=te.template;break;case"checkboxicon":this.checkboxIconTemplate=te.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=te.template}}))}ngAfterViewInit(){(0,re.UE)(this.platformId)&&this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(te){te.value&&(this.isStateful()&&!this.stateRestored&&(0,re.UE)(this.platformId)&&this.restoreState(),this._value=te.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(te.value.currentValue)),te.columns&&(this.isStateful()||(this._columns=te.columns.currentValue,this.tableService.onColumnsChange(te.columns.currentValue)),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&(this.restoreColumnOrder(),this.tableService.onColumnsChange(this._columns))),te.sortField&&(this._sortField=te.sortField.currentValue,this.lazy&&!this.initialized||"single"===this.sortMode&&this.sortSingle()),te.groupRowsBy&&(this.lazy&&!this.initialized||"single"===this.sortMode&&this.sortSingle()),te.sortOrder&&(this._sortOrder=te.sortOrder.currentValue,this.lazy&&!this.initialized||"single"===this.sortMode&&this.sortSingle()),te.groupRowsByOrder&&(this.lazy&&!this.initialized||"single"===this.sortMode&&this.sortSingle()),te.multiSortMeta&&(this._multiSortMeta=te.multiSortMeta.currentValue,"multiple"!==this.sortMode||!this.initialized&&(this.lazy||this.virtualScroll)||this.sortMultiple()),te.selection&&(this._selection=te.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),te.selectAll&&(this._selectAll=te.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(te){const ne=te||this.processedData;if(ne&&this.paginator){const te=this.lazy?0:this.first;return ne.slice(te,te+this.rows)}return ne}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let te of this._selection)this.selectionKeys[String(be.BF.resolveFieldData(te,this.dataKey))]=1;else this.selectionKeys[String(be.BF.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(te){this.first=te.first,this.rows=te.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(te){let ne=te.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===te.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=te.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let ie=ne.metaKey||ne.ctrlKey,re=this.getSortMeta(te.field);re?ie?re.order=-1*re.order:(this._multiSortMeta=[{field:te.field,order:-1*re.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):(ie&&this.multiSortMeta||(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:te.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let te=this.sortField||this.groupRowsBy,ne=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(te&&ne){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:te,order:ne}):(this.value.sort(((ie,re)=>{let le=be.BF.resolveFieldData(ie,te),ce=be.BF.resolveFieldData(re,te),de=null;return de=null==le&&null!=ce?-1:null!=le&&null==ce?1:null==le&&null==ce?0:"string"==typeof le&&"string"==typeof ce?le.localeCompare(ce):le<ce?-1:le>ce?1:0,ne*de})),this._value=[...this.value]),this.hasFilter()&&this._filter());let ie={field:te,order:ne};this.onSort.emit(ie),this.tableService.onSort(ie)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort(((te,ne)=>this.multisortField(te,ne,this.multiSortMeta,0))),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(te,ne,ie,re){const le=be.BF.resolveFieldData(te,ie[re].field),ce=be.BF.resolveFieldData(ne,ie[re].field);return 0===be.BF.compare(le,ce,this.filterLocale)?ie.length-1>re?this.multisortField(te,ne,ie,re+1):0:this.compareValuesOnSort(le,ce,ie[re].order)}compareValuesOnSort(te,ne,ie){return be.BF.sort(te,ne,ie,this.filterLocale,this.sortOrder)}getSortMeta(te){if(this.multiSortMeta&&this.multiSortMeta.length)for(let ne=0;ne<this.multiSortMeta.length;ne++)if(this.multiSortMeta[ne].field===te)return this.multiSortMeta[ne];return null}isSorted(te){if("single"===this.sortMode)return this.sortField&&this.sortField===te;if("multiple"===this.sortMode){let ne=!1;if(this.multiSortMeta)for(let ie=0;ie<this.multiSortMeta.length;ie++)if(this.multiSortMeta[ie].field==te){ne=!0;break}return ne}}handleRowClick(te){let ne=te.originalEvent.target,ie=ne.nodeName,re=ne.parentElement&&ne.parentElement.nodeName;if("INPUT"!=ie&&"BUTTON"!=ie&&"A"!=ie&&"INPUT"!=re&&"BUTTON"!=re&&"A"!=re&&!ge.D.hasClass(te.originalEvent.target,"p-clickable")){if(this.selectionMode){let ne=te.rowData,ie=te.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&te.originalEvent.shiftKey&&null!=this.anchorRowIndex)ge.D.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(te.originalEvent),this.rangeRowIndex=ie,this.selectRange(te.originalEvent,ie);else{let re=this.isSelected(ne);if(!re&&!this.isRowSelectable(ne,ie))return;let le=!this.rowTouched&&this.metaKeySelection,ce=this.dataKey?String(be.BF.resolveFieldData(ne,this.dataKey)):null;if(this.anchorRowIndex=ie,this.rangeRowIndex=ie,le){let le=te.originalEvent.metaKey||te.originalEvent.ctrlKey;if(re&&le){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let te=this.findIndexInSelection(ne);this._selection=this.selection.filter(((ne,ie)=>ie!=te)),this.selectionChange.emit(this.selection),ce&&delete this.selectionKeys[ce]}this.onRowUnselect.emit({originalEvent:te.originalEvent,data:ne,type:"row"})}else this.isSingleSelectionMode()?(this._selection=ne,this.selectionChange.emit(ne),ce&&(this.selectionKeys={},this.selectionKeys[ce]=1)):this.isMultipleSelectionMode()&&(le?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,ne],this.selectionChange.emit(this.selection),ce&&(this.selectionKeys[ce]=1)),this.onRowSelect.emit({originalEvent:te.originalEvent,data:ne,type:"row",index:ie})}else if("single"===this.selectionMode)re?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:te.originalEvent,data:ne,type:"row",index:ie})):(this._selection=ne,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:te.originalEvent,data:ne,type:"row",index:ie}),ce&&(this.selectionKeys={},this.selectionKeys[ce]=1));else if("multiple"===this.selectionMode)if(re){let re=this.findIndexInSelection(ne);this._selection=this.selection.filter(((te,ne)=>ne!=re)),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:te.originalEvent,data:ne,type:"row",index:ie}),ce&&delete this.selectionKeys[ce]}else this._selection=this.selection?[...this.selection,ne]:[ne],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:te.originalEvent,data:ne,type:"row",index:ie}),ce&&(this.selectionKeys[ce]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(te){this.rowTouched=!0}handleRowRightClick(te){if(this.contextMenu){const ne=te.rowData,ie=te.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=ne,this.contextMenuSelectionChange.emit(ne),this.onContextMenuSelect.emit({originalEvent:te.originalEvent,data:ne,index:te.rowIndex}),this.contextMenu.show(te.originalEvent),this.tableService.onContextMenu(ne);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let re=this.isSelected(ne),le=this.dataKey?String(be.BF.resolveFieldData(ne,this.dataKey)):null;if(!re){if(!this.isRowSelectable(ne,ie))return;this.isSingleSelectionMode()?(this.selection=ne,this.selectionChange.emit(ne),le&&(this.selectionKeys={},this.selectionKeys[le]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,ne]:[ne],this.selectionChange.emit(this.selection),le&&(this.selectionKeys[le]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(te.originalEvent),this.onContextMenuSelect.emit({originalEvent:te,data:ne,index:te.rowIndex})}}}selectRange(te,ne,ie){let re,le;this.anchorRowIndex>ne?(re=ne,le=this.anchorRowIndex):this.anchorRowIndex<ne?(re=this.anchorRowIndex,le=ne):(re=ne,le=ne),this.lazy&&this.paginator&&(re-=this.first,le-=this.first);let ce=[];for(let te=re;te<=le;te++){let re=this.filteredValue?this.filteredValue[te]:this.value[te];if(!this.isSelected(re)&&!ie){if(!this.isRowSelectable(re,ne))continue;ce.push(re),this._selection=[...this.selection,re];let te=this.dataKey?String(be.BF.resolveFieldData(re,this.dataKey)):null;te&&(this.selectionKeys[te]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:te,data:ce,type:"row"})}clearSelectionRange(te){let ne,ie,re=this.rangeRowIndex,le=this.anchorRowIndex;re>le?(ne=this.anchorRowIndex,ie=this.rangeRowIndex):re<le?(ne=this.rangeRowIndex,ie=this.anchorRowIndex):(ne=this.rangeRowIndex,ie=this.rangeRowIndex);for(let re=ne;re<=ie;re++){let ne=this.value[re],ie=this.findIndexInSelection(ne);this._selection=this.selection.filter(((te,ne)=>ne!=ie));let le=this.dataKey?String(be.BF.resolveFieldData(ne,this.dataKey)):null;le&&delete this.selectionKeys[le],this.onRowUnselect.emit({originalEvent:te,data:ne,type:"row"})}}isSelected(te){return!(!te||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[be.BF.resolveFieldData(te,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(te)>-1:this.equals(te,this.selection))}findIndexInSelection(te){let ne=-1;if(this.selection&&this.selection.length)for(let ie=0;ie<this.selection.length;ie++)if(this.equals(te,this.selection[ie])){ne=ie;break}return ne}isRowSelectable(te,ne){return!(this.rowSelectable&&!this.rowSelectable({data:te,index:ne}))}toggleRowWithRadio(te,ne){if(this.preventSelectionSetterPropagation=!0,this.selection!=ne){if(!this.isRowSelectable(ne,te.rowIndex))return;this._selection=ne,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:te.originalEvent,index:te.rowIndex,data:ne,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(be.BF.resolveFieldData(ne,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:te.originalEvent,index:te.rowIndex,data:ne,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(te,ne){this.selection=this.selection||[];let ie=this.isSelected(ne),re=this.dataKey?String(be.BF.resolveFieldData(ne,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,ie){let ie=this.findIndexInSelection(ne);this._selection=this.selection.filter(((te,ne)=>ne!=ie)),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:te.originalEvent,index:te.rowIndex,data:ne,type:"checkbox"}),re&&delete this.selectionKeys[re]}else{if(!this.isRowSelectable(ne,te.rowIndex))return;this._selection=this.selection?[...this.selection,ne]:[ne],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:te.originalEvent,index:te.rowIndex,data:ne,type:"checkbox"}),re&&(this.selectionKeys[re]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(te,ne){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:te,checked:ne});else{const ie=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let re=this.selectionPageOnly&&this._selection?this._selection.filter((te=>!ie.some((ne=>this.equals(te,ne))))):[];ne&&(re=this.frozenValue?[...re,...this.frozenValue,...ie]:[...re,...ie],re=this.rowSelectable?re.filter(((te,ne)=>this.rowSelectable({data:te,index:ne}))):re),this._selection=re,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:te,checked:ne}),this.isStateful()&&this.saveState()}}equals(te,ne){return"equals"===this.compareSelectionBy?te===ne:be.BF.equals(te,ne,this.dataKey)}filter(te,ne,ie){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(te)?this.filters[ne]&&delete this.filters[ne]:this.filters[ne]={value:te,matchMode:ie},this.filterTimeout=setTimeout((()=>{this._filter(),this.filterTimeout=null}),this.filterDelay),this.anchorRowIndex=null}filterGlobal(te,ne){this.filter(te,"global",ne)}isFilterBlank(te){return null==te||!!("string"==typeof te&&0==te.trim().length||Array.isArray(te)&&0==te.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let te;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");te=this.globalFilterFields||this.columns}this.filteredValue=[];for(let ne=0;ne<this.value.length;ne++){let ie,re=!0,le=!1,ce=!1;for(let te in this.filters)if(this.filters.hasOwnProperty(te)&&"global"!==te){ce=!0;let ie=te,le=this.filters[ie];if(Array.isArray(le)){for(let te of le)if(re=this.executeLocalFilter(ie,this.value[ne],te),te.operator===de.tl.OR&&re||te.operator===de.tl.AND&&!re)break}else re=this.executeLocalFilter(ie,this.value[ne],le);if(!re)break}if(this.filters.global&&!le&&te)for(let ie=0;ie<te.length;ie++){let re=te[ie].field||te[ie];if(le=this.filterService.filters[this.filters.global.matchMode](be.BF.resolveFieldData(this.value[ne],re),this.filters.global.value,this.filterLocale),le)break}ie=this.filters.global?ce?ce&&re&&le:le:ce&&re,ie&&this.filteredValue.push(this.value[ne])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}else this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0)}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(te,ne,ie){let re=ie.value,le=ie.matchMode||de.Rn.STARTS_WITH,ce=be.BF.resolveFieldData(ne,te);return(0,this.filterService.filters[le])(ce,re,this.filterLocale)}hasFilter(){let te=!0;for(let ne in this.filters)if(this.filters.hasOwnProperty(ne)){te=!1;break}return!te}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,te]of Object.entries(this.filters))if(Array.isArray(te))for(let ne of te)ne.value=null;else te&&(te.value=null)}reset(){this.clear()}getExportHeader(te){return te[this.exportHeader]||te.header||te.field}exportCSV(te){let ne,ie="",re=this.columns;te&&te.selectionOnly?ne=this.selection||[]:te&&te.allValues?ne=this.value||[]:(ne=this.filteredValue||this.value,this.frozenValue&&(ne=ne?[...this.frozenValue,...ne]:this.frozenValue));const le=re.filter((te=>!1!==te.exportable&&te.field));ie+=le.map((te=>'"'+this.getExportHeader(te)+'"')).join(this.csvSeparator);const ce=ne.map((te=>le.map((ne=>{let ie=be.BF.resolveFieldData(te,ne.field);return ie=null!=ie?this.exportFunction?this.exportFunction({data:ie,field:ne.field}):String(ie).replace(/"/g,'""'):"",'"'+ie+'"'})).join(this.csvSeparator))).join("\n");ce.length&&(ie+="\n"+ce);let de=new Blob([new Uint8Array([239,187,191]),ie],{type:"text/csv;charset=utf-8;"}),ue=this.renderer.createElement("a");ue.style.display="none",this.renderer.appendChild(this.document.body,ue),void 0!==ue.download?(ue.setAttribute("href",URL.createObjectURL(de)),ue.setAttribute("download",this.exportFilename+".csv"),ue.click()):(ie="data:text/csv;charset=utf-8,"+ie,this.window.open(encodeURI(ie))),this.renderer.removeChild(this.document.body,ue)}onLazyItemLoad(te){this.onLazyLoad.emit({...this.createLazyLoadMetadata(),...te,rows:te.last-te.first})}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(te){this.scroller&&this.scroller.scrollToIndex(te)}scrollTo(te){this.virtualScroll?this.scroller?.scrollTo(te):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(te):(this.wrapperViewChild.nativeElement.scrollLeft=te.left,this.wrapperViewChild.nativeElement.scrollTop=te.top))}updateEditingCell(te,ne,ie,re){this.editingCell=te,this.editingCellData=ne,this.editingCellField=ie,this.editingCellRowIndex=re,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===ge.D.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",(te=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(ge.D.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:te,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1})))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(te){let ne=String(be.BF.resolveFieldData(te,this.dataKey));this.editingRowKeys[ne]=!0}saveRowEdit(te,ne){if(0===ge.D.find(ne,".ng-invalid.ng-dirty").length){let ne=String(be.BF.resolveFieldData(te,this.dataKey));delete this.editingRowKeys[ne]}}cancelRowEdit(te){let ne=String(be.BF.resolveFieldData(te,this.dataKey));delete this.editingRowKeys[ne]}toggleRow(te,ne){if(!this.dataKey&&!this.groupRowsBy)throw new Error("dataKey or groupRowsBy must be defined to use row expansion");let ie=this.groupRowsBy?String(be.BF.resolveFieldData(te,this.groupRowsBy)):String(be.BF.resolveFieldData(te,this.dataKey));null!=this.expandedRowKeys[ie]?(delete this.expandedRowKeys[ie],this.onRowCollapse.emit({originalEvent:ne,data:te})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[ie]=!0,this.onRowExpand.emit({originalEvent:ne,data:te})),ne&&ne.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(te){return this.groupRowsBy?!0===this.expandedRowKeys[String(be.BF.resolveFieldData(te,this.groupRowsBy))]:!0===this.expandedRowKeys[String(be.BF.resolveFieldData(te,this.dataKey))]}isRowEditing(te){return!0===this.editingRowKeys[String(be.BF.resolveFieldData(te,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(te){let ne=ge.D.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=te.target.parentElement,this.columnResizing=!0,"touchstart"==te.type?this.lastResizerHelperX=te.changedTouches[0].clientX-ne+this.containerViewChild?.nativeElement.scrollLeft:this.lastResizerHelperX=te.pageX-ne+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(te),te.preventDefault()}onColumnResize(te){let ne=ge.D.getOffset(this.containerViewChild?.nativeElement).left;ge.D.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px","touchmove"==te.type?this.resizeHelperViewChild.nativeElement.style.left=te.changedTouches[0].clientX-ne+this.containerViewChild?.nativeElement.scrollLeft+"px":this.resizeHelperViewChild.nativeElement.style.left=te.pageX-ne+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let te=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,ne=this.resizeColumnElement.offsetWidth+te;if(ne>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let ie=this.resizeColumnElement.nextElementSibling.offsetWidth-te;ne>15&&ie>15&&this.resizeTableCells(ne,ie)}else if("expand"===this.columnResizeMode){this._initialColWidths=this._totalTableWidth();let ie=this.tableViewChild?.nativeElement.offsetWidth+te;this.setResizeTableWidth(ie+"px"),this.resizeTableCells(ne,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:te}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",ge.D.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let te=[];const ne=ge.D.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return ge.D.find(ne,"tr > th").forEach((ne=>te.push(ge.D.getOuterWidth(ne)))),te}onColumnDragStart(te,ne){this.reorderIconWidth=ge.D.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=ge.D.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=ne,te.dataTransfer.setData("text","b")}onColumnDragEnter(te,ne){if(this.reorderableColumns&&this.draggedColumn&&ne){te.preventDefault();let ie=ge.D.getOffset(this.containerViewChild?.nativeElement),re=ge.D.getOffset(ne);if(this.draggedColumn!=ne){ge.D.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),ge.D.indexWithinGroup(ne,"preorderablecolumn");let le=re.left-ie.left,ce=(ie.top,re.top,re.left+ne.offsetWidth/2);this.reorderIndicatorUpViewChild.nativeElement.style.top=re.top-ie.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=re.top-ie.top+ne.offsetHeight+"px",te.pageX>ce?(this.reorderIndicatorUpViewChild.nativeElement.style.left=le+ne.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=le+ne.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=le-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=le-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else te.dataTransfer.dropEffect="none"}}onColumnDragLeave(te){this.reorderableColumns&&this.draggedColumn&&te.preventDefault()}onColumnDrop(te,ne){if(te.preventDefault(),this.draggedColumn){let te=ge.D.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),ie=ge.D.indexWithinGroup(ne,"preorderablecolumn"),re=te!=ie;if(re&&(ie-te==1&&-1===this.dropPosition||te-ie==1&&1===this.dropPosition)&&(re=!1),re&&ie<te&&1===this.dropPosition&&(ie+=1),re&&ie>te&&-1===this.dropPosition&&(ie-=1),re&&(be.BF.reorderArray(this.columns,te,ie),this.onColReorder.emit({dragIndex:te,dropIndex:ie,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular((()=>{setTimeout((()=>{this.saveState()}))}))),this.resizableColumns&&this.resizeColumnElement){let ne="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();be.BF.reorderArray(ne,te+1,ie+1),this.updateStyleElement(ne,te,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(te,ne){let ie=ge.D.index(this.resizeColumnElement),re="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(re,ie,te,ne)}updateStyleElement(te,ne,ie,re){this.destroyStyleElement(),this.createStyleElement();let le="";te.forEach(((te,ce)=>{let de=ce===ne?ie:re&&ce===ne+1?re:te,ue=`width: ${de}px !important; max-width: ${de}px !important;`;le+=`\n                #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${ce+1}),\n                #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${ce+1}),\n                #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${ce+1}) {\n                    ${ue}\n                }\n            `})),this.renderer.setProperty(this.styleElement,"innerHTML",this.domSanitizer.bypassSecurityTrustStyle(le))}onRowDragStart(te,ne){this.rowDragging=!0,this.draggedRowIndex=ne,te.dataTransfer.setData("text","b")}onRowDragOver(te,ne,ie){if(this.rowDragging&&this.draggedRowIndex!==ne){let re=ge.D.getOffset(ie).top,le=te.pageY,ce=re+ge.D.getOuterHeight(ie)/2,de=ie.previousElementSibling;le<ce?(ge.D.removeClass(ie,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=ne,de?ge.D.addClass(de,"p-datatable-dragpoint-bottom"):ge.D.addClass(ie,"p-datatable-dragpoint-top")):(de?ge.D.removeClass(de,"p-datatable-dragpoint-bottom"):ge.D.addClass(ie,"p-datatable-dragpoint-top"),this.droppedRowIndex=ne+1,ge.D.addClass(ie,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(te,ne){let ie=ne.previousElementSibling;ie&&ge.D.removeClass(ie,"p-datatable-dragpoint-bottom"),ge.D.removeClass(ne,"p-datatable-dragpoint-bottom"),ge.D.removeClass(ne,"p-datatable-dragpoint-top")}onRowDragEnd(te){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(te,ne){if(null!=this.droppedRowIndex){let te=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;be.BF.reorderArray(this.value,this.draggedRowIndex,te),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:te})}this.onRowDragLeave(te,ne),this.onRowDragEnd(te)}isEmpty(){let te=this.filteredValue||this.value;return null==te||0==te.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!(0,re.UE)(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const te=this.getStorage();let ne={};this.paginator&&(ne.first=this.first,ne.rows=this.rows),this.sortField&&(ne.sortField=this.sortField,ne.sortOrder=this.sortOrder),this.multiSortMeta&&(ne.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(ne.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(ne),this.reorderableColumns&&this.saveColumnOrder(ne),this.selection&&(ne.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(ne.expandedRowKeys=this.expandedRowKeys),te.setItem(this.stateKey,JSON.stringify(ne)),this.onStateSave.emit(ne)}clearState(){const te=this.getStorage();this.stateKey&&te.removeItem(this.stateKey)}restoreState(){const te=this.getStorage().getItem(this.stateKey),ne=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,reviver=function(te,ie){return"string"==typeof ie&&ne.test(ie)?new Date(ie):ie};if(te){let ne=JSON.parse(te,reviver);this.paginator&&(void 0!==this.first&&(this.first=ne.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=ne.rows,this.rowsChange.emit(this.rows))),ne.sortField&&(this.restoringSort=!0,this._sortField=ne.sortField,this._sortOrder=ne.sortOrder),ne.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=ne.multiSortMeta),ne.filters&&(this.restoringFilter=!0,this.filters=ne.filters),this.resizableColumns&&(this.columnWidthsState=ne.columnWidths,this.tableWidthState=ne.tableWidth),ne.expandedRowKeys&&(this.expandedRowKeys=ne.expandedRowKeys),ne.selection&&Promise.resolve(null).then((()=>this.selectionChange.emit(ne.selection))),this.stateRestored=!0,this.onStateRestore.emit(ne)}}saveColumnWidths(te){let ne=[];ge.D.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach((te=>ne.push(ge.D.getOuterWidth(te)))),te.columnWidths=ne.join(","),"expand"===this.columnResizeMode&&(te.tableWidth=ge.D.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(te){this.tableViewChild.nativeElement.style.width=te,this.tableViewChild.nativeElement.style.minWidth=te}restoreColumnWidths(){if(this.columnWidthsState){let te=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),be.BF.isNotEmpty(te)){this.createStyleElement();let ne="";te.forEach(((te,ie)=>{let re=`width: ${te}px !important; max-width: ${te}px !important`;ne+=`\n                        #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${ie+1}),\n                        #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${ie+1}),\n                        #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${ie+1}) {\n                            ${re}\n                        }\n                    `})),this.styleElement.textContent=ne}}}saveColumnOrder(te){if(this.columns){let ne=[];this.columns.map((te=>{ne.push(te.field||te.key)})),te.columnOrder=ne}}restoreColumnOrder(){const te=this.getStorage().getItem(this.stateKey);if(te){let ne=JSON.parse(te).columnOrder;if(ne){let te=[];ne.map((ne=>{let ie=this.findColumnByKey(ne);ie&&te.push(ie)})),this.columnOrderStateRestored=!0,this.columns=te}}}findColumnByKey(te){if(!this.columns)return null;for(let ne of this.columns)if(ne.key===te||ne.field===te)return ne}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",ge.D.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){if((0,re.UE)(this.platformId)&&!this.responsiveStyleElement){this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",ge.D.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.responsiveStyleElement);let te=`\n    @media screen and (max-width: ${this.breakpoint}) {\n        #${this.id}-table > .p-datatable-thead > tr > th,\n        #${this.id}-table > .p-datatable-tfoot > tr > td {\n            display: none !important;\n        }\n\n        #${this.id}-table > .p-datatable-tbody > tr > td {\n            display: flex;\n            width: 100% !important;\n            align-items: center;\n            justify-content: space-between;\n        }\n\n        #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n            border: 0 none;\n        }\n\n        #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n            border-top: 0;\n            border-right: 0;\n            border-left: 0;\n        }\n\n        #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n            display: block;\n        }\n    }\n    `;this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",this.domSanitizer.bypassSecurityTrustStyle(te))}}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}getPaginatorStyleClasses(te){return[this.paginatorStyleClass,te].filter((te=>!!te)).join(" ").trim()}static ɵfac=function Table_Factory(te){return new(te||Table)(le.rXU(re.qQ),le.rXU(le.Agw),le.rXU(le.sFG),le.rXU(le.aKT),le.rXU(le.SKi),le.rXU(Yt),le.rXU(le.gRc),le.rXU(de.E),le.rXU(de.si),le.rXU(de.r1),le.rXU(Dt.up))};static ɵcmp=le.VBU({type:Table,selectors:[["p-table"]],contentQueries:function Table_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,de.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},viewQuery:function Table_Query(te,ne){if(1&te&&(le.GBs(Mt,5),le.GBs(Nt,5),le.GBs(Rt,5),le.GBs(Ot,5),le.GBs(Vt,5),le.GBs(Gt,5),le.GBs(zt,5),le.GBs(Ht,5),le.GBs(Ut,5)),2&te){let te;le.mGM(te=le.lsd())&&(ne.containerViewChild=te.first),le.mGM(te=le.lsd())&&(ne.resizeHelperViewChild=te.first),le.mGM(te=le.lsd())&&(ne.reorderIndicatorUpViewChild=te.first),le.mGM(te=le.lsd())&&(ne.reorderIndicatorDownViewChild=te.first),le.mGM(te=le.lsd())&&(ne.wrapperViewChild=te.first),le.mGM(te=le.lsd())&&(ne.tableViewChild=te.first),le.mGM(te=le.lsd())&&(ne.tableHeaderViewChild=te.first),le.mGM(te=le.lsd())&&(ne.tableFooterViewChild=te.first),le.mGM(te=le.lsd())&&(ne.scroller=te.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:[le.Mj6.HasDecoratorInputTransform,"paginator","paginator",le.L39],pageLinks:[le.Mj6.HasDecoratorInputTransform,"pageLinks","pageLinks",le.Udg],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[le.Mj6.HasDecoratorInputTransform,"alwaysShowPaginator","alwaysShowPaginator",le.L39],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[le.Mj6.HasDecoratorInputTransform,"showCurrentPageReport","showCurrentPageReport",le.L39],showJumpToPageDropdown:[le.Mj6.HasDecoratorInputTransform,"showJumpToPageDropdown","showJumpToPageDropdown",le.L39],showJumpToPageInput:[le.Mj6.HasDecoratorInputTransform,"showJumpToPageInput","showJumpToPageInput",le.L39],showFirstLastIcon:[le.Mj6.HasDecoratorInputTransform,"showFirstLastIcon","showFirstLastIcon",le.L39],showPageLinks:[le.Mj6.HasDecoratorInputTransform,"showPageLinks","showPageLinks",le.L39],defaultSortOrder:[le.Mj6.HasDecoratorInputTransform,"defaultSortOrder","defaultSortOrder",le.Udg],sortMode:"sortMode",resetPageOnSort:[le.Mj6.HasDecoratorInputTransform,"resetPageOnSort","resetPageOnSort",le.L39],selectionMode:"selectionMode",selectionPageOnly:[le.Mj6.HasDecoratorInputTransform,"selectionPageOnly","selectionPageOnly",le.L39],contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[le.Mj6.HasDecoratorInputTransform,"metaKeySelection","metaKeySelection",le.L39],rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:[le.Mj6.HasDecoratorInputTransform,"lazy","lazy",le.L39],lazyLoadOnInit:[le.Mj6.HasDecoratorInputTransform,"lazyLoadOnInit","lazyLoadOnInit",le.L39],compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[le.Mj6.HasDecoratorInputTransform,"filterDelay","filterDelay",le.Udg],filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:[le.Mj6.HasDecoratorInputTransform,"scrollable","scrollable",le.L39],scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:[le.Mj6.HasDecoratorInputTransform,"virtualScroll","virtualScroll",le.L39],virtualScrollItemSize:[le.Mj6.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",le.Udg],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[le.Mj6.HasDecoratorInputTransform,"virtualScrollDelay","virtualScrollDelay",le.Udg],frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:[le.Mj6.HasDecoratorInputTransform,"resizableColumns","resizableColumns",le.L39],columnResizeMode:"columnResizeMode",reorderableColumns:[le.Mj6.HasDecoratorInputTransform,"reorderableColumns","reorderableColumns",le.L39],loading:[le.Mj6.HasDecoratorInputTransform,"loading","loading",le.L39],loadingIcon:"loadingIcon",showLoader:[le.Mj6.HasDecoratorInputTransform,"showLoader","showLoader",le.L39],rowHover:[le.Mj6.HasDecoratorInputTransform,"rowHover","rowHover",le.L39],customSort:[le.Mj6.HasDecoratorInputTransform,"customSort","customSort",le.L39],showInitialSortBadge:[le.Mj6.HasDecoratorInputTransform,"showInitialSortBadge","showInitialSortBadge",le.L39],autoLayout:[le.Mj6.HasDecoratorInputTransform,"autoLayout","autoLayout",le.L39],exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:[le.Mj6.HasDecoratorInputTransform,"groupRowsByOrder","groupRowsByOrder",le.Udg],responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[le.Jv_([Yt]),le.GFd,le.OA$],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","autoSize","lazy","loaderDisabled","showSpacer","showLoader","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper",3,"ngStyle",4,"ngIf"],["class","p-datatable-reorder-indicator-up",3,"ngStyle",4,"ngIf"],["class","p-datatable-reorder-indicator-down",3,"ngStyle",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","dropdownicon"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","autoSize","lazy","loaderDisabled","showSpacer","showLoader","options","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass","ngStyle"],["table",""],["role","rowgroup",1,"p-datatable-thead"],["thead",""],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","ngStyle","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"ngStyle",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer",3,"ngStyle"],["role","rowgroup",1,"p-datatable-tfoot"],["tfoot",""],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",3,"ngStyle"],["resizeHelper",""],[1,"p-datatable-reorder-indicator-up",3,"ngStyle"],["reorderIndicatorUp",""],[1,"p-datatable-reorder-indicator-down",3,"ngStyle"],["reorderIndicatorDown",""]],template:function Table_Template(te,ne){1&te&&(le.j41(0,"div",0,1),le.DNE(2,Table_div_2_Template,3,2,"div",2)(3,Table_div_3_Template,2,1,"div",3)(4,Table_p_paginator_4_Template,6,24,"p-paginator",4),le.j41(5,"div",5,6),le.DNE(7,Table_p_scroller_7_Template,3,17,"p-scroller",7)(8,Table_ng_container_8_Template,2,7,"ng-container",8)(9,Table_ng_template_9_Template,10,26,"ng-template",null,9,le.C5r),le.k0s(),le.DNE(11,Table_p_paginator_11_Template,6,24,"p-paginator",4)(12,Table_div_12_Template,2,1,"div",10)(13,Table_div_13_Template,2,2,"div",11)(14,Table_span_14_Template,4,4,"span",12)(15,Table_span_15_Template,4,4,"span",13),le.k0s()),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngStyle",ne.style)("ngClass",le.sMw(16,_c15,ne.rowHover||ne.selectionMode,ne.scrollable,ne.scrollable&&"flex"===ne.scrollHeight)),le.BMQ("id",ne.id),le.R7$(2),le.Y8G("ngIf",ne.loading&&ne.showLoader),le.R7$(),le.Y8G("ngIf",ne.captionTemplate),le.R7$(),le.Y8G("ngIf",ne.paginator&&("top"===ne.paginatorPosition||"both"==ne.paginatorPosition)),le.R7$(),le.Y8G("ngStyle",le.eq3(20,_c16,ne.virtualScroll?"":ne.scrollHeight)),le.R7$(2),le.Y8G("ngIf",ne.virtualScroll),le.R7$(),le.Y8G("ngIf",!ne.virtualScroll),le.R7$(3),le.Y8G("ngIf",ne.paginator&&("bottom"===ne.paginatorPosition||"both"==ne.paginatorPosition)),le.R7$(),le.Y8G("ngIf",ne.summaryTemplate),le.R7$(),le.Y8G("ngIf",ne.resizableColumns),le.R7$(),le.Y8G("ngIf",ne.reorderableColumns),le.R7$(),le.Y8G("ngIf",ne.reorderableColumns))},dependencies:()=>[re.YU,re.bT,re.T3,re.B3,He,de.Ei,qe.H,Ce,ye,Re.N,Kt],styles:["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:2}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:2}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:3}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return Table})(),Kt=(()=>{class TableBody{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(te){this._value=te,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(te,ne,ie,re){this.dt=te,this.tableService=ne,this.cd=ie,this.el=re,this.subscription=this.dt.tableService.valueSource$.subscribe((()=>{this.dt.virtualScroll&&this.cd.detectChanges()}))}shouldRenderRowGroupHeader(te,ne,ie){let re=be.BF.resolveFieldData(ne,this.dt.groupRowsBy),le=te[ie-(1+this.dt._first)];if(le){return re!==be.BF.resolveFieldData(le,this.dt.groupRowsBy)}return!0}shouldRenderRowGroupFooter(te,ne,ie){let re=be.BF.resolveFieldData(ne,this.dt.groupRowsBy),le=te[ie+(1+this.dt._first)];if(le){return re!==be.BF.resolveFieldData(le,this.dt.groupRowsBy)}return!0}shouldRenderRowspan(te,ne,ie){let re=be.BF.resolveFieldData(ne,this.dt.groupRowsBy),le=te[ie-1];if(le){return re!==be.BF.resolveFieldData(le,this.dt.groupRowsBy)}return!0}calculateRowGroupSize(te,ne,ie){let re=be.BF.resolveFieldData(ne,this.dt.groupRowsBy),le=re,ce=0;for(;re===le;){ce++;let ne=te[++ie];if(!ne)break;le=be.BF.resolveFieldData(ne,this.dt.groupRowsBy)}return 1===ce?null:ce}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=ge.D.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let te=ge.D.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=te+"px"}}getScrollerOption(te,ne){return this.dt.virtualScroll&&(ne=ne||this.scrollerOptions)?ne[te]:null}getRowIndex(te){const ne=this.dt.paginator?this.dt.first+te:te,ie=this.getScrollerOption("getItemOptions");return ie?ie(ne).index:ne}static ɵfac=function TableBody_Factory(te){return new(te||TableBody)(le.rXU(Wt),le.rXU(Yt),le.rXU(le.gRc),le.rXU(le.aKT))};static ɵcmp=le.VBU({type:TableBody,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:[le.Mj6.None,"pTableBody","columns"],template:[le.Mj6.None,"pTableBodyTemplate","template"],value:"value",frozen:[le.Mj6.HasDecoratorInputTransform,"frozen","frozen",le.L39],frozenRows:[le.Mj6.HasDecoratorInputTransform,"frozenRows","frozenRows",le.L39],scrollerOptions:"scrollerOptions"},features:[le.GFd],attrs:$t,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function TableBody_Template(te,ne){1&te&&le.DNE(0,TableBody_ng_container_0_Template,2,2,"ng-container",0)(1,TableBody_ng_container_1_Template,2,2,"ng-container",0)(2,TableBody_ng_container_2_Template,2,2,"ng-container",0)(3,TableBody_ng_container_3_Template,2,5,"ng-container",0)(4,TableBody_ng_container_4_Template,2,5,"ng-container",0),2&te&&(le.Y8G("ngIf",!ne.dt.expandedRowTemplate),le.R7$(),le.Y8G("ngIf",ne.dt.expandedRowTemplate&&!(ne.frozen&&ne.dt.frozenExpandedRowTemplate)),le.R7$(),le.Y8G("ngIf",ne.dt.frozenExpandedRowTemplate&&ne.frozen),le.R7$(),le.Y8G("ngIf",ne.dt.loading),le.R7$(),le.Y8G("ngIf",ne.dt.isEmpty()&&!ne.dt.loading))},dependencies:[re.Sq,re.bT,re.T3],encapsulation:2})}return TableBody})(),Qt=(()=>{class SelectableRow{dt;tableService;el;data;index;pSelectableRowDisabled;selected;subscription;constructor(te,ne,ie){this.dt=te,this.tableService=ne,this.el=ie,this.isEnabled()&&(this.subscription=this.dt.tableService.selectionSource$.subscribe((()=>{this.selected=this.dt.isSelected(this.data)})))}setRowTabIndex(){if("single"===this.dt.selectionMode||"multiple"===this.dt.selectionMode)return this.dt.selection?this.dt.anchorRowIndex===this.index?0:-1:0}ngOnInit(){this.isEnabled()&&(this.selected=this.dt.isSelected(this.data))}onClick(te){this.isEnabled()&&this.dt.handleRowClick({originalEvent:te,rowData:this.data,rowIndex:this.index})}onTouchEnd(te){this.isEnabled()&&this.dt.handleRowTouchEnd(te)}onKeyDown(te){switch(te.code){case"ArrowDown":this.onArrowDownKey(te);break;case"ArrowUp":this.onArrowUpKey(te);break;case"Home":this.onHomeKey(te);break;case"End":this.onEndKey(te);break;case"Space":this.onSpaceKey(te);break;case"Enter":this.onEnterKey(te);break;default:if("KeyA"===te.code&&(te.metaKey||te.ctrlKey)&&"multiple"===this.dt.selectionMode){const ne=this.dt.dataToRender(this.dt.processedData);this.dt.selection=[...ne],this.dt.selectRange(te,ne.length-1,!0),te.preventDefault()}}}onArrowDownKey(te){if(!this.isEnabled())return;const ne=te.currentTarget,ie=this.findNextSelectableRow(ne);ie&&ie.focus(),te.preventDefault()}onArrowUpKey(te){if(!this.isEnabled())return;const ne=te.currentTarget,ie=this.findPrevSelectableRow(ne);ie&&ie.focus(),te.preventDefault()}onEnterKey(te){this.isEnabled()&&this.dt.handleRowClick({originalEvent:te,rowData:this.data,rowIndex:this.index})}onEndKey(te){const ne=this.findLastSelectableRow();if(ne&&this.focusRowChange(this.el.nativeElement,ne),te.ctrlKey&&te.shiftKey){const ie=this.dt.dataToRender(this.dt.rows),re=ge.D.getAttribute(ne,"index");this.dt.anchorRowIndex=re,this.dt.selection=ie.slice(this.index,ie.length),this.dt.selectRange(te,this.index)}te.preventDefault()}onHomeKey(te){const ne=this.findFirstSelectableRow();if(ne&&this.focusRowChange(this.el.nativeElement,ne),te.ctrlKey&&te.shiftKey){const ie=this.dt.dataToRender(this.dt.rows),re=ge.D.getAttribute(ne,"index");this.dt.anchorRowIndex=this.dt.anchorRowIndex||re,this.dt.selection=ie.slice(0,this.index+1),this.dt.selectRange(te,this.index)}te.preventDefault()}onSpaceKey(te){if(!(te.target instanceof HTMLInputElement||te.target instanceof HTMLSelectElement||te.target instanceof HTMLTextAreaElement)){if(this.onEnterKey(te),te.shiftKey&&null!==this.dt.selection){const ne=this.dt.dataToRender(this.dt.rows);let ie;if(be.BF.isNotEmpty(this.dt.selection)&&this.dt.selection.length>0){let te,re;te=be.BF.findIndexInList(this.dt.selection[0],ne),re=be.BF.findIndexInList(this.dt.selection[this.dt.selection.length-1],ne),ie=this.index<=te?re:te}else ie=be.BF.findIndexInList(this.dt.selection,ne);this.dt.anchorRowIndex=ie,this.dt.selection=ie!==this.index?ne.slice(Math.min(ie,this.index),Math.max(ie,this.index)+1):[this.data],this.dt.selectRange(te,this.index)}te.preventDefault()}}focusRowChange(te,ne){te.tabIndex="-1",ne.tabIndex="0",ge.D.focus(ne)}findLastSelectableRow(){const te=ge.D.find(this.dt.el.nativeElement,".p-selectable-row");return te?te[te.length-1]:null}findFirstSelectableRow(){return ge.D.findSingle(this.dt.el.nativeElement,".p-selectable-row")}findNextSelectableRow(te){let ne=te.nextElementSibling;return ne?ge.D.hasClass(ne,"p-selectable-row")?ne:this.findNextSelectableRow(ne):null}findPrevSelectableRow(te){let ne=te.previousElementSibling;return ne?ge.D.hasClass(ne,"p-selectable-row")?ne:this.findPrevSelectableRow(ne):null}isEnabled(){return!0!==this.pSelectableRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static ɵfac=function SelectableRow_Factory(te){return new(te||SelectableRow)(le.rXU(Wt),le.rXU(Yt),le.rXU(le.aKT))};static ɵdir=le.FsC({type:SelectableRow,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function SelectableRow_HostBindings(te,ne){1&te&&le.bIt("click",(function SelectableRow_click_HostBindingHandler(te){return ne.onClick(te)}))("touchend",(function SelectableRow_touchend_HostBindingHandler(te){return ne.onTouchEnd(te)}))("keydown",(function SelectableRow_keydown_HostBindingHandler(te){return ne.onKeyDown(te)})),2&te&&(le.BMQ("tabindex",ne.setRowTabIndex())("data-p-highlight",ne.selected)("data-p-selectable-row",!0),le.AVh("p-selectable-row",ne.isEnabled())("p-highlight",ne.selected))},inputs:{data:[le.Mj6.None,"pSelectableRow","data"],index:[le.Mj6.None,"pSelectableRowIndex","index"],pSelectableRowDisabled:[le.Mj6.HasDecoratorInputTransform,"pSelectableRowDisabled","pSelectableRowDisabled",le.L39]},features:[le.GFd]})}return SelectableRow})(),Jt=(()=>{class ContextMenuRow{dt;tableService;el;data;index;pContextMenuRowDisabled;selected;subscription;constructor(te,ne,ie){this.dt=te,this.tableService=ne,this.el=ie,this.isEnabled()&&(this.subscription=this.dt.tableService.contextMenuSource$.subscribe((te=>{this.selected=this.dt.equals(this.data,te)})))}onContextMenu(te){this.isEnabled()&&(this.dt.handleRowRightClick({originalEvent:te,rowData:this.data,rowIndex:this.index}),this.el.nativeElement.focus(),te.preventDefault())}isEnabled(){return!0!==this.pContextMenuRowDisabled}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static ɵfac=function ContextMenuRow_Factory(te){return new(te||ContextMenuRow)(le.rXU(Wt),le.rXU(Yt),le.rXU(le.aKT))};static ɵdir=le.FsC({type:ContextMenuRow,selectors:[["","pContextMenuRow",""]],hostAttrs:[1,"p-element"],hostVars:3,hostBindings:function ContextMenuRow_HostBindings(te,ne){1&te&&le.bIt("contextmenu",(function ContextMenuRow_contextmenu_HostBindingHandler(te){return ne.onContextMenu(te)})),2&te&&(le.BMQ("tabindex",ne.isEnabled()?0:void 0),le.AVh("p-highlight-contextmenu",ne.selected))},inputs:{data:[le.Mj6.None,"pContextMenuRow","data"],index:[le.Mj6.None,"pContextMenuRowIndex","index"],pContextMenuRowDisabled:[le.Mj6.HasDecoratorInputTransform,"pContextMenuRowDisabled","pContextMenuRowDisabled",le.L39]},features:[le.GFd]})}return ContextMenuRow})(),Zt=(()=>{class ResizableColumn{document;platformId;renderer;dt;el;zone;pResizableColumnDisabled;resizer;resizerMouseDownListener;resizerTouchStartListener;resizerTouchMoveListener;resizerTouchEndListener;documentMouseMoveListener;documentMouseUpListener;constructor(te,ne,ie,re,le,ce){this.document=te,this.platformId=ne,this.renderer=ie,this.dt=re,this.el=le,this.zone=ce}ngAfterViewInit(){(0,re.UE)(this.platformId)&&this.isEnabled()&&(ge.D.addClass(this.el.nativeElement,"p-resizable-column"),this.resizer=this.renderer.createElement("span"),this.renderer.addClass(this.resizer,"p-column-resizer"),this.renderer.appendChild(this.el.nativeElement,this.resizer),this.zone.runOutsideAngular((()=>{this.resizerMouseDownListener=this.renderer.listen(this.resizer,"mousedown",this.onMouseDown.bind(this)),this.resizerTouchStartListener=this.renderer.listen(this.resizer,"touchstart",this.onTouchStart.bind(this))})))}bindDocumentEvents(){this.zone.runOutsideAngular((()=>{this.documentMouseMoveListener=this.renderer.listen(this.document,"mousemove",this.onDocumentMouseMove.bind(this)),this.documentMouseUpListener=this.renderer.listen(this.document,"mouseup",this.onDocumentMouseUp.bind(this)),this.resizerTouchMoveListener=this.renderer.listen(this.resizer,"touchmove",this.onTouchMove.bind(this)),this.resizerTouchEndListener=this.renderer.listen(this.resizer,"touchend",this.onTouchEnd.bind(this))}))}unbindDocumentEvents(){this.documentMouseMoveListener&&(this.documentMouseMoveListener(),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(this.documentMouseUpListener(),this.documentMouseUpListener=null),this.resizerTouchMoveListener&&(this.resizerTouchMoveListener(),this.resizerTouchMoveListener=null),this.resizerTouchEndListener&&(this.resizerTouchEndListener(),this.resizerTouchEndListener=null)}onMouseDown(te){this.dt.onColumnResizeBegin(te),this.bindDocumentEvents()}onTouchStart(te){this.dt.onColumnResizeBegin(te),this.bindDocumentEvents()}onTouchMove(te){this.dt.onColumnResize(te)}onDocumentMouseMove(te){this.dt.onColumnResize(te)}onDocumentMouseUp(te){this.dt.onColumnResizeEnd(),this.unbindDocumentEvents()}onTouchEnd(te){this.dt.onColumnResizeEnd(),this.unbindDocumentEvents()}isEnabled(){return!0!==this.pResizableColumnDisabled}ngOnDestroy(){this.resizerMouseDownListener&&(this.resizerMouseDownListener(),this.resizerMouseDownListener=null),this.unbindDocumentEvents()}static ɵfac=function ResizableColumn_Factory(te){return new(te||ResizableColumn)(le.rXU(re.qQ),le.rXU(le.Agw),le.rXU(le.sFG),le.rXU(Wt),le.rXU(le.aKT),le.rXU(le.SKi))};static ɵdir=le.FsC({type:ResizableColumn,selectors:[["","pResizableColumn",""]],hostAttrs:[1,"p-element"],inputs:{pResizableColumnDisabled:[le.Mj6.HasDecoratorInputTransform,"pResizableColumnDisabled","pResizableColumnDisabled",le.L39]},features:[le.GFd]})}return ResizableColumn})(),tn=(()=>{class ReorderableColumn{platformId;renderer;dt;el;zone;pReorderableColumnDisabled;dragStartListener;dragOverListener;dragEnterListener;dragLeaveListener;mouseDownListener;constructor(te,ne,ie,re,le){this.platformId=te,this.renderer=ne,this.dt=ie,this.el=re,this.zone=le}ngAfterViewInit(){this.isEnabled()&&this.bindEvents()}bindEvents(){(0,re.UE)(this.platformId)&&this.zone.runOutsideAngular((()=>{this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this)),this.dragStartListener=this.renderer.listen(this.el.nativeElement,"dragstart",this.onDragStart.bind(this)),this.dragOverListener=this.renderer.listen(this.el.nativeElement,"dragover",this.onDragOver.bind(this)),this.dragEnterListener=this.renderer.listen(this.el.nativeElement,"dragenter",this.onDragEnter.bind(this)),this.dragLeaveListener=this.renderer.listen(this.el.nativeElement,"dragleave",this.onDragLeave.bind(this))}))}unbindEvents(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=null),this.dragStartListener&&(this.dragStartListener(),this.dragStartListener=null),this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.dragEnterListener&&(this.dragEnterListener(),this.dragEnterListener=null),this.dragLeaveListener&&(this.dragLeaveListener(),this.dragLeaveListener=null)}onMouseDown(te){"INPUT"===te.target.nodeName||"TEXTAREA"===te.target.nodeName||ge.D.hasClass(te.target,"p-column-resizer")?this.el.nativeElement.draggable=!1:this.el.nativeElement.draggable=!0}onDragStart(te){this.dt.onColumnDragStart(te,this.el.nativeElement)}onDragOver(te){te.preventDefault()}onDragEnter(te){this.dt.onColumnDragEnter(te,this.el.nativeElement)}onDragLeave(te){this.dt.onColumnDragLeave(te)}onDrop(te){this.isEnabled()&&this.dt.onColumnDrop(te,this.el.nativeElement)}isEnabled(){return!0!==this.pReorderableColumnDisabled}ngOnDestroy(){this.unbindEvents()}static ɵfac=function ReorderableColumn_Factory(te){return new(te||ReorderableColumn)(le.rXU(le.Agw),le.rXU(le.sFG),le.rXU(Wt),le.rXU(le.aKT),le.rXU(le.SKi))};static ɵdir=le.FsC({type:ReorderableColumn,selectors:[["","pReorderableColumn",""]],hostAttrs:[1,"p-element"],hostVars:2,hostBindings:function ReorderableColumn_HostBindings(te,ne){1&te&&le.bIt("drop",(function ReorderableColumn_drop_HostBindingHandler(te){return ne.onDrop(te)})),2&te&&le.xc7("cursor",ne.isEnabled()?"move":"default")},inputs:{pReorderableColumnDisabled:[le.Mj6.HasDecoratorInputTransform,"pReorderableColumnDisabled","pReorderableColumnDisabled",le.L39]},features:[le.GFd]})}return ReorderableColumn})(),nn=(()=>{class TableCheckbox{dt;tableService;cd;disabled;value;index;inputId;name;required;ariaLabel;checked;focused;subscription;constructor(te,ne,ie){this.dt=te,this.tableService=ne,this.cd=ie,this.subscription=this.dt.tableService.selectionSource$.subscribe((()=>{this.checked=this.dt.isSelected(this.value)&&!this.disabled,this.ariaLabel=this.ariaLabel||this.dt.config.translation.aria?this.checked?this.dt.config.translation.aria.selectRow:this.dt.config.translation.aria.unselectRow:void 0,this.cd.markForCheck()}))}ngOnInit(){this.checked=this.dt.isSelected(this.value)}onClick(te){this.disabled||this.dt.toggleRowWithCheckbox({originalEvent:te,rowIndex:this.index},this.value),ge.D.clearSelection()}onFocus(){this.focused=!0}onBlur(){this.focused=!1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static ɵfac=function TableCheckbox_Factory(te){return new(te||TableCheckbox)(le.rXU(Wt),le.rXU(Yt),le.rXU(le.gRc))};static ɵcmp=le.VBU({type:TableCheckbox,selectors:[["p-tableCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],value:"value",index:[le.Mj6.HasDecoratorInputTransform,"index","index",le.Udg],inputId:"inputId",name:"name",required:[le.Mj6.HasDecoratorInputTransform,"required","required",le.L39],ariaLabel:"ariaLabel"},features:[le.GFd],decls:7,vars:18,consts:[[1,"p-checkbox","p-component",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"checked","disabled","tabindex","focus","blur"],[3,"ngClass"],["box",""],[4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function TableCheckbox_Template(te,ne){1&te&&(le.j41(0,"div",0),le.bIt("click",(function TableCheckbox_Template_div_click_0_listener(te){return ne.onClick(te)})),le.j41(1,"div",1)(2,"input",2),le.bIt("focus",(function TableCheckbox_Template_input_focus_2_listener(){return ne.onFocus()}))("blur",(function TableCheckbox_Template_input_blur_2_listener(){return ne.onBlur()})),le.k0s()(),le.j41(3,"div",3,4),le.DNE(5,TableCheckbox_ng_container_5_Template,2,1,"ng-container",5)(6,TableCheckbox_span_6_Template,2,4,"span",5),le.k0s()()),2&te&&(le.Y8G("ngClass",le.l_i(11,_c26,ne.focused,ne.disabled)),le.R7$(2),le.Y8G("checked",ne.checked)("disabled",ne.disabled)("tabindex",ne.disabled?null:"0"),le.BMQ("id",ne.inputId)("name",ne.name)("required",ne.required)("aria-label",ne.ariaLabel),le.R7$(),le.Y8G("ngClass",le.sMw(14,_c27,ne.checked,ne.focused,ne.disabled)),le.R7$(2),le.Y8G("ngIf",!ne.dt.checkboxIconTemplate),le.R7$(),le.Y8G("ngIf",ne.dt.checkboxIconTemplate))},dependencies:()=>[re.YU,re.bT,re.T3,we.S],encapsulation:2,changeDetection:0})}return TableCheckbox})(),rn=(()=>{class TableHeaderCheckbox{dt;tableService;cd;disabled;inputId;name;ariaLabel;checked;focused;selectionChangeSubscription;valueChangeSubscription;constructor(te,ne,ie){this.dt=te,this.tableService=ne,this.cd=ie,this.valueChangeSubscription=this.dt.tableService.valueSource$.subscribe((()=>{this.checked=this.updateCheckedState(),this.ariaLabel=this.ariaLabel||this.dt.config.translation.aria?this.checked?this.dt.config.translation.aria.selectAll:this.dt.config.translation.aria.unselectAll:void 0})),this.selectionChangeSubscription=this.dt.tableService.selectionSource$.subscribe((()=>{this.checked=this.updateCheckedState()}))}ngOnInit(){this.checked=this.updateCheckedState()}onClick(te){this.disabled||this.dt.value&&this.dt.value.length>0&&this.dt.toggleRowsWithCheckbox(te,!this.checked),ge.D.clearSelection()}onFocus(){this.focused=!0}onBlur(){this.focused=!1}isDisabled(){return this.disabled||!this.dt.value||!this.dt.value.length}ngOnDestroy(){this.selectionChangeSubscription&&this.selectionChangeSubscription.unsubscribe(),this.valueChangeSubscription&&this.valueChangeSubscription.unsubscribe()}updateCheckedState(){if(this.cd.markForCheck(),null!==this.dt._selectAll)return this.dt._selectAll;{const te=this.dt.selectionPageOnly?this.dt.dataToRender(this.dt.processedData):this.dt.processedData,ne=this.dt.frozenValue?[...this.dt.frozenValue,...te]:te,ie=this.dt.rowSelectable?ne.filter(((te,ne)=>this.dt.rowSelectable({data:te,index:ne}))):ne;return be.BF.isNotEmpty(ie)&&be.BF.isNotEmpty(this.dt.selection)&&ie.every((te=>this.dt.selection.some((ne=>this.dt.equals(te,ne)))))}}static ɵfac=function TableHeaderCheckbox_Factory(te){return new(te||TableHeaderCheckbox)(le.rXU(Wt),le.rXU(Yt),le.rXU(le.gRc))};static ɵcmp=le.VBU({type:TableHeaderCheckbox,selectors:[["p-tableHeaderCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:[le.Mj6.HasDecoratorInputTransform,"disabled","disabled",le.L39],inputId:"inputId",name:"name",ariaLabel:"ariaLabel"},features:[le.GFd],decls:8,vars:17,consts:[[1,"p-checkbox","p-component",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"tabindex","checked","disabled","focus","blur"],["cb",""],[3,"ngClass"],["box",""],[4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function TableHeaderCheckbox_Template(te,ne){1&te&&(le.j41(0,"div",0),le.bIt("click",(function TableHeaderCheckbox_Template_div_click_0_listener(te){return ne.onClick(te)})),le.j41(1,"div",1)(2,"input",2,3),le.bIt("focus",(function TableHeaderCheckbox_Template_input_focus_2_listener(){return ne.onFocus()}))("blur",(function TableHeaderCheckbox_Template_input_blur_2_listener(){return ne.onBlur()})),le.k0s()(),le.j41(4,"div",4,5),le.DNE(6,TableHeaderCheckbox_ng_container_6_Template,2,1,"ng-container",6)(7,TableHeaderCheckbox_span_7_Template,2,4,"span",7),le.k0s()()),2&te&&(le.Y8G("ngClass",le.l_i(10,_c26,ne.focused,ne.isDisabled())),le.R7$(2),le.Y8G("tabindex",ne.disabled?null:"0")("checked",ne.checked)("disabled",ne.isDisabled()),le.BMQ("id",ne.inputId)("name",ne.name)("aria-label",ne.ariaLabel),le.R7$(2),le.Y8G("ngClass",le.sMw(13,_c28,ne.checked,ne.focused,ne.isDisabled())),le.R7$(2),le.Y8G("ngIf",!ne.dt.headerCheckboxIconTemplate),le.R7$(),le.Y8G("ngIf",ne.dt.headerCheckboxIconTemplate))},dependencies:()=>[re.YU,re.bT,re.T3,we.S],encapsulation:2,changeDetection:0})}return TableHeaderCheckbox})(),an=(()=>{class TableModule{static ɵfac=function TableModule_Factory(te){return new(te||TableModule)};static ɵmod=le.$C({type:TableModule});static ɵinj=le.G2t({imports:[re.MD,$e,Pe.u,fe.kr,ce.YN,ue.tm,Je,me.rO,Oe.O3,vt,qe.h,Ce,ye,Re.N,Ee,Ne,Me,we.S,ke,Se,xe.c,Le,de.Gg,qe.h]})}return TableModule})()},1178:(te,ne,ie)=>{"use strict";ie.d(ne,{JQ:()=>Ne,Kp:()=>Me,fd:()=>Re});var re=ie(4460),le=ie(3107),ce=ie(3828),de=ie(5724),ue=ie(9135),me=ie(2778),ge=ie(239),fe=ie(1646),_e=ie(4613),be=ie(1939);function TabPanel_div_0_ng_container_2_ng_container_1_Template(te,ne){1&te&&le.eu8(0)}function TabPanel_div_0_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TabPanel_div_0_ng_container_2_ng_container_1_Template,1,0,"ng-container",3),le.bVm()),2&te){const te=le.XpG(2);le.R7$(),le.Y8G("ngTemplateOutlet",te.contentTemplate)}}function TabPanel_div_0_Template(te,ne){if(1&te&&(le.j41(0,"div",1),le.SdG(1),le.DNE(2,TabPanel_div_0_ng_container_2_Template,2,1,"ng-container",2),le.k0s()),2&te){const te=le.XpG();le.Y8G("hidden",!te.selected),le.BMQ("id",te.tabView.getTabContentId(te.id))("aria-hidden",!te.selected)("aria-labelledby",te.tabView.getTabHeaderActionId(te.id))("data-pc-name","tabpanel"),le.R7$(2),le.Y8G("ngIf",te.contentTemplate&&(te.cache?te.loaded:te.selected))}}const Ce=["*"],ye=["content"],we=["navbar"],ke=["prevBtn"],Se=["nextBtn"],xe=["inkbar"],Ee=["elementToObserve"];function TabView_button_3_ChevronLeftIcon_2_Template(te,ne){1&te&&le.nrm(0,"ChevronLeftIcon"),2&te&&le.BMQ("aria-hidden",!0)}function TabView_button_3_3_ng_template_0_Template(te,ne){}function TabView_button_3_3_Template(te,ne){1&te&&le.DNE(0,TabView_button_3_3_ng_template_0_Template,0,0,"ng-template")}function TabView_button_3_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"button",13,14),le.bIt("click",(function TabView_button_3_Template_button_click_0_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.navBackward())})),le.DNE(2,TabView_button_3_ChevronLeftIcon_2_Template,1,1,"ChevronLeftIcon",15)(3,TabView_button_3_3_Template,1,0,null,16),le.k0s()}if(2&te){const te=le.XpG();le.BMQ("tabindex",te.tabindex)("aria-label",te.prevButtonAriaLabel),le.R7$(2),le.Y8G("ngIf",!te.previousIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.previousIconTemplate)}}function TabView_ng_template_8_li_0_ng_container_2_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",25),2&te){const te=le.XpG(3).$implicit;le.Y8G("ngClass",te.leftIcon)}}function TabView_ng_template_8_li_0_ng_container_2_span_2_1_ng_template_0_Template(te,ne){}function TabView_ng_template_8_li_0_ng_container_2_span_2_1_Template(te,ne){1&te&&le.DNE(0,TabView_ng_template_8_li_0_ng_container_2_span_2_1_ng_template_0_Template,0,0,"ng-template")}function TabView_ng_template_8_li_0_ng_container_2_span_2_Template(te,ne){if(1&te&&(le.j41(0,"span",26),le.DNE(1,TabView_ng_template_8_li_0_ng_container_2_span_2_1_Template,1,0,null,16),le.k0s()),2&te){const te=le.XpG(3).$implicit;le.R7$(),le.Y8G("ngTemplateOutlet",te.leftIconTemplate)}}function TabView_ng_template_8_li_0_ng_container_2_span_5_Template(te,ne){if(1&te&&le.nrm(0,"span",27),2&te){const te=le.XpG(3).$implicit;le.Y8G("ngClass",te.rightIcon)}}function TabView_ng_template_8_li_0_ng_container_2_span_6_1_ng_template_0_Template(te,ne){}function TabView_ng_template_8_li_0_ng_container_2_span_6_1_Template(te,ne){1&te&&le.DNE(0,TabView_ng_template_8_li_0_ng_container_2_span_6_1_ng_template_0_Template,0,0,"ng-template")}function TabView_ng_template_8_li_0_ng_container_2_span_6_Template(te,ne){if(1&te&&(le.j41(0,"span",28),le.DNE(1,TabView_ng_template_8_li_0_ng_container_2_span_6_1_Template,1,0,null,16),le.k0s()),2&te){const te=le.XpG(3).$implicit;le.R7$(),le.Y8G("ngTemplateOutlet",te.rightIconTemplate)}}function TabView_ng_template_8_li_0_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TabView_ng_template_8_li_0_ng_container_2_span_1_Template,1,1,"span",20)(2,TabView_ng_template_8_li_0_ng_container_2_span_2_Template,2,1,"span",21),le.j41(3,"span",22),le.EFF(4),le.k0s(),le.DNE(5,TabView_ng_template_8_li_0_ng_container_2_span_5_Template,1,1,"span",23)(6,TabView_ng_template_8_li_0_ng_container_2_span_6_Template,2,1,"span",24),le.bVm()),2&te){const te=le.XpG(2).$implicit;le.R7$(),le.Y8G("ngIf",te.leftIcon&&!te.leftIconTemplate),le.R7$(),le.Y8G("ngIf",te.leftIconTemplate),le.R7$(2),le.JRh(te.header),le.R7$(),le.Y8G("ngIf",te.rightIcon&&!te.rightIconTemplate),le.R7$(),le.Y8G("ngIf",te.rightIconTemplate)}}function TabView_ng_template_8_li_0_ng_container_3_Template(te,ne){1&te&&le.eu8(0)}function TabView_ng_template_8_li_0_ng_container_4_TimesIcon_1_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"TimesIcon",31),le.bIt("click",(function TabView_ng_template_8_li_0_ng_container_4_TimesIcon_1_Template_TimesIcon_click_0_listener(ne){le.eBV(te);const ie=le.XpG(3).$implicit,re=le.XpG();return le.Njj(re.close(ne,ie))})),le.k0s()}2&te&&le.Y8G("styleClass","p-tabview-close")}function TabView_ng_template_8_li_0_ng_container_4_span_2_Template(te,ne){1&te&&le.nrm(0,"span",32)}function TabView_ng_template_8_li_0_ng_container_4_3_ng_template_0_Template(te,ne){}function TabView_ng_template_8_li_0_ng_container_4_3_Template(te,ne){1&te&&le.DNE(0,TabView_ng_template_8_li_0_ng_container_4_3_ng_template_0_Template,0,0,"ng-template")}function TabView_ng_template_8_li_0_ng_container_4_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,TabView_ng_template_8_li_0_ng_container_4_TimesIcon_1_Template,1,1,"TimesIcon",29)(2,TabView_ng_template_8_li_0_ng_container_4_span_2_Template,1,0,"span",30)(3,TabView_ng_template_8_li_0_ng_container_4_3_Template,1,0,null,16),le.bVm()),2&te){const te=le.XpG(2).$implicit;le.R7$(),le.Y8G("ngIf",!te.closeIconTemplate),le.R7$(),le.Y8G("ngIf",te.closeIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.closeIconTemplate)}}const _c7=(te,ne)=>({"p-highlight":te,"p-disabled":ne});function TabView_ng_template_8_li_0_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"li",18)(1,"a",19),le.bIt("click",(function TabView_ng_template_8_li_0_Template_a_click_1_listener(ne){le.eBV(te);const ie=le.XpG().$implicit,re=le.XpG();return le.Njj(re.open(ne,ie))}))("keydown",(function TabView_ng_template_8_li_0_Template_a_keydown_1_listener(ne){le.eBV(te);const ie=le.XpG().$implicit,re=le.XpG();return le.Njj(re.onTabKeyDown(ne,ie))})),le.DNE(2,TabView_ng_template_8_li_0_ng_container_2_Template,7,5,"ng-container",15)(3,TabView_ng_template_8_li_0_ng_container_3_Template,1,0,"ng-container",16)(4,TabView_ng_template_8_li_0_ng_container_4_Template,4,3,"ng-container",15),le.k0s()()}if(2&te){const te=le.XpG(),ne=te.$implicit,ie=te.index,re=le.XpG();le.HbH(ne.headerStyleClass),le.Y8G("ngClass",le.l_i(19,_c7,ne.selected,ne.disabled))("ngStyle",ne.headerStyle),le.BMQ("data-p-disabled",ne.disabled),le.R7$(),le.Y8G("pTooltip",ne.tooltip)("tooltipPosition",ne.tooltipPosition)("positionStyle",ne.tooltipPositionStyle)("tooltipStyleClass",ne.tooltipStyleClass),le.BMQ("id",re.getTabHeaderActionId(ne.id))("aria-controls",re.getTabContentId(ne.id))("aria-selected",ne.selected)("tabindex",ne.disabled||!ne.selected?"-1":re.tabindex)("aria-disabled",ne.disabled)("data-pc-index",ie)("data-pc-section","headeraction"),le.R7$(),le.Y8G("ngIf",!ne.headerTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",ne.headerTemplate),le.R7$(),le.Y8G("ngIf",ne.closable)}}function TabView_ng_template_8_Template(te,ne){if(1&te&&le.DNE(0,TabView_ng_template_8_li_0_Template,5,22,"li",17),2&te){const te=ne.$implicit;le.Y8G("ngIf",!te.closed)}}function TabView_button_11_ChevronRightIcon_2_Template(te,ne){1&te&&le.nrm(0,"ChevronRightIcon"),2&te&&le.BMQ("aria-hidden",!0)}function TabView_button_11_3_ng_template_0_Template(te,ne){}function TabView_button_11_3_Template(te,ne){1&te&&le.DNE(0,TabView_button_11_3_ng_template_0_Template,0,0,"ng-template")}function TabView_button_11_Template(te,ne){if(1&te){const te=le.RV6();le.j41(0,"button",33,34),le.bIt("click",(function TabView_button_11_Template_button_click_0_listener(){le.eBV(te);const ne=le.XpG();return le.Njj(ne.navForward())})),le.DNE(2,TabView_button_11_ChevronRightIcon_2_Template,1,1,"ChevronRightIcon",15)(3,TabView_button_11_3_Template,1,0,null,16),le.k0s()}if(2&te){const te=le.XpG();le.BMQ("tabindex",te.tabindex)("aria-label",te.nextButtonAriaLabel),le.R7$(2),le.Y8G("ngIf",!te.nextIconTemplate),le.R7$(),le.Y8G("ngTemplateOutlet",te.nextIconTemplate)}}const _c8=te=>({"p-tabview p-component":!0,"p-tabview-scrollable":te});let Me=(()=>{class TabPanel{el;viewContainer;cd;closable=!1;get headerStyle(){return this._headerStyle}set headerStyle(te){this._headerStyle=te,this.tabView.cd.markForCheck()}get headerStyleClass(){return this._headerStyleClass}set headerStyleClass(te){this._headerStyleClass=te,this.tabView.cd.markForCheck()}cache=!0;tooltip;tooltipPosition="top";tooltipPositionStyle="absolute";tooltipStyleClass;get selected(){return!!this._selected}set selected(te){this._selected=te,this.loaded||this.cd.detectChanges(),te&&(this.loaded=!0)}get disabled(){return!!this._disabled}set disabled(te){this._disabled=te,this.tabView.cd.markForCheck()}get header(){return this._header}set header(te){this._header=te,Promise.resolve().then((()=>{this.tabView.updateInkBar(),this.tabView.cd.markForCheck()}))}get leftIcon(){return this._leftIcon}set leftIcon(te){this._leftIcon=te,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(te){this._rightIcon=te,this.tabView.cd.markForCheck()}templates;closed=!1;view=null;_headerStyle;_headerStyleClass;_selected;_disabled;_header;_leftIcon;_rightIcon=void 0;loaded=!1;id;contentTemplate;headerTemplate;leftIconTemplate;rightIconTemplate;closeIconTemplate;tabView;constructor(te,ne,ie,re){this.el=ne,this.viewContainer=ie,this.cd=re,this.tabView=te,this.id=(0,be._Y)()}ngAfterContentInit(){this.templates.forEach((te=>{switch(te.getType()){case"header":this.headerTemplate=te.template;break;case"content":default:this.contentTemplate=te.template;break;case"righticon":this.rightIconTemplate=te.template;break;case"lefticon":this.leftIconTemplate=te.template;break;case"closeicon":this.closeIconTemplate=te.template}}))}ngOnDestroy(){this.view=null}static ɵfac=function TabPanel_Factory(te){return new(te||TabPanel)(le.rXU((0,le.Rfq)((()=>Ne))),le.rXU(le.aKT),le.rXU(le.c1b),le.rXU(le.gRc))};static ɵcmp=le.VBU({type:TabPanel,selectors:[["p-tabPanel"]],contentQueries:function TabPanel_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,ce.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{closable:[le.Mj6.HasDecoratorInputTransform,"closable","closable",le.L39],headerStyle:"headerStyle",headerStyleClass:"headerStyleClass",cache:[le.Mj6.HasDecoratorInputTransform,"cache","cache",le.L39],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",selected:"selected",disabled:"disabled",header:"header",leftIcon:"leftIcon",rightIcon:"rightIcon"},features:[le.GFd],ngContentSelectors:Ce,decls:1,vars:1,consts:[["class","p-tabview-panel","role","tabpanel",3,"hidden",4,"ngIf"],["role","tabpanel",1,"p-tabview-panel",3,"hidden"],[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function TabPanel_Template(te,ne){1&te&&(le.NAR(),le.DNE(0,TabPanel_div_0_Template,3,6,"div",0)),2&te&&le.Y8G("ngIf",!ne.closed)},dependencies:[re.bT,re.T3],encapsulation:2})}return TabPanel})(),Ne=(()=>{class TabView{platformId;el;cd;renderer;style;styleClass;controlClose;scrollable;get activeIndex(){return this._activeIndex}set activeIndex(te){this._activeIndex=te,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.tabs&&this.tabs.length&&null!=this._activeIndex&&this.tabs.length>this._activeIndex&&(this.findSelectedTab().selected=!1,this.tabs[this._activeIndex].selected=!0,this.tabChanged=!0,this.updateScrollBar(te))}selectOnFocus=!1;nextButtonAriaLabel;prevButtonAriaLabel;autoHideButtons=!0;tabindex=0;onChange=new le.bkB;onClose=new le.bkB;activeIndexChange=new le.bkB;content;navbar;prevBtn;nextBtn;inkbar;tabPanels;templates;initialized;tabs;_activeIndex;preventActiveIndexPropagation;tabChanged;backwardIsDisabled=!0;forwardIsDisabled=!1;tabChangesSubscription;nextIconTemplate;previousIconTemplate;resizeObserver;container;list;buttonVisible;elementToObserve;constructor(te,ne,ie,re){this.platformId=te,this.el=ne,this.cd=ie,this.renderer=re}ngAfterContentInit(){this.initTabs(),this.tabChangesSubscription=this.tabPanels.changes.subscribe((te=>{this.initTabs(),this.refreshButtonState(),this.callResizeObserver()})),this.templates.forEach((te=>{switch(te.getType()){case"previousicon":this.previousIconTemplate=te.template;break;case"nexticon":this.nextIconTemplate=te.template}}))}callResizeObserver(){(0,re.UE)(this.platformId)&&this.autoHideButtons&&this.bindResizeObserver()}ngAfterViewInit(){this.callResizeObserver()}bindResizeObserver(){this.container=de.D.findSingle(this.el.nativeElement,'[data-pc-section="navcontent"]'),this.list=de.D.findSingle(this.el.nativeElement,'[data-pc-section="nav"]'),this.resizeObserver=new ResizeObserver((()=>{this.list.offsetWidth>=this.container.offsetWidth?this.buttonVisible=!0:this.buttonVisible=!1,this.updateButtonState(),this.cd.detectChanges()})),this.resizeObserver.observe(this.container)}unbindResizeObserver(){this.resizeObserver.unobserve(this.elementToObserve.nativeElement),this.resizeObserver=null}ngAfterViewChecked(){(0,re.UE)(this.platformId)&&this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}ngOnDestroy(){this.tabChangesSubscription&&this.tabChangesSubscription.unsubscribe(),this.resizeObserver&&this.unbindResizeObserver()}getTabHeaderActionId(te){return`${te}_header_action`}getTabContentId(te){return`${te}_content`}initTabs(){this.tabs=this.tabPanels.toArray(),!this.findSelectedTab()&&this.tabs.length&&(null!=this.activeIndex&&this.tabs.length>this.activeIndex?this.tabs[this.activeIndex].selected=!0:this.tabs[0].selected=!0,this.tabChanged=!0),this.cd.markForCheck()}onTabKeyDown(te,ne){switch(te.code){case"ArrowLeft":this.onTabArrowLeftKey(te);break;case"ArrowRight":this.onTabArrowRightKey(te);break;case"Home":case"PageUp":this.onTabHomeKey(te);break;case"End":case"PageDown":this.onTabEndKey(te);break;case"Enter":case"Space":this.open(te,ne)}}onTabArrowLeftKey(te){const ne=this.findPrevHeaderAction(te.target.parentElement),ie=de.D.getAttribute(ne,"data-pc-index");ne?this.changeFocusedTab(te,ne,ie):this.onTabEndKey(te),te.preventDefault()}onTabArrowRightKey(te){const ne=this.findNextHeaderAction(te.target.parentElement),ie=de.D.getAttribute(ne,"data-pc-index");ne?this.changeFocusedTab(te,ne,ie):this.onTabHomeKey(te),te.preventDefault()}onTabHomeKey(te){const ne=this.findFirstHeaderAction(),ie=de.D.getAttribute(ne,"data-pc-index");this.changeFocusedTab(te,ne,ie),te.preventDefault()}onTabEndKey(te){const ne=this.findLastHeaderAction(),ie=de.D.getAttribute(ne,"data-pc-index");this.changeFocusedTab(te,ne,ie),te.preventDefault()}changeFocusedTab(te,ne,ie){if(ne&&(de.D.focus(ne),ne.scrollIntoView({block:"nearest"}),this.selectOnFocus)){const ne=this.tabs[ie];this.open(te,ne)}}findNextHeaderAction(te,ne=!1){const ie=ne?te:te.nextElementSibling;return ie?de.D.getAttribute(ie,"data-p-disabled")||"inkbar"===de.D.getAttribute(ie,"data-pc-section")?this.findNextHeaderAction(ie):de.D.findSingle(ie,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(te,ne=!1){const ie=ne?te:te.previousElementSibling;return ie?de.D.getAttribute(ie,"data-p-disabled")||"inkbar"===de.D.getAttribute(ie,"data-pc-section")?this.findPrevHeaderAction(ie):de.D.findSingle(ie,'[data-pc-section="headeraction"]'):null}findFirstHeaderAction(){const te=this.navbar.nativeElement.firstElementChild;return this.findNextHeaderAction(te,!0)}findLastHeaderAction(){const te=this.navbar.nativeElement.lastElementChild,ne="inkbar"===de.D.getAttribute(te,"data-pc-section")?te.previousElementSibling:te;return this.findPrevHeaderAction(ne,!0)}open(te,ne){if(ne.disabled)te&&te.preventDefault();else{if(!ne.selected){let ie=this.findSelectedTab();ie&&(ie.selected=!1),this.tabChanged=!0,ne.selected=!0;let re=this.findTabIndex(ne);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(re),this.onChange.emit({originalEvent:te,index:re}),this.updateScrollBar(re)}te&&te.preventDefault()}}close(te,ne){this.controlClose?this.onClose.emit({originalEvent:te,index:this.findTabIndex(ne),close:()=>{this.closeTab(ne)}}):(this.closeTab(ne),this.onClose.emit({originalEvent:te,index:this.findTabIndex(ne)}))}closeTab(te){if(!te.disabled){if(te.selected){this.tabChanged=!0,te.selected=!1;for(let ne=0;ne<this.tabs.length;ne++){let ie=this.tabs[ne];if(!ie.closed&&!te.disabled){ie.selected=!0;break}}}te.closed=!0,setTimeout((()=>{this.updateInkBar()}))}}findSelectedTab(){for(let te=0;te<this.tabs.length;te++)if(this.tabs[te].selected)return this.tabs[te];return null}findTabIndex(te){let ne=-1;for(let ie=0;ie<this.tabs.length;ie++)if(this.tabs[ie]==te){ne=ie;break}return ne}getBlockableElement(){return this.el.nativeElement.children[0]}updateInkBar(){if((0,re.UE)(this.platformId)&&this.navbar){const te=de.D.findSingle(this.navbar.nativeElement,"li.p-highlight");if(!te)return;this.inkbar.nativeElement.style.width=de.D.getWidth(te)+"px",this.inkbar.nativeElement.style.left=de.D.getOffset(te).left-de.D.getOffset(this.navbar.nativeElement).left+"px"}}updateScrollBar(te){let ne=this.navbar.nativeElement.children[te];ne&&ne.scrollIntoView({block:"nearest"})}updateButtonState(){const te=this.content.nativeElement,{scrollLeft:ne,scrollWidth:ie}=te,re=de.D.getWidth(te);this.backwardIsDisabled=0===ne,this.forwardIsDisabled=Math.round(ne)===ie-re}refreshButtonState(){this.container=de.D.findSingle(this.el.nativeElement,'[data-pc-section="navcontent"]'),this.list=de.D.findSingle(this.el.nativeElement,'[data-pc-section="nav"]'),this.list.offsetWidth>=this.container.offsetWidth&&(this.list.offsetWidth>=this.container.offsetWidth?this.buttonVisible=!0:this.buttonVisible=!1,this.updateButtonState(),this.cd.markForCheck())}onScroll(te){this.scrollable&&this.updateButtonState(),te.preventDefault()}getVisibleButtonWidths(){return[this.prevBtn?.nativeElement,this.nextBtn?.nativeElement].reduce(((te,ne)=>ne?te+de.D.getWidth(ne):te),0)}navBackward(){const te=this.content.nativeElement,ne=de.D.getWidth(te)-this.getVisibleButtonWidths(),ie=te.scrollLeft-ne;te.scrollLeft=ie<=0?0:ie}navForward(){const te=this.content.nativeElement,ne=de.D.getWidth(te)-this.getVisibleButtonWidths(),ie=te.scrollLeft+ne,re=te.scrollWidth-ne;te.scrollLeft=ie>=re?re:ie}static ɵfac=function TabView_Factory(te){return new(te||TabView)(le.rXU(le.Agw),le.rXU(le.aKT),le.rXU(le.gRc),le.rXU(le.sFG))};static ɵcmp=le.VBU({type:TabView,selectors:[["p-tabView"]],contentQueries:function TabView_ContentQueries(te,ne,ie){if(1&te&&(le.wni(ie,Me,4),le.wni(ie,ce.Ei,4)),2&te){let te;le.mGM(te=le.lsd())&&(ne.tabPanels=te),le.mGM(te=le.lsd())&&(ne.templates=te)}},viewQuery:function TabView_Query(te,ne){if(1&te&&(le.GBs(ye,5),le.GBs(we,5),le.GBs(ke,5),le.GBs(Se,5),le.GBs(xe,5),le.GBs(Ee,5)),2&te){let te;le.mGM(te=le.lsd())&&(ne.content=te.first),le.mGM(te=le.lsd())&&(ne.navbar=te.first),le.mGM(te=le.lsd())&&(ne.prevBtn=te.first),le.mGM(te=le.lsd())&&(ne.nextBtn=te.first),le.mGM(te=le.lsd())&&(ne.inkbar=te.first),le.mGM(te=le.lsd())&&(ne.elementToObserve=te.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",controlClose:[le.Mj6.HasDecoratorInputTransform,"controlClose","controlClose",le.L39],scrollable:[le.Mj6.HasDecoratorInputTransform,"scrollable","scrollable",le.L39],activeIndex:"activeIndex",selectOnFocus:[le.Mj6.HasDecoratorInputTransform,"selectOnFocus","selectOnFocus",le.L39],nextButtonAriaLabel:"nextButtonAriaLabel",prevButtonAriaLabel:"prevButtonAriaLabel",autoHideButtons:[le.Mj6.HasDecoratorInputTransform,"autoHideButtons","autoHideButtons",le.L39],tabindex:[le.Mj6.HasDecoratorInputTransform,"tabindex","tabindex",le.Udg]},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},features:[le.GFd],ngContentSelectors:Ce,decls:14,vars:13,consts:[[3,"ngClass","ngStyle"],[1,"p-tabview-nav-container"],["elementToObserve",""],["class","p-tabview-nav-prev p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabview-nav"],["navbar",""],["ngFor","",3,"ngForOf"],["role","presentation","aria-hidden","true",1,"p-tabview-ink-bar"],["inkbar",""],["class","p-tabview-nav-next p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-panels"],["type","button","pRipple","",1,"p-tabview-nav-prev","p-tabview-nav-btn","p-link",3,"click"],["prevBtn",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["role","presentation",3,"ngClass","ngStyle","class",4,"ngIf"],["role","presentation",3,"ngClass","ngStyle"],["role","tab","pRipple","",1,"p-tabview-nav-link",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","click","keydown"],["class","p-tabview-left-icon",3,"ngClass",4,"ngIf"],["class","p-tabview-left-icon",4,"ngIf"],[1,"p-tabview-title"],["class","p-tabview-right-icon",3,"ngClass",4,"ngIf"],["class","p-tabview-right-icon",4,"ngIf"],[1,"p-tabview-left-icon",3,"ngClass"],[1,"p-tabview-left-icon"],[1,"p-tabview-right-icon",3,"ngClass"],[1,"p-tabview-right-icon"],[3,"styleClass","click",4,"ngIf"],["class","tab.closeIconTemplate",4,"ngIf"],[3,"styleClass","click"],[1,"tab.closeIconTemplate"],["type","button","pRipple","",1,"p-tabview-nav-next","p-tabview-nav-btn","p-link",3,"click"],["nextBtn",""]],template:function TabView_Template(te,ne){1&te&&(le.NAR(),le.j41(0,"div",0)(1,"div",1,2),le.DNE(3,TabView_button_3_Template,4,4,"button",3),le.j41(4,"div",4,5),le.bIt("scroll",(function TabView_Template_div_scroll_4_listener(te){return ne.onScroll(te)})),le.j41(6,"ul",6,7),le.DNE(8,TabView_ng_template_8_Template,1,1,"ng-template",8),le.nrm(9,"li",9,10),le.k0s()(),le.DNE(11,TabView_button_11_Template,4,4,"button",11),le.k0s(),le.j41(12,"div",12),le.SdG(13),le.k0s()()),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngClass",le.eq3(11,_c8,ne.scrollable))("ngStyle",ne.style),le.BMQ("data-pc-name","tabview"),le.R7$(3),le.Y8G("ngIf",ne.scrollable&&!ne.backwardIsDisabled&&ne.autoHideButtons),le.R7$(),le.BMQ("data-pc-section","navcontent"),le.R7$(2),le.BMQ("data-pc-section","nav"),le.R7$(2),le.Y8G("ngForOf",ne.tabs),le.R7$(),le.BMQ("data-pc-section","inkbar"),le.R7$(2),le.Y8G("ngIf",ne.scrollable&&!ne.forwardIsDisabled&&ne.buttonVisible))},dependencies:()=>[re.YU,re.Sq,re.bT,re.T3,re.B3,_e.m,fe.n,ge.A,ue.Y,me.v],styles:["@layer primeng{.p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain auto}.p-tabview-nav{display:inline-flex;min-width:100%;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}}\n"],encapsulation:2,changeDetection:0})}return TabView})(),Re=(()=>{class TabViewModule{static ɵfac=function TabViewModule_Factory(te){return new(te||TabViewModule)};static ɵmod=le.$C({type:TabViewModule});static ɵinj=le.G2t({imports:[re.MD,ce.Gg,_e.S,fe.Z,ge.A,ue.Y,me.v,ce.Gg]})}return TabViewModule})()},7760:(te,ne,ie)=>{"use strict";ie.d(ne,{$:()=>me,v:()=>ue});var re=ie(4460),le=ie(3107),ce=ie(3828);function Tag_ng_container_2_span_1_Template(te,ne){if(1&te&&le.nrm(0,"span",5),2&te){const te=le.XpG(2);le.Y8G("ngClass",te.icon)}}function Tag_ng_container_2_Template(te,ne){if(1&te&&(le.qex(0),le.DNE(1,Tag_ng_container_2_span_1_Template,1,1,"span",4),le.bVm()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngIf",te.icon)}}function Tag_span_3_1_ng_template_0_Template(te,ne){}function Tag_span_3_1_Template(te,ne){1&te&&le.DNE(0,Tag_span_3_1_ng_template_0_Template,0,0,"ng-template")}function Tag_span_3_Template(te,ne){if(1&te&&(le.j41(0,"span",6),le.DNE(1,Tag_span_3_1_Template,1,0,null,7),le.k0s()),2&te){const te=le.XpG();le.R7$(),le.Y8G("ngTemplateOutlet",te.iconTemplate)}}const de=["*"];let ue=(()=>{class Tag{cd;get style(){return this._style}set style(te){this._style=te,this.cd.markForCheck()}styleClass;severity;value;icon;rounded;templates;iconTemplate;_style;ngAfterContentInit(){this.templates?.forEach((te=>{if("icon"===te.getType())this.iconTemplate=te.template}))}constructor(te){this.cd=te}containerClass(){return{"p-tag p-component":!0,[`p-tag-${this.severity}`]:this.severity,"p-tag-rounded":this.rounded}}static ɵfac=function Tag_Factory(te){return new(te||Tag)(le.rXU(le.gRc))};static ɵcmp=le.VBU({type:Tag,selectors:[["p-tag"]],contentQueries:function Tag_ContentQueries(te,ne,ie){if(1&te&&le.wni(ie,ce.Ei,4),2&te){let te;le.mGM(te=le.lsd())&&(ne.templates=te)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",severity:"severity",value:"value",icon:"icon",rounded:[le.Mj6.HasDecoratorInputTransform,"rounded","rounded",le.L39]},features:[le.GFd],ngContentSelectors:de,decls:6,vars:7,consts:[[3,"ngClass","ngStyle"],[4,"ngIf"],["class","p-tag-icon",4,"ngIf"],[1,"p-tag-value"],["class","p-tag-icon",3,"ngClass",4,"ngIf"],[1,"p-tag-icon",3,"ngClass"],[1,"p-tag-icon"],[4,"ngTemplateOutlet"]],template:function Tag_Template(te,ne){1&te&&(le.NAR(),le.j41(0,"span",0),le.SdG(1),le.DNE(2,Tag_ng_container_2_Template,2,1,"ng-container",1)(3,Tag_span_3_Template,2,1,"span",2),le.j41(4,"span",3),le.EFF(5),le.k0s()()),2&te&&(le.HbH(ne.styleClass),le.Y8G("ngClass",ne.containerClass())("ngStyle",ne.style),le.R7$(2),le.Y8G("ngIf",!ne.iconTemplate),le.R7$(),le.Y8G("ngIf",ne.iconTemplate),le.R7$(2),le.JRh(ne.value))},dependencies:[re.YU,re.bT,re.T3,re.B3],styles:["@layer primeng{.p-tag{display:inline-flex;align-items:center;justify-content:center}.p-tag-icon,.p-tag-value,.p-tag-icon.pi{line-height:1.5}.p-tag.p-tag-rounded{border-radius:10rem}}\n"],encapsulation:2,changeDetection:0})}return Tag})(),me=(()=>{class TagModule{static ɵfac=function TagModule_Factory(te){return new(te||TagModule)};static ɵmod=le.$C({type:TagModule});static ɵinj=le.G2t({imports:[re.MD,ce.Gg,ce.Gg]})}return TagModule})()},5328:(te,ne,ie)=>{"use strict";ie.d(ne,{y8:()=>xe,MB:()=>Ee});var re=ie(1204),le=ie(4460),ce=ie(3107),de=ie(3828),ue=ie(7825),me=ie(1196),ge=ie(1939);let fe=(()=>{class ExclamationTriangleIcon extends me.h{pathId;ngOnInit(){this.pathId="url(#"+(0,ge._Y)()+")"}static ɵfac=(()=>{let te;return function ExclamationTriangleIcon_Factory(ne){return(te||(te=ce.xGo(ExclamationTriangleIcon)))(ne||ExclamationTriangleIcon)}})();static ɵcmp=ce.VBU({type:ExclamationTriangleIcon,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[ce.Vt3,ce.aNF],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function ExclamationTriangleIcon_Template(te,ne){1&te&&(ce.qSk(),ce.j41(0,"svg",0)(1,"g"),ce.nrm(2,"path",1)(3,"path",2)(4,"path",3),ce.k0s(),ce.j41(5,"defs")(6,"clipPath",4),ce.nrm(7,"rect",5),ce.k0s()()()),2&te&&(ce.HbH(ne.getClassNames()),ce.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),ce.R7$(),ce.BMQ("clip-path",ne.pathId),ce.R7$(5),ce.Y8G("id",ne.pathId))},encapsulation:2})}return ExclamationTriangleIcon})(),_e=(()=>{class InfoCircleIcon extends me.h{pathId;ngOnInit(){this.pathId="url(#"+(0,ge._Y)()+")"}static ɵfac=(()=>{let te;return function InfoCircleIcon_Factory(ne){return(te||(te=ce.xGo(InfoCircleIcon)))(ne||InfoCircleIcon)}})();static ɵcmp=ce.VBU({type:InfoCircleIcon,selectors:[["InfoCircleIcon"]],standalone:!0,features:[ce.Vt3,ce.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function InfoCircleIcon_Template(te,ne){1&te&&(ce.qSk(),ce.j41(0,"svg",0)(1,"g"),ce.nrm(2,"path",1),ce.k0s(),ce.j41(3,"defs")(4,"clipPath",2),ce.nrm(5,"rect",3),ce.k0s()()()),2&te&&(ce.HbH(ne.getClassNames()),ce.BMQ("aria-label",ne.ariaLabel)("aria-hidden",ne.ariaHidden)("role",ne.role),ce.R7$(),ce.BMQ("clip-path",ne.pathId),ce.R7$(3),ce.Y8G("id",ne.pathId))},encapsulation:2})}return InfoCircleIcon})();var be=ie(239),Ce=ie(8471),ye=ie(1646),we=ie(5724);const ke=["container"];function ToastItem_ng_container_2_ng_container_1_Template(te,ne){1&te&&ce.eu8(0)}const _c1=(te,ne)=>({$implicit:te,closeFn:ne});function ToastItem_ng_container_2_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ToastItem_ng_container_2_ng_container_1_Template,1,0,"ng-container",4),ce.bVm()),2&te){const te=ce.XpG();ce.R7$(),ce.Y8G("ngTemplateOutlet",te.headlessTemplate)("ngTemplateOutletContext",ce.l_i(2,_c1,te.message,te.onCloseIconClick))}}function ToastItem_ng_template_3_ng_container_1_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span"),2&te){const te=ce.XpG(3);ce.HbH("p-toast-message-icon pi "+te.message.icon)}}function ToastItem_ng_template_3_ng_container_1_span_2_CheckIcon_2_Template(te,ne){1&te&&ce.nrm(0,"CheckIcon"),2&te&&ce.BMQ("aria-hidden",!0)("data-pc-section","icon")}function ToastItem_ng_template_3_ng_container_1_span_2_InfoCircleIcon_3_Template(te,ne){1&te&&ce.nrm(0,"InfoCircleIcon"),2&te&&ce.BMQ("aria-hidden",!0)("data-pc-section","icon")}function ToastItem_ng_template_3_ng_container_1_span_2_TimesCircleIcon_4_Template(te,ne){1&te&&ce.nrm(0,"TimesCircleIcon"),2&te&&ce.BMQ("aria-hidden",!0)("data-pc-section","icon")}function ToastItem_ng_template_3_ng_container_1_span_2_ExclamationTriangleIcon_5_Template(te,ne){1&te&&ce.nrm(0,"ExclamationTriangleIcon"),2&te&&ce.BMQ("aria-hidden",!0)("data-pc-section","icon")}function ToastItem_ng_template_3_ng_container_1_span_2_Template(te,ne){if(1&te&&(ce.j41(0,"span",13),ce.qex(1),ce.DNE(2,ToastItem_ng_template_3_ng_container_1_span_2_CheckIcon_2_Template,1,2,"CheckIcon",6)(3,ToastItem_ng_template_3_ng_container_1_span_2_InfoCircleIcon_3_Template,1,2,"InfoCircleIcon",6)(4,ToastItem_ng_template_3_ng_container_1_span_2_TimesCircleIcon_4_Template,1,2,"TimesCircleIcon",6)(5,ToastItem_ng_template_3_ng_container_1_span_2_ExclamationTriangleIcon_5_Template,1,2,"ExclamationTriangleIcon",6),ce.bVm(),ce.k0s()),2&te){const te=ce.XpG(3);ce.BMQ("aria-hidden",!0)("data-pc-section","icon"),ce.R7$(2),ce.Y8G("ngIf","success"===te.message.severity),ce.R7$(),ce.Y8G("ngIf","info"===te.message.severity),ce.R7$(),ce.Y8G("ngIf","error"===te.message.severity),ce.R7$(),ce.Y8G("ngIf","warn"===te.message.severity)}}function ToastItem_ng_template_3_ng_container_1_Template(te,ne){if(1&te&&(ce.qex(0),ce.DNE(1,ToastItem_ng_template_3_ng_container_1_span_1_Template,1,2,"span",8)(2,ToastItem_ng_template_3_ng_container_1_span_2_Template,6,6,"span",9),ce.j41(3,"div",10)(4,"div",11),ce.EFF(5),ce.k0s(),ce.j41(6,"div",12),ce.EFF(7),ce.k0s()(),ce.bVm()),2&te){const te=ce.XpG(2);ce.R7$(),ce.Y8G("ngIf",te.message.icon),ce.R7$(),ce.Y8G("ngIf",!te.message.icon),ce.R7$(),ce.BMQ("data-pc-section","text"),ce.R7$(),ce.BMQ("data-pc-section","summary"),ce.R7$(),ce.JRh(te.message.summary),ce.R7$(),ce.BMQ("data-pc-section","detail"),ce.R7$(),ce.JRh(te.message.detail)}}function ToastItem_ng_template_3_ng_container_2_Template(te,ne){1&te&&ce.eu8(0)}function ToastItem_ng_template_3_button_3_span_1_Template(te,ne){if(1&te&&ce.nrm(0,"span"),2&te){const te=ce.XpG(3);ce.HbH("pt-1 text-base p-toast-message-icon pi "+te.message.closeIcon)}}function ToastItem_ng_template_3_button_3_TimesIcon_2_Template(te,ne){1&te&&ce.nrm(0,"TimesIcon",16),2&te&&(ce.Y8G("styleClass","p-toast-icon-close-icon"),ce.BMQ("aria-hidden",!0)("data-pc-section","closeicon"))}function ToastItem_ng_template_3_button_3_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"button",14),ce.bIt("click",(function ToastItem_ng_template_3_button_3_Template_button_click_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onCloseIconClick(ne))}))("keydown.enter",(function ToastItem_ng_template_3_button_3_Template_button_keydown_enter_0_listener(ne){ce.eBV(te);const ie=ce.XpG(2);return ce.Njj(ie.onCloseIconClick(ne))})),ce.DNE(1,ToastItem_ng_template_3_button_3_span_1_Template,1,2,"span",8)(2,ToastItem_ng_template_3_button_3_TimesIcon_2_Template,1,3,"TimesIcon",15),ce.k0s()}if(2&te){const te=ce.XpG(2);ce.BMQ("aria-label",te.closeAriaLabel)("data-pc-section","closebutton"),ce.R7$(),ce.Y8G("ngIf",te.message.closeIcon),ce.R7$(),ce.Y8G("ngIf",!te.message.closeIcon)}}const _c2=te=>({$implicit:te});function ToastItem_ng_template_3_Template(te,ne){if(1&te&&(ce.j41(0,"div",5),ce.DNE(1,ToastItem_ng_template_3_ng_container_1_Template,8,7,"ng-container",6)(2,ToastItem_ng_template_3_ng_container_2_Template,1,0,"ng-container",4)(3,ToastItem_ng_template_3_button_3_Template,3,4,"button",7),ce.k0s()),2&te){const te=ce.XpG();ce.Y8G("ngClass",null==te.message?null:te.message.contentStyleClass),ce.BMQ("data-pc-section","content"),ce.R7$(),ce.Y8G("ngIf",!te.template),ce.R7$(),ce.Y8G("ngTemplateOutlet",te.template)("ngTemplateOutletContext",ce.eq3(6,_c2,te.message)),ce.R7$(),ce.Y8G("ngIf",!1!==(null==te.message?null:te.message.closable))}}const _c3=te=>[te,"p-toast-message"],_c4=(te,ne,ie,re)=>({showTransformParams:te,hideTransformParams:ne,showTransitionParams:ie,hideTransitionParams:re}),_c5=te=>({value:"visible",params:te});function Toast_p_toastItem_2_Template(te,ne){if(1&te){const te=ce.RV6();ce.j41(0,"p-toastItem",3),ce.bIt("onClose",(function Toast_p_toastItem_2_Template_p_toastItem_onClose_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onMessageClose(ne))}))("@toastAnimation.start",(function Toast_p_toastItem_2_Template_p_toastItem_animation_toastAnimation_start_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onAnimationStart(ne))}))("@toastAnimation.done",(function Toast_p_toastItem_2_Template_p_toastItem_animation_toastAnimation_done_0_listener(ne){ce.eBV(te);const ie=ce.XpG();return ce.Njj(ie.onAnimationEnd(ne))})),ce.k0s()}if(2&te){const te=ne.$implicit,ie=ne.index,re=ce.XpG();ce.Y8G("message",te)("index",ie)("life",re.life)("template",re.template)("headlessTemplate",re.headlessTemplate)("@toastAnimation",void 0)("showTransformOptions",re.showTransformOptions)("hideTransformOptions",re.hideTransformOptions)("showTransitionOptions",re.showTransitionOptions)("hideTransitionOptions",re.hideTransitionOptions)}}let Se=(()=>{class ToastItem{zone;config;message;index;life;template;headlessTemplate;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;onClose=new ce.bkB;containerViewChild;timeout;constructor(te,ne){this.zone=te,this.config=ne}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message?.sticky||this.zone.runOutsideAngular((()=>{this.timeout=setTimeout((()=>{this.onClose.emit({index:this.index,message:this.message})}),this.message?.life||this.life||3e3)}))}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick=te=>{this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),te.preventDefault()};get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}ngOnDestroy(){this.clearTimeout()}static ɵfac=function ToastItem_Factory(te){return new(te||ToastItem)(ce.rXU(ce.SKi),ce.rXU(de.r1))};static ɵcmp=ce.VBU({type:ToastItem,selectors:[["p-toastItem"]],viewQuery:function ToastItem_Query(te,ne){if(1&te&&ce.GBs(ke,5),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.containerViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:[ce.Mj6.HasDecoratorInputTransform,"index","index",ce.Udg],life:[ce.Mj6.HasDecoratorInputTransform,"life","life",ce.Udg],template:"template",headlessTemplate:"headlessTemplate",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},features:[ce.GFd],decls:5,vars:18,consts:[["role","alert","aria-live","assertive","aria-atomic","true",3,"ngClass","mouseenter","mouseleave"],["container",""],[4,"ngIf","ngIfElse"],["notHeadless",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"class",4,"ngIf"],["class","p-toast-message-icon",4,"ngIf"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],[1,"p-toast-message-icon"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function ToastItem_Template(te,ne){if(1&te&&(ce.j41(0,"div",0,1),ce.bIt("mouseenter",(function ToastItem_Template_div_mouseenter_0_listener(){return ne.onMouseEnter()}))("mouseleave",(function ToastItem_Template_div_mouseleave_0_listener(){return ne.onMouseLeave()})),ce.DNE(2,ToastItem_ng_container_2_Template,2,5,"ng-container",2)(3,ToastItem_ng_template_3_Template,4,8,"ng-template",null,3,ce.C5r),ce.k0s()),2&te){const te=ce.sdS(4);ce.HbH(null==ne.message?null:ne.message.styleClass),ce.Y8G("ngClass",ce.eq3(9,_c3,"p-toast-message-"+(null==ne.message?null:ne.message.severity)))("@messageState",ce.eq3(16,_c5,ce.ziG(11,_c4,ne.showTransformOptions,ne.hideTransformOptions,ne.showTransitionOptions,ne.hideTransitionOptions))),ce.BMQ("id",null==ne.message?null:ne.message.id)("data-pc-name","toast")("data-pc-section","root"),ce.R7$(2),ce.Y8G("ngIf",ne.headlessTemplate)("ngIfElse",te)}},dependencies:()=>[le.YU,le.bT,le.T3,ye.n,ue.S,_e,Ce.I,fe,be.A],encapsulation:2,data:{animation:[(0,re.hZ)("messageState",[(0,re.wk)("visible",(0,re.iF)({transform:"translateY(0)",opacity:1})),(0,re.kY)("void => *",[(0,re.iF)({transform:"{{showTransformParams}}",opacity:0}),(0,re.i0)("{{showTransitionParams}}")]),(0,re.kY)("* => void",[(0,re.i0)("{{hideTransitionParams}}",(0,re.iF)({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0})}return ToastItem})(),xe=(()=>{class Toast{document;renderer;messageService;cd;config;key;autoZIndex=!0;baseZIndex=0;life=3e3;style;styleClass;get position(){return this._position}set position(te){this._position=te,this.cd.markForCheck()}preventOpenDuplicates=!1;preventDuplicates=!1;showTransformOptions="translateY(100%)";hideTransformOptions="translateY(-100%)";showTransitionOptions="300ms ease-out";hideTransitionOptions="250ms ease-in";breakpoints;onClose=new ce.bkB;containerViewChild;templates;messageSubscription;clearSubscription;messages;messagesArchieve;template;headlessTemplate;_position="top-right";constructor(te,ne,ie,re,le){this.document=te,this.renderer=ne,this.messageService=ie,this.cd=re,this.config=le}styleElement;id=(0,ge._Y)();ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe((te=>{if(te)if(Array.isArray(te)){const ne=te.filter((te=>this.canAdd(te)));this.add(ne)}else this.canAdd(te)&&this.add([te])})),this.clearSubscription=this.messageService.clearObserver.subscribe((te=>{te?this.key===te&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(te){this.messages=this.messages?[...this.messages,...te]:[...te],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...te]:[...te]),this.cd.markForCheck()}canAdd(te){let ne=this.key===te.key;return ne&&this.preventOpenDuplicates&&(ne=!this.containsMessage(this.messages,te)),ne&&this.preventDuplicates&&(ne=!this.containsMessage(this.messagesArchieve,te)),ne}containsMessage(te,ne){return!!te&&null!=te.find((te=>te.summary===ne.summary&&te.detail==ne.detail&&te.severity===ne.severity))}ngAfterContentInit(){this.templates?.forEach((te=>{switch(te.getType()){case"message":default:this.template=te.template;break;case"headless":this.headlessTemplate=te.template}}))}onMessageClose(te){this.messages?.splice(te.index,1),this.onClose.emit({message:te.message}),this.cd.detectChanges()}onAnimationStart(te){"void"===te.fromState&&(this.renderer.setAttribute(this.containerViewChild?.nativeElement,this.id,""),this.autoZIndex&&""===this.containerViewChild?.nativeElement.style.zIndex&&ge.Q$.set("modal",this.containerViewChild?.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(te){"void"===te.toState&&this.autoZIndex&&ge.BF.isEmpty(this.messages)&&ge.Q$.clear(this.containerViewChild?.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",we.D.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let te="";for(let ne in this.breakpoints){let ie="";for(let te in this.breakpoints[ne])ie+=te+":"+this.breakpoints[ne][te]+" !important;";te+=`\n                    @media screen and (max-width: ${ne}) {\n                        .p-toast[${this.id}] {\n                           ${ie}\n                        }\n                    }\n                `}this.renderer.setProperty(this.styleElement,"innerHTML",te)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&ge.Q$.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}static ɵfac=function Toast_Factory(te){return new(te||Toast)(ce.rXU(le.qQ),ce.rXU(ce.sFG),ce.rXU(de.bg),ce.rXU(ce.gRc),ce.rXU(de.r1))};static ɵcmp=ce.VBU({type:Toast,selectors:[["p-toast"]],contentQueries:function Toast_ContentQueries(te,ne,ie){if(1&te&&ce.wni(ie,de.Ei,4),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.templates=te)}},viewQuery:function Toast_Query(te,ne){if(1&te&&ce.GBs(ke,5),2&te){let te;ce.mGM(te=ce.lsd())&&(ne.containerViewChild=te.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:[ce.Mj6.HasDecoratorInputTransform,"autoZIndex","autoZIndex",ce.L39],baseZIndex:[ce.Mj6.HasDecoratorInputTransform,"baseZIndex","baseZIndex",ce.Udg],life:[ce.Mj6.HasDecoratorInputTransform,"life","life",ce.Udg],style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:[ce.Mj6.HasDecoratorInputTransform,"preventOpenDuplicates","preventOpenDuplicates",ce.L39],preventDuplicates:[ce.Mj6.HasDecoratorInputTransform,"preventDuplicates","preventDuplicates",ce.L39],showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},features:[ce.GFd],decls:3,vars:5,consts:[[1,"p-toast","p-component",3,"ngClass","ngStyle"],["container",""],[3,"message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:function Toast_Template(te,ne){1&te&&(ce.j41(0,"div",0,1),ce.DNE(2,Toast_p_toastItem_2_Template,1,10,"p-toastItem",2),ce.k0s()),2&te&&(ce.HbH(ne.styleClass),ce.Y8G("ngClass","p-toast-"+ne._position)("ngStyle",ne.style),ce.R7$(2),ce.Y8G("ngForOf",ne.messages))},dependencies:[le.YU,le.Sq,le.B3,Se],styles:["@layer primeng{.p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;flex:none}.p-toast-icon-close.p-link{cursor:pointer}}\n"],encapsulation:2,data:{animation:[(0,re.hZ)("toastAnimation",[(0,re.kY)(":enter, :leave",[(0,re.P)("@*",(0,re.MA)())])])]},changeDetection:0})}return Toast})(),Ee=(()=>{class ToastModule{static ɵfac=function ToastModule_Factory(te){return new(te||ToastModule)};static ɵmod=ce.$C({type:ToastModule});static ɵinj=ce.G2t({imports:[le.MD,ye.Z,ue.S,_e,Ce.I,fe,be.A,de.Gg]})}return ToastModule})()},4613:(te,ne,ie)=>{"use strict";ie.d(ne,{S:()=>ge,m:()=>me});var re=ie(4460),le=ie(3107),ce=ie(5724),de=ie(1939),ue=ie(3828);let me=(()=>{class Tooltip{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(te){this._disabled=te,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:(0,de._Y)()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;interactionInProgress=!1;constructor(te,ne,ie,re,le,ce){this.platformId=te,this.el=ne,this.zone=ie,this.config=re,this.renderer=le,this.viewContainer=ce}ngAfterViewInit(){(0,re.UE)(this.platformId)&&this.zone.runOutsideAngular((()=>{const te=this.getOption("tooltipEvent");if("hover"!==te&&"both"!==te||(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),"focus"===te||"both"===te){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let te=this.el.nativeElement.querySelector(".p-component");te||(te=this.getTarget(this.el.nativeElement)),te.addEventListener("focus",this.focusListener),te.addEventListener("blur",this.blurListener)}}))}ngOnChanges(te){te.tooltipPosition&&this.setOption({tooltipPosition:te.tooltipPosition.currentValue}),te.tooltipEvent&&this.setOption({tooltipEvent:te.tooltipEvent.currentValue}),te.appendTo&&this.setOption({appendTo:te.appendTo.currentValue}),te.positionStyle&&this.setOption({positionStyle:te.positionStyle.currentValue}),te.tooltipStyleClass&&this.setOption({tooltipStyleClass:te.tooltipStyleClass.currentValue}),te.tooltipZIndex&&this.setOption({tooltipZIndex:te.tooltipZIndex.currentValue}),te.escape&&this.setOption({escape:te.escape.currentValue}),te.showDelay&&this.setOption({showDelay:te.showDelay.currentValue}),te.hideDelay&&this.setOption({hideDelay:te.hideDelay.currentValue}),te.life&&this.setOption({life:te.life.currentValue}),te.positionTop&&this.setOption({positionTop:te.positionTop.currentValue}),te.positionLeft&&this.setOption({positionLeft:te.positionLeft.currentValue}),te.disabled&&this.setOption({disabled:te.disabled.currentValue}),te.content&&(this.setOption({tooltipLabel:te.content.currentValue}),this.active&&(te.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),te.autoHide&&this.setOption({autoHide:te.autoHide.currentValue}),te.id&&this.setOption({id:te.id.currentValue}),te.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...te.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(te){this.container||this.showTimeout||this.activate()}onMouseLeave(te){if(this.isAutoHide())this.deactivate();else{!(ce.D.hasClass(te.relatedTarget,"p-tooltip")||ce.D.hasClass(te.relatedTarget,"p-tooltip-text")||ce.D.hasClass(te.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}}onFocus(te){this.activate()}onBlur(te){this.deactivate()}onInputClick(te){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(!this.interactionInProgress&&(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout((()=>{this.show()}),this.getOption("showDelay")):this.show(),this.getOption("life"))){let te=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout((()=>{this.hide()}),te)}this.interactionInProgress=!0}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout((()=>{this.hide()}),this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let te=document.createElement("div");te.className="p-tooltip-arrow",this.container.appendChild(te),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?ce.D.appendChild(this.container,this.el.nativeElement):ce.D.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){const te=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(te,"mouseleave",(te=>{this.deactivate()}))}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create();this.el.nativeElement.closest("p-dialog")?setTimeout((()=>{this.container&&this.align()}),100):this.align(),ce.D.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?de.Q$.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){"auto"===this.getOption("tooltipZIndex")&&de.Q$.clear(this.container),this.remove()}updateText(){const te=this.getOption("tooltipLabel");if(te instanceof le.C4Q){const ne=this.viewContainer.createEmbeddedView(te);ne.detectChanges(),ne.rootNodes.forEach((te=>this.tooltipText.appendChild(te)))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(te))):this.tooltipText.innerHTML=te}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let te=this.el.nativeElement.getBoundingClientRect();return{left:te.left+ce.D.getWindowScrollLeft(),top:te.top+ce.D.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");const te=this.activeElement,ne=this.getHostOffset(),ie=ne.left+ce.D.getOuterWidth(te),re=ne.top+(ce.D.getOuterHeight(te)-ce.D.getOuterHeight(this.container))/2;this.container.style.left=ie+this.getOption("positionLeft")+"px",this.container.style.top=re+this.getOption("positionTop")+"px"}get activeElement(){return this.el.nativeElement.nodeName.includes("P-")&&ce.D.findSingle(this.el.nativeElement,".p-component")||this.el.nativeElement}alignLeft(){this.preAlign("left");let te=this.getHostOffset(),ne=te.left-ce.D.getOuterWidth(this.container),ie=te.top+(ce.D.getOuterHeight(this.el.nativeElement)-ce.D.getOuterHeight(this.container))/2;this.container.style.left=ne+this.getOption("positionLeft")+"px",this.container.style.top=ie+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let te=this.getHostOffset(),ne=te.left+(ce.D.getOuterWidth(this.el.nativeElement)-ce.D.getOuterWidth(this.container))/2,ie=te.top-ce.D.getOuterHeight(this.container);this.container.style.left=ne+this.getOption("positionLeft")+"px",this.container.style.top=ie+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let te=this.getHostOffset(),ne=te.left+(ce.D.getOuterWidth(this.el.nativeElement)-ce.D.getOuterWidth(this.container))/2,ie=te.top+ce.D.getOuterHeight(this.el.nativeElement);this.container.style.left=ne+this.getOption("positionLeft")+"px",this.container.style.top=ie+this.getOption("positionTop")+"px"}setOption(te){this._tooltipOptions={...this._tooltipOptions,...te}}getOption(te){return this._tooltipOptions[te]}getTarget(te){return ce.D.hasClass(te,"p-inputwrapper")?ce.D.findSingle(te,"input"):te}preAlign(te){this.container.style.left="-999px",this.container.style.top="-999px";let ne="p-tooltip p-component p-tooltip-"+te;this.container.className=this.getOption("tooltipStyleClass")?ne+" "+this.getOption("tooltipStyleClass"):ne}isOutOfBounds(){let te=this.container.getBoundingClientRect(),ne=te.top,ie=te.left,re=ce.D.getOuterWidth(this.container),le=ce.D.getOuterHeight(this.container),de=ce.D.getViewport();return ie+re>de.width||ie<0||ne<0||ne+le>de.height}onWindowResize(te){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular((()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)}))}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new ce.b(this.el.nativeElement,(()=>{this.container&&this.hide()}))),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){const te=this.getOption("tooltipEvent");if("hover"!==te&&"both"!==te||(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),"focus"===te||"both"===te){let te=this.el.nativeElement.querySelector(".p-component");te||(te=this.getTarget(this.el.nativeElement))}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):ce.D.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&de.Q$.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static ɵfac=function Tooltip_Factory(te){return new(te||Tooltip)(le.rXU(le.Agw),le.rXU(le.aKT),le.rXU(le.SKi),le.rXU(ue.r1),le.rXU(le.sFG),le.rXU(le.c1b))};static ɵdir=le.FsC({type:Tooltip,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function Tooltip_HostBindings(te,ne){1&te&&le.bIt("keydown.escape",(function Tooltip_keydown_escape_HostBindingHandler(te){return ne.onPressEscape(te)}),!1,le.EBC)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[le.Mj6.HasDecoratorInputTransform,"escape","escape",le.L39],showDelay:[le.Mj6.HasDecoratorInputTransform,"showDelay","showDelay",le.Udg],hideDelay:[le.Mj6.HasDecoratorInputTransform,"hideDelay","hideDelay",le.Udg],life:[le.Mj6.HasDecoratorInputTransform,"life","life",le.Udg],positionTop:[le.Mj6.HasDecoratorInputTransform,"positionTop","positionTop",le.Udg],positionLeft:[le.Mj6.HasDecoratorInputTransform,"positionLeft","positionLeft",le.Udg],autoHide:[le.Mj6.HasDecoratorInputTransform,"autoHide","autoHide",le.L39],fitContent:[le.Mj6.HasDecoratorInputTransform,"fitContent","fitContent",le.L39],hideOnEscape:[le.Mj6.HasDecoratorInputTransform,"hideOnEscape","hideOnEscape",le.L39],content:[le.Mj6.None,"pTooltip","content"],disabled:[le.Mj6.None,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[le.GFd,le.OA$]})}return Tooltip})(),ge=(()=>{class TooltipModule{static ɵfac=function TooltipModule_Factory(te){return new(te||TooltipModule)};static ɵmod=le.$C({type:TooltipModule});static ɵinj=le.G2t({imports:[re.MD]})}return TooltipModule})()},1939:(te,ne,ie)=>{"use strict";ie.d(ne,{BF:()=>ObjectUtils,Q$:()=>le,_Y:()=>UniqueComponentId});class ObjectUtils{static isArray(te,ne=!0){return Array.isArray(te)&&(ne||0!==te.length)}static isObject(te,ne=!0){return"object"==typeof te&&!Array.isArray(te)&&null!=te&&(ne||0!==Object.keys(te).length)}static equals(te,ne,ie){return ie?this.resolveFieldData(te,ie)===this.resolveFieldData(ne,ie):this.equalsByValue(te,ne)}static equalsByValue(te,ne){if(te===ne)return!0;if(te&&ne&&"object"==typeof te&&"object"==typeof ne){var ie,re,le,ce=Array.isArray(te),de=Array.isArray(ne);if(ce&&de){if((re=te.length)!=ne.length)return!1;for(ie=re;0!=ie--;)if(!this.equalsByValue(te[ie],ne[ie]))return!1;return!0}if(ce!=de)return!1;var ue=this.isDate(te),me=this.isDate(ne);if(ue!=me)return!1;if(ue&&me)return te.getTime()==ne.getTime();var ge=te instanceof RegExp,fe=ne instanceof RegExp;if(ge!=fe)return!1;if(ge&&fe)return te.toString()==ne.toString();var _e=Object.keys(te);if((re=_e.length)!==Object.keys(ne).length)return!1;for(ie=re;0!=ie--;)if(!Object.prototype.hasOwnProperty.call(ne,_e[ie]))return!1;for(ie=re;0!=ie--;)if(le=_e[ie],!this.equalsByValue(te[le],ne[le]))return!1;return!0}return te!=te&&ne!=ne}static resolveFieldData(te,ne){if(te&&ne){if(this.isFunction(ne))return ne(te);if(-1==ne.indexOf("."))return te[ne];{let ie=ne.split("."),re=te;for(let te=0,ne=ie.length;te<ne;++te){if(null==re)return null;re=re[ie[te]]}return re}}return null}static isFunction(te){return!!(te&&te.constructor&&te.call&&te.apply)}static reorderArray(te,ne,ie){te&&ne!==ie&&(ie>=te.length&&(ie%=te.length,ne%=te.length),te.splice(ie,0,te.splice(ne,1)[0]))}static insertIntoOrderedArray(te,ne,ie,re){if(ie.length>0){let le=!1;for(let ce=0;ce<ie.length;ce++){if(this.findIndexInList(ie[ce],re)>ne){ie.splice(ce,0,te),le=!0;break}}le||ie.push(te)}else ie.push(te)}static findIndexInList(te,ne){let ie=-1;if(ne)for(let re=0;re<ne.length;re++)if(ne[re]==te){ie=re;break}return ie}static contains(te,ne){if(null!=te&&ne&&ne.length)for(let ie of ne)if(this.equals(te,ie))return!0;return!1}static removeAccents(te){return te&&(te=te.normalize("NFKD").replace(/\p{Diacritic}/gu,"")),te}static isDate(te){return"[object Date]"===Object.prototype.toString.call(te)}static isEmpty(te){return null==te||""===te||Array.isArray(te)&&0===te.length||!this.isDate(te)&&"object"==typeof te&&0===Object.keys(te).length}static isNotEmpty(te){return!this.isEmpty(te)}static compare(te,ne,ie,re=1){let le=-1;const ce=this.isEmpty(te),de=this.isEmpty(ne);return le=ce&&de?0:ce?re:de?-re:"string"==typeof te&&"string"==typeof ne?te.localeCompare(ne,ie,{numeric:!0}):te<ne?-1:te>ne?1:0,le}static sort(te,ne,ie=1,re,le=1){const ce=ObjectUtils.compare(te,ne,re,ie);let de=ie;return(ObjectUtils.isEmpty(te)||ObjectUtils.isEmpty(ne))&&(de=1===le?ie:le),de*ce}static merge(te,ne){if(null!=te||null!=ne)return null!=te&&"object"!=typeof te||null!=ne&&"object"!=typeof ne?null!=te&&"string"!=typeof te||null!=ne&&"string"!=typeof ne?ne||te:[te||"",ne||""].join(" "):{...te||{},...ne||{}}}static isPrintableCharacter(te=""){return this.isNotEmpty(te)&&1===te.length&&te.match(/\S| /)}static getItemValue(te,...ne){return this.isFunction(te)?te(...ne):te}static findLastIndex(te,ne){let ie=-1;if(this.isNotEmpty(te))try{ie=te.findLastIndex(ne)}catch{ie=te.lastIndexOf([...te].reverse().find(ne))}return ie}static findLast(te,ne){let ie;if(this.isNotEmpty(te))try{ie=te.findLast(ne)}catch{ie=[...te].reverse().find(ne)}return ie}static deepEquals(te,ne){if(te===ne)return!0;if(te&&ne&&"object"==typeof te&&"object"==typeof ne){var ie,re,le,ce=Array.isArray(te),de=Array.isArray(ne);if(ce&&de){if((re=te.length)!=ne.length)return!1;for(ie=re;0!=ie--;)if(!this.deepEquals(te[ie],ne[ie]))return!1;return!0}if(ce!=de)return!1;var ue=te instanceof Date,me=ne instanceof Date;if(ue!=me)return!1;if(ue&&me)return te.getTime()==ne.getTime();var ge=te instanceof RegExp,fe=ne instanceof RegExp;if(ge!=fe)return!1;if(ge&&fe)return te.toString()==ne.toString();var _e=Object.keys(te);if((re=_e.length)!==Object.keys(ne).length)return!1;for(ie=re;0!=ie--;)if(!Object.prototype.hasOwnProperty.call(ne,_e[ie]))return!1;for(ie=re;0!=ie--;)if(le=_e[ie],!this.deepEquals(te[le],ne[le]))return!1;return!0}return te!=te&&ne!=ne}}var re=0;function UniqueComponentId(te="pn_id_"){return`${te}${++re}`}var le=function ZIndexUtils(){let te=[];const getZIndex=te=>te&&parseInt(te.style.zIndex,10)||0;return{get:getZIndex,set:(ne,ie,re)=>{ie&&(ie.style.zIndex=String(((ne,ie)=>{let re=te.length>0?te[te.length-1]:{key:ne,value:ie},le=re.value+(re.key===ne?0:ie)+2;return te.push({key:ne,value:le}),le})(ne,re)))},clear:ne=>{var ie;ne&&(ie=getZIndex(ne),te=te.filter((te=>te.value!==ie)),ne.style.zIndex="")},getCurrent:()=>te.length>0?te[te.length-1].value:0}}()},3014:(te,ne,ie)=>{"use strict";function asyncGeneratorStep(te,ne,ie,re,le,ce,de){try{var ue=te[ce](de),me=ue.value}catch(te){return void ie(te)}ue.done?ne(me):Promise.resolve(me).then(re,le)}function _asyncToGenerator(te){return function(){var ne=this,ie=arguments;return new Promise((function(re,le){var ce=te.apply(ne,ie);function _next(te){asyncGeneratorStep(ce,re,le,_next,_throw,"next",te)}function _throw(te){asyncGeneratorStep(ce,re,le,_next,_throw,"throw",te)}_next(void 0)}))}}ie.d(ne,{A:()=>_asyncToGenerator})},1635:(te,ne,ie)=>{"use strict";ie.d(ne,{AQ:()=>__asyncGenerator,N3:()=>__await,sH:()=>__awaiter,xN:()=>__asyncValues});function __awaiter(te,ne,ie,re){return new(ie||(ie=Promise))((function(le,ce){function fulfilled(te){try{step(re.next(te))}catch(te){ce(te)}}function rejected(te){try{step(re.throw(te))}catch(te){ce(te)}}function step(te){te.done?le(te.value):function adopt(te){return te instanceof ie?te:new ie((function(ne){ne(te)}))}(te.value).then(fulfilled,rejected)}step((re=re.apply(te,ne||[])).next())}))}Object.create;function __values(te){var ne="function"==typeof Symbol&&Symbol.iterator,ie=ne&&te[ne],re=0;if(ie)return ie.call(te);if(te&&"number"==typeof te.length)return{next:function(){return te&&re>=te.length&&(te=void 0),{value:te&&te[re++],done:!te}}};throw new TypeError(ne?"Object is not iterable.":"Symbol.iterator is not defined.")}function __await(te){return this instanceof __await?(this.v=te,this):new __await(te)}function __asyncGenerator(te,ne,ie){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var re,le=ie.apply(te,ne||[]),ce=[];return re={},verb("next"),verb("throw"),verb("return"),re[Symbol.asyncIterator]=function(){return this},re;function verb(te){le[te]&&(re[te]=function(ne){return new Promise((function(ie,re){ce.push([te,ne,ie,re])>1||resume(te,ne)}))})}function resume(te,ne){try{!function step(te){te.value instanceof __await?Promise.resolve(te.value.v).then(fulfill,reject):settle(ce[0][2],te)}(le[te](ne))}catch(te){settle(ce[0][3],te)}}function fulfill(te){resume("next",te)}function reject(te){resume("throw",te)}function settle(te,ne){te(ne),ce.shift(),ce.length&&resume(ce[0][0],ce[0][1])}}function __asyncValues(te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ne,ie=te[Symbol.asyncIterator];return ie?ie.call(te):(te=__values(te),ne={},verb("next"),verb("throw"),verb("return"),ne[Symbol.asyncIterator]=function(){return this},ne);function verb(ie){ne[ie]=te[ie]&&function(ne){return new Promise((function(re,le){(function settle(te,ne,ie,re){Promise.resolve(re).then((function(ne){te({value:ne,done:ie})}),ne)})(re,le,(ne=te[ie](ne)).done,ne.value)}))}}}Object.create;"function"==typeof SuppressedError&&SuppressedError},8330:te=>{"use strict";te.exports={rE:"1.0.0"}}},te=>{var ne;ne=3635,te(te.s=ne)}]);