/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@mtna/lib-ui@21.3.2/bundles/mtna-lib-ui.umd.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@mtna/common"),require("rxjs"),require("@angular/core"),require("@angular/material/chips"),require("@angular/cdk/coercion"),require("rxjs/operators"),require("@angular/animations")):"function"==typeof define&&define.amd?define("@mtna/lib-ui",["exports","@mtna/common","rxjs","@angular/core","@angular/material/chips","@angular/cdk/coercion","rxjs/operators","@angular/animations"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).mtna=t.mtna||{},t.mtna["lib-ui"]={}),t.common,t.rxjs,t.ng.core,t.ng.material.chips,t.ng.cdk.coercion,t.rxjs.operators,t.ng.animations)}(this,(function(t,e,r,i,n,o,a,s){"use strict";function l(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var c=l(i),p=l(n),u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},u(t,e)};function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}Object.create;function m(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,n,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}function d(t,e,r){if(r||2===arguments.length)for(var i,n=0,o=e.length;n<o;n++)!i&&n in e||(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}Object.create;var y=e.StringUnion("1","2","3","4","5","6");var f=function(t){var e=this;this.chipList=t,Object.defineProperty(this.chipList,"role",{get:function(){return e.chipList.empty?null:e.role||"listbox"}})};f.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:f,deps:[{token:p.MatChipList}],target:c.ɵɵFactoryTarget.Directive}),f.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"mat-chip-list[role]",inputs:{role:"role"},host:{properties:{"attr.role":"this.role"}},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:f,decorators:[{type:i.Directive,args:[{selector:"mat-chip-list[role]"}]}],ctorParameters:function(){return[{type:p.MatChipList}]},propDecorators:{role:[{type:i.Input},{type:i.HostBinding,args:["attr.role"]}]}});var v=function(){};v.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:v,deps:[],target:c.ɵɵFactoryTarget.NgModule}),v.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:v,declarations:[f],exports:[f]}),v.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:v}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:v,decorators:[{type:i.NgModule,args:[{declarations:[f],exports:[f]}]}]});var h=function(){};h.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:h,deps:[],target:c.ɵɵFactoryTarget.Directive}),h.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:h,selector:"mat-chip-list[ariaOrientation]",inputs:{ariaOrientation:"ariaOrientation"},host:{properties:{"attr.aria-orientation":"this.ariaOrientation"}},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:h,decorators:[{type:i.Directive,args:[{selector:"mat-chip-list[ariaOrientation]"}]}],propDecorators:{ariaOrientation:[{type:i.HostBinding,args:["attr.aria-orientation"]},{type:i.Input}]}});var I=function(){};I.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:I,deps:[],target:c.ɵɵFactoryTarget.NgModule}),I.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:I,declarations:[h],exports:[h]}),I.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:I}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:I,decorators:[{type:i.NgModule,args:[{declarations:[h],exports:[h]}]}]});var D=function(){};D.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D,deps:[],target:c.ɵɵFactoryTarget.Directive}),D.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"mat-chip-list[ariaMultiselectable]",inputs:{ariaMultiselectable:"ariaMultiselectable"},host:{properties:{"attr.aria-multiselectable":"this.ariaMultiselectable"}},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D,decorators:[{type:i.Directive,args:[{selector:"mat-chip-list[ariaMultiselectable]"}]}],propDecorators:{ariaMultiselectable:[{type:i.HostBinding,args:["attr.aria-multiselectable"]},{type:i.Input}]}});var O=function(){};O.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,deps:[],target:c.ɵɵFactoryTarget.NgModule}),O.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,declarations:[D],exports:[D]}),O.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,decorators:[{type:i.NgModule,args:[{declarations:[D],exports:[D]}]}]});var _=function(){function t(t){var e=this;this.chipList=t,this._required=!1,this.chipList.stateChanges.subscribe((function(){e.required=e._required}))}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null===t?null:o.coerceBooleanProperty(t)},enumerable:!1,configurable:!0}),t}();_.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:_,deps:[{token:p.MatChipList}],target:c.ɵɵFactoryTarget.Directive}),_.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:_,selector:"mat-chip-list[required]",inputs:{required:"required"},host:{properties:{"attr.aria-required":"this.required"}},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:_,decorators:[{type:i.Directive,args:[{selector:"mat-chip-list[required]"}]}],ctorParameters:function(){return[{type:p.MatChipList}]},propDecorators:{required:[{type:i.HostBinding,args:["attr.aria-required"]},{type:i.Input}]}});var T=function(){};T.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T,deps:[],target:c.ɵɵFactoryTarget.NgModule}),T.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T,declarations:[_],exports:[_]}),T.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T,decorators:[{type:i.NgModule,args:[{declarations:[_],exports:[_]}]}]});var M,b=new i.InjectionToken("MTNA_API_CONFIG");t.MtnaScrollDirection=void 0,(M=t.MtnaScrollDirection||(t.MtnaScrollDirection={})).Up="UP",M.Down="DOWN";var L=function(){function e(){this.isSmoothScrollSupported="scrollBehavior"in document.documentElement.style}return e.prototype.scrollTop=function(e){void 0===e&&(e=0),this.scrollDirectionSubject$&&(window.scrollTo(0,e),this.scrollDirectionSubject$.next(t.MtnaScrollDirection.Up))},e.prototype.scrollToElement=function(t,e){void 0===e&&(e=0);var r=document.getElementById(t);r&&this.isSmoothScrollSupported?window.scrollTo({behavior:"smooth",left:0,top:r.offsetTop+e}):r&&window.scrollTo(0,r.offsetTop+e)},e.prototype.getScrollDirection=function(){var e=this;return void 0===this.scrollDirectionSubject$&&(this.scrollDirectionSubject$=new r.BehaviorSubject(t.MtnaScrollDirection.Up)),this.scrollDirection$||(this.scrollDirection$=r.merge(r.fromEvent(window,"scroll"),r.fromEvent(document,"resize")).pipe(a.map((function(){return window.pageYOffset})),a.distinctUntilChanged(),a.pairwise(),a.filter((function(t){var e=m(t,2),r=e[0],i=e[1];return r>=0&&i>=0&&r!==i&&window.innerHeight+window.pageYOffset<=document.body.offsetHeight})),a.map((function(e){var r=m(e,2),i=r[0];return r[1]<i||window.innerHeight>=document.body.offsetHeight?t.MtnaScrollDirection.Up:t.MtnaScrollDirection.Down}))),this.scrollDirection$.subscribe((function(t){var r;return null===(r=e.scrollDirectionSubject$)||void 0===r?void 0:r.next(t)}))),this.scrollDirectionSubject$.asObservable().pipe(a.distinctUntilChanged())},e.prototype.getDistanceFromBottom=function(){return r.fromEvent(window,"scroll").pipe(a.map((function(){var t=document.documentElement,e=t.scrollTop+window.innerHeight;return t.offsetHeight-e})),a.distinctUntilChanged(),a.share())},e}();L.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:L,deps:[],target:c.ɵɵFactoryTarget.Injectable}),L.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:L,providedIn:"root"}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:L,decorators:[{type:i.Injectable,args:[{providedIn:"root"}]}]});var N="cubic-bezier(0.4, 0.0, 0.2, 1)",S="cubic-bezier(0.0, 0.0, 0.2, 1)",A="cubic-bezier(0.4, 0.0, 1, 1)",E="300ms",C=E+" "+N,j=E+" "+A,w=E+" "+S,F=function(){function t(){}return t.getSlideInFromBottom=function(t,e){return s.trigger(t,[s.state("in",s.style({transform:"translateY(0)"})),s.transition("void => *",[s.style({transform:"translateY(100%)"}),s.animate(e+"ms ease-out")]),s.transition("* => void",[s.animate(e+"ms ease-out",s.style({transform:"translateY(100%)"}))])])},t.getSlideInFromTop=function(t,e){return s.trigger(t,[s.state("in",s.style({transform:"translateY(0)"})),s.transition("void => *",[s.style({transform:"translateY(-100%)"}),s.animate(e+"ms ease-out")]),s.transition("* => void",[s.animate(e+"ms ease-out",s.style({transform:"translateY(-100%)"}))])])},t}();F.SLIDE_IN_DOWN=s.trigger("slideInDown",[s.state("*",s.style({opacity:1,transform:"translateX(0)",display:"block",position:"absolute",width:"100%"})),s.transition(":enter",[s.style({opacity:0,transform:"translateX(-100%)"}),s.animate("0.2s ease-in")]),s.transition(":leave",[s.animate("0.5s ease-out",s.style({opacity:0,transform:"translateY(100%)"}))])]),F.EXPAND_IN_OUT=s.trigger("expandInOut",[s.state("in",s.style({height:"*"})),s.transition("void => *",[s.style({height:"0px"}),s.animate(C)]),s.transition("* => void",[s.style({height:"*",opacity:1}),s.animate(C,s.style({height:0,opacity:0}))])]),F.EXPAND_IN_OUT_WIDTH_HEIGHT=s.trigger("expandInOutWidthHeight",[s.state("in",s.style({height:"*",width:"*"})),s.transition("void => *",[s.style({height:"0px",width:"0px"}),s.animate(C)]),s.transition("* => void",[s.style({height:"*",width:"*",opacity:1}),s.animate(C,s.style({height:0,width:0,opacity:0}))])]),F.FADE_IN_OUT=s.trigger("fadeInOut",[s.state("in",s.style({opacity:1})),s.transition("void => *",[s.style({opacity:0}),s.animate("0.2s ease-in")]),s.transition("* => void",[s.animate("0.2s 10ms ease-out",s.style({opacity:0}))])]),F.FLY_IN_BOTTOM_SLOW=s.trigger("flyInBottomSlow",[s.state("in",s.style({opacity:1,transform:"translateY(0)"})),s.transition("void => *",[s.style({opacity:0,transform:"translateY(100%)"}),s.animate("0.5s ease-out")])]),F.FLY_IN_OUT=s.trigger("flyInOut",[s.state("in",s.style({opacity:1,transform:"translateX(0)"})),s.transition("void => *",[s.style({opacity:0,transform:"translateX(-100%)"}),s.animate("0.2s ease-in")]),s.transition("* => void",[s.animate("0.2s 10ms ease-out",s.style({opacity:0,transform:"translateX(100%)"}))])]),F.FLY_IN_TOP_LEFT=s.trigger("flyInTopLeft",[s.state("in",s.style({opacity:1,transform:"translate(0, 0)"})),s.transition("void => *",[s.style({opacity:0,transform:"translate(-100%, -80%)"}),s.animate("0.2s ease-out")])]),F.FLY_IN_TOP_SLOW=s.trigger("flyInTopSlow",[s.state("in",s.style({opacity:1,transform:"translateY(0)"})),s.transition("void => *",[s.style({opacity:0,transform:"translateY(-100%)"}),s.animate("0.5s ease-out")])]),F.FLY_IN_TOP_RIGHT_FAST=s.trigger("flyInTopRightFast",[s.state("in",s.style({opacity:1,transform:"translate(0, 0)"})),s.transition("void => *",[s.style({opacity:0,transform:"translate(100%, -80%)"}),s.animate("0.2s ease-out")])]),F.FLY_IN_TOP_RIGHT_MEDIUM=s.trigger("flyInTopRightMedium",[s.state("in",s.style({opacity:1,transform:"translate(0, 0)"})),s.transition("void => *",[s.style({opacity:0,transform:"translate(100%, -90%)"}),s.animate("0.35s ease-out")])]),F.FLY_IN_TOP_RIGHT_SLOW=s.trigger("flyInTopRightSlow",[s.state("in",s.style({opacity:1,transform:"translate(0, 0)"})),s.transition("void => *",[s.style({opacity:0,transform:"translate(100%, -1000%)"}),s.animate("0.5s ease-out")])]),F.POS_BOTTOM_TOP=s.trigger("posBottomTop",[s.state("in",s.style({top:"0px"})),s.transition("void => *",[s.style({top:"113%"}),s.animate(".5s .2s ease-in")])]),F.POS_LEFT_RIGHT=s.trigger("posLeftRight",[s.state("in",s.style({right:"0px"})),s.transition("void => *",[s.style({right:"104%"}),s.animate("1s .4s ease-in")])]),F.POS_RIGHT_LEFT=s.trigger("posRightLeft",[s.state("in",s.style({left:"-24px"})),s.transition("void => *",[s.style({left:"100%"}),s.animate(".5s ease-out")])]),F.POS_TOP_BOTTOM=s.trigger("posTopBottom",[s.state("in",s.style({bottom:"-7px"})),s.transition("void => *",[s.style({bottom:"100%"}),s.animate(".3s .2s ease-out")])]),F.SCALE_IN_BOTTOM_TOP=s.trigger("scaleInBottomTop",[s.state("in",s.style({transformOrigin:"center bottom",transform:"scaleY(1)"})),s.transition("void => *",[s.style({transformOrigin:"center bottom",transform:"scaleY(0)"}),s.animate("0.3s .3s ease-out")])]),F.SCALE_IN_LEFT_RIGHT=s.trigger("scaleInLeftRight",[s.state("in",s.style({transformOrigin:"left center",transform:"scaleX(1)"})),s.transition("void => *",[s.style({transformOrigin:"left center",transform:"scaleX(0)"}),s.animate("0.3s .3s ease-out")])]),F.SLIDE_IN_VERTICAL=s.trigger("slideInOutVertical",[s.state("in",s.style({transform:"translateY(0)"})),s.transition("void => *",[s.style({transform:"translateY(-100%)"}),s.animate("100ms ease-in-out")]),s.transition("* => void",[s.animate("100ms ease-in-out",s.style({transform:"translateY(-100%)"}))])]),t.AnimationUtil=F,t.COMPLEX_ACCELERATING=j,t.COMPLEX_DECELERATING=w,t.COMPLEX_STANDARD=C,t.DURATION_DIALOG_IN="150ms",t.DURATION_DIALOG_OUT="75ms",t.DURATION_LARGE_COLLAPSE="250ms",t.DURATION_LARGE_EXPAND=E,t.DURATION_MEDIUM_COLLAPSE="200ms",t.DURATION_MEDIUM_EXPAND="250ms",t.DURATION_SMALL="100ms",t.EASING_ACCELERATING=A,t.EASING_DECELERATING=S,t.EASING_STANDARD=N,t.MTNA_API_CONFIG=b,t.MtnaAriaHeadingLevels=y,t.MtnaChipListAriaMultiselectableOverrideDirective=D,t.MtnaChipListAriaMultiselectableOverrideModule=O,t.MtnaChipListAriaOrientationOverrideDirective=h,t.MtnaChipListAriaOrientationOverrideModule=I,t.MtnaChipListAriaRequiredOverrideDirective=_,t.MtnaChipListAriaRequiredOverrideModule=T,t.MtnaChipListRoleOverrideDirective=f,t.MtnaChipListRoleOverrideModule=v,t.MtnaScrollService=L,t.mixinAriaHeadingLevel=function(t,e){return function(t){function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,d([],m(r)))||this;return n._ariaHeadingLevel=e||"1",n}return g(r,t),Object.defineProperty(r.prototype,"ariaHeadingLevel",{get:function(){return this._ariaHeadingLevel},set:function(t){y.guard(t)&&(this._ariaHeadingLevel=t)},enumerable:!1,configurable:!0}),r}(t)},t.mixinDestroyNotifier=function(t){return function(t){function e(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=t.apply(this,d([],m(e)))||this;return n.destroyed$=new r.Subject,n}return g(e,t),e.prototype.ngOnDestroy=function(){this.destroyed$.next(),this.destroyed$.complete()},e}(t)},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=/sm/6edfe337ebaf466ca1de693c7b15b9df143eb2a064ec50da592c492591639673.map