PageSourceSearch

https://www.cbcfd.com.br/13.e2ea5a182a43859e.js

js cbcfd.com.br collected 2026-10-04 03:57:08 UTC 77,365 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[13],{7013(It,se,p){p.d(se,{xt:()=>O,vr:()=>Dt,MQ:()=>St});var t=p(5547),u=p(5802),o=p(7705),c=p(2271),le=p(9417),ae=p(536),oe=p(6780);let N,re=1;const F={};function k(a){return a in F&&(delete F[a],!0)}const ue={setImmediate(a){const n=re++;return F[n]=!0,N||(N=Promise.resolve()),N.then(()=>k(n)&&a()),n},clearImmediate(a){k(a)}},{setImmediate:de,clearImmediate:ce}=ue,D={setImmediate(...a){const{delegate:n}=D;return(n?.setImmediate||de)(...a)},clearImmediate(a){const{delegate:n}=D;return(n?.clearImmediate||ce)(a)},delegate:void 0};var pe=p(9687);const me=new class ge extends pe.q{flush(n){this._active=!0;const s=this._scheduled;this._scheduled=void 0;const{actions:e}=this;let i;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while((n=e[0])&&n.id===s&&e.shift());if(this._active=!1,i){for(;(n=e[0])&&n.id===s&&e.shift();)n.unsubscribe();throw i}}}(class he extends oe.R{constructor(n,s){super(n,s),this.scheduler=n,this.work=s}requestAsyncId(n,s,e=0){return null!==e&&e>0?super.requestAsyncId(n,s,e):(n.actions.push(this),n._scheduled||(n._scheduled=D.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,s,e=0){var i;if(null!=e?e>0:this.delay>0)return super.recycleAsyncId(n,s,e);const{actions:l}=n;null!=s&&(null===(i=l[l.length-1])||void 0===i?void 0:i.id)!==s&&(D.clearImmediate(s),n._scheduled===s&&(n._scheduled=void 0))}});var S=p(3726),_e=p(1413),fe=p(3236),be=p(9974),ve=p(8750),M=p(4360),Te=p(1807);function x(a,n=fe.E){return function Ce(a){return(0,be.N)((n,s)=>{let e=!1,i=null,l=null,r=!1;const d=()=>{if(l?.unsubscribe(),l=null,e){e=!1;const m=i;i=null,s.next(m)}r&&s.complete()},h=()=>{l=null,r&&s.complete()};n.subscribe((0,M._)(s,m=>{e=!0,i=m,l||(0,ve.Tg)(a(m)).subscribe(l=(0,M._)(s,d,h))},()=>{r=!0,(!e||!l||l.closed)&&s.complete()}))})}(()=>(0,Te.O)(a,n))}var Ee=p(8141),Fe=p(152),De=p(5964),Se=p(6354),L=p(9769),T=p(9079);const Ae=["content"],Ie=["scroll"],we=["padding"],V=["*"],E=a=>({searchTerm:a});function ye(a,n){if(1&a&&(t.j41(0,"div",3),t.eu8(1,6),t.k0s()),2&a){const s=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",s.headerTemplate())("ngTemplateOutletContext",t.eq3(2,E,s.filterValue()))}}function Ne(a,n){if(1&a&&(t.j41(0,"div",5),t.eu8(1,6),t.k0s()),2&a){const s=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",s.footerTemplate())("ngTemplateOutletContext",t.eq3(2,E,s.filterValue()))}}const Be=["searchInput"],Oe=["clearButton"],ke=(a,n,s)=>({item:a,clear:n,label:s}),Me=(a,n)=>({items:a,clear:n}),xe=(a,n,s,e)=>({item:a,item$:n,index:s,searchTerm:e});function Le(a,n){if(1&a&&(t.j41(0,"div",21),t.EFF(1),t.k0s()),2&a){const s=t.XpG(2);t.R7$(),t.JRh(s.placeholder()??s.config.placeholder)}}function Ve(a,n){}function Pe(a,n){if(1&a&&t.DNE(0,Le,2,1,"ng-template",null,1,t.C5r)(2,Ve,0,0,"ng-template",20),2&a){const s=t.sdS(1),e=t.XpG();t.R7$(2),t.Y8G("ngTemplateOutlet",e.placeholderTemplate()||s)}}function Re(a,n){if(1&a){const s=t.RV6();t.j41(0,"span",24),t.bIt("click",function(){u.eBV(s);const i=t.XpG().$implicit,l=t.XpG(2);return u.Njj(l.unselect(i))}),t.EFF(1,"\xd7"),t.k0s(),t.nrm(2,"span",25)}if(2&a){const s=t.XpG().$implicit,e=t.XpG(2);t.R7$(2),t.Y8G("ngItemLabel",s.label)("escape",e.escapeHTML)}}function Ge(a,n){}function We(a,n){if(1&a&&(t.j41(0,"div",23),t.DNE(1,Re,3,2,"ng-template",null,2,t.C5r)(3,Ge,0,0,"ng-template",12),t.k0s()),2&a){const s=n.$implicit,e=t.sdS(2),i=t.XpG(2);t.AVh("ng-value-disabled",s.disabled),t.R7$(3),t.Y8G("ngTemplateOutlet",i.labelTemplate()||e)("ngTemplateOutletContext",t.sMw(4,ke,s.value,i.clearItem,s.label))}}function Qe(a,n){if(1&a&&t.Z7z(0,We,4,8,"div",22,t.BUC().trackByOption,!0),2&a){const s=t.XpG();t.Dyx(s.selectedItems)}}function Xe(a,n){}function je(a,n){if(1&a&&t.DNE(0,Xe,0,0,"ng-template",12),2&a){const s=t.XpG();t.Y8G("ngTemplateOutlet",s.multiLabelTemplate())("ngTemplateOutletContext",t.l_i(2,Me,s.selectedValues,s.clearItem))}}function He(a,n){1&a&&t.nrm(0,"div",26)}function ze(a,n){}function Ue(a,n){if(1&a&&t.DNE(0,He,1,0,"ng-template",null,3,t.C5r)(2,ze,0,0,"ng-template",20),2&a){const s=t.sdS(1),e=t.XpG();t.R7$(2),t.Y8G("ngTemplateOutlet",e.loadingSpinnerTemplate()||s)}}function Ke(a,n){if(1&a&&t.eu8(0,20),2&a){const s=t.XpG(2);t.Y8G("ngTemplateOutlet",s.clearButtonTemplate())}}function $e(a,n){1&a&&(t.j41(0,"span",28),t.EFF(1,"\xd7"),t.k0s())}function Ye(a,n){if(1&a){const s=t.RV6();t.j41(0,"span",27,4),t.bIt("click",function(i){u.eBV(s);const l=t.XpG();return u.Njj(l.handleClearClick(i))}),t.nVh(2,Ke,1,1,"ng-container",20)(3,$e,2,0,"span",28),t.k0s()}if(2&a){const s=t.XpG();t.Y8G("title",t.mNQ(s.clearAllText()||s.config.clearAllText)),t.BMQ("tabindex",s.tabFocusOnClear()?0:-1),t.R7$(2),t.vxM(s.clearButtonTemplate()?2:3)}}function Ze(a,n){if(1&a&&t.nrm(0,"span",33),2&a){const s=t.XpG().$implicit,e=t.XpG(2);t.Y8G("ngItemLabel",s.label)("escape",e.escapeHTML)}}
1function Je(a,n){}function qe(a,n){if(1&a){const s=t.RV6();t.j41(0,"div",32),t.bIt("click",function(){const i=u.eBV(s).$implicit,l=t.XpG(2);return u.Njj(l.toggleItem(i))})("mouseover",function(){const i=u.eBV(s).$implicit,l=t.XpG(2);return u.Njj(l.onItemHover(i))}),t.DNE(1,Ze,1,2,"ng-template",null,5,t.C5r)(3,Je,0,0,"ng-template",12),t.k0s()}if(2&a){const s=n.$implicit,e=t.sdS(2),i=t.XpG(2);t.AVh("ng-option-disabled",s.disabled)("ng-option-selected",s.selected)("ng-optgroup",s.children)("ng-option",!s.children)("ng-option-child",!!s.parent)("ng-option-marked",s===i.itemsList.markedItem),t.BMQ("role",s.children?"group":"option")("aria-selected",s.selected)("id",null==s?null:s.htmlId)("aria-setsize",i.itemsList.filteredItems.length)("aria-posinset",s.index+1),t.R7$(3),t.Y8G("ngTemplateOutlet",s.children?i.optgroupTemplate()||e:i.optionTemplate()||e)("ngTemplateOutletContext",t.ziG(19,xe,s.value,s,s.index,i.searchTerm))}}function et(a,n){if(1&a&&(t.j41(0,"span")(1,"span",35),t.EFF(2),t.k0s(),t.EFF(3),t.k0s()),2&a){const s=t.XpG(3);t.R7$(2),t.JRh(s.addTagText()||s.config.addTagText),t.R7$(),t.SpI('"',s.searchTerm,'"')}}function tt(a,n){}function nt(a,n){if(1&a){const s=t.RV6();t.j41(0,"div",34),t.bIt("mouseover",function(){u.eBV(s);const i=t.XpG(2);return u.Njj(i.itemsList.unmarkItem())})("click",function(){u.eBV(s);const i=t.XpG(2);return u.Njj(i.selectTag())}),t.DNE(1,et,4,2,"ng-template",null,6,t.C5r)(3,tt,0,0,"ng-template",12),t.k0s()}if(2&a){const s=t.sdS(2),e=t.XpG(2);t.AVh("ng-option-marked",!e.itemsList.markedItem),t.BMQ("aria-selected",!1),t.R7$(3),t.Y8G("ngTemplateOutlet",e.tagTemplate()||s)("ngTemplateOutletContext",t.eq3(5,E,e.searchTerm))}}function it(a,n){if(1&a&&(t.j41(0,"div",36),t.EFF(1),t.k0s()),2&a){const s=t.XpG(3);t.R7$(),t.JRh(s.notFoundText()??s.config.notFoundText)}}function st(a,n){}function lt(a,n){if(1&a&&t.DNE(0,it,2,1,"ng-template",null,7,t.C5r)(2,st,0,0,"ng-template",12),2&a){const s=t.sdS(1),e=t.XpG(2);t.R7$(2),t.Y8G("ngTemplateOutlet",e.notFoundTemplate()||s)("ngTemplateOutletContext",t.eq3(2,E,e.searchTerm))}}function at(a,n){if(1&a&&(t.j41(0,"div",36),t.EFF(1),t.k0s()),2&a){const s=t.XpG(3);t.R7$(),t.JRh(s.typeToSearchText()||s.config.typeToSearchText)}}function ot(a,n){}function rt(a,n){if(1&a&&t.DNE(0,at,2,1,"ng-template",null,8,t.C5r)(2,ot,0,0,"ng-template",20),2&a){const s=t.sdS(1),e=t.XpG(2);t.R7$(2),t.Y8G("ngTemplateOutlet",e.typeToSearchTemplate()||s)}}function ut(a,n){if(1&a&&(t.j41(0,"div",36),t.EFF(1),t.k0s()),2&a){const s=t.XpG(3);t.R7$(),t.JRh(s.loadingText()||s.config.loadingText)}}function dt(a,n){}function ct(a,n){if(1&a&&t.DNE(0,ut,2,1,"ng-template",null,9,t.C5r)(2,dt,0,0,"ng-template",12),2&a){const s=t.sdS(1),e=t.XpG(2);t.R7$(2),t.Y8G("ngTemplateOutlet",e.loadingTextTemplate()||s)("ngTemplateOutletContext",t.eq3(2,E,e.searchTerm))}}function ht(a,n){if(1&a){const s=t.RV6();t.j41(0,"ng-dropdown-panel",29),t.bIt("update",function(i){u.eBV(s);const l=t.XpG();return u.Njj(l.viewPortItems=i)})("scroll",function(i){u.eBV(s);const l=t.XpG();return u.Njj(l.scroll.emit(i))})("scrollToEnd",function(i){u.eBV(s);const l=t.XpG();return u.Njj(l.scrollToEnd.emit(i))})("outsideClick",function(){u.eBV(s);const i=t.XpG();return u.Njj(i.close())}),t.qex(1),t.Z7z(2,qe,4,24,"div",30,t.BUC().trackByOption,!0),t.nVh(4,nt,4,7,"div",31),t.bVm(),t.nVh(5,lt,3,4),t.nVh(6,rt,3,1),t.nVh(7,ct,3,4),t.k0s()}if(2&a){const s=t.XpG(),e=s.appendTo()||s.config.appendTo;t.HbH(e?s.ngClass()?s.ngClass():s.classes:null),t.AVh("ng-select-multiple",s.multiple()),t.Y8G("virtualScroll",s.virtualScroll()??!s.config.disableVirtualScroll??!1)("bufferAmount",s.bufferAmount())("appendTo",e)("position",s.dropdownPosition())("outsideClickEvent",s.outsideClickEvent())("headerTemplate",s.headerTemplate())("footerTemplate",s.footerTemplate())("filterValue",s.searchTerm)("items",s.itemsList.filteredItems)("showAddTag",s.showAddTag)("markedItem",s.itemsList.markedItem)("id",s.dropdownId)("ariaLabelDropdown",s.ariaLabelDropdown()??s.config.ariaLabelDropdown)("popover",s.popover()),t.R7$(2),t.Dyx(s.viewPortItems),t.R7$(2),t.vxM(s.showAddTag?4:-1),t.R7$(),t.vxM(s.showNoItemsFound()?5:-1),t.R7$(),t.vxM(s.showTypeToSearch()?6:-1),t.R7$(),t.vxM(s.loading()&&0===s.itemsList.filteredItems.length?7:-1)}}function pt(a,n){if(1&a&&t.EFF(0),2&a){const s=t.XpG();t.SpI(" ",s.notFoundText()??s.config.notFoundText," ")}}const P=/[&<>"']/g,gt=RegExp(P.source),mt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};
1function g(a){return null!=a}function C(a){return"object"==typeof a&&g(a)}function A(a){return a instanceof Function}let bt=(()=>{var a;class n{constructor(){this.element=(0,u.WQX)(t.aKT),this.ngItemLabel=(0,o.hFB)(),this.escape=(0,o.hFB)(!0),(0,u.QZP)(()=>{this.element.nativeElement.innerHTML=this.escape()?function _t(a){return a&&gt.test(a)?a.replace(P,n=>mt[n]):a}(this.ngItemLabel()):this.ngItemLabel()})}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:[1,"ngItemLabel"],escape:[1,"escape"]}}))}return a(),n})(),R=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-option-tmp",""]]}))}return a(),n})(),G=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-optgroup-tmp",""]]}))}return a(),n})(),W=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-label-tmp",""]]}))}return a(),n})(),Q=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-multi-label-tmp",""]]}))}return a(),n})(),X=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-header-tmp",""]]}))}return a(),n})(),j=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-footer-tmp",""]]}))}return a(),n})(),H=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-notfound-tmp",""]]}))}return a(),n})(),z=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-placeholder-tmp",""]]}))}return a(),n})(),U=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-typetosearch-tmp",""]]}))}return a(),n})(),K=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-loadingtext-tmp",""]]}))}return a(),n})(),$=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-tag-tmp",""]]}))}return a(),n})(),Y=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-loadingspinner-tmp",""]]}))}return a(),n})(),Z=(()=>{var a;class n{constructor(){this.template=(0,u.WQX)(t.C4Q)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275dir=t.FsC({type:n,selectors:[["","ng-clearbutton-tmp",""]]}))}return a(),n})(),vt=(()=>{var a;class n{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.ariaLabelDropdown="Options List",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline",this.tabFocusOnClear=!0,this.outsideClickEvent="click"}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275prov=u.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}))}return a(),n})(),Ct=(()=>{var a;class n{warn(e){console.warn(e)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275prov=u.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}))}return a(),n})();function J(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const Tt={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34
1:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};
1function I(a){return a.replace(/[^\u0000-\u007E]/g,s=>Tt[s]||s)}class Et{constructor(n,s){this._ngSelect=n,this._selectionModel=s,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected()&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple()&&this._ngSelect.maxSelectedItems()<=this.selectedItems.length}get lastSelectedItem(){let n=this.selectedItems.length-1;for(;n>=0;n--){const s=this.selectedItems[n];if(!s.disabled)return s}return null}setItems(n){this._items=n.map((e,i)=>this.mapItem(e,i));const s=this._ngSelect.groupBy();s?(this._groups=this._groupBy(this._items,s),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(n){if(n.selected||this.maxItemsSelected)return;const s=this._ngSelect.multiple();s||this.clearSelected(!1),this._selectionModel.select(n,s,this._ngSelect.selectableGroupAsModel()),this._ngSelect.hideSelected()&&this._hideSelected(n)}unselect(n){if(!n.selected)return;const s=this._ngSelect.multiple();this._selectionModel.unselect(n,s),this._ngSelect.hideSelected()&&g(n.index)&&s&&this._showSelected(n)}findItem(n){let s;return s=this._ngSelect.compareWith()?e=>this._ngSelect.compareWith()(e.value,n):this._ngSelect.bindValue()?e=>!e.children&&this.resolveNested(e.value,this._ngSelect.bindValue())===n:e=>e.value===n||!e.children&&e.label&&e.label===this.resolveNested(n,this._ngSelect.bindLabel()),this._items.find(e=>s(e))}addItem(n){const s=this.mapItem(n,this._items.length);return this._items.push(s),this._filteredItems.push(s),s}clearSelected(n){this._selectionModel.clear(n),this._items.forEach(s=>{s.selected=n&&s.selected&&s.disabled,s.marked=!1}),this._ngSelect.hideSelected()&&this.resetFilteredItems()}findByLabel(n){return n=I(n).toLocaleLowerCase(),this.filteredItems.find(s=>I(s.label).toLocaleLowerCase().substr(0,n.length)===n)}filter(n){if(!n)return void this.resetFilteredItems();this._filteredItems=[],n=this._ngSelect.searchFn()?n:I(n).toLocaleLowerCase();const s=this._ngSelect.searchFn()||this._defaultSearchFn,e=this._ngSelect.hideSelected();for(const i of Array.from(this._groups.keys())){const l=[];for(const r of this._groups.get(i))e&&(r.parent&&r.parent.selected||r.selected)||s(n,this._ngSelect.searchFn()?r.value:r)&&l.push(r);if(l.length>0){const[r]=l.slice(-1);if(r.parent){const d=this._items.find(h=>h===r.parent);this._filteredItems.push(d)}this._filteredItems.push(...l)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected()&&this.selectedItems.length>0?this._items.filter(n=>!n.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(n){this._markedIndex=this._filteredItems.indexOf(n)}markSelectedOrDefault(n){if(0===this._filteredItems.length)return;const s=this._getLastMarkedIndex();this._markedIndex=s>-1?s:n?this.filteredItems.findIndex(e=>!e.disabled):-1}resolveNested(n,s){if(!C(n))return n;if(-1===s.indexOf("."))return n[s];{const e=s.split(".");let i=n;for(let l=0,r=e.length;l<r;++l){if(null==i)return null;i=i[e[l]]}return i}}mapItem(n,s){const e=C(n)&&"$ngOptionLabel"in n,i=C(n)&&"$ngOptionValue"in n,l=e?n.$ngOptionLabel:this.resolveNested(n,this._ngSelect.bindLabel()),r=i?n.$ngOptionValue:n;return{index:s,label:g(l)?l.toString():"",value:r,disabled:!(!n||!n.disabled)&&n.disabled,htmlId:`${this._ngSelect.dropdownId}-${s}`}}mapSelectedItems(){const n=this._ngSelect.multiple();for(const s of this.selectedItems){const e=this._ngSelect.bindValue(),i=e?this.resolveNested(s.value,e):s.value,l=g(i);let r=l?this.findItem(i):null;!r&&!l&&this._ngSelect.compareWith()&&(r=this._items.find(d=>this._ngSelect.compareWith()(d.value,s.value))),this._selectionModel.unselect(s,n),this._selectionModel.select(r||s,n,this._ngSelect.selectableGroupAsModel())}this._ngSelect.hideSelected()&&(this._filteredItems=this.filteredItems.filter(s=>-1===this.selectedItems.indexOf(s)))}_showSelected(n){if(this._filteredItems.push(n),n.parent){const s=n.parent;this._filteredItems.find(i=>i===s)||this._filteredItems.push(s)}else if(n.children)for(const s of n.children)s.selected=!1,this._filteredItems.push(s);this._filteredItems=[...this._filteredItems.sort((s,e)=>s.index-e.index)]}_hideSelected(n){this._filteredItems=this._filteredItems.filter(s=>s!==n),n.parent?n.parent.children.every(e=>e.selected)&&(this._filteredItems=this._filteredItems.filter(e=>e!==n.parent)):n.children&&(this._filteredItems=this.filteredItems.filter(s=>s.parent!==n))}_defaultSearchFn(n,s){return I(s.label).toLocaleLowerCase().indexOf(n)>-1}_getNextItemIndex(n){return n>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(n){0===this._filteredItems.length||this._filteredItems.every(s=>s.disabled)||(this._markedIndex=this._getNextItemIndex(n),this.markedItem.disabled&&this._stepToItem(n))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected()||this._markedIndex>-1&&void 0===this.markedItem)return-1;const n=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&n<0?-1:Math.max(this.markedIndex,n)}_groupBy(n,s){const e=new Map;if(0===n.length)return e;const i=n[0].value;if(null!=i&&Array.isArray(i[s])){for(const d of n){const h=(d.value?.[s]||[]).map((m,_)=>this.mapItem(m,_));e.set(d,h)}return e}const l=A(this._ngSelect.groupBy()),r=d=>{const h=l?s(d.value):d.value?.[s];return g(h)?h:void 0};for(const d of n){const h=r(d),m=e.get(h);m?m.push(d):e.set(h,[d])}return e}_flatten(n){const s=A(this._ngSelect.groupBy()),e=[];for(const i of Array.from(n.keys())){let l=e.length;if(void 0===i){const b=n.get(void 0)||[];e.push(...b.map(w=>(w.index=l++,w)));continue}const r=C(i),d={label:r?"":String(i),children:void 0,parent:null,index:l++,disabled:!this._ngSelect.selectableGroup(),htmlId:J()},h=s?this._ngSelect.bindLabel():this._ngSelect.groupBy(),m=this._ngSelect.groupValue()||(()=>r?i.value:{[h]:i}),_=n.get(i).map(b=>(b.parent=d,b.children=void 0,b.index=l++,b));d.children=_,d.value=m(i,_.map(b=>b.value)),e.push(d),e.push(..._)}return e}}let q=(()=>{var a;class n{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerVie
1wport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,l){const r=this._dimensions,d=r.itemHeight*i,m=Math.max(0,e)/d*i;let _=Math.min(i,Math.ceil(m)+(r.itemsPerViewport+1));const w=Math.max(0,_-r.itemsPerViewport);let v=Math.min(w,Math.floor(m)),y=r.itemHeight*Math.ceil(v)-r.itemHeight*Math.min(v,l);return y=isNaN(y)?0:y,v=isNaN(v)?-1:v,_=isNaN(_)?-1:_,v-=l,v=Math.max(0,v),_+=l,_=Math.min(i,_),{topPadding:y,scrollHeight:d,start:v,end:_}}setDimensions(e,i){const l=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:l}}getScrollTo(e,i,l){const{panelHeight:r}=this.dimensions,d=e+i,m=l+r;return r>=d&&l===e?null:d>m?l+d-m:e<=l?e:null}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275prov=u.jDH({token:n,factory:n.\u0275fac}))}return a(),n})();const ee=["top","right","bottom","left"],te=typeof requestAnimationFrame<"u"?ae.X:me;let B=(()=>{var a;class n{constructor(){this.items=(0,o.hFB)([]),this.showAddTag=(0,o.hFB)(!1,{transform:o.L39}),this.markedItem=(0,o.hFB)(void 0),this.position=(0,o.hFB)("auto"),this.appendTo=(0,o.hFB)(void 0),this.bufferAmount=(0,o.hFB)(void 0),this.virtualScroll=(0,o.hFB)(!1,{transform:o.L39}),this.headerTemplate=(0,o.hFB)(void 0),this.footerTemplate=(0,o.hFB)(void 0),this.filterValue=(0,o.hFB)(null),this.ariaLabelDropdown=(0,o.hFB)(null),this.outsideClickEvent=(0,o.hFB)("click"),this.popover=(0,o.hFB)(!1,{transform:o.L39}),this.update=(0,o.CGW)(),this.scroll=(0,o.CGW)(),this.scrollToEnd=(0,o.CGW)(),this.outsideClick=(0,o.CGW)(),this._renderer=(0,u.WQX)(t.sFG),this._zone=(0,u.WQX)(u.SKi),this._panelService=(0,u.WQX)(q),this._document=(0,u.WQX)(u.qQL,{optional:!0}),this._destroyRef=(0,u.WQX)(u.abz),this._dropdown=(0,u.WQX)(t.aKT).nativeElement,this.contentElementRef=(0,o.ebz)("content",{read:t.aKT}),this.scrollElementRef=(0,o.ebz)("scroll",{read:t.aKT}),this.paddingElementRef=(0,o.ebz)("padding",{read:t.aKT}),this._virtualPadding=(0,c.EW)(()=>this.paddingElementRef()?.nativeElement),this._scrollablePanel=(0,c.EW)(()=>this.scrollElementRef()?.nativeElement),this._contentPanel=(0,c.EW)(()=>this.contentElementRef()?.nativeElement),this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._destroyRef.onDestroy(()=>{this.appendTo()&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)})}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem()){const{itemHeight:e,panelHeight:i}=this._panelService.dimensions,l=this.markedItem().index*e;return i>l?0:l}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener(),this._handleWindowScroll(),this._showPopoverIfNeeded()}ngOnChanges(e){if(e.items){const i=e.items;this._onItemsOrShowAddTagChange(i.currentValue,this.showAddTag(),i.firstChange)}if(e.showAddTag){const i=e.showAddTag;this._onItemsOrShowAddTagChange(this.items(),i.currentValue,i.firstChange)}}scrollTo(e,i=!1){if(!e)return;const l=this.items().indexOf(e);if(l<0||l>=this.itemsLength)return;let r;if(this.virtualScroll()){const d=this._panelService.dimensions.itemHeight;r=this._panelService.getScrollTo(l*d,d,this._lastScrollPosition)}else{const d=this._dropdown.querySelector(`#${e.htmlId}`);r=this._panelService.getScrollTo(d.offsetTop,d.clientHeight,i?d.offsetTop:this._lastScrollPosition)}g(r)&&(this._scrollablePanel().scrollTop=r)}scrollToTag(){const e=this._scrollablePanel();e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),ee.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),(this.appendTo()||this.popover())&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){ee.forEach(l=>{const r=`ng-select-${l}`;this._renderer.removeClass(this._dropdown,r),this._renderer.removeClass(this._select,r)});const i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{const e=this._scrollablePanel();e&&(0,S.R)(e,"scroll").pipe((0,T.pQ)(this._destroyRef),x(0,te)).subscribe(()=>{e&&"scrollTop"in e&&this._onContentScrolled(e.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,S.R)(this._document,this.outsideClickEvent(),{capture:!0}).pipe((0,T.pQ)(this._destroyRef)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;const i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsOrShowAddTagChange(e=[],i,l){this._scrollToEndFired=!1,this.itemsLength=e.length,i&&e.length&&this.itemsLength++,this.virtualScroll()?this._updateItemsRange(l):(this._setVirtualHeight(),this._updateItems(l))}_updateItems(e){this.update.emit(this.items()),!1!==e&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{const i=this._scrollablePanel().clientHeight;this._panelService.setDimensions(0,i),this._handleDropdownPosition(),this.scrollTo(this.markedItem(),e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll()&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding().style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding()&&(this._virtualPadding().style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel().scrollTop;const i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount());this._updateVirtualHeight(i.scrollHeight),this._contentPanel().style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items().slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),g(e)&&0===this._lastScrollPosition&&(this._scrollablePanel().scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[e]=this.items();return this.update.emit([e]),Promise.resolve().then(()=>{const l=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding().style.height=l*this.itemsLength+"px";const r=this._scrollablePanel().clientHeight;return this._panelService.setDimensions(l,r),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||0===e)return;const i=this.virtualScroll()?this._virtualPadding():this._contentPanel();e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){const i=this.position();if("auto"!==i)return i;const l=this._select.getBoundingClientRect(),r=document.documentElement.scrollTop||document.body.scrollTop;return l.top+window.pageYOffset+l.height+e.getBoundingClientRect().height>r+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo()){if(this._parent=this._dropdown.shadowRoot?this._dropdown.shadowRoot.querySelector(this.appendTo()):document.querySelector(this.appendTo()),!this._parent)throw new Error(`appendTo selector ${this.appendTo()} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),l="rtl"===document.documentElement.dir,r=e.left-i.left;l?(this._dropdown.style.right=i.right-e.right+"px",this._dropdown.style.left="auto"):(this._dropdown.style.left=r+"px",this._dropdown.style.right="auto"),this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){const e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),r=this._select.querySelector(".ng-select-container")?.getBoundingClientRect()??e;"top"===this._currentPosition?(this._dropdown.style.bottom=i.bottom-r.top+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=r.bottom-i.top+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,S.R)(this._dropdown,"mousedown").pipe((0,T.pQ)(this._destroyRef)).subscribe(e=>{"INPUT"!==e.target.tagName&&e.preventDefault()})})}_handleWindowScroll(){!this.appendTo()&&!this.popover()||this._zone.runOutsideAngular(()=>{(0,S.R)(this._document,"scroll",{capture:!0,passive:!0}).pipe((0,T.pQ)(this._destroyRef),x(0,te)).subscribe(()=>{this._updateXPosition(),this._updateYPosition()})})}_showPopoverIfNeeded(){this.popover()&&"function"==typeof this._dropdown.showPopover&&(this._renderer.setAttribute(this._dropdown,"popover","manual"),this._dropdown.showPopover(),this._parent=globalThis.document.body,this._updateXPosition(),this._updateYPosition())}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275cmp=t.VBU({type:n,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,l){1&i&&t.wEZ(l.contentElementRef,Ae,5,t.aKT)(l.scrollElementRef,Ie,5,t.aKT)(l.paddingElementRef,we,5,t.aKT),2&i&&t.NyB(3)},inputs:{items:[1,"items"],showAddTag:[1,"showAddTag"],markedItem:[1,"markedItem"],position:[1,"position"],appendTo:[1,"appendTo"],bufferAmount:[1,"bufferAmount"],virtualScroll:[1,"virtualScroll"],headerTemplate:[1,"headerTemplate"],footerTemplate:[1,"footerTemplate"],filterValue:[1,"filterValue"],ariaLabelDropdown:[1,"ariaLabelDropdown"],outsideClickEvent:[1,"outsideClickEvent"],popover:[1,"popover"]},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[t.OA$],ngContentSelectors:V,decls:9,vars:7,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,l){1&i&&(t.NAR(),t.nVh(0,ye,2,4,"div",3),t.j41(1,"div",4,0),t.nrm(3,"div",null,1),t.j41(5,"div",null,2),t.SdG(7),t.k0s()(),t.nVh(8,Ne,2,4,"div",5)),2&i&&(t.vxM(l.headerTemplate()?0:-1),t.R7$(),t.BMQ("aria-label",l.ariaLabelDropdown()),t.R7$(2),t.AVh("total-padding",l.virtualScroll()),t.R7$(2),t.AVh("scrollable-content",l.virtualScroll()&&l.items().length),t.R7$(3),t.vxM(l.footerTemplate()?8:-1))},dependencies:[L.T3],encapsulation:2,changeDetection:0}))}return a(),n})(),O=(()=>{var a;class n{constructor(){this.value=(0,o.hFB)(),this.disabled=(0,o.hFB)(!1,{transform:o.L39}),this.elementRef=(0,u.WQX)(t.aKT),this.label=(0,u.vPA)(""),this.isInitialized=(0,u.vPA)(!1),(0,t.WeM)(()=>{const e=(this.elementRef.nativeElement.innerHTML||"").trim();e!==this.label()&&this.label.set(e)})}ngOnInit(){this.isInitialized.set(!0)}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275cmp=t.VBU({type:n,selectors:[["ng-option"]],inputs:{value:[1,"value"],disabled:[1,"disabled"]},ngContentSelectors:V,decls:1,vars:0,template:function(i,l){1&i&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0}))}return a(),n})();var f=function(a){return a.Tab="Tab",a.Enter="Enter",a.Esc="Escape",a.Space=" ",a.ArrowUp="ArrowUp",a.ArrowDown="ArrowDown",a.Backspace="Backspace",a}(f||{});function ne(){return new Ft}class Ft{constructor(){this._selected=[]}get value(){return this._selected}select(n,s,e){if(n.selected=!0,(!n.children||!s&&e)&&this._selected.push(n),s)if(n.parent){const i=n.parent.children.length,l=n.parent.children.filter(r=>r.selected).length;n.parent.selected=i===l}else n.children&&(this._setChildrenSelectedState(n.children,!0),this._removeChildren(n),this._selected=e&&this._activeChildren(n)?[...this._selected.filter(i=>i.parent!==n),n]:[...this._selected,...n.children.filter(i=>!i.disabled)])}
1unselect(n,s){if(this._selected=this._selected.filter(e=>e!==n),n.selected=!1,s)if(n.parent&&n.parent.selected){const e=n.parent.children;this._removeParent(n.parent),this._removeChildren(n.parent),this._selected.push(...e.filter(i=>i!==n&&!i.disabled)),n.parent.selected=!1}else n.children&&(this._setChildrenSelectedState(n.children,!1),this._removeChildren(n))}clear(n){this._selected=n?this._selected.filter(s=>s.disabled):[]}_setChildrenSelectedState(n,s){for(const e of n)e.disabled||(e.selected=s)}_removeChildren(n){this._selected=[...this._selected.filter(s=>s.parent!==n),...n.children.filter(s=>s.parent===n&&s.disabled&&s.selected)]}_removeParent(n){this._selected=this._selected.filter(s=>s!==n)}_activeChildren(n){return n.children.every(s=>!s.disabled||s.selected)}}const ie=new u.nKC("ng-select-selection-model");let Dt=(()=>{var a;class n{constructor(){this.classes=(0,u.WQX)(new o.ES_("class"),{optional:!0}),this.config=(0,u.WQX)(vt),this._cd=(0,u.WQX)(o.gRc),this._console=(0,u.WQX)(Ct),this._destroyRef=(0,u.WQX)(u.abz),this._disabled=(0,u.vPA)(!1),this._ariaLabelDropdown=(0,o.hFB)(void 0,{alias:"ariaLabelDropdown"}),this.ariaLabelDropdown=(0,c.uu)(()=>this._ariaLabelDropdown()),this._ariaLabel=(0,o.hFB)(void 0,{alias:"ariaLabel"}),this.ariaLabel=(0,c.uu)(()=>this._ariaLabel()),this._markFirst=(0,o.hFB)(!0,{alias:"markFirst",transform:o.L39}),this.markFirst=(0,c.uu)(()=>this._markFirst()),this._placeholder=(0,o.hFB)(this.config.placeholder,{alias:"placeholder"}),this.placeholder=(0,c.uu)(()=>this._placeholder()),this._fixedPlaceholder=(0,o.hFB)(!0,{alias:"fixedPlaceholder"}),this.fixedPlaceholder=(0,c.uu)(()=>this._fixedPlaceholder()),this._notFoundText=(0,o.hFB)(void 0,{alias:"notFoundText"}),this.notFoundText=(0,c.uu)(()=>this._notFoundText()),this._typeToSearchText=(0,o.hFB)(void 0,{alias:"typeToSearchText"}),this.typeToSearchText=(0,c.uu)(()=>this._typeToSearchText()),this._preventToggleOnRightClick=(0,o.hFB)(!1,{alias:"preventToggleOnRightClick"}),this.preventToggleOnRightClick=(0,c.uu)(()=>this._preventToggleOnRightClick()),this._addTagText=(0,o.hFB)(void 0,{alias:"addTagText"}),this.addTagText=(0,c.uu)(()=>this._addTagText()),this._loadingText=(0,o.hFB)(void 0,{alias:"loadingText"}),this.loadingText=(0,c.uu)(()=>this._loadingText()),this._clearAllText=(0,o.hFB)(void 0,{alias:"clearAllText"}),this.clearAllText=(0,c.uu)(()=>this._clearAllText()),this._dropdownPosition=(0,o.hFB)("auto",{alias:"dropdownPosition"}),this.dropdownPosition=(0,c.uu)(()=>this._dropdownPosition()),this._appendTo=(0,o.hFB)(void 0,{alias:"appendTo"}),this.appendTo=(0,c.uu)(()=>this._appendTo()),this._outsideClickEvent=(0,o.hFB)(this.config.outsideClickEvent,{alias:"outsideClickEvent"}),this.outsideClickEvent=(0,c.uu)(()=>this._outsideClickEvent()),this._loading=(0,o.hFB)(!1,{alias:"loading",transform:o.L39}),this.loading=(0,c.uu)(()=>this._loading()),this._closeOnSelect=(0,o.hFB)(!0,{alias:"closeOnSelect",transform:o.L39}),this.closeOnSelect=(0,c.uu)(()=>this._closeOnSelect()),this._hideSelected=(0,o.hFB)(!1,{alias:"hideSelected",transform:o.L39}),this.hideSelected=(0,c.uu)(()=>this._hideSelected()),this._selectOnTab=(0,o.hFB)(!1,{alias:"selectOnTab",transform:o.L39}),this.selectOnTab=(0,c.uu)(()=>this._selectOnTab()),this._openOnEnter=(0,o.hFB)(void 0,{alias:"openOnEnter",transform:o.L39}),this.openOnEnter=(0,c.uu)(()=>this._openOnEnter()),this._maxSelectedItems=(0,o.hFB)(void 0,{alias:"maxSelectedItems",transform:o.Udg}),this.maxSelectedItems=(0,c.uu)(()=>this._maxSelectedItems()),this._groupBy=(0,o.hFB)(void 0,{alias:"groupBy"}),this.groupBy=(0,c.uu)(()=>this._groupBy()),this._groupValue=(0,o.hFB)(void 0,{alias:"groupValue"}),this.groupValue=(0,c.uu)(()=>this._groupValue()),this._bufferAmount=(0,o.hFB)(4,{alias:"bufferAmount",transform:o.Udg}),this.bufferAmount=(0,c.uu)(()=>this._bufferAmount()),this._virtualScroll=(0,o.hFB)(void 0,{alias:"virtualScroll",transform:o.L39}),this.virtualScroll=(0,c.uu)(()=>this._virtualScroll()),this._selectableGroup=(0,o.hFB)(!1,{alias:"selectableGroup",transform:o.L39}),this.selectableGroup=(0,c.uu)(()=>this._selectableGroup()),this._tabFocusOnClearButton=(0,o.hFB)(void 0,{alias:"tabFocusOnClearButton"}),this.tabFocusOnClearButton=(0,c.uu)(()=>this._tabFocusOnClearButton()),this._selectableGroupAsModel=(0,o.hFB)(!0,{alias:"selectableGroupAsModel",transform:o.L39}
1),this.selectableGroupAsModel=(0,c.uu)(()=>this._selectableGroupAsModel()),this._searchFn=(0,o.hFB)(null,{alias:"searchFn"}),this.searchFn=(0,c.uu)(()=>this._searchFn()),this._trackByFn=(0,o.hFB)(null,{alias:"trackByFn"}),this.trackByFn=(0,c.uu)(()=>this._trackByFn()),this._clearOnBackspace=(0,o.hFB)(!0,{alias:"clearOnBackspace",transform:o.L39}),this.clearOnBackspace=(0,c.uu)(()=>this._clearOnBackspace()),this._labelForId=(0,o.hFB)(null,{alias:"labelForId"}),this.labelForId=(0,c.uu)(()=>this._labelForId()),this._inputAttrs=(0,o.hFB)({},{alias:"inputAttrs"}),this.inputAttrs=(0,c.uu)(()=>this._inputAttrs()),this._tabIndex=(0,o.hFB)(void 0,{alias:"tabIndex",transform:o.Udg}),this.tabIndex=(0,c.uu)(()=>this._tabIndex()),this._readonly=(0,o.hFB)(!1,{alias:"readonly",transform:o.L39}),this.readonly=(0,c.uu)(()=>this._readonly()),this._searchWhileComposing=(0,o.hFB)(!0,{alias:"searchWhileComposing",transform:o.L39}),this.searchWhileComposing=(0,c.uu)(()=>this._searchWhileComposing()),this._minTermLength=(0,o.hFB)(0,{alias:"minTermLength",transform:o.Udg}),this.minTermLength=(0,c.uu)(()=>this._minTermLength()),this._editableSearchTerm=(0,o.hFB)(!1,{alias:"editableSearchTerm",transform:o.L39}),this.editableSearchTerm=(0,c.uu)(()=>this._editableSearchTerm()),this._ngClass=(0,o.hFB)(null,{alias:"ngClass"}),this.ngClass=(0,c.uu)(()=>this._ngClass()),this._typeahead=(0,o.hFB)(void 0,{alias:"typeahead"}),this.typeahead=(0,c.uu)(()=>this._typeahead()),this._multiple=(0,o.hFB)(!1,{alias:"multiple",transform:o.L39}),this.multiple=(0,c.uu)(()=>this._multiple()),this._addTag=(0,o.hFB)(!1,{alias:"addTag"}),this.addTag=(0,c.uu)(()=>this._addTag()),this._searchable=(0,o.hFB)(!0,{alias:"searchable",transform:o.L39}),this.searchable=(0,c.uu)(()=>this._searchable()),this._clearable=(0,o.hFB)(!0,{alias:"clearable",transform:o.L39}),this.clearable=(0,c.uu)(()=>this._clearable()),this._clearKeepsDisabledOptions=(0,o.hFB)(!0,{alias:"clearKeepsDisabledOptions",transform:o.L39}),this.clearKeepsDisabledOptions=(0,c.uu)(()=>this._clearKeepsDisabledOptions()),this._deselectOnClick=(0,o.hFB)(void 0,{alias:"deselectOnClick"}),this.deselectOnClick=(0,c.uu)(()=>this._deselectOnClick()),this._clearSearchOnAdd=(0,o.hFB)(void 0,{alias:"clearSearchOnAdd"}),this.clearSearchOnAdd=(0,c.uu)(()=>this._clearSearchOnAdd()),this._compareWith=(0,o.hFB)(void 0,{alias:"compareWith",transform:r=>{if(null!=r&&!A(r))throw Error("`compareWith` must be a function.");return r}}),this.compareWith=(0,c.uu)(()=>this._compareWith()),this._keyDownFn=(0,o.hFB)(r=>!0,{alias:"keyDownFn"}),this.keyDownFn=(0,c.uu)(()=>this._keyDownFn()),this._popover=(0,o.hFB)(!1,{alias:"popover",transform:o.L39}),this.popover=(0,c.uu)(()=>this._popover()),this.bindLabel=(0,o.geq)(void 0),this.bindValue=(0,o.geq)(void 0),this.appearance=(0,o.geq)(void 0),this.isOpen=(0,o.geq)(!1),this.items=(0,o.geq)([]),this.blurEvent=(0,o.CGW)({alias:"blur"}),this.focusEvent=(0,o.CGW)({alias:"focus"}),this.changeEvent=(0,o.CGW)({alias:"change"}),this.openEvent=(0,o.CGW)({alias:"open"}),this.closeEvent=(0,o.CGW)({alias:"close"}),this.searchEvent=(0,o.CGW)({alias:"search"}),this.clearEvent=(0,o.CGW)({alias:"clear"}),this.addEvent=(0,o.CGW)({alias:"add"}),this.removeEvent=(0,o.CGW)({alias:"remove"}),this.scroll=(0,o.CGW)({alias:"scroll"}),this.scrollToEnd=(0,o.CGW)({alias:"scrollToEnd"}),this.disabled=(0,c.EW)(()=>this.readonly()||this._disabled()),this.clearSearchOnAddValue=(0,c.EW)(()=>g(this.clearSearchOnAdd())?this.clearSearchOnAdd():g(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect()),this.deselectOnClickValue=(0,c.EW)(()=>g(this.deselectOnClick())?this.deselectOnClick():g(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple()),this.optionTemplate=(0,o.sbv)(R,{read:t.C4Q}),this.optgroupTemplate=(0,o.sbv)(G,{read:t.C4Q}),this.labelTemplate=(0,o.sbv)(W,{read:t.C4Q}),this.multiLabelTemplate=(0,o.sbv)(Q,{read:t.C4Q}),this.headerTemplate=(0,o.sbv)(X,{read:t.C4Q}),this.footerTemplate=(0,o.sbv)(j,{read:t.C4Q}),this.notFoundTemplate=(0,o.sbv)(H,{read:t.C4Q}),this.placeholderTemplate=(0,o.sbv)(z,{read:t.C4Q}),this.typeToSearchTemplate=(0,o.sbv)(U,{read:t.C4Q}),this.loadingTextTemplate=(0,o.sbv)(K,{read:t.C4Q}),this.tagTemplate=(0,o.sbv)($,{read:t.C4Q}),this.loadingSpinnerTemplate=(0,o.sbv)(Y,{read:t.C4Q}),this.clearButtonTemplate=(0,o.sbv)(Z,{read:t.C4Q}),this.ngOptions=(0,o.tEk)(O,{descendants:!0}),this.dropdownPanel=(0,o.ebz)((0,u.Rfq)(()=>B)),this.searchInput=(0,o.ebz)("searchInput"),this.clearButton=(0,o.ebz)("clearButton"),this.dropdownId=J(),this.escapeHTML=!0,this.viewPortItems=[],this.tabFocusOnClear=(0,u.vPA)(!0),this.autoFocus=(0,u.WQX)(new o.ES_("autofocus"),{optional:!0}),this._defaultLabel="label",this._editableSearchTermActive=(0,c.EW)(()=>this.editableSearchTerm()&&!this.multiple()),this._injector=(0,u.WQX)(u.zZn),this._isComposing=!1,this._keyPress$=new _e.B,this._pressedKeys=[],this._searchTerm=(0,u.vPA)(null),this._val
1idTerm=(0,c.EW)(()=>{const r=this._searchTerm()?.trim();return r&&r.length>=this.minTermLength()}),this.clearItem=r=>{const d=this.selectedItems.find(h=>h.value===r);this.unselect(d)},this.trackByOption=(r,d)=>this.trackByFn()?this.trackByFn()(d.value):d,this._onChange=r=>{},this._onTouched=()=>{};const e=this.config,i=(0,u.WQX)(ie,{optional:!0}),l=(0,u.WQX)(t.aKT);this._mergeGlobalConfig(e),this.itemsList=new Et(this,i?i():ne()),this.element=l.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable()||this._isComposing}get focused(){return this._focused}get searchTerm(){return this._searchTerm()}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel())return this.dropdownPanel().currentPosition}get showAddTag(){if(!this._validTerm())return!1;const e=this.searchTerm.toLowerCase().trim();return this.addTag()&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected()&&this.isOpen()||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading()}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(!1),e.items&&(this._itemsAreUsed=!0,this._setItems(e.items.currentValue||[])),e.isOpen&&(this._manualOpen=g(e.isOpen.currentValue)),e.groupBy&&(e.items||this._setItems([...this.items()])),e.inputAttrs&&this._setInputAttributes(),this._setTabFocusOnClear()}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),g(this.autoFocus)&&this.focus()}handleKeyDown(e){const i=e.key;if(Object.values(f).includes(i)){if(!1===this.keyDownFn()(e))return;this.handleKeyCode(e)}else i&&1===i.length&&this._keyPress$.next(i.toLocaleLowerCase())}handleKeyCode(e){const i=e.target;this.clearButton()&&this.clearButton().nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.key){case f.ArrowDown:this._handleArrowDown(e);break;case f.ArrowUp:this._handleArrowUp(e);break;case f.Space:this._handleSpace(e);break;case f.Enter:this._handleEnter(e);break;case f.Tab:this._handleTab(e);break;case f.Esc:this.close(),e.preventDefault();break;case f.Backspace:this._handleBackspace()}}handleKeyCodeClear(e){e.key===f.Enter&&(this.handleClearClick(),e.preventDefault())}handleMousedown(e){if(this.disabled())return;if(this.preventToggleOnRightClick()&&2===e.button)return!1;const i=e.target;if("INPUT"!==i.tagName&&e.preventDefault(),!i.classList.contains("ng-clear-wrapper")){if(i.classList.contains("ng-arrow-wrapper"))return void this.handleArrowClick();i.classList.contains("ng-value-icon")||(this._focused||this.focus(),this.searchable()?this.open():this.toggle())}}handleArrowClick(){this.isOpen()?this.close():this.open()}handleClearClick(e){this.hasValue&&(this.itemsList.clearSelected(this.clearKeepsDisabledOptions()),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable()&&(this.itemsList.clearSelected(!1),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(!1),this._handleWriteValue(e),this._editableSearchTermActive()&&this._setSearchTermFromItems(),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled.set(e),this._cd.markForCheck()}toggle(){this.isOpen()?this.close():this.open()}open(){this.disabled()||this.isOpen()||this._manualOpen||!this.typeahead()?.observed&&!this.addTag()&&this.itemsList.noItemsToSelect||(this.isOpen.set(!0),this.itemsList.markSelectedOrDefault(this.markFirst()),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen()||this._manualOpen||(this.isOpen.set(!1),this._isComposing=!1,this._editableSearchTermActive()?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this.detectChanges())}toggleItem(e){!e||e.disabled||this.disabled()||(this.deselectOnClickValue()&&e.selected?this.unselect(e):this.select(e),this._editableSearchTermActive()&&this._setSearchTermFromItems())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAddValue()&&!this._editableSearchTermActive()&&this._clearSearch(),this._updateNgModel(),this.multiple()&&this.addEvent.emit(e.value)),(this.closeOnSelect()||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput().nativeElement.focus()}blur(){this.searchInput().nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value),this._onSelectionChanged())}selectTag(){let e;e=A(this.addTag())?this.addTag()(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel()]:this.searchTerm};const i=l=>this.typeahead()?.observed||!this.isOpen()?this.itemsList.mapItem(l,null):this.itemsList.addItem(l);!function ft(a){return a instanceof Promise}(e)?e&&this.select(i(e)):e.then(l=>this.select(i(l))).catch(()=>{})}showClear(){return this.clearable()&&(this.hasValue||this.searchTerm)&&!this.disabled()}focusOnClear(){this.blur(),this.clearButton()&&this.clearButton().nativeElement.focus()}showNoItemsFound(){const e=0===this.itemsList.filteredItems.length;
1return(e&&!this.typeahead()?.observed&&!this.loading()||e&&this.typeahead()?.observed&&this._validTerm()&&!this.loading())&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this.typeahead()?.observed&&!this._validTerm()&&!this.loading()}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing()&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing()||(this._searchTerm.set(e),this.typeahead()?.observed&&(this._validTerm()||0===this.minTermLength())&&this.typeahead().next(e),this.typeahead()?.observed||(this.itemsList.filter(e),this.isOpen()&&this.itemsList.markSelectedOrDefault(this.markFirst())),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this._focused||(this._editableSearchTermActive()&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this._focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen()&&!this.disabled()&&this._onTouched(),this._editableSearchTermActive()&&this._setSearchTermFromItems(),this._focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const e=this.selectedItems?.[0];this._searchTerm.set(e?.label??null)}_setItems(e){const i=e[0];this.bindLabel.set(this.bindLabel()||this._defaultLabel),this._primitive=g(i)?!C(i):this._primitive||this.bindLabel()===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen()&&g(this.searchTerm)&&!this.typeahead()?.observed&&this.itemsList.filter(this.searchTerm),(this.typeahead()?.observed||this.isOpen())&&this.itemsList.markSelectedOrDefault(this.markFirst())}_setItemsFromNgOptions(){(0,u.QZP)(()=>{const e=this.ngOptions();if(e.length>0&&!e.every(l=>l.isInitialized()))return;this.bindLabel.set(this._defaultLabel);const i=e.map(l=>({$ngOptionValue:l.value(),$ngOptionLabel:l.elementRef.nativeElement.innerHTML,disabled:l.disabled()}))??[];this.items.set(i),this.itemsList.setItems(i),this.hasValue&&this.itemsList.mapSelectedItems(),this._cd.detectChanges(),e.map(l=>({option:l,item:this.itemsList.findItem(l.value())})).filter(({item:l})=>
1g(l)).forEach(({option:l,item:r})=>{r.disabled=l.disabled(),r.label=l.label()||r.label})},{injector:this._injector})}_isValidWriteValue(e){if(!g(e)||this.multiple()&&""===e||Array.isArray(e)&&0===e.length)return!1;const i=l=>!(!g(this.compareWith())&&C(l)&&this.bindValue()&&(this._console.warn(`Setting object(${JSON.stringify(l)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple()?Array.isArray(e)?e.every(l=>i(l)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;const i=l=>{let r=this.itemsList.findItem(l);if(r)this.itemsList.select(r);else{const d=C(l),h=!d&&!this.bindValue();d||h?this.itemsList.select(this.itemsList.mapItem(l,null)):this.bindValue()&&(r={[this.bindLabel()]:null,[this.bindValue()]:l},this.itemsList.select(this.itemsList.mapItem(r,null)))}};this.multiple()?e.forEach(l=>i(l)):i(e)}_handleKeyPresses(){this.searchable()||this._keyPress$.pipe((0,T.pQ)(this._destroyRef),(0,Ee.M)(e=>this._pressedKeys.push(e)),(0,Fe.B)(200),(0,De.p)(()=>this._pressedKeys.length>0),(0,Se.T)(()=>this._pressedKeys.join(""))).subscribe(e=>{const i=this.itemsList.findByLabel(e);i&&(this.isOpen()?i.disabled||(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){const e=this.searchInput().nativeElement,i={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:"off","aria-controls":this.dropdownId,...this.inputAttrs()};for(const l of Object.keys(i))e.setAttribute(l,i[l])}_setTabFocusOnClear(){this.tabFocusOnClear.set(g(this.tabFocusOnClearButton())?!!this.tabFocusOnClearButton():this.config.tabFocusOnClear)}_updateNgModel(){const e=[];for(const l of this.selectedItems)if(this.bindValue()){let r=null;if(l.children){const d=this.groupValue()?this.bindValue():this.groupBy();r=l.value[d||this.groupBy()]}else r=this.itemsList.resolveNested(l.value,this.bindValue());e.push(r)}else e.push(l.value);const i=this.selectedItems.map(l=>l.value);this.multiple()?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange(g(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this._searchTerm.set(e),this.typeahead()?.observed&&this.typeahead().next(e)}_scrollToMarked(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen()||!this.dropdownPanel()||this.dropdownPanel().scrollToTag()}_onSelectionChanged(){const e=this.appendTo()??this.config.appendTo;this.isOpen()&&this.deselectOnClickValue()&&e&&(this._cd.detectChanges(),this.dropdownPanel().adjustPosition())}_handleTab(e){if(!1===this.isOpen())if(this.showClear()&&!e.shiftKey&&this.tabFocusOnClear())this.focusOnClear(),e.preventDefault();else if(!this.addTag())return;this.selectOnTab()?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){const i=this.openOnEnter()??this.config.openOnEnter;if(this.isOpen()||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!i)return;this.open()}e.preventDefault()}_handleSpace(e){this.isOpen()||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen()&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){const i=this.itemsList.markedIndex+e;return this.addTag()&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable()||!this.clearOnBackspace()||!this.hasValue||(this.multiple()?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.bindValue.set(this.bindValue()||e.bindValue),this.bindLabel.set(this.bindLabel()||e.bindLabel),this.appearance.set(this.appearance()||e.appearance),this._setTabFocusOnClear()}getVirtualScroll(e){return g(this.virtualScroll)?this.virtualScroll():this.isVirtualScrollDisabled(e)}isVirtualScrollDisabled(e){return!!g(e.disableVirtualScroll)&&!e.disableVirtualScroll}static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275cmp=t.VBU({type:n,selectors:[["ng-select"]],contentQueries:function(i,l,r){1&i&&t.C6U(r,l.optionTemplate,R,5,t.C4Q)(r,l.optgroupTemplate,G,5,t.C4Q)(r,l.labelTemplate,W,5,t.C4Q)(r,l.multiLabelTemplate,Q,5,t.C4Q)(r,l.headerTemplate,X,5,t.C4Q)(r,l.footerTemplate,j,5,t.C4Q)(r,l.notFoundTemplate,H,5,t.C4Q)(r,l.placeholderTemplate,z,5,t.C4Q)(r,l.typeToSearchTemplate,U,5,t.C4Q)(r,l.loadingTextTemplate,K,5,t.C4Q)(r,l.tagTemplate,$,5,t.C4Q)(r,l.loadingSpinnerTemplate,Y,5,t.C4Q)(r,l.clearButtonTemplate,Z,5,t.C4Q)(r,l.ngOptions,O,5),2&i&&t.NyB(14)},viewQuery:function(i,l){1&i&&t.wEZ(l.dropdownPanel,B,5)(l.searchInput,Be,5)(l.clearButton,Oe,5),2&i&&t.NyB(3)},hostVars:20,hostBindings:function(i,l){1&i&&t.bIt("keydown",function(d){return l.handleKeyDown(d)}),2&i&&t.AVh("ng-select",!0)("ng-select-single",!l.multiple())("ng-select-typeahead",l.typeahead())("ng-select-multiple",l.multiple())("ng-select-taggable",l.addTag())("ng-select-searchable",l.searchable())("ng-select-clearable",l.clearable())("ng-select-opened",l.isOpen())("ng-select-filtered",l.filtered)("ng-select-disabled",l.disabled())},inputs:{_ariaLabelDropdown:[1,"ariaLabelDropdown","_ariaLabelDropdown"],_ariaLabel:[1,"ariaLabel","_ariaLabel"],_markFirst:[1,"markFirst","_markFirst"],_placeholder:[1,"placeholder","_placeholder"],_fixedPlaceholder:[1,"f
1ixedPlaceholder","_fixedPlaceholder"],_notFoundText:[1,"notFoundText","_notFoundText"],_typeToSearchText:[1,"typeToSearchText","_typeToSearchText"],_preventToggleOnRightClick:[1,"preventToggleOnRightClick","_preventToggleOnRightClick"],_addTagText:[1,"addTagText","_addTagText"],_loadingText:[1,"loadingText","_loadingText"],_clearAllText:[1,"clearAllText","_clearAllText"],_dropdownPosition:[1,"dropdownPosition","_dropdownPosition"],_appendTo:[1,"appendTo","_appendTo"],_outsideClickEvent:[1,"outsideClickEvent","_outsideClickEvent"],_loading:[1,"loading","_loading"],_closeOnSelect:[1,"closeOnSelect","_closeOnSelect"],_hideSelected:[1,"hideSelected","_hideSelected"],_selectOnTab:[1,"selectOnTab","_selectOnTab"],_openOnEnter:[1,"openOnEnter","_openOnEnter"],_maxSelectedItems:[1,"maxSelectedItems","_maxSelectedItems"],_groupBy:[1,"groupBy","_groupBy"],_groupValue:[1,"groupValue","_groupValue"],_bufferAmount:[1,"bufferAmount","_bufferAmount"],_virtualScroll:[1,"virtualScroll","_virtualScroll"],_selectableGroup:[1,"selectableGroup","_selectableGroup"],_tabFocusOnClearButton:[1,"tabFocusOnClearButton","_tabFocusOnClearButton"],_selectableGroupAsModel:[1,"selectableGroupAsModel","_selectableGroupAsModel"],_searchFn:[1,"searchFn","_searchFn"],_trackByFn:[1,"trackByFn","_trackByFn"],_clearOnBackspace:[1,"clearOnBackspace","_clearOnBackspace"],_labelForId:[1,"labelForId","_labelForId"],_inputAttrs:[1,"inputAttrs","_inputAttrs"],_tabIndex:[1,"tabIndex","_tabIndex"],_readonly:[1,"readonly","_readonly"],_searchWhileComposing:[1,"searchWhileComposing","_searchWhileComposing"],_minTermLength:[1,"minTermLength","_minTermLength"],_editableSearchTerm:[1,"editableSearchTerm","_editableSearchTerm"],_ngClass:[1,"ngClass","_ngClass"],_typeahead:[1,"typeahead","_typeahead"],_multiple:[1,"multiple","_multiple"],_addTag:[1,"addTag","_addTag"],_searchable:[1,"searchable","_searchable"],_clearable:[1,"clearable","_clearable"],_clearKeepsDisabledOptions:[1,"clearKeepsDisabledOptions","_clearKeepsDisabledOptions"],_deselectOnClick:[1,"deselectOnClick","_deselectOnClick"],_clearSearchOnAdd:[1,"clearSearchOnAdd","_clearSearchOnAdd"],_compareWith:[1,"compareWith","_compareWith"],_keyDownFn:[1,"keyDownFn","_keyDownFn"],_popover:[1,"popover","_popover"],bindLabel:[1,"bindLabel"],bindValue:[1,"bindValue"],appearance:[1,"appearance"],isOpen:[1,"isOpen"],items:[1,"items"]},outputs:{bindLabel:"bindLabelChange",bindValue:"bindValueChange",appearance:"appearanceChange",isOpen:"isOpenChange",items:"itemsChange",blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["ngSelect"],features:[t.Jv_([{provide:le.kq,useExisting:(0,u.Rfq)(()=>n),multi:!0},q]),t.OA$],decls:15,vars:22,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],[1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","ng-select-multiple","class","id","ariaLabelDropdown","popover"],["aria-atomic","true","aria-live","polite","role","status",1,"ng-visually-hidden"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"click","title"],["aria-hidden","true",1,"ng-clear"],[1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","outsideClickEvent","headerTemplate","footerTemplate","filterValue","items","showAddTag","markedItem","id","ariaLabelDropdown","popover"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(i,l){if(1&i){const r=t.RV6();t.j41(0,"div",10),t.bIt("mousedown",function(h){return l.handleMousedown(h)}),t.j41(1,"div",11),t.nVh(2,Pe,3,1),t.nVh(3,Qe,2,0),t.nVh(4,je,1,5,null,12),t.j41(5,"div",13)(6,"input",14,0),t.bIt("blur",function(h){return l.onInputBlur(h)})("change",function(h){return h.stopPropagation()})("compositionend",function(){u.eBV(r);const h=t.sdS(7);return u.Njj(l.onCompositionEnd(h.value))})("compositionstart",function(){return l.onCompositionStart()}
1)("focus",function(h){return l.onInputFocus(h)})("input",function(){u.eBV(r);const h=t.sdS(7);return u.Njj(l.filter(h.value))}),t.k0s()()(),t.nVh(8,Ue,3,1),t.nVh(9,Ye,4,4,"span",15),t.j41(10,"span",16),t.nrm(11,"span",17),t.k0s()(),t.nVh(12,ht,8,22,"ng-dropdown-panel",18),t.j41(13,"div",19),t.nVh(14,pt,1,1),t.k0s()}2&i&&(t.AVh("ng-appearance-outline","outline"===l.appearance())("ng-appearance-fill","fill"===l.appearance())("ng-has-value",l.hasValue),t.R7$(2),t.vxM(0===l.selectedItems.length&&!l.searchTerm||(l.fixedPlaceholder()??l.config.fixedPlaceholder)?2:-1),t.R7$(),t.vxM(l.multiLabelTemplate()&&l.multiple()||!(l.selectedItems.length>0)?-1:3),t.R7$(),t.vxM(l.multiple()&&l.multiLabelTemplate()&&l.selectedValues.length>0?4:-1),t.R7$(2),t.Y8G("disabled",l.disabled())("readOnly",!l.searchable()||l.itemsList.maxItemsSelected)("value",l.searchTerm??""),t.BMQ("aria-activedescendant",l.isOpen()?null==l.itemsList||null==l.itemsList.markedItem?null:l.itemsList.markedItem.htmlId:null)("aria-controls",l.isOpen()?l.dropdownId:null)("aria-expanded",l.isOpen())("aria-label",l.ariaLabel())("id",l.labelForId())("tabindex",l.tabIndex()),t.R7$(2),t.vxM(l.loading()?8:-1),t.R7$(),t.vxM(l.showClear()?9:-1),t.R7$(3),t.vxM(l.isOpen()?12:-1),t.R7$(2),t.vxM(l.isOpen()&&l.showNoItemsFound()?14:-1))},dependencies:[L.T3,bt,B],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;
1cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}.ng-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap}\n'],encapsulation:2,changeDetection:0}))}return a(),n})(),St=(()=>{var a;class n{static#e=a=()=>(this.\u0275fac=function(i){return new(i||n)},this.\u0275mod=t.$C({type:n}),this.\u0275inj=u.G2t({providers:[{provide:ie,useValue:ne}]}))}return a(),n})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.