diff --git a/404.html b/404.html index 76c4bfabc..b5cf41a9a 100644 --- a/404.html +++ b/404.html @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/index.html b/index.html index 76c4bfabc..b5cf41a9a 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/main.fc2e5ee11c88f3e757eb.js b/main.cad1fcc2703c91b39400.js similarity index 75% rename from main.fc2e5ee11c88f3e757eb.js rename to main.cad1fcc2703c91b39400.js index e7a636f42..b862d3ef2 100644 --- a/main.fc2e5ee11c88f3e757eb.js +++ b/main.cad1fcc2703c91b39400.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[179],{88499:t=>{function e(t){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}e.keys=()=>[],e.resolve=e,e.id=88499,t.exports=e},64769:(t,e,n)=>{var i=n(91211),r=n(74788),o=n(12057),s=n(58497),a=n(56083),l=n(79221);let c=(()=>{class t extends a._j{constructor(t,e){super(),this._nextAnimationId=0;const n={id:"0",encapsulation:r.ifc.None,styles:[],data:{animation:[]}};this._renderer=t.createRenderer(e.body,n)}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,a.vP)(t):t;return d(this._renderer,null,e,"register",[n]),new u(e,this._renderer)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.FYo),r.LFG(o.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class u extends a.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new h(this._id,t,e||{},this._renderer)}}class h{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return d(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function d(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const p="@",f="@.disabled";let g=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new m("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(o),new v(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then((()=>{this._microtaskId++}))}scheduleListenerCallback(t,e,n){t>=0&&te(n))):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((()=>{this._zone.run((()=>{this._animationCallbacksBuffer.forEach((t=>{const[e,n]=t;e(n)})),this._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)})),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.FYo),r.LFG(l.Th),r.LFG(r.R0b))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class m{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==p&&e==f?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class v extends m{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==p?"."==e.charAt(1)&&e==f?(n=void 0===n||!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==p){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),o="";return r.charAt(0)!=p&&([r,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,o,(t=>{const e=t._data||-1;this.factory.scheduleListenerCallback(e,n,t)}))}return this.delegate.listen(t,e,n)}}let _=(()=>{class t extends l.Th{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.ɵfac=function(e){return new(e||t)(r.LFG(o.K0),r.LFG(l.Vi),r.LFG(l.NH))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const y=new r.OlP("AnimationModuleType"),b=[{provide:a._j,useClass:c},{provide:l.NH,useFactory:function(){return new l.Ar}},{provide:l.Th,useClass:_},{provide:r.FYo,useFactory:function(t,e,n){return new g(t,e,n)},deps:[i.se,l.Th,r.R0b]}],w=[{provide:l.Vi,useFactory:function(){return(0,l.QN)()?new l.DT:new l.uL}},{provide:y,useValue:"BrowserAnimations"},...b],C=[{provide:l.Vi,useClass:l.nV},{provide:y,useValue:"NoopAnimations"},...b];let x=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?C:w}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:w,imports:[i.b2]}),t})();var O=n(64548),k=n(12849),M=n(42991),P=n(79456),S=n(21022),E=n(20707),A=n(82847),T=n(75452),I=n(23358);const D=new r.OlP("Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),L=new r.OlP("Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),N=new r.OlP("A function that sanitizes value for a CSS rule",{factory:()=>t=>t,providedIn:"root"}),z=I;class F{constructor(t,e,{defaultView:n},i){this.config=t,this.sanitizeStyle=e,this.domPurify=z(n),i.forEach((({name:t,hook:e})=>{this.domPurify.addHook(t,e)}))}sanitize(t,e,n=this.config){if(t===r.q3G.SCRIPT)throw new Error("DOMPurify does not support SCRIPT context");return t===r.q3G.STYLE?this.sanitizeStyle(String(e)):this.domPurify.sanitize(String(e||""),n)}}F.ɵfac=function(t){return new(t||F)(r.LFG(D),r.LFG(N),r.LFG(o.K0),r.LFG(L))},F.ɵprov=r.Yz7({token:F,factory:F.ɵfac,providedIn:"root"}),F.ngInjectableDef=(0,r.Ez6)({factory:function(){return new F((0,r.f3M)(D),(0,r.f3M)(N),(0,r.f3M)(o.K0),(0,r.f3M)(L))},token:F,providedIn:"root"});var R=n(2546),B=n(97582),j=n(34016),$=n(62579),V=n(99434);let U=(()=>{class t{constructor(t,e,n,i){this.isCypress=t,this.pageLoaded$=e,this.router=n,this.storage=i,this.isCypressMode=this.isCypress,this.pageLoadedInit="0",this.pageLoaded=this.pageLoaded$,this.version="1.5.1"}ngOnInit(){this.replaceEnvInURI()}replaceEnvInURI(){return(0,B.mG)(this,void 0,void 0,(function*(){const t=this.storage.getItem("env");t&&(this.storage.removeItem("env"),yield this.router.navigateByUrl(t))}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(V.B4),r.Y36(O.V1),r.Y36(j.F0),r.Y36($.H3))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-app"]],hostVars:5,hostBindings:function(t,e){2&t&&(r.Ikx("$.class._loaded",e.pageLoaded),r.ekj("_is-cypress-mode",e.isCypressMode)("_loaded",e.pageLoadedInit))},decls:8,vars:1,consts:[["ngProjectAs","tuiDocHeader",5,["tuiDocHeader"]],["href","https://github.com/taiga-family/tui-editor","icon","assets/icons/github.svg","iconAlign","left","rel","noreferrer","target","_blank","title","TUI Editor source code on GitHub","tuiLink","","tuiMode","onLight",1,"link"],["href","https://t.me/taiga_ui","icon","assets/icons/telegram.svg","iconAlign","left","rel","noreferrer","target","_blank","title","Get help on Telegram","tuiLink","","tuiMode","onLight",1,"link"],["icon","assets/icons/stackblitz.svg","iconAlign","left","routerLink","stackblitz","title","StackBlitz Starter","tuiLink","","tuiMode","onLight",1,"link"],["ngProjectAs","tuiDocNavigation",5,["tuiDocNavigation"],1,"app-version"]],template:function(t,e){1&t&&(r.TgZ(0,"tui-root"),r.TgZ(1,"tui-doc-main"),r.ynx(2,0),r._UZ(3,"a",1),r._UZ(4,"a",2),r._UZ(5,"a",3),r.BQk(),r.TgZ(6,"p",4),r._uU(7),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(7),r.hij(" v",e.version," "))},directives:[S.G,k.$5,A.V,T.w,j.yS],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-m);color:var(--tui-text-01)}.link[_ngcontent-%COMP%]{margin-left:1rem}.app-version[_ngcontent-%COMP%]{color:var(--tui-text-02);font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}"],changeDetection:0}),t})();const Y=[{section:"Documentation",title:"Starter Kit",route:"starter-kit",keywords:"editor, setup, starter kit, wysiwyg, редактор, текст, html, rich, text"},{section:"Documentation",title:"Playground",keywords:"reproduce, issue, bug, sandbox, playground, test, stackblitz",route:"stackblitz"},{section:"Documentation",title:"Changelog",route:"changelog",keywords:"release, change, changelog, archive, history"},{section:"Examples",title:"ColorPicker",route:"color-picker",keywords:"цвет, выбор, градиент, gradient, палитра, input, inputcolor"},{section:"Examples",title:"Font",route:"font",keywords:"editor, font, wysiwyg, редактор, текст, html, rich, text"},{section:"Examples",title:"Anchors",route:"anchors",keywords:"editor, anchors, wysiwyg, редактор, текст, html, rich, text"},{section:"Examples",title:"Groups",route:"groups",keywords:"editor, draggable, nested, hilite, groups, wysiwyg, редактор, текст, html, rich, text"},{section:"Examples",title:"Focus",route:"focus",keywords:"editor, focus, focusable, wysiwyg, редактор, фокус, html, rich, text"},{section:"Examples",title:"Custom tool",subPages:[{section:"Examples",title:"Paste emoji",keywords:"editor, custom, tool, emoji, wysiwyg, редактор, текст, html, rich, text",route:"/custom-tool/paste-emoji"},{section:"Examples",title:"Color picker",keywords:"editor, custom color picker, color picker, tool, wysiwyg, редактор, выбрать цвет, html, rich, text",route:"/custom-tool/color-picker"},{section:"Examples",title:"Paste image",keywords:"editor, paste image, tool, wysiwyg, редактор, текст, html, rich, text",route:"/custom-tool/paste-image"},{section:"Examples",title:"Font size tool",keywords:"editor, custom font size tool, tool, wysiwyg, редактор, выбрать размер, html, rich, text",route:"/font",fragment:"custom-size-tool"}]},{section:"Examples",title:"Highlight",subPages:[{section:"Examples",title:"Mark text",keywords:"editor, highlight, text, wysiwyg, редактор, текст, подсветка, html, rich, text",route:"/highlight/text"},{section:"Examples",title:"Code block",keywords:"editor, highlight, code, block, pre, wysiwyg, редактор, текст, подсветка, html, rich, text",route:"/highlight/code"}]},{section:"Examples",title:"Processing",subPages:[{section:"Examples",title:"Legacy html",keywords:"editor, processing, content, legacy html, wysiwyg, редактор, текст, html, rich, text",route:"/processing/legacy-html"},{section:"Examples",title:"Cleanup html",keywords:"editor, processing, content, cleanup html, wysiwyg, редактор, текст, html, rich, text",route:"/processing/cleanup-html"},{section:"Examples",title:"Markdown",keywords:"editor, markdown, wysiwyg, редактор, текст, html, rich, text",route:"/processing/markdown"}]},{section:"Examples",title:"Images",subPages:[{section:"Examples",title:"Resizable",keywords:"editor, resizable, image, wysiwyg, редактор, текст, html, rich, text",route:"/images/resizable"},{section:"Examples",title:"Preview images",keywords:"editor, preview, images, wysiwyg, редактор, текст, html, rich, text",route:"/images/preview"},{section:"Examples",title:"Upload",keywords:"editor, upload, images, wysiwyg, редактор, текст, html, rich, text",route:"/images/upload"}]},{section:"Examples",title:"Embed",subPages:[{section:"Examples",title:"Youtube",keywords:"editor, embed, video player, audio player, youtube, wysiwyg, редактор, плейер, плеер, ютуб, текст, html, rich, text",route:"/embed/youtube"},{section:"Examples",title:"Iframe",keywords:"editor, embed, iframe, wysiwyg, редактор, айфрейм, html, rich, text",route:"/embed/iframe"},{section:"Examples",title:"HTML5",keywords:"editor, embed, video player, audio player, html5, wysiwyg, редактор, плеер, html, rich, text",route:"/embed/html5"}]}],q=[{path:"starter-kit",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(1597)]).then(n.bind(n,61597))).ExampleTuiEditorStarterModule})),data:{title:"StarterKit"}},{path:"stackblitz",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(8258).then(n.bind(n,88258))).StackblitzStarterModule})),data:{title:"Stackblitz Starter"}},{path:"color-picker",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(3021)]).then(n.bind(n,53021))).ExampleTuiEditorInputColorPickerModule})),data:{title:"Input color picker"}},{path:"font",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(3963)]).then(n.bind(n,3963))).ExampleTuiEditorFontModule})),data:{title:"Font"}},{path:"anchors",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(9180)]).then(n.bind(n,89180))).ExampleTuiEditorAnchorsModule})),data:{title:"Anchors"}},{path:"focus",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(7856)]).then(n.bind(n,57856))).ExampleTuiEditorFocusModule})),data:{title:"Focus"}},{path:"groups",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(4304)]).then(n.bind(n,4304))).ExampleTuiEditorGroupsModule})),data:{title:"Groups"}},{path:"upload-files",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(5597)]).then(n.bind(n,85597))).ExampleTuiEditorUploadFilesModule})),data:{title:"Upload files"}},{path:"custom-tool/paste-emoji",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(7416)]).then(n.bind(n,7416))).ExampleTuiEditorPasteEmojiToolModule})),data:{title:"Editor — Paste emoji custom tool"}},{path:"custom-tool/color-picker",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(824)]).then(n.bind(n,20824))).ExampleTuiEditorColorPickerToolModule})),data:{title:"Editor — Color picker custom tool"}},{path:"custom-tool/paste-image",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(7375)]).then(n.bind(n,17375))).ExampleTuiEditorPasteImageToolModule})),data:{title:"Editor — Paste image custom tool"}},{path:"highlight/text",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(8234)]).then(n.bind(n,88234))).ExampleTuiEditorMarkTextModule})),data:{title:"Editor — Highlight text"}},{path:"processing/legacy-html",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(5745)]).then(n.bind(n,25745))).ExampleTuiEditorLegacyHtmlModule})),data:{title:"Editor — Legacy html"}},{path:"processing/cleanup-html",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(6553)]).then(n.bind(n,36553))).ExampleTuiEditorCleanupHtmlModule})),data:{title:"Editor — Cleanup html"}},{path:"processing/markdown",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(5518)]).then(n.bind(n,95518))).ExampleTuiEditorMarkdownModule})),data:{title:"Editor — Markdown"}},{path:"highlight/code",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(8155)]).then(n.bind(n,88155))).ExampleTuiEditorCodeBlockModule})),data:{title:"Editor — Highlight code"}},{path:"images/resizable",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(4805)]).then(n.bind(n,14805))).ExampleTuiEditorResizableImagesToolModule})),data:{title:"Editor — Resizable images"}},{path:"images/preview",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(5821)]).then(n.bind(n,65821))).ExampleTuiEditorPreviewImagesToolModule})),data:{title:"Editor — Preview images"}},{path:"images/upload",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(5892)]).then(n.bind(n,15892))).ExampleTuiEditorUploadImagesModule})),data:{title:"Editor — Upload images"}},{path:"embed/youtube",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(9899)]).then(n.bind(n,29899))).ExampleTuiEditorEmbedYoutubeModule})),data:{title:"Editor — Youtube"}},{path:"embed/iframe",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(3566)]).then(n.bind(n,53566))).ExampleTuiEditorEmbedIframeModule})),data:{title:"Editor — Iframe"}},{path:"embed/html5",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(6911),n.e(2361)]).then(n.bind(n,2361))).ExampleTuiEditorEmbedHtml5Module})),data:{title:"Editor — HTML5"}},{path:"changelog",loadChildren:()=>(0,B.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(861).then(n.bind(n,40861))).ExampleTuiEditorChangelogModule})),data:{title:"Changelog"}},{path:"**",redirectTo:"starter-kit"}];let H=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[j.Bz.forRoot(q,{initialNavigation:"enabledBlocking",relativeLinkResolution:"corrected",scrollPositionRestoration:"enabled"})],j.Bz]}),t})();var Z=n(89570),G=n(54789);let J=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["logo"]],decls:4,vars:0,consts:[["routerLink","/","tuiLink","",1,"logo-link"],[1,"logo-name"],["src","assets/icons/logo.svg",1,"logo-icon"],["alt","by Tinkoff","src","assets/icons/by.svg",1,"by"]],template:function(t,e){1&t&&(r.TgZ(0,"a",0),r.TgZ(1,"span",1),r._UZ(2,"tui-svg",2),r.qZA(),r.qZA(),r._UZ(3,"img",3))},directives:[j.yS,A.V,G.PN],styles:["[_nghost-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%], tui-root._mobile [_nghost-%COMP%]{font-size:0}.logo-link[_ngcontent-%COMP%]{display:flex}.logo-name[_ngcontent-%COMP%]{display:flex;color:var(--tui-text-01)}.logo-icon[_ngcontent-%COMP%]{min-width:180px;min-height:30px}.logo[_ngcontent-%COMP%]{margin-right:.625rem}.by[_ngcontent-%COMP%]{margin-left:.875rem}tui-root._mobile[_nghost-%COMP%] .by[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .by[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t})();const X=new Z.Al(J);let Q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[A.j,j.Bz,G.EI]]}),t})(),W=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t,bootstrap:[U]}),t.ɵinj=r.cJS({providers:[{provide:o.S$,useClass:o.b0},{provide:O.Yx,useValue:"TUI Editor | "},{provide:O.Or,useValue:X},{provide:O.AC,useValue:["Description and examples","API"]},{provide:O.V5,useValue:Y},{provide:P.hm,useClass:F},{provide:O.yO,useValue:t=>{const e="https://github.com/taiga-family/tui-editor/tree/main/libs";return t.path?`${e}/${t.path}`:t.package&&"kit"===t.package.toLowerCase()?`${e}/${t.package.toLowerCase()}/src/lib/tui-editor/${(t.header[0].toLowerCase()+t.header.slice(1)).replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}`:null}}],imports:[[i.b2.withServerTransition({appId:"demo"}),H,S.W,E.up,M.E6,x,s.JF,Q,R.JP.forRoot({loader:s.eN}),k.qn,A.j,T.z]]}),t})();(0,r.G48)(),i.q6().bootstrapModule(W).catch((t=>console.error(t)))},56083:(t,e,n)=>{n.d(e,{l3:()=>o,_j:()=>i,LC:()=>r,ZN:()=>g,jt:()=>a,pV:()=>h,IO:()=>d,vP:()=>l,EY:()=>p,oB:()=>c,eR:()=>u,X$:()=>s,ZE:()=>m,k1:()=>v});class i{}class r{}const o="*";function s(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function h(t=null){return{type:9,options:t}}function d(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function p(t,e){return{type:12,timings:t,animation:e}}function f(t){Promise.resolve(null).then(t)}class g{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}class m{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?f((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++e==r&&this._onFinish()})),t.onDestroy((()=>{++n==r&&this._onDestroy()})),t.onStart((()=>{++i==r&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,e)=>Math.max(t,e.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,e)=>null===t||e.totalTime>t.totalTime?e:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}const v="!"},79221:(t,e,n)=>{n.d(e,{Vi:()=>M,Th:()=>re,NH:()=>Ot,uL:()=>be,nV:()=>k,DT:()=>Ce,Ar:()=>kt,QN:()=>xe});var i=n(56083),r=n(74788);function o(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new i.ZN;case 1:return t[0];default:return new i.ZE(t)}}function l(t,e,n,r,o={},s={}){const a=[],l=[];let c=-1,u=null;if(r.forEach((t=>{const n=t.offset,r=n==c,h=r&&u||{};Object.keys(t).forEach((n=>{let r=n,l=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),l){case i.k1:l=o[n];break;case i.l3:l=s[n];break;default:l=e.normalizeStyleValue(n,r,l,a)}h[r]=l})),r||l.push(h),u=h,c=n})),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function c(t,e,n,i){switch(e){case"start":t.onStart((()=>i(n&&u(n,"start",t))));break;case"done":t.onDone((()=>i(n&&u(n,"done",t))));break;case"destroy":t.onDestroy((()=>i(n&&u(n,"destroy",t))))}}function u(t,e,n){const i=n.totalTime,r=!!n.disabled,o=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,r),s=t._data;return null!=s&&(o._data=s),o}function h(t,e,n,i,r="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function d(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,g=(t,e)=>!1,m=(t,e,n)=>[];const v=s();(v||"undefined"!=typeof Element)&&(f=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(v||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),m=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]})),e}let k=(()=>{class t{validateStyleProperty(t){return b(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,o,s=[],a){return new i.ZN(n,r)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),M=(()=>{class t{}return t.NOOP=new k,t})();const P=1e3,S="ng-enter",E="ng-leave",A="ng-trigger",T=".ng-trigger",I="ng-animating",D=".ng-animating";function L(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:N(parseFloat(e[1]),e[2])}function N(t,e){return"s"===e?t*P:t}function z(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){const i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let r,o=0,s="";if("string"==typeof t){const n=t.match(i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=N(parseFloat(n[1]),n[2]);const a=n[3];null!=a&&(o=N(parseFloat(a),n[4]));const l=n[5];l&&(s=l)}else r=t;if(!n){let n=!1,i=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(i,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:o,easing:s}}(t,e,n)}function F(t,e={}){return Object.keys(t).forEach((n=>{e[n]=t[n]})),e}function R(t,e,n={}){if(e)for(let e in t)n[e]=t[e];else F(t,n);return n}function B(t,e,n){return n?e+":"+n+";":""}function j(t){let e="";for(let n=0;n{const r=J(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]})),s()&&j(t))}function V(t,e){t.style&&(Object.keys(e).forEach((e=>{const n=J(e);t.style[n]=""})),s()&&j(t))}function U(t){return Array.isArray(t)?1==t.length?t[0]:(0,i.vP)(t):t}const Y=new RegExp("{{\\s*(.+?)\\s*}}","g");function q(t){let e=[];if("string"==typeof t){let n;for(;n=Y.exec(t);)e.push(n[1]);Y.lastIndex=0}return e}function H(t,e,n){const i=t.toString(),r=i.replace(Y,((t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()}));return r==i?t:r}function Z(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const G=/-+([a-z0-9])/g;function J(t){return t.replace(G,((...t)=>t[1].toUpperCase()))}function X(t,e){return 0===t||0===e}function Q(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let o=e[0],s=[];if(i.forEach((t=>{o.hasOwnProperty(t)||s.push(t),o[t]=n[t]})),s.length)for(var r=1;rfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],o=i[2],s=i[3];e.push(rt(r,s));const a=r==tt&&s==tt;"<"!=o[0]||a||e.push(rt(s,r))}(t,n,e))):n.push(t),n}const nt=new Set(["true","1"]),it=new Set(["false","0"]);function rt(t,e){const n=nt.has(t)||it.has(t),i=nt.has(e)||it.has(e);return(r,o)=>{let s=t==tt||t==r,a=e==tt||e==o;return!s&&n&&"boolean"==typeof r&&(s=r?nt.has(t):it.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?nt.has(e):it.has(e)),s&&a}}const ot=":self",st=new RegExp(`s*${ot}s*,?`,"g");function at(t,e,n){return new lt(t).build(e,n)}class lt{constructor(t){this._driver=t}build(t,e){const n=new ct(e);return this._resetContextStyleTimingState(n),W(this,U(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach((t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach((t=>{n.name=t,r.push(this.visitState(n,e))})),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,o.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:t.name,states:r,transitions:o,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,o=i||{};if(n.styles.forEach((t=>{if(ut(t)){const e=t;Object.keys(e).forEach((t=>{q(e[t]).forEach((t=>{o.hasOwnProperty(t)||r.add(t)}))}))}})),r.size){const n=Z(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=W(this,U(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ht(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map((t=>W(this,t,e))),options:ht(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map((t=>{e.currentTime=n;const r=W(this,t,e);return i=Math.max(i,e.currentTime),r}));return e.currentTime=i,{type:3,steps:r,options:ht(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return dt(z(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some((t=>"{"==t.charAt(0)&&"{"==t.charAt(1)))){const t=dt(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||z(i,e),dt(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let o=t.styles?t.styles:(0,i.oB)({});if(5==o.type)r=this.visitKeyframes(o,e);else{let o=t.styles,s=!1;if(!o){s=!0;const t={};n.easing&&(t.easing=n.easing),o=(0,i.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(o,e);a.isEmptyStep=s,r=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach((t=>{"string"==typeof t?t==i.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)})):n.push(t.styles);let r=!1,o=null;return n.forEach((t=>{if(ut(t)){const e=t,n=e.easing;if(n&&(o=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach((t=>{"string"!=typeof t&&Object.keys(t).forEach((n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],s=o[n];let a=!0;s&&(r!=i&&r>=s.startTime&&i<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=s.startTime),a&&(o[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=q(t);r.length&&r.forEach((t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)}))}(t[n],e.options,e.errors)}))}))}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let o=!1,s=!1,a=0;const l=t.steps.map((t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach((t=>{if(ut(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}}));else if(ut(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),s=s||c<0||c>1,o=o||c0&&i{const o=u>0?i==h?1:u*i:r[i],s=o*f;e.currentTime=d+p.delay+s,p.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)})),n}visitReference(t,e){return{type:8,animation:W(this,U(t.animation),e),options:ht(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ht(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ht(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,o]=function(t){const e=!!t.split(/\s*,\s*/).find((t=>t==ot));return e&&(t=t.replace(st,"")),[t=t.replace(/@\*/g,T).replace(/@\w+/g,(t=>T+"-"+t.substr(1))).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,d(e.collectedStyles,e.currentQuerySelector,{});const s=W(this,U(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:ht(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:z(t.timings,e.errors,!0);return{type:12,animation:W(this,U(t.animation),e),timings:n,options:null}}}class ct{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ut(t){return!Array.isArray(t)&&"object"==typeof t}function ht(t){var e;return t?(t=F(t)).params&&(t.params=(e=t.params)?F(e):null):t={},t}function dt(t,e,n){return{duration:t,delay:e,easing:n}}function pt(t,e,n,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class ft{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const gt=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function vt(t,e,n,i,r,o={},s={},a,l,c=[]){return(new _t).buildKeyframes(t,e,n,i,r,o,s,a,l,c)}class _t{buildKeyframes(t,e,n,i,r,o,s,a,l,c=[]){l=l||new ft;const u=new bt(t,e,l,i,r,c,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),W(this,n,u);const h=u.timelines.filter((t=>t.containsAnimation()));if(h.length&&Object.keys(s).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,u.errors,a)}return h.length?h.map((t=>t.buildKeyframes())):[pt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?L(n.duration):null,o=null!=n.delay?L(n.delay):null;return 0!==r&&t.forEach((t=>{const n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)})),i}visitReference(t,e){e.updateOptions(t.options,!0),W(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=yt);const t=L(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach((t=>W(this,t,i))),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?L(t.options.delay):0;t.steps.forEach((o=>{const s=e.createSubContext(t.options);r&&s.delayNextStep(r),W(this,o,s),i=Math.max(i,s.currentTimeline.currentTime),n.push(s.currentTimeline)})),n.forEach((t=>e.currentTimeline.mergeTimelineCollectedStyles(t))),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return z(e.params?H(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach((t=>{const n=t.offset||0;o.forwardTime(n*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?L(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yt);let o=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach(((n,i)=>{e.currentQueryIndex=i;const s=e.createSubContext(t.options,n);r&&s.delayNextStep(r),n===e.element&&(a=s.currentTimeline),W(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe();const l=s.currentTimeline.currentTime;o=Math.max(o,l)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),s=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;W(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const yt={};class bt{constructor(t,e,n,i,r,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new wt(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=L(n.duration)),null!=n.delay&&(i.delay=L(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach((n=>{e&&t.hasOwnProperty(n)||(t[n]=H(r[n],t,this.errors))}))}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach((t=>{n[t]=e[t]}))}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new bt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=yt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new Ct(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,o){let s=[];if(i&&s.push(this.element),t.length>0){t=(t=t.replace(gt,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);const e=1!=n;let i=this._driver.query(this.element,t,e);0!==n&&(i=n<0?i.slice(i.length+n,i.length):i.slice(0,n)),s.push(...i)}return r||0!=s.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class wt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new wt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((t=>{this._backFill[t]=this._globalTimelineStyles[t]||i.l3,this._currentKeyframe[t]=i.l3})),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const o=r&&r.params||{},s=function(t,e){const n={};let r;return t.forEach((t=>{"*"===t?(r=r||Object.keys(e),r.forEach((t=>{n[t]=i.l3}))):R(t,!1,n)})),n}(t,this._globalTimelineStyles);Object.keys(s).forEach((t=>{const e=H(s[t],o,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:i.l3),this._updateStyle(t,e)}))}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach((e=>{const n=t[e];this._currentKeyframe[e]=n})),Object.keys(this._localTimelineStyles).forEach((t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])})))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach((t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)}))}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach((e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)}))}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach(((o,s)=>{const a=R(o,!0);Object.keys(a).forEach((n=>{const r=a[n];r==i.k1?t.add(n):r==i.l3&&e.add(n)})),n||(a.offset=s/this.duration),r.push(a)}));const o=t.size?Z(t.values()):[],s=e.size?Z(e.values()):[];if(n){const t=r[0],e=F(t);t.offset=0,e.offset=1,r=[t,e]}return pt(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class Ct extends wt{constructor(t,e,n,i,r,o,s=!1){super(t,e,o.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=n+e,s=e/o,a=R(t[0],!1);a.offset=0,r.push(a);const l=R(t[0],!1);l.offset=xt(s),r.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let s=R(t[i],!1);const a=e+s.offset*n;s.offset=xt(a/o),r.push(s)}n=o,e=0,i="",t=r}return pt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function xt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ot{}class kt extends Ot{normalizePropertyName(t,e){return J(t)}normalizeStyleValue(t,e,n,i){let r="";const o=n.toString().trim();if(Mt[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+r}}const Mt=(()=>function(t){const e={};return t.forEach((t=>e[t]=!0)),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Pt(t,e,n,i,r,o,s,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const St={};class Et{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some((t=>t(e,n,i,r)))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o}build(t,e,n,i,r,o,s,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||St,p=s&&s.params||St,f=this.buildStyles(n,p,u),g=a&&a.params||St,m=this.buildStyles(i,g,u),v=new Set,_=new Map,y=new Map,b="void"===i,w={params:Object.assign(Object.assign({},h),g)},C=c?[]:vt(t,e,this.ast.animation,r,o,f,m,w,l,u);let x=0;if(C.forEach((t=>{x=Math.max(t.duration+t.delay,x)})),u.length)return Pt(e,this._triggerName,n,i,b,f,m,[],[],_,y,x,u);C.forEach((t=>{const n=t.element,i=d(_,n,{});t.preStyleProps.forEach((t=>i[t]=!0));const r=d(y,n,{});t.postStyleProps.forEach((t=>r[t]=!0)),n!==e&&v.add(n)}));const O=Z(v.values());return Pt(e,this._triggerName,n,i,b,f,m,C,O,_,y,x)}}class At{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=F(this.defaultParams);return Object.keys(t).forEach((e=>{const n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach((t=>{let o=r[t];o.length>1&&(o=H(o,i,e));const s=this.normalizer.normalizePropertyName(t,e);o=this.normalizer.normalizeStyleValue(t,s,o,e),n[s]=o}))}})),n}}class Tt{constructor(t,e,n){var i,r;this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach((t=>{const e=t.options&&t.options.params||{};this.states[t.name]=new At(t.style,e,n)})),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach((e=>{this.transitionFactories.push(new Et(t,e,this.states))})),this.fallbackTransition=(i=t,r=this.states,this._normalizer,new Et(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},r))}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find((r=>r.match(t,e,n,i)))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Dt=new ft;class Lt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=at(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=l(this._driver,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],o=this._animations[t];let s;const l=new Map;if(o?(s=vt(this._driver,e,o,S,E,{},{},n,Dt,r),s.forEach((t=>{const e=d(l,t.element,{});t.postStyleProps.forEach((t=>e[t]=null))}))):(r.push("The requested animation doesn't exist or has already been destroyed"),s=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);l.forEach(((t,e)=>{Object.keys(t).forEach((n=>{t[n]=this._driver.computeStyle(e,n,i.l3)}))}));const c=a(s.map((t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)})));return this._playersById[t]=c,c.onDestroy((()=>this.destroy(t))),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const r=h(e,"","","");return c(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n){const n=i[0]||{};return void this.create(t,e,n)}const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Nt="ng-animate-queued",zt="ng-animate-disabled",Ft=".ng-animate-disabled",Rt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$t="__ng_removed";class Vt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value"),i=n?t.value:t;if(this.value=function(t){return null!=t?t:null}(i),n){const e=F(t);delete e.value,this.options=e}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach((n=>{null==t[n]&&(t[n]=e[n])}))}}}const Ut="void",Yt=new Vt(Ut);class qt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Kt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const o=d(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Kt(t,A),Kt(t,A+"-"+e),a[e]=Yt),()=>{this._engine.afterFlush((()=>{const t=o.indexOf(s);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]}))}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),o=new Zt(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(Kt(t,A),Kt(t,A+"-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const l=new Vt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),s[e]=l,a||(a=Yt),l.value!==Ut&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let i=0;i{V(t,n),$(t,i)}))}return}const c=d(this._engine.playersByElement,t,[]);c.forEach((t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()}));let u=r.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:o,isFallbackTransition:h}),h||(Kt(t,Nt),o.onStart((()=>{te(t,Nt)}))),o.onDone((()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(o);t>=0&&n.splice(t,1)}})),this.players.push(o),c.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach(((e,n)=>{delete e[t]})),this._elementListeners.forEach(((e,n)=>{this._elementListeners.set(n,e.filter((e=>e.name!=t)))}))}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach((t=>t.destroy())),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,T,!0);n.forEach((t=>{if(t[$t])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach((n=>n.triggerLeaveAnimation(t,e,!1,!0))):this.clearElementCache(t)})),this._engine.afterFlushAnimationsDone((()=>n.forEach((t=>this.clearElementCache(t)))))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const o=[];if(Object.keys(r).forEach((e=>{if(this._triggers[e]){const n=this.trigger(t,e,Ut,i);n&&o.push(n)}})),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(o).onDone((()=>this._engine.processLeaveNode(t))),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach((e=>{const r=e.name;if(i.has(r))return;i.add(r);const o=this._triggers[r].fallbackTransition,s=n[r]||Yt,a=new Vt(Ut),l=new Zt(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:o,fromState:s,toState:a,player:l,isFallbackTransition:!0})}))}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[$t];i&&i!==Bt||(n.afterFlush((()=>this.clearElementCache(t))),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Kt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach((n=>{const i=n.player;if(i.destroyed)return;const r=n.element,o=this._elementListeners.get(r);o&&o.forEach((e=>{if(e.name==n.triggerName){const i=h(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,c(n.player,e.phase,i,e.callback)}})),i.markedForDestroy?this._engine.afterFlush((()=>{i.destroy()})):e.push(n)})),this._queue=[],e.sort(((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1}))}destroy(t){this.players.forEach((t=>t.destroy())),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find((e=>e.element===t))||e,e}}class Ht{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach((e=>{e.players.forEach((e=>{e.queued&&t.push(e)}))})),t}createNamespace(t,e){const n=new qt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--){const n=this._namespaceList[r];if(this.driver.containsElement(n.hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush((()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((()=>n.destroy(e)))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Kt(t,zt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),te(t,zt))}removeNode(t,e,n,i){if(Gt(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[$t]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return Gt(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,T,!0);e.forEach((t=>this.destroyActiveAnimationsForElement(t))),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D,!0),e.forEach((t=>this.finishActiveQueriedAnimationOnElement(t))))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach((t=>{t.queued?t.markedForDestroy=!0:t.destroy()}))}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach((t=>t.finish()))}whenRenderingDone(){return new Promise((t=>{if(this.players.length)return a(this.players).onDone((()=>t()));t()}))}processLeaveNode(t){const e=t[$t];if(e&&e.setForRemoval){if(t[$t]=Bt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Ft)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ft,!0).forEach((t=>{this.markElementAsDisabled(t,!1)}))}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach(((t,e)=>this._balanceNamespaceList(t,e))),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt())),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone((()=>{t.forEach((t=>t()))})):t.forEach((t=>t()))}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new ft,r=[],o=new Map,s=[],l=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach((t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let t=0;t{const n=S+v++;m.set(e,n),t.forEach((t=>Kt(t,n)))}));const _=[],y=new Set,b=new Set;for(let t=0;ty.add(t))):b.add(e))}const w=new Map,C=Qt(f,Array.from(y));C.forEach(((t,e)=>{const n=E+v++;w.set(e,n),t.forEach((t=>Kt(t,n)))})),t.push((()=>{g.forEach(((t,e)=>{const n=m.get(e);t.forEach((t=>te(t,n)))})),C.forEach(((t,e)=>{const n=w.get(e);t.forEach((t=>te(t,n)))})),_.forEach((t=>{this.processLeaveNode(t)}))}));const x=[],O=[];for(let t=this._namespaceList.length-1;t>=0;t--)this._namespaceList[t].drainQueuedTransitions(e).forEach((t=>{const e=t.player,i=t.element;if(x.push(e),this.collectedEnterElements.length){const t=i[$t];if(t&&t.setForMove)return void e.destroy()}const o=!p||!this.driver.containsElement(p,i),a=w.get(i),h=m.get(i),f=this._buildInstruction(t,n,h,a,o);if(f.errors&&f.errors.length)return void O.push(f);if(o)return e.onStart((()=>V(i,f.fromStyles))),e.onDestroy((()=>$(i,f.toStyles))),void r.push(e);if(t.isFallbackTransition)return e.onStart((()=>V(i,f.fromStyles))),e.onDestroy((()=>$(i,f.toStyles))),void r.push(e);f.timelines.forEach((t=>t.stretchStartingKeyframe=!0)),n.append(i,f.timelines);const g={instruction:f,player:e,element:i};s.push(g),f.queriedElements.forEach((t=>d(l,t,[]).push(e))),f.preStyleProps.forEach(((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach((e=>t.add(e)))}})),f.postStyleProps.forEach(((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach((t=>i.add(t)))}))}));if(O.length){const t=[];O.forEach((e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach((e=>t.push(`- ${e}\n`)))})),x.forEach((t=>t.destroy())),this.reportError(t)}const k=new Map,M=new Map;s.forEach((t=>{const e=t.element;n.has(e)&&(M.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))})),r.forEach((t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((t=>{d(k,e,[]).push(t),t.destroy()}))}));const P=_.filter((t=>ie(t,c,u))),A=new Map;Xt(A,this.driver,b,u,i.l3).forEach((t=>{ie(t,c,u)&&P.push(t)}));const T=new Map;g.forEach(((t,e)=>{Xt(T,this.driver,new Set(t),c,i.k1)})),P.forEach((t=>{const e=A.get(t),n=T.get(t);A.set(t,Object.assign(Object.assign({},e),n))}));const I=[],L=[],N={};s.forEach((t=>{const{element:e,player:i,instruction:s}=t;if(n.has(e)){if(h.has(e))return i.onDestroy((()=>$(e,s.toStyles))),i.disabled=!0,i.overrideTotalTime(s.totalTime),void r.push(i);let t=N;if(M.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=M.get(n);if(e){t=e;break}i.push(n)}i.forEach((e=>M.set(e,t)))}const n=this._buildAnimation(i.namespaceId,s,k,o,T,A);if(i.setRealPlayer(n),t===N)I.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=a(e)),r.push(i)}}else V(e,s.fromStyles),i.onDestroy((()=>$(e,s.toStyles))),L.push(i),h.has(e)&&r.push(i)})),L.forEach((t=>{const e=o.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}})),r.forEach((t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(let t=0;t<_.length;t++){const e=_[t],n=e[$t];if(te(e,E),n&&n.hasAnimation)continue;let i=[];if(l.size){let t=l.get(e);t&&t.length&&i.push(...t);let n=this.driver.query(e,D,!0);for(let t=0;t!t.destroyed));r.length?ee(this,e,r):this.processLeaveNode(e)}return _.length=0,I.forEach((t=>{this.players.push(t),t.onDone((()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)})),t.play()})),I}elementContainsData(t,e){let n=!1;const i=e[$t];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==Ut;e.forEach((e=>{e.queued||(t||e.triggerName==i)&&o.push(e)}))}}return(n||i)&&(o=o.filter((t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName)))),o}_beforeAnimationBuild(t,e,n){const i=e.triggerName,r=e.element,o=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:i;for(const t of e.timelines){const i=t.element,a=i!==r,l=d(n,i,[]);this._getPreviousPlayers(i,a,o,s,e.toState).forEach((t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)}))}V(r,e.fromStyles)}_buildAnimation(t,e,n,r,o,s){const c=e.triggerName,u=e.element,h=[],p=new Set,f=new Set,g=e.timelines.map((e=>{const a=e.element;p.add(a);const d=a[$t];if(d&&d.removedBeforeQueried)return new i.ZN(e.duration,e.delay);const g=a!==u,m=function(t){const e=[];return ne(t,e),e}((n.get(a)||Rt).map((t=>t.getRealPlayer()))).filter((t=>{const e=t;return!!e.element&&e.element===a})),v=o.get(a),_=s.get(a),y=l(this.driver,this._normalizer,0,e.keyframes,v,_),b=this._buildPlayer(e,y,m);if(e.subTimeline&&r&&f.add(a),g){const e=new Zt(t,c,a);e.setRealPlayer(b),h.push(e)}return b}));h.forEach((t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone((()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t)))})),p.forEach((t=>Kt(t,I)));const m=a(g);return m.onDestroy((()=>{p.forEach((t=>te(t,I))),$(u,e.toStyles)})),f.forEach((t=>{d(r,t,[]).push(m)})),m}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new i.ZN(t.duration,t.delay)}}class Zt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new i.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((e=>{this._queuedCallbacks[e].forEach((n=>c(t,e,void 0,n)))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart((()=>e.triggerCallback("start"))),t.onDone((()=>this.finish())),t.onDestroy((()=>this.destroy()))}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Gt(t){return t&&1===t.nodeType}function Jt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Xt(t,e,n,i,r){const o=[];n.forEach((t=>o.push(Jt(t))));const s=[];i.forEach(((n,i)=>{const o={};n.forEach((t=>{const n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i[$t]=jt,s.push(i))})),t.set(i,o)}));let a=0;return n.forEach((t=>Jt(t,o[a++]))),s}function Qt(t,e){const n=new Map;if(t.forEach((t=>n.set(t,[]))),0==e.length)return n;const i=new Set(e),r=new Map;function o(t){if(!t)return 1;let e=r.get(t);if(e)return e;const s=t.parentNode;return e=n.has(s)?s:i.has(s)?1:o(s),r.set(t,e),e}return e.forEach((t=>{const e=o(t);1!==e&&n.get(e).push(t)})),n}const Wt="$$classes";function Kt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Wt];n||(n=t[Wt]={}),n[e]=!0}}function te(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Wt];n&&delete n[e]}}function ee(t,e,n){a(n).onDone((()=>t.processLeaveNode(e)))}function ne(t,e){for(let n=0;nr.add(t))):e.set(t,i),n.delete(t),!0}class re{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ht(t,e,n),this._timelineEngine=new Lt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const o=t+"-"+i;let s=this._triggerCache[o];if(!s){const t=[],e=at(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e,n){return new Tt(t,e,n)}(i,e,this._normalizer),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,i,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=p(n),o=i;this._timelineEngine.command(t,e,r,o)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=p(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function oe(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=ae(e[0]),e.length>1&&(i=ae(e[e.length-1]))):e&&(n=ae(e)),n||i?new se(t,n,i):null}let se=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&$(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($(this._element,this._initialStyles),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),$(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ae(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=ve(t,"").trim();n.length&&(function(t,e){let n=0;for(let e=0;e=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),ge(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ve(t,"").split(","),i=fe(n,e);i>=0&&(n.splice(i,1),me(t,"",n.join(",")))}(this._element,this._name))}}function de(t,e,n){me(t,"PlayState",n,pe(t,e))}function pe(t,e){const n=ve(t,"");return n.indexOf(",")>0?fe(n.split(","),e):fe([n],e)}function fe(t,e){for(let n=0;n=0)return n;return-1}function ge(t,e,n){n?t.removeEventListener(ue,e):t.addEventListener(ue,e)}function me(t,e,n,i){const r=ce+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function ve(t,e){return t.style[ce+e]||""}class _e{constructor(t,e,n,i,r,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach((t=>t())),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this.element,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new he(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(()=>this.finish()))}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach((n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:K(this.element,n))}))}this.currentSnapshot=t}}class ye extends i.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=O(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((t=>{this._startingStyles[t]=this.element.style[t]})),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((t=>this.element.style.setProperty(t,this._styles[t]))),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach((t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)})),this._startingStyles=null,super.destroy())}}class be{constructor(){this._count=0}validateStyleProperty(t){return b(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map((t=>O(t)));let i=`@keyframes ${e} {\n`,r="";n.forEach((t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach((e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}})),i+=`${r}}\n`})),i+="}\n";const o=document.createElement("style");return o.textContent=i,o}animate(t,e,n,i,r,o=[],s){const a=o.filter((t=>t instanceof _e)),l={};X(n,i)&&a.forEach((t=>{let e=t.currentSnapshot;Object.keys(e).forEach((t=>l[t]=e[t]))}));const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach((t=>{Object.keys(t).forEach((n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=Q(t,e,l));if(0==n)return new ye(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e),d=function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head}(t);d.appendChild(h);const p=oe(t,e),f=new _e(t,e,u,n,i,r,c,p);return f.onDestroy((()=>{var t;(t=h).parentNode.removeChild(t)})),f}}class we{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(()=>this._onFinish()))}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((t=>t())),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:K(this.element,e))})),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}class Ce{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Oe().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return b(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const l={},c=o.filter((t=>t instanceof we));X(n,i)&&c.forEach((t=>{let e=t.currentSnapshot;Object.keys(e).forEach((t=>l[t]=e[t]))}));const u=oe(t,e=Q(t,e=e.map((t=>R(t,!1))),l));return new we(t,e,a,u)}}function xe(){return"function"==typeof Oe()}function Oe(){return o()&&Element.prototype.animate||{}}},12057:(t,e,n)=>{n.d(e,{mr:()=>b,Ov:()=>nt,ez:()=>lt,K0:()=>l,Do:()=>C,Ts:()=>rt,Nd:()=>ot,V_:()=>h,Ye:()=>x,S$:()=>_,i8:()=>it,mk:()=>R,$G:()=>B,sg:()=>$,O5:()=>U,PC:()=>J,RF:()=>Z,n9:()=>G,tP:()=>X,b0:()=>w,Zx:()=>at,lw:()=>c,EM:()=>pt,JF:()=>mt,NF:()=>ht,PM:()=>dt,w_:()=>a,bD:()=>ct,q:()=>o,Mx:()=>F,HT:()=>s});var i=n(74788);let r=null;function o(){return r}function s(t){r||(r=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.ɵfac=function(e){return new(e||t)(i.LFG(l))},t.ɵprov=(0,i.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,i.LFG)(l))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length,i=n-("/"===t[n-1]?1:0);return t.slice(0,i)+t.slice(n)}function v(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=(0,i.Yz7)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const b=new i.OlP("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+v(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+v(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+v(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(c),i.LFG(b,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),C=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(c),i.LFG(b,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),x=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(k(n)),this._platformStrategy.onPopState((t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})}))}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+v(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,k(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((t=>{this._notifyUrlChangeListeners(t.url,t.state)})))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach((n=>n(t,e)))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.ɵfac=function(e){return new(e||t)(i.LFG(_),i.LFG(c))},t.normalizeQueryParams=v,t.joinWithSlash=g,t.stripTrailingSlash=m,t.ɵprov=(0,i.Yz7)({factory:O,token:t,providedIn:"root"}),t})();function O(){return new x((0,i.LFG)(_),(0,i.LFG)(c))}function k(t){return t.replace(/\/index.html$/,"")}var M=(()=>((M=M||{})[M.Decimal=0]="Decimal",M[M.Percent=1]="Percent",M[M.Currency=2]="Currency",M[M.Scientific=3]="Scientific",M))(),P=(()=>((P=P||{})[P.Zero=0]="Zero",P[P.One=1]="One",P[P.Two=2]="Two",P[P.Few=3]="Few",P[P.Many=4]="Many",P[P.Other=5]="Other",P))(),S=(()=>((S=S||{})[S.Decimal=0]="Decimal",S[S.Group=1]="Group",S[S.List=2]="List",S[S.PercentSign=3]="PercentSign",S[S.PlusSign=4]="PlusSign",S[S.MinusSign=5]="MinusSign",S[S.Exponential=6]="Exponential",S[S.SuperscriptingExponent=7]="SuperscriptingExponent",S[S.PerMille=8]="PerMille",S[S[1/0]=9]="Infinity",S[S.NaN=10]="NaN",S[S.TimeSeparator=11]="TimeSeparator",S[S.CurrencyDecimal=12]="CurrencyDecimal",S[S.CurrencyGroup=13]="CurrencyGroup",S))();function E(t,e){const n=(0,i.cg1)(t),r=n[i.wAp.NumberSymbols][e];if(void 0===r){if(e===S.CurrencyDecimal)return n[i.wAp.NumberSymbols][S.Decimal];if(e===S.CurrencyGroup)return n[i.wAp.NumberSymbols][S.Group]}return r}const A=i.kL8,T=/^(\d+)?\.((\d+)(-(\d+))?)?$/,I=".",D="0";function L(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class N{}let z=(()=>{class t extends N{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(A(e||this.locale)(t)){case P.Zero:return"zero";case P.One:return"one";case P.Two:return"two";case P.Few:return"few";case P.Many:return"many";default:return"other"}}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.soG))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})();function F(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let R=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem((t=>this._toggleClass(t.key,t.currentValue))),t.forEachChangedItem((t=>this._toggleClass(t.key,t.currentValue))),t.forEachRemovedItem((t=>{t.previousValue&&this._toggleClass(t.key,!1)}))}_applyIterableChanges(t){t.forEachAddedItem((t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)})),t.forEachRemovedItem((t=>this._toggleClass(t.item,!1)))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach((t=>this._toggleClass(t,!0))):Object.keys(t).forEach((e=>this._toggleClass(e,!!t[e]))))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach((t=>this._toggleClass(t,!1))):Object.keys(t).forEach((t=>this._toggleClass(t,!1))))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach((t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.ɵdir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),B=(()=>{class t{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(i.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(i._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b))},t.ɵdir=i.lG2({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.TTD]}),t})();class j{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let $=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error(`Cannot find a differ supporting object '${e}' of type '${t=e,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation(((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new j(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new V(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const o=new V(t,r);e.push(o)}}));for(let t=0;t{this._viewContainer.get(t.currentIndex).context.$implicit=t.item}))}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.ɵdir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class V{constructor(t,e){this.record=t,this.view=e}}let U=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Y,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){q("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){q("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.ɵdir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Y{constructor(){this.$implicit=null,this.ngIf=null}}function q(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class H{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Z=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new H(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(Z,9))},t.ɵdir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),J=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem((t=>this._setStyle(t.key,null))),t.forEachAddedItem((t=>this._setStyle(t.key,t.currentValue))),t.forEachChangedItem((t=>this._setStyle(t.key,t.currentValue)))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.aQg),i.Y36(i.Qsj))},t.ɵdir=i.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),X=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b))},t.ɵdir=i.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.TTD]}),t})();function Q(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}class W{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class K{createSubscription(t,e){return t.then(e,(t=>{throw t}))}dispose(t){}onDestroy(t){}}const tt=new K,et=new W;let nt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,(e=>this._updateLatestValue(t,e)))}_selectStrategy(e){if((0,i.QGY)(e))return tt;if((0,i.F4k)(e))return et;throw Q(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.ɵpipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),it=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Q(t,e);return e.toLowerCase()}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"lowercase",type:t,pure:!0}),t})(),rt=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"json",type:t,pure:!1}),t})(),ot=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=st}transform(t,e=st){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t),i=e!==this.compareFn;return n&&(this.keyValues=[],n.forEachItem((t=>{this.keyValues.push({key:t.key,value:t.currentValue})}))),(n||i)&&(this.keyValues.sort(e),this.compareFn=e),this.keyValues}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.aQg,16))},t.ɵpipe=i.Yjl({name:"keyvalue",type:t,pure:!1}),t})();function st(t,e){const n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n{class t{constructor(t){this._locale=t}transform(e,n,r){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function(t,e,n){return function(t,e,n,i,r,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,n,i,r,o,s=Math.abs(t)+"",a=0;for((n=s.indexOf(I))>-1&&(s=s.replace(I,"")),(i=s.search(/e/i))>0?(n<0&&(n=i),n+=+s.slice(i+1),s=s.substring(0,i)):n<0&&(n=s.length),i=0;s.charAt(i)===D;i++);if(i===(o=s.length))e=[0],n=1;else{for(o--;s.charAt(o)===D;)o--;for(n-=i,e=[],r=0;i<=o;i++,r++)e[r]=Number(s.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);s&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(o){const t=o.match(T);if(null===t)throw new Error(`${o} is not a valid digit info`);const e=t[1],n=t[3],i=t[5];null!=e&&(u=L(e)),null!=n&&(h=L(n)),null!=i?d=L(i):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,r=i.length-t.integerLen;const o=Math.min(Math.max(e,r),n);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let t=s;t=5)if(s-1<0){for(let e=0;e>s;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;r=c?i.pop():l=!1),e>=10?1:0}),0);u&&(i.unshift(u),t.integerLen++)}(c,h,d);let p=c.digits,f=c.integerLen;const g=c.exponent;let m=[];for(l=p.every((t=>!t));f0?m=p.splice(f,p.length):(m=p,p=[0]);const v=[];for(p.length>=e.lgSize&&v.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)v.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&v.unshift(p.join("")),a=v.join(E(n,i)),m.length&&(a+=E(n,r)+m.join("")),g&&(a+=E(n,S.Exponential)+"+"+g)}else a=E(n,S.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],o=i[1],s=-1!==r.indexOf(I)?r.split(I):[r.substring(0,r.lastIndexOf(D)+1),r.substring(r.lastIndexOf(D)+1)],a=s[0],l=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let t=0;t{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({providers:[{provide:N,useClass:z}]}),t})();const ct="browser",ut="server";function ht(t){return t===ct}function dt(t){return t===ut}let pt=(()=>{class t{}return t.ɵprov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new ft((0,i.LFG)(l),window)}),t})();class ft{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=gt(this.window.history)||gt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function gt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class mt{}},58497:(t,e,n)=>{n.d(e,{eN:()=>A,JF:()=>U});var i=n(12057),r=n(74788),o=n(25917),s=n(29856),a=n(94612),l=n(45435),c=n(88002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach((t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}}))}:()=>{this.headers=new Map,Object.keys(t).forEach((e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))}))}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((t=>this.applyUpdate(t))),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach((e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))}))}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter((t=>-1===r.indexOf(t))),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach((e=>t(this.normalizedNames.get(e),this.headers.get(e))))}}class p{encodeKey(t){return m(t)}encodeValue(t){return m(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const f=/%(\d[a-f0-9])/gi,g={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function m(t){return encodeURIComponent(t).replace(f,((t,e)=>{var n;return null!==(n=g[e])&&void 0!==n?n:t}))}function v(t){return`${t}`}class _{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach((t=>{const i=t.indexOf("="),[r,o]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],s=n.get(r)||[];s.push(o),n.set(r,s)})),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach((e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach((n=>{const i=t[n];Array.isArray(i)?i.forEach((t=>{e.push({param:n,value:t,op:"a"})})):e.push({param:n,value:i,op:"a"})})),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map((t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map((t=>e+"="+this.encoder.encodeValue(t))).join("&")})).filter((t=>""!==t)).join("&")}clone(t){const e=new _({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((t=>this.map.set(t,this.cloneFrom.map.get(t)))),this.updates.forEach((t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(v(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(v(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}})),this.cloneFrom=this.updates=null)}}class y{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function C(t){return"undefined"!=typeof FormData&&t instanceof FormData}class x{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.context||(this.context=new y),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?"),i=-1===n?"?":ne.set(n,t.setHeaders[n])),l)),t.setParams&&(c=Object.keys(t.setParams).reduce(((e,n)=>e.set(n,t.setParams[n])),c)),new x(n,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var O=(()=>((O=O||{})[O.Sent=0]="Sent",O[O.UploadProgress=1]="UploadProgress",O[O.ResponseHeader=2]="ResponseHeader",O[O.DownloadProgress=3]="DownloadProgress",O[O.Response=4]="Response",O[O.User=5]="User",O))();class k{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class M extends k{constructor(t={}){super(t),this.type=O.ResponseHeader}clone(t={}){return new M({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class P extends k{constructor(t={}){super(t),this.type=O.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new P({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends k{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function E(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let A=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof x)i=t;else{let r,o;r=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(o=n.params instanceof _?n.params:new _({fromObject:n.params})),i=new x(t,e,void 0!==n.body?n.body:null,{headers:r,context:n.context,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=(0,o.of)(i).pipe((0,a.b)((t=>this.handler.handle(t))));if(t instanceof x||"events"===n.observe)return r;const s=r.pipe((0,l.h)((t=>t instanceof P)));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe((0,c.U)((t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return s.pipe((0,c.U)((t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return s.pipe((0,c.U)((t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));default:return s.pipe((0,c.U)((t=>t.body)))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new _).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,E(n,e))}post(t,e,n={}){return this.request("POST",t,E(n,e))}put(t,e,n={}){return this.request("PUT",t,E(n,e))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(u))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class T{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const I=new r.OlP("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const L=/^\)\]\}',?\n/;let N=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.y((e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach(((t,e)=>n.setRequestHeader(t,e.join(",")))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const o=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",o=new d(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new M({headers:o,status:e,statusText:i,url:s}),r},s=()=>{let{headers:i,status:r,statusText:s,url:a}=o(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(L,"");try{l=""!==l?JSON.parse(l):null}catch(e){l=t,c&&(c=!1,l={error:e,text:l})}}c?(e.next(new P({body:l,headers:i,status:r,statusText:s,url:a||void 0})),e.complete()):e.error(new S({error:l,headers:i,status:r,statusText:s,url:a||void 0}))},a=t=>{const{url:i}=o(),r=new S({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const c=i=>{l||(e.next(o()),l=!0);let r={type:O.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:O.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:O.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}}))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.JF))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const z=new r.OlP("XSRF_COOKIE_NAME"),F=new r.OlP("XSRF_HEADER_NAME");class R{}let B=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(z))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),j=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(R),r.LFG(F))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),$=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(I,[]);this.chain=t.reduceRight(((t,e)=>new T(t,e)),this.backend)}return this.chain.handle(t)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(h),r.LFG(r.zs3))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),V=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:j,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:z,useValue:e.cookieName}:[],e.headerName?{provide:F,useValue:e.headerName}:[]]}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:[j,{provide:I,useExisting:j,multi:!0},{provide:R,useClass:B},{provide:z,useValue:"XSRF-TOKEN"},{provide:F,useValue:"X-XSRF-TOKEN"}]}),t})(),U=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:[A,{provide:u,useClass:$},N,{provide:h,useExisting:N}],imports:[[V.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},74788:(t,e,n)=>{n.d(e,{deG:()=>Fn,tb:()=>zc,AFp:()=>Tc,ip1:()=>Ec,CZH:()=>Ac,hGG:()=>Au,z2F:()=>bu,sBO:()=>Cl,Sil:()=>Zc,_Vd:()=>Ha,EJc:()=>Bc,SBq:()=>Xa,qLn:()=>Br,vpe:()=>cc,gxx:()=>ts,tBr:()=>si,XFs:()=>A,OlP:()=>zn,zs3:()=>gs,ZZ4:()=>gl,aQg:()=>vl,soG:()=>Rc,YKP:()=>Il,v3s:()=>Cu,h0i:()=>Tl,PXZ:()=>gu,R0b:()=>Xc,FiY:()=>ai,Lbi:()=>Nc,g9A:()=>Lc,n_E:()=>hc,Qsj:()=>Ka,FYo:()=>Wa,JOm:()=>ui,Tiy:()=>el,q3G:()=>Ir,PiD:()=>li,tp0:()=>ci,EAV:()=>ku,Rgc:()=>Pl,dDg:()=>iu,DyG:()=>Rn,GfV:()=>nl,s_b:()=>Ll,ifc:()=>z,eFA:()=>mu,Ez6:()=>w,G48:()=>du,Gpc:()=>p,f3M:()=>ii,X6Q:()=>hu,_c5:()=>Su,VLi:()=>su,c2e:()=>Fc,zSh:()=>ns,wAp:()=>Ta,vHH:()=>m,EiD:()=>Ar,mCW:()=>pr,qzn:()=>nr,JVY:()=>rr,pB0:()=>lr,eBb:()=>sr,L6k:()=>or,LAX:()=>ar,cg1:()=>Sa,Tjo:()=>Pu,kL8:()=>Ea,yhl:()=>ir,dqk:()=>$,sIi:()=>ks,CqO:()=>Hs,QGY:()=>Ys,F4k:()=>qs,RDi:()=>Wt,AaK:()=>u,z3N:()=>er,qOj:()=>vs,TTD:()=>Ut,_Bn:()=>Va,xp6:()=>io,uIk:()=>As,Tol:()=>la,ekj:()=>aa,Suo:()=>xc,Xpm:()=>W,lG2:()=>ot,Yz7:()=>b,cJS:()=>C,oAB:()=>nt,Yjl:()=>st,Y36:()=>Ds,_UZ:()=>Bs,GkF:()=>Vs,BQk:()=>$s,ynx:()=>js,qZA:()=>Rs,TgZ:()=>Fs,EpF:()=>Us,n5z:()=>Tn,Ikx:()=>xa,LFG:()=>ni,$8M:()=>Dn,$Z:()=>Ls,NdJ:()=>Zs,CRH:()=>Oc,kcU:()=>He,O4$:()=>qe,oxw:()=>Xs,ALo:()=>ec,lcZ:()=>nc,xi3:()=>ic,Dn7:()=>rc,Hsn:()=>Ks,F$t:()=>Ws,Q6J:()=>Ns,DdM:()=>Jl,VKq:()=>Xl,WLB:()=>Ql,iGM:()=>wc,MAs:()=>Is,evT:()=>Vr,Jf7:()=>$r,CHM:()=>ve,oJD:()=>Dr,uOi:()=>Nr,LSH:()=>Lr,kYT:()=>it,Udp:()=>sa,d8E:()=>Oa,YNc:()=>Ts,W1O:()=>Sc,_uU:()=>ya,Oqu:()=>ba,hij:()=>wa,AsE:()=>Ca,Gf:()=>Cc});var i=n(79765),r=n(59178),o=n(29856),s=n(66682),a=n(9945);function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function u(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(u).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return u(this())},t}function f(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function v(t){return"string"==typeof t?t:null==t?"":String(t)}function _(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():v(t)}function y(t,e){const n=e?` in ${e}`:"";throw new m("201",`No provider for ${_(t)} found${n}`)}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const w=b;function C(t){return{providers:t.providers||[],imports:t.imports||[]}}function x(t){return O(t,M)||O(t,S)}function O(t,e){return t.hasOwnProperty(e)?t[e]:null}function k(t){return t&&(t.hasOwnProperty(P)||t.hasOwnProperty(E))?t[P]:null}const M=l({ɵprov:l}),P=l({ɵinj:l}),S=l({ngInjectableDef:l}),E=l({ngInjectorDef:l});var A=(()=>((A=A||{})[A.Default=0]="Default",A[A.Host=1]="Host",A[A.Self=2]="Self",A[A.SkipSelf=4]="SkipSelf",A[A.Optional=8]="Optional",A))();let T;function I(t){const e=T;return T=t,e}function D(t,e,n){const i=x(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&A.Optional?null:void 0!==e?e:void y(u(t),"Injector")}function L(t){return{toString:t}.toString()}var N=(()=>((N=N||{})[N.OnPush=0]="OnPush",N[N.Default=1]="Default",N))(),z=(()=>((z=z||{})[z.Emulated=0]="Emulated",z[z.None=2]="None",z[z.ShadowDom=3]="ShadowDom",z))();const F="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,B="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,$=F||j||R||B,V={},U=[],Y=l({ɵcmp:l}),q=l({ɵdir:l}),H=l({ɵpipe:l}),Z=l({ɵmod:l}),G=l({ɵloc:l}),J=l({ɵfac:l}),X=l({__NG_ELEMENT_ID__:l});let Q=0;function W(t){return L((()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||U,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||z.Emulated,id:"c",styles:t.styles||U,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,o=t.pipes;return n.id+=Q++,n.inputs=rt(t.inputs,e),n.outputs=rt(t.outputs),r&&r.forEach((t=>t(n))),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(K):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(tt):null,n}))}function K(t){const e=at(t)||function(t){return t[q]||null}(t);return e}function tt(t){const e=function(t){return t[H]||null}(t);return e}const et={};function nt(t){return L((()=>{const e={type:t.type,bootstrap:t.bootstrap||U,declarations:t.declarations||U,imports:t.imports||U,exports:t.exports||U,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e}))}function it(t,e){return L((()=>{const n=lt(t,!0);n.declarations=e.declarations||U,n.imports=e.imports||U,n.exports=e.exports||U}))}function rt(t,e){if(null==t)return V;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}const ot=W;function st(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[Y]||null}function lt(t,e){const n=t[Z]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have 'ɵmod' property.`);return n}const ct=0,ut=1,ht=2,dt=3,pt=4,ft=5,gt=6,mt=7,vt=8,_t=9,yt=10,bt=11,wt=12,Ct=13,xt=14,Ot=15,kt=16,Mt=17,Pt=18,St=19,Et=20,At=1,Tt=2,It=7,Dt=9,Lt=10;function Nt(t){return Array.isArray(t)&&"object"==typeof t[At]}function zt(t){return Array.isArray(t)&&!0===t[At]}function Ft(t){return 0!=(8&t.flags)}function Rt(t){return 2==(2&t.flags)}function Bt(t){return 1==(1&t.flags)}function jt(t){return null!==t.template}function $t(t,e){return t.hasOwnProperty(J)?t[J]:null}class Vt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ut(){return Yt}function Yt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ht),qt}function qt(){const t=Gt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===V)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Ht(t,e,n,i){const r=Gt(t)||function(t,e){return t[Zt]=e}(t,{previous:V,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[n],l=s[a];o[a]=new Vt(l&&l.currentValue,e,s===V),t[i]=e}Ut.ngInherit=!0;const Zt="__ngSimpleChanges__";function Gt(t){return t[Zt]||null}const Jt=function(t,e,n){},Xt="http://www.w3.org/2000/svg";let Qt;function Wt(t){Qt=t}function Kt(){return void 0!==Qt?Qt:"undefined"!=typeof document?document:void 0}function te(t){return!!t.listen}const ee={createRenderer:(t,e)=>Kt()};function ne(t){for(;Array.isArray(t);)t=t[ct];return t}function ie(t,e){return ne(e[t])}function re(t,e){return ne(e[t.index])}function oe(t,e){return t.data[e]}function se(t,e){return t[e]}function ae(t,e){const n=e[t];return Nt(n)?n:n[ct]}function le(t){return 4==(4&t[ht])}function ce(t){return 128==(128&t[ht])}function ue(t,e){return null==e?null:t[e]}function he(t){t[Pt]=0}function de(t,e){t[ft]+=e;let n=t,i=t[dt];for(;null!==i&&(1===e&&1===n[ft]||-1===e&&0===n[ft]);)i[ft]+=e,n=i,i=i[dt]}const pe={lFrame:Re(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function fe(){return pe.bindingsEnabled}function ge(){return pe.lFrame.lView}function me(){return pe.lFrame.tView}function ve(t){return pe.lFrame.contextLView=t,t[vt]}function _e(){let t=ye();for(;null!==t&&64===t.type;)t=t.parent;return t}function ye(){return pe.lFrame.currentTNode}function be(t,e){const n=pe.lFrame;n.currentTNode=t,n.isParent=e}function we(){return pe.lFrame.isParent}function Ce(){pe.lFrame.isParent=!1}function xe(){return pe.isInCheckNoChangesMode}function Oe(t){pe.isInCheckNoChangesMode=t}function ke(){const t=pe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Me(){return pe.lFrame.bindingIndex}function Pe(){return pe.lFrame.bindingIndex++}function Se(t){const e=pe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ee(t,e){const n=pe.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ae(e)}function Ae(t){pe.lFrame.currentDirectiveIndex=t}function Te(t){const e=pe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ie(){return pe.lFrame.currentQueryIndex}function De(t){pe.lFrame.currentQueryIndex=t}function Le(t){const e=t[ut];return 2===e.type?e.declTNode:1===e.type?t[gt]:null}function Ne(t,e,n){if(n&A.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&A.Host||(i=Le(r),null===i)||(r=r[Ot],10&i.type)););if(null===i)return!1;e=i,t=r}const i=pe.lFrame=Fe();return i.currentTNode=e,i.lView=t,!0}function ze(t){const e=Fe(),n=t[ut];pe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Fe(){const t=pe.lFrame,e=null===t?null:t.child;return null===e?Re(t):e}function Re(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Be(){const t=pe.lFrame;return pe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const je=Be;function $e(){const t=Be();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ve(){return pe.lFrame.selectedIndex}function Ue(t){pe.lFrame.selectedIndex=t}function Ye(){const t=pe.lFrame;return oe(t.tView,t.selectedIndex)}function qe(){pe.lFrame.currentNamespace=Xt}function He(){pe.lFrame.currentNamespace=null}function Ze(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[l]<0&&(t[Pt]+=65536),(a>11>16&&(3&t[ht])===e){t[ht]+=2048,Jt(4,s,o);try{o.call(s)}finally{Jt(5,s,o)}}}else{Jt(4,s,o);try{o.call(s)}finally{Jt(5,s,o)}}}const Ke=-1;class tn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function en(t,e,n){const i=te(t);let r=0;for(;re){s=o-1;break}}}for(;o>16,i=e;for(;n>0;)i=i[Ot],n--;return i}let un=!0;function hn(t){const e=un;return un=t,e}const dn=255,pn=5;let fn=0;function gn(t,e){const n=vn(t,e);if(-1!==n)return n;const i=e[ut];i.firstCreatePass&&(t.injectorIndex=e.length,mn(i.data,t),mn(e,null),mn(i.blueprint,null));const r=_n(t,e),o=t.injectorIndex;if(an(r)){const t=ln(r),n=cn(r,e),i=n[ut].data;for(let r=0;r<8;r++)e[o+r]=n[t+r]|i[t+r]}return e[o+8]=r,o}function mn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function vn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function _n(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[ut],e=t.type;if(i=2===e?t.declTNode:1===e?r[gt]:null,null===i)return Ke;if(n++,r=r[Ot],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Ke}function yn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(X)&&(i=n[X]),null==i&&(i=n[X]=fn++);const r=i&dn,o=1<>pn)]|=o}(t,e,n)}function bn(t,e,n){if(n&A.Optional)return t;y(e,"NodeInjector")}function wn(t,e,n,i){if(n&A.Optional&&void 0===i&&(i=null),0==(n&(A.Self|A.Host))){const r=t[_t],o=I(void 0);try{return r?r.get(e,i,n&A.Optional):D(e,i,n&A.Optional)}finally{I(o)}}return bn(i,e,n)}function Cn(t,e,n,i=A.Default,r){if(null!==t){const o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(X)?t[X]:void 0;return"number"==typeof e?e>=0?e&dn:On:e}(n);if("function"==typeof o){if(!Ne(e,t,i))return i&A.Host?bn(r,n,i):wn(e,n,i,r);try{const t=o(i);if(null!=t||i&A.Optional)return t;y(n)}finally{je()}}else if("number"==typeof o){let r=null,s=vn(t,e),a=Ke,l=i&A.Host?e[kt][gt]:null;for((-1===s||i&A.SkipSelf)&&(a=-1===s?_n(t,e):e[s+8],a!==Ke&&En(i,!1)?(r=e[ut],s=ln(a),e=cn(a,e)):s=-1);-1!==s;){const t=e[ut];if(Sn(o,s,t.data)){const t=kn(s,e,n,r,i,l);if(t!==xn)return t}a=e[s+8],a!==Ke&&En(i,e[ut].data[s+8]===l)&&Sn(o,s,e)?(r=t,s=ln(a),e=cn(a,e)):s=-1}}}return wn(e,n,i,r)}const xn={};function On(){return new An(_e(),ge())}function kn(t,e,n,i,r,o){const s=e[ut],a=s.data[t+8],l=Mn(a,s,n,null==i?Rt(a)&&un:i!=s&&0!=(3&a.type),r&A.Host&&o===a);return null!==l?Pn(e,s,l,a):xn}function Mn(t,e,n,i,r){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,c=t.directiveEnd,u=o>>20,h=r?a+u:c;for(let t=i?a:a+u;t=l&&e.type===n)return t}if(r){const t=s[l];if(t&&jt(t)&&t.type===n)return l}return null}function Pn(t,e,n,i){let r=t[n];const o=e.data;if(r instanceof tn){const s=r;s.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(_(o[n]));const a=hn(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?I(s.injectImpl):null;Ne(t,i,A.Default);try{r=t[n]=s.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){const i=Yt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&I(l),hn(a),s.resolving=!1,je()}}return r}function Sn(t,e,n){const i=1<>pn)]&i)}function En(t,e){return!(t&A.Self||t&A.Host&&e)}class An{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return Cn(this._tNode,this._lView,t,n,e)}}function Tn(t){return L((()=>{const e=t.prototype.constructor,n=e[J]||In(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[J]||In(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t}))}function In(t){return g(t)?()=>{const e=In(f(t));return e&&e()}:$t(t)}function Dn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(Ln)?t[Ln]:Object.defineProperty(t,Ln,{value:[]})[Ln];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r}))}class zn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ɵprov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.ɵprov=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Fn=new zn("AnalyzeForEntryComponents"),Rn=Function;function Bn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?jn(t,e):e(t)))}function $n(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Vn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Un(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;){const e=r-2;t[r]=t[e],r--}t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function qn(t,e){const n=Hn(t,e);if(n>=0)return t[1|n]}function Hn(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),o=t[n<<1];if(e===o)return n<<1;o>e?r=n:i=n+1}return~(r<<1)}(t,e)}const Zn={},Gn="__NG_DI_FLAG__",Jn="ngTempTokenPath",Xn=/\n/gm,Qn="__source",Wn=l({provide:String,useValue:l});let Kn;function ti(t){const e=Kn;return Kn=t,e}function ei(t,e=A.Default){if(void 0===Kn)throw new Error("inject() must be called from an injection context");return null===Kn?D(t,void 0,e):Kn.get(t,e&A.Optional?null:void 0,e)}function ni(t,e=A.Default){return(T||ei)(f(t),e)}const ii=ni;function ri(t){const e=[];for(let n=0;n({token:t}))),-1),ai=oi(Nn("Optional"),8),li=oi(Nn("Self"),2),ci=oi(Nn("SkipSelf"),4);var ui=(()=>((ui=ui||{})[ui.Important=1]="Important",ui[ui.DashCase=2]="DashCase",ui))();const hi="__ngContext__";function di(t,e){t[hi]=e}function pi(t){const e=function(t){return t[hi]||null}(t);return e?Array.isArray(e)?e:e.lView:null}let fi;function gi(t,e){return fi(t,e)}function mi(t){const e=t[dt];return zt(e)?e[dt]:e}function vi(t){return yi(t[Ct])}function _i(t){return yi(t[pt])}function yi(t){for(;null!==t&&!zt(t);)t=t[pt];return t}function bi(t,e,n,i,r){if(null!=i){let o,s=!1;zt(i)?o=i:Nt(i)&&(s=!0,i=i[ct]);const a=ne(i);0===t&&null!==n?null==r?Si(e,n,a):Pi(e,n,a,r||null,!0):1===t&&null!==n?Pi(e,n,a,r||null,!0):2===t?function(t,e,n){const i=Ai(t,e);i&&function(t,e,n,i){te(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,i,r){const o=n[It];o!==ne(n)&&bi(e,t,i,o,r);for(let r=Lt;r0&&(t[n-1][pt]=i[pt]);const s=Vn(t,Lt+e);$i(i[ut],r=i,r[bt],2,null,null),r[ct]=null,r[gt]=null;const a=s[St];null!==a&&a.detachView(s[ut]),i[dt]=null,i[pt]=null,i[ht]&=-129}var r;return i}function Oi(t,e){if(!(256&e[ht])){const n=e[bt];te(n)&&n.destroyNode&&$i(t,e,n,3,null,null),function(t){let e=t[Ct];if(!e)return ki(t[ut],t);for(;e;){let n=null;if(Nt(e))n=e[Ct];else{const t=e[Lt];t&&(n=t)}if(!n){for(;e&&!e[pt]&&e!==t;)Nt(e)&&ki(e[ut],e),e=e[dt];null===e&&(e=t),Nt(e)&&ki(e[ut],e),n=e&&e[pt]}e=n}}(e)}}function ki(t,e){if(!(256&e[ht])){e[ht]&=-129,e[ht]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let t=0;t=0?i[r=l]():i[r=-l].unsubscribe(),t+=2}else{const e=i[r=n[t+1]];n[t].call(e)}if(null!==i){for(let t=r+1;tt,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Di}())||void 0===e?void 0:e.createHTML(t))||t}function Hi(){if(void 0===Li&&(Li=null,$.trustedTypes))try{Li=$.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Li}function Zi(t){var e;return(null===(e=Hi())||void 0===e?void 0:e.createHTML(t))||t}function Gi(t){var e;return(null===(e=Hi())||void 0===e?void 0:e.createScriptURL(t))||t}class Ji{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Xi extends Ji{getTypeName(){return"HTML"}}class Qi extends Ji{getTypeName(){return"Style"}}class Wi extends Ji{getTypeName(){return"Script"}}class Ki extends Ji{getTypeName(){return"URL"}}class tr extends Ji{getTypeName(){return"ResourceURL"}}function er(t){return t instanceof Ji?t.changingThisBreaksApplicationSecurity:t}function nr(t,e){const n=ir(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function ir(t){return t instanceof Ji&&t.getTypeName()||null}function rr(t){return new Xi(t)}function or(t){return new Qi(t)}function sr(t){return new Wi(t)}function ar(t){return new Ki(t)}function lr(t){return new tr(t)}class cr{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(qi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(t){return null}}}class ur{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=qi(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=qi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0pr(t.trim()))).join(", ")),this.buf.push(" ",r,'="',Sr(s),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();br.hasOwnProperty(e)&&!mr.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Sr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Mr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Pr=/([^\#-~ |!])/g;function Sr(t){return t.replace(/&/g,"&").replace(Mr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Pr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Er;function Ar(t,e){let n=null;try{Er=Er||function(t){const e=new ur(t);return function(){try{return!!(new window.DOMParser).parseFromString(qi(""),"text/html")}catch(t){return!1}}()?new cr(e):e}(t);let i=e?String(e):"";n=Er.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Er.getInertBodyElement(i)}while(i!==o);return qi((new kr).sanitizeChildren(Tr(n)||n))}finally{if(n){const t=Tr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Tr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ir=(()=>((Ir=Ir||{})[Ir.NONE=0]="NONE",Ir[Ir.HTML=1]="HTML",Ir[Ir.STYLE=2]="STYLE",Ir[Ir.SCRIPT=3]="SCRIPT",Ir[Ir.URL=4]="URL",Ir[Ir.RESOURCE_URL=5]="RESOURCE_URL",Ir))();function Dr(t){const e=zr();return e?Zi(e.sanitize(Ir.HTML,t)||""):nr(t,"HTML")?Zi(er(t)):Ar(Kt(),v(t))}function Lr(t){const e=zr();return e?e.sanitize(Ir.URL,t)||"":nr(t,"URL")?er(t):pr(v(t))}function Nr(t){const e=zr();if(e)return Gi(e.sanitize(Ir.RESOURCE_URL,t)||"");if(nr(t,"ResourceURL"))return Gi(er(t));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function zr(){const t=ge();return t&&t[wt]}function Fr(t){return t.ngOriginalError}function Rr(t,...e){t.error(...e)}class Br{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t&&t.ngErrorLogger||Rr}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(Fr(t)):null}_findOriginalError(t){let e=t&&Fr(t);for(;e&&Fr(e);)e=Fr(e);return e||null}}const jr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind($))();function $r(t){return t.ownerDocument.defaultView}function Vr(t){return t.ownerDocument}function Ur(t){return t instanceof Function?t():t}function Yr(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}const qr="ng-template";function Hr(t,e,n){let i=0;for(;io?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Yr(e,c,0)||2&i&&c!==t){if(Xr(i))return!1;s=!0}}}}else{if(!s&&!Xr(i)&&!Xr(l))return!1;if(s&&Xr(l))continue;s=!1,i=l|1&i}}return Xr(i)||s}function Xr(t){return 0==(1&t)}function Qr(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""===r||Xr(s)||(e+=to(o,r),r=""),i=s,o=o||!Xr(i);n++}return""!==r&&(e+=to(o,r)),e}const no={};function io(t){ro(me(),ge(),Ve()+t,xe())}function ro(t,e,n,i){if(!i)if(3==(3&e[ht])){const i=t.preOrderCheckHooks;null!==i&&Ge(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Je(e,i,0,n)}Ue(n)}function oo(t,e){return t<<17|e<<2}function so(t){return t>>17&32767}function ao(t){return 2|t}function lo(t){return(131068&t)>>2}function co(t,e){return-131069&t|e<<2}function uo(t){return 1|t}function ho(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;iEt&&ro(t,e,Et,xe()),Jt(s?2:0,r),n(i,r)}finally{Ue(o),Jt(s?3:1,r)}}function bo(t,e,n){if(Ft(e)){const i=e.directiveStart,r=e.directiveEnd;for(let e=i;e0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(i,r,s)}}function Ao(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function To(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Io(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&jo(n)}}function jo(t){for(let e=vi(t);null!==e;e=_i(e))for(let t=Lt;t0&&jo(n)}const e=t[ut].components;if(null!==e)for(let n=0;n0&&jo(i)}}function $o(t,e){const n=ae(e,t),i=n[ut];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Go(t){return t[mt]||(t[mt]=[])}function Jo(t){return t.cleanup||(t.cleanup=[])}function Xo(t,e){const n=t[_t],i=n?n.get(Br,null):null;i&&i.handleError(e)}function Qo(t,e,n,i,r){for(let o=0;othis.processProvider(n,t,e))),jn([t],(t=>this.processInjectorType(t,[],r))),this.records.set(ts,hs(void 0,this));const o=this.records.get(ns);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof t?null:u(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((t=>t.ngOnDestroy()))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Zn,n=A.Default){this.assertNotDestroyed();const i=ti(this),r=I(void 0);try{if(!(n&A.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(o=t)||"object"==typeof o&&o instanceof zn)&&x(t);e=n&&this.injectableDefInScope(n)?hs(cs(t),is):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}const i=n&A.Self?ss():this.parent;return e=n&A.Optional&&e===Zn?null:e,i.get(t,e)}catch(e){if("NullInjectorError"===e.name){if((e[Jn]=e[Jn]||[]).unshift(u(t)),i)throw e;return function(t,e,n,i){const r=t[Jn];throw e[Qn]&&r.unshift(e[Qn]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"ɵ"==t.charAt(1)?t.substr(2):t;let r=u(e);if(Array.isArray(e))r=e.map(u).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(Xn,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t[Jn]=null,t}(e,t,"R3InjectorError",this.source)}throw e}finally{I(r),ti(i)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach((t=>this.get(t)))}toString(){const t=[];return this.records.forEach(((e,n)=>t.push(u(n)))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=f(t)))return!1;let i=k(t);const r=null==i&&t.ngModule||void 0,o=void 0===r?t:r,s=-1!==n.indexOf(o);if(void 0!==r&&(i=k(r)),null==i)return!1;if(null!=i.imports&&!s){let t;n.push(o);try{jn(i.imports,(i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))}))}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||U)))}}this.injectorDefTypes.add(o);const a=$t(o)||(()=>new o);this.records.set(o,hs(a,is));const l=i.providers;if(null!=l&&!s){const e=t;jn(l,(t=>this.processProvider(t,e,l)))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=ps(t=f(t))?t:f(t&&t.provide);const r=function(t,e,n){return ds(t)?hs(void 0,t.useValue):hs(us(t),is)}(t);if(ps(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=hs(void 0,is,!0),e.factory=()=>ri(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===is&&(e.value=rs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function cs(t){const e=x(t),n=null!==e?e.factory:$t(t);if(null!==n)return n;if(t instanceof zn)throw new Error(`Token ${u(t)} is missing a ɵprov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Un(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[M]||t[S]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function us(t,e,n){let i;if(ps(t)){const e=f(t);return $t(e)||cs(e)}if(ds(t))i=()=>f(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...ri(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>ni(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return $t(e)||cs(e);i=()=>new e(...ri(t.deps))}var r;return i}function hs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ds(t){return null!==t&&"object"==typeof t&&Wn in t}function ps(t){return"function"==typeof t}const fs=function(t,e,n){return function(t,e=null,n=null,i){const r=as(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let gs=(()=>{class t{static create(t,e){return Array.isArray(t)?fs(t,e,""):fs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Zn,t.NULL=new es,t.ɵprov=b({token:t,providedIn:"any",factory:()=>ni(ts)}),t.__NG_ELEMENT_ID__=-1,t})();function ms(t,e){Ze(pi(t)[ut],_e())}function vs(t){let e=(i=t.type,Object.getPrototypeOf(i.prototype).constructor),n=!0;var i;const r=[t];for(;e;){let i;if(jt(t))i=e.ɵcmp||e.ɵdir;else{if(e.ɵcmp)throw new Error("Directives cannot inherit Components");i=e.ɵdir}if(i){if(n){r.push(i);const e=t;e.inputs=_s(t.inputs),e.declaredInputs=_s(t.declaredInputs),e.outputs=_s(t.outputs);const n=i.hostBindings;n&&ws(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&ys(t,o),s&&bs(t,s),c(t.inputs,i.inputs),c(t.declaredInputs,i.declaredInputs),c(t.outputs,i.outputs),jt(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let i=0;i=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=on(r.hostAttrs,n=on(n,r.hostAttrs))}}(r)}function _s(t){return t===V?{}:t===U?[]:t}function ys(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function bs(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function ws(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Cs=null;function xs(){if(!Cs){const t=$.Symbol;if(t&&t.iterator)Cs=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ne(t[i.index])):i.index;if(te(n)){let s=null;if(!a&&l&&(s=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let t=0;ti?n[i]:null}"string"==typeof o&&(t+=2)}return null}(t,e,r,i.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,d=!1;else{o=Js(i,e,u,o,!1);const t=n.listen(f,r,o);h.push(o,t),c&&c.push(r,m,g,g+1)}}else o=Js(i,e,u,o,!0),f.addEventListener(r,o,s),h.push(o),c&&c.push(r,m,g,s)}else o=Js(i,e,u,o,!1);const p=i.outputs;let f;if(d&&null!==p&&(f=p[r])){const t=f.length;if(t)for(let n=0;n0;)e=e[Ot],t--;return e}(t,pe.lFrame.contextLView))[vt]}(t)}function Qs(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}const na={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ia(t){return t.substring(na.key,na.keyEnd)}function ra(t,e){const n=na.textEnd;return n===e?-1:(e=na.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,na.key=e,n),oa(t,e,n))}function oa(t,e,n){for(;e=0;n=ra(e,n))Yn(t,ia(e),!0)}function ua(t,e,n,i){const r=ge(),o=me(),s=Se(2);o.firstUpdatePass&&da(o,t,s,i),e!==no&&Ss(r,s,e)&&ga(o,o.data[Ve()],r,r[bt],t,r[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(er(t)))),t}(e,n),i,s)}function ha(t,e){return e>=t.expandoStartIndex}function da(t,e,n,i){const r=t.data;if(null===r[n+1]){const o=r[Ve()],s=ha(t,n);_a(o,i)&&null===e&&!s&&(e=!1),e=function(t,e,n,i){const r=Te(t);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=fa(n=pa(null,t,e,n,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==r)if(n=pa(r,t,e,n,i),null===o){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==lo(i))return t[so(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=pa(null,t,e,n[1],i),n=fa(n,e.attrs,i),function(t,e,n,i){t[so(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else o=function(t,e,n){let i;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=so(t[a+1]);t[i+1]=oo(e,a),0!==e&&(t[e+1]=co(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=oo(a,0),0!==a&&(t[a+1]=co(t[a+1],i)),a=i;else t[i+1]=oo(l,0),0===a?a=i:t[l+1]=co(t[l+1],i),l=i;u&&(t[i+1]=ao(t[i+1])),ta(t,c,i,!0),ta(t,c,i,!1),function(t,e,n,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&Hn(o,e)>=0&&(n[i+1]=uo(n[i+1]))}(e,c,t,i,o),s=oo(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,n,s,i)}}function pa(t,e,n,i,r){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],o=Array.isArray(e),l=o?e[1]:e,c=null===l;let u=n[r+1];u===no&&(u=c?U:void 0);let h=c?qn(u,i):l===i?u:void 0;if(o&&!va(h)&&(h=qn(e,i)),va(h)&&(a=h,s))return a;const d=t[r+1];r=s?so(d):lo(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=qn(t,i))}return a}function va(t){return void 0!==t}function _a(t,e){return 0!=(t.flags&(e?16:32))}function ya(t,e=""){const n=ge(),i=me(),r=t+Et,o=i.firstCreatePass?fo(i,r,1,e,null):i.data[r],s=n[r]=function(t,e){return te(t)?t.createText(e):t.createTextNode(e)}(n[bt],e);zi(i,n,s,o),be(o,!1)}function ba(t){return wa("",t,""),ba}function wa(t,e,n){const i=ge(),r=function(t,e,n,i){return Ss(t,Pe(),n)?e+v(n)+i:no}(i,t,e,n);return r!==no&&Wo(i,Ve(),r),wa}function Ca(t,e,n,i,r){const o=ge(),s=function(t,e,n,i,r,o){const s=Es(t,Me(),n,r);return Se(2),s?e+v(n)+i+v(r)+o:no}(o,t,e,n,i,r);return s!==no&&Wo(o,Ve(),s),Ca}function xa(t,e,n){const i=ge();return Ss(i,Pe(),e)&&Po(me(),Ye(),i,t,e,i[bt],n,!0),xa}function Oa(t,e,n){const i=ge();if(Ss(i,Pe(),e)){const r=me(),o=Ye();Po(r,o,i,t,e,function(t,e,n){return(null===t||jt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[At])return t;t=t[ct]}return null}(n[e.index])),n[bt]}(Te(r.data),o,i),n,!0)}return Oa}const ka=void 0;var Ma=["en",[["a","p"],["AM","PM"],ka],[["AM","PM"],ka,ka],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ka,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ka,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ka,"{1} 'at' {0}",ka],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Pa={};function Sa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Aa(e);if(n)return n;const i=e.split("-")[0];if(n=Aa(i),n)return n;if("en"===i)return Ma;throw new Error(`Missing locale data for the locale "${t}".`)}function Ea(t){return Sa(t)[Ta.PluralCase]}function Aa(t){return t in Pa||(Pa[t]=$.ng&&$.ng.common&&$.ng.common.locales&&$.ng.common.locales[t]),Pa[t]}var Ta=(()=>((Ta=Ta||{})[Ta.LocaleId=0]="LocaleId",Ta[Ta.DayPeriodsFormat=1]="DayPeriodsFormat",Ta[Ta.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ta[Ta.DaysFormat=3]="DaysFormat",Ta[Ta.DaysStandalone=4]="DaysStandalone",Ta[Ta.MonthsFormat=5]="MonthsFormat",Ta[Ta.MonthsStandalone=6]="MonthsStandalone",Ta[Ta.Eras=7]="Eras",Ta[Ta.FirstDayOfWeek=8]="FirstDayOfWeek",Ta[Ta.WeekendRange=9]="WeekendRange",Ta[Ta.DateFormat=10]="DateFormat",Ta[Ta.TimeFormat=11]="TimeFormat",Ta[Ta.DateTimeFormat=12]="DateTimeFormat",Ta[Ta.NumberSymbols=13]="NumberSymbols",Ta[Ta.NumberFormats=14]="NumberFormats",Ta[Ta.CurrencyCode=15]="CurrencyCode",Ta[Ta.CurrencySymbol=16]="CurrencySymbol",Ta[Ta.CurrencyName=17]="CurrencyName",Ta[Ta.Currencies=18]="Currencies",Ta[Ta.Directionality=19]="Directionality",Ta[Ta.PluralCase=20]="PluralCase",Ta[Ta.ExtraData=21]="ExtraData",Ta))();const Ia="en-US";let Da=Ia;function La(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Da=t.toLowerCase().replace(/_/g,"-"))}function Na(t,e,n,i,r){if(t=f(t),Array.isArray(t))for(let o=0;o>20;if(ps(t)||!t.multi){const i=new tn(l,r,Ds),p=Ra(a,e,r?u:u+d,h);-1===p?(yn(gn(c,s),o,a),za(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),s.push(i)):(n[p]=i,s[p]=i)}else{const p=Ra(a,e,u+d,h),f=Ra(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(r&&!m||!r&&!g){yn(gn(c,s),o,a);const u=function(t,e,n,i,r){const o=new tn(t,n,Ds);return o.multi=[],o.index=e,o.componentProviders=0,Fa(o,r,i&&!n),o}(r?ja:Ba,n.length,r,i,l);!r&&m&&(n[f].providerFactory=u),za(o,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),s.push(u)}else za(o,t,p>-1?p:f,Fa(n[r?f:p],l,!r&&i));!r&&i&&m&&n[f].componentProviders++}}}function za(t,e,n,i){const r=ps(e);if(r||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[i,o]):s[t+1].push(i,o)}else s.push(n,o)}}}function Fa(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ra(t,e,n,i){for(let r=n;r{n.providersResolver=(n,i)=>function(t,e,n){const i=me();if(i.firstCreatePass){const r=jt(t);Na(n,i.data,i.blueprint,r,!0),Na(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class Ua{}class Ya{}class qa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ha=(()=>{class t{}return t.NULL=new qa,t})();function Za(...t){}function Ga(t,e){return new Xa(re(t,e))}const Ja=function(){return Ga(_e(),ge())};let Xa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Ja,t})();function Qa(t){return t instanceof Xa?t.nativeElement:t}class Wa{}let Ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>tl(),t})();const tl=function(){const t=ge(),e=ae(_e().index,t);return function(t){return t[bt]}(Nt(e)?e:t)};let el=(()=>{class t{}return t.ɵprov=b({token:t,providedIn:"root",factory:()=>null}),t})();class nl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const il=new nl("12.2.17");class rl{constructor(){}supports(t){return ks(t)}create(t){return new sl(t)}}const ol=(t,e)=>e;class sl{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ol}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const o=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(o&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),o=!0),r=r._next,e++})),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new al(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new cl),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new cl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}}class al{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ll{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class cl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new ll,this.map.set(e,n)),n.add(t)}get(t,e){const n=t,i=this.map.get(n);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ul(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}})),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new pl(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach((n=>e(t[n],n)))}}class pl{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function fl(){return new gl([new rl])}let gl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||fl()),deps:[[t,new ci,new ai]]}}find(t){const e=this.factories.find((e=>e.supports(t)));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.ɵprov=b({token:t,providedIn:"root",factory:fl}),t})();function ml(){return new vl([new hl])}let vl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ml()),deps:[[t,new ci,new ai]]}}find(t){const e=this.factories.find((e=>e.supports(t)));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.ɵprov=b({token:t,providedIn:"root",factory:ml}),t})();function _l(t,e,n,i,r=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&i.push(ne(o)),zt(o))for(let t=Lt;t-1&&(xi(t,n),Vn(e,n))}this._attachedToViewContainer=!1}Oi(this._lView[ut],this._lView)}onDestroy(t){ko(this._lView[ut],this._lView,null,t)}markForCheck(){Uo(this._cdRefInjectingView||this._lView)}detach(){this._lView[ht]&=-129}reattach(){this._lView[ht]|=128}detectChanges(){Yo(this._lView[ut],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Oe(!0);try{Yo(t,e,n)}finally{Oe(!1)}}(this._lView[ut],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,$i(this._lView[ut],t=this._lView,t[bt],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class bl extends yl{constructor(t){super(t),this._view=t}detectChanges(){qo(this._view)}checkNoChanges(){!function(t){Oe(!0);try{qo(t)}finally{Oe(!1)}}(this._view)}get context(){return null}}const wl=function(t){return function(t,e,n){if(Rt(t)&&!n){const n=ae(t.index,e);return new yl(n,n)}if(47&t.type){const t=e[kt];return new yl(t,e)}return null}(_e(),ge(),16==(16&t))};let Cl=(()=>{class t{}return t.__NG_ELEMENT_ID__=wl,t})();const xl=[new hl],Ol=new gl([new rl]),kl=new vl(xl),Ml=function(){return Al(_e(),ge())};let Pl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ml,t})();const Sl=Pl,El=class extends Sl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=po(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null),i=this._declarationLView[this._declarationTContainer.index];n[Mt]=i;const r=this._declarationLView[St];return null!==r&&(n[St]=r.createEmbeddedView(e)),mo(e,n,t),new yl(n)}};function Al(t,e){return 4&t.type?new El(e,t,Ga(t,e)):null}class Tl{}class Il{}const Dl=function(){return Bl(_e(),ge())};let Ll=(()=>{class t{}return t.__NG_ELEMENT_ID__=Dl,t})();const Nl=Ll,zl=class extends Nl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ga(this._hostTNode,this._hostLView)}get injector(){return new An(this._hostTNode,this._hostLView)}get parentInjector(){const t=_n(this._hostTNode,this._hostLView);if(an(t)){const e=cn(t,this._hostLView),n=ln(t),i=e[ut].data[n+8];return new An(i,e)}return new An(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Fl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Lt}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){const t=o.get(Tl,null);t&&(r=t)}const s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,i=n[ut];if(zt(n[dt])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[dt],i=new zl(e,e[gt],e[dt]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,i){const r=Lt+i,o=n.length;i>0&&(n[r-1][pt]=e),ijr});class Yl extends Ya{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(eo).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Vl(this.componentDef.inputs)}get outputs(){return Vl(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const o=t.get(n,jl,r);return o!==jl||i===jl?o:e.get(n,i,r)}}}(t,i.injector):t,o=r.get(Wa,ee),s=r.get(el,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(te(t)){const i=n===z.ShadowDom;return t.selectRootElement(e,i)}let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):wi(o.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?Xt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:jr,clean:Zo,playerHandler:null,flags:0},d=Oo(0,null,null,1,0,null,null,null,null,null),p=po(null,d,h,u,null,null,o,a,s,r);let f,g;ze(p);try{const t=function(t,e,n,i,r,o){const s=n[ut],a=Et;n[a]=t;const l=fo(s,a,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Ko(l,c,!0),null!==t&&(en(r,t,c),null!==l.classes&&Yi(r,t,l.classes),null!==l.styles&&Ui(r,t,l.styles)));const u=i.createRenderer(t,e),h=po(n,xo(e),null,e.onPush?64:16,n[a],l,i,u,null,null);return s.firstCreatePass&&(yn(gn(l,n),s,e.type),To(s,l),Do(l,n.length,1)),Vo(n,h),n[a]=h}(c,this.componentDef,p,o,a);if(c)if(n)en(a,c,["ng-version",il.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&Yi(a,c,e.join(" "))}if(g=oe(d,Et),void 0!==e){const t=g.projection=[];for(let n=0;nt(s,e))),e.contentQueries){const t=_e();e.contentQueries(1,s,t.directiveStart)}const a=_e();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Ue(a.index),Eo(n[ut],a,0,a.directiveStart,a.directiveEnd,e),Ao(e,s)),s}(t,this.componentDef,p,h,[ms]),mo(d,p,null)}finally{$e()}return new ql(this.componentType,f,Ga(g,p),p,g)}}class ql extends Ua{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new bl(i),this.componentType=t}get injector(){return new An(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Hl=new Map;class Zl extends Tl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new $l(this);const n=lt(t),i=t[G]||null;i&&La(i),this._bootstrapComponents=Ur(n.bootstrap),this._r3Injector=as(t,e,[{provide:Tl,useValue:this},{provide:Ha,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=gs.THROW_IF_NOT_FOUND,n=A.Default){return t===gs||t===Tl||t===ts?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((t=>t())),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Gl extends Il{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(t){const e=new Set;!function t(n){const i=lt(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(r,Hl.get(r),n),Hl.set(r,n));const o=Ur(i.imports);for(const n of o)e.has(n)||(e.add(n),t(n))}(t)}(t)}create(t){return new Zl(this.moduleType,t)}}function Jl(t,e,n){const i=ke()+t,r=ge();return r[i]===no?Ps(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function Xl(t,e,n,i){return Kl(ge(),ke(),t,e,n,i)}function Ql(t,e,n,i,r){return tc(ge(),ke(),t,e,n,i,r)}function Wl(t,e){const n=t[e];return n===no?void 0:n}function Kl(t,e,n,i,r,o){const s=e+n;return Ss(t,s,r)?Ps(t,s+1,o?i.call(o,r):i(r)):Wl(t,s+1)}function tc(t,e,n,i,r,o,s){const a=e+n;return Es(t,a,r,o)?Ps(t,a+2,s?i.call(s,r,o):i(r,o)):Wl(t,a+2)}function ec(t,e){const n=me();let i;const r=t+Et;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new m("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const o=i.factory||(i.factory=$t(i.type)),s=I(Ds);try{const t=hn(!1),e=o();return hn(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,ge(),r,e),e}finally{I(s)}}function nc(t,e,n){const i=t+Et,r=ge(),o=se(r,i);return sc(r,oc(r,i)?Kl(r,ke(),e,o.transform,n,o):o.transform(n))}function ic(t,e,n,i){const r=t+Et,o=ge(),s=se(o,r);return sc(o,oc(o,r)?tc(o,ke(),e,s.transform,n,i,s):s.transform(n,i))}function rc(t,e,n,i,r){const o=t+Et,s=ge(),a=se(s,o);return sc(s,oc(s,o)?function(t,e,n,i,r,o,s,a){const l=e+n;return function(t,e,n,i,r){const o=Es(t,e,n,i);return Ss(t,e+2,r)||o}(t,l,r,o,s)?Ps(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):Wl(t,l+3)}(s,ke(),e,a.transform,n,i,r,a):a.transform(n,i,r))}function oc(t,e){return t[ut].data[e].pure}function sc(t,e){return Os.isWrapped(e)&&(e=Os.unwrap(e),t[Me()]=no),e}class ac extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,o,s;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(o=e.error)||void 0===o?void 0:o.bind(e),c=null===(s=e.complete)||void 0===s?void 0:s.bind(e)}this.__isAsync&&(l=lc(l),a&&(a=lc(a)),c&&(c=lc(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof r.w&&t.add(u),u}}function lc(t){return e=>{setTimeout(t,void 0,e)}}const cc=ac;function uc(){return this._results[xs()]()}class hc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=xs(),n=hc.prototype;n[e]||(n[e]=uc)}get changes(){return this._changes||(this._changes=new cc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=Bn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(s[t/2]);else{const r=o[t+1],s=e[-n];for(let t=Lt;t{class t{constructor(t){this.appInits=t,this.resolve=Za,this.reject=Za,this.initialized=!1,this.done=!1,this.donePromise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let e=0;e{n.subscribe({complete:t,error:e})}));t.push(e)}}Promise.all(t).then((()=>{e()})).catch((t=>{this.reject(t)})),0===t.length&&e(),this.initialized=!0}}return t.ɵfac=function(e){return new(e||t)(ni(Ec,8))},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();const Tc=new zn("AppId"),Ic={provide:Tc,useFactory:function(){return`${Dc()}${Dc()}${Dc()}`},deps:[]};function Dc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Lc=new zn("Platform Initializer"),Nc=new zn("Platform ID"),zc=new zn("appBootstrapListener");let Fc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();const Rc=new zn("LocaleId"),Bc=new zn("DefaultCurrencyCode");class jc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const $c=function(t){return new Gl(t)},Vc=$c,Uc=function(t){return Promise.resolve($c(t))},Yc=function(t){const e=$c(t),n=Ur(lt(t).declarations).reduce(((t,e)=>{const n=at(e);return n&&t.push(new Yl(n)),t}),[]);return new jc(e,n)},qc=Yc,Hc=function(t){return Promise.resolve(Yc(t))};let Zc=(()=>{class t{constructor(){this.compileModuleSync=Vc,this.compileModuleAsync=Uc,this.compileModuleAndAllComponentsSync=qc,this.compileModuleAndAllComponentsAsync=Hc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();const Gc=(()=>Promise.resolve(0))();function Jc(t){"undefined"==typeof Zone?Gc.then((()=>{t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Xc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new cc(!1),this.onMicrotaskEmpty=new cc(!1),this.onStable=new cc(!1),this.onError=new cc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=$.requestAnimationFrame,e=$.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($,(()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(()=>{t.lastRequestAnimationFrameId=-1,Kc(t),t.isCheckStableRunning=!0,Wc(t),t.isCheckStableRunning=!1}),void 0,(()=>{}),(()=>{}))),t.fakeTopEventTask.invoke()})),Kc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,o,s,a)=>{try{return tu(t),n.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),eu(t)}},onInvoke:(n,i,r,o,s,a,l)=>{try{return tu(t),n.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),eu(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Kc(t),Wc(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular((()=>t.onError.emit(r))),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Xc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Xc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,t,Qc,Za,Za);try{return r.runTask(o,e,n)}finally{r.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Qc={};function Wc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular((()=>t.onStable.emit(null)))}finally{t.isStable=!0}}}function Kc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function tu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function eu(t){t._nesting--,Wc(t)}class nu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new cc,this.onMicrotaskEmpty=new cc,this.onStable=new cc,this.onError=new cc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let iu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular((()=>{this._ngZone.onStable.subscribe({next:()=>{Xc.assertNotInAngularZone(),Jc((()=>{this._isZoneStable=!0,this._runCallbacksIfReady()}))}})}))}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Jc((()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1}));else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter((e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1))),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((t=>({source:t.source,creationLocation:t.creationLocation,data:t.data}))):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout((()=>{this._callbacks=this._callbacks.filter((t=>t.timeoutId!==i)),t(this._didWork,this.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.ɵfac=function(e){return new(e||t)(ni(Xc))},t.ɵprov=b({token:t,factory:t.ɵfac}),t})(),ru=(()=>{class t{constructor(){this._applications=new Map,lu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return lu.findTestabilityInTree(this,t,e)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();class ou{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function su(t){lu=t}let au,lu=new ou,cu=!0,uu=!1;function hu(){return uu=!0,cu}function du(){if(uu)throw new Error("Cannot enable prod mode after platform setup.");cu=!1}let pu=function(){};const fu=new zn("AllowMultipleToken");class gu{constructor(t,e){this.name=t,this.token=e}}function mu(t,e,n=[]){const i=`Platform: ${e}`,r=new zn(i);return(e=[])=>{let o=vu();if(!o||o.injector.get(fu,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:ns,useValue:"platform"});!function(t){if(au&&!au.destroyed&&!au.injector.get(fu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");pu(),au=t.get(_u);const e=t.get(Lc,null);e&&e.forEach((t=>t()))}(gs.create({providers:t,name:i}))}return function(t){const e=vu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function vu(){return au&&!au.destroyed?au:null}let _u=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new nu:("zone.js"===t?void 0:t)||new Xc({enableLongStackTrace:hu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:Xc,useValue:n}];return n.run((()=>{const e=gs.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),o=r.injector.get(Br,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular((()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});r.onDestroy((()=>{wu(this._modules,r),t.unsubscribe()}))})),function(t,e,n){try{const i=n();return Ys(i)?i.catch((n=>{throw e.runOutsideAngular((()=>t.handleError(n))),n})):i}catch(n){throw e.runOutsideAngular((()=>t.handleError(n))),n}}(o,n,(()=>{const t=r.injector.get(Ac);return t.runInitializers(),t.donePromise.then((()=>(La(r.injector.get(Rc,Ia)||Ia),this._moduleDoBootstrap(r),r)))}))}))}bootstrapModule(t,e=[]){const n=yu({},e);return function(t,e,n){const i=new Gl(n);return Promise.resolve(i)}(this.injector,0,t).then((t=>this.bootstrapModuleFactory(t,n)))}_moduleDoBootstrap(t){const e=t.injector.get(bu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((t=>e.bootstrap(t)));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((t=>t.destroy())),this._destroyListeners.forEach((t=>t())),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.ɵfac=function(e){return new(e||t)(ni(gs))},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();function yu(t,e){return Array.isArray(e)?e.reduce(yu,t):Object.assign(Object.assign({},t),e)}let bu=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run((()=>{this.tick()}))}});const l=new o.y((t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular((()=>{t.next(this._stable),t.complete()}))})),c=new o.y((t=>{let e;this._zone.runOutsideAngular((()=>{e=this._zone.onStable.subscribe((()=>{Xc.assertNotInAngularZone(),Jc((()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))}))}))}));const n=this._zone.onUnstable.subscribe((()=>{Xc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular((()=>{t.next(!1)})))}));return()=>{e.unsubscribe(),n.unsubscribe()}}));this.isStable=(0,s.T)(l,c.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ya?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Tl),r=e||n.selector,o=n.create(gs.NULL,[],r,i),s=o.location.nativeElement,a=o.injector.get(iu,null),l=a&&o.injector.get(ru);return a&&l&&l.registerApplication(s,a),o.onDestroy((()=>{this.detachView(o.hostView),wu(this.components,o),l&&l.unregisterApplication(s)})),this._loadComponent(o),o}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular((()=>this._exceptionHandler.handleError(t)))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;wu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(zc,[]).concat(this._bootstrapListeners).forEach((e=>e(t)))}ngOnDestroy(){this._views.slice().forEach((t=>t.destroy())),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.ɵfac=function(e){return new(e||t)(ni(Xc),ni(gs),ni(Br),ni(Ha),ni(Ac))},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();function wu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Cu{}class xu{}const Ou={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let ku=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ou}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(88499)(e).then((t=>t[i])).then((t=>Mu(t,e,i))).then((t=>this._compiler.compileModuleAsync(t)))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n(88499)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then((t=>t[i+r])).then((t=>Mu(t,e,i)))}}return t.ɵfac=function(e){return new(e||t)(ni(Zc),ni(xu,8))},t.ɵprov=b({token:t,factory:t.ɵfac}),t})();function Mu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Pu=function(t){return null},Su=mu(null,"core",[{provide:Nc,useValue:"unknown"},{provide:_u,deps:[gs]},{provide:ru,deps:[]},{provide:Fc,deps:[]}]),Eu=[{provide:bu,useClass:bu,deps:[Xc,gs,Br,Ha,Ac]},{provide:Ul,deps:[Xc],useFactory:function(t){let e=[];return t.onStable.subscribe((()=>{for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:Ac,useClass:Ac,deps:[[new ai,Ec]]},{provide:Zc,useClass:Zc,deps:[]},Ic,{provide:gl,useFactory:function(){return Ol},deps:[]},{provide:vl,useFactory:function(){return kl},deps:[]},{provide:Rc,useFactory:function(t){return La(t=t||"undefined"!=typeof $localize&&$localize.locale||Ia),t},deps:[[new si(Rc),new ai,new ci]]},{provide:Bc,useValue:"USD"}];let Au=(()=>{class t{constructor(t){}}return t.ɵfac=function(e){return new(e||t)(ni(bu))},t.ɵmod=nt({type:t}),t.ɵinj=C({providers:Eu}),t})()},24751:(t,e,n)=>{n.d(e,{gN:()=>R,Fj:()=>p,NI:()=>lt,oH:()=>bt,cw:()=>ct,sg:()=>Ct,u5:()=>Ot,Cf:()=>m,JU:()=>u,a5:()=>B,JJ:()=>$,JL:()=>V,On:()=>pt,eT:()=>vt,UX:()=>kt,kI:()=>y,_Y:()=>ft});var i=n(74788),r=n(12057),o=n(97968),s=n(35758),a=n(88002);let l=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t}),t})(),c=(()=>{class t extends l{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})();const u=new i.OlP("NgValueAccessor"),h={provide:u,useExisting:(0,i.Gpc)((()=>p)),multi:!0},d=new i.OlP("CompositionEventMode");let p=(()=>{class t extends l{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,r.q)()?(0,r.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){const e=null==t?"":t;this.setProperty("value",e)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(d,8))},t.ɵdir=i.lG2({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&i.NdJ("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[i._Bn([h]),i.qOj]}),t})();function f(t){return null==t||0===t.length}function g(t){return null!=t&&"number"==typeof t.length}const m=new i.OlP("NgValidators"),v=new i.OlP("NgAsyncValidators"),_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class y{static min(t){return function(t){return e=>{if(f(e.value)||f(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(f(e.value)||f(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return function(t){return f(t.value)?{required:!0}:null}(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return f(t.value)||_.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>f(e.value)||!g(e.value)?null:e.value.lengthg(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return b;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(f(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return M(t)}static composeAsync(t){return S(t)}}function b(t){return null}function w(t){return null!=t}function C(t){const e=(0,i.QGY)(t)?(0,o.D)(t):t;return(0,i.CqO)(e),e}function x(t){let e={};return t.forEach((t=>{e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function O(t,e){return e.map((e=>e(t)))}function k(t){return t.map((t=>function(t){return!t.validate}(t)?t:e=>t.validate(e)))}function M(t){if(!t)return null;const e=t.filter(w);return 0==e.length?null:function(t){return x(O(t,e))}}function P(t){return null!=t?M(k(t)):null}function S(t){if(!t)return null;const e=t.filter(w);return 0==e.length?null:function(t){const n=O(t,e).map(C);return(0,s.D)(n).pipe((0,a.U)(x))}}function E(t){return null!=t?S(k(t)):null}function A(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function T(t){return t._rawValidators}function I(t){return t._rawAsyncValidators}function D(t){return t?Array.isArray(t)?t:[t]:[]}function L(t,e){return Array.isArray(t)?t.includes(e):t===e}function N(t,e){const n=D(e);return D(t).forEach((t=>{L(n,t)||n.push(t)})),n}function z(t,e){return D(e).filter((e=>!L(t,e)))}let F=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=P(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=E(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach((t=>t())),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t}),t})(),R=(()=>{class t extends F{get formDirective(){return null}get path(){return null}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})();class B extends F{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class j{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}let $=(()=>{class t extends j{constructor(t){super(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(B,2))},t.ɵdir=i.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.qOj]}),t})(),V=(()=>{class t extends j{constructor(t){super(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(R,10))},t.ɵdir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function U(t,e){H(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange((n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&G(t,e)}))}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy((()=>{t._unregisterOnChange(n)}))}(t,e),function(t,e){e.valueAccessor.registerOnTouched((()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&G(t,e),"submit"!==t.updateOn&&t.markAsTouched()}))}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy((()=>{t._unregisterOnDisabledChange(n)}))}}(t,e)}function Y(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),Z(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange((()=>{})))}function q(t,e){t.forEach((t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)}))}function H(t,e){const n=T(t);null!==e.validator?t.setValidators(A(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=I(t);null!==e.asyncValidator?t.setAsyncValidators(A(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();q(e._rawValidators,r),q(e._rawAsyncValidators,r)}function Z(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=T(t);if(Array.isArray(i)&&i.length>0){const r=i.filter((t=>t!==e.validator));r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){const i=I(t);if(Array.isArray(i)&&i.length>0){const r=i.filter((t=>t!==e.asyncValidator));r.length!==i.length&&(n=!0,t.setAsyncValidators(r))}}}const i=()=>{};return q(e._rawValidators,i),q(e._rawAsyncValidators,i),n}function G(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function X(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach((t=>{var e;t.constructor===p?n=t:(e=t,Object.getPrototypeOf(e.constructor)===c?i=t:r=t)})),r||i||n||null}function Q(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const W="VALID",K="INVALID",tt="PENDING",et="DISABLED";function nt(t){return(st(t)?t.validators:t)||null}function it(t){return Array.isArray(t)?P(t):t||null}function rt(t,e){return(st(e)?e.asyncValidators:t)||null}function ot(t){return Array.isArray(t)?E(t):t||null}function st(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class at{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=it(this._rawValidators),this._composedAsyncValidatorFn=ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===W}get invalid(){return this.status===K}get pending(){return this.status==tt}get disabled(){return this.status===et}get enabled(){return this.status!==et}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=it(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ot(t)}addValidators(t){this.setValidators(N(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(N(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(z(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(z(t,this._rawAsyncValidators))}hasValidator(t){return L(this._rawValidators,t)}hasAsyncValidator(t){return L(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild((t=>t.markAllAsTouched()))}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild((t=>{t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild((t=>{t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=tt,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=et,this.errors=null,this._forEachChild((e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((t=>t(!0)))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=W,this._forEachChild((e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((t=>t(!1)))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==W&&this.status!==tt||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild((e=>e._updateTreeValidity(t))),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?et:W}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=tt,this._hasOwnPendingAsyncValidator=!0;const e=C(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe((e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach((t=>{i=i instanceof ct?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof ut&&i.at(t)||null})),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?et:this.errors?K:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(tt)?tt:this._anyControlsHaveStatus(K)?K:W}_anyControlsHaveStatus(t){return this._anyControls((e=>e.status===t))}_anyControlsDirty(){return this._anyControls((t=>t.dirty))}_anyControlsTouched(){return this._anyControls((t=>t.touched))}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){st(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){const e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}}class lt extends at{constructor(t=null,e,n){super(nt(e),rt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach((t=>t(this.value,!1!==e.emitViewToModelChange))),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Q(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Q(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class ct extends at{constructor(t,e,n){super(nt(e),rt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach((n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach((n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild(((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},((t,e,n)=>(t[n]=e instanceof lt?e.value:e.getRawValue(),t)))}_syncPendingControls(){let t=this._reduceChildren(!1,((t,e)=>!!e._syncPendingControls()||t));return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach((e=>{const n=this.controls[e];n&&t(n,e)}))}_setUpControls(){this._forEachChild((t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}))}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},((t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t)))}_reduceChildren(t,e){let n=t;return this._forEachChild(((t,i)=>{n=e(n,t,i)})),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild(((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)}))}}class ut extends at{constructor(t,e,n){super(nt(e),rt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange((()=>{})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach(((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach(((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild(((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map((t=>t instanceof lt?t.value:t.getRawValue()))}clear(t={}){this.controls.length<1||(this._forEachChild((t=>t._registerOnCollectionChange((()=>{})))),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce(((t,e)=>!!e._syncPendingControls()||t),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach(((e,n)=>{t(e,n)}))}_updateValue(){this.value=this.controls.filter((t=>t.enabled||this.disabled)).map((t=>t.value))}_anyControls(t){return this.controls.some((e=>e.enabled&&t(e)))}_setUpControls(){this._forEachChild((t=>this._registerControl(t)))}_checkAllValuesPresent(t){this._forEachChild(((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)}))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ht={provide:B,useExisting:(0,i.Gpc)((()=>pt))},dt=(()=>Promise.resolve(null))();let pt=(()=>{class t extends B{constructor(t,e,n,r){super(),this.control=new lt,this._registered=!1,this.update=new i.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=X(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),J(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?(t=this.name,[...this._parent.path,t]):[this.name];var t}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){U(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){dt.then((()=>{this.control.setValue(t,{emitViewToModelChange:!1})}))}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;dt.then((()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(R,9),i.Y36(m,10),i.Y36(v,10),i.Y36(u,10))},t.ɵdir=i.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([ht]),i.qOj,i.TTD]}),t})(),ft=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),gt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();const mt={provide:u,useExisting:(0,i.Gpc)((()=>vt)),multi:!0};let vt=(()=>{class t extends c{writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.NdJ("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i._Bn([mt]),i.qOj]}),t})();const _t=new i.OlP("NgModelWithFormControlWarning"),yt={provide:B,useExisting:(0,i.Gpc)((()=>bt))};let bt=(()=>{class t extends B{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=X(0,n)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&Y(e,this,!1),U(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}J(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Y(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.ɵfac=function(e){return new(e||t)(i.Y36(m,10),i.Y36(v,10),i.Y36(u,10),i.Y36(_t,8))},t.ɵdir=i.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([yt]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const wt={provide:R,useExisting:(0,i.Gpc)((()=>Ct))};let Ct=(()=>{class t extends R{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Z(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange((()=>{})))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return U(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Y(t.control||null,t,!1),Q(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,e=this.form,n=this.directives,e._syncPendingControls(),n.forEach((t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})),this.ngSubmit.emit(t),!1;var e,n}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach((t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(Y(e||null,t),n instanceof lt&&(U(n,t),t.control=n))})),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){H(t,e)})(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);if(e){const n=function(t,e){return Z(t,e)}(e,t);n&&e.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange((()=>{}))}_updateValidators(){H(this.form,this),this._oldForm&&Z(this._oldForm,this)}_checkFormPresent(){this.form}}return t.ɵfac=function(e){return new(e||t)(i.Y36(m,10),i.Y36(v,10))},t.ɵdir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([wt]),i.qOj,i.TTD]}),t})(),xt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[gt]]}),t})(),Ot=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[xt]}),t})(),kt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:_t,useValue:e.warnOnNgModelWithFormControl}]}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[xt]}),t})()},91211:(t,e,n)=>{n.d(e,{b2:()=>Y,H7:()=>z,s3:()=>p,Dx:()=>H,q6:()=>V,se:()=>M});var i=n(12057),r=n(74788);class o extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class s extends o{static makeCurrent(){(0,i.HT)(new s)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new r.OlP("TRANSITION_ID"),u=[{provide:r.ip1,useFactory:function(t,e,n){return()=>{n.get(r.CZH).donePromise.then((()=>{const n=(0,i.q)(),r=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},r.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),r.dqk.frameworkStabilizers||(r.dqk.frameworkStabilizers=[]),r.dqk.frameworkStabilizers.push((t=>{const e=r.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const o=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(o)}))}))}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();r.ip1,r.PXZ;const p=new r.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach((t=>t.manager=this)),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let e=0;e{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach((t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))})),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),v=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach((t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))}))}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(_),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(((e,n)=>{this._addStylesToHost(t,n,e)}))}ngOnDestroy(){this._hostNodes.forEach((t=>t.forEach(_)))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();function _(t){(0,i.q)().remove(t)}const y={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},b=/%COMP%/g,w="%COMP%",C=`_nghost-${w}`,x=`_ngcontent-${w}`;function O(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let M=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new P(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case r.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=O(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.ɵfac=function(e){return new(e||t)(r.LFG(f),r.LFG(v),r.LFG(r.AFp))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class P{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=y[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=y[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(r.JOm.DashCase|r.JOm.Important)?t.style.setProperty(e,n,i&r.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,k(n)):this.eventManager.addEventListener(t,e,k(n))}}class S extends P{constructor(t,e,n,i){super(t),this.component=n;const r=O(i+"-"+n.id,n.styles,[]);var o;e.addStyles(r),this.contentAttr=(o=i+"-"+n.id,x.replace(b,o)),this.hostAttr=function(t){return C.replace(b,t)}(i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class E extends P{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=O(i.id,i.styles,[]);for(let t=0;t{class t extends g{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();i.K0,r.c2e;const T=["alt","control","meta","shift"],I={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},D={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},L={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let N=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const o=t.parseEventName(n),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((()=>(0,i.q)().onAndCancel(e,o.domEventName,s)))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let o="";if(T.forEach((t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")})),o+=r,0!=n.length||0===r.length)return null;const s={};return s.domEventName=i,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&D.hasOwnProperty(e)&&(e=D[e]))}return I[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach((i=>{i!=n&&(0,L[i])(t)&&(e+=i+".")})),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded((()=>n(r)))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),z=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=(0,r.Yz7)({factory:function(){return(0,r.LFG)(R)},token:t,providedIn:"root"}),t})();function F(t){return new R(t.get(i.K0))}let R=(()=>{class t extends z{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.q3G.NONE:return e;case r.q3G.HTML:return(0,r.qzn)(e,"HTML")?(0,r.z3N)(e):(0,r.EiD)(this._doc,String(e)).toString();case r.q3G.STYLE:return(0,r.qzn)(e,"Style")?(0,r.z3N)(e):e;case r.q3G.SCRIPT:if((0,r.qzn)(e,"Script"))return(0,r.z3N)(e);throw new Error("unsafe value used in a script context");case r.q3G.URL:return(0,r.yhl)(e),(0,r.qzn)(e,"URL")?(0,r.z3N)(e):(0,r.mCW)(String(e));case r.q3G.RESOURCE_URL:if((0,r.qzn)(e,"ResourceURL"))return(0,r.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,r.JVY)(t)}bypassSecurityTrustStyle(t){return(0,r.L6k)(t)}bypassSecurityTrustScript(t){return(0,r.eBb)(t)}bypassSecurityTrustUrl(t){return(0,r.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,r.pB0)(t)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=(0,r.Yz7)({factory:function(){return F((0,r.LFG)(r.gxx))},token:t,providedIn:"root"}),t})();const B=i.bD,j=[{provide:r.Lbi,useValue:B},{provide:r.g9A,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,r.RDi)(document),document},deps:[]}],$=(r.Tiy,i.K0,[]),V=(0,r.eFA)(r._c5,"browser",j),U=[$,{provide:r.zSh,useValue:"root"},{provide:r.qLn,useFactory:function(){return new r.qLn},deps:[]},{provide:p,useClass:A,multi:!0,deps:[i.K0,r.R0b,r.Lbi]},{provide:p,useClass:N,multi:!0,deps:[i.K0]},[],{provide:M,useClass:M,deps:[f,v,r.AFp]},{provide:r.FYo,useExisting:M},{provide:m,useExisting:v},{provide:v,useClass:v,deps:[i.K0]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b]},{provide:f,useClass:f,deps:[p,r.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let Y=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:r.AFp,useValue:e.appId},{provide:c,useExisting:r.AFp},u]}}}return t.ɵfac=function(e){return new(e||t)(r.LFG(t,12))},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:U,imports:[i.ez,r.hGG]}),t})();function q(){return new H((0,r.LFG)(i.K0))}let H=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=(0,r.Yz7)({factory:q,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},34016:(t,e,n)=>{n.d(e,{gz:()=>Ht,m2:()=>j,F0:()=>mn,Od:()=>wn,yS:()=>yn,Bz:()=>In,lC:()=>Cn,Hx:()=>xt});var i=n(12057),r=n(74788),o=n(97968),s=n(25917),a=n(26215),l=n(9112),c=n(29856),u=n(13410),h=n(22416),d=n(41439),p=n(59193),f=n(52441),g=n(79765),m=n(45435),v=n(77393),_=n(7108);function y(t){return function(e){return 0===t?(0,p.c)():e.lift(new b(t))}}class b{constructor(t){if(this.total=t,this.total<0)throw new _.W}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends v.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t))}return t===e}function ct(t){return Array.prototype.concat.apply([],t)}function ut(t){return t.length>0?t[t.length-1]:null}function ht(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function dt(t){return(0,r.CqO)(t)?t:(0,r.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,s.of)(t)}const pt={exact:function t(e,n,i){if(!Ct(e.segments,n.segments))return!1;if(!_t(e.segments,n.segments,i))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r],i))return!1}return!0},subset:mt},ft={exact:function(t,e){return at(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((n=>lt(t[n],e[n])))},ignored:()=>!0};function gt(t,e,n){return pt[n.paths](t.root,e.root,n.matrixParams)&&ft[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function mt(t,e,n){return vt(t,e,e.segments,n)}function vt(t,e,n,i){if(t.segments.length>n.length){const r=t.segments.slice(0,n.length);return!!Ct(r,n)&&!e.hasChildren()&&!!_t(r,n,i)}if(t.segments.length===n.length){if(!Ct(t.segments,n))return!1;if(!_t(t.segments,n,i))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!mt(t.children[n],e.children[n],i))return!1}return!0}{const r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!Ct(t.segments,r)&&!!_t(t.segments,r,i)&&!!t.children[et]&&vt(t.children[et],e,o,i)}}function _t(t,e,n){return e.every(((e,i)=>ft[n](t[i].parameters,e.parameters)))}class yt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return kt.serialize(this)}}class bt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ht(e,((t,e)=>t.parent=this))}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mt(this)}}class wt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=it(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function Ct(t,e){return t.length===e.length&&t.every(((t,n)=>t.path===e[n].path))}class xt{}class Ot{parse(t){const e=new Rt(t);return new yt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Pt(t.root,!0)}`,n=function(t){const e=Object.keys(t).map((e=>{const n=t[e];return Array.isArray(n)?n.map((t=>`${Et(e)}=${Et(t)}`)).join("&"):`${Et(e)}=${Et(n)}`})).filter((t=>!!t));return e.length?`?${e.join("&")}`:""}(t.queryParams);var i;return`${e}${n}${"string"==typeof t.fragment?`#${i=t.fragment,encodeURI(i)}`:""}`}}const kt=new Ot;function Mt(t){return t.segments.map((t=>Dt(t))).join("/")}function Pt(t,e){if(!t.hasChildren())return Mt(t);if(e){const e=t.children[et]?Pt(t.children[et],!1):"",n=[];return ht(t.children,((t,e)=>{e!==et&&n.push(`${e}:${Pt(t,!1)}`)})),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return ht(t.children,((t,i)=>{i===et&&(n=n.concat(e(t,i)))})),ht(t.children,((t,i)=>{i!==et&&(n=n.concat(e(t,i)))})),n}(t,((e,n)=>n===et?[Pt(t.children[et],!1)]:[`${n}:${Pt(e,!1)}`]));return 1===Object.keys(t.children).length&&null!=t.children[et]?`${Mt(t)}/${e[0]}`:`${Mt(t)}/(${e.join("//")})`}}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Et(t){return St(t).replace(/%3B/gi,";")}function At(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Tt(t){return decodeURIComponent(t)}function It(t){return Tt(t.replace(/\+/g,"%20"))}function Dt(t){return`${At(t.path)}${e=t.parameters,Object.keys(e).map((t=>`;${At(t)}=${At(e[t])}`)).join("")}`;var e}const Lt=/^[^\/()?;=#]+/;function Nt(t){const e=t.match(Lt);return e?e[0]:""}const zt=/^[^=?&#]+/,Ft=/^[^?&#]+/;class Rt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new bt([],{}):new bt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[et]=new bt(t,e)),n}parseSegment(){const t=Nt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new wt(Tt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Nt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Nt(this.remaining);t&&(n=t,this.capture(n))}t[Tt(e)]=Tt(n)}parseQueryParam(t){const e=function(t){const e=t.match(zt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Ft);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=It(e),r=It(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Nt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=et);const o=this.parseChildren();e[r]=1===Object.keys(o).length?o[et]:new bt([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Bt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=jt(t,this._root);return e?e.children.map((t=>t.value)):[]}firstChild(t){const e=jt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=$t(t,this._root);return e.length<2?[]:e[e.length-2].children.map((t=>t.value)).filter((e=>e!==t))}pathFromRoot(t){return $t(t,this._root).map((t=>t.value))}}function jt(t,e){if(t===e.value)return e;for(const n of e.children){const e=jt(t,n);if(e)return e}return null}function $t(t,e){if(t===e.value)return[e];for(const n of e.children){const i=$t(t,n);if(i.length)return i.unshift(e),i}return[]}class Vt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ut(t){const e={};return t&&t.children.forEach((t=>e[t.value.outlet]=t)),e}class Yt extends Bt{constructor(t,e){super(t),this.snapshot=e,Xt(this,t)}toString(){return this.snapshot.toString()}}function qt(t,e){const n=function(t,e){const n=new Gt([],{},{},"",{},et,e,null,t.root,-1,{});return new Jt("",new Vt(n,[]))}(t,e),i=new a.X([new wt("",{})]),r=new a.X({}),o=new a.X({}),s=new a.X({}),l=new a.X(""),c=new Ht(i,r,s,l,o,et,e,n.root);return c.snapshot=n.root,new Yt(new Vt(c,[]),n)}class Ht{constructor(t,e,n,i,r,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,k.U)((t=>it(t))))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,k.U)((t=>it(t))))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Zt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce(((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)})),{params:{},data:{},resolve:{}})}(n.slice(i))}class Gt{constructor(t,e,n,i,r,o,s,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=it(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map((t=>t.toString())).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Jt extends Bt{constructor(t,e){super(e),this.url=t,Xt(this,e)}toString(){return Qt(this._root)}}function Xt(t,e){e.value._routerState=t,e.children.forEach((e=>Xt(t,e)))}function Qt(t){const e=t.children.length>0?` { ${t.children.map(Qt).join(", ")} } `:"";return`${t.value}${e}`}function Wt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,at(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),at(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nat(t.parameters,r[e].parameters)));var i,r;const o=!t.parent!=!e.parent;return n&&!o&&(!t.parent||Kt(t.parent,e.parent))}function te(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map((e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return te(t,e,i);return te(t,e)}))}(t,e,n);return new Vt(i,r)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return ee(e,t),t}}const n=(i=e.value,new Ht(new a.X(i.url),new a.X(i.params),new a.X(i.queryParams),new a.X(i.fragment),new a.X(i.data),i.outlet,i.component,i)),r=e.children.map((e=>te(t,e)));return new Vt(n,r)}var i}function ee(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{o[e]=Array.isArray(t)?t.map((t=>`${t}`)):`${t}`})),n.root===t?new yt(e,o,r):new yt(oe(n.root,t,e),o,r)}function oe(t,e,n){const i={};return ht(t.children,((t,r)=>{i[r]=t===e?n:oe(t,e,n)})),new bt(t.segments,i)}class se{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&ne(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(ie);if(i&&i!==ut(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ae{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function le(t,e,n){if(t||(t=new bt([],{})),0===t.segments.length&&t.hasChildren())return ce(t,e,n);const i=function(t,e,n){let i=0,r=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return o;const e=t.segments[r],s=n[i];if(ie(s))break;const a=`${s}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!pe(a,l,e))return o;i+=2}else{if(!pe(a,{},e))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=le(t.children[i],e,n))})),ht(t.children,((t,e)=>{void 0===i[e]&&(r[e]=t)})),new bt(t.segments,r)}}function ue(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=ue(new bt([],{}),0,t))})),e}function de(t){const e={};return ht(t,((t,n)=>e[n]=`${t}`)),e}function pe(t,e,n){return t==n.path&&at(e,n.parameters)}class fe{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Wt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Ut(e);t.children.forEach((t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]})),ht(i,((t,e)=>{this.deactivateRouteAndItsChildren(t,n)}))}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,r=Ut(t);for(const t of Object.keys(r))this.deactivateRouteAndItsChildren(r[t],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Ut(e);t.children.forEach((t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new K(t.value.snapshot))})),t.children.length&&this.forwardEvent(new Q(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Wt(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ge(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function ge(t){Wt(t.value),t.children.forEach(ge)}class me{constructor(t,e){this.routes=t,this.module=e}}function ve(t){return"function"==typeof t}function _e(t){return t instanceof yt}const ye=Symbol("INITIAL_VALUE");function be(){return(0,M.w)((t=>(0,l.aj)(t.map((t=>t.pipe((0,P.q)(1),(0,S.O)(ye))))).pipe((0,E.R)(((t,e)=>{let n=!1;return e.reduce(((t,i,r)=>{if(t!==ye)return t;if(i===ye&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||_e(i))return i}return t}),t)}),ye),(0,m.h)((t=>t!==ye)),(0,k.U)((t=>_e(t)?t:!0===t)),(0,P.q)(1))))}let we=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:function(){return[Cn]},encapsulation:2}),t})();function Ce(t,e=""){for(let n=0;nMe(t)===e));return n.push(...t.filter((t=>Me(t)!==e))),n}const Se={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ee(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Se):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||st)(n,t,e);if(!r)return Object.assign({},Se);const o={};ht(r.posParams,((t,e)=>{o[e]=t.path}));const s=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Ae(t,e,n,i,r="corrected"){if(n.length>0&&function(t,e,n){return n.some((n=>Te(t,e,n)&&Me(n)!==et))}(t,n,i)){const r=new bt(e,function(t,e,n,i){const r={};r[et]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&Me(i)!==et){const n=new bt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[Me(i)]=n}return r}(t,e,i,new bt(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((n=>Te(t,e,n)))}(t,n,i)){const o=new bt(t.segments,function(t,e,n,i,r,o){const s={};for(const a of i)if(Te(t,n,a)&&!r[Me(a)]){const n=new bt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Me(a)]=n}return Object.assign(Object.assign({},r),s)}(t,e,n,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new bt(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Te(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ie(t,e,n,i){return!!(Me(t)===i||i!==et&&Te(e,n,t))&&("**"===t.path||Ee(e,t,n).matched)}function De(t,e,n){return 0===e.length&&!t.children[n]}class Le{constructor(t){this.segmentGroup=t||null}}class Ne{constructor(t){this.urlTree=t}}function ze(t){return new c.y((e=>e.error(new Le(t))))}function Fe(t){return new c.y((e=>e.error(new Ne(t))))}function Re(t){return new c.y((e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`))))}class Be{constructor(t,e,n,i,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}apply(){const t=Ae(this.urlTree.root,[],[],this.config).segmentGroup,e=new bt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,et).pipe((0,k.U)((t=>this.createUrlTree(je(t),this.urlTree.queryParams,this.urlTree.fragment)))).pipe((0,A.K)((t=>{if(t instanceof Ne)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Le)throw this.noMatchError(t);throw t})))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,et).pipe((0,k.U)((e=>this.createUrlTree(je(e),t.queryParams,t.fragment)))).pipe((0,A.K)((t=>{if(t instanceof Le)throw this.noMatchError(t);throw t})))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new bt([],{[et]:t}):t;return new yt(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,k.U)((t=>new bt([],t)))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const t of Object.keys(n.children))"primary"===t?i.unshift(t):i.push(t);return(0,o.D)(i).pipe((0,T.b)((i=>{const r=n.children[i],o=Pe(e,i);return this.expandSegmentGroup(t,o,r,i).pipe((0,k.U)((t=>({segment:t,outlet:i}))))})),(0,E.R)(((t,e)=>(t[e.outlet]=e.segment,t)),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,m.h)(((e,n)=>t(e,n,i))):O.y,y(1),n?(0,x.d)(e):(0,C.T)((()=>new u.K)))}())}expandSegment(t,e,n,i,r,a){return(0,o.D)(n).pipe((0,T.b)((o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,a).pipe((0,A.K)((t=>{if(t instanceof Le)return(0,s.of)(null);throw t}))))),(0,I.P)((t=>!!t)),(0,A.K)(((t,n)=>{if(t instanceof u.K||"EmptyError"===t.name){if(De(e,i,r))return(0,s.of)(new bt([],{}));throw new Le(e)}throw t})))}expandSegmentAgainstRoute(t,e,n,i,r,o,s){return Ie(i,e,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):ze(e):ze(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Fe(r):this.lineralizeSegments(n,r).pipe((0,D.zg)((n=>{const r=new bt(n,{});return this.expandSegment(t,r,e,n,i,!1)})))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Ee(e,i,r);if(!s)return ze(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Fe(u):this.lineralizeSegments(i,u).pipe((0,D.zg)((i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),o,!1))))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,s.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,k.U)((t=>(n._loadedConfig=t,new bt(i,{}))))):(0,s.of)(new bt(i,{}));const{matched:o,consumedSegments:a,lastChild:l}=Ee(e,n,i);if(!o)return ze(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,D.zg)((t=>{const i=t.module,o=t.routes,{segmentGroup:l,slicedSegments:u}=Ae(e,a,c,o),h=new bt(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,o,h).pipe((0,k.U)((t=>new bt(a,t))));if(0===o.length&&0===u.length)return(0,s.of)(new bt(a,{}));const d=Me(n)===r;return this.expandSegment(i,h,o,u,d?et:r,!0).pipe((0,k.U)((t=>new bt(a.concat(t.segments),t.children))))})))}getChildConfig(t,e,n){return e.children?(0,s.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,s.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,D.zg)((n=>n?this.configLoader.load(t.injector,e).pipe((0,k.U)((t=>(e._loadedConfig=t,t)))):function(t){return new c.y((e=>e.error(ot(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))))}(e)))):(0,s.of)(new me([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,s.of)(!0);const r=i.map((i=>{const r=t.get(i);let o;if(function(t){return t&&ve(t.canLoad)}(r))o=r.canLoad(e,n);else{if(!ve(r))throw new Error("Invalid CanLoad guard");o=r(e,n)}return dt(o)}));return(0,s.of)(r).pipe(be(),(0,L.b)((t=>{if(!_e(t))return;const e=ot(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e})),(0,k.U)((t=>!0===t)))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,s.of)(n);if(i.numberOfChildren>1||!i.children[et])return Re(t.redirectTo);i=i.children[et]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new yt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ht(t,((t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t})),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let o={};return ht(e.children,((e,r)=>{o[r]=this.createSegmentGroup(t,e,n,i)})),new bt(r,o)}createSegments(t,e,n,i){return e.map((e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n)))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function je(t){const e={};for(const n of Object.keys(t.children)){const i=je(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[et]){const e=t.children[et];return new bt(t.segments.concat(e.segments),e.children)}return t}(new bt(t.segments,e))}class $e{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ve{constructor(t,e){this.component=t,this.route=e}}function Ue(t,e,n){const i=t._root;return qe(i,e?e._root:null,n,[i.value])}function Ye(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function qe(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ut(e);return t.children.forEach((t=>{!function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ct(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ct(t.url,e.url)||!at(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(t,e)||!at(t.queryParams,e.queryParams);default:return!Kt(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new $e(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?qe(t,e,a?a.children:null,i,r):qe(t,e,n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ve(a.outlet.component,s))}else s&&He(e,a,r),r.canActivateChecks.push(new $e(i)),o.component?qe(t,null,a?a.children:null,i,r):qe(t,null,n,i,r)}(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]})),ht(o,((t,e)=>He(t,n.getContext(e),r))),r}function He(t,e,n){const i=Ut(t),r=t.value;ht(i,((t,i)=>{r.component?He(t,e?e.children.getContext(i):null,n):He(t,e,n)})),r.component&&e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new Ve(e.outlet.component,r)):n.canDeactivateChecks.push(new Ve(null,r))}class Ze{}function Ge(t){return new c.y((e=>e.error(t)))}class Je{constructor(t,e,n,i,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const t=Ae(this.urlTree.root,[],[],this.config.filter((t=>void 0===t.redirectTo)),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,et);if(null===e)return null;const n=new Gt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},et,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Vt(n,e),r=new Jt(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=Zt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach((t=>this.inheritParamsAndData(t)))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const i of Object.keys(e.children)){const r=e.children[i],o=Pe(t,i),s=this.processSegmentGroup(o,r,i);if(null===s)return null;n.push(...s)}const i=Qe(n);return i.sort(((t,e)=>t.value.outlet===et?-1:e.value.outlet===et?1:t.value.outlet.localeCompare(e.value.outlet))),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return De(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!Ie(t,e,n,i))return null;let r,o=[],s=[];if("**"===t.path){const i=n.length>0?ut(n).parameters:{};r=new Gt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),Me(t),t.component,t,We(e),Ke(e)+n.length,en(t))}else{const i=Ee(e,t,n);if(!i.matched)return null;o=i.consumedSegments,s=n.slice(i.lastChild),r=new Gt(o,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),Me(t),t.component,t,We(e),Ke(e)+o.length,en(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Ae(e,o,s,a.filter((t=>void 0===t.redirectTo)),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Vt(r,t)]}if(0===a.length&&0===c.length)return[new Vt(r,[])];const u=Me(t)===i,h=this.processSegment(a,l,c,u?et:i);return null===h?null:[new Vt(r,h)]}}function Xe(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Qe(t){const e=[],n=new Set;for(const i of t){if(!Xe(i)){e.push(i);continue}const t=e.find((t=>i.value.routeConfig===t.value.routeConfig));void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const t of n){const n=Qe(t.children);e.push(new Vt(t.value,n))}return e.filter((t=>!n.has(t)))}function We(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ke(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function tn(t){return t.data||{}}function en(t){return t.resolve||{}}function nn(t){return(0,M.w)((e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,k.U)((()=>e))):(0,s.of)(e)}))}class rn{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}class on extends rn{}const sn=new r.OlP("ROUTES");class an{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,k.U)((n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new me(ct(i.injector.get(sn,void 0,r.XFs.Self|r.XFs.Optional)).map(ke),i)})),(0,A.K)((t=>{throw e._loader$=void 0,t})));return e._loader$=new f.c(n,(()=>new g.xQ)).pipe((0,N.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):dt(t()).pipe((0,D.zg)((t=>t instanceof r.YKP?(0,s.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t)))))}}class ln{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new cn,this.attachRef=null}}class cn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new ln,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class un{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function hn(t){throw t}function dn(t,e,n){return e.parse("/")}function pn(t,e){return(0,s.of)(null)}const fn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let mn=(()=>{class t{constructor(t,e,n,i,o,s,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new g.xQ,this.errorHandler=hn,this.malformedUriErrorHandler=dn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:pn,afterPreactivation:pn},this.urlHandlingStrategy=new un,this.routeReuseStrategy=new on,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(r.h0i),this.console=o.get(r.c2e);const u=o.get(r.R0b);this.isNgZoneEnabled=u instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new yt(new bt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new an(s,l,(t=>this.triggerEvent(new G(t))),(t=>this.triggerEvent(new J(t)))),this.routerState=qt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.ɵrouterPageId}setupNavigations(t){const e=this.events;return t.pipe((0,m.h)((t=>0!==t.id)),(0,k.U)((t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)}))),(0,M.w)((t=>{let n=!1,i=!1;return(0,s.of)(t).pipe((0,L.b)((t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}})),(0,M.w)((t=>{const n=this.browserUrlTree.toString(),i=!this.navigated||t.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return vn(t.source)&&(this.browserUrlTree=t.extractedUrl),(0,s.of)(t).pipe((0,M.w)((t=>{const n=this.transitions.getValue();return e.next(new B(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)})),(r=this.ngModule.injector,o=this.configLoader,a=this.urlSerializer,l=this.config,(0,M.w)((t=>function(t,e,n,i,r){return new Be(t,e,n,i,r).apply()}(r,o,a,t.extractedUrl,l).pipe((0,k.U)((e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))))),(0,L.b)((t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,e,n,i,r){return(0,D.zg)((o=>function(t,e,n,i,r="emptyOnly",o="legacy"){try{const a=new Je(t,e,n,i,r,o).recognize();return null===a?Ge(new Ze):(0,s.of)(a)}catch(t){return Ge(t)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),i,r).pipe((0,k.U)((t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))))}(this.rootComponentType,this.config,(t=>this.serializeUrl(t)),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,L.b)((t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)})));var r,o,a,l;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:a}=t,l=new B(n,this.serializeUrl(i),r,o);e.next(l);const c=qt(i,this.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E})),nn((t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})})),(0,L.b)((t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})),(0,k.U)((t=>Object.assign(Object.assign({},t),{guards:Ue(t.targetSnapshot,t.currentSnapshot,this.rootContexts)}))),function(t,e){return(0,D.zg)((n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?(0,s.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,D.zg)((t=>function(t,e,n,i,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,s.of)(!0);const a=o.map((o=>{const s=Ye(o,e,r);let a;if(function(t){return t&&ve(t.canDeactivate)}(s))a=dt(s.canDeactivate(t,e,n,i));else{if(!ve(s))throw new Error("Invalid CanDeactivate guard");a=dt(s(t,e,n,i))}return a.pipe((0,I.P)())}));return(0,s.of)(a).pipe(be())}(t.component,t.route,n,e,i))),(0,I.P)((t=>!0!==t),!0))}(l,i,r,t).pipe((0,D.zg)((n=>n&&"boolean"==typeof n?function(t,e,n,i){return(0,o.D)(e).pipe((0,T.b)((e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new X(t)),(0,s.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new W(t)),(0,s.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map((t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t))).filter((t=>null!==t)).map((e=>(0,d.P)((()=>{const r=e.guards.map((r=>{const o=Ye(r,e.node,n);let s;if(function(t){return t&&ve(t.canActivateChild)}(o))s=dt(o.canActivateChild(i,t));else{if(!ve(o))throw new Error("Invalid CanActivateChild guard");s=dt(o(i,t))}return s.pipe((0,I.P)())}));return(0,s.of)(r).pipe(be())}))));return(0,s.of)(r).pipe(be())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,s.of)(!0);const r=i.map((i=>(0,d.P)((()=>{const r=Ye(i,e,n);let o;if(function(t){return t&&ve(t.canActivate)}(r))o=dt(r.canActivate(e,t));else{if(!ve(r))throw new Error("Invalid CanActivate guard");o=dt(r(e,t))}return o.pipe((0,I.P)())}))));return(0,s.of)(r).pipe(be())}(t,e.route,n)))),(0,I.P)((t=>!0!==t),!0))}(i,a,t,e):(0,s.of)(n))),(0,k.U)((t=>Object.assign(Object.assign({},n),{guardsResult:t}))))}))}(this.ngModule.injector,(t=>this.triggerEvent(t))),(0,L.b)((t=>{if(_e(t.guardsResult)){const e=ot(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)})),(0,m.h)((t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1))),nn((t=>{if(t.guards.canActivateChecks.length)return(0,s.of)(t).pipe((0,L.b)((t=>{const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})),(0,M.w)((t=>{let e=!1;return(0,s.of)(t).pipe((n=this.paramsInheritanceStrategy,i=this.ngModule.injector,(0,D.zg)((t=>{const{targetSnapshot:e,guards:{canActivateChecks:r}}=t;if(!r.length)return(0,s.of)(t);let a=0;return(0,o.D)(r).pipe((0,T.b)((t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return(0,s.of)({});const a={};return(0,o.D)(r).pipe((0,D.zg)((r=>function(t,e,n,i){const r=Ye(t,e,i);return r.resolve?dt(r.resolve(e,n)):dt(r(e,n))}(t[r],e,n,i).pipe((0,L.b)((t=>{a[r]=t}))))),y(1),(0,D.zg)((()=>Object.keys(a).length===r.length?(0,s.of)(a):p.E)))}(t._resolve,t,e,i).pipe((0,k.U)((e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Zt(t,n).resolve),null))))}(t.route,e,n,i))),(0,L.b)((()=>a++)),y(1),(0,D.zg)((e=>a===r.length?(0,s.of)(t):p.E)))}))),(0,L.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}));var n,i})),(0,L.b)((t=>{const e=new Z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})))})),nn((t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})})),(0,k.U)((t=>{const e=function(t,e,n){const i=te(t,e._root,n?n._root:void 0);return new Yt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})})),(0,L.b)((t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(t.urlAfterRedirects,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)})),(r=this.rootContexts,a=this.routeReuseStrategy,l=t=>this.triggerEvent(t),(0,k.U)((t=>(new fe(a,t.targetRouterState,t.currentRouterState,l).activate(r),t)))),(0,L.b)({next(){n=!0},complete(){n=!0}}),(0,z.x)((()=>{var e;if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}(null===(e=this.currentNavigation)||void 0===e?void 0:e.id)===t.id&&(this.currentNavigation=null)})),(0,A.K)((n=>{if(i=!0,(r=n)&&r[rt]){const i=_e(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const r=new $(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout((()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||vn(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new V(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(e){t.reject(e)}}var r;return p.E})));var r,a,l})))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe((t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout((()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.ɵrouterPageId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)}),0),this.lastLocationChangeInfo=e})))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ce(t),this.config=t.map(ke),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:o,preserveFragment:s}=e,a=n||this.routerState.root,l=s?this.currentUrlTree.fragment:r;let c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,r){if(0===n.length)return re(e.root,e.root,e,i,r);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new se(!0,0,t);let e=0,n=!1;const i=t.reduce(((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return ht(i.outlets,((t,n)=>{e[n]="string"==typeof t?t.split("/"):t})),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach(((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))})),t):[...t,i]}),[]);return new se(n,e,i)}(n);if(o.toRoot())return re(e.root,new bt([],{}),e,i,r);const s=function(t,e,n){if(t.isAbsolute)return new ae(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment,i=t===e.root;return new ae(t,i,0)}const i=ne(t.commands[0])?0:1,r=n.snapshot._lastPathIndex+i;return function(t,e,n){let i=t,r=e,o=n;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new ae(i,!1,r-o)}(n.snapshot._urlSegment,r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?ce(s.segmentGroup,s.index,o.commands):le(s.segmentGroup,s.index,o.commands);return re(s.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=_e(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e}),{})}processNavigations(){this.navigations.subscribe((t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new j(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)}),(t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}))}scheduleNavigation(t,e,n,i,r){var o,s;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l=vn(e)&&a&&!vn(a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;r?(u=r.resolve,h=r.reject,d=r.promise):d=new Promise(((t,e)=>{u=t,h=e}));const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.ɵrouterPageId?n.ɵrouterPageId:i.replaceUrl||i.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(s=this.browserPageId)&&void 0!==s?s:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch((t=>Promise.reject(t)))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new $(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,ɵrouterPageId:e}:{navigationId:t}}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.DyG),r.LFG(xt),r.LFG(cn),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();function vn(t){return"imperative"!==t}let _n=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new g.xQ,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:bn(this.skipLocationChange),replaceUrl:bn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:bn(this.preserveFragment)})}}return t.ɵfac=function(e){return new(e||t)(r.Y36(mn),r.Y36(Ht),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},t.ɵdir=r.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.NdJ("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})(),yn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new g.xQ,this.subscription=t.events.subscribe((t=>{t instanceof j&&this.updateTargetUrlAndHref()}))}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:bn(this.skipLocationChange),replaceUrl:bn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:bn(this.preserveFragment)})}}return t.ɵfac=function(e){return new(e||t)(r.Y36(mn),r.Y36(Ht),r.Y36(i.S$))},t.ɵdir=r.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(r.Ikx("href",e.href,r.LSH),r.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})();function bn(t){return""===t||!!t}let wn=(()=>{class t{constructor(t,e,n,i,r,o){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe((t=>{t instanceof j&&this.update()}))}ngAfterContentInit(){(0,s.of)(this.links.changes,this.linksWithHrefs.changes,(0,s.of)(null)).pipe((0,F.J)()).subscribe((t=>{this.update(),this.subscribeToEachLinkOnChanges()}))}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter((t=>!!t)).map((t=>t.onChanges));this.linkInputChangesSubscription=(0,o.D)(e).pipe((0,F.J)()).subscribe((t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()}))}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter((t=>!!t))}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach((e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)})))}))}isLinkActive(t){const e=function(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>t.isActive(n.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(mn),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(_n,8),r.Y36(yn,8))},t.ɵdir=r.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,_n,5),r.Suo(n,yn,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.links=t),r.iGM(t=r.CRH())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.TTD]}),t})(),Cn=(()=>{class t{constructor(t,e,n,i,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=i||et,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=t._futureSnapshot.routeConfig.component,i=(e=e||this.resolver).resolveComponentFactory(n),r=this.parentContexts.getOrCreateContext(this.name).children,o=new xn(t,r,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(cn),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},t.ɵdir=r.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class xn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Ht?this.route:t===cn?this.childContexts:this.parent.get(t,e)}}class On{}class kn{preload(t,e){return(0,s.of)(null)}}let Mn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new an(e,n,(e=>t.triggerEvent(new G(e))),(e=>t.triggerEvent(new J(e))))}setUpPreloading(){this.subscription=this.router.events.pipe((0,m.h)((t=>t instanceof j)),(0,T.b)((()=>this.preload()))).subscribe((()=>{}))}preload(){const t=this.injector.get(r.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,F.J)(),(0,k.U)((t=>{})))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,(()=>(e._loadedConfig?(0,s.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,D.zg)((t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(mn),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(On))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),Pn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe((t=>{t instanceof B?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof j&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))}))}consumeScrollEvents(){return this.router.events.subscribe((t=>{t instanceof tt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))}))}scheduleScrollEvent(t,e){this.router.triggerEvent(new tt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.ɵfac=function(e){return new(e||t)(r.LFG(mn),r.LFG(i.EM),r.LFG(void 0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const Sn=new r.OlP("ROUTER_CONFIGURATION"),En=new r.OlP("ROUTER_FORROOT_GUARD"),An=[i.Ye,{provide:xt,useClass:Ot},{provide:mn,useFactory:function(t,e,n,i,r,o,s,a={},l,c){const u=new mn(null,t,e,n,i,r,o,ct(s));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe((t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)})),u},deps:[xt,cn,i.Ye,r.zs3,r.v3s,r.Sil,sn,Sn,[class{},new r.FiY],[class{},new r.FiY]]},cn,{provide:Ht,useFactory:function(t){return t.routerState.root},deps:[mn]},{provide:r.v3s,useClass:r.EAV},Mn,kn,class{preload(t,e){return e().pipe((0,A.K)((()=>(0,s.of)(null))))}},{provide:Sn,useValue:{enableTracing:!1}}];function Tn(){return new r.PXZ("Router",mn)}let In=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[An,zn(e),{provide:En,useFactory:Nn,deps:[[mn,new r.FiY,new r.tp0]]},{provide:Sn,useValue:n||{}},{provide:i.S$,useFactory:Ln,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Sn]},{provide:Pn,useFactory:Dn,deps:[mn,i.EM,Sn]},{provide:On,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:kn},{provide:r.PXZ,multi:!0,useFactory:Tn},[Fn,{provide:r.ip1,multi:!0,useFactory:Rn,deps:[Fn]},{provide:jn,useFactory:Bn,deps:[Fn]},{provide:r.tb,multi:!0,useExisting:jn}]]}}static forChild(e){return{ngModule:t,providers:[zn(e)]}}}return t.ɵfac=function(e){return new(e||t)(r.LFG(En,8),r.LFG(mn,8))},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})();function Dn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Pn(t,e,n)}function Ln(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function Nn(t){return"guarded"}function zn(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:sn,multi:!0,useValue:t}]}let Fn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new g.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then((()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise((e=>t=e)),n=this.injector.get(mn),i=this.injector.get(Sn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,s.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e}))}bootstrapListener(t){const e=this.injector.get(Sn),n=this.injector.get(Mn),i=this.injector.get(Pn),o=this.injector.get(mn),s=this.injector.get(r.z2F);t===s.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.zs3))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();function Rn(t){return t.appInitializer.bind(t)}function Bn(t){return t.bootstrapListener.bind(t)}const jn=new r.OlP("Router Initializer")},45642:(t,e,n)=>{n.d(e,{ro:()=>s,U5:()=>a});var i=n(74788),r=n(25219),o=n(97582);let s=(()=>{class t{constructor(t,e){this.ngZone=t,this.elementRef=e,this.maskedElement=null,this.maskito=r.A_,this.maskitoElement=r.gI}ngOnChanges(){var t;return(0,o.mG)(this,void 0,void 0,(function*(){null===(t=this.maskedElement)||void 0===t||t.destroy();const e=this.maskitoElement,n=yield e(this.elementRef.nativeElement);this.maskitoElement===e&&this.ngZone.runOutsideAngular((()=>{this.maskedElement=new r.C8(n,this.maskito)}))}))}ngOnDestroy(){var t;null===(t=this.maskedElement)||void 0===t||t.destroy()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.R0b),i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["","maskito",""]],inputs:{maskito:"maskito",maskitoElement:"maskitoElement"},features:[i.TTD]}),t})(),a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},25219:(t,e,n)=>{n.d(e,{gI:()=>i,A_:()=>r,C8:()=>C,CV:()=>w});const i=t=>t.querySelector("input,textarea")||t,r={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"};class o{constructor(){this.now=null,this.past=[],this.future=[]}undo(){const t=this.past.pop();t&&this.now&&(this.future.push(this.now),this.updateElement(t,"historyUndo"))}redo(){const t=this.future.pop();t&&this.now&&(this.past.push(this.now),this.updateElement(t,"historyRedo"))}updateHistory(t){if(!this.now)return void(this.now=t);const e=this.now.value!==t.value,n=this.now.selection.some(((e,n)=>e!==t.selection[n]));(e||n)&&(e&&(this.past.push(this.now),this.future=[]),this.now=t)}updateElement(t,e){this.now=t,this.updateElementState(t,{inputType:e,data:null})}}function s(t){return"string"==typeof t}function a(t,e,n,i){let r="";for(let o=e.length;o{const i=e[n];return s(i)?t===i:t.match(i)})):e.test(t)}function c(t,e,n=null){if(l(t.value,e))return t;const{value:i,selection:r}=Array.isArray(e)?function(t,e,n){let i=null,r=null;const o=Array.from(t.value).reduce(((o,l,c)=>{const u=o+a(e,o,l,n),h=e[u.length];return s(h)?u+h:l.match(h)?(null===i&&c>=t.selection[0]&&(i=u.length),null===r&&c>=t.selection[1]&&(r=u.length),u+l):u}),""),c=a(e,o,"",n);return{value:l(o+c,e)?o+c:o,selection:[null!=i?i:o.length,null!=r?r:o.length]}}(t,e,n):function({value:t,selection:e},n){const[i,r]=e;let o=i,s=r;return{value:Array.from(t).reduce(((t,e,a)=>{const l=t+e;return i===a&&(o=t.length),r===a&&(s=t.length),l.match(n)?l:t}),""),selection:[o,s]}}(t,e);return{selection:r,value:Array.isArray(e)?i.slice(0,e.length):i}}function u(t,e){if(!Array.isArray(e))return t;const[n,i]=t.selection,r=[],o=Array.from(t.value).reduce(((t,o,a)=>{const l=e[a];return a===n&&r.push(t.length),a===i&&r.push(t.length),s(l)&&l===o?t:t+o}),"");return r.length<2&&r.push(...new Array(2-r.length).fill(o.length)),{value:o,selection:[r[0],r[1]]}}class h{constructor(t,e){this.initialElementState=t,this.maskOptions=e,this.value="",this.selection=[0,0];const{value:n,selection:i}=c(t,this.getMaskExpression(t));this.value=n,this.selection=i}addCharacters([t,e],n){const{value:i}=this,r=this.getMaskExpression({value:i.slice(0,t)+n+i.slice(e),selection:[t+n.length,t+n.length]}),o={value:i,selection:[t,e]},s=u(o,r),[a,l]=function({value:t,selection:e},n,i){const[r,o]=e;return{value:t,selection:"replace"===("function"==typeof i?i({value:t,selection:e}):i)?[r,r+n.length]:[r,o]}}(s,n,this.maskOptions.overwriteMode).selection,h=s.value.slice(0,a)+n,d=h.length,p=c({value:h+s.value.slice(l),selection:[d,d]},r,o);if(i.slice(0,a)===c({value:h,selection:[d,d]},r,o).value||function(t,...e){return e.every((({value:e,selection:n})=>e===t.value&&n[0]===t.selection[0]&&n[1]===t.selection[1]))}(this,p))throw new Error("Invalid mask value");this.value=p.value,this.selection=p.selection}deleteCharacters([t,e]){if(t===e||!e)return;const{value:n}=this,i=this.getMaskExpression({value:n.slice(0,t)+n.slice(e),selection:[t,t]}),r={value:n,selection:[t,e]},o=u(r,i),[s,a]=o.selection,l=c({value:o.value.slice(0,s)+o.value.slice(a),selection:[s,s]},i,r);this.value=l.value,this.selection=l.selection}getMaskExpression(t){const{mask:e}=this.maskOptions;return"function"==typeof e?e(t):e}}class d{constructor(t){this.element=t,this.listeners=[]}listen(t,e,n){const i=e;this.element.addEventListener(t,i,n),this.listeners.push((()=>this.element.removeEventListener(t,i)))}destroy(){this.listeners.forEach((t=>t()))}}function p(t,e,n){return t.ctrlKey===!!(1&e)&&t.altKey===!!(2&e)&&t.shiftKey===!!(4&e)&&t.metaKey===!!(8&e)&&t.keyCode===n}function f({value:t,selection:e},n){const[i,r]=e;if(i!==r)return[i,r];const o=n?t.slice(i).indexOf("\n")+1||t.length:t.slice(0,r).lastIndexOf("\n")+1;return[n?i:o,n?o:r]}function g({value:t,selection:e},n){const[i,r]=e;return i!==r?[i,r]:(n?[i,r+1]:[i-1,r]).map((e=>Math.min(Math.max(e,0),t.length)))}const m=/\s+$/g,v=/^\s+/g,_=/\s/;function y({value:t,selection:e},n){const[i,r]=e;if(i!==r)return[i,r];if(n){const e=t.slice(i),[n]=e.match(v)||[""],r=e.replace(v,"").search(_);return[i,-1!==r?i+n.length+r:t.length]}const o=t.slice(0,r),[s]=o.match(m)||[""],a=o.replace(m,"").split("").reverse().findIndex((t=>t.match(_)));return[-1!==a?r-s.length-a:0,r]}function b(t=[]){return(e,...n)=>t.reduce(((t,e)=>Object.assign(Object.assign({},t),e(t,...n))),e)}function w(t,e){const n=Object.assign(Object.assign({},r),e),i=b(n.preprocessors),o=b(n.postprocessors),s="string"==typeof t?{value:t,selection:[0,0]}:t,{elementState:a}=i({elementState:s,data:""},"validation"),l=new h(a,n),{value:c,selection:u}=o(l,s);return"string"==typeof t?c:{value:c,selection:u}}class C extends o{constructor(t,e){super(),this.element=t,this.maskitoOptions=e,this.isTextArea="TEXTAREA"===this.element.nodeName,this.eventListener=new d(this.element),this.options=Object.assign(Object.assign({},r),this.maskitoOptions),this.preprocessor=b(this.options.preprocessors),this.postprocessor=b(this.options.postprocessors),this.teardowns=this.options.plugins.map((t=>t(this.element,this.options))),this.ensureValueFitsMask(),this.updateHistory(this.elementState),this.eventListener.listen("keydown",(t=>function(t){return p(t,1,89)||p(t,5,90)||p(t,12,90)}(t)?(t.preventDefault(),this.redo()):function(t){return p(t,1,90)||p(t,8,90)}(t)?(t.preventDefault(),this.undo()):void 0)),function(t){return"onbeforeinput"in t}(t)?this.eventListener.listen("beforeinput",(t=>{const e=t.inputType.includes("Forward");switch(this.updateHistory(this.elementState),t.inputType){case"historyUndo":return t.preventDefault(),this.undo();case"historyRedo":return t.preventDefault(),this.redo();case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:t,isForward:e,selection:g(this.elementState,e)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:t,isForward:e,selection:y(this.elementState,e),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:t,isForward:e,selection:f(this.elementState,e),force:!0});case"insertCompositionText":return;case"insertLineBreak":return this.handleEnter(t);default:return this.handleInsert(t,t.data||"")}})):(this.eventListener.listen("keydown",(t=>this.handleKeydown(t))),this.eventListener.listen("paste",(t=>{var e;return this.handleInsert(t,(null===(e=t.clipboardData)||void 0===e?void 0:e.getData("text/plain"))||"")}))),this.eventListener.listen("input",(({inputType:t})=>{"insertCompositionText"!==t&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))})),this.eventListener.listen("compositionend",(()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)}))}get elementState(){const{value:t,selectionStart:e,selectionEnd:n}=this.element;return{value:t,selection:[e||0,n||0]}}get maxLength(){const{maxLength:t}=this.element;return-1===t?1/0:t}destroy(){this.eventListener.destroy(),this.teardowns.forEach((t=>null==t?void 0:t()))}updateElementState({value:t,selection:e},n={inputType:"insertText",data:null}){const i=this.elementState.value;this.updateValue(t),this.updateSelectionRange(e),i!==t&&this.dispatchInputEvent(n)}updateSelectionRange([t,e]){var n,i;this.element.selectionStart===t&&this.element.selectionEnd===e||null===(i=(n=this.element).setSelectionRange)||void 0===i||i.call(n,t,e)}updateValue(t){this.element.value=t}ensureValueFitsMask(){this.updateElementState(w(this.elementState,this.options))}dispatchInputEvent(t={inputType:"insertText",data:null}){const e="undefined"!=typeof window?window:globalThis;(null==e?void 0:e.InputEvent)&&this.element.dispatchEvent(new InputEvent("input",Object.assign(Object.assign({},t),{bubbles:!0,cancelable:!1})))}handleKeydown(t){const e=t.key,n="Delete"===e;switch(e){case"Backspace":case"Delete":return this.handleDelete({event:t,isForward:n,selection:g(this.elementState,n)});case"Enter":return this.handleEnter(t)}(function({key:t,ctrlKey:e,metaKey:n,altKey:i}){const r=e||n||i,o=/^.$/u.test(t);return!r&&"Backspace"!==t&&o})(t)&&this.handleInsert(t,e)}handleDelete({event:t,selection:e,isForward:n,force:i=!1}){const r={value:this.elementState.value,selection:e},[o,s]=r.selection,{elementState:a}=this.preprocessor({elementState:r,data:""},n?"deleteForward":"deleteBackward"),l=new h(a,this.options),[c,u]=a.selection;l.deleteCharacters([c,u]);const d=this.postprocessor(l,r);if(r.value.slice(0,o)+r.value.slice(s)===d.value&&!i)return;if(t.preventDefault(),function(t,...e){return e.every((({value:e})=>e===t.value))}(r,a,l,d))return this.updateSelectionRange(n?[u,u]:[c,c]);const p=n?"deleteContentForward":"deleteContentBackward";this.updateElementState(d,{inputType:"inputType"in t?t.inputType:p,data:null}),this.updateHistory(d)}handleInsert(t,e){const n=this.elementState,{elementState:i,data:r=e}=this.preprocessor({data:e,elementState:n},"insert"),o=new h(i,this.options);try{o.addCharacters(i.selection,r)}catch(e){return t.preventDefault()}const[s,a]=i.selection,l=i.value.slice(0,s)+e+i.value.slice(a),c=this.postprocessor(o,n);if(c.value.length>this.maxLength)return t.preventDefault();l!==c.value&&(t.preventDefault(),this.updateElementState(c,{data:e,inputType:"inputType"in t?t.inputType:"insertText"}),this.updateHistory(c))}handleEnter(t){this.isTextArea&&this.handleInsert(t,"\n")}}},72878:(t,e,n)=>{n.d(e,{nQ:()=>_,f8:()=>N,vZ:()=>w});var i=n(25219);const r=[".",",","б","ю"],o=(new Date("0001-01-01"),new Date("9999-12-31")," "),s="–",a="—",l="-",c="−";function u(t,e,n){const i=Math.min(Number(n),Math.max(Number(e),Number(t)));return t instanceof Date?new Date(i):i}const h=/[\\^$.*+?()[\]{}|]/g,d=new RegExp(h.source);function p(t){return t&&d.test(t)?t.replace(h,"\\$&"):t}function f(t){return t}function g(t){const e=new RegExp(`${p(t)}$`);return t?({value:n,selection:i},r)=>{if(!n&&!r.value.endsWith(t))return{value:n,selection:i};if(!n.endsWith(t)&&!r.value.endsWith(t))return{selection:i,value:n+t};const o=r.value.replace(e,""),s=r.selection[1]>=o.length,a=function(t,e){let n="";for(let i=0;i{const i=t.length-1-n,r=a[i]===e&&s;return t[i]!==e||r?t.slice(0,i+1)+e+t.slice(i+1):t}),n)}}:f}function m(t){return t?({value:e,selection:n},i)=>{if(e.startsWith(t)||!e&&!i.value.startsWith(t))return{value:e,selection:n};const[r,o]=n,s=Array.from(t).reduce(((t,n,i)=>(t+e)[i]===n?t:t+n),"");return{selection:[r+s.length,o+s.length],value:s+e}}:f}function v(t,e,n){return(i,r)=>{const o=()=>e(i,r);return i.addEventListener(t,o,n),()=>i.removeEventListener(t,o,n)}}function _(t){return e=>{const n=e.ownerDocument;let i=0;const r=()=>i++,o=()=>{i=Math.max(--i,0)},s=()=>{if(function({activeElement:t}){if(!(null==t?void 0:t.shadowRoot))return t;let e=t.shadowRoot.activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(n)!==e)return;if(i)return n.addEventListener("mouseup",s,{once:!0,passive:!0});const r=e.selectionStart||0,o=e.selectionEnd||0,[a,l]=t(e.value,[r,o]);(a>r||l{n.removeEventListener("selectionchange",s),n.removeEventListener("mousedown",r),n.removeEventListener("mouseup",o)}}}function y({decimalSeparator:t,isNegativeAllowed:e,precision:n,thousandSeparator:i,prefix:r,postfix:o,decimalPseudoSeparators:s=[],pseudoMinuses:a=[]}){const l=b(r),u="\\d",h=e?`[${c}${a.map((t=>`\\${t}`)).join("")}]?`:"",d=i?`[${u}${p(i)}]*`:`[${u}]*`,f=n>0?`([${p(t)}${s.map(p).join("")}]${u}{0,${Number.isFinite(n)?n:""}})?`:"",g=b(o);return new RegExp(`^${l}${h}${d}${f}${g}$`)}function b(t){return t?`${t.split("").map((t=>`${p(t)}?`)).join("")}`:""}function w(t,e="."){const n=!!t.match(new RegExp(`^\\D*[${c}\\${l}${s}${a}]`)),i=t.replace(new RegExp(`[^\\d${p(e)}]`,"g"),"").replace(e,".");return i?Number((n?l:"")+i):NaN}function C({decimalSeparator:t,precision:e,decimalZeroPadding:n,postfix:i}){if(e<=0||!n)return f;const r=new RegExp(`${p(i)}$`);return({value:n,selection:o})=>{if(Number.isNaN(w(n)))return{value:n,selection:o};const[s,a=""]=n.replace(r,"").split(t);return{value:s+t+a.padEnd(e,"0")+i,selection:o}}}function x({decimalSeparator:t,decimalPseudoSeparators:e,pseudoMinuses:n}){let r=!0;const o=y({decimalSeparator:t,decimalPseudoSeparators:e,pseudoMinuses:n,prefix:"",postfix:"",thousandSeparator:"",precision:1/0,isNegativeAllowed:!0});return({elementState:t,data:e})=>r?(r=!1,{elementState:(0,i.CV)(t,{mask:o}),data:e}):{elementState:t,data:e}}function O({min:t,max:e,decimalSeparator:n}){return({value:i,selection:r})=>{const o=w(i,n),s=o>0?Math.min(o,e):Math.max(o,t);if(!Number.isNaN(o)&&s!==o){const t=`${s}`.replace(".",n).replace(l,c);return{value:t,selection:[t.length,t.length]}}return{value:i,selection:r}}}function k({decimalSeparator:t,thousandSeparator:e,decimalZeroPadding:n}){return({elementState:i,data:r},o)=>{const{value:s,selection:a}=i,[l,c]=a,u=s.slice(l,c),h=n?[t,e]:[e],d=n&&l>s.indexOf(t)&&Boolean(u.match(/^0+$/gi));return"deleteBackward"!==o&&"deleteForward"!==o||!h.includes(u)&&!d?{elementState:i,data:r}:{elementState:{value:s,selection:"deleteForward"===o?[c,c]:[l,l]},data:r}}}function M({decimalSeparator:t,precision:e}){const n=new RegExp(`^\\D*${p(t)}`);return({elementState:i,data:r})=>{const{value:o,selection:s}=i,[a]=s;return e<=0||o.includes(t)||!r.match(n)?{elementState:i,data:r}:{elementState:i,data:o.slice(0,a).match(/\d+/)?r:`0${r}`}}}function P(t,e){const n=new RegExp(`[${e.join("")}]`,"gi");return({elementState:e,data:i})=>{const{value:r,selection:o}=e;return{elementState:{selection:o,value:r.replace(n,t)},data:i.replace(n,t)}}}function S(t){return({elementState:e,data:n})=>{const{value:i,selection:r}=e,[o,s]=r;return{elementState:e,data:!i.includes(t)||i.slice(o,s+1).includes(t)?n:n.replace(new RegExp(p(t),"gi"),"")}}}function E({thousandSeparator:t,decimalSeparator:e,prefix:n,postfix:i}){if(!t)return f;const r=new RegExp(`^${p(n)}${c}?`),o=new RegExp(`${p(i)}$`);return({value:n,selection:i})=>{const[s,a=""]=n.split(e),[l,c]=i;let[u,h]=i;const d=s.replace(r,"").replace(o,""),[p=""]=s.match(r)||[],[f=""]=s.match(o)||[];return{value:p+Array.from(d).reduceRight(((e,n,i)=>{const r=!(!i&&n===t)&&e.length&&(e.length+1)%4==0;return n===t&&r?n+e:n!==t||r?r?(i<=l&&u++,i<=c&&h++,n+t+e):n+e:(i&&i<=l&&u--,i&&i<=c&&h--,e)}),"")+f+(n.includes(e)?e:"")+a,selection:[u,h]}}}function A(t,e){if(t>0)return f;const n=new RegExp(`${p(e)}.*$`,"g");return({elementState:t,data:e})=>{const{value:i,selection:r}=t,[o,s]=r,a=i.replace(n,"");return{elementState:{selection:[Math.min(o,a.length),Math.min(s,a.length)],value:a},data:e.replace(n,"")}}}new RegExp(`[${[":","."].map(p).join("")}]$`);const T=[0,0];function I(t,e){const n=function(t,e){const n=t=>{const n=p(e);return t.replace(new RegExp(`^(\\D+)?[0${n}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${n}]+(?=[1-9])`),"$1")},i=(t,e)=>{const i=t.slice(0,e),r=t.slice(e).startsWith("0");return i.length-n(i).length+(r?1:0)};return({value:e,selection:r})=>{const[o,s]=r,a=e.includes(t),[l,c=""]=e.split(t),u=n(l);if(l===u)return{value:e,selection:r};const h=o-i(e,o),d=s-i(e,s);return{value:u+(a?t:"")+c,selection:[Math.max(h,0),Math.max(d,0)]}}}(t,e);return v("blur",(t=>{const e=n({value:t.value,selection:T},{value:"",selection:T}).value;t.value!==e&&(t.value=e,t.dispatchEvent(new Event("input")))}),{capture:!0})}function D({min:t,max:e,decimalSeparator:n}){return v("blur",((r,o)=>{const s=w(r.value,n),a=u(s,t,e);Number.isNaN(s)||s===a||(r.value=(0,i.CV)(function(t){const e=String(t),[n,i]=e.split("e-");let r=e;if(i){const[,e]=n.split("."),o=Number(i)+((null==e?void 0:e.length)||0);r=t.toFixed(o)}return r}(a),o),r.dispatchEvent(new Event("input")))}),{capture:!0})}function L(t){return v("blur",(e=>{const n=e.value.replace(new RegExp(`^(\\D+)?${p(t)}`),`$10${t}`);n!==e.value&&(e.value=n,e.dispatchEvent(new Event("input")))}),{capture:!0})}function N({max:t=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,precision:n=0,thousandSeparator:u=o,decimalSeparator:h=".",decimalPseudoSeparators:d,decimalZeroPadding:p=!1,prefix:f="",postfix:v=""}={}){const _=[l,s,a].filter((t=>t!==u&&t!==h)),b=function({decimalSeparator:t,thousandSeparator:e,decimalPseudoSeparators:n=r}){return n.filter((n=>n!==e&&n!==t))}({decimalSeparator:h,thousandSeparator:u,decimalPseudoSeparators:d});return Object.assign(Object.assign({},i.A_),{mask:y({decimalSeparator:h,precision:n,thousandSeparator:u,prefix:f,postfix:v,isNegativeAllowed:e<0}),preprocessors:[x({decimalSeparator:h,decimalPseudoSeparators:b,pseudoMinuses:_}),P(c,_),P(h,b),M({decimalSeparator:h,precision:n}),k({decimalSeparator:h,decimalZeroPadding:p,thousandSeparator:u}),A(n,h),S(h)],postprocessors:[O({decimalSeparator:h,min:e,max:t}),m(f),g(v),E({decimalSeparator:h,thousandSeparator:u,prefix:f,postfix:v}),C({decimalSeparator:h,decimalZeroPadding:p,precision:n,postfix:v})],plugins:[I(h,u),L(h),D({min:e,max:t,decimalSeparator:h})],overwriteMode:p?({value:t,selection:[e]})=>e<=t.indexOf(h)?"shift":"replace":"shift"})}},62579:(t,e,n)=>{n.d(e,{L1:()=>p,ux:()=>f,UA:()=>g,H3:()=>m,Ct:()=>v,s5:()=>_,yZ:()=>y,m9:()=>d});var i=n(74788),r=n(29856),o=n(22759),s=n(9945),a=n(39761),l=n(88002),c=n(87519),u=n(47349),h=n(12057);const d=new i.OlP("An abstraction over global window object",{factory:()=>{const{defaultView:t}=(0,i.f3M)(h.K0);if(!t)throw new Error("Window is not available");return t}}),p=new i.OlP("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{const{requestAnimationFrame:t,cancelAnimationFrame:e}=(0,i.f3M)(d);return new r.y((n=>{let i=NaN;const r=e=>{n.next(e),i=t(r)};return i=t(r),()=>{e(i)}})).pipe((0,s.B)())}}),f=(new i.OlP("An abstraction over window.caches object",{factory:()=>(0,i.f3M)(d).caches}),new i.OlP("An abstraction over window.crypto object",{factory:()=>(0,i.f3M)(d).crypto}),new i.OlP("An abstraction over window.CSS object",{factory:()=>(0,i.f3M)(d).CSS||{escape:t=>t,supports:()=>!1}})),g=new i.OlP("An abstraction over window.history object",{factory:()=>(0,i.f3M)(d).history}),m=new i.OlP("An abstraction over window.localStorage object",{factory:()=>(0,i.f3M)(d).localStorage}),v=new i.OlP("An abstraction over window.location object",{factory:()=>(0,i.f3M)(d).location}),_=new i.OlP("An abstraction over window.navigator object",{factory:()=>(0,i.f3M)(d).navigator}),y=(new i.OlP("An abstraction over window.navigator.mediaDevices object",{factory:()=>(0,i.f3M)(_).mediaDevices}),new i.OlP("An abstraction over window.navigator.connection object",{factory:()=>(0,i.f3M)(_).connection||null}),new i.OlP("Shared Observable based on `document visibility changed`",{factory:()=>{const t=(0,i.f3M)(h.K0);return(0,o.R)(t,"visibilitychange").pipe((0,a.O)(0),(0,l.U)((()=>"hidden"!==t.visibilityState)),(0,c.x)(),(0,u.d)({refCount:!1,bufferSize:1}))}}),new i.OlP("An abstraction over window.performance object",{factory:()=>(0,i.f3M)(d).performance}),new i.OlP("An abstraction over window.screen object",{factory:()=>(0,i.f3M)(d).screen}),new i.OlP("An abstraction over window.sessionStorage object",{factory:()=>(0,i.f3M)(d).sessionStorage}),new i.OlP("An abstraction over SpeechRecognition class",{factory:()=>{const t=(0,i.f3M)(d);return t.speechRecognition||t.webkitSpeechRecognition||null}}),new i.OlP("An abstraction over window.speechSynthesis object",{factory:()=>(0,i.f3M)(d).speechSynthesis}),new i.OlP("An abstraction over window.navigator.userAgent object",{factory:()=>(0,i.f3M)(_).userAgent}))},23764:(t,e,n)=>{n.d(e,{k2:()=>o,Vi:()=>l,NI:()=>u,IM:()=>c});var i=n(74788),r=n(29856);const o=new i.OlP("MutationObserver config");function s(t,e){return null!==t.getAttribute(e)||void 0}function a({nativeElement:t}){const e=t.getAttribute("attributeFilter");return{attributeFilter:null==e?void 0:e.split(",").map((t=>t.trim())),attributeOldValue:s(t,"attributeOldValue"),attributes:s(t,"attributes"),characterData:s(t,"characterData"),characterDataOldValue:s(t,"characterDataOldValue"),childList:s(t,"childList"),subtree:s(t,"subtree")}}let l=(()=>{class t extends MutationObserver{constructor({nativeElement:t},e,n,r,o,s,a,l,c){super((t=>{this.waMutationObserver.emit(t)})),this.waMutationObserver=new i.vpe,this.observe(t,e)}ngOnDestroy(){this.disconnect()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(o),i.$8M("attributeFilter"),i.$8M("attributeOldValue"),i.$8M("attributes"),i.$8M("characterData"),i.$8M("characterDataOldValue"),i.$8M("childList"),i.$8M("subtree"))},t.ɵdir=i.lG2({type:t,selectors:[["","waMutationObserver",""]],outputs:{waMutationObserver:"waMutationObserver"},exportAs:["MutationObserver"],features:[i._Bn([{provide:o,deps:[i.SBq],useFactory:a}]),i.qOj]}),t})(),c=(()=>{class t extends r.y{constructor({nativeElement:t},e){super((n=>{const i=new MutationObserver((t=>{n.next(t)}));return i.observe(t,e),()=>{i.disconnect()}}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(o))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},12849:(t,e,n)=>{n.d(e,{c0:()=>ao,JF:()=>lo,FU:()=>ho,mG:()=>po,zb:()=>Oo,Lx:()=>Mo,B7:()=>fo,f2:()=>To,u4:()=>Io,$5:()=>Ho,qn:()=>Zo,qo:()=>Qo,Lq:()=>Wo,nj:()=>Xo});var i=n(74788),r=n(64548),o=n(44427),s=n(26215),a=n(79765),l=n(41291),c=n(66682),u=n(43190),h=n(88002),d=n(39761),p=n(46782),f=n(45435),g=n(19773),m=n(15257),v=n(87519),_=n(9945),y=n(12057),b=n(59193),w=n(40205),C=n(56693),x=n(59796),O=n(77393),k=n(20377),M=n(85345);class P{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new S(t,this.resultSelector))}}class S extends O.L{constructor(t,e,n=Object.create(null)){super(t),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(t){const e=this.iterators;(0,x.k)(t)?e.push(new A(t)):"function"==typeof t[k.hZ]?e.push(new E(t[k.hZ]())):e.push(new T(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class T extends M.Ds{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[k.hZ](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return(0,M.ft)(this.observable,new M.IY(this))}}var I=n(97968),D=n(71023);class L extends D.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((()=>t.flush(null)))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var N=n(69457);class z extends N.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i{class t{constructor(t,e,n){var i;this.doc=t,this._options=n,this._ready=new s.X(null),this.ready=this._ready.asObservable().pipe((0,f.h)((t=>!!t)),(0,h.U)((t=>t)),(0,m.q)(1)),(0,y.NF)(e)&&(t.defaultView.hljs?this._ready.next(t.defaultView.hljs):this._loadLibrary().pipe((0,u.w)((e=>this._options&&this._options.lineNumbersLoader?(t.defaultView.hljs=e,this.loadLineNumbers().pipe((0,R.b)((()=>this._ready.next(e))))):(this._ready.next(e),b.E))),(0,B.K)((t=>(console.error("[HLJS] ",t),b.E)))).subscribe(),(null===(i=this._options)||void 0===i?void 0:i.themePath)&&this.loadTheme(this._options.themePath))}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return(0,w._)((()=>"The full library and the core library were imported, only one of them should be imported!"));if(this._options.fullLibraryLoader&&this._options.languages)return(0,w._)((()=>"The highlighting languages were imported they are not needed!"));if(this._options.coreLibraryLoader&&!this._options.languages)return(0,w._)((()=>"The highlighting languages were not imported!"));if(!this._options.coreLibraryLoader&&this._options.languages)return(0,w._)((()=>"The core library was not imported!"));if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe((0,u.w)((t=>this._loadLanguages(t))))}return(0,w._)((()=>"Highlight.js library was not imported!"))}_loadLanguages(t){return function(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),(0,C.n)(t,void 0).lift(new P(e))}(...Object.entries(this._options.languages).map((([e,n])=>U(n()).pipe((0,R.b)((n=>t.registerLanguage(e,n))))))).pipe((0,h.U)((()=>t)))}loadCoreLibrary(){return U(this._options.coreLibraryLoader())}loadFullLibrary(){return U(this._options.fullLibraryLoader())}loadLineNumbers(){return U(this._options.lineNumbersLoader())}setTheme(t){this._themeLinkElement.href=t}loadTheme(t){this._themeLinkElement=this.doc.createElement("link"),this._themeLinkElement.href=t,this._themeLinkElement.type="text/css",this._themeLinkElement.rel="stylesheet",this._themeLinkElement.media="screen,print",this.doc.head.appendChild(this._themeLinkElement)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(y.K0),i.LFG(i.Lbi),i.LFG($,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();const U=t=>(0,I.D)(t).pipe((0,f.h)((t=>!!t&&!!t.default)),(0,h.U)((t=>t.default)));let Y=(()=>{class t{constructor(t,e){this._loader=t,this._hljs=null,t.ready.subscribe((t=>{this._hljs=t,e&&e.config&&(t.configure(e.config),t.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))}))}get hljs(){return this._hljs}highlight(t,{language:e,ignoreIllegals:n}){return this._loader.ready.pipe((0,h.U)((i=>i.highlight(t,{language:e,ignoreIllegals:n}))))}highlightAuto(t,e){return this._loader.ready.pipe((0,h.U)((n=>n.highlightAuto(t,e))))}highlightElement(t){return this._loader.ready.pipe((0,h.U)((e=>e.highlightElement(t))))}highlightAll(){return this._loader.ready.pipe((0,h.U)((t=>t.highlightAll())))}configure(t){return this._loader.ready.pipe((0,h.U)((e=>e.configure(t))))}registerLanguage(t,e){return this._loader.ready.pipe((0,R.b)((n=>n.registerLanguage(t,e))))}unregisterLanguage(t){return this._loader.ready.pipe((0,R.b)((e=>e.unregisterLanguage(t))))}registerAliases(t,{languageName:e}){return this._loader.ready.pipe((0,R.b)((n=>n.registerAliases(t,{languageName:e}))))}listLanguages(){return this._loader.ready.pipe((0,h.U)((t=>t.listLanguages())))}getLanguage(t){return this._loader.ready.pipe((0,h.U)((e=>e.getLanguage(t))))}safeMode(){return this._loader.ready.pipe((0,h.U)((t=>t.safeMode())))}debugMode(){return this._loader.ready.pipe((0,h.U)((t=>t.debugMode())))}lineNumbersBlock(t){return this._loader.ready.pipe((0,f.h)((t=>!!t.lineNumbersBlock)),(0,R.b)((e=>e.lineNumbersBlock(t))))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(V),i.LFG($,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),q=(()=>{class t{constructor(t,e,n,r){this._hljs=e,this._sanitizer=n,this._options=r,this.highlighted=new i.vpe,this._nativeElement=t.nativeElement}ngOnChanges(t){var e;null!==(null===(e=null==t?void 0:t.code)||void 0===e?void 0:e.currentValue)&&t.code.currentValue!==t.code.previousValue&&(this.code?this.highlightElement(this.code,this.languages):this.setTextContent(""))}highlightElement(t,e){this.setTextContent(t),this._hljs.highlightAuto(t,e).subscribe((t=>{this.setInnerHTML(null==t?void 0:t.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(t)}))}addLineNumbers(){this.destroyLineNumbersObserver(),F.schedule((()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver((()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()})),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})}))}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(t){F.schedule((()=>this._nativeElement.textContent=t))}setInnerHTML(t){F.schedule((()=>this._nativeElement.innerHTML=this._sanitizer.sanitize(i.q3G.HTML,t)||""))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(Y),i.Y36(j.H7),i.Y36($,8))},t.ɵdir=i.lG2({type:t,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[i.TTD]}),t})(),H=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var Z=n(97582);let G=(()=>{class t{transform(t,e,...n){return t.filter((t=>e(t,...n)))}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiFilter",type:t,pure:!0}),t})(),J=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})(),X=(()=>{class t{transform(t,e,n){var i;return null!==(i=null==t?void 0:t.replace(e,n))&&void 0!==i?i:""}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiReplace",type:t,pure:!0}),t})(),Q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var W=n(46732),K=n(56210),tt=n(42420),et=n(37801),nt=n(221),it=n(33770),rt=n(27103),ot=n(44358),st=n(85648),at=n(75675),lt=n(11927),ct=n(99434),ut=n(2330),ht=n(66749),dt=n(92668),pt=n(24751),ft=n(76480),gt=n(57179),mt=n(79456),vt=n(77320),_t=n(54789),yt=n(91489),bt=n(89570);function wt(t,e){if(1&t&&i._UZ(0,"tui-svg",2),2&t){const t=e.polymorpheusOutlet,n=i.oxw();i.ekj("t-mark_on",!n.empty),i.Q6J("src",t)}}const Ct=function(t){return{$implicit:t}},xt=["*"],Ot={size:"m",appearances:{unchecked:vt.Nm.Outline,checked:vt.Nm.Primary,indeterminate:vt.Nm.Primary},icons:{checked:({$implicit:t})=>"m"===t?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>"m"===t?"tuiIconMinus":"tuiIconMinusLarge"}},kt=(0,lt.JN)(Ot);let Mt=(()=>{class t{constructor(t){this.options=t,this.size=this.options.size,this.disabled=!1,this.focused=!1,this.hovered=!1,this.pressed=!1,this.invalid=!1,this.icon=this.options.icons.checked,this.value=!1}set valueSetter(t){!1!==t&&this.setCurrentIcon(t),this.value=t}get appearance(){switch(this.value){case!1:return this.options.appearances.unchecked;case!0:return this.options.appearances.checked;default:return this.options.appearances.indeterminate}}get empty(){return!1===this.value}setCurrentIcon(t){this.icon=null===t?this.options.icons.indeterminate:this.options.icons.checked}}return t.ɵfac=function(e){return new(e||t)(i.Y36(kt))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-size",e.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:["value","valueSetter"]},ngContentSelectors:xt,decls:3,vars:10,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid"],["class","t-mark",3,"t-mark_on","src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-mark",3,"src"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,wt,1,3,"tui-svg",1),i.Hsn(2),i.qZA()),2&t&&(i.Q6J("active",e.pressed)("appearance",e.appearance)("disabled",e.disabled)("focus",e.focused)("hover",e.hovered)("invalid",e.invalid),i.xp6(1),i.Q6J("polymorpheusOutlet",e.icon)("polymorpheusOutletContext",i.VKq(8,Ct,e.size)))},directives:[yt.o,bt.Li,_t.PN],styles:["[_nghost-%COMP%]{display:block;font-size:0;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem;border-radius:var(--tui-radius-xs)}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem;border-radius:var(--tui-radius-s)}.t-mark[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;width:100%;height:100%;transform:scale(0)}.t-mark_on[_ngcontent-%COMP%]{transform:scale(1)}"],changeDetection:0}),t})(),Pt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[_t.EI,yt.W,bt.wq]]}),t})();var St=n(12130),Et=n(44541),At=n(13633),Tt=n(75059),It=n(88491);const Dt=["focusableElement"];let Lt=(()=>{class t extends ft.F9{constructor(t,e,n){super(t,n),this.options=e,this.size=this.options.size}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return(0,gt.V8)(this.nativeFocusableElement)}get computedFocusable(){return this.interactive&&this.focusable}onChecked(t){this.value=t}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(pt.a5,10),i.Y36(kt),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-checkbox"]],viewQuery:function(t,e){if(1&t&&i.Gf(Dt,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-size",e.size)},inputs:{size:"size"},features:[i._Bn([(0,ct.FT)(t),(0,ft.wB)(t)]),i.qOj],decls:3,vars:11,consts:[[3,"disabled","focused","hovered","invalid","pressed","size","value"],["automation-id","tui-checkbox__native","type","checkbox",1,"t-native",3,"disabled","id","tuiFocusable","tuiChecked","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""]],template:function(t,e){1&t&&(i.TgZ(0,"tui-primitive-checkbox",0),i.TgZ(1,"input",1,2),i.NdJ("tuiCheckedChange",(function(t){return e.value=t}))("tuiFocusedChange",(function(t){return e.onFocused(t)}))("tuiFocusVisibleChange",(function(t){return e.onFocusVisible(t)})),i.qZA(),i.qZA()),2&t&&(i.Q6J("disabled",e.disabled)("focused",e.computedFocusVisible)("hovered",e.pseudoHover)("invalid",e.computedInvalid)("pressed",e.pseudoActive)("size",e.size)("value",e.value),i.xp6(1),i.Q6J("disabled",e.disabled)("id",e.id)("tuiFocusable",e.computedFocusable)("tuiChecked",e.value))},directives:[Mt,Et.t,At.t,Tt.U,It.q],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem}._readonly[_nghost-%COMP%] tui-primitive-checkbox[_ngcontent-%COMP%]{pointer-events:none}.t-native[_ngcontent-%COMP%]{padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.t-native[_ngcontent-%COMP%]:-webkit-autofill, .t-native[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-native[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}"],changeDetection:0}),t})(),Nt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,Et.S,At.u,Tt.F,It.c,Pt]]}),t})();const zt=["*"];let Ft=(()=>{class t extends ft.F9{constructor(t,e,n,i){super(t,e),this.mode$=n,this.options=i,this.size=this.options.size}get focused(){return(0,gt.V8)(this.nativeFocusableElement)}get nativeFocusableElement(){return this.checkbox?this.checkbox.nativeFocusableElement:null}onFocused(t){this.updateFocused(t)}onModelChange(t){this.value=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(pt.a5,10),i.Y36(i.sBO),i.Y36(mt.Au),i.Y36(kt))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-checkbox-labeled"]],viewQuery:function(t,e){if(1&t&&i.Gf(Lt,5),2&t){let t;i.iGM(t=i.CRH())&&(e.checkbox=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&i.uIk("data-size",e.size)},inputs:{size:"size"},features:[i._Bn([(0,ct.FT)(t),(0,ft.wB)(t),St.CV]),i.qOj],ngContentSelectors:zt,decls:4,vars:12,consts:[[1,"t-wrapper"],[3,"disabled","focusable","nativeId","pseudoActive","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","size","ngModel","ngModelChange","focusedChange"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"label",0),i.TgZ(1,"tui-checkbox",1),i.NdJ("ngModelChange",(function(t){return e.value=t}))("focusedChange",(function(t){return e.onFocused(t)})),i.qZA(),i.TgZ(2,"div",2),i.Hsn(3),i.qZA(),i.qZA()),2&t&&(i.xp6(1),i.Q6J("disabled",e.computedDisabled)("focusable",e.focusable)("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("pseudoInvalid",e.computedInvalid)("readOnly",e.readOnly)("size",e.size)("ngModel",e.value),i.xp6(1),i.ekj("t-content_disabled",e.computedDisabled))},directives:[Lt,pt.JJ,pt.On],styles:["[_nghost-%COMP%]{position:relative;display:block;line-height:0}._disabled[_nghost-%COMP%], ._readonly[_nghost-%COMP%]{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{display:inline-flex;max-width:100%;cursor:pointer}._disabled[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{cursor:default}[data-mode=onDark][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-s);line-height:1rem;word-wrap:break-word;min-width:0}.t-content_disabled[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{margin-left:.5rem}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-m);margin-left:.75rem}"],changeDetection:0}),t})(),Rt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.u5,Nt]]}),t})();var Bt=n(75452),jt=n(49941);const $t=["*"];let Vt=(()=>{class t{constructor(){this.name="tui-radio-group-"+t.index++}}return t.index=0,t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-radio-group"]],inputs:{name:"name"},ngContentSelectors:$t,decls:1,vars:0,template:function(t,e){1&t&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),t})();const Ut=["focusableElement"];function Yt(t,e){if(1&t&&i._UZ(0,"div",4),2&t){const t=i.oxw();i.Q6J("@tuiScaleIn",t.animation)}}const qt={size:"m",appearances:{unchecked:vt.Nm.Outline,checked:vt.Nm.Primary}},Ht=(0,lt.JN)(qt);let Zt=(()=>{class t extends ft.F9{constructor(t,e,n,i,r){super(t,e),this.animation=n,this.options=i,this.radioGroup=r,this.identityMatcher=it.bg,this.name=null,this.size=this.options.size,this.pseudoDisabled=!1}get appearance(){return this.checked?this.options.appearances.checked:this.options.appearances.unchecked}get computedDisabled(){return this.disabled||this.pseudoDisabled}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return(0,gt.V8)(this.nativeFocusableElement)}get checked(){return null===this.value?null===this.item:void 0!==this.item&&null!==this.item&&this.identityMatcher(this.value,this.item)}get computedName(){return this.name||this.radioGroupName||this.controlName||""}get isFocusable(){return!this.readOnly&&this.computedFocusable}onChecked(t){t&&(this.value=void 0!==this.item?this.item:this.fallbackValue)}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}get radioGroupName(){return null===this.radioGroup?null:this.radioGroup.name}}return t.ɵfac=function(e){return new(e||t)(i.Y36(pt.a5,10),i.Y36(i.sBO),i.Y36(mt.Pw),i.Y36(Ht),i.Y36(Vt,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-radio"]],viewQuery:function(t,e){if(1&t&&i.Gf(Ut,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:3,hostBindings:function(t,e){2&t&&(i.uIk("data-size",e.size),i.ekj("_disabled",e.computedDisabled))},inputs:{item:"item",identityMatcher:"identityMatcher",name:"name",size:"size",pseudoDisabled:"pseudoDisabled"},features:[i._Bn([(0,ct.FT)(t),(0,ft.wB)(t)]),i.qOj],decls:4,vars:12,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid"],["class","t-mark",4,"ngIf"],["type","radio",1,"t-native",3,"disabled","id","tuiChecked","tuiFocusable","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""],[1,"t-mark"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,Yt,1,1,"div",1),i.TgZ(2,"input",2,3),i.NdJ("tuiCheckedChange",(function(t){return e.onChecked(t)}))("tuiFocusedChange",(function(t){return e.onFocused(t)}))("tuiFocusVisibleChange",(function(t){return e.onFocusVisible(t)})),i.qZA(),i.qZA()),2&t&&(i.Q6J("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.computedDisabled)("focus",e.computedFocusVisible)("hover",e.pseudoHover)("invalid",e.computedInvalid),i.xp6(1),i.Q6J("ngIf",e.checked),i.xp6(1),i.Q6J("disabled",e.computedDisabled)("id",e.id)("tuiChecked",e.checked)("tuiFocusable",e.isFocusable),i.uIk("name",e.computedName))},directives:[yt.o,y.O5,Et.t,At.t,Tt.U,It.q],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0;border-radius:100%}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem}._readonly[_nghost-%COMP%]{pointer-events:none}.t-mark[_ngcontent-%COMP%]{position:absolute;background-color:currentColor;border-radius:100%}[data-size=m][_nghost-%COMP%] .t-mark[_ngcontent-%COMP%]{margin:.25rem;width:.5rem;height:.5rem}[data-size=l][_nghost-%COMP%] .t-mark[_ngcontent-%COMP%]{margin:.4375rem;width:.625rem;height:.625rem}.t-native[_ngcontent-%COMP%]{padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.t-native[_ngcontent-%COMP%]:-webkit-autofill, .t-native[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-native[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]{cursor:default}"],data:{animation:[jt.gI]},changeDetection:0}),t})(),Gt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,Et.S,At.u,Tt.F,It.c,yt.W]]}),t})();function Jt(t,e){1&t&&i.GkF(0)}const Xt=["*"];let Qt=(()=>{class t extends ft.F9{constructor(t,e,n){super(t,e),this.modeDirective=n,this.identityMatcher=it.bg,this.contentAlign="right",this.size="l",this.hideRadio=!1,this.pseudoDisabled=!1}get nativeFocusableElement(){return this.radio?this.radio.nativeFocusableElement:null}get focused(){return!!this.radio&&this.radio.focused}get computedDisabled(){return this.disabled||this.pseudoDisabled}get checked(){var t;return!!(null===(t=this.radio)||void 0===t?void 0:t.checked)&&this.hideRadio}get checkboxSize(){return"l"===this.size?"l":"m"}get appearance(){var t;return(null===(t=this.modeDirective)||void 0===t?void 0:t.mode)?this.checked?vt.Nm.Primary:vt.Nm.Secondary:this.checked?vt.Nm.WhiteblockActive:vt.Nm.Whiteblock}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}onModelChange(t){this.value=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(pt.a5,10),i.Y36(i.sBO),i.Y36(Bt.w,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-radio-block"]],viewQuery:function(t,e){if(1&t&&i.Gf(Zt,5),2&t){let t;i.iGM(t=i.CRH())&&(e.radio=t.first)}},hostVars:8,hostBindings:function(t,e){2&t&&(i.uIk("data-align",e.contentAlign)("data-size",e.size),i.ekj("_hidden_input",e.hideRadio)("_disabled",e.computedDisabled)("_active",e.checked))},inputs:{item:"item",identityMatcher:"identityMatcher",contentAlign:"contentAlign",size:"size",hideRadio:"hideRadio",pseudoDisabled:"pseudoDisabled"},features:[i._Bn([(0,ct.FT)(t),(0,ft.wB)(t)]),i.qOj],ngContentSelectors:Xt,decls:7,vars:22,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"active","appearance","disabled","focus","hover","invalid"],[1,"t-view",3,"focusable","identityMatcher","item","name","nativeId","pseudoActive","pseudoDisabled","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","size","ngModel","ngModelChange","focusedChange","focusVisibleChange"],[1,"t-label"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,Jt,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"label",1),i.TgZ(3,"tui-radio",2),i.NdJ("ngModelChange",(function(t){return e.value=t}))("focusedChange",(function(t){return e.onFocused(t)}))("focusVisibleChange",(function(t){return e.onFocusVisible(t)})),i.qZA(),i.TgZ(4,"div",3),i.TgZ(5,"div",4),i.Hsn(6),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Q6J("ngIf",e.modeDirective&&i.lcZ(1,20,e.modeDirective.change$)),i.xp6(2),i.Q6J("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.computedDisabled)("focus",e.computedFocusVisible)("hover",e.pseudoHover)("invalid",e.computedInvalid),i.xp6(1),i.Q6J("focusable",e.focusable)("identityMatcher",e.identityMatcher)("item",e.item)("name",e.computedName||"")("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoDisabled",e.computedDisabled)("pseudoFocus",!1)("pseudoHover",e.pseudoHover)("pseudoInvalid",e.computedInvalid)("readOnly",e.readOnly)("size",e.checkboxSize)("ngModel",e.value))},directives:[y.O5,yt.o,Zt,pt.JJ,pt.On],pipes:[y.Ov],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);display:inline-block;vertical-align:top;align-items:flex-start;border-radius:var(--tui-radius-m)}[data-size=m][_nghost-%COMP%], [data-size=l][_nghost-%COMP%]{font:var(--tui-font-text-m)}._disabled[_nghost-%COMP%], ._readonly[_nghost-%COMP%]{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:inherit;box-sizing:border-box;border-radius:inherit;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:0 1rem 0 0}[data-align=right][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{flex-direction:row-reverse;padding:0 0 0 1rem}[data-size=s]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 1rem}[data-size=m]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 1.5rem}[data-size=l]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 2.25rem}[data-size=s][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-s) / 2 - .5rem) .5rem}[data-size=m][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-m) / 2 - .5rem) .75rem}[data-size=l][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-l) / 2 - .75rem) 1rem}._hidden_input[_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{position:absolute;height:1px;width:1px;margin:-1px;border:0;padding:0;overflow:hidden;clip:rect(0,0,0,0);-webkit-clip-path:inset(0);clip-path:inset(0)}.t-label[_ngcontent-%COMP%]{display:flex;flex-grow:1;align-self:flex-start;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-l)}._hidden_input[_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{text-align:center;justify-content:center}.t-content[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0}),t})(),Wt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.u5,Gt,yt.W]]}),t})();const Kt=["*"];let te=(()=>{class t{constructor(t){this.mode$=t,this.size="m",this.status="default",this.hoverable=!1}get padding(){var t;return this.isEmpty?"none":(0,lt.dt)(null===(t=this.value)||void 0===t?void 0:t.valueOf())?"m":"l"}get outputValue(){var t;const e=null===(t=this.value)||void 0===t?void 0:t.valueOf();return(0,lt.dt)(e)&&e>99?"99+":(0,lt.Pc)(this.value)?String(this.value):""}get isEmpty(){return!this.value&&0!==this.value}titleText({offsetWidth:t,scrollWidth:e}){return t{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez]]}),t})();var ne=n(34016),ie=n(64493),re=n(23917),oe=n(87941),se=n(98952),ae=n(75046),le=n(23764),ce=n(54487),ue=n(74235),he=n(25917),de=n(54395),pe=n(62579),fe=n(30126),ge=n(35575);const me=["tuiTab",""];function ve(t,e){1&t&&i.GkF(0)}const _e=["*"];function ye(t,e){1&t&&i.GkF(0)}function be(t,e){if(1&t&&i._UZ(0,"tui-underline",2),2&t){const t=i.oxw();i.Q6J("element",t.activeElement)}}function we(t,e){1&t&&i.GkF(0)}function Ce(t,e){if(1&t&&i.GkF(0,12),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t)}}function xe(t,e){if(1&t&&(i.TgZ(0,"div"),i.GkF(1,12),i.qZA()),2&t){const t=i.oxw(),e=t.index,n=t.$implicit,r=i.oxw();i.ekj("t-overflown",r.isOverflown(e)),i.xp6(1),i.Q6J("ngTemplateOutlet",n)}}function Oe(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Ce,1,1,"ng-container",10),i.YNc(2,xe,2,3,"ng-template",null,11,i.W1O),i.BQk()),2&t){const t=e.index,n=i.MAs(3),r=i.oxw();i.xp6(1),i.Q6J("ngIf",t<=r.lastVisibleIndex)("ngIfElse",n)}}function ke(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function Me(t,e){if(1&t&&(i._uU(0),i.ALo(1,"async"),i._UZ(2,"tui-svg",13)),2&t){const t=i.oxw();i.hij(" ",i.lcZ(1,4,t.moreWord$)," "),i.xp6(2),i.ekj("t-icon_rotated",t.open),i.Q6J("src",t.arrowOptions.iconSmall)}}function Pe(t,e){if(1&t&&i.GkF(0,12),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t)}}function Se(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",17),i.NdJ("tui-tab-activate",(function(){const e=i.CHM(t).index;return i.oxw(2).onClick(e)})),i.YNc(1,Pe,1,1,"ng-container",18),i.qZA()}if(2&t){const t=e.index,n=i.oxw(2);i.xp6(1),i.Q6J("ngIf",n.shouldShow(t))}}function Ee(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",14,15),i.NdJ("keydown.arrowDown.prevent",(function(e){i.CHM(t);const n=i.MAs(1);return i.oxw().onWrapperArrow(e,n,!1)}))("keydown.arrowUp.prevent",(function(e){i.CHM(t);const n=i.MAs(1);return i.oxw().onWrapperArrow(e,n,!0)})),i.YNc(2,Se,2,1,"div",16),i.qZA()}if(2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngForOf",t.items)}}function Ae(t,e){if(1&t&&i._UZ(0,"tui-underline",19),2&t){const t=i.oxw();i.Q6J("element",t.activeElement)}}const Te=new i.OlP("[TUI_TAB_EVENT]"),Ie=[rt.a3,rt.ku,oe.Ok,{provide:Te,deps:[i.SBq,oe.Ok,[new i.FiY,le.IM],[new i.FiY,ne.Od]],useFactory:({nativeElement:t},e,n,i)=>{const r=i&&n?n.pipe((0,f.h)((()=>i.isActive))):b.E;return(0,c.T)(r,e.pipe((0,f.h)(ce.y)),t.matches("button")?(0,ht.mL)(t,"click"):b.E).pipe((0,h.U)((()=>t.dispatchEvent(new CustomEvent("tui-tab-activate",{bubbles:!0})))))}},St.CV];let De=(()=>{class t{constructor(t,e,n,i,r,o){this.routerLinkActive=t,this.el=e,this.mode$=n,this.event$=i,this.margin=r,this.focusVisible=!1,o.subscribe((t=>{this.focusVisible=t}))}get isActive(){return!!this.routerLinkActive&&this.routerLinkActive.isActive}ngOnDestroy(){(0,gt.V8)(this.el.nativeElement)&&this.el.nativeElement.blur()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(ne.Od,8),i.Y36(i.SBq),i.Y36(mt.Au),i.Y36(Te),i.Y36(ae.WO),i.Y36(rt.ku))},t.ɵcmp=i.Xpm({type:t,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],hostVars:8,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(i.Udp("cursor","pointer")("--tui-tab-margin",e.margin,"px"),i.ekj("_focus-visible",e.focusVisible)("_active",e.isActive))},features:[i._Bn(Ie)],attrs:me,ngContentSelectors:_e,decls:4,vars:3,consts:[[4,"ngIf"],[1,"t-highlight"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,ve,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"span",1),i.Hsn(3),i.qZA()),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.event$))},directives:[y.O5],pipes:[y.Ov],styles:['._underline[_nghost-%COMP%]:hover, ._underline [_nghost-%COMP%]:hover{box-shadow:inset 0 -2px var(--tui-base-03)}tui-tabs > [_nghost-%COMP%]:first-child, tui-tabs > [_nghost-%COMP%]:first-child, [tuiTabs] > [_nghost-%COMP%]:first-child, [tuiTabs] > [_nghost-%COMP%]:first-child, tui-tabs > :first-child[_nghost-%COMP%], tui-tabs > :first-child [_nghost-%COMP%], [tuiTabs] > :first-child[_nghost-%COMP%], [tuiTabs] > :first-child [_nghost-%COMP%]{margin-left:0}[_nghost-%COMP%]{transition-property:color,box-shadow,opacity,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;position:relative;display:flex;flex-shrink:0;height:100%;box-sizing:border-box;justify-content:space-between;align-items:center;white-space:nowrap;cursor:pointer;outline:none;text-decoration:none;color:inherit;margin-left:var(--tui-tab-margin, 1.5rem)}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}[_nghost-%COMP%]:not([data-mode])._active{opacity:1;color:var(--tui-text-01);box-shadow:none}[data-mode=onDark][_nghost-%COMP%]{color:#ffffffb8}[data-mode=onDark][_nghost-%COMP%]:hover, [data-mode=onDark]._active[_nghost-%COMP%]{color:#fff}[data-mode=onDark]._focus-visible[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{background:var(--tui-clear-inverse);color:var(--tui-text-01)}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}[data-mode=onLight][_nghost-%COMP%]:hover, [data-mode=onLight]._active[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._focus-visible[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{background:var(--tui-text-01);color:#fff}._focus-visible[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{background:var(--tui-selection)}._android[_nghost-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;height:3rem;flex:1;flex-shrink:0;justify-content:center;margin:0;text-transform:uppercase;color:var(--tui-base-09);opacity:.5;font-size:.875rem;font-weight:500;letter-spacing:-.008125rem;font-family:-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif}._android[_nghost-%COMP%]:hover{box-shadow:none}._android._active[_nghost-%COMP%]{opacity:1;color:var(--tui-base-09)}._android[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{width:auto}._ios[_nghost-%COMP%]{height:1.75rem;flex:1;flex-shrink:0;justify-content:center;margin:0;color:var(--tui-base-01);opacity:1;font-size:.8125rem;font-weight:500;letter-spacing:-.005rem;font-family:-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif}._ios[_nghost-%COMP%]:hover{box-shadow:none}._ios._active[_nghost-%COMP%]{font-size:.875rem;font-weight:600;color:var(--tui-link)}._ios[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{width:auto}@media (hover: hover){[_nghost-%COMP%]:hover{color:var(--tui-text-01)}}.t-highlight[_ngcontent-%COMP%]{display:inline-flex;width:100%;align-items:center;justify-content:inherit}.t-highlight[_ngcontent-%COMP%] >*{flex-shrink:0}tui-tabs[data-vertical][_nghost-%COMP%], tui-tabs[data-vertical] [_nghost-%COMP%], [tuiTabs][data-vertical][_nghost-%COMP%], [tuiTabs][data-vertical] [_nghost-%COMP%]{min-height:2.75rem;height:auto;white-space:normal;margin:0;text-align:left;padding:.25rem 1.25rem .25rem 0}tui-tabs[data-vertical][_nghost-%COMP%]:after, tui-tabs[data-vertical] [_nghost-%COMP%]:after, [tuiTabs][data-vertical][_nghost-%COMP%]:after, [tuiTabs][data-vertical] [_nghost-%COMP%]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;right:0;width:2px;background:var(--tui-primary);transform:scaleX(0);transform-origin:right}tui-tabs[data-vertical][_nghost-%COMP%]:hover, tui-tabs[data-vertical] [_nghost-%COMP%]:hover, [tuiTabs][data-vertical][_nghost-%COMP%]:hover, [tuiTabs][data-vertical] [_nghost-%COMP%]:hover{box-shadow:inset -2px 0 var(--tui-base-03)}tui-tabs[data-vertical]._active[_nghost-%COMP%]:after, tui-tabs[data-vertical] ._active[_nghost-%COMP%]:after, [tuiTabs][data-vertical]._active[_nghost-%COMP%]:after, [tuiTabs][data-vertical] ._active[_nghost-%COMP%]:after{transform:none}tui-tabs[data-vertical="right"][_nghost-%COMP%], tui-tabs[data-vertical="right"] [_nghost-%COMP%], [tuiTabs][data-vertical="right"][_nghost-%COMP%], [tuiTabs][data-vertical="right"] [_nghost-%COMP%]{text-align:right;padding:.25rem 0 .25rem 1.25rem}tui-tabs[data-vertical="right"][_nghost-%COMP%]:after, tui-tabs[data-vertical="right"] [_nghost-%COMP%]:after, [tuiTabs][data-vertical="right"][_nghost-%COMP%]:after, [tuiTabs][data-vertical="right"] [_nghost-%COMP%]:after{right:auto;left:0;transform-origin:left}tui-tabs[data-vertical="right"][_nghost-%COMP%]:hover, tui-tabs[data-vertical="right"] [_nghost-%COMP%]:hover, [tuiTabs][data-vertical="right"][_nghost-%COMP%]:hover, [tuiTabs][data-vertical="right"] [_nghost-%COMP%]:hover{box-shadow:inset 2px 0 var(--tui-base-03)}'],changeDetection:0}),t})(),Le=(()=>{class t{constructor(t){this.el=t,this.activeItemIndex=0,this.activeItemIndexChange=new i.vpe}get tabs(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiTab]"))}get activeElement(){return this.tabs[this.activeItemIndex]||null}onActivate(t,e){const n=this.tabs.findIndex((t=>t===e));t.stopPropagation(),n!==this.activeItemIndex&&(this.activeItemIndexChange.emit(n),this.activeItemIndex=n)}moveFocus(t,e){const{tabs:n}=this;(0,gt.VR)(n.indexOf(t),n,e)}ngAfterViewChecked(){const{tabs:t,activeElement:e}=this;t.forEach((t=>{const n=t===e;t.classList.toggle("_active",n),t.setAttribute("tabIndex",n?"0":"-1")}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["tui-tabs"],["nav","tuiTabs",""]],hostBindings:function(t,e){1&t&&i.NdJ("tui-tab-activate",(function(t){return e.onActivate(t,t.target)}))},inputs:{activeItemIndex:"activeItemIndex"},outputs:{activeItemIndexChange:"activeItemIndexChange"}}),t})();const Ne=(0,lt.JN)({underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0});let ze=(()=>{class t{constructor({nativeElement:t},e,n,i){this.zone=e,this.animationFrame$=n,this.mode$=i,this.el$=new ue.t(1),this.refresh$=this.el$.pipe((0,u.w)((t=>t?this.animationFrame$.pipe((0,h.U)((()=>t)),(0,ht.fL)(this.zone)):(0,he.of)(null))),(0,_.B)()),this.transition$=(0,fe.Gt)(this.el$.pipe((0,h.U)((t=>t&&"all")),(0,de.b)(50))),this.transform$=(0,fe.Gt)(this.refresh$.pipe((0,h.U)((t=>t?`translate3d(${t.offsetLeft}px, 0, 0)`:null)))),this.width$=(0,fe.Gt)(this.refresh$.pipe((0,h.U)((t=>(null==t?void 0:t.clientWidth)||0)))),t["$.style.transitionProperty"]=this.transition$,t["$.style.transform"]=this.transform$,t["$.style.width.px"]=this.width$}set element(t){this.el$.next(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(pe.L1),i.Y36(mt.Au))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-underline"]],hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$}))("$.style.transitionProperty",(function(){return e.transition$()}))("$.style.transform",(function(){return e.transform$()}))("$.style.width.px",(function(){return e.width$()}))},inputs:{element:"element"},features:[i._Bn([St.CV])],decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;left:0;height:100%;color:var(--tui-primary);transform:scale(0);box-shadow:inset 0 -.1875rem 0 -.0625rem;transition-property:none;pointer-events:none}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}"],changeDetection:0}),t})(),Fe=(()=>{class t{constructor(t,e,n,i,r){this.options=t,this.el=e,this.tabs=n,this.children=it.Mm,this.underline=this.options.underline,r.pipe((0,f.h)((()=>this.underline))).subscribe((()=>{i.detectChanges()}))}get activeItemIndex(){return this.tabs.activeItemIndex}set activeItemIndex(t){this.tabs.activeItemIndex=t}get activeElement(){return this.tabs.activeElement}onKeyDownArrow(t,e){this.tabs.moveFocus(t,e)}ngAfterViewChecked(){this.scrollTo(this.tabs.activeItemIndex)}scrollTo(t){const e=this.tabs.tabs[t];if(!e)return;const{offsetLeft:n,offsetWidth:i}=e,{nativeElement:r}=this.el;nr.scrollLeft+r.offsetWidth&&(r.scrollLeft=n+i-r.offsetWidth)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(Ne),i.Y36(i.SBq),i.Y36(Le),i.Y36(i.sBO),i.Y36(rt.tl))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-tabs",3,"vertical",""],["nav","tuiTabs","",3,"vertical",""]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,De,4),2&t){let t;i.iGM(t=i.CRH())&&(e.children=t)}},hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("keydown.arrowRight.prevent",(function(t){return e.onKeyDownArrow(t.target,1)}))("keydown.arrowLeft.prevent",(function(t){return e.onKeyDownArrow(t.target,-1)})),2&t&&i.ekj("_underline",e.underline)},inputs:{underline:"underline"},features:[i._Bn([rt.a3,rt.tl,le.IM,{provide:le.k2,useValue:{childList:!0}}])],ngContentSelectors:_e,decls:4,vars:4,consts:[[4,"ngIf"],["class","t-underline",3,"element",4,"ngIf"],[1,"t-underline",3,"element"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,ye,1,0,"ng-container",0),i.ALo(1,"async"),i.Hsn(2),i.YNc(3,be,1,1,"tui-underline",1)),2&t&&(i.Q6J("ngIf",i.lcZ(1,2,e.children.changes)),i.xp6(3),i.Q6J("ngIf",e.underline))},directives:[y.O5,ze],pipes:[y.Ov],styles:["[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:relative;z-index:0;display:flex;font:var(--tui-font-text-m);height:var(--tui-height-l);color:var(--tui-text-02);box-shadow:inset 0 -1px var(--tui-base-03);overflow:auto}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.t-underline[_ngcontent-%COMP%]{z-index:-1}"],changeDetection:0}),(0,Z.gn)([ot.UM],t.prototype,"scrollTo",null),t})();const Re=new i.OlP("[TUI_TABS_REFRESH]"),Be=[rt.tl,rt.a3,le.IM,(0,se.fx)({align:"right"}),{provide:le.k2,useValue:{childList:!0,subtree:!0,characterData:!0}},{provide:Re,deps:[rt.tl,le.IM,rt.a3,y.K0,i.SBq,i.sBO],useFactory:(t,e,n,{body:i},{nativeElement:r},o)=>(0,c.T)(t,e.pipe((0,R.b)((()=>o.detectChanges())))).pipe((0,f.h)((()=>i.contains(r))),(0,de.b)(0),(0,d.O)(null),(0,p.R)(n))}];let je=(()=>{class t{constructor(t,e,n,r,o,s,a){this.options=t,this.margin=e,this.refresh$=n,this.el=r,this.cdr=o,this.moreWord$=s,this.arrowOptions=a,this.maxIndex=1/0,this.underline=this.options.underline,this.activeItemIndex=0,this.itemsLimit=this.options.itemsLimit,this.activeItemIndexChange=new i.vpe,this.items=it.Mm,this.open=!1}get tabs(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiTab]"))}get activeElement(){var t;const{tabs:e}=this,n=(0,st.Ki)(this.activeItemIndex||0,0,e.length-2);return this.options.exposeActive||this.lastVisibleIndex>=n?e[n]||null:(null===(t=this.moreButton)||void 0===t?void 0:t.nativeElement)||null}get isMoreAlone(){return this.lastVisibleIndex<0&&!this.options.exposeActive}get isMoreVisible(){return this.lastVisibleIndex=this.items.length)return this.maxIndex;const t=this.itemsLimit-1>this.activeItemIndex||!this.options.exposeActive?1:2;return Math.min(this.itemsLimit-t,this.maxIndex)}ngAfterViewInit(){this.refresh$.pipe((0,h.U)((()=>this.getMaxIndex())),(0,f.h)((t=>this.maxIndex!==t))).subscribe((t=>{this.maxIndex=t,this.cdr.detectChanges()}))}onActiveItemIndexChange(t){this.updateActiveItemIndex(t)}onClick(t){this.open=!1,this.focusMore(),this.updateActiveItemIndex(t)}onArrowRight(t){(0,ie.ve)(t.target)&&(0,gt.V8)(t.target)&&this.focusMore()}onArrowLeft(){const{tabs:t}=this;let e=t.length-2;for(;e>=0;){if(t[e].focus(),(0,gt.V8)(t[e]))return;e--}}onWrapperArrow(t,e,n){const i=t.target,r=(0,gt.BW)({initial:i,root:e,previous:n});r&&r.focus()}isOverflown(t){return t!==this.activeItemIndex||!this.options.exposeActive}shouldShow(t){return t>this.lastVisibleIndex&&this.isOverflown(t)}focusMore(){this.moreButton&&this.moreButton.nativeElement.focus()}getMaxIndex(){const{tabs:t,activeItemIndex:e,margin:n}=this;if(t.length<2)return 0;const{exposeActive:i,minMoreWidth:r}=this.options,{clientWidth:o}=this.el.nativeElement,s=t[e]?t[e].scrollWidth:0,a=Math.max(t[t.length-1].scrollWidth,r);let l=t.length-2,c=t.reduce(((t,{scrollWidth:e})=>t+e),0)+l*n-t[t.length-1].scrollWidth;if(c<=o)return 1/0;for(;l;)if(c-=t[l].scrollWidth+n,l--,c+(i&&e>l?s+n:0)+a+n+(0,st.HW)(this.maxIndex===l-1){class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,bt.wq,re.jh,_t.EI,At.u,K.H]]}),t})();var Ve=n(59328),Ue=n(40719);const Ye=["wrapper"];function qe(t,e){if(1&t&&(i.TgZ(0,"tui-loader",4),i.GkF(1,5),i.qZA()),2&t){const t=i.oxw(2);i.Q6J("overlay",!0)("showLoader",t.loading),i.xp6(1),i.Q6J("ngTemplateOutlet",t.content)}}function He(t,e){if(1&t&&(i.ynx(0),i.Hsn(1),i.YNc(2,qe,2,3,"tui-loader",3),i.BQk()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",t.async)("ngIfElse",t.content)}}const Ze=["*"];let Ge=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiExpandContent",""]]}),t})(),Je=(()=>{class t{constructor(t){this.cdr=t,this.state=0,this.async=!1,this.content=null,this.expanded=null}set expandedSetter(t){if(null!==this.expanded){if(0!==this.state)return this.expanded=t,void(this.state=3);this.expanded=t,this.retrigger(this.async&&t?1:3)}else this.expanded=t}get overflow(){return 0!==this.state}get loading(){return!!this.expanded&&this.async&&1===this.state}get height(){const{expanded:t,state:e,contentWrapper:n}=this;return t&&2===e||!t&&3===e?0:n&&(!t&&2===e||t&&3===e)?n.nativeElement.offsetHeight:n&&t&&1===e?Math.max(n.nativeElement.offsetHeight,48):null}get contentVisible(){return this.expanded||0!==this.state}onTransitionEnd({propertyName:t}){"opacity"===t&&3===this.state&&(this.state=0)}onExpandLoaded(t){t.stopPropagation(),1===this.state&&this.retrigger(3)}retrigger(t){this.state=2,setTimeout((()=>{2===this.state&&(this.state=t,this.cdr.markForCheck())}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-expand"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,Ge,5,i.Rgc),2&t){let t;i.iGM(t=i.CRH())&&(e.content=t.first)}},viewQuery:function(t,e){if(1&t&&i.Gf(Ye,5),2&t){let t;i.iGM(t=i.CRH())&&(e.contentWrapper=t.first)}},hostVars:9,hostBindings:function(t,e){1&t&&i.NdJ("transitionend.self",(function(t){return e.onTransitionEnd(t)}))("tui-expand-loaded",(function(t){return e.onExpandLoaded(t)})),2&t&&(i.uIk("aria-expanded",e.expanded),i.Udp("height",e.height,"px"),i.ekj("_expanded",e.expanded)("_overflow",e.overflow)("_loading",e.loading))},inputs:{async:"async",expandedSetter:["expanded","expandedSetter"]},ngContentSelectors:Ze,decls:3,vars:3,consts:[[1,"t-wrapper"],["wrapper",""],[4,"ngIf"],["size","l",3,"overlay","showLoader",4,"ngIf","ngIfElse"],["size","l",3,"overlay","showLoader"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0,1),i.YNc(2,He,3,2,"ng-container",2),i.qZA()),2&t&&(i.Q6J("@tuiParentAnimation",void 0)("@.disabled",e.overflow),i.xp6(2),i.Q6J("ngIf",e.contentVisible))},directives:[y.O5,Ue.kM,y.tP],styles:['[_nghost-%COMP%]{display:block;transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);opacity:0}._overflow[_nghost-%COMP%]{overflow:hidden}._expanded[_nghost-%COMP%]{opacity:1;transform:translate(0)}._loading[_nghost-%COMP%]{opacity:.99}.t-wrapper[_ngcontent-%COMP%]:before, .t-wrapper[_ngcontent-%COMP%]:after{content:"";display:table}'],data:{animation:[it.Kx]},changeDetection:0}),t})(),Xe=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,Ue.dS]]}),t})();var Qe=n(95974);const We=["focusableElement"];function Ke(t,e){if(1&t&&i._UZ(0,"tui-svg",9),2&t){const t=e.polymorpheusOutlet,n=i.oxw(2);i.ekj("t-icon_open",n.open),i.Q6J("src",t)}}function tn(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Ke,1,3,"tui-svg",8),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.options.iconLarge)}}function en(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function nn(t,e){if(1&t&&(i.TgZ(0,"div",11),i.YNc(1,en,2,1,"ng-container",12),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("polymorpheusOutlet",t.lazyContent)}}function rn(t,e){if(1&t&&i.YNc(0,nn,2,1,"div",10),2&t){const t=i.oxw();i.Q6J("ngIf",t.lazyContent)}}function on(t,e){1&t&&(i.TgZ(0,"div",13),i.Hsn(1,1),i.qZA())}const sn=["*",[["","tuiAccordionItemContent",""]]],an=["*","[tuiAccordionItemContent]"],ln=[[["tui-accordion-item"]]],cn=["tui-accordion-item"];let un=(()=>{class t extends bt.GL{constructor(t,e){super(t,e)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Rgc,2),i.Y36(i.sBO))},t.ɵdir=i.lG2({type:t,selectors:[["ng-template","tuiAccordionItemContent",""]],features:[i.qOj]}),t})(),hn=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiAccordionItemContent","",5,"ng-template"]]}),t})(),dn=(()=>{class t extends ft.Xn{constructor(t,e,n){super(),this.cdr=t,this.mode$=e,this.options=n,this.noPadding=!1,this.showArrow=!0,this.borders="all",this.size="m",this.disabled=!1,this.disableHover=!1,this.open=!1,this.async=!1,this.openChange=new i.vpe}get nativeFocusableElement(){return this.disabled||!this.focusableElement?null:this.focusableElement.nativeElement}get focused(){return(0,gt.V8)(this.nativeFocusableElement)}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}onRowToggle(){this.disabled||this.updateOpen(!this.open)}onItemKeyDownEsc(t){this.open&&(t.stopPropagation(),this.updateOpen(!1))}close(){this.updateOpen(!1),this.cdr.markForCheck()}updateOpen(t){this.open!==t&&(this.open=t,this.openChange.emit(t))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(mt.Au),i.Y36(ge._j))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-accordion-item"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,hn,5),i.Suo(n,un,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.eagerContent=t.first),i.iGM(t=i.CRH())&&(e.lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&i.Gf(We,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:8,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(i.uIk("data-borders",e.borders)("data-size",e.size),i.ekj("_no-padding",e.noPadding)("_has-arrow",e.showArrow)("_disabled",e.disabled))},inputs:{noPadding:"noPadding",showArrow:"showArrow",borders:"borders",size:"size",disabled:"disabled",disableHover:"disableHover",open:"open",async:"async"},outputs:{openChange:"openChange"},features:[i._Bn([(0,ct.FT)(t),St.CV]),i.qOj],ngContentSelectors:an,decls:9,vars:10,consts:[["automation-id","tui-accordion__item-wrapper",1,"t-wrapper"],["automation-id","tui-accordion__item-header","type","button",1,"t-header",3,"disabled","tuiFocusable","click","keydown.esc","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""],["automation-id","tui-accordion__item-title",1,"t-title"],[4,"ngIf"],[3,"async","expanded"],["tuiExpandContent",""],["class","t-content",4,"ngIf"],["automation-id","tui-accordion__item-arrow","class","t-icon",3,"t-icon_open","src",4,"polymorpheusOutlet"],["automation-id","tui-accordion__item-arrow",1,"t-icon",3,"src"],["automation-id","tui-accordion__item-content","class","t-content",4,"ngIf"],["automation-id","tui-accordion__item-content",1,"t-content"],[4,"polymorpheusOutlet"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(sn),i.TgZ(0,"div",0),i.TgZ(1,"button",1,2),i.NdJ("click",(function(){return e.onRowToggle()}))("keydown.esc",(function(t){return e.onItemKeyDownEsc(t)}))("tuiFocusedChange",(function(t){return e.onFocused(t)}))("tuiFocusVisibleChange",(function(t){return e.onFocusVisible(t)})),i.TgZ(3,"span",3),i.Hsn(4),i.qZA(),i.YNc(5,tn,2,1,"ng-container",4),i.qZA(),i.TgZ(6,"tui-expand",5),i.YNc(7,rn,1,1,"ng-template",6),i.YNc(8,on,2,0,"div",7),i.qZA(),i.qZA()),2&t&&(i.xp6(1),i.ekj("t-header_hoverable",!e.disableHover)("t-header_open",e.open),i.Q6J("disabled",e.computedDisabled)("tuiFocusable",e.computedFocusable),i.xp6(4),i.Q6J("ngIf",e.showArrow),i.xp6(1),i.Q6J("async",e.async)("expanded",e.open),i.xp6(2),i.Q6J("ngIf",e.eagerContent))},directives:[At.t,Tt.U,It.q,y.O5,Je,Ge,bt.Li,_t.PN],styles:['[_nghost-%COMP%]{position:relative;display:block;overflow:hidden;border-radius:var(--tui-radius-l)}[data-borders=top-bottom][_nghost-%COMP%]{border-radius:0!important}.t-wrapper[_ngcontent-%COMP%]{position:relative;border-radius:inherit}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-sizing:border-box;border-radius:inherit;border:1px solid var(--tui-base-04);pointer-events:none}[_nghost-%COMP%]:not([data-borders]) .t-wrapper[_ngcontent-%COMP%]:after{border-width:0}[data-borders=all][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-width:1px}[data-borders=top-bottom][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-left-width:0;border-right-width:0}[data-borders=top][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-left-width:0;border-right-width:0;border-bottom-width:0}[data-borders=bottom][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-left-width:0;border-right-width:0;border-top-width:0}[data-mode=onDark][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-color:var(--tui-base-03)}[data-mode=onLight][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-color:var(--tui-text-01)}._focus-visible[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border:2px solid var(--tui-focus)}[_nghost-%COMP%]:not([data-mode]) .t-wrapper[_ngcontent-%COMP%]{background:var(--tui-base-01)}.t-header[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;width:100%;font:var(--tui-font-text-l);align-items:center;box-sizing:border-box;border-bottom:1px solid var(--tui-base-04);min-height:var(--tui-height-l);padding:.75rem 1.25rem;color:var(--tui-text-01);cursor:pointer;text-align:left;outline:none}[data-mode=onDark][_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{color:var(--tui-text-01-night);border-color:var(--tui-base-03)}[data-mode=onLight][_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{border-color:var(--tui-text-01)}[_nghost-%COMP%]:not([data-borders]) .t-header[_ngcontent-%COMP%]{border-bottom-width:0;box-shadow:none}._has-arrow[_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{padding-right:.75rem}[data-mode=onDark][_nghost-%COMP%] .t-header_open[_ngcontent-%COMP%]{background:var(--tui-clear-inverse)}[data-mode=onLight][_nghost-%COMP%] .t-header_open[_ngcontent-%COMP%]{background:var(--tui-clear)}[data-size=s][_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{font:var(--tui-font-text-m);min-height:var(--tui-height-m);padding:.625rem .75rem .625rem 1rem}._no-padding[_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{padding-left:0;padding-right:0}._disabled[_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{cursor:default}[_nghost-%COMP%]:hover:not([data-mode]) .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-base-02)}[_nghost-%COMP%]:hover[data-mode=onDark] .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-clear-inverse)}[_nghost-%COMP%]:hover[data-mode=onLight] .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-clear)}.t-title[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:0;flex-grow:1}._has-arrow[_nghost-%COMP%] .t-title[_ngcontent-%COMP%]{margin-right:.5rem}.t-icon[_ngcontent-%COMP%]{transition-property:transform,color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:1.5rem;height:1.5rem;margin-left:auto;color:var(--tui-base-06)}.t-icon_open[_ngcontent-%COMP%]{transform:rotate(180deg)}[data-mode][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}[_nghost-%COMP%]:hover[data-mode] .t-icon[_ngcontent-%COMP%]{opacity:.8}[data-mode=onDark][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onLight][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-01)}[_nghost-%COMP%]:hover:not([data-mode]) .t-icon[_ngcontent-%COMP%]{color:var(--tui-base-07)}.t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-m);padding:1.25rem;word-wrap:break-word}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-s);padding:1rem}'],changeDetection:0}),t})(),pn=(()=>{class t{constructor(t){this.destroy$=t,this.closeOthers=!0,this.rounded=!0,this.accordionItems=it.Mm}ngAfterContentInit(){const{accordionItems:t}=this,e=(0,ht.ll)(t),n=e.pipe((0,Ve.G)(),(0,h.U)((([t,e])=>e.find((e=>!t.includes(e)&&e.open)))),(0,f.h)(lt.Pc));(0,c.T)(e.pipe((0,u.w)((t=>(0,c.T)(...t.map((t=>t.openChange.pipe((0,f.h)(ce.y),(0,h.U)((()=>t))))))))),n).pipe((0,f.h)((()=>this.closeOthers)),(0,p.R)(this.destroy$)).subscribe((e=>{t.forEach((t=>{e!==t&&t.close()}))}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(rt.a3,2))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-accordion"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,dn,4),2&t){let t;i.iGM(t=i.CRH())&&(e.accordionItems=t)}},inputs:{closeOthers:"closeOthers",rounded:"rounded"},features:[i._Bn([rt.a3])],ngContentSelectors:cn,decls:2,vars:2,consts:[["automation-id","tui-accordion__group","orientation","vertical","size","l","tuiGroup","",1,"t-group",3,"collapsed","rounded"]],template:function(t,e){1&t&&(i.F$t(ln),i.TgZ(0,"div",0),i.Hsn(1),i.qZA()),2&t&&i.Q6J("collapsed",!0)("rounded",e.rounded)},directives:[Qe.gZ],styles:["[_nghost-%COMP%]{display:block}.t-group[_ngcontent-%COMP%]{display:flex}"],changeDetection:0}),t})(),fn=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,Tt.F,It.c,At.u,bt.wq,_t.EI,Qe.n6,Xe]]}),t})();var gn=n(66640);const mn=["input"];function vn(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function _n(t,e){if(1&t&&(i.TgZ(0,"div",6),i.YNc(1,vn,2,1,"ng-container",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.leftContent)}}function yn(t,e){if(1&t&&i._UZ(0,"tui-loader",8),2&t){const t=i.oxw();i.Q6J("inheritColor",!0)("size",t.loaderSize)}}function bn(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-svg",9),i.NdJ("click",(function(e){return i.CHM(t),i.oxw().remove(e)}))("mousedown.prevent.silent",(function(){return 0})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("src",t.icons.close)}}function wn(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"input",10,11),i.NdJ("blur",(function(){return i.CHM(t),i.oxw().onBlur()}))("keydown",(function(e){return i.CHM(t),i.oxw().onKeyDown(e)}))("ngModelChange",(function(e){return i.CHM(t),i.oxw().onInput(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("ngModel",t.editedText),i.uIk("maxLength",t.maxLength)}}const Cn=(0,lt.JN)({size:"m",status:"default",autoColor:!1});let xn=(()=>{class t{constructor(t,e,n,r){this.el=t,this.mode$=e,this.options=n,this.icons=r,this.value="",this.editable=!1,this.separator=",",this.maxLength=null,this.size=this.options.size,this.showLoader=!1,this.status=this.options.status,this.hoverable=!1,this.removable=!1,this.disabled=!1,this.autoColor=this.options.autoColor,this.edited=new i.vpe,this.editing=!1,this.editedText=null}set input(t){t&&t.nativeElement.focus()}get backgroundColor(){return this.autoColor?function(t){if(""===t)return"";let e=0;for(let n=0;n1?this.save(String(e)):this.editedText=t}onKeyDown(t){switch(t.stopPropagation(),t.key.toLowerCase()){case"enter":t.preventDefault(),this.save(this.editedText||"");break;case"escape":case"esc":t.preventDefault(),this.stopEditing(),this.el.nativeElement.focus()}}onBlur(){null!==this.editedText&&this.save(this.editedText)}get canEdit(){return this.editable&&!this.disabled&&!this.showLoader}stopEditing(){this.editing=!1,this.editedText=null}save(t){this.stopEditing(),this.edited.emit(t.trim())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(mt.Au),i.Y36(Cn),i.Y36(mt.Gs))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-tag"],["a","tuiTag",""],["button","tuiTag",""]],viewQuery:function(t,e){if(1&t&&i.Gf(mn,5,i.SBq),2&t){let t;i.iGM(t=i.CRH())&&(e.input=t.first)}},hostVars:10,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$}))("keydown.enter",(function(t){return e.edit(t)}))("keydown.delete",(function(t){return e.remove(t)}))("keydown.backspace",(function(t){return e.remove(t)})),2&t&&(i.uIk("data-size",e.size)("data-status",e.status),i.ekj("_hoverable",e.hoverable)("_disabled",e.disabled)("_autocolor",e.autoColor)("_editing",e.editing))},inputs:{value:"value",editable:"editable",separator:"separator",maxLength:"maxLength",size:"size",showLoader:"showLoader",status:"status",hoverable:"hoverable",removable:"removable",disabled:"disabled",autoColor:"autoColor",leftContent:"leftContent"},outputs:{edited:"edited"},features:[i._Bn([St.CV])],decls:6,vars:7,consts:[[1,"t-tag",3,"dblclick"],["class","t-content",4,"ngIf"],["automation-id","tui-tag__text",1,"t-text",3,"textContent"],["class","t-content",3,"inheritColor","size",4,"ngIf"],["automation-id","tui-tag__remove","class","t-icon",3,"src","click","mousedown.prevent.silent",4,"ngIf"],["automation-id","tui-tag__edit","type","text","class","t-edit",3,"ngModel","blur","keydown","ngModelChange",4,"ngIf"],[1,"t-content"],[4,"polymorpheusOutlet"],[1,"t-content",3,"inheritColor","size"],["automation-id","tui-tag__remove",1,"t-icon",3,"src","click","mousedown.prevent.silent"],["automation-id","tui-tag__edit","type","text",1,"t-edit",3,"ngModel","blur","keydown","ngModelChange"],["input",""]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.NdJ("dblclick",(function(t){return e.edit(t)})),i.YNc(1,_n,2,1,"div",1),i._UZ(2,"span",2),i.YNc(3,yn,1,2,"tui-loader",3),i.YNc(4,bn,1,1,"tui-svg",4),i.qZA(),i.YNc(5,wn,2,2,"input",5)),2&t&&(i.Udp("background-color",e.backgroundColor),i.xp6(1),i.Q6J("ngIf",e.leftContent),i.xp6(1),i.Q6J("textContent",e.displayText),i.xp6(1),i.Q6J("ngIf",e.showLoader),i.xp6(1),i.Q6J("ngIf",e.canRemove),i.xp6(1),i.Q6J("ngIf",e.editing))},directives:[y.O5,bt.Li,Ue.kM,_t.PN,pt.Fj,pt.JJ,pt.On],styles:['[_nghost-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;font:var(--tui-font-text-s);line-height:1.25rem;max-width:100%;cursor:default;outline:none;text-decoration:none;padding:0;border:0}[_nghost-%COMP%]:after{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-sizing:border-box;border-radius:inherit;pointer-events:none}._hoverable[_nghost-%COMP%]:hover[data-status=custom]:after, ._hoverable[_nghost-%COMP%]:active[data-status=custom]:after{background-color:var(--tui-clear)}[_nghost-%COMP%]:focus:after{border:2px solid var(--tui-focus)}[data-size=s][_nghost-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;border-radius:var(--tui-radius-xs)}[data-size=m][_nghost-%COMP%]{border-radius:var(--tui-radius-xs)}[data-size=l][_nghost-%COMP%]{border-radius:var(--tui-radius-s)}[data-status=primary][_nghost-%COMP%]{background-color:var(--tui-primary);color:var(--tui-primary-text)}[data-status=primary]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-primary-hover)}[data-status=primary]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-primary-active)}[data-status=error][_nghost-%COMP%]{background-color:var(--tui-error-bg);color:var(--tui-text-01)}[data-status=error]._hoverable[_nghost-%COMP%]:hover, [data-status=error]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-error-bg-hover)}[data-status=error][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-error-bg-night);color:var(--tui-text-01-night)}[data-status=error][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=error][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-error-bg-night-hover)}[data-status=success][_nghost-%COMP%]{background-color:var(--tui-success-bg);color:var(--tui-text-01)}[data-status=success]._hoverable[_nghost-%COMP%]:hover, [data-status=success]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-success-bg-hover)}[data-status=success][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-success-bg-night);color:var(--tui-text-01-night)}[data-status=success][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=success][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-success-bg-night-hover)}[data-status=warning][_nghost-%COMP%]{background-color:var(--tui-warning-bg);color:var(--tui-text-01)}[data-status=warning]._hoverable[_nghost-%COMP%]:hover, [data-status=warning]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-warning-bg-hover)}[data-status=warning][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-warning-bg-night);color:var(--tui-text-01-night)}[data-status=warning][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=warning][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-warning-bg-night-hover)}[data-status=default][_nghost-%COMP%]{color:var(--tui-text-01-night);background-color:var(--tui-base-06)}[data-status=default][_nghost-%COMP%]:not([data-mode])._hoverable:hover{background-color:var(--tui-base-07)}[data-status=default][_nghost-%COMP%]:not([data-mode])._hoverable:active{background-color:var(--tui-base-08)}[data-status=default][data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night);background-color:var(--tui-clear-inverse)}[data-status=default][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-clear-inverse-hover)}[data-status=default][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-clear-inverse-active)}[data-status=default][data-mode=onDark][_nghost-%COMP%]:focus:after{border:2px solid var(--tui-base-01)}[data-status=default][data-mode=onLight][_nghost-%COMP%]{background-color:var(--tui-clear);color:var(--tui-text-01)}[data-status=default][data-mode=onLight]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-clear-hover)}[data-status=default][data-mode=onLight]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-clear-active)}._editing[_nghost-%COMP%]{background:transparent!important}._disabled[_nghost-%COMP%]{pointer-events:none;opacity:var(--tui-disabled-opacity)}._hoverable[_nghost-%COMP%]{cursor:pointer}._autocolor[_nghost-%COMP%]{color:#000c}.t-text[_ngcontent-%COMP%]{white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:.02em}.t-tag[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;display:flex;width:auto;align-items:center;font:inherit;border-radius:inherit}[data-size=s][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:1.25rem;padding:0 .375rem}[data-size=m][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:var(--tui-height-xs);padding:0 .5rem}[data-size=l][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:var(--tui-height-s);padding:0 .75rem}._editing[_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{visibility:hidden}.t-edit[_ngcontent-%COMP%]{margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;font:inherit;color:var(--tui-text-01);width:100%;height:100%;box-sizing:border-box;padding:0 .5rem}.t-edit[_ngcontent-%COMP%]:-webkit-autofill, .t-edit[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-edit[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}[data-size=s][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .375rem}[data-size=m][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .5rem}[data-size=l][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .75rem}.t-icon[_ngcontent-%COMP%]{width:1rem;height:100%;cursor:pointer;pointer-events:all;opacity:var(--tui-disabled-opacity);-webkit-margin-start:.25rem;margin-inline-start:.25rem;-webkit-margin-end:-.25rem;margin-inline-end:-.25rem}.t-icon[_ngcontent-%COMP%]:hover{opacity:1}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{-webkit-margin-start:0;margin-inline-start:0}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%] svg{transform:scale(.75)}.t-content[_ngcontent-%COMP%]{width:1rem;height:1rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}'],changeDetection:0}),t})(),On=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.u5,_t.EI,Ue.dS,bt.wq]]}),t})();var kn=n(53248),Mn=n(4246),Pn=n(25470),Sn=n(72764),En=n(21673);let An=(()=>{class t extends ft.GM{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵcmp=i.Xpm({type:t,selectors:[["tui-theme-night"]],features:[i.qOj],decls:0,vars:0,template:function(t,e){},styles:[":root{--tui-base-01: #222;--tui-base-02: #333;--tui-base-03: #808080;--tui-base-04: #959595;--tui-base-05: #b0b0b0;--tui-base-06: #d7d7d7;--tui-base-07: #ededed;--tui-base-08: #f6f6f6;--tui-base-09: #fff;--tui-focus: rgba(51, 51, 51, .64);--tui-secondary: rgba(255, 255, 255, .16);--tui-secondary-hover: rgba(255, 255, 255, .24);--tui-secondary-active: rgba(255, 255, 255, .4);--tui-clear: rgba(255, 255, 255, .16);--tui-clear-disabled: rgba(255, 255, 255, .08);--tui-clear-hover: rgba(255, 255, 255, .24);--tui-clear-active: rgba(255, 255, 255, .4);--tui-error-fill: #ff8c67;--tui-error-bg: rgba(244, 87, 37, .32);--tui-error-bg-hover: rgba(244, 87, 37, .4);--tui-success-fill: #4ac99b;--tui-success-bg: rgba(74, 201, 155, .32);--tui-success-bg-hover: rgba(74, 201, 155, .4);--tui-warning-fill: #ffc700;--tui-warning-bg: rgba(255, 199, 0, .32);--tui-warning-bg-hover: rgba(255, 199, 0, .4);--tui-info-fill: #70b6f6;--tui-info-bg: rgba(112, 182, 246, .32);--tui-info-bg-hover: rgba(112, 182, 246, .4);--tui-neutral-fill: #959ba4;--tui-neutral-bg: rgba(149, 155, 164, .32);--tui-neutral-bg-hover: rgba(149, 155, 164, .48);--tui-text-01: #ffffff;--tui-text-02: rgba(255, 255, 255, .72);--tui-text-03: rgba(255, 255, 255, .6);--tui-link: #6788ff;--tui-link-hover: #526ed3;--tui-positive: #44c596;--tui-positive-hover: #3aa981;--tui-negative: #ff8c67;--tui-negative-hover: #bb593a;--tui-autofill: var(--tui-autofill-night);--tui-elevation-01: #222;--tui-elevation-02: #222}tui-notification{--tui-base-01: #000}\n"],encapsulation:2,changeDetection:0}),t})(),Tn=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var In=n(12628),Dn=n(82847),Ln=n(79588),Nn=n(90022),zn=n(75111),Fn=n(1515),Rn=n(52697),Bn=n(60885),jn=n(80134),$n=n(21022),Vn=n(22759),Un=n(72361);function Yn(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function qn(t,e){if(1&t&&(i.TgZ(0,"label",4),i.YNc(1,Yn,2,1,"ng-container",5),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.item.label)("polymorpheusOutletContext",t.item)}}function Hn(t,e){if(1&t&&i._UZ(0,"div",6),2&t){const t=e.polymorpheusOutlet;i.Q6J("innerHTML",t,i.oJD)}}const Zn=new i.OlP("",{factory:()=>(0,i.f3M)(ct.fL)?"1rem 1rem 0 auto":"2rem 3rem 0 auto"});let Gn=(()=>{class t{constructor(t,e,n,i,r){this.el=t,this.destroy$=e,this.position=n,this.options=i,this.item=r,this.autoClose="function"==typeof this.item.autoClose?this.item.autoClose(this.item.status):this.item.autoClose,this.animation=this.position.endsWith("auto")?Object.assign(Object.assign({},this.options),{value:"right"}):Object.assign(Object.assign({},this.options),{value:"left"})}ngOnInit(){this.initAutoClose()}close(){this.item.$implicit.complete()}initAutoClose(){this.autoClose&&(0,l.H)((0,lt.dt)(this.autoClose)?this.autoClose:3e3).pipe((0,p.R)((0,Vn.R)(this.el.nativeElement,"mouseenter")),(0,Un.a)((()=>(0,Vn.R)(this.el.nativeElement,"mouseleave"))),(0,p.R)(this.destroy$)).subscribe((()=>this.close()))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(rt.a3,2),i.Y36(Zn),i.Y36(mt.Pw),i.Y36(bt.yf))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-alert"]],hostAttrs:["role","alert"],hostVars:5,hostBindings:function(t,e){2&t&&(i.d8E("@tuiFadeIn",e.options)("@tuiSlideIn",e.animation)("@tuiHeightCollapse",e.animation),i.Udp("margin",e.position))},features:[i._Bn([rt.a3])],decls:4,vars:7,consts:[[3,"hasIcon","hideClose","icon","status","close"],["automation-id","tui-notification-alert__heading","class","t-heading",4,"ngIf"],["automation-id","tui-notification-alert__content",1,"t-content"],[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-notification-alert__heading",1,"t-heading"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(i.TgZ(0,"tui-notification",0),i.NdJ("close",(function(){return e.close()})),i.YNc(1,qn,2,2,"label",1),i.TgZ(2,"div",2),i.YNc(3,Hn,1,1,"div",3),i.qZA(),i.qZA()),2&t&&(i.Q6J("hasIcon",e.item.hasIcon)("hideClose",!e.item.hasCloseButton)("icon",e.item.icon)("status",e.item.status),i.xp6(1),i.Q6J("ngIf",e.item.label),i.xp6(2),i.Q6J("polymorpheusOutlet",e.item.content)("polymorpheusOutletContext",e.item))},directives:[Bn.L,y.O5,bt.Li],styles:["[_nghost-%COMP%]{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;display:block;border-radius:var(--tui-radius-l);width:18rem}[_nghost-%COMP%]:not(:first-child){margin-top:.75rem!important}[_nghost-%COMP%]:not(:last-child){margin-bottom:0!important}.t-heading[_ngcontent-%COMP%]{margin:0}[data-size=s][_ngcontent-%COMP%] .t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-s);font-weight:bold}[data-size=m][_ngcontent-%COMP%] .t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:bold}[data-size=l][_ngcontent-%COMP%] .t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-l);line-height:1.5rem;font-weight:bold}.t-content[_ngcontent-%COMP%]{color:var(--tui-text-01);word-wrap:break-word}.t-content[_ngcontent-%COMP%]:empty{display:none}"],data:{animation:[jt.QF,jt.Gw,jt.eu]},changeDetection:0}),t})(),Jn=(()=>{class t extends ft.d5{constructor(t,e){super(e),this.defaultOptions=t,this.component=new bt.Al(Gn)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(mt.Ln),i.LFG(rt.ll))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),Xn=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({providers:[(0,ct.XH)(Jn)],imports:[[y.ez,bt.wq,Bn.H]]}),t})();var Qn=n(12067),Wn=n(20707),Kn=n(56083);class ti{constructor(t,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),i=n.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}copy(){const t=this._textarea;let e=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(t){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let ei=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),n=e.copy();return e.destroy(),n}beginCopy(t){return new ti(t,this._document)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(y.K0))},t.ɵprov=i.Yz7({factory:function(){return new t(i.LFG(y.K0))},token:t,providedIn:"root"}),t})();const ni=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let ii=(()=>{class t{constructor(t,e,n){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new i.vpe,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}copy(t=this.attempts){if(t>1){let e=t;const n=this._clipboard.beginCopy(this.text);this._pending.add(n);const i=()=>{const t=n.copy();t||! --e||this._destroyed?(this._currentTimeout=null,this._pending.delete(n),n.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular((()=>setTimeout(i,1)))};i()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach((t=>t.destroy())),this._pending.clear(),this._destroyed=!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(ei),i.Y36(i.R0b),i.Y36(ni,8))},t.ɵdir=i.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&i.NdJ("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),ri=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var oi=n(66174),si=n(75122);const ai=["tuiSidebar",""];function li(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}let ci=(()=>{class t extends bt.GL{constructor(t,e,n,i){super(t,i),this.content=t,this.injector=e,this.portalService=n,this.component=new bt.Al(ui,this.injector),this.sidebarRef=null,this.direction="left",this.autoWidth=!1}set tuiSidebar(t){t?this.show():this.hide()}ngOnDestroy(){this.hide()}show(){null===this.sidebarRef&&(this.sidebarRef=this.portalService.add(this.component),this.sidebarRef.changeDetectorRef.detectChanges())}hide(){null!==this.sidebarRef&&(this.portalService.remove(this.sidebarRef),this.sidebarRef=null)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Rgc),i.Y36(i.zs3),i.Y36(si.ae),i.Y36(i.sBO))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiSidebar",""]],inputs:{direction:["tuiSidebarDirection","direction"],autoWidth:["tuiSidebarAutoWidth","autoWidth"],tuiSidebar:"tuiSidebar"},features:[i.qOj]}),t})(),ui=(()=>{class t{constructor(t,e){this.options=t,this.directive=e,this.left=Object.assign(Object.assign({},this.options),{value:"left"}),this.right=Object.assign(Object.assign({},this.options),{value:"right"})}get animation(){return"left"===this.direction?this.left:this.right}get directionHostClass(){return`t-${this.directive.direction}`}get direction(){return this.directive.direction}get content(){return this.directive.content}get autoWidth(){return this.directive.autoWidth}ngDoCheck(){this.directive.check()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(mt.Pw),i.Y36(ci))},t.ɵcmp=i.Xpm({type:t,selectors:[["aside","tuiSidebar",""]],hostVars:3,hostBindings:function(t,e){2&t&&(i.d8E("@tuiSlideIn",e.animation),i.Tol(e.directionHostClass))},attrs:ai,decls:2,vars:3,consts:[["tuiActiveZone","",1,"t-wrapper"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,li,2,1,"ng-container",1),i.qZA()),2&t&&(i.ekj("t-wrapper_auto-width",e.autoWidth),i.xp6(1),i.Q6J("polymorpheusOutlet",e.content))},directives:[nt.e,bt.Li],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex}[_nghost-%COMP%]:before, [_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;content:"";height:100%;background:rgba(0,0,0,.38);animation:tuiFadeIn var(--tui-duration)}[_nghost-%COMP%]:before{left:-100%;width:200%}[_nghost-%COMP%]:after{left:100%}.ng-animating[_nghost-%COMP%]:before, .ng-animating[_nghost-%COMP%]:after{opacity:0;transition:opacity var(--tui-duration)}.t-right[_nghost-%COMP%]{justify-content:flex-end}.t-left[_nghost-%COMP%]{justify-content:flex-start}.t-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;background:var(--tui-base-01);box-shadow:0 10rem var(--tui-base-01);width:17.25rem}.t-wrapper_auto-width[_ngcontent-%COMP%]{width:auto}'],data:{animation:[jt.Gw]},changeDetection:0}),t})(),hi=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[nt.A,bt.wq]]}),t})();var di=n(46331);const pi="Taiga UI",fi=(0,lt.JN)("tuiTheme"),gi=(0,lt.JN)(pi);let mi=(()=>{class t extends s.X{constructor(t,e,n){super(n.getItem(e)||t),this.initialTheme=t,this.key=e,this.storage=n}next(t){this.storage.setItem(this.key,t),super.next(t)}get isDefaultTheme(){return this.value===pi}}return t.ɵfac=function(e){return new(e||t)(i.LFG(gi),i.LFG(fi),i.LFG(pe.H3))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();const vi=(0,lt.JN)("tuiNight"),_i=(0,lt.JN)(!0);let yi=(()=>{class t extends s.X{constructor(t,e,n,i){super("true"===e.getItem(n)||null===e.getItem(n)&&t.matchMedia("(prefers-color-scheme: dark)").matches),this.win=t,this.storage=e,this.key=n,this.useDefaultNightTheme=i}next(t){this.storage.setItem(this.key,String(t)),super.next(t)}toggle(){this.next(!this.value)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(pe.m9),i.LFG(pe.H3),i.LFG(vi),i.LFG(_i))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();function bi(t,e){if(1&t&&(i.TgZ(0,"p",2),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij(" ",t.filename,"\n")}}function wi(t,e){if(1&t&&(i.TgZ(0,"pre",3),i._UZ(1,"code",4),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("lineNumbers",!0)("highlight",t)}}function Ci(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",1),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onClick()})),i.TgZ(1,"span",2),i.ALo(2,"async"),i.TgZ(3,"span",3),i.Hsn(4),i.qZA(),i._uU(5),i.qZA(),i.qZA()}if(2&t){const t=e.ngIf,n=i.oxw();i.Q6J("title",t[0]),i.xp6(1),i.ekj("t-content_moved",i.lcZ(2,5,n.copied$)),i.xp6(2),i.uIk("data-text",t[0]),i.xp6(2),i.hij(" ",t[1]," ")}}const xi=["*"],Oi=["content"],ki=["resizer"];function Mi(t,e){if(1&t&&(i._uU(0),i.TgZ(1,"a",11),i.TgZ(2,"code"),i._uU(3,"tuiMode"),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.hij(" ",t.texts[0]," ")}}function Pi(t,e){if(1&t&&i._UZ(0,"tui-data-list-wrapper",14),2&t){const t=i.oxw(2);i.Q6J("items",t.items)}}function Si(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"tui-select",12),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onModeChange(e)})),i._uU(2," tuiMode "),i.YNc(3,Pi,1,1,"tui-data-list-wrapper",13),i.qZA(),i.BQk()}if(2&t){const t=i.oxw(),e=i.MAs(2);i.xp6(1),i.Q6J("ngModel",t.mode)("tuiHintContent",e)("tuiTextfieldCleaner",!0)}}function Ei(t,e){if(1&t){const t=i.EpF();i._uU(0," tuiMode: "),i._UZ(1,"tui-tooltip",15),i.TgZ(2,"div",16),i.TgZ(3,"tui-radio-block",17),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onModeChange(e)})),i._uU(4," null "),i.qZA(),i.TgZ(5,"tui-radio-block",18),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onModeChange(e)})),i._uU(6," onDark "),i.qZA(),i.TgZ(7,"tui-radio-block",19),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onModeChange(e)})),i._uU(8," onLight "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(),e=i.MAs(2);i.xp6(1),i.Q6J("content",e),i.xp6(1),i.Q6J("collapsed",!0),i.xp6(1),i.Q6J("hideRadio",!0)("item",null)("ngModel",t.mode),i.xp6(2),i.Q6J("hideRadio",!0)("ngModel",t.mode),i.xp6(2),i.Q6J("hideRadio",!0)("ngModel",t.mode)}}function Ai(t,e){if(1&t&&i._UZ(0,"tui-svg",27),2&t){const t=i.oxw(2);i.ekj("t-icon_rotated",t.expanded),i.Q6J("src",t.options.iconSmall)}}function Ti(t,e){if(1&t&&i._UZ(0,"tui-data-list-wrapper",14),2&t){const t=i.oxw(3);i.Q6J("items",t.updateOnVariants)}}const Ii=function(){return{standalone:!0}};function Di(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"pre",28),i._uU(1),i.ALo(2,"json"),i.qZA(),i.TgZ(3,"div",29),i.TgZ(4,"tui-select",30),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw(2).updateOnChange(e)})),i._uU(5," updateOn "),i.YNc(6,Ti,1,1,"tui-data-list-wrapper",13),i.qZA(),i.TgZ(7,"button",31),i._uU(8," Reset "),i.qZA(),i.TgZ(9,"button",32),i._uU(10," Submit "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(2);i.xp6(1),i.hij("Form data: ",i.lcZ(2,3,t.testForm.value),""),i.xp6(3),i.Q6J("ngModel",t.updateOn)("ngModelOptions",i.DdM(5,Ii))}}function Li(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"form",20),i.TgZ(1,"div",21),i.GkF(2,22),i.qZA(),i.TgZ(3,"button",23),i.NdJ("click",(function(){return i.CHM(t),i.oxw().toggleDetails()})),i._uU(4),i.qZA(),i.YNc(5,Ai,1,3,"ng-template",null,24,i.W1O),i.TgZ(7,"tui-expand",25),i.YNc(8,Di,11,6,"ng-template",26),i.qZA(),i.qZA()}if(2&t){const t=i.MAs(6),e=i.oxw();i.Q6J("formGroup",e.testForm),i.xp6(2),i.Q6J("ngTemplateOutlet",e.template),i.xp6(1),i.Q6J("iconRight",t),i.xp6(1),i.hij(" ",e.texts[2]," "),i.xp6(3),i.Q6J("expanded",e.expanded)}}const Ni=function(){return[1,0]};function zi(t,e){if(1&t&&(i.TgZ(0,"h1",2),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij(" ",t.heading,"\n")}}function Fi(t,e){if(1&t&&(i.TgZ(0,"th",10),i._uU(1),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.hij(" ",t.texts[3]," ")}}function Ri(t,e){1&t&&i._UZ(0,"tui-badge",20)}function Bi(t,e){1&t&&(i.TgZ(0,"span",21),i._uU(1," deprecated "),i.qZA())}function ji(t,e){if(1&t&&(i._uU(0),i.TgZ(1,"a",24),i.TgZ(2,"code"),i._uU(3,"ng-polymorpheus"),i.qZA(),i.qZA()),2&t){const t=i.oxw(5);i.hij(" ",t.texts[4]," ")}}function $i(t,e){if(1&t&&(i.TgZ(0,"tui-tooltip",22),i.YNc(1,ji,4,1,"ng-template",null,23,i.W1O),i.qZA()),2&t){const t=i.MAs(2),e=i.oxw().$implicit;i.Q6J("content",t)("describeId",e.attrName)}}function Vi(t,e){if(1&t&&i._UZ(0,"tui-data-list-wrapper",34),2&t){i.oxw(2);const t=i.MAs(3),e=i.oxw(2).$implicit;i.Q6J("itemContent",t)("items",e.documentationPropertyValues)}}function Ui(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-select",31),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw(3).$implicit.onValueChange(e)})),i.ALo(1,"tuiShowCleanerPipe"),i.TgZ(2,"code",32),i._uU(3,"null"),i.qZA(),i.YNc(4,Vi,1,2,"tui-data-list-wrapper",33),i.qZA()}if(2&t){i.oxw();const t=i.MAs(3),e=i.oxw(2).$implicit;i.Q6J("nativeId",e.attrName)("ngModel",e.documentationPropertyValue)("tuiTextfieldCleaner",i.lcZ(1,5,e.documentationPropertyType))("tuiTextfieldLabelOutside",!0)("valueContent",t)}}function Yi(t,e){if(1&t&&(i.TgZ(0,"code"),i._uU(1),i.ALo(2,"tuiInspectAny"),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,t))}}function qi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-toggle",41),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw(4).$implicit.onValueChange(e)})),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.Q6J("nativeId",t.attrName)("ngModel",t.documentationPropertyValue)("showIcons",!0)}}function Hi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-primitive-textfield",42),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw(4).$implicit.onValueChange(e)})),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.Q6J("nativeId",t.attrName)("tuiTextfieldCleaner",!0)("tuiTextfieldLabelOutside",!0)("value",t.documentationPropertyValue||"")}}function Zi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",43),i.TgZ(1,"tui-primitive-textfield",44),i.NdJ("valueChange",(function(e){i.CHM(t);const n=i.oxw(4).$implicit;return i.oxw(3).onColorChange(n,e)})),i.ALo(2,"tuiGetOpacity"),i.ALo(3,"tuiGetColorPipe"),i._UZ(4,"input",45),i.qZA(),i.TgZ(5,"tui-input-number",46),i.NdJ("ngModelChange",(function(e){i.CHM(t);const n=i.oxw(4).$implicit;return i.oxw(3).onOpacityChange(n,e)})),i.ALo(6,"tuiGetOpacity"),i._uU(7," Opacity "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.xp6(1),i.Q6J("tuiInputOpacity",i.lcZ(2,8,t.documentationPropertyValue))("tuiTextfieldLabelOutside",!0)("value",i.lcZ(3,10,t.documentationPropertyValue)),i.uIk("id",t.attrName),i.xp6(4),i.Q6J("max",100)("min",0)("ngModel",i.lcZ(6,12,t.documentationPropertyValue))("step",1)}}function Gi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-input-number",47),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw(4).$implicit.onValueChange(e||0)})),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.Q6J("nativeId",t.attrName)("ngModel",t.documentationPropertyValue)("step",1)("tuiTextfieldLabelOutside",!0)}}function Ji(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-primitive-textfield",42),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw(5).$implicit.onValueChange(e)})),i._uU(1," Default content "),i.qZA()}if(2&t){const t=i.oxw(5).$implicit;i.Q6J("nativeId",t.attrName)("tuiTextfieldCleaner",!0)("tuiTextfieldLabelOutside",!0)("value",t.documentationPropertyValue.toString())}}function Xi(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Ji,2,4,"tui-primitive-textfield",48),i.ALo(2,"tuiIsPrimitivePolymorpheusContentPipe"),i.BQk()),2&t){const t=i.oxw(4).$implicit;i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,t.documentationPropertyValue))}}function Qi(t,e){if(1&t&&(i.ynx(0,35),i.YNc(1,qi,1,3,"tui-toggle",36),i.YNc(2,Hi,1,4,"tui-primitive-textfield",37),i.YNc(3,Zi,8,14,"div",38),i.YNc(4,Gi,1,4,"tui-input-number",39),i.YNc(5,Xi,3,3,"ng-container",40),i.BQk()),2&t){const t=i.oxw(3).$implicit;i.Q6J("ngSwitch",t.documentationPropertyType),i.xp6(1),i.Q6J("ngSwitchCase","boolean"),i.xp6(1),i.Q6J("ngSwitchCase","string"),i.xp6(1),i.Q6J("ngSwitchCase","color"),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngSwitchCase","PolymorpheusContent")}}function Wi(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Ui,5,7,"tui-select",28),i.YNc(2,Yi,3,3,"ng-template",null,29,i.W1O),i.YNc(4,Qi,6,6,"ng-template",null,30,i.W1O),i.BQk()),2&t){const t=i.MAs(5),e=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngIf",e.hasItems)("ngIfElse",t)}}function Ki(t,e){if(1&t&&(i.TgZ(0,"tui-notification",49),i.ALo(1,"async"),i._uU(2," Emit! "),i.qZA()),2&t){const t=i.oxw(2).$implicit;i.Q6J("@emitEvent",i.lcZ(1,1,t.emits$))}}function tr(t,e){if(1&t&&(i.TgZ(0,"td",25),i.YNc(1,Wi,6,2,"ng-container",26),i.YNc(2,Ki,3,3,"ng-template",null,27,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",e.shouldShowValues)("ngIfElse",t)}}function er(t,e){if(1&t&&(i.TgZ(0,"tr",11),i.TgZ(1,"td",12),i.TgZ(2,"div",13),i._uU(3),i.ALo(4,"tuiStripOptionalPipe"),i.YNc(5,Ri,1,0,"tui-badge",14),i.ALo(6,"tuiIsOptionalPipe"),i.qZA(),i.YNc(7,Bi,2,0,"span",15),i.GkF(8,16),i.qZA(),i.TgZ(9,"td",12),i.TgZ(10,"span",17),i._uU(11),i.YNc(12,$i,3,2,"tui-tooltip",18),i.ALo(13,"tuiShowContentTooltip"),i.qZA(),i.qZA(),i.YNc(14,tr,4,2,"td",19),i.qZA()),2&t){const t=e.$implicit,n=i.oxw(3);i.ekj("t-deprecated",t.documentationPropertyDeprecated),i.xp6(3),i.hij(" ",i.lcZ(4,9,t.attrName)," "),i.xp6(2),i.Q6J("ngIf",i.lcZ(6,11,t.attrName)),i.xp6(2),i.Q6J("ngIf",t.documentationPropertyDeprecated),i.xp6(1),i.Q6J("ngTemplateOutlet",t.template),i.xp6(3),i.hij(" ",t.documentationPropertyType," "),i.xp6(1),i.Q6J("ngIf",i.lcZ(13,13,t.documentationPropertyType)),i.xp6(2),i.Q6J("ngIf",n.showValues)}}function nr(t,e){if(1&t&&(i.TgZ(0,"table",4),i.TgZ(1,"tr",5),i.TgZ(2,"th",6),i._uU(3),i.qZA(),i.TgZ(4,"th",7),i._uU(5),i.qZA(),i.YNc(6,Fi,2,1,"th",8),i.qZA(),i.YNc(7,er,15,15,"tr",9),i.qZA()),2&t){const t=i.oxw().ngIf,e=i.oxw();i.xp6(3),i.Oqu(e.texts[2]),i.xp6(2),i.Oqu(e.type),i.xp6(1),i.Q6J("ngIf",e.showValues&&!e.isAPI),i.xp6(1),i.Q6J("ngForOf",t)}}function ir(t,e){if(1&t&&(i.ynx(0),i.YNc(1,nr,8,4,"table",3),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("ngIf",t.length)}}function rr(t,e){if(1&t&&i._UZ(0,"span",8),2&t){const t=e.polymorpheusOutlet;i.Q6J("textContent",t)}}function or(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",(function(){return i.CHM(t),i.oxw(2).copyExampleLink()})),i.ALo(1,"async"),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("icon",t.options.linkIcon)("title",i.lcZ(1,2,t.copy$))}}function sr(t,e){if(1&t&&(i.TgZ(0,"h3",5),i.YNc(1,rr,1,1,"span",6),i.ALo(2,"tuiDocExampleCapitalize"),i.YNc(3,or,2,4,"button",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",i.lcZ(2,2,t.heading)),i.xp6(2),i.Q6J("ngIf",t.id)}}function ar(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function lr(t,e){if(1&t&&(i.TgZ(0,"h4",10),i.YNc(1,ar,2,1,"ng-container",11),i.ALo(2,"tuiDocExampleCapitalize"),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",i.lcZ(2,1,t.description))}}function cr(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function ur(t,e){if(1&t&&(i.TgZ(0,"button",21),i.YNc(1,cr,2,1,"ng-container",11),i.qZA()),2&t){const t=i.oxw().$implicit,e=i.oxw(4);i.xp6(1),i.Q6J("polymorpheusOutlet",e.getTabTitle(t))}}function hr(t,e){1&t&&(i.ynx(0),i.YNc(1,ur,2,1,"button",20),i.BQk())}function dr(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function pr(t,e){if(1&t&&(i.ynx(0),i.YNc(1,dr,2,1,"ng-container",11),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("polymorpheusOutlet",t)}}function fr(t,e){if(1&t&&(i.TgZ(0,"button",25),i._uU(1),i.qZA()),2&t){const t=i.oxw(5);i.xp6(1),i.hij(" Edit on ",t.codeEditor.name," ")}}function gr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-loader",22),i.NdJ("click",(function(){i.CHM(t);const e=i.oxw(3).ngIf;return i.oxw().edit(e)})),i.ALo(1,"async"),i.YNc(2,pr,2,1,"ng-container",23),i.YNc(3,fr,2,1,"ng-template",null,24,i.W1O),i.qZA()}if(2&t){const t=i.MAs(4),e=i.oxw(4);i.Q6J("overlay",!0)("showLoader",!!i.lcZ(1,4,e.loading$)),i.xp6(2),i.Q6J("ngIf",null==e.codeEditor?null:e.codeEditor.content)("ngIfElse",t)}}function mr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",16),i.TgZ(1,"tui-tabs-with-more",17),i.NdJ("activeItemIndexChange",(function(e){return i.CHM(t),i.oxw(3).activeItemIndex=e})),i.YNc(2,hr,2,0,"ng-container",18),i.qZA(),i.YNc(3,gr,5,6,"tui-loader",19),i.ALo(4,"tuiMapper"),i.qZA()}if(2&t){const t=i.oxw().ngIf,e=i.oxw().ngIf,n=i.oxw();i.xp6(1),i.Q6J("activeItemIndex",n.activeItemIndex),i.xp6(1),i.Q6J("ngForOf",t),i.xp6(1),i.Q6J("ngIf",i.xi3(4,3,e,n.visible))}}function vr(t,e){if(1&t&&i.GkF(0,29),2&t){i.oxw(4);const t=i.MAs(5);i.Q6J("ngTemplateOutlet",t)}}const _r=function(t){return{$implicit:t}};function yr(t,e){if(1&t&&i.GkF(0,30),2&t){const t=i.oxw(2).ngIf,e=i.oxw().ngIf,n=i.oxw(),r=i.MAs(7);i.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",i.VKq(2,_r,e[t[n.activeItemIndex]]||""))}}function br(t,e){if(1&t&&(i.TgZ(0,"div",26),i.YNc(1,vr,1,1,"ng-container",27),i.YNc(2,yr,1,4,"ng-template",null,28,i.W1O),i.qZA()),2&t){const t=e.index,n=i.MAs(3),r=i.oxw(3);i.ekj("t-content_animated",!r.isE2E)("t-content_visible",r.activeItemIndex===t),i.xp6(1),i.Q6J("ngIf",t===r.defaultTabIndex)("ngIfElse",n)}}function wr(t,e){if(1&t&&(i.ynx(0),i.YNc(1,mr,5,6,"div",14),i.YNc(2,br,4,6,"div",15),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("ngIf",t.length>1),i.xp6(1),i.Q6J("ngForOf",t)}}function Cr(t,e){if(1&t&&(i.TgZ(0,"div",12),i.YNc(1,wr,3,2,"ng-container",13),i.ALo(2,"tuiDocExampleGetTabs"),i.qZA()),2&t){const t=e.ngIf,n=i.oxw();i.xp6(1),i.Q6J("ngIf",i.xi3(2,1,t,n.defaultTab))}}function xr(t,e){1&t&&(i.TgZ(0,"div",31),i.Hsn(1),i.qZA())}function Or(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function kr(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Or,2,1,"ng-container",35),i.BQk()),2&t){const t=e.$implicit,n=i.oxw().$implicit;i.xp6(1),i.Q6J("polymorpheusOutlet",t)("polymorpheusOutletContext",i.VKq(2,_r,n))}}function Mr(t,e){if(1&t&&(i.TgZ(0,"section",32),i.YNc(1,kr,2,4,"ng-container",18),i._UZ(2,"tui-doc-copy",33),i.qZA(),i._UZ(3,"tui-doc-code",34)),2&t){const t=e.$implicit,n=i.oxw();i.xp6(1),i.Q6J("ngForOf",n.codeActions),i.xp6(1),i.Q6J("cdkCopyToClipboard",t),i.xp6(1),i.Q6J("code",t)}}function Pr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",14),i.NdJ("click",(function(){i.CHM(t);const e=i.oxw(4),n=i.MAs(1);return e.onClick(n)})),i._uU(1),i.qZA()}if(2&t){const t=e.$implicit;i.Q6J("fragment",t.fragment)("routerLink",t.route),i.xp6(1),i.hij(" ",t.title," ")}}function Sr(t,e){if(1&t&&(i.TgZ(0,"tui-opt-group",12),i.YNc(1,Pr,2,3,"a",13),i.qZA()),2&t){const t=e.$implicit,n=e.index,r=i.oxw(3);i.Q6J("label",r.labels[n]||""),i.xp6(1),i.Q6J("ngForOf",t)}}function Er(t,e){if(1&t&&(i.TgZ(0,"tui-data-list"),i.YNc(1,Sr,2,2,"tui-opt-group",11),i.ALo(2,"async"),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,1,t.filtered$))}}function Ar(t,e){1&t&&(i.ynx(0),i.YNc(1,Er,3,3,"tui-data-list",10),i.BQk())}const Tr=function(t,e){return{item:t,index:e}};function Ir(t,e){if(1&t&&i.GkF(0,19),2&t){const t=e.$implicit,n=e.index,r=i.oxw(2).index;i.oxw();const o=i.MAs(12);i.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",i.WLB(2,Tr,t,100*r+n))}}function Dr(t,e){if(1&t&&(i.TgZ(0,"div",18),i.YNc(1,Ir,1,5,"ng-container",8),i.qZA()),2&t){const t=i.oxw().index,e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.items[t])}}function Lr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-accordion-item",15),i.NdJ("openChange",(function(e){const n=i.CHM(t).index;return!!(i.oxw().openPagesArr[n]=e)})),i.TgZ(1,"span",16),i.TgZ(2,"strong"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,Dr,2,1,"ng-template",17),i.qZA()}if(2&t){const t=e.$implicit,n=e.index,r=i.oxw();i.Q6J("borders",null)("open",!!r.openPagesArr[n]),i.xp6(3),i.Oqu(t)}}function Nr(t,e){if(1&t&&i.GkF(0,19),2&t){const t=e.$implicit,n=e.index,r=i.oxw(),o=i.MAs(12);i.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",i.WLB(2,Tr,t,r.items.length-1+n))}}function zr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",22),i.NdJ("click",(function(){return i.CHM(t),i.oxw(2).closeMenu()})),i._uU(1),i.qZA()}if(2&t){const t=i.oxw().item,e=i.oxw();i.Q6J("routerLink",t.route)("tuiScrollIntoViewLink",e.isActive(t.route)),i.xp6(1),i.hij(" ",t.title," ")}}function Fr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",28),i.NdJ("click",(function(){i.CHM(t);const e=i.oxw(2).index;return i.oxw().onGroupClick(e)})),i._UZ(1,"tui-svg",29),i._uU(2),i.qZA()}if(2&t){const t=i.oxw(2),e=t.index,n=t.item,r=i.oxw();i.xp6(1),i.ekj("t-chevron_active",!!r.openPagesGroupsArr[e]),i.Q6J("src",r.icons.more),i.xp6(1),i.hij(" ",n.title," ")}}function Rr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",30),i.NdJ("click",(function(){return i.CHM(t),i.oxw(3).closeMenu()})),i._uU(1),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(3);i.Q6J("fragment",t.fragment)("routerLink",t.route)("tuiScrollIntoViewLink",n.isActive(t.route)),i.xp6(1),i.hij(" ",t.title," ")}}const Br=function(){return{exact:!1}};function jr(t,e){if(1&t&&(i.TgZ(0,"div",23),i.YNc(1,Fr,3,4,"button",24),i.TgZ(2,"tui-expand",25),i.TgZ(3,"div",26),i.YNc(4,Rr,2,4,"a",27),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw(),e=t.item,n=t.index,r=i.oxw();i.Q6J("routerLinkActiveOptions",i.DdM(4,Br)),i.xp6(1),i.Q6J("ngIf",e.subPages),i.xp6(1),i.Q6J("expanded",!!r.openPagesGroupsArr[n]),i.xp6(2),i.Q6J("ngForOf",r.$pages(e.subPages))}}function $r(t,e){if(1&t&&(i.YNc(0,zr,2,3,"a",20),i.YNc(1,jr,5,5,"ng-template",null,21,i.W1O)),2&t){const t=e.item,n=i.MAs(2);i.Q6J("ngIf",!t.subPages)("ngIfElse",n)}}const Vr=["tuiDocHeader",""];function Ur(t,e){1&t&&i._UZ(0,"tui-doc-navigation",4)}function Yr(t,e){if(1&t&&i._UZ(0,"img",5),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t,i.LSH)}}function qr(t,e){1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t&&(i.xp6(1),i.Oqu(", "))}function Hr(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"a",2),i.YNc(2,qr,2,1,"ng-container",3),i.BQk()),2&t){const t=e.$implicit,n=e.last,r=i.oxw();i.xp6(1),i.Q6J("innerText",t)("routerLink",r.getRouterLink(t)),i.xp6(1),i.Q6J("ngIf",!n)}}function Zr(t,e){if(1&t&&i._UZ(0,"a",1),2&t){const t=e.polymorpheusOutlet,n=i.oxw();i.Q6J("href",t,i.LSH)("icon",n.icons.code)("title",n.text)}}function Gr(t,e){1&t&&i._UZ(0,"tui-theme-night")}const Jr=[[["tuiDocNavigation"]],[["tuiDocHeader"]],[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],Xr=["tuiDocNavigation","tuiDocHeader","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];function Qr(t,e){1&t&&i._UZ(0,"tui-tag",9)}function Wr(t,e){if(1&t&&i._UZ(0,"tui-tag",10),2&t){const t=i.oxw();i.Q6J("autoColor",!0)("value",t.package)}}const Kr=function(t){return{exact:t}};function to(t,e){if(1&t&&(i.TgZ(0,"a",14),i.ALo(1,"tuiReplace"),i._uU(2),i.qZA()),2&t){const t=i.oxw().ngIf,e=i.oxw().first,n=i.oxw(2);i.Q6J("routerLink",e?"./":i.Dn7(1,3,t,n.from,n.to))("routerLinkActiveOptions",i.VKq(7,Kr,e)),i.xp6(2),i.hij(" ",t," ")}}function eo(t,e){1&t&&(i.ynx(0),i.YNc(1,to,3,9,"a",13),i.BQk())}function no(t,e){if(1&t&&(i.ynx(0),i.YNc(1,eo,2,0,"ng-container",12),i.BQk()),2&t){const t=e.$implicit,n=e.index,r=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.pageTab||r.defaultTabs[n])}}function io(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-tabs-with-more",11),i.NdJ("activeItemIndexChange",(function(e){return i.CHM(t),i.oxw().activeItemIndex=e})),i.YNc(1,no,2,1,"ng-container",8),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("activeItemIndex",t.activeItemIndex),i.xp6(1),i.Q6J("ngForOf",t.tabConnectors)}}function ro(t,e){if(1&t&&i._UZ(0,"tui-doc-see-also",15),2&t){const t=i.oxw();i.Q6J("seeAlso",t.seeAlso)}}function oo(t,e){if(1&t&&i.GkF(0,17),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t.template)}}function so(t,e){if(1&t&&(i.ynx(0),i.YNc(1,oo,1,1,"ng-container",16),i.BQk()),2&t){const t=e.index,n=i.oxw();i.xp6(1),i.Q6J("ngIf",t===n.activeItemIndex)}}let ao=(()=>{class t{constructor(t){this.markdownCodeProcessor=t,this.rawLoader$$=new s.X(""),this.filename="",this.processor$=this.rawLoader$$.pipe((0,u.w)(o.JQ),(0,h.U)((t=>this.markdownCodeProcessor(t))))}set code(t){this.rawLoader$$.next(t)}get hasFilename(){return!!this.filename}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.Es))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-code"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_has-filename",e.hasFilename)},inputs:{filename:"filename",code:"code"},decls:3,vars:4,consts:[["class","t-header",4,"ngIf"],["class","t-code",4,"ngFor","ngForOf"],[1,"t-header"],[1,"t-code"],[3,"lineNumbers","highlight"]],template:function(t,e){1&t&&(i.YNc(0,bi,2,1,"p",0),i.YNc(1,wi,2,2,"pre",1),i.ALo(2,"async")),2&t&&(i.Q6J("ngIf",e.filename),i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,2,e.processor$)))},directives:[y.O5,y.sg,q],pipes:[y.Ov],styles:["[_nghost-%COMP%]{display:block}.t-header[_ngcontent-%COMP%]{font:var(--tui-font-text-s);font-weight:bold}.t-code[_ngcontent-%COMP%]{margin:0}.t-code[_ngcontent-%COMP%] + .t-code[_ngcontent-%COMP%]{margin-top:1rem}.hljs[_ngcontent-%COMP%]:not(:empty){font:var(--tui-font-text-m);padding:1.5rem 2rem;font-family:monospace;background:var(--tui-clear);word-wrap:break-word;white-space:pre-wrap}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar, .hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar{background-color:transparent}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}._has-filename[_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty){border-radius:.75rem}tui-root._mobile[_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty), tui-root._mobile [_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty){padding:1rem}"],changeDetection:0}),t})(),lo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,H]]}),t})(),co=(()=>{class t{constructor(t){this.texts$=t,this.copy$=new a.xQ}get copied$(){return this.copy$.pipe((0,u.w)((()=>(0,l.H)(1500).pipe((0,h.U)(it.Iy),(0,d.O)(!0)))))}onClick(){this.copy$.next()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(ae.UV))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-copy"]],features:[i._Bn([rt.a3])],ngContentSelectors:xi,decls:2,vars:3,consts:[["appearance","","size","s","tuiButton","","type","button","class","t-copy",3,"title","click",4,"ngIf"],["appearance","","size","s","tuiButton","","type","button",1,"t-copy",3,"title","click"],[1,"t-content"],[1,"t-initial"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,Ci,6,7,"button",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.texts$))},directives:[y.O5,In.v0],pipes:[y.Ov],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle}.t-copy[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:100%;color:var(--tui-text-01);background:var(--tui-base-01);overflow:hidden}.t-copy[_ngcontent-%COMP%]:hover{background:var(--tui-base-02)}.t-initial[_ngcontent-%COMP%]{white-space:nowrap}.t-initial[_ngcontent-%COMP%]:empty:before{content:attr(data-text)}.t-content[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;flex-direction:column;transform:translateY(1rem);text-align:center;line-height:2rem}.t-content_moved[_ngcontent-%COMP%]{transform:translateY(-1rem)}"],changeDetection:0}),(0,Z.gn)([ot.UM],t.prototype,"copied$",null),t})(),uo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,In.fN]]}),t})(),ho=(()=>{class t{constructor(t,e,n,i,r,s,l){var c,u;this.options=t,this.isMobile=e,this.el=n,this.locationRef=i,this.urlSerializer=r,this.texts=s,this.urlStateHandler=l,this.control=null,this.sticky=!0,this.template=null,this.updateOnVariants=["change","blur","submit"],this.updateOn=this.params.updateOn||this.updateOnVariants[0],this.opaque=(0,o.cd)(null===(c=this.params.sandboxOpaque)||void 0===c||c),this.expanded=(0,o.cd)(null!==(u=this.params.sandboxExpanded)&&void 0!==u&&u),this.mode=this.params.tuiMode||null,this.sandboxWidth=(0,st.oY)(this.params.sandboxWidth),this.change$=new a.xQ,this.items=["onLight","onDark"]}onResize(){this.updateWidth(),this.onMouseUp()}onMouseUp(){this.updateUrl({sandboxWidth:this.sandboxWidth})}ngOnInit(){this.createForm(),this.updateWidth(this.sandboxWidth+this.delta)}onModeChange(t){this.mode=t,this.updateUrl({sandboxWidth:this.sandboxWidth}),this.change$.next()}toggleDetails(){this.expanded=!this.expanded,this.updateUrl({sandboxExpanded:this.expanded})}changeOpaque(t){this.opaque=t,this.updateUrl({sandboxOpaque:this.opaque})}updateOnChange(t){this.updateOn=t,this.updateUrl({updateOn:t}),this.createForm()}updateWidth(t=NaN){if(!this.resizer||!this.resizeable||!this.content)return;const e=t||this.resizeable.nativeElement.clientWidth,n=this.el.nativeElement.clientWidth,i=Math.round((0,st.Ki)(e,160,n))-this.delta,r=et))}])],ngContentSelectors:xi,decls:16,vars:14,consts:[[1,"t-bg-toggle",3,"tuiMode"],["tooltip",""],[4,"ngIf","ngIfElse"],["desktop",""],["size","m",1,"t-checkbox",3,"ngModel","ngModelChange"],["tuiResizeable","",1,"t-wrapper"],["id","demo-content",1,"t-content"],["content",""],["class","t-form",3,"formGroup",4,"ngIf"],[1,"t-resizer",3,"tuiResizer","tuiSizeChange"],["resizer",""],["routerLink","/directives/mode","tuiLink","","tuiMode","onDark"],["tuiTextfieldSize","s",1,"t-mode",3,"ngModel","tuiHintContent","tuiTextfieldCleaner","ngModelChange"],[3,"items",4,"tuiDataList"],[3,"items"],["describeId","form",3,"content"],["tuiGroup","",1,"t-group",3,"collapsed"],["nativeId","form","size","s",1,"tui-group__auto-width-item",3,"hideRadio","item","ngModel","ngModelChange"],["item","onDark","nativeId","form","size","s",1,"tui-group__auto-width-item",3,"hideRadio","ngModel","ngModelChange"],["item","onLight","nativeId","form","size","s",1,"tui-group__auto-width-item",3,"hideRadio","ngModel","ngModelChange"],[1,"t-form",3,"formGroup"],[1,"t-input-wrapper"],[3,"ngTemplateOutlet"],["automation-id","tui-demo-button__toggle-details","size","s","tuiButton","","type","button",1,"t-button",3,"iconRight","click"],["icon",""],[1,"t-expand",3,"expanded"],["tuiExpandContent",""],[1,"t-icon",3,"src"],[1,"t-value"],["tuiGroup","",1,"t-form-controls"],["automation-id","tui-demo-select__expand-update-on","tuiTextfieldSize","s",1,"t-select",3,"ngModel","ngModelOptions","ngModelChange"],["automation-id","tui-demo-button__reset-state","size","s","tuiButton","","type","reset",1,"tui-group__auto-width-item"],["automation-id","tui-demo-button__submit-state","size","s","tuiButton","","type","submit",1,"tui-group__auto-width-item"]],template:function(t,e){if(1&t&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,Mi,4,1,"ng-template",null,1,i.W1O),i.YNc(3,Si,4,3,"ng-container",2),i.YNc(4,Ei,9,9,"ng-template",null,3,i.W1O),i.TgZ(6,"tui-checkbox-labeled",4),i.NdJ("ngModelChange",(function(t){return e.changeOpaque(t)})),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"div",5),i.TgZ(9,"div",6),i.TgZ(10,"div",null,7),i.YNc(12,Li,9,5,"form",8),i.Hsn(13),i.qZA(),i.qZA(),i.TgZ(14,"div",9,10),i.NdJ("tuiSizeChange",(function(t){return e.updateWidth(t[0])})),i.qZA(),i.qZA()),2&t){const t=i.MAs(5);i.Q6J("tuiMode",null),i.xp6(3),i.Q6J("ngIf",e.isMobile)("ngIfElse",t),i.xp6(3),i.Q6J("ngModel",e.opaque),i.xp6(1),i.hij(" ",e.texts[1]," "),i.xp6(1),i.ekj("t-wrapper_dark","onDark"===e.mode)("t-wrapper_gray","onLight"===e.mode)("t-wrapper_transparent",!e.opaque),i.xp6(4),i.Q6J("ngIf",e.testForm),i.xp6(2),i.Q6J("tuiResizer",i.DdM(13,Ni))}},directives:[Bt.w,y.O5,Ft,pt.JJ,pt.On,W.U_,W.L$,ne.yS,Dn.V,kn.uJ,kn.OI,Ln.sz,Nn.bZ,Ln.be,zn.gX,Mn.eC,Fn.w,Qe.gZ,Qt,pt._Y,pt.JL,pt.sg,y.tP,In.v0,Je,Ge,_t.PN],pipes:[y.Ts],styles:['[_nghost-%COMP%]{position:relative;display:block;min-width:100%;margin:1.5rem 0}.t-bg-toggle[_ngcontent-%COMP%]{position:absolute;bottom:calc(100% + .75rem);display:flex;align-items:center;justify-content:flex-end;pointer-events:none;width:100%}.t-bg-toggle[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:auto}.t-wrapper[_ngcontent-%COMP%]{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;display:flex;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);max-width:100%;min-height:6rem;width:100%;min-width:10rem;background-color:var(--tui-base-01);overflow:hidden}.t-wrapper.t-wrapper_transparent[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-02) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-02) 75%);background-size:1.25rem 1.25rem;background-position:0 0,0 .625rem,.625rem -.625rem,-.625rem 0}.t-wrapper.t-wrapper_dark[_ngcontent-%COMP%]{background-color:#454e58;color:var(--tui-base-01)}.t-wrapper.t-wrapper_gray[_ngcontent-%COMP%]{background-color:#e5e7ea}.t-wrapper.t-wrapper_dark.t-wrapper_transparent[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-focus) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-focus) 75%)}.t-wrapper.t-wrapper_gray.t-wrapper_transparent[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-05) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-05) 75%)}tui-root._mobile[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:auto}.t-content[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;padding:1.5rem;box-sizing:border-box;overflow:hidden}tui-root._mobile[_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1rem}.t-form[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start}.t-input-wrapper[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem}.t-expand[_ngcontent-%COMP%]{width:100%}.t-icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-icon_rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-value[_ngcontent-%COMP%]{flex:1;background:var(--tui-clear-inverse);padding:.75rem;border-radius:.25rem}.t-mode[_ngcontent-%COMP%]{width:12.5rem}.t-select[_ngcontent-%COMP%]{max-width:15rem}.t-resizer[_ngcontent-%COMP%]{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;position:relative;width:3.5rem;min-height:inherit;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-left:1px solid var(--tui-base-03);outline:none;background:var(--tui-base-01);color:var(--tui-text-01)}.t-resizer[_ngcontent-%COMP%]:before, .t-resizer[_ngcontent-%COMP%]:after{content:"";position:absolute;top:.75rem;left:50%;bottom:calc(50% + 1rem);width:1px;background:var(--tui-base-04);box-shadow:-.25rem 0 var(--tui-base-04);transform:translate(0)}.t-resizer[_ngcontent-%COMP%]:after{bottom:.75rem;top:calc(50% + 1rem)}tui-root._mobile[_nghost-%COMP%] .t-resizer[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-resizer[_ngcontent-%COMP%]{display:none}.t-resizer-text[_ngcontent-%COMP%]{font:var(--tui-font-text-s);position:relative;z-index:1;padding:.75rem;background:var(--tui-base-01)}.wrapper_light[_ngcontent-%COMP%] .t-resizer-text[_ngcontent-%COMP%]{background:#3e464e}.t-group[_ngcontent-%COMP%], .t-checkbox[_ngcontent-%COMP%]{margin-left:.75rem}.t-button[_ngcontent-%COMP%], .t-form-controls[_ngcontent-%COMP%]{margin-top:.75rem}@supports ((position: -webkit-sticky) or (position: sticky)){@media screen and (min-height: 37.5rem){._sticky[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:4.625rem;z-index:2}}}'],changeDetection:0}),(0,Z.gn)([ot.UM],t.prototype,"updateUrl",null),t})(),po=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.UX,pt.u5,ne.Bz,Dn.j,In.fN,kn.Jy,Xe,Qe.n6,Fn.Q,Bt.z,Wt,Rt,_t.EI,Mn.zX,zn.pc,Ln.cn,Nn.go,W.gj]]}),t})(),fo=(()=>{class t{constructor(t,e,n,r,o){this.template=t,this.locationRef=e,this.activatedRoute=n,this.urlSerializer=r,this.urlStateHandler=o,this.documentationPropertyName="",this.documentationPropertyMode=null,this.documentationPropertyType="",this.documentationPropertyDeprecated=!1,this.documentationPropertyValues=null,this.documentationPropertyValueChange=new i.vpe,this.changed$=new a.xQ,this.emits$=new s.X(1)}ngOnInit(){this.parseParams(this.activatedRoute.snapshot.queryParams)}get attrName(){switch(this.documentationPropertyMode){case"input":return`[${this.documentationPropertyName}]`;case"output":return`(${this.documentationPropertyName})`;case"input-output":return`[(${this.documentationPropertyName})]`;default:return this.documentationPropertyName}}get hasItems(){return!!this.documentationPropertyValues}get shouldShowValues(){return"output"!==this.documentationPropertyMode}ngOnChanges(){this.changed$.next()}onValueChange(t){this.documentationPropertyValue=t,this.documentationPropertyValueChange.emit(t),this.setQueryParam(t)}emitEvent(t){console.info(this.attrName,t),this.emits$.next(this.emits$.value+1)}parseParams(t){const e=t[this.documentationPropertyName],n=t[`${this.documentationPropertyName}$`];if(!e&&!n)return;let i=n&&this.documentationPropertyValues?this.documentationPropertyValues[n]:(0,o.p8)(e);"string"===this.documentationPropertyType&&(0,lt.dt)(i)&&(i=i.toString()),this.onValueChange(i)}setQueryParam(t){const e=this.urlSerializer.parse(this.locationRef.path()),n=t instanceof Object,i=n&&this.documentationPropertyValues?this.documentationPropertyValues.indexOf(t):t,r=n?"$":"",o=this.documentationPropertyName+r;e.queryParams=Object.assign(Object.assign({},e.queryParams),{[o]:i}),this.locationRef.go(this.urlStateHandler(e))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Rgc),i.Y36(y.Ye),i.Y36(ne.gz),i.Y36(ne.Hx),i.Y36(r.Ii))},t.ɵdir=i.lG2({type:t,selectors:[["ng-template","documentationPropertyName",""]],inputs:{documentationPropertyName:"documentationPropertyName",documentationPropertyMode:"documentationPropertyMode",documentationPropertyType:"documentationPropertyType",documentationPropertyValue:"documentationPropertyValue",documentationPropertyDeprecated:"documentationPropertyDeprecated",documentationPropertyValues:"documentationPropertyValues"},outputs:{documentationPropertyValueChange:"documentationPropertyValueChange"},exportAs:["documentationProperty"],features:[i.TTD]}),t})(),go=(()=>{class t{transform(t){if(4===t.length)return t.split("").reduce(((t,e)=>[...t,e,e]),[]).join("").replace("#","");if(t.startsWith("#"))return t;if("transparent"===t)return"#000000";const e=t.replace("rgb(","").replace("rgba(","").replace(")","").replace(" ","").split(",").map((t=>Number.parseInt(t,10)));return(0,ut.WS)(...e)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiGetColorPipe",type:t,pure:!0}),t})(),mo=(()=>{class t{transform(t){if(t.startsWith("#")||t.startsWith("rgb("))return 100;if("transparent"===t)return 0;const e=t.lastIndexOf(","),n=t.slice(e).replace(")","").replace(" ","").replace(",","");return Math.round(100*Number.parseFloat(n))}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiGetOpacity",type:t,pure:!0}),t})(),vo=(()=>{class t{constructor(t,e){this.renderer=t,this.focusable=e}set tuiInputOpacity(t){const{nativeFocusableElement:e}=this.focusable;e&&this.renderer.setStyle(e,"opacity",t/100)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(ct.KZ))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiInputOpacity",""]],inputs:{tuiInputOpacity:"tuiInputOpacity"}}),t})(),_o=(()=>{class t{transform(t){return t.replace("?","")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiStripOptionalPipe",type:t,pure:!0}),t})(),yo=(()=>{class t{transform(t){return t.includes("?")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiIsOptionalPipe",type:t,pure:!0}),t})(),bo=(()=>{class t{transform(t){return t.includes("PolymorpheusContent")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiShowContentTooltip",type:t,pure:!0}),t})(),wo=(()=>{class t{transform(t){return t.includes("null")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiShowCleanerPipe",type:t,pure:!0}),t})(),Co=(()=>{class t{constructor(t){this.isE2E=t}transform(t,e=2){return this.isE2E&&"function"==typeof t?"λ(x) => y":(0,o.sj)(t,e)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(ct.oD,16))},t.ɵpipe=i.Yjl({name:"tuiInspectAny",type:t,pure:!0}),t})(),xo=(()=>{class t{transform(t){return(0,lt.Aj)(t)||(0,lt.dt)(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiIsPrimitivePolymorpheusContentPipe",type:t,pure:!0}),t})(),Oo=(()=>{class t{constructor(t,e,n,i,r,o){this.cdr=t,this.texts=e,this.excludedProperties=n,this.destroy$=i,this.getColor=r,this.getOpacity=o,this.heading="",this.showValues=!0,this.isAPI=!1,this.propertiesConnectors=it.Mm,this.activeItemIndex=0,this.matcher=(t,e)=>!e.has(t.documentationPropertyName)}ngAfterContentInit(){(0,ht.ll)(this.propertiesConnectors).pipe((0,u.w)((t=>(0,c.T)(...t.map((({changed$:t})=>t))))),(0,ht.NA)(this.cdr),(0,p.R)(this.destroy$)).subscribe()}get type(){return this.isAPI?this.texts[0]:this.texts[1]}onColorChange(t,e){const n=this.getOpacity.transform(t.documentationPropertyValue||"");if(100===n)return void t.onValueChange(e);const i=`rgba(${(0,ut.RO)(e).join(", ")}, ${n/100})`;t.onValueChange(i)}onOpacityChange(t,e){const n=this.getColor.transform(t.documentationPropertyValue||""),i=`rgba(${(0,ut.RO)(n)}, ${(e||0)/100})`;t.onValueChange(i)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(r.IK),i.Y36(r.et),i.Y36(rt.a3,2),i.Y36(go),i.Y36(mo))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-documentation"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,fo,4),2&t){let t;i.iGM(t=i.CRH())&&(e.propertiesConnectors=t)}},inputs:{heading:"heading",showValues:"showValues",isAPI:"isAPI"},features:[i._Bn([go,mo,rt.a3])],ngContentSelectors:xi,decls:4,vars:6,consts:[["class","t-heading",4,"ngIf"],[4,"ngIf"],[1,"t-heading"],["class","t-table",4,"ngIf"],[1,"t-table"],[1,"t-row","t-row_header"],[1,"t-th","t-cell","t-cell_prop"],[1,"t-th"],["class","t-th t-cell t-th_value",4,"ngIf"],["class","t-row",3,"t-deprecated",4,"ngFor","ngForOf"],[1,"t-th","t-cell","t-th_value"],[1,"t-row"],[1,"t-cell"],["automation-id","tui-documentation__property-name",1,"t-property"],["size","s","value","Optional",4,"ngIf"],["class","t-deprecated-label",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"type"],[3,"content","describeId",4,"ngIf"],["class","t-cell t-cell_value",4,"ngIf"],["size","s","value","Optional"],[1,"t-deprecated-label"],[3,"content","describeId"],["content",""],["href","https://github.com/taiga-family/ng-polymorpheus","rel","noreferrer","target","_blank","tuiLink","","tuiMode","onDark"],[1,"t-cell","t-cell_value"],[4,"ngIf","ngIfElse"],["elseEmitter",""],["tuiDropdownLimitWidth","min","tuiTextfieldSize","m",3,"nativeId","ngModel","tuiTextfieldCleaner","tuiTextfieldLabelOutside","valueContent","ngModelChange",4,"ngIf","ngIfElse"],["selectContent",""],["noItems",""],["tuiDropdownLimitWidth","min","tuiTextfieldSize","m",3,"nativeId","ngModel","tuiTextfieldCleaner","tuiTextfieldLabelOutside","valueContent","ngModelChange"],[1,"t-exception"],[3,"itemContent","items",4,"tuiDataList"],[3,"itemContent","items"],[3,"ngSwitch"],["size","l",3,"nativeId","ngModel","showIcons","ngModelChange",4,"ngSwitchCase"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldCleaner","tuiTextfieldLabelOutside","value","valueChange",4,"ngSwitchCase"],["tuiGroup","",4,"ngSwitchCase"],["tuiTextfieldSize","m",3,"nativeId","ngModel","step","tuiTextfieldLabelOutside","ngModelChange",4,"ngSwitchCase"],[4,"ngSwitchCase"],["size","l",3,"nativeId","ngModel","showIcons","ngModelChange"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldCleaner","tuiTextfieldLabelOutside","value","valueChange"],["tuiGroup",""],["tuiTextfieldSize","m",3,"tuiInputOpacity","tuiTextfieldLabelOutside","value","valueChange"],["tuiTextfield","","type","text"],["tuiTextfieldSize","m",3,"max","min","ngModel","step","ngModelChange"],["tuiTextfieldSize","m",3,"nativeId","ngModel","step","tuiTextfieldLabelOutside","ngModelChange"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldCleaner","tuiTextfieldLabelOutside","value","valueChange",4,"ngIf"],[1,"t-output"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,zi,2,1,"h1",0),i.Hsn(1),i.YNc(2,ir,2,1,"ng-container",1),i.ALo(3,"tuiFilter")),2&t&&(i.Q6J("ngIf",e.heading),i.xp6(2),i.Q6J("ngIf",i.Dn7(3,2,e.propertiesConnectors,e.matcher,e.excludedProperties)))},directives:[y.O5,y.sg,y.tP,te,Fn.w,Dn.V,Bt.w,kn.uJ,kn.OI,se.Ek,Ln.sz,pt.JJ,pt.On,Ln.be,Ln.xT,zn.gX,Mn.eC,y.RF,y.n9,Pn.ph,Rn.yc,Rn.B1,Qe.gZ,vo,Rn.MB,Sn.qS,Sn.g5,Bn.L],pipes:[G,_o,yo,bo,wo,Co,mo,go,xo,y.Ov],styles:["[_nghost-%COMP%]{display:block;min-width:100%}.t-table[_ngcontent-%COMP%]{width:100%;table-layout:fixed}.t-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--tui-base-03)}tui-root._mobile[_nghost-%COMP%] .t-row[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}tui-root._mobile[_nghost-%COMP%] .t-row_header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-row_header[_ngcontent-%COMP%]{display:none}.t-cell[_ngcontent-%COMP%]{padding:1rem 1rem .875rem}.t-cell[_ngcontent-%COMP%]:first-child{padding-left:0}.t-cell[_ngcontent-%COMP%]:last-child{padding-right:0}.t-cell_prop[_ngcontent-%COMP%]{width:40%}.t-cell_value[_ngcontent-%COMP%]{text-align:right}tui-root._mobile[_nghost-%COMP%] .t-cell[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-cell[_ngcontent-%COMP%]{width:100%;height:auto;padding:.5rem 0;text-align:left}.t-th[_ngcontent-%COMP%]{padding:.5rem 1rem;color:var(--tui-text-02);font-weight:normal;text-align:left}.t-th_value[_ngcontent-%COMP%]{max-width:20rem;text-align:right}tui-root._mobile[_nghost-%COMP%] .t-th_value[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-th_value[_ngcontent-%COMP%]{width:9.375rem}.t-property[_ngcontent-%COMP%]{font:var(--tui-font-text-m);margin-bottom:.25rem;font-family:monospace;color:#8f75d1}tui-root._mobile[_nghost-%COMP%] .t-property[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-property[_ngcontent-%COMP%]{padding:.5rem 0}.t-type[_ngcontent-%COMP%]{font-family:monospace}.t-deprecated[_ngcontent-%COMP%]{background-color:var(--tui-error-bg);box-shadow:-1rem 0 var(--tui-error-bg),1rem 0 var(--tui-error-bg)}.t-deprecated-label[_ngcontent-%COMP%]{margin-right:.125rem;color:var(--tui-error-fill)}.t-exception[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:max-content}.t-output[_ngcontent-%COMP%]{text-align:left;opacity:0}.t-heading[_ngcontent-%COMP%]{font:var(--tui-font-heading-4)}"],data:{animation:[(0,Kn.X$)("emitEvent",[(0,Kn.eR)(":increment",[(0,Kn.oB)({opacity:1}),(0,Kn.jt)("500ms ease-in")])])]},changeDetection:0}),t})(),ko=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})(),Mo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.u5,ne.Bz,ee,kn.Jy,Pn.YM,Fn.Q,Dn.j,Sn._H,Bt.z,Qe.n6,ko,Rn.KW,Ln.cn,se.dp,zn.pc,Mn.zX,Bn.H,J]]}),t})();const Po={codeEditorVisibilityHandler:t=>Boolean(t[oi.N.TS]&&t[oi.N.HTML]),tabTitles:new Map,fullsize:!0,linkIcon:"tuiIconLink"},So=(0,lt.JN)(Po);let Eo=(()=>{class t{transform(t){return(0,lt.Aj)(t)?(0,Qn.ag)(t):t}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiDocExampleCapitalize",type:t,pure:!0}),t})(),Ao=(()=>{class t{transform(t,e){return[e,...Object.keys(t)]}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiDocExampleGetTabs",type:t,pure:!0}),t})(),To=(()=>{class t{constructor(t,e,n,i,r,l,c,d,p,f,g,m,v){this.clipboard=t,this.alerts=e,this.location=n,this.copyTexts$=i,this.texts=r,this.codeEditor=l,this.processContent=c,this.isE2E=d,this.codeActions=p,this.router=f,this.route=g,this.ngLocation=m,this.options=v,this.rawLoader$$=new s.X({}),this.id=null,this.fullsize=this.options.fullsize,this.componentName=this.location.pathname.slice(1),this.defaultTabIndex=0,this.defaultTab=this.texts[this.defaultTabIndex],this.activeItemIndex=this.defaultTabIndex,this.copy$=this.copyTexts$.pipe((0,h.U)((([t])=>t))),this.processor$=this.rawLoader$$.pipe((0,u.w)(o.vP),(0,h.U)((t=>this.processContent(t)))),this.loading$=new a.xQ,this.visible=t=>Boolean(this.codeEditor&&this.options.codeEditorVisibilityHandler(t))}set content(t){this.rawLoader$$.next(t)}getTabTitle(t){return this.options.tabTitles.get(t)||t}copyExampleLink(){const t=this.location.href.indexOf("#"),e=`${t>-1?this.location.href.slice(0,Math.max(0,t)):this.location.href}#${this.id}`;this.setFragmentWithoutRedirect(this.id),this.clipboard.copy(e),this.alerts.open(this.texts[1],{label:this.texts[2],status:"success"}).subscribe()}edit(t){var e;this.loading$.next(!0),null===(e=this.codeEditor)||void 0===e||e.edit(this.componentName,this.id||"",t).then((()=>this.loading$.next(!1))).catch((()=>this.loading$.next(!1)))}setFragmentWithoutRedirect(t){const e=this.router.createUrlTree([],{relativeTo:this.route,fragment:t||""}).toString();this.ngLocation.go(e)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(ei),i.Y36(Jn),i.Y36(pe.Ct),i.Y36(ae.UV),i.Y36(r.mv),i.Y36(r.lW,8),i.Y36(r.$_),i.Y36(ct.oD),i.Y36(r.mT),i.Y36(ne.F0),i.Y36(ne.gz),i.Y36(y.Ye),i.Y36(So))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-example"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_fullsize",e.fullsize)},inputs:{id:"id",heading:"heading",description:"description",content:"content",fullsize:"fullsize",componentName:"componentName"},ngContentSelectors:xi,decls:8,vars:5,consts:[["class","t-title",4,"ngIf"],["class","t-description",4,"ngIf"],["class","t-example",4,"ngIf"],["preview",""],["codeSection",""],[1,"t-title"],[3,"textContent",4,"polymorpheusOutlet"],["appearance","icon","size","xs","tuiIconButton","","type","button","class","t-link-icon",3,"icon","title","click",4,"ngIf"],[3,"textContent"],["appearance","icon","size","xs","tuiIconButton","","type","button",1,"t-link-icon",3,"icon","title","click"],[1,"t-description"],[4,"polymorpheusOutlet"],[1,"t-example"],[4,"ngIf"],["class","t-tabs-wrapper",4,"ngIf"],["class","t-content",3,"t-content_animated","t-content_visible",4,"ngFor","ngForOf"],[1,"t-tabs-wrapper"],[1,"t-tabs",3,"activeItemIndex","activeItemIndexChange"],[4,"ngFor","ngForOf"],["size","xs",3,"overlay","showLoader","click",4,"ngIf"],["tuiTab","",4,"tuiItem"],["tuiTab",""],["size","xs",3,"overlay","showLoader","click"],[4,"ngIf","ngIfElse"],["defaultEditContent",""],["appearance","flat","size","s","tuiButton","","type","button"],[1,"t-content"],[3,"ngTemplateOutlet",4,"ngIf","ngIfElse"],["anotherTab",""],[3,"ngTemplateOutlet"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["automation-id","tui-doc-example",1,"t-demo"],[1,"t-code-actions"],[3,"cdkCopyToClipboard"],[3,"code"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,sr,4,4,"h3",0),i.YNc(1,lr,3,3,"h4",1),i.YNc(2,Cr,3,4,"div",2),i.ALo(3,"async"),i.YNc(4,xr,2,0,"ng-template",null,3,i.W1O),i.YNc(6,Mr,4,3,"ng-template",null,4,i.W1O)),2&t&&(i.Q6J("ngIf",e.heading),i.xp6(1),i.Q6J("ngIf",e.description),i.xp6(1),i.Q6J("ngIf",i.lcZ(3,3,e.processor$)))},directives:[y.O5,bt.Li,In.v0,y.sg,je,K.w,De,Ue.kM,y.tP,co,ii,ao],pipes:[y.Ov,Eo,Ao,tt.c],styles:["[_nghost-%COMP%]{position:relative;display:block;padding-top:3.5rem;clear:right}[_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%], tui-root._mobile [_nghost-%COMP%]{padding-top:2rem}.t-title[_ngcontent-%COMP%]{font:var(--tui-font-heading-5);margin:0 0 .5rem}tui-root._mobile[_nghost-%COMP%] .t-title[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-title[_ngcontent-%COMP%]{font:var(--tui-font-heading-6)}.t-description[_ngcontent-%COMP%]{font:var(--tui-font-text-m);font-weight:normal;margin:0}.t-example[_ngcontent-%COMP%]{position:relative;margin-top:1.5rem;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);box-shadow:0 .125rem .1875rem #0000001a}tui-root._mobile[_nghost-%COMP%] .t-example[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-example[_ngcontent-%COMP%]{margin-top:.75rem}.t-tabs-wrapper[_ngcontent-%COMP%]{display:flex;padding:0 2rem;box-shadow:inset 0 -1px var(--tui-base-03);justify-content:space-between;align-items:center}tui-root._mobile[_nghost-%COMP%] .t-tabs-wrapper[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-tabs-wrapper[_ngcontent-%COMP%]{padding:0 1rem}.t-tabs[_ngcontent-%COMP%]{flex-grow:1}.t-demo[_ngcontent-%COMP%]{padding:2rem;max-width:100%;box-sizing:border-box;overflow-x:auto}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar, .t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}tui-root._mobile[_nghost-%COMP%] .t-demo[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-demo[_ngcontent-%COMP%]{padding:1rem}[_nghost-%COMP%]:not(._fullsize) .t-demo[_ngcontent-%COMP%]{width:-webkit-min-content;width:min-content;min-width:20rem}.t-code-actions[_ngcontent-%COMP%]{position:absolute;top:4.375rem;right:1rem;display:flex;justify-content:flex-end;align-items:center}.t-code-actions[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:.5rem}.t-link-icon[_ngcontent-%COMP%]{margin-left:.3rem;vertical-align:baseline}.t-content[_ngcontent-%COMP%]{will-change:opacity;height:0;visibility:hidden;opacity:0}.t-content_animated[_ngcontent-%COMP%]{transition:opacity .3s ease-in-out}.t-content_visible[_ngcontent-%COMP%]{height:auto;visibility:visible;opacity:1}"],changeDetection:0}),t})(),Io=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,ri,$e,In.fN,uo,lo,bt.wq,tt.I,Ue.dS]]}),t})();const Do=new i.OlP("[NAVIGATION_TITLE]"),Lo=new i.OlP("[NAVIGATION_LABELS]"),No=new i.OlP("[NAVIGATION_ITEMS]"),zo=[rt.a3,{provide:Do,deps:[ne.F0,ne.gz,r.Yx,rt.a3],useFactory:(t,e,n,i)=>t.events.pipe((0,f.h)((t=>t instanceof ne.m2)),(0,h.U)((()=>e.firstChild)),(0,f.h)(lt.Pc),(0,g.zg)((({data:t})=>t)),(0,h.U)((({title:t})=>`${n}${t}`)),(0,p.R)(i))},{provide:Lo,deps:[r.V5],useFactory:Fo},{provide:No,deps:[r.V5],useFactory:t=>[...Fo(t).map((e=>t.filter((({section:t})=>t===e)))),t.filter((t=>!t.section))]}];function Fo(t){return t.map((({section:t})=>t)).filter(lt.Pc).filter(((t,e,n)=>n.indexOf(t)===e))}let Ro=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,c,u,p,g,m,v,_){this.doc=i,this.mode=r,this.sidebar=o,this.labels=s,this.items=a,this.searchText=l,this.router=c,this.activatedRoute=u,this.destroy$=p,this.readyToScroll$=g,this.scrollBehavior=m,this.docIcons=v,this.icons=_,this.menuOpen=!1,this.openPagesArr=[],this.openPagesGroupsArr=[],this.active="",this.search=new pt.NI(""),this.filtered$=(0,ht.EK)(this.search).pipe((0,f.h)((t=>t.length>2)),(0,h.U)((t=>this.filterItems(this.flattenSubPages(this.items),t)))),this.mode$=this.mode.change$.pipe((0,d.O)(null),(0,h.U)((()=>this.mode.mode||"onLight"))),n.subscribe((n=>{t.markForCheck(),e.setTitle(n),this.openActivePageGroup(),this.handleAnchorLink(this.activatedRoute.snapshot.fragment||"")}))}get canOpen(){var t,e;return(null!==(e=null===(t=this.search.value)||void 0===t?void 0:t.length)&&void 0!==e?e:0)>2}get itemsWithoutSections(){return this.items[this.items.length-1]}$pages(t){return t}isActive(t){return t===this.active}onGroupClick(t){this.openPagesGroupsArr[t]=!this.openPagesGroupsArr[t]}closeMenu(){this.menuOpen=!1}onClick(t){t.open=!1,this.menuOpen=!1,this.search.setValue(""),this.openActivePageGroup()}filterItems(t,e){return t.map((t=>(0,lt.pf)(t.filter((({title:t,keywords:n=""})=>(t=t.toLowerCase(),e=e.toLowerCase(),n=n.toLowerCase(),t.includes(e)||n.includes(e)||t.includes((0,o.OO)(e))||n.includes((0,o.OO)(e))||e.replace(/-/gi,"").includes(t)))),"title")))}flattenSubPages(t){return t.reduce(((t,e)=>[...t,e.reduce(((t,e)=>"subPages"in e?[...t,...e.subPages]:[...t,e]),[])]),[])}isActiveRoute(t){return this.router.isActive(t,{paths:"subset",queryParams:"subset",fragment:"ignored",matrixParams:"ignored"})}handleAnchorLink(t){this.readyToScroll$.pipe((0,f.h)(Boolean),(0,m.q)(1),(0,p.R)(this.destroy$)).subscribe((()=>this.navigateToAnchorLink(t)))}openActivePageGroup(){this.items.forEach(((t,e)=>{t.forEach(((t,n)=>{"route"in t&&this.isActiveRoute(t.route)&&(this.openPagesArr[e]=!0,this.active=t.route),"subPages"in t&&t.subPages.forEach((t=>{this.isActiveRoute(t.route)&&(this.openPagesArr[e]=!0,this.openPagesGroupsArr[100*e+n]=!0,this.active=t.route)}))}))}))}navigateToAnchorLink(t){const e=t?this.doc.querySelectorAll(`#${t}`):[],n=e.length&&e[e.length-1];n&&(n.classList.add("tui-doc-animated-example"),n.scrollIntoView({block:"start",inline:"nearest",behavior:this.scrollBehavior}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(j.Dx),i.Y36(Do),i.Y36(y.K0),i.Y36(Bt.w),i.Y36(ci,8),i.Y36(Lo),i.Y36(No),i.Y36(r.EI),i.Y36(ne.F0),i.Y36(ne.gz),i.Y36(rt.a3,2),i.Y36(r.V1),i.Y36(r.n1),i.Y36(r.oq),i.Y36(mt.Gs))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-navigation"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_open",e.menuOpen)},features:[i._Bn(zo)],ngContentSelectors:xi,decls:14,vars:14,consts:[["tuiTextfieldSize","m",1,"t-input",3,"formControl","tuiAutoFocus","tuiTextfieldCleaner","tuiTextfieldIconLeft","tuiTextfieldLabelOutside"],["input",""],[4,"ngIf"],[1,"t-navigation"],[1,"t-scrollbar",3,"tuiMode"],[3,"closeOthers","rounded"],["size","s",3,"borders","open","openChange",4,"ngFor","ngForOf"],[1,"t-items-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf"],["pages",""],[4,"tuiDataList"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["tuiOption","",3,"fragment","routerLink","click",4,"ngFor","ngForOf"],["tuiOption","",3,"fragment","routerLink","click"],["size","s",3,"borders","open","openChange"],[1,"t-label"],["tuiAccordionItemContent",""],[1,"t-section"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["routerLinkActive","t-sublink_active","tuiLink","","class","t-sublink",3,"routerLink","tuiScrollIntoViewLink","click",4,"ngIf","ngIfElse"],["subPagesTemplate",""],["routerLinkActive","t-sublink_active","tuiLink","",1,"t-sublink",3,"routerLink","tuiScrollIntoViewLink","click"],["routerLinkActive","",1,"t-subsection",3,"routerLinkActiveOptions"],["tuiLink","","type","button","class","t-sublink t-sublink_subsection",3,"click",4,"ngIf"],[1,"t-expand",3,"expanded"],[1,"t-section","t-section_bordered"],["routerLinkActive","t-sublink_active","tuiLink","","class","t-sublink t-sublink_small",3,"fragment","routerLink","tuiScrollIntoViewLink","click",4,"ngFor","ngForOf"],["tuiLink","","type","button",1,"t-sublink","t-sublink_subsection",3,"click"],[1,"t-chevron",3,"src"],["routerLinkActive","t-sublink_active","tuiLink","",1,"t-sublink","t-sublink_small",3,"fragment","routerLink","tuiScrollIntoViewLink","click"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"tui-input",0,1),i._uU(2),i.YNc(3,Ar,2,0,"ng-container",2),i.qZA(),i.TgZ(4,"nav",3),i.TgZ(5,"tui-scrollbar",4),i.ALo(6,"async"),i.TgZ(7,"tui-accordion",5),i.YNc(8,Lr,5,3,"tui-accordion-item",6),i.qZA(),i.TgZ(9,"div",7),i.YNc(10,Nr,1,5,"ng-container",8),i.qZA(),i.YNc(11,$r,3,2,"ng-template",null,9,i.W1O),i.qZA(),i.qZA(),i.Hsn(13)),2&t&&(i.Q6J("formControl",e.search)("tuiAutoFocus",!!e.sidebar)("tuiTextfieldCleaner",!0)("tuiTextfieldIconLeft",e.docIcons.search)("tuiTextfieldLabelOutside",!0),i.xp6(2),i.hij(" ",e.searchText," "),i.xp6(1),i.Q6J("ngIf",e.canOpen),i.xp6(2),i.Q6J("tuiMode",i.lcZ(6,12,e.mode$)),i.xp6(2),i.Q6J("closeOthers",!1)("rounded",!1),i.xp6(1),i.Q6J("ngForOf",e.labels),i.xp6(2),i.Q6J("ngForOf",e.itemsWithoutSections))},directives:[En.K3,En.wU,Ln.sz,pt.JJ,pt.oH,et.k,Ln.be,Ln.aR,Ln.xT,y.O5,jn.IB,Bt.w,pn,y.sg,zn.gX,zn.qi,zn.Rs,zn.vK,ne.yS,dn,un,y.tP,Dn.V,ne.Od,di.$E,Je,_t.PN],pipes:[y.Ov],styles:["[_nghost-%COMP%]{z-index:1;display:flex;flex-direction:column;text-align:center;background:var(--tui-base-01)}.t-input[_ngcontent-%COMP%]{margin:1.25rem}.t-navigation[_ngcontent-%COMP%]{display:flex;max-height:100%;min-height:0;flex:1 1 0;text-align:left}.t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:smooth;width:100%}@media screen and (prefers-reduced-motion: reduce){.t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:auto}}.t-items-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 1rem}.t-label[_ngcontent-%COMP%]{margin-left:.5rem}.t-expand[_ngcontent-%COMP%]{margin-left:.25rem}.t-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;margin:-1rem 0 -.5rem}.t-section_bordered[_ngcontent-%COMP%]{margin:.5rem 0;border-left:1px solid var(--tui-base-03)}.t-subsection[_ngcontent-%COMP%]{margin-left:.5rem}.t-sublink[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:1rem 0 0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-m);margin-left:.5rem}.t-sublink_small[_ngcontent-%COMP%]{margin-left:1rem;line-height:1.5rem;padding-top:.5rem}.t-sublink_subsection[_ngcontent-%COMP%]{margin-left:0;line-height:1.6rem}.t-sublink.t-sublink.t-sublink_active[_ngcontent-%COMP%]{color:var(--tui-text-01)}.t-chevron[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:1rem;height:1rem;margin:-.25rem .25rem 0 -.1875rem}.t-chevron_active[_ngcontent-%COMP%]{transform:rotate(90deg)}"],changeDetection:0}),(0,Z.gn)([ot.UM],t.prototype,"filterItems",null),(0,Z.gn)([ot.UM],t.prototype,"flattenSubPages",null),t})(),Bo=(()=>{class t{constructor(t,e,n,i,r){this.icons=t,this.logo=e,this.menu=n,this.router=i,this.swipes$=r,this.stream$=new a.xQ,this.open$=(0,c.T)(this.router.events.pipe((0,h.U)(it.Iy)),this.stream$,this.swipes$.pipe((0,f.h)((t=>"left"===t.direction||"right"===t.direction)),(0,h.U)((t=>"right"===t.direction)))).pipe((0,d.O)(!1),(0,v.x)())}onClick(){this.stream$.next(!0)}onActiveZone(t){t||this.stream$.next(!1)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.oq),i.Y36(r.Or),i.Y36(r.gG),i.Y36(ne.F0),i.Y36(rt.$D))},t.ɵcmp=i.Xpm({type:t,selectors:[["header","tuiDocHeader",""]],attrs:Vr,ngContentSelectors:xi,decls:6,vars:6,consts:[["appearance","icon","tuiIconButton","","type","button",1,"t-menu",3,"icon","title","click","tuiActiveZoneChange"],["class","t-navigation",4,"tuiSidebar"],[1,"t-logo"],["alt","Logo","class","t-img",3,"src",4,"polymorpheusOutlet"],[1,"t-navigation"],["alt","Logo",1,"t-img",3,"src"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"button",0),i.NdJ("click",(function(){return e.onClick()}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),i.YNc(1,Ur,1,0,"tui-doc-navigation",1),i.ALo(2,"async"),i.qZA(),i.TgZ(3,"div",2),i.YNc(4,Yr,1,1,"img",3),i.qZA(),i.Hsn(5)),2&t&&(i.Q6J("icon",e.icons.menu)("title",e.menu),i.xp6(1),i.Q6J("tuiSidebar",!!i.lcZ(2,4,e.open$)),i.xp6(3),i.Q6J("polymorpheusOutlet",e.logo))},directives:[In.v0,nt.e,ci,bt.Li,Ro],pipes:[y.Ov],styles:["[_nghost-%COMP%]{box-shadow:0 .125rem 1rem #00000014;position:fixed;top:0;left:0;right:0;z-index:1;display:flex;height:3.9375rem;align-items:center;padding:0 1.25rem;background:var(--tui-base-01);border-bottom:1px solid var(--tui-base-03)}.t-logo[_ngcontent-%COMP%]{margin-right:auto;font:var(--tui-font-heading-5)}.t-img[_ngcontent-%COMP%]{display:block}.t-menu[_ngcontent-%COMP%]{margin-left:-1.25rem}@media screen and (min-width: 48em){.t-menu[_ngcontent-%COMP%]{display:none}}.t-navigation[_ngcontent-%COMP%]{min-height:100%}"],changeDetection:0}),t})(),jo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,pt.UX,ne.Bz,bt.wq,di.SK,In.fN,En.Qf,Ln.cn,nt.A,dt.WD,Bt.z,Dn.j,Xe,re.jh,se.dp,fn,jn.Jy,_t.EI,zn.pc,et.Q7]]}),t})(),$o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,bt.wq,In.fN,hi,nt.A,jo]]}),t})(),Vo=(()=>{class t{constructor(t,e){this.text=t,this.pages=e,this.seeAlso=[]}getRouterLink(t){var e,n;return null!==(n=null===(e=this.pages.get(t))||void 0===e?void 0:e.route)&&void 0!==n?n:""}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.VX),i.Y36(r._Z))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-see-also"]],inputs:{seeAlso:"seeAlso"},decls:3,vars:2,consts:[[1,"t-header"],[4,"ngFor","ngForOf"],["tuiLink","",3,"innerText","routerLink"],[4,"ngIf"]],template:function(t,e){1&t&&(i.TgZ(0,"h5",0),i._uU(1),i.qZA(),i.YNc(2,Hr,3,3,"ng-container",1)),2&t&&(i.xp6(1),i.Oqu(e.text),i.xp6(1),i.Q6J("ngForOf",e.seeAlso))},directives:[y.sg,Dn.V,ne.yS,y.O5],styles:["[_nghost-%COMP%]{display:block}.t-header[_ngcontent-%COMP%]{font-size:.6875rem;line-height:1rem;text-transform:uppercase;letter-spacing:.075em;color:var(--tui-text-02);margin:0 0 .5rem;white-space:nowrap}"],changeDetection:0}),t})(),Uo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,ne.Bz,Dn.j]]}),t})(),Yo=(()=>{class t{constructor(t,e,n){this.icons=t,this.sourceCode=e,this.text=n,this.header="",this.package="",this.type="",this.path=""}get pathOptions(){return this.getPathOptions(this.header,this.package,this.type,this.path)}pathIsUrl(t){return t.startsWith("http")}getPathOptions(t,e,n,i){return{header:t,package:e,type:n,path:i}}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.oq),i.Y36(r.yO),i.Y36(r.as))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-source-code"]],inputs:{header:"header",package:"package",type:"type",path:"path"},decls:1,vars:2,consts:[["appearance","icon","size","s","target","_blank","tuiIconButton","","type","button",3,"href","icon","title",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","size","s","target","_blank","tuiIconButton","","type","button",3,"href","icon","title"]],template:function(t,e){1&t&&i.YNc(0,Zr,1,3,"a",0),2&t&&i.Q6J("polymorpheusOutlet",e.pathIsUrl(e.path)?e.path:e.sourceCode)("polymorpheusOutletContext",e.pathOptions)},directives:[bt.Li,In.v0],encapsulation:2,changeDetection:0}),(0,Z.gn)([ot.UM],t.prototype,"pathIsUrl",null),(0,Z.gn)([ot.UM],t.prototype,"getPathOptions",null),t})(),qo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,bt.wq,In.fN]]}),t})(),Ho=(()=>{class t{constructor(t,e,n){this.icons=t,this.theme=e,this.night=n,this.change$=this.night,this.night$=this.change$.pipe((0,d.O)(null),(0,h.U)((()=>this.night.value)),(0,v.x)(),(0,_.B)())}get mode(){return this.night.value?"onDark":null}get icon(){return this.night.value?this.icons.day:this.icons.night}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.oq),i.Y36(mi),i.Y36(yi))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-main"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-mode",e.mode)},features:[i._Bn([{provide:Bt.w,useExisting:(0,i.Gpc)((()=>t))},rt.$D])],ngContentSelectors:Xr,decls:21,vars:4,consts:[[4,"ngIf"],[1,"tui-doc-page"],[1,"tui-doc-navigation"],[1,"tui-doc-content"],[1,"tui-doc-outlet"],["tuiDocHeader",""],["appearance","secondary","shape","rounded","size","s","tuiIconButton","","tuiMode","onLight","type","button",1,"tui-doc-night-mode-switch",3,"icon","click"],["ngProjectAs","tuiOverContent",5,["tuiOverContent"]],["ngProjectAs","tuiOverDialogs",5,["tuiOverDialogs"]],["ngProjectAs","tuiOverAlerts",5,["tuiOverAlerts"]],["ngProjectAs","tuiOverPortals",5,["tuiOverPortals"]],["ngProjectAs","tuiOverHints",5,["tuiOverHints"]]],template:function(t,e){1&t&&(i.F$t(Jr),i.YNc(0,Gr,1,0,"tui-theme-night",0),i.ALo(1,"async"),i.TgZ(2,"tui-root"),i.TgZ(3,"div",1),i.TgZ(4,"tui-doc-navigation",2),i.Hsn(5),i.qZA(),i.TgZ(6,"div",3),i._UZ(7,"router-outlet",4),i.qZA(),i.qZA(),i.TgZ(8,"header",5),i.Hsn(9,1),i.TgZ(10,"button",6),i.NdJ("click",(function(){return e.night.toggle()})),i.qZA(),i.qZA(),i.ynx(11,7),i.Hsn(12,2),i.BQk(),i.ynx(13,8),i.Hsn(14,3),i.BQk(),i.ynx(15,9),i.Hsn(16,4),i.BQk(),i.ynx(17,10),i.Hsn(18,5),i.BQk(),i.ynx(19,11),i.Hsn(20,6),i.BQk(),i.qZA()),2&t&&(i.Q6J("ngIf",e.theme.isDefaultTheme&&e.night.useDefaultNightTheme&&i.lcZ(1,2,e.night$)),i.xp6(10),i.Q6J("icon",e.icon))},directives:[y.O5,$n.G,Ro,ne.lC,Bo,In.v0,Bt.w,An],pipes:[y.Ov],styles:['html{scroll-padding-top:4rem;height:auto}tui-root>tui-scroll-controls>.t-bar_vertical{top:4rem!important}@keyframes tuiShaking{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-.3125rem)}20%,40%,60%,80%{transform:translate(.3125rem)}}body{background:var(--tui-base-01);height:auto}tui-doc-main{display:block}code:not(pre code):not(.hljs):not([class*="language-"]){transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;box-shadow:inset 0 -2px var(--tui-secondary);padding:.375rem .5rem;font-size:.875rem;border-radius:.5rem}button:focus code,a:focus code{background:var(--tui-base-01)}.tui-doc-page{position:relative;z-index:0;padding-top:4rem}tui-doc-navigation.tui-doc-navigation{position:fixed;top:4rem;bottom:0;width:16.25rem;border-right:1px solid var(--tui-base-03)}@media screen and (max-width: 47.9625em){tui-doc-navigation.tui-doc-navigation{display:none}}.tui-doc-content{margin-left:16.25rem}@media screen and (max-width: 47.9625em){.tui-doc-content{margin-left:0}}.tui-doc-outlet+*{display:block}.tui-doc-animated-example{animation:1s .3s tuiShaking}.tui-doc-night-mode-switch{margin-left:1rem}.tui-doc-night-mode-switch tui-svg{color:var(--tui-text-02)}tui-doc-code .hljs-tag{background:none}tui-doc-code .hljs{display:block;overflow-x:auto;padding:.5em;color:var(--tui-text-01);background-color:var(--tui-clear)}tui-doc-code .hljs.hljs-line-numbers{background:transparent}tui-doc-code .hljs-subst,tui-doc-code .hljs-title{font-weight:normal;color:var(--tui-text-01)}tui-doc-code .hljs-comment,tui-doc-code .hljs-quote{color:var(--tui-text-02);font-style:italic}tui-doc-code .hljs-meta{color:#e38162}tui-doc-code .hljs-section,tui-doc-code .hljs-name,tui-doc-code .hljs-literal,tui-doc-code .hljs-keyword,tui-doc-code .hljs-selector-tag,tui-doc-code .hljs-type,tui-doc-code .hljs-selector-id,tui-doc-code .hljs-selector-class{font-weight:bold;color:var(--tui-link)}tui-doc-code .hljs-attribute,tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link{font-weight:bold;color:var(--tui-support-06)}tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link{font-weight:normal}tui-doc-code .hljs-string{color:var(--tui-positive);font-weight:bold}tui-doc-code .hljs-symbol,tui-doc-code .hljs-bullet,tui-doc-code .hljs-formula{color:var(--tui-text-01);background:var(--tui-base-02);font-style:italic}tui-doc-code .hljs-doctag{text-decoration:underline}tui-doc-code .hljs-variable,tui-doc-code .hljs-template-variable{color:var(--tui-link-hover)}tui-doc-code [data-mode=onDark] .hljs-variable,tui-doc-code [data-mode=onDark] .hljs-template-variable{color:var(--tui-warning-fill)}tui-doc-code .hljs-addition{background:var(--tui-success-bg)}tui-doc-code .hljs-deletion{background:var(--tui-error-bg)}tui-doc-code .hljs-emphasis{font-style:italic}tui-doc-code .hljs-strong{font-weight:bold}tui-doc-code .hljs .hljs-line-numbers{padding:0}tui-doc-code .hljs-ln-numbers{vertical-align:top;opacity:.3;text-align:right;padding-right:1em!important}\n'],encapsulation:2}),t})(),Zo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,ne.Bz,Tn,$o,$n.W,Wn.up,Xn,In.fN,Bt.z,jo]]}),t})();const Go=new i.OlP("[PAGE_SEE_ALSO]"),Jo=[{provide:Go,deps:[i.SBq,r.UL],useFactory:({nativeElement:t},e)=>{const n=t.getAttribute("header"),i=e.filter((t=>t.includes(n)))||[],r=new Set(i.join().split(",").filter((t=>t&&t!==n)));return Array.from(r)}}];let Xo=(()=>{class t{constructor(t){this.template=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Rgc))},t.ɵdir=i.lG2({type:t,selectors:[["","pageTab",""]],inputs:{pageTab:"pageTab"}}),t})(),Qo=(()=>{class t{constructor(t,e){this.defaultTabs=t,this.seeAlso=e,this.header="",this.package="",this.type="",this.path="",this.deprecated=!1,this.tabConnectors=it.Mm,this.activeItemIndex=0,this.from=/ /g,this.to="_"}get showSeeAlso(){return!!this.seeAlso.length&&0===this.activeItemIndex}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.AC),i.Y36(Go))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-doc-page"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,Xo,4),2&t){let t;i.iGM(t=i.CRH())&&(e.tabConnectors=t)}},inputs:{header:"header",package:"package",type:"type",path:"path",deprecated:"deprecated"},features:[i._Bn(Jo)],ngContentSelectors:xi,decls:11,vars:10,consts:[[1,"t-header"],[1,"t-title"],["status","custom","value","deprecated","class","t-tag t-tag_deprecated",4,"ngIf"],["status","custom","class","t-tag t-tag_package",3,"autoColor","value",4,"ngIf"],["class","t-tabs",3,"activeItemIndex","activeItemIndexChange",4,"ngIf"],[1,"t-source-code",3,"header","package","path","type"],[1,"t-content"],["class","t-see-also",3,"seeAlso",4,"ngIf"],[4,"ngFor","ngForOf"],["status","custom","value","deprecated",1,"t-tag","t-tag_deprecated"],["status","custom",1,"t-tag","t-tag_package",3,"autoColor","value"],[1,"t-tabs",3,"activeItemIndex","activeItemIndexChange"],[4,"ngIf"],["routerLinkActive","","tuiTab","",3,"routerLink","routerLinkActiveOptions",4,"tuiItem"],["routerLinkActive","","tuiTab","",3,"routerLink","routerLinkActiveOptions"],[1,"t-see-also",3,"seeAlso"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"header",0),i.TgZ(1,"h1",1),i._uU(2),i.YNc(3,Qr,1,0,"tui-tag",2),i.YNc(4,Wr,1,2,"tui-tag",3),i.qZA(),i.YNc(5,io,2,2,"tui-tabs-with-more",4),i._UZ(6,"tui-doc-source-code",5),i.qZA(),i.TgZ(7,"div",6),i.Hsn(8),i.YNc(9,ro,1,1,"tui-doc-see-also",7),i.YNc(10,so,2,1,"ng-container",8),i.qZA()),2&t&&(i.xp6(2),i.hij(" ",e.header," "),i.xp6(1),i.Q6J("ngIf",!!e.deprecated||""===e.deprecated),i.xp6(1),i.Q6J("ngIf",e.package),i.xp6(1),i.Q6J("ngIf",e.tabConnectors.length),i.xp6(1),i.Q6J("header",e.header)("package",e.package)("path",e.path)("type",e.type),i.xp6(3),i.Q6J("ngIf",e.showSeeAlso),i.xp6(1),i.Q6J("ngForOf",e.tabConnectors))},directives:[y.O5,Yo,y.sg,xn,je,K.w,De,ne.yS,ne.Od,Vo,y.tP],pipes:[X],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:0;flex-basis:0;flex-grow:1}.t-header[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-heading-3);flex-wrap:wrap;min-height:7.25rem;color:var(--tui-text-01);box-shadow:inset 0 -1px 0 0 var(--tui-base-03);padding:3.75rem 0 0;box-sizing:border-box;flex-shrink:0;margin:0 min(10vw,8.75rem)}tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{font:var(--tui-font-heading-4);min-height:4.5rem;padding:1.25rem 1.25rem 0;margin:0}.t-title[_ngcontent-%COMP%]{min-width:100%;font-size:inherit;margin:0}.t-tag[_ngcontent-%COMP%]{vertical-align:middle;text-transform:uppercase;margin-right:.5rem}.t-tag_deprecated[_ngcontent-%COMP%]{background-color:var(--tui-error-fill)}.t-tag.t-tag_package[_ngcontent-%COMP%]{color:#000}.t-tabs[_ngcontent-%COMP%]{flex:1;margin:1.125rem .3125rem 0 0}tui-root._mobile[_nghost-%COMP%] .t-tabs[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-tabs[_ngcontent-%COMP%]{margin-top:.25rem}.t-content[_ngcontent-%COMP%]{padding:2rem 0;margin:0 min(10vw,8.75rem)}tui-root._mobile[_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:2rem 1.25rem;margin:0}.t-see-also[_ngcontent-%COMP%]{min-width:18.75rem;width:30%;float:right;margin-left:1.5rem}tui-root._mobile[_nghost-%COMP%] .t-see-also[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-see-also[_ngcontent-%COMP%]{float:none;width:100%;margin:0 0 1.5rem}.t-source-code[_ngcontent-%COMP%]{align-self:flex-end;line-height:2.75rem;margin-left:auto}"],changeDetection:0}),t})(),Wo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,ne.Bz,Uo,$e,On,qo,Q]]}),t})()},46331:(t,e,n)=>{n.d(e,{$E:()=>d,SK:()=>p,v_:()=>f,Zp:()=>g});var i=n(74788),r=n(64548),o=n(64493),s=n(27103),a=n(74235),l=n(45435),c=n(43190),u=n(54395),h=n(46782);let d=(()=>{class t{constructor(t,{nativeElement:e},n){this.readyToScroll$=n,this.scroll$=new a.t(1),this.readyToScroll$.pipe((0,l.h)(Boolean),(0,c.w)((()=>this.scroll$)),(0,u.b)(750),(0,l.h)((t=>t&&!!(0,o.PU)(e))),(0,h.R)(t)).subscribe((()=>{e.scrollIntoView()}))}set tuiScrollIntoViewLink(t){this.scroll$.next(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.a3,2),i.Y36(i.SBq),i.Y36(r.V1))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollIntoViewLink",""]],inputs:{tuiScrollIntoViewLink:"tuiScrollIntoViewLink"},features:[i._Bn([s.a3])]}),t})(),p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})(),f=(()=>{class t{constructor(){this.code=""}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["code","tuiText",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Ikx("textContent",e.code)},inputs:{code:["tuiText","code"]}}),t})(),g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},66174:(t,e,n)=>{n.d(e,{N:()=>i});const i={TS:"TypeScript",LESS:"LESS",HTML:"HTML"}},64548:(t,e,n)=>{n.d(e,{mT:()=>d,lW:()=>p,AC:()=>f,ru:()=>y,IK:()=>b,$_:()=>m,Es:()=>v,mv:()=>w,et:()=>_,oq:()=>g,Or:()=>M,_Z:()=>E,gG:()=>C,V5:()=>S,V1:()=>P,n1:()=>A,EI:()=>x,UL:()=>T,VX:()=>O,yO:()=>I,as:()=>k,Yx:()=>D,Ii:()=>L});var i=n(11927),r=n(74788),o=n(44427),s=n(54487),a=n(41439),l=n(41291),c=n(25917),u=n(43190),h=n(79456);const d=(0,i.JN)(""),p=new r.OlP("[TUI_DOC_CODE_EDITOR]"),f=(0,i.JN)([]),g=(0,i.JN)({search:"tuiIconSearch",day:"tuiIconSun",night:"tuiIconMoon",code:"tuiIconCode",menu:"tuiIconMenuLarge"}),m=(0,i.JN)(s.y),v=(0,i.JN)(o.vi),_=(0,i.JN)(new Set([])),y=(0,i.JN)(["Read more more about modes: ","Background","Form value"]),b=(0,i.JN)(["Argument","Type","Name and description","Value","Learn about our dynamic templates from "]),w=(0,i.JN)(["Preview","Link to a sample was successfully copied","Done"]),C=(0,i.JN)("Menu"),x=(0,i.JN)("Search"),O=(0,i.JN)("See also"),k=(0,i.JN)("Source code"),M=(0,i.JN)(""),P=(0,i.JN)((0,a.P)((()=>(0,l.H)(200).pipe((0,u.w)((()=>(0,c.of)(!0))))))),S=(0,i.JN)([]),E=new r.OlP("[TUI_DOC_MAP_PAGES]",{factory:()=>(0,o.S4)((0,r.f3M)(S))}),A=(0,i.N1)((()=>(0,r.f3M)(h.TK)?"auto":"smooth")),T=(0,i.JN)([]),I=(0,i.JN)(null),D=(0,i.JN)(""),L=(0,i.JN)(String)},44427:(t,e,n)=>{n.d(e,{p8:()=>a,cd:()=>s,Ve:()=>l,sj:()=>c,JQ:()=>h,vP:()=>d,S4:()=>p,OO:()=>g,vi:()=>u});var i=n(4841),r=n.n(i),o=n(97582);function s(t){return"true"===(null==t?void 0:t.toString())}function a(t){const e=String(t).trim();if(function(t){return["undefined","null","NaN"].includes(t)}(e))return null;if(function(t){return"true"===t||"false"===t}(e))return"true"===String(e);if(function(t){return!!t.trim()&&!Number.isNaN(Number(t))&&!t.startsWith("+")}(e))return Number(e);const n=decodeURIComponent(e);try{return function(t){return t.startsWith("[")&&t.endsWith("]")}(n)||function(t){return t.startsWith("{")&&t.endsWith("}")}(n)?JSON.parse(n):n}catch(t){return n}}function l(t){return[{path:"",component:t,children:[{path:":tab",component:t}]}]}function c(t,e){if(null===t)return"null";switch(typeof t){case"string":return`'${t}'`;case"undefined":case"number":case"boolean":case"function":return String(t)}return t instanceof RegExp?String(t):Array.isArray(t)?function(t,e){if(0===e)return"[…]";let n="",i=!0;for(let r=0;r"code"===t&&"fence"===e)).map((({content:t})=>t.trim()));return e.length?e:[t]}function h(t){return(0,o.mG)(this,void 0,void 0,(function*(){return t instanceof Promise?(yield t).default:t}))}function d(t){return(0,o.mG)(this,void 0,void 0,(function*(){const e={};for(const[n,i]of Object.entries(t))i&&(e[n]=yield h(i));return e}))}function p(t){const e=new Map;for(const n of t)if("subPages"in n)for(const t of n.subPages)e.set(t.title,t);else e.set(n.title,n);return e}const f={а:"f",б:",",в:"d",г:"u",д:"l",е:"t",ё:"`",ж:";",з:"p",и:"b",й:"q",к:"r",л:"k",м:"v",н:"y",о:"j",п:"g",р:"h",с:"c",т:"n",у:"e",ф:"a",х:"[",ц:"w",ч:"x",ш:"i",щ:"o",ъ:"]",ы:"s",ь:"m",ю:".",я:"z"};function g(t){let e="";for(let n=0;n{n.d(e,{iK:()=>c});var i=n(74788),r=n(49941),o=n(89570),s=n(76480);function a(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}let l=(()=>{class t{constructor(t){this.context=t}onKeyDownEsc(){this.context.$implicit.complete()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.yf))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-preview-dialog"]],hostBindings:function(t,e){1&t&&i.NdJ("keydown.esc",(function(){return e.onKeyDownEsc()}),!1,i.evT)},decls:2,vars:3,consts:[[1,"t-dialog-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,a,2,1,"ng-container",1),i.qZA()),2&t&&(i.Q6J("@tuiSlideInTop",void 0),i.xp6(1),i.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context))},directives:[o.Li],styles:[".t-dialog-content{position:fixed;width:100%;height:100%}[tuiWrapper][data-appearance=preview-action]{background:rgba(104,104,104,.96);color:var(--tui-text-01-night)}@media (hover: hover){[tuiWrapper][data-appearance=preview-action]:hover:not(._no-hover),[tuiWrapper][data-appearance=preview-action][data-state=hover]{background:rgba(159,159,159,.86)}}[tuiWrapper][data-appearance=preview-action]:active:not(._no-active),[tuiWrapper][data-appearance=preview-action][data-state=active],[tuiWrapper][data-appearance=preview-action][data-state=active]:hover{background:rgba(159,159,159,.75)}\n"],encapsulation:2,data:{animation:[r.X9]},changeDetection:0}),t})(),c=(()=>{class t extends s.d5{constructor(){super(...arguments),this.defaultOptions={},this.component=new o.Al(l)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})()},42991:(t,e,n)=>{n.d(e,{vy:()=>ht,mE:()=>gt,E6:()=>vt});var i=n(74788),r=n(47232),o=n(11927);const s=new i.OlP("[TUI_PREVIEW_TEXTS]",{factory:(0,r.v)("previewTexts")}),a=new i.OlP("[TUI_PREVIEW_ZOOM_TEXTS]",{factory:(0,r.v)("zoomTexts")}),l=(0,o.JN)({rotate:"tuiIconRotate",prev:"tuiIconArrowLeft",next:"tuiIconArrowRight",zoomIn:"tuiIconPlus",zoomOut:"tuiIconMinus",zoomReset:"tuiIconMinimize"});var c=n(27103);let u=(()=>{class t{constructor(t){this.tuiPan=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(c.l))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiPan",""]],outputs:{tuiPan:"tuiPan"},features:[i._Bn([c.l])]}),t})(),h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})(),d=(()=>{class t{constructor(t){this.tuiZoom=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(c.bW))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiZoom",""]],hostVars:2,hostBindings:function(t,e){2&t&&i.Udp("touch-action","none")},outputs:{tuiZoom:"tuiZoom"},features:[i._Bn([c.bW])]}),t})(),p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var f=n(5962),g=n(33770),m=n(85648),v=n(66749),_=n(75675),y=n(99434),b=n(69727),w=n(24751),C=n(41213),x=n(44358),O=n(76480),k=n(57179),M=(n(18939),n(18269));function P(t,e){const n=t.findIndex(((t,n)=>n&&e(t)));return[t[n-1]||t[0],t[n]||t[t.length-1]]}g.kU,M.hW,M.hW,M.hW,M.hW,M.hW,M.hW,g.fv,M.hW,M.hW,g.fv,M.hW,M.hW,M.hW,M.hW,M.hW,M.hW;var S=n(97582),E=n(62579),A=n(15257),T=n(12057);const I=["type","range","tuiSlider",""],D=["tuiSliderThumbLabel",""];function L(t,e){1&t&&i.GkF(0)}const N=["*",[["input","type","range"]]],z=["*","input[type=range]"],F=(0,o.JN)({size:"m",trackColor:"var(--tui-base-03)"});let R=(()=>{class t{constructor(t,e,n,i,r,o){var s;this.control=t,this.options=n,this.el=i,this.userAgent=r,this.injector=o,this.size=this.options.size,this.segments=1,t instanceof w.On&&(null===(s=t.valueChanges)||void 0===s||s.pipe((0,v.NA)(e),(0,A.q)(1)).subscribe())}get min(){return Number(this.el.nativeElement.min)}get max(){return Number(this.el.nativeElement.max||100)}get step(){return Number(this.el.nativeElement.step)||1}get value(){const{el:t,control:e,hasKeySteps:n}=this;return!n&&e instanceof w.On?e.viewModel:Number(t.nativeElement.value)||0}set value(t){this.el.nativeElement.value=`${t}`}get valuePercentage(){return 100*(this.value-this.min)/(this.max-this.min)||0}get segmentWidth(){return 100/Math.max(1,this.segments)}get isOldEdge(){return(0,C.xz)(g.FS,this.userAgent)}get hasKeySteps(){return Boolean(this.injector.get(B,null))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(w.a5,10),i.Y36(i.sBO),i.Y36(F),i.Y36(i.SBq),i.Y36(E.yZ),i.Y36(i.zs3))},t.ɵcmp=i.Xpm({type:t,selectors:[["input","type","range","tuiSlider",""]],hostVars:9,hostBindings:function(t,e){1&t&&i.NdJ("input",(function(){return 0})),2&t&&(i.uIk("data-size",e.size),i.Udp("--tui-slider-track-color",e.options.trackColor)("--tui-slider-fill-percentage",e.valuePercentage,"%")("--tui-slider-segment-width",e.segmentWidth,"%"),i.ekj("_old-edge",e.isOldEdge))},inputs:{size:"size",segments:"segments"},attrs:I,decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%]{display:block;width:100%;color:var(--tui-primary);cursor:pointer}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}[_nghost-%COMP%]:not(._old-edge){-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m)}[_nghost-%COMP%]:not(._old-edge)::-webkit-slider-container{border-radius:inherit}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .625rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.375rem,0;background-size:calc(100% - 1rem),calc(100% - 1rem),auto}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .625rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.375rem;background-size:calc(100% - 1rem)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem;margin-top:-.4375rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem;margin-top:-.1875rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)::-moz-range-progress{border-radius:inherit}[_nghost-%COMP%]:not(._old-edge)::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}._old-edge[_nghost-%COMP%]::-ms-thumb{background:currentColor;border-radius:50%}._old-edge[_nghost-%COMP%]::-ms-fill-lower{background:currentColor}._old-edge[_nghost-%COMP%]::-ms-track{background:var(--tui-slider-track-color);border:none}"],changeDetection:0}),(0,S.gn)([x.UM],t.prototype,"hasKeySteps",null),t})(),B=(()=>{class t extends O.M${constructor(t,e,n,i){super(t,e),this.el=n,this.slider=i}get nativeFocusableElement(){return this.computedDisabled?null:this.el.nativeElement}get focused(){return(0,k.V8)(this.nativeFocusableElement)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.value=function(t,e){const[[n,i],[r,o]]=P(e,(([e,n])=>t<=e)),s=(t-n)/(r-n)*(o-i)+i;return(0,m.FG)(s,7)}(this.slider.valuePercentage,this.keySteps)}writeValue(t){if(null===t)return;const e=(0,m.Ki)(t,this.min,this.max);this.slider.value=this.transformToNativeValue(e)}getFallbackValue(){return 0}transformToNativeValue(t){const{min:e,max:n}=this.slider;return function(t,e){const[[n,i],[r,o]]=P(e,(([e,n])=>t<=n));return(r-n)*((t-i)/(o-i)||0)+n}(t,this.keySteps)*(n-e)/100+e}}return t.ɵfac=function(e){return new(e||t)(i.Y36(w.a5,10),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36((0,i.Gpc)((()=>R))))},t.ɵdir=i.lG2({type:t,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(t,e){1&t&&i.NdJ("input",(function(){return e.updateControlValue()}))("change",(function(){return e.updateControlValue()})),2&t&&(i.Ikx("disabled",e.computedDisabled),i.uIk("aria-valuenow",e.safeCurrentValue)("aria-valuemin",e.min)("aria-valuemax",e.max))},inputs:{keySteps:"keySteps"},features:[i.qOj]}),t})();new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"]);let j=(()=>{class t{get size(){var t;return(null===(t=this.slider)||void 0===t?void 0:t.size)||"m"}get ratio(){var t;return((null===(t=this.slider)||void 0===t?void 0:t.valuePercentage)||0)/100}get ghostLeft(){var t;return this.ratio*((null===(t=this.slider)||void 0===t?void 0:t.el.nativeElement.offsetWidth)||0)}ngAfterContentInit(){}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["","tuiSliderThumbLabel",""]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,R,5),i.Suo(n,w.a5,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.slider=t.first),i.iGM(t=i.CRH())&&(e.control=t.first)}},attrs:D,ngContentSelectors:z,decls:5,vars:8,consts:[[4,"ngIf"],[1,"t-ghost"]],template:function(t,e){1&t&&(i.F$t(N),i.YNc(0,L,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"div",1),i.Hsn(3),i.qZA(),i.Hsn(4,1)),2&t&&(i.Q6J("ngIf",i.lcZ(1,6,null==e.control?null:e.control.valueChanges)),i.xp6(2),i.Udp("--tui-slider-thumb-ratio",e.ratio)("left",e.ghostLeft,"px"),i.uIk("data-size",e.size))},directives:[T.O5],pipes:[T.Ov],styles:["[_nghost-%COMP%]{position:relative}.t-ghost[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;margin:auto;border-radius:50%;pointer-events:none}.t-ghost[data-size=s][_ngcontent-%COMP%]{width:.5rem;height:.5rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.5rem))}.t-ghost[data-size=m][_ngcontent-%COMP%]{width:1rem;height:1rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -1rem))}"],changeDetection:0}),t})(),$=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[T.ez]]}),t})();var V=n(12628),U=n(90022),Y=n(49941),q=n(54789),H=n(40719),Z=n(66682),G=n(25917),J=n(41291),X=n(26215),Q=n(9112),W=n(43190),K=n(88002),tt=n(39761),et=n(23764),nt=n(23378),it=n(89570);function rt(t,e){if(1&t&&(i._uU(0),i.ALo(1,"percent"),i.ALo(2,"async")),2&t){const t=i.oxw(2);i.hij(" ",i.lcZ(1,1,i.lcZ(2,3,t.valueChange)||t.value)," ")}}function ot(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"section",1),i.TgZ(2,"button",2),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onMinus()})),i.qZA(),i.TgZ(3,"label",3),i._UZ(4,"div",4),i.ALo(5,"async"),i.YNc(6,rt,3,5,"ng-template",null,5,i.W1O),i.TgZ(8,"input",6),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().onModelChange(e)})),i.qZA(),i.qZA(),i.TgZ(9,"button",7),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onPlus()})),i.qZA(),i.qZA(),i.TgZ(10,"button",8),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onReset()})),i.qZA(),i.BQk()}if(2&t){const t=e.ngIf,n=i.MAs(7),r=i.oxw();i.xp6(2),i.Q6J("disabled",r.leftButtonDisabled)("icon",r.icons.zoomOut)("title",t.zoomOut),i.xp6(2),i.Q6J("tuiHint",n)("tuiHintManual",!!i.lcZ(5,15,r.hintShow$)),i.xp6(4),i.Q6J("max",r.max)("min",r.min)("ngModel",r.value),i.xp6(1),i.Q6J("disabled",r.rightButtonDisabled)("icon",r.icons.zoomIn)("title",t.zoomIn),i.xp6(1),i.ekj("t-invisible",!r.collapseVisible),i.Q6J("icon",r.icons.zoomReset)("tuiHint",t.reset)}}function st(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",(function(){return i.CHM(t),i.oxw(2).rotate()})),i.qZA()}if(2&t){const t=i.oxw().ngIf,e=i.oxw();i.Q6J("icon",e.icons.rotate)("tuiHint",t.rotate)}}function at(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-preview-zoom",10),i.NdJ("reset",(function(){return i.CHM(t),i.oxw(2).reset()}))("valueChange",(function(e){return i.CHM(t),i.oxw(2).setZoom(e)})),i.ALo(1,"async"),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("min",t.minZoom)("value",i.lcZ(1,2,t.zoom$)||1)}}function lt(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"section",1,2),i.NdJ("tuiPan",(function(e){return i.CHM(t),i.oxw().onPan(e)}))("tuiResize",(function(e){return i.CHM(t),i.oxw().onResize(e)}))("tuiZoom",(function(e){return i.CHM(t),i.oxw().onZoom(e)}))("waMutationObserver",(function(){i.CHM(t);const e=i.MAs(2);return i.oxw().onMutation(e)})),i.ALo(3,"async"),i.ALo(4,"async"),i.ALo(5,"async"),i.Hsn(6),i.qZA(),i.TgZ(7,"header",3),i.TgZ(8,"div",4),i.Hsn(9,1),i.qZA(),i.Hsn(10,2),i.TgZ(11,"div",5),i.Hsn(12,3),i.qZA(),i.qZA(),i.TgZ(13,"footer",6),i.YNc(14,st,1,2,"button",7),i.YNc(15,at,2,4,"tui-preview-zoom",8),i.qZA(),i.BQk()}if(2&t){const t=i.oxw();i.xp6(1),i.Udp("cursor",i.lcZ(3,10,t.cursor$))("transform",i.lcZ(4,12,t.wrapperTransform$)),i.ekj("t-not-interactive-content",t.zoomable)("t-transitive",i.lcZ(5,14,t.transitioned$)),i.xp6(13),i.Q6J("ngIf",t.rotatable),i.xp6(1),i.Q6J("ngIf",t.zoomable)}}const ct=["*",[["tui-preview-title"]],[["tui-preview-pagination"]],[["","tuiPreviewAction",""]]],ut=["*","tui-preview-title","tui-preview-pagination","[tuiPreviewAction]"];let ht=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiPreviewAction",""]],features:[i._Bn([(0,V.O0)({appearance:"preview-action",shape:"rounded",size:"s"})])]}),t})(),dt=(()=>{class t{constructor(t,e){this.icons=t,this.zoomTexts$=e,this.min=.5,this.max=2,this.value=1,this.valueChange=new i.vpe,this.reset=new i.vpe,this.hintShow$=this.valueChange.pipe((0,W.w)((()=>(0,Z.T)((0,G.of)(!0),(0,J.H)(1e3).pipe((0,K.U)(g.Iy))))),(0,tt.O)(!1))}get leftButtonDisabled(){return this.value===this.min}get rightButtonDisabled(){return this.value===this.max}get collapseVisible(){return this.value>this.min}onModelChange(t){const e=(0,m.Ki)(t,this.min,this.max);e!==this.value&&(this.value=e,this.valueChange.emit(e))}onReset(){this.reset.emit()}onMinus(){this.onModelChange(this.value-.5)}onPlus(){this.onModelChange(this.value<1?1:this.value+.5)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(l),i.Y36(a))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-preview-zoom"]],inputs:{min:"min",max:"max",value:"value"},outputs:{valueChange:"valueChange",reset:"reset"},decls:2,vars:3,consts:[[4,"ngIf"],[1,"t-zoom"],["tuiIconButton","","tuiPreviewAction","","type","button",1,"t-sign_minus",3,"disabled","icon","title","click"],["tuiSliderThumbLabel",""],["tuiHintAppearance","onDark","tuiHintDirection","top-right",3,"tuiHint","tuiHintManual"],["hint",""],["step","any","tuiSlider","","type","range",1,"t-slider",3,"max","min","ngModel","ngModelChange"],["tuiIconButton","","tuiPreviewAction","","type","button",1,"t-sign_plus",3,"disabled","icon","title","click"],["tuiHintAppearance","onDark","tuiHintDescribe","","tuiHintDirection","top-right","tuiIconButton","","tuiPreviewAction","","type","button",1,"t-reset-button",3,"icon","tuiHint","click"]],template:function(t,e){1&t&&(i.YNc(0,ot,11,17,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.zoomTexts$))},directives:[T.O5,V.v0,ht,j,U.D,U.xn,U.t6,U.DM,U.ZY,R,w.eT,w.Fj,w.JJ,w.On,U.$o],pipes:[T.Ov,T.Zx],styles:["[_nghost-%COMP%]{position:relative;display:flex}.t-zoom[_ngcontent-%COMP%]{border-radius:1rem;background:rgba(104,104,104,.96);color:var(--tui-text-01-night);font:var(--tui-font-text-s);display:flex;justify-content:space-between;align-items:center;width:12rem}.t-slider[_ngcontent-%COMP%]{width:7.5rem}.t-sign_minus[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.t-sign_plus[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.t-invisible[_ngcontent-%COMP%]{visibility:hidden}.t-reset-button[_ngcontent-%COMP%]{margin-left:.3125rem}"],changeDetection:0}),t})();const pt=.8,ft=[0,0];let gt=(()=>{class t{constructor(t,e,n){this.el=t,this.icons=e,this.texts$=n,this.zoomable=!0,this.rotatable=!1,this.minZoom=1,this.width=0,this.height=0,this.zoom$=new X.X(this.minZoom),this.rotation$=new X.X(0),this.coordinates$=new X.X(ft),this.transitioned$=(0,Z.T)((0,v.mM)(this.el.nativeElement).pipe((0,K.U)((({stage:t})=>t!==v.nc.Continues))),(0,v.mL)(this.el.nativeElement,"touchmove",{passive:!0}).pipe((0,K.U)(g.Iy)),(0,v.mL)(this.el.nativeElement,"wheel",{passive:!0}).pipe((0,K.U)(g.Iy))),this.cursor$=(0,v.mM)(this.el.nativeElement).pipe((0,K.U)((({stage:t})=>t===v.nc.Continues?"grabbing":"initial")),(0,tt.O)("initial")),this.wrapperTransform$=(0,Q.aj)([this.coordinates$.pipe((0,K.U)((([t,e])=>`${(0,_.O)(t)}, ${(0,_.O)(e)}`))),this.zoom$,this.rotation$]).pipe((0,K.U)((([t,e,n])=>`translate(${t}) scale(${e}) rotate(${n}deg)`)))}rotate(){this.rotation$.next(this.rotation$.value-90)}onPan(t){this.coordinates$.next(this.getGuardedCoordinates(this.coordinates$.value[0]+t[0],this.coordinates$.value[1]+t[1]))}onMutation(t){const{clientWidth:e,clientHeight:n}=t;this.refresh(e,n)}onZoom({clientX:t,clientY:e,delta:n}){this.zoomable&&this.processZoom(t,e,n)}onResize(t){if(0===t.length)return;const{width:e,height:n}=t[0].contentRect;this.refresh(e,n)}reset(){this.zoom$.next(this.minZoom),this.coordinates$.next(ft)}setZoom(t){this.zoom$.next(t);const[e,n]=this.coordinates$.value;this.coordinates$.next(this.getGuardedCoordinates(e,n))}get offsets(){return{offsetX:(this.zoom$.value-this.minZoom)*this.width/2,offsetY:(this.zoom$.value-this.minZoom)*this.height/2}}calculateMinZoom(t,e,n,i){const r=t>n*pt||e>i*pt,{clientHeight:o,clientWidth:s}=this.el.nativeElement;return r?(0,m.FG)(Math.min(o*pt/t,s*pt/e),2):1}refresh(t,e){this.width=t,this.height=e,this.minZoom=this.calculateMinZoom(e,t,this.el.nativeElement.clientHeight,this.el.nativeElement.clientWidth),this.zoom$.next(this.minZoom),this.coordinates$.next(ft),this.rotation$.next(0)}processZoom(t,e,n){const i=this.zoom$.value,r=(0,m.Ki)(i+n,this.minZoom,2),o=this.getScaleCenter({clientX:t,clientY:e},this.coordinates$.value,this.zoom$.value),s=o[0]*i-o[0]*r,a=o[1]*i-o[1]*r;this.zoom$.next(r),this.coordinates$.next(this.getGuardedCoordinates(this.coordinates$.value[0]+s,this.coordinates$.value[1]+a))}getGuardedCoordinates(t,e){const{offsetX:n,offsetY:i}=this.offsets;return[(0,m.Ki)(t,-n,n),(0,m.Ki)(e,-i,i)]}getScaleCenter({clientX:t,clientY:e},[n,i],r){return[(t-n-this.el.nativeElement.offsetWidth/2)/r,(e-i-this.el.nativeElement.offsetHeight/2)/r]}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(l),i.Y36(s))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-preview"]],inputs:{zoomable:"zoomable",rotatable:"rotatable"},ngContentSelectors:ut,decls:2,vars:3,consts:[[4,"ngIf"],["attributeFilter","src","characterData","","childList","","subtree","",1,"t-wrapper",3,"tuiPan","tuiResize","tuiZoom","waMutationObserver"],["contentWrapper",""],[1,"t-header"],[1,"t-title"],[1,"t-actions"],[1,"t-footer"],["tuiHintAppearance","onDark","tuiHintDescribe","","tuiHintDirection","top-right","tuiIconButton","","tuiPreviewAction","","type","button","class","t-rotate-button",3,"icon","tuiHint","click",4,"ngIf"],[3,"min","value","reset","valueChange",4,"ngIf"],["tuiHintAppearance","onDark","tuiHintDescribe","","tuiHintDirection","top-right","tuiIconButton","","tuiPreviewAction","","type","button",1,"t-rotate-button",3,"icon","tuiHint","click"],[3,"min","value","reset","valueChange"]],template:function(t,e){1&t&&(i.F$t(ct),i.YNc(0,lt,16,16,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.texts$))},directives:[T.O5,u,f.$,d,et.Vi,V.v0,U.$o,ht,U.D,U.xn,U.t6,U.DM,dt],pipes:[T.Ov],styles:["[_nghost-%COMP%]{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.t-header[_ngcontent-%COMP%]{position:fixed;top:1rem;display:flex;width:100%;padding:0 1rem;box-sizing:border-box}.t-footer[_ngcontent-%COMP%]{position:absolute;bottom:1rem;display:flex;width:100%;padding:0 1rem;box-sizing:border-box;justify-content:center}.t-actions[_ngcontent-%COMP%]{display:flex;flex:1;justify-content:flex-end}.t-actions[_ngcontent-%COMP%] >*{margin-left:.625rem}.t-rotate-button[_ngcontent-%COMP%]{margin-right:.3125rem}.t-title[_ngcontent-%COMP%]{flex:1}tui-root._mobile[_nghost-%COMP%] .t-title[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-title[_ngcontent-%COMP%]{display:none}.t-not-interactive-content[_ngcontent-%COMP%] >*{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{will-change:transform}.t-transitive[_ngcontent-%COMP%]{transition-duration:.3s}"],data:{animation:[Y.X9]},changeDetection:0}),t})(),mt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})(),vt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({providers:[(0,y.Q)(nt.iK)],imports:[[T.ez,it.wq,et.NI,V.fN,w.u5,$,U.go,b.N,f.k,q.EI,H.dS,h,p,mt]]}),t})()},76480:(t,e,n)=>{n.d(e,{M$:()=>O,QJ:()=>M,d5:()=>P,Xn:()=>C,F9:()=>S,Er:()=>A,N9:()=>E,GM:()=>T,FX:()=>x,wB:()=>k});var i=n(74788),r=n(24751),o=(n(18939),n(33770)),s=n(11927),a=n(79765),l=n(66682),c=n(29856),u=n(26215),h=n(87874),d=n(39761),p=n(88002),f=n(45435),g=n(87519),m=n(43190),v=n(46782),_=n(27103),y=n(27788),b=n(12057);const w=["viewContainer"];let C=(()=>{class t{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new i.vpe,this.focusVisibleChange=new i.vpe,this.focusVisible=!1,this.autoIdString=`tui_interactive_${t.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get computedFocused(){var t;return!this.computedDisabled&&(null!==(t=this.pseudoFocus)&&void 0!==t?t:this.focused)}get computedFocusVisible(){var t;return!this.computedDisabled&&(null!==(t=this.pseudoFocus)&&void 0!==t?t:this.focusVisible)}get id(){return this.nativeId||this.autoIdString}updateFocused(t){this.focusedChange.emit(t)}updateFocusVisible(t){this.focusVisible!==t&&(this.focusVisible=t,this.focusVisibleChange.emit(t))}}return t.autoId=0,t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,hostVars:6,hostBindings:function(t,e){2&t&&i.ekj("_disabled",e.computedDisabled)("_focused",e.computedFocused)("_focus-visible",e.computedFocusVisible)},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}}),t})();class x{}let O=(()=>{class t extends C{constructor(t,e,n){super(),this.ngControl=t,this.cdr=e,this.valueTransformer=n,this.refresh$=new a.xQ,this.onTouched=o.iD,this.onChange=o.iD,this.fallbackValue=this.getFallbackValue(),this.destroy$=new a.xQ,this.readOnly=!1,this.pseudoInvalid=null,this.ngControl&&(this.ngControl.valueAccessor=this)}get computedInvalid(){return this.interactive&&(null!==this.pseudoInvalid?this.pseudoInvalid:this.touched&&this.invalid)}get value(){var t;return null!==(t=this.previousInternalValue)&&void 0!==t?t:this.fallbackValue}set value(t){this.updateValue(t)}get safeCurrentValue(){var t;return null!==(t=this.rawValue)&&void 0!==t?t:this.fallbackValue}get invalid(){return this.safeNgControlData((({invalid:t})=>t),!1)}get valid(){return this.safeNgControlData((({valid:t})=>t),!1)}get touched(){return this.safeNgControlData((({touched:t})=>t),!1)}get disabled(){return this.safeNgControlData((({disabled:t})=>t),!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData((({control:t})=>t),null)}get computedName(){var t,e;return null!==(e=null===(t=this.controlName)||void 0===t?void 0:t.toString())&&void 0!==e?e:null}get controlName(){var t,e,n;return null!==(n=null===(e=null===(t=this.ngControl)||void 0===t?void 0:t.name)||void 0===e?void 0:e.toString())&&void 0!==n?n:null}get rawValue(){const{ngControl:t}=this;if(null===t)return;const e=t instanceof r.On&&void 0===this.previousInternalValue?t.viewModel:t.value;return this.fromControlValue(e)}ngOnInit(){this.refresh$.pipe((0,h.g)(0),(0,d.O)(null),(0,p.U)((()=>{var t;return null===(t=this.ngControl)||void 0===t?void 0:t.control})),(0,f.h)(s.Pc),(0,g.x)(),(0,m.w)((t=>(0,l.T)(t.valueChanges,t.statusChanges))),(0,v.R)(this.destroy$)).subscribe((()=>{this.refreshLocalValue(this.safeCurrentValue)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(t){this.onChange=e=>{t(this.toControlValue(e))},this.refresh$.next()}registerOnTouched(t){this.onTouched=t}setDisabledState(){this.checkControlUpdate()}writeValue(t){const e=this.ngControl instanceof r.On&&void 0===this.previousInternalValue?this.ngControl.model:t;this.refreshLocalValue(this.fromControlValue(e))}updateFocused(t){t||this.controlMarkAsTouched(),super.updateFocused(t)}updateValue(t){this.disabled||this.valueIdenticalComparator(this.value,t)||(this.previousInternalValue=t,this.controlSetValue(t))}valueIdenticalComparator(t,e){return t===e}safeNgControlData(t,e){var n;return null!==(n=this.ngControl&&t(this.ngControl))&&void 0!==n?n:e}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(t){this.onChange(t),this.checkControlUpdate()}refreshLocalValue(t){this.previousInternalValue=t,this.checkControlUpdate()}fromControlValue(t){return this.valueTransformer?this.valueTransformer.fromControlValue(t):t}toControlValue(t){return this.valueTransformer?this.valueTransformer.toControlValue(t):t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,8),i.Y36(i.sBO),i.Y36(x,8))},t.ɵdir=i.lG2({type:t,hostVars:4,hostBindings:function(t,e){2&t&&i.ekj("_readonly",e.readOnly)("_invalid",e.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[i.qOj]}),t})();function k(t){return{provide:O,useExisting:t}}let M=(()=>{class t{constructor(){this.change$=new a.xQ}ngOnChanges(){this.change$.next()}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,features:[i.TTD]}),t})(),P=(()=>{class t extends c.y{constructor(t){super((t=>this.dialogs$.subscribe(t))),this.idService=t,this.dialogs$=new u.X([])}open(t,e={}){return new c.y((n=>{const i=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{content:t,completeWith:t=>{n.next(t),n.complete()},$implicit:n,component:this.component,createdAt:Date.now(),id:this.idService.generate()});return this.dialogs$.next([...this.dialogs$.value,i]),()=>{this.dialogs$.next(this.dialogs$.value.filter((t=>t!==i)))}}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(_.ll))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),S=(()=>{class t extends O{getFallbackValue(){return null}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})(),E=(()=>{class t{get safeHost(){if(!this.host)throw new y.ZB;return this.host}attach(t){this.host=t}add(t){return this.safeHost.addComponentChild(t)}remove({hostView:t}){t.destroy()}addTemplate(t,e){return this.safeHost.addTemplateChild(t,e)}removeTemplate(t){t.destroy()}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),A=(()=>{class t{constructor(t,e,n){this.injector=t,this.el=e,n.attach(this)}get clientRect(){return this.el.nativeElement.getBoundingClientRect()}addComponentChild(e){const n=e.createInjector(this.injector),r=n.get(i._Vd).resolveComponentFactory(e.component),o=[{provide:t,useValue:this}],s=i.zs3.create({parent:n,providers:o}),a=this.vcr.createComponent(r,void 0,s);return a.changeDetectorRef.detectChanges(),a}addTemplateChild(t,e){return this.vcr.createEmbeddedView(t,e)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.gxx),i.Y36(i.SBq),i.Y36(E))},t.ɵdir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(w,5,i.s_b),2&t){let t;i.iGM(t=i.CRH())&&(e.vcr=t.first)}}}),t})(),T=(()=>{class t{constructor(t){if(this.doc=t,null!==this.style)return void this.addTheme();const e=this.doc.head.querySelectorAll("style");this.constructor.style=e[e.length-1]}get style(){return this.constructor.style}ngOnDestroy(){this.removeTheme()}addTheme(){this.style&&this.doc.head.appendChild(this.style)}removeTheme(){var t;null===(t=this.style)||void 0===t||t.remove()}}return t.style=null,t.ɵfac=function(e){return new(e||t)(i.Y36(b.K0))},t.ɵdir=i.lG2({type:t}),t})()},18939:(t,e,n)=>{n.d(e,{T:()=>o,z:()=>r});var i=n(33770);const r={enabled:!1,get assert(){return i.iD}};class o{constructor(t,e={}){this.message=t,this.context=e}}},75122:(t,e,n)=>{n.d(e,{qY:()=>a,mL:()=>l,ae:()=>s});var i=n(74788),r=n(76480);const o=["*"];let s=(()=>{class t extends r.N9{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),a=(()=>{class t extends r.Er{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵcmp=i.Xpm({type:t,selectors:[["tui-dropdown-host"]],features:[i._Bn([{provide:r.N9,useExisting:s},{provide:r.Er,useExisting:t}]),i.qOj],ngContentSelectors:o,decls:3,vars:0,consts:[["viewContainer",""]],template:function(t,e){1&t&&(i.F$t(),i.Hsn(0),i.GkF(1,null,0))},styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block;height:100%}[_nghost-%COMP%]:before{content:"";display:block;overflow:hidden}.t-position-fixed-offset[_ngcontent-%COMP%]{position:fixed;left:0;top:0;pointer-events:none;visibility:hidden;width:100%;height:100%}'],changeDetection:0}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},33770:(t,e,n)=>{n.d(e,{Iy:()=>o,Ye:()=>s,F:()=>y,fv:()=>b,em:()=>w,f$:()=>_,kU:()=>C,tU:()=>x,FS:()=>a,LZ:()=>c,Jy:()=>d,iD:()=>u,Mm:()=>l,Yg:()=>m,bg:()=>f,yZ:()=>p,Kx:()=>g,Ml:()=>O,Lw:()=>v});var i=n(74788),r=n(56083);const o=()=>!1,s=()=>!0,a=79,l=new i.n_E,c=[],u=()=>{},h={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},d=Object.assign(Object.assign({},h),{toJSON:()=>h}),p=t=>String(t),f=(t,e)=>t===e||function(t,e){return Array.isArray(t)&&Array.isArray(e)&&!t.length&&!e.length}(t,e),g=(0,r.X$)("tuiParentAnimation",[(0,r.eR)("* => void",[(0,r.oB)({overflow:"hidden"}),(0,r.IO)(":scope > *",[(0,r.pV)()],{optional:!0})])]),m=((0,r.X$)("tuiParentStop",[(0,r.eR)(":enter",[])]),1e3/15),v=t=>"ownerSVGElement"in t?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,_=" ",y="–",b="-",w="−",C="+",x="​",O="3.44.0"},44358:(t,e,n)=>{n.d(e,{UM:()=>o});var i=n(27788);function r(t,e,n=!0){return function(){const i=t.call(this);return Object.defineProperty(this,e,{enumerable:n,value:i}),i}}function o(t,e,n){if("function"==typeof t){const n=e;if("getter"===n.kind)return r(t,n.name);if("method"===n.kind)return function(t){let e,n=[],i=!1;return function(...r){return i&&n.length===r.length&&r.every(((t,e)=>t===n[e]))||(n=r,e=t.apply(this,r),i=!0),e}}(t);throw new i.jw}const{get:o,enumerable:s,value:a}=n,l=e;if(o)return{configurable:!0,enumerable:s,get:r(o,l,s)};if("function"!=typeof a)throw new i.jw;const c=a;return{configurable:!0,enumerable:s,get(){let t,e=[],n=!1;const i=(...i)=>(n&&e.length===i.length&&i.every(((t,n)=>t===e[n]))||(e=i,t=c.apply(this,i),n=!0),t);return Object.defineProperty(this,l,{configurable:!0,value:i}),i}}}},221:(t,e,n)=>{n.d(e,{e:()=>p,A:()=>f});var i=n(97582),r=n(74788),o=n(44358),s=n(66749),a=n(99434),l=n(11927),c=n(88002),u=n(39761),h=n(87519),d=n(13653);let p=(()=>{class t{constructor(t,e,n,i){this.active$=t,this.zone=e,this.el=n,this.directParentActiveZone=i,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe((0,c.U)((t=>!!t&&this.contains(t))),(0,u.O)(!1),(0,h.x)(),(0,d.T)(1),(0,s.Yr)(this.zone)),this.directParentActiveZone&&this.directParentActiveZone.addSubActiveZone(this)}set tuiActiveZoneParentSetter(t){this.setZone(t)}ngOnDestroy(){this.directParentActiveZone&&this.directParentActiveZone.removeSubActiveZone(this),this.tuiActiveZoneParent&&this.tuiActiveZoneParent.removeSubActiveZone(this)}contains(t){return this.el.nativeElement.contains(t)||this.subActiveZones.some(((e,n,i)=>i.indexOf(e)===n&&e.contains(t)))}setZone(t){this.tuiActiveZoneParent&&this.tuiActiveZoneParent.removeSubActiveZone(this),t&&t.addSubActiveZone(this),this.tuiActiveZoneParent=t}addSubActiveZone(t){this.subActiveZones=[...this.subActiveZones,t]}removeSubActiveZone(t){this.subActiveZones=(0,l.WX)(this.subActiveZones,this.subActiveZones.indexOf(t))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(a.wk),r.Y36(r.R0b),r.Y36(r.SBq),r.Y36(t,12))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],inputs:{tuiActiveZoneParentSetter:["tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]}),(0,i.gn)([o.UM],t.prototype,"setZone",null),t})(),f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})()},37801:(t,e,n)=>{n.d(e,{k:()=>D,Q7:()=>L,f$:()=>A});var i=n(74788),r=n(27103),o=n(59796),s=n(56693),a=n(55197),l=n(96563);class c{call(t,e){return e.subscribe(new u(t))}}class u extends a.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;n{class t{constructor(t,e){this.focusable=t,this.el=e}get element(){var t;return(null===(t=this.focusable)||void 0===t?void 0:t.nativeFocusableElement)||this.el.nativeElement}get isTextFieldElement(){return this.element.matches("input, textarea, [contenteditable]")}}return t.ɵfac=function(t){i.$Z()},t.ɵdir=i.lG2({type:t}),t})(),k=(()=>{class t extends O{constructor(t,e,n){super(t,e),this.animationFrame$=n}setFocus(){var t;this.isTextFieldElement?function(...t){if(1===t.length){if(!(0,o.k)(t[0]))return t[0];t=t[0]}return(0,s.n)(t,void 0).lift(new c)}((0,h.H)(1e3),this.animationFrame$.pipe((0,g.p)(C.Yg),(0,m.U)((()=>this.element.closest(".ng-animating"))),(t=Boolean,e=>e.lift(new p(t))),(0,v.q)(1))).subscribe((()=>this.element.focus())):this.element.focus()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(b.KZ,10),i.Y36(i.SBq),i.Y36(y.L1))},t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})();const M=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"];let P=(()=>{class t extends O{constructor(t,e,n,i,r){super(t,e),this.renderer=n,this.zone=i,this.win=r,this.patchCssStyles()}setFocus(){this.isTextFieldElement?this.zone.runOutsideAngular((()=>this.iosWebkitAutofocus())):this.element.focus()}iosWebkitAutofocus(){var t;const e=this.makeFakeInput(),n=this.getDurationTimeBeforeFocus();let i=0,r=0;const o=()=>e.focus({preventScroll:!0}),s=()=>{clearTimeout(i),i=this.win.setTimeout((()=>{clearTimeout(r),e.removeEventListener("blur",o),e.removeEventListener("focus",s),r=this.win.setTimeout((()=>{this.element.focus({preventScroll:!1}),e.remove()}),n)}))};e.addEventListener("blur",o,{once:!0}),e.addEventListener("focus",s),this.insideDialog()?this.win.document.body.appendChild(e):null===(t=this.element.parentElement)||void 0===t||t.appendChild(e),e.focus({preventScroll:!0})}makeFakeInput(){const t=this.renderer.createElement("input"),e=this.element.getBoundingClientRect();return this.patchFakeInputFromFocusableElement(t),t.style.height=(0,x.O)(e.height),t.style.width=(0,x.O)(e.width/2),t.style.position="fixed",t.style.zIndex="-99999999",t.style.caretColor="transparent",t.style.border="none",t.style.outline="none",t.style.color="transparent",t.style.background="transparent",t.style.cursor="none",t.style.fontSize=(0,x.O)(16),t.style.top=(0,x.O)(e.top),t.style.left=(0,x.O)(e.left),t}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){const t=this.win.document;for(const e of[t.documentElement,t.body])e.style.setProperty("overflow","auto"),e.style.setProperty("height","100%")}patchFakeInputFromFocusableElement(t){M.forEach((e=>{const n=this.element.getAttribute(e);(0,w.Pc)(n)&&t.setAttribute(e,n)}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(b.KZ,10),i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.R0b),i.Y36(y.m9))},t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})();const S={delay:NaN},E=(0,w.JN)(S);function A(t){return(0,w.vK)(E,t,S)}const T=new i.OlP("[TUI_AUTOFOCUS_HANDLER]"),I=[{provide:T,useFactory:(t,e,n,i,r,o,s)=>s?new P(t,e,i,r,o):new k(t,e,n),deps:[[new i.FiY,new i.PiD,b.KZ],i.SBq,y.L1,i.Qsj,i.R0b,y.m9,b.FA]},r.a3];let D=(()=>{class t{constructor(t,e,n){this.handler=t,this.options=e,this.destroy$=n,this.autoFocus=!0}ngAfterViewInit(){var t;null!=(t=this.autoFocus)&&"false"!=`${t}`&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then((()=>this.handler.setFocus())):(0,h.H)(this.options.delay).pipe((0,_.R)(this.destroy$)).subscribe((()=>this.handler.setFocus()))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(T),i.Y36(E),i.Y36(r.a3,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:["tuiAutoFocus","autoFocus"]},features:[i._Bn(I)]}),t})(),L=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},44541:(t,e,n)=>{n.d(e,{t:()=>r,S:()=>o});var i=n(74788);let r=(()=>{class t{constructor(){this.indeterminate=!1,this.checked=!1,this.tuiCheckedChange=new i.vpe}get isChecked(){return this.checked}get isIndeterminate(){return this.indeterminate}set tuiChecked(t){this.checked=t||!1,this.indeterminate=null===t}onChange({checked:t}){this.checked=t,this.indeterminate=!1,this.tuiCheckedChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["input","tuiChecked",""],["input","tuiCheckedChange",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("change",(function(t){return e.onChange(t.target)})),2&t&&i.Ikx("checked",e.isChecked)("indeterminate",e.isIndeterminate)},inputs:{tuiChecked:"tuiChecked"},outputs:{tuiCheckedChange:"tuiCheckedChange"}}),t})(),o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},69727:(t,e,n)=>{n.d(e,{N:()=>r});var i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},32498:(t,e,n)=>{n.d(e,{U:()=>r,D:()=>o});var i=n(74788);let r=(()=>{class t{constructor({nativeElement:t}){return new i.SBq(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiElement",""]],exportAs:["elementRef"]}),t})(),o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},88491:(t,e,n)=>{n.d(e,{q:()=>o,c:()=>s});var i=n(74788),r=n(27103);let o=(()=>{class t{constructor(t){this.tuiFocusVisibleChange=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.ku))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[i._Bn([r.a3,r.ku])]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},13633:(t,e,n)=>{n.d(e,{t:()=>r,u:()=>o});var i=n(74788);let r=(()=>{class t{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Ikx("tabIndex",e.tabIndex)},inputs:{focusable:["tuiFocusable","focusable"]}}),t})(),o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},75059:(t,e,n)=>{n.d(e,{U:()=>h,F:()=>d});var i=n(74788),r=n(66749),o=n(57179),s=n(66682),a=n(88002),l=n(39761),c=n(87519),u=n(13653);let h=(()=>{class t{constructor({nativeElement:t},e){this.tuiFocusedChange=(0,s.T)((0,r.mL)(t,"focusin"),(0,r.mL)(t,"focusout")).pipe((0,a.U)((()=>(0,o.V8)(t))),(0,l.O)(!1),(0,c.x)(),(0,u.T)(1),(0,r.Yr)(e))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiFocusedChange",""]],outputs:{tuiFocusedChange:"tuiFocusedChange"}}),t})(),d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},96111:(t,e,n)=>{n.d(e,{co:()=>f,VE:()=>g,gs:()=>p});var i=n(74788),r=n(33770),o=n(66749),s=n(64493),a=n(29856),l=n(66682),c=n(88002),u=n(45435),h=n(87519);function d({currentTarget:t,relatedTarget:e}){return!(0,s.ve)(e)||!(0,s.ve)(t)||!t.contains(e)}let p=(()=>{class t extends a.y{constructor(t,e){super((t=>this.stream$.subscribe(t))),this.el=t,this.zone=e,this.stream$=(0,l.T)((0,o.mL)(this.el.nativeElement,"mouseenter").pipe((0,c.U)(r.Ye)),(0,o.mL)(this.el.nativeElement,"mouseleave").pipe((0,c.U)(r.Iy)),(0,o.mL)(this.el.nativeElement,"mouseout").pipe((0,u.h)(d),(0,c.U)(r.Iy))).pipe((0,h.x)(),(0,o.Yr)(this.zone))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),f=(()=>{class t{constructor(t){this.tuiHoveredChange=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(p))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[i._Bn([p])]}),t})(),g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},56210:(t,e,n)=>{n.d(e,{w:()=>r,H:()=>o});var i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiItem",""]]}),t})(),o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},92668:(t,e,n)=>{n.d(e,{Ls:()=>o,WD:()=>s});var i=n(74788);class r{constructor(t){this.internalDirectiveInstance=t}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}}let o=(()=>{class t{constructor(t,e){t.createEmbeddedView(e,new r(this))}static ngTemplateContextGuard(t,e){return!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},71486:(t,e,n)=>{n.d(e,{W:()=>h,e:()=>d});var i=n(74788),r=n(66749),o=n(27103),s=n(64493),a=n(45435),l=n(46782),c=n(43190),u=n(68307);let h=(()=>{class t{constructor({nativeElement:t},e,n){this.mode="scroll",(0,r.mL)(t,"wheel",{passive:!1}).pipe((0,a.h)((()=>this.enabled)),(0,r.fL)(e),(0,l.R)(n)).subscribe((t=>{this.processEvent(t,!!t.deltaY,t.deltaY?t.deltaY<0:t.deltaX<0)})),(0,r.mL)(t,"touchstart",{passive:!0}).pipe((0,c.w)((({touches:e})=>{let n,{clientX:i,clientY:o}=e[0],s=0,l=0;return(0,r.mL)(t,"touchmove",{passive:!1}).pipe((0,a.h)((()=>this.enabled)),(0,u.b)((t=>{const e=t.changedTouches[0];s=i-e.clientX,l=o-e.clientY,i=e.clientX,o=e.clientY,void 0===n&&(n=Math.abs(l)>Math.abs(s)),this.processEvent(t,n,n?l<0:s<0)})))})),(0,r.fL)(e),(0,l.R)(n)).subscribe()}get enabled(){return"none"!==this.mode}get overscrollBehavior(){return this.enabled?"contain":null}processEvent(t,e,n){var i;const{target:r,currentTarget:o,cancelable:a}=t;a&&(0,s.ve)(r)&&"range"!==(null===(i=r)||void 0===i?void 0:i.type)&&("all"!==this.mode||(!e||o.contains((0,s.Hs)(r)))&&(e||o.contains((0,s.Hs)(r,!1)))?e&&(n&&!(0,s.ty)(r,o,!0,!1)||!n&&!(0,s.ty)(r,o,!0,!0))?t.preventDefault():e||(!n||(0,s.ty)(r,o,!1,!1))&&(n||(0,s.ty)(r,o,!1,!0))||t.preventDefault():t.preventDefault())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(o.a3,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(t,e){2&t&&i.Udp("overscroll-behavior",e.overscrollBehavior)},inputs:{mode:["tuiOverscroll","mode"]},features:[i._Bn([o.a3])]}),t})(),d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},5962:(t,e,n)=>{n.d(e,{$:()=>o,k:()=>s});var i=n(74788),r=n(27103);let o=(()=>{class t{constructor(t){this.tuiResize=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.tl))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiResize",""]],outputs:{tuiResize:"tuiResize"},features:[i._Bn([r.a3,r.tl])]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},46732:(t,e,n)=>{n.d(e,{U_:()=>s,L$:()=>a,gj:()=>l});var i=n(74788),r=n(32498),o=n(75675);let s=(()=>{class t extends r.U{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiResizeable",""]],features:[i.qOj]}),t})(),a=(()=>{class t{constructor(t){this.resizeable=t,this.tuiResizer=[0,0],this.tuiSizeChange=new i.vpe,this.x=NaN,this.y=NaN,this.width=0,this.height=0}get cursor(){return this.tuiResizer[0]?this.tuiResizer[1]?this.tuiResizer[0]*this.tuiResizer[1]>0?"nwse-resize":"nesw-resize":"ew-resize":"ns-resize"}onTouchStart({touches:t}){this.onMouseDown(t[0].clientX,t[0].clientY)}onMouseDown(t,e){this.x=t,this.y=e,this.width=this.resizeable.nativeElement.clientWidth,this.height=this.resizeable.nativeElement.clientHeight}onMouseMove({x:t,y:e,buttons:n}){n?this.onMove(t,e):this.onMouseUp()}onTouchMove({touches:t}){this.onMove(t[0].clientX,t[0].clientY)}onMouseUp(){this.x=NaN}onMove(t,e){if(Number.isNaN(this.x))return;const{style:n}=this.resizeable.nativeElement,i=[this.width+this.tuiResizer[0]*(t-this.x),this.height+this.tuiResizer[1]*(e-this.y)];this.tuiResizer[0]&&(n.width=(0,o.O)(i[0])),this.tuiResizer[1]&&(n.height=(0,o.O)(i[1])),this.tuiSizeChange.emit(i)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiResizer",""]],hostVars:4,hostBindings:function(t,e){1&t&&i.NdJ("touchstart.silent.passive",(function(t){return e.onTouchStart(t)}))("mousedown.silent.prevent",(function(t){return e.onMouseDown(t.x,t.y)}))("mousemove.silent",(function(t){return e.onMouseMove(t)}),!1,i.evT)("touchmove.silent",(function(t){return e.onTouchMove(t)}),!1,i.evT)("mouseup.silent",(function(){return e.onMouseUp()}),!1,i.evT)("touchend.silent",(function(){return e.onMouseUp()}),!1,i.evT),2&t&&i.Udp("touch-action","none")("cursor",e.cursor)},inputs:{tuiResizer:"tuiResizer"},outputs:{tuiSizeChange:"tuiSizeChange"}}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},36424:(t,e,n)=>{n.d(e,{L:()=>i,B:()=>r});var i=(()=>(function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(i||(i={})),i))(),r=(()=>(function(t){t[t.January=0]="January",t[t.February=1]="February",t[t.March=2]="March",t[t.April=3]="April",t[t.May=4]="May",t[t.June=5]="June",t[t.July=6]="July",t[t.August=7]="August",t[t.September=8]="September",t[t.October=9]="October",t[t.November=10]="November",t[t.December=11]="December"}(r||(r={})),r))()},27788:(t,e,n)=>{n.d(e,{I4:()=>i,AM:()=>r,JY:()=>o,ZB:()=>s,aq:()=>a,jw:()=>l,pb:()=>c,j2:()=>u}),Error,Error;class i extends Error{constructor(t){super("")}}class r extends Error{constructor(t){super("")}}class o extends Error{constructor(t){super("")}}class s extends Error{constructor(){super("")}}class a extends Error{constructor(){super("")}}class l extends Error{constructor(){super("")}}Error;class c extends Error{constructor(){super("")}}class u extends Error{constructor(){super("")}}Error,Error},66749:(t,e,n)=>{n.d(e,{nc:()=>T,EK:()=>E,mM:()=>D,ix:()=>F,Xd:()=>R,fw:()=>B,mp:()=>$,ll:()=>j,pt:()=>V,vm:()=>U,mL:()=>A,NA:()=>Y,Yr:()=>H,fL:()=>q});var i=n(27788),r=n(29856),o=n(22759),s=n(66682),a=n(22416),l=n(34022),c=n(41291),u=n(59193),h=n(25917),d=n(77393);class p{call(t,e){return e.subscribe(new f(t))}}class f extends d.L{_next(t){}}var g=n(39761),m=n(15257),v=n(88002),_=n(70409),y=n(79196),b=n(43190),w=n(87519),C=n(47349),x=n(45435),O=n(57057),k=n(68307),M=n(11927),P=n(33770),S=n(57179);function E(t){return new r.y((e=>{if(!t.valueChanges)throw new i.j2;t.valueChanges.pipe((0,g.O)(t.value)).subscribe(e)}))}function A(t,e,n={}){return(0,o.R)(t,e,n)}var T=(()=>(function(t){t[t.Start=0]="Start",t[t.Continues=1]="Continues",t[t.End=2]="End"}(T||(T={})),T))();class I{constructor(t,e){this.stage=t,this.event=e}}function D(t){const{ownerDocument:e}=t;if(!e)throw new i.aq;return(0,a.z)(A(t,"mousedown").pipe((0,m.q)(1),(0,v.U)((t=>new I(T.Start,t)))),(0,s.T)(A(e,"mousemove").pipe((0,v.U)((t=>new I(T.Continues,t)))),(n=e,(0,s.T)(A(n,"mouseup"),A(n,"dragend"))).pipe((0,m.q)(1),(0,v.U)((t=>new I(T.End,t))),function(...t){return e=>(0,a.z)(e,(0,h.of)(...t))}(null))).pipe((0,_.o)(M.Pc))).pipe((0,y.r)());var n}function L(t=0){return(0,l.z)((0,b.w)((()=>(0,c.H)(t).pipe((0,v.U)(P.Iy),(0,g.O)(!0)))),(0,w.x)())}let N,z;function F(t){const e=A(t,"blur"),{ownerDocument:n}=t;if(!n)throw new i.aq;return z&&N||(N=A(n,"mouseup",{capture:!0}).pipe(L(),(0,g.O)(!1),(0,C.d)({bufferSize:1,refCount:!0})),z=A(n,"mousedown",{capture:!0}).pipe(L(),(0,g.O)(!1),(0,C.d)({bufferSize:1,refCount:!0}))),(0,s.T)((0,a.z)(A(t,"focus").pipe((0,m.q)(1)),e.pipe((0,x.h)((()=>!(0,S.V8)(t))),(0,m.q)(1),(function(t){return t.lift(new p)}))).pipe((0,y.r)(),(0,O.M)(z,N,((t,e,n)=>e||n)),(0,x.h)(M.Mv))).pipe((0,b.w)((()=>e.pipe((0,v.U)(P.Iy),(0,m.q)(1),(0,g.O)(!0)))),(0,w.x)())}function R(t,e=Boolean){return(0,l.z)((0,b.w)((n=>e(n)?t(n):u.E)))}function B(t){var e,n;return"observed"in t?t.observed:!!(null===(n=null===(e=t)||void 0===e?void 0:e.observers)||void 0===n?void 0:n.length)}function j(t){return t.changes.pipe((0,g.O)(null),(0,v.U)((()=>(0,M.gD)(t))))}function $(){return(0,k.b)((t=>t.preventDefault()))}function V(t){return A(t===t.ownerDocument.documentElement?t.ownerDocument:t,"scroll")}function U(){return(0,k.b)((t=>{t.stopPropagation()}))}function Y(t){return(0,k.b)((()=>{t.markForCheck()}))}function q(t){return e=>new r.y((n=>t.runOutsideAngular((()=>e.subscribe(n)))))}function H(t){return(0,l.z)(q(t),function(t){return e=>new r.y((n=>e.subscribe({next:e=>t.run((()=>n.next(e))),error:e=>t.run((()=>n.error(e))),complete:()=>t.run((()=>n.complete()))})))}(t))}},42420:(t,e,n)=>{n.d(e,{c:()=>r,I:()=>o});var i=n(74788);let r=(()=>{class t{transform(t,e,...n){return e(t,...n)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiMapper",type:t,pure:!0}),t})(),o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},27103:(t,e,n)=>{n.d(e,{a3:()=>F,gH:()=>R,ku:()=>B,ll:()=>j,AQ:()=>V,l:()=>U,b0:()=>$,tl:()=>Y,Fr:()=>q,$D:()=>H,bW:()=>Z});var i=n(74788),r=n(74235),o=n(29856),s=n(41439),a=n(66682),l=n(22759),c=n(97968),u=n(66749),h=n(46782),d=n(87874),p=n(43219),f=n(88002),g=n(39761),m=n(87519),v=n(43190),_=n(45435),y=n(59328),b=n(79196),w=n(5304),C=n(54395),x=n(9945),O=n(47349),k=n(42145),M=n(62579),P=n(33770),S=n(64493),E=n(12057);const A=new i.OlP("Box model to observe changes",{providedIn:"root",factory:()=>"content-box"}),T=new i.OlP("Resize Observer API support",{providedIn:"root",factory:()=>!!(0,i.f3M)(M.m9).ResizeObserver});let I=(()=>{class t extends o.y{constructor({nativeElement:t},e,n,i){let r;return super((o=>{if(n)return r=new ResizeObserver((t=>{e.run((()=>{o.next(t)}))})),r.observe(t,{box:i}),()=>{r.disconnect()};o.error("ResizeObserver is not supported in your browser")})),this.pipe((0,x.B)())}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(T),i.LFG(A))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})();var D=n(11927),L=n(97582),N=n(59178),z=n(99434);let F=(()=>{class t extends r.t{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),R=(()=>{class t{constructor(t,e){this.resolver=t,this.injector=e,this.map=new Map}addComponent(t){this.map.has(t)||this.map.set(t,this.resolver.resolveComponentFactory(t).create(this.injector))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i._Vd),i.LFG(i.gxx))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),B=(()=>{class t extends o.y{constructor({nativeElement:t},e,n){super((t=>this.focusVisible$.subscribe(t))),this.focusVisible$=(0,u.ix)(t).pipe((0,u.NA)(e),(0,h.R)(n))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.sBO),i.LFG(F,2))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),j=(()=>{class t{generate(){return`tui_${t.autoId++}${Date.now()}`}}return t.autoId=0,t.ɵfac=function(e){return new(e||t)},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),$=(()=>{class t extends o.y{constructor(t,e){super((t=>this.callback$.subscribe(t))),this.callback$=(0,s.P)((()=>{let{nativeElement:n}=t;const i=[e,n];for(;n.parentElement;)n=n.parentElement,i.push(n);return(0,a.T)(...i.map((t=>(0,u.mL)(t,"scroll"))))}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(M.m9))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),V=(()=>{class t extends o.y{constructor(t,{nativeElement:e},n,i,r,o){super((t=>this.obscured$.subscribe(t))),this.obscured$=(0,a.T)((0,a.T)(t,(0,l.R)(i,"resize")).pipe((0,d.g)(0)),o.pipe((0,p.p)(P.Yg))).pipe((0,f.U)((()=>(0,S.PU)(e))),(0,g.O)(null),(0,m.x)(),(0,u.Yr)(n),(0,h.R)(r))}}return t.ɵfac=function(e){return new(e||t)(i.LFG($,2),i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(M.m9),i.LFG(F,2),i.LFG(M.L1))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),U=(()=>{class t extends o.y{constructor({nativeElement:t},e){super((n=>{(0,a.T)((0,u.mL)(t,"touchstart",{passive:!0}),(0,u.mL)(t,"mousedown")).pipe((0,v.w)((()=>(0,a.T)((0,u.mL)(e,"touchmove",{passive:!0}).pipe((0,_.h)((({touches:t})=>t.length<2)),(0,f.U)((({touches:t})=>t[0]))),(0,u.mL)(e,"mousemove")))),(0,y.G)(),(0,f.U)((([t,e])=>[e.clientX-t.clientX,e.clientY-t.clientY])),(0,h.R)((0,a.T)((0,u.mL)(e,"touchend"),(0,u.mL)(e,"mouseup"))),(0,b.r)()).subscribe(n)}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(E.K0))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),Y=(()=>{class t extends I{constructor(t,e,n,i,r,o){return super(t,e,i,r),this.pipe((0,w.K)((()=>o.pipe((0,p.p)(P.Yg),(0,f.U)((()=>`${t.nativeElement.clientWidth} ${t.nativeElement.clientHeight}`)),(0,m.x)(),(0,f.U)((()=>P.LZ))))),(0,C.b)(0),(0,u.fL)(e),(0,x.B)(),(0,h.R)(n))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(F,2),i.LFG(T),i.LFG(A),i.LFG(M.L1))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),q=(()=>{class t{constructor(t,e){this.win=t,this.platformId=e,this.cache=new Map}request(t){const e=this.cache.get(t);if(e)return e;const n=("AbortController"in this.win||(0,E.PM)(this.platformId)?function(t,e={}){const{selector:n}=e,i=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const r=new AbortController,o=r.signal;let s=!0,a=!1;const l=new N.w;let u;if(l.add((()=>{a=!0,s&&r.abort()})),i){if(i.signal)if(i.signal.aborted)r.abort();else{const t=i.signal,e=()=>{o.aborted||r.abort()};t.addEventListener("abort",e),l.add((()=>t.removeEventListener("abort",e)))}u=Object.assign({},i,{signal:o})}else u={signal:o};return fetch(t,u).then((t=>{n?l.add((0,c.D)(n(t)).subscribe((t=>e.next(t)),(t=>{s=!1,a||e.error(t)}),(()=>{s=!1,e.complete()}))):(s=!1,e.next(t),e.complete())})).catch((t=>{s=!1,a||e.error(t)})),l}))}(t):(0,s.P)((()=>(0,c.D)(fetch(t))))).pipe((0,v.w)((e=>(0,L.mG)(this,void 0,void 0,(function*(){if(e.ok)return e.text();throw new Error(`Failed to load ${t} (${e.statusText})`)})))),(0,O.d)({bufferSize:1,refCount:!1}));return this.cache.set(t,n),n}}return t.ɵfac=function(e){return new(e||t)(i.LFG(M.m9),i.LFG(i.Lbi))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),H=(()=>{class t extends o.y{constructor({nativeElement:t},{timeout:e,threshold:n},i){super((r=>{(0,a.T)((0,u.mL)(t,"touchstart",{passive:!0}),(0,u.mL)(i,"touchend")).pipe((0,y.G)(),(0,_.h)((([t,e])=>!!t.touches.length&&t.touches[0].identifier===e.changedTouches[0].identifier)),(0,f.U)((([t,i])=>{const r=t.touches[0].clientX,o=t.touches[0].clientY,s=r-i.changedTouches[0].clientX,a=o-i.changedTouches[0].clientY,l=i.timeStamp-t.timeStamp;return(Math.abs(s)>n||Math.abs(a)>n)&&l{class t extends o.y{constructor({nativeElement:t},{wheelSensitivity:e}){super((n=>{(0,a.T)((0,u.mL)(t,"touchstart",{passive:!0}).pipe((0,_.h)((({touches:t})=>t.length>1)),(0,v.w)((e=>(0,u.mL)(t,"touchmove",{passive:!0}).pipe((0,u.mp)(),(0,k.R)(((t,e)=>{const n=(0,D.q2)(e);return{event:e,distance:n,delta:.01*(n-t.distance)}}),{event:e,distance:(0,D.q2)(e),delta:0}),(0,f.U)((({event:t,delta:e})=>({clientX:(t.touches[0].clientX+t.touches[1].clientX)/2,clientY:(t.touches[0].clientY+t.touches[1].clientY)/2,delta:e,event:t}))),(0,h.R)((0,u.mL)(t,"touchend")))))),(0,u.mL)(t,"wheel",{passive:!1}).pipe((0,u.mp)(),(0,f.U)((t=>({clientX:t.clientX,clientY:t.clientY,delta:-t.deltaY*e,event:t}))))).subscribe(n)}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(z.AK))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})()},99434:(t,e,n)=>{n.d(e,{wk:()=>A,bS:()=>I,qY:()=>L,KZ:()=>z,XG:()=>V,B4:()=>U,oD:()=>q,FA:()=>R,fL:()=>$,Sg:()=>H,jF:()=>Z,i0:()=>G,s6:()=>J,AK:()=>Q,XH:()=>D,Q:()=>N,FT:()=>F});var i=n(12057),r=n(74788),o=n(62579),s=n(66749);const a=/ipad|iphone|ipod/;function l(t){return a.test(t.userAgent.toLowerCase())||function(t){return t.platform.startsWith("Mac")||"iPhone"===t.platform}(t)&&t.maxTouchPoints>1}const c=/^((?!chrome|android).)*safari/i;var u=n(64493),h=n(11927),d=n(26215),p=n(41291),f=n(66682),g=n(25917),m=n(43190),v=n(88002),_=n(39761),y=n(9945),b=n(46782),w=n(72361),C=n(57057),x=n(45435),O=n(15257),k=n(87519),M=n(47349),P=n(79221),S=n(33770);const E=new r.OlP("[TUI_REMOVED_ELEMENT]",{factory:()=>{const t={onRemovalComplete:()=>{}},e=new d.X(null),n=(0,r.f3M)(P.Th,r.XFs.Optional)||t,{onRemovalComplete:i=t.onRemovalComplete}=n;return n.onRemovalComplete=(t,r)=>{e.next(t),i.call(n,t,r)},e.pipe((0,m.w)((t=>(0,p.H)(0).pipe((0,v.U)((()=>null)),(0,_.O)(t)))),(0,y.B)())}}),A=new r.OlP("[TUI_ACTIVE_ELEMENT]",{factory:()=>{const t=(0,r.f3M)(E),e=(0,r.f3M)(o.m9),n=(0,r.f3M)(i.K0),a=(0,s.mL)(e,"focusout"),l=(0,s.mL)(e,"focusin"),c=(0,s.mL)(e,"blur"),h=(0,s.mL)(e,"mousedown"),d=(0,s.mL)(e,"mouseup");return(0,f.T)(a.pipe((0,b.R)(h),(0,w.a)((()=>d)),(0,C.M)(t),(0,x.h)((([t,e])=>T((0,u.mA)(t),e))),(0,v.U)((([{relatedTarget:t}])=>t))),c.pipe((0,v.U)((()=>n.activeElement)),(0,x.h)((t=>!!(null==t?void 0:t.matches("iframe"))))),l.pipe((0,m.w)((t=>{const e=(0,u.mA)(t),i=(0,u.Wf)(e);return i===n?(0,g.of)(e):function(t){return(0,f.T)((0,s.mL)(t,"focusin").pipe((0,v.U)((({target:t})=>t))),(0,s.mL)(t,"focusout").pipe((0,x.h)((({target:t,relatedTarget:e})=>!!e&&T(t))),(0,v.U)((({relatedTarget:t})=>t))))}(i).pipe((0,_.O)(e))}))),h.pipe((0,m.w)((t=>{const e=(0,u.mA)(t);return n.activeElement&&n.activeElement!==n.body?a.pipe((0,O.q)(1),(0,v.U)((()=>e)),(0,b.R)((0,p.H)(0))):(0,g.of)(e)})))).pipe((0,k.x)(),(0,y.B)())}});function T(t,e=null){return(0,u.Wf)(t).activeElement!==t&&!t.matches(":disabled")&&!(null==e?void 0:e.contains(t))}const I=(0,h.JN)([]);function D(t){return{provide:I,multi:!0,useExisting:t}}new r.OlP("[TUI_DEFAULT_RENDERER]",{factory:()=>(0,r.f3M)(r.FYo).createRenderer(null,null)});const L=(0,h.JN)([]);function N(t){return{provide:L,multi:!0,useExisting:t}}new r.OlP("[TUI_ENSURE_BASE_HREF]",{factory:()=>{var t;const e=null===(t=(0,r.f3M)(i.K0).querySelector("base"))||void 0===t?void 0:t.href;if(e)return e;const n=(0,r.f3M)(i.K0).createElement("a");return n.href="",n.pathname}});const z=new r.OlP("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function F(t){return{provide:z,useExisting:t}}const R=new r.OlP("[TUI_IS_IOS]",{factory:()=>l((0,r.f3M)(o.s5))}),B=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,j=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/,$=new r.OlP("[TUI_IS_MOBILE]",{factory:()=>B.test((0,r.f3M)(o.yZ).toLowerCase())||j.test((0,r.f3M)(o.yZ).slice(0,4).toLowerCase())}),V=new r.OlP("[TUI_IS_ANDROID]",{factory:()=>(0,r.f3M)($)&&!(0,r.f3M)(R)}),U=(new r.OlP("[TUI_IS_APPLE]",{factory:()=>{return l(t=(0,r.f3M)(o.s5))||c.test(t.userAgent.toLowerCase());var t}}),new r.OlP("[TUI_IS_CHROMIUM]",{factory:()=>!!(0,r.f3M)(o.m9).chrome}),new r.OlP("[TUI_IS_CYPRESS]",{factory:()=>!!(0,r.f3M)(o.m9).Cypress})),Y=new r.OlP("[TUI_IS_PLAYWRIGHT]",{factory:S.Iy}),q=new r.OlP("[TUI_IS_E2E]",{factory:()=>(0,r.f3M)(U)||(0,r.f3M)(Y)}),H=(new r.OlP("[TUI_IS_FIREFOX]",{factory:()=>{var t;return void 0!==(null===(t=(0,r.f3M)(o.m9))||void 0===t?void 0:t.mozCancelFullScreen)}}),new r.OlP("[TUI_IS_STACKBLITZ]",{factory:()=>(0,r.f3M)(o.m9).location.host.endsWith("stackblitz.io")})),Z=new r.OlP("[TUI_IS_WEBKIT]",{factory:()=>{var t;return!!(null===(t=(0,r.f3M)(o.m9))||void 0===t?void 0:t.webkitConvertPointFromNodeToPage)}});(0,h.JN)("web");const G=new r.OlP("[TUI_RANGE]",{factory:()=>(0,i.NF)((0,r.f3M)(r.Lbi))?new Range:{}}),J=(0,h.JN)({timeout:500,threshold:30}),X=(new r.OlP("[TUI_TAKE_ONLY_TRUSTED_EVENTS]",{factory:S.Ye}),new r.OlP("[TUI_TOUCH_SUPPORTED]",{factory:()=>(0,r.f3M)(o.m9).matchMedia("(any-pointer: coarse)").matches}),new r.OlP("[TUI_WINDOW_SIZE]",{factory:()=>{const t=(0,r.f3M)(o.m9);return(0,s.mL)(t,"resize").pipe((0,_.O)(null),(0,v.U)((()=>{var e,n;const i=Math.max(t.innerWidth,(null===(e=t.visualViewport)||void 0===e?void 0:e.width)||0),r=Math.max(t.innerHeight,(null===(n=t.visualViewport)||void 0===n?void 0:n.height)||0);return{width:i,height:r,top:0,left:0,right:i,bottom:r}})),(0,M.d)({bufferSize:1,refCount:!0}))}})),Q=(new r.OlP("[TUI_WINDOW_HEIGHT]",{factory:()=>(0,r.f3M)(X).pipe((0,v.U)((({height:t})=>t)))}),(0,h.JN)({wheelSensitivity:.01}))},41213:(t,e,n)=>{n.d(e,{xz:()=>r,oK:()=>o,Ex:()=>s});const i="edge/";function r(t,e){return parseInt(e.slice(e.toLowerCase().indexOf(i)+i.length),10){function i(t){const e=t.replace("#","").split("").map(((t,e,n)=>3===n.length?t+t:t)).join("").match(/.{2}/g);return e?e.map((t=>Number.parseInt(t,16))):[0,0,0]}function r(t,e,n){return[o(t,e,n,5),o(t,e,n,3),o(t,e,n,1)]}function o(t,e,n,i){const r=(i+t/60)%6;return Math.round(n-n*e*Math.max(Math.min(r,4-r,1),0))}n.d(e,{RO:()=>i,qZ:()=>r,Mp:()=>a,WS:()=>l,bD:()=>c});const s=[0,0,0,1];function a(t){const e=t.replace("#","").replace("rgba(","").replace("rgb(","").replace(")",""),n=e.split(",").map((t=>parseFloat(t)));if(4===n.length)return n;if(3===n.length)return n.concat(1);const i=e.match(new RegExp(`(.{${e.length/3}})`,"g"));if(!i)return s;const r=i.map((t=>parseInt(e.length%2?t+t:t,16)));return[r[0]||s[0],r[1]||s[1],r[2]||s[2],void 0===r[3]?s[3]:r[3]]}function l(t,e,n){return`#${[t,e,n].map((t=>t.toString(16).padStart(2,"0"))).join("")}`}function c(t,e,n){const i=Math.max(t,e,n),r=i-Math.min(t,e,n),o=r&&(i===t?(e-n)/r:i===e?2+(n-t)/r:4+(t-e)/r);return[60*(o<0?o+6:o),i&&r/i,i]}},64493:(t,e,n)=>{n.d(e,{ty:()=>o,PP:()=>s,mA:()=>h,Wf:()=>d,PU:()=>p,YX:()=>f,Hs:()=>g,ve:()=>l,Hn:()=>m,dW:()=>c,wq:()=>u,qY:()=>a,dD:()=>v});var i=n(85648),r=n(11927);function o(t,e,n,i){return n?function(t,e,n){let i=t;for(;i!==e.parentElement;){if(Math.floor(i.scrollTop)>0&&!n||Math.ceil(i.scrollTop+i.clientHeight)0&&!n||Math.ceil(i.scrollLeft+i.clientWidth)!t.contains(e)));return 4===m.length?m:null}function f(t,e){let{offsetTop:n,offsetLeft:i,offsetParent:r}=e;for(;c(r)&&r!==t;)n+=r.offsetTop,i+=r.offsetLeft,r=r.offsetParent;return{offsetTop:n,offsetLeft:i}}function g(t,e=!0){return null===t?null:e&&t.scrollHeight>t.clientHeight||!e&&t.scrollWidth>t.clientWidth?t:g(t.parentElement,e)}function m(t){return a(t)&&!t.readOnly||!!t.isContentEditable}function v(t=0,e=0){const n={x:t,y:e,left:t,right:t,top:e,bottom:e,width:0,height:0};return Object.assign(Object.assign({},n),{toJSON:()=>n})}n(18939)},57179:(t,e,n)=>{n.d(e,{hp:()=>s,BW:()=>c,ie:()=>o,V8:()=>u,zb:()=>h,dT:()=>a,_h:()=>l,VR:()=>d,Pg:()=>p});var i=n(64493),r=n(33770);function o({activeElement:t}){if(!(null==t?void 0:t.shadowRoot))return t;let e=t.shadowRoot.activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function s(t){const e=o(t);(0,i.dW)(e)&&e.blur()}function a(t){if(t.hasAttribute("disabled")||"-1"===t.getAttribute("tabIndex"))return!1;if((0,i.dW)(t)&&t.isContentEditable||"0"===t.getAttribute("tabIndex"))return!0;switch(t.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return t.hasAttribute("controls");case"INPUT":return"hidden"!==t.getAttribute("type");case"A":case"LINK":return t.hasAttribute("href");default:return!1}}function l(t){return!t.hasAttribute("disabled")&&("-1"===t.getAttribute("tabIndex")||a(t))}function c({initial:t,root:e,previous:n=!1,keyboard:o=!0}){if(!e.ownerDocument)return null;const s=o?a:l,c=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,r.Lw);for(c.currentNode=t;n?c.previousNode():c.nextNode();)if((0,i.dW)(c.currentNode)&&(t=c.currentNode),(0,i.dW)(t)&&s(t))return t;return null}function u(t){return!!(null==t?void 0:t.ownerDocument)&&o(t.ownerDocument)===t}function h(t){if(!t.ownerDocument||!t.contains)return!1;const e=o(t.ownerDocument);return null!==e&&t.contains(e)}function d(t,e,n){for(t+=n;t>=0&&t{function i(t){return`${t}px`}n.d(e,{O:()=>i}),n(18939)},85648:(t,e,n)=>{function i(t,e,n){return Math.min(n,Math.max(e,t))}function r(t,e,n){return t>=e&&t=n?n:Math.round(t)}n.d(e,{Ki:()=>i,wf:()=>r,G1:()=>o,FG:()=>a,h0:()=>c,HW:()=>u,oY:()=>h}),n(18939);const s=292;function a(t,e=0){return l(t,e,Math.round)}function l(t,e,n){if(t===1/0)return t;e=Math.min(e,s);const i=`${t}e`.split("e"),r=`${n(Number(`${i[0]}e${Number(i[1])+e}`))}e`.split("e");return Number(`${r[0]}e${Number(r[1])-e}`)}function c({value:t,precision:e,method:n}){switch(n){case"round":return a(t,e);case"ceil":return function(t,e=0){return l(t,e,Math.ceil)}(t,e);case"floor":return function(t,e=0){return l(t,e,Math.floor)}(t,e);default:return function(t,e=0){return l(t,e,Math.trunc)}(t,e)}}function u(t){return t?1:0}function h(t){return parseInt(t,10)}},11927:(t,e,n)=>{n.d(e,{WX:()=>r,xT:()=>s,jH:()=>a,JN:()=>l,N1:()=>c,A2:()=>u,q2:()=>h,gD:()=>d,M8:()=>p,Mv:()=>f,dt:()=>g,Pc:()=>m,Aj:()=>o,lj:()=>v,vK:()=>_,pf:()=>y});var i=n(74788);function r(t,e){return t.slice(0,Math.max(e,0)).concat(t.slice(Math.max(e+1,0)))}function o(t){return"string"==typeof t}function s(t){return JSON.parse(JSON.stringify(t,((t,e)=>function(t){const e=o(t)?t.trim():t;return[void 0,null,NaN,""].includes(e)}(e)?void 0:e)))}function a(t){return new i.OlP("",{factory:()=>t})}function l(t){return new i.OlP("",{factory:()=>t})}function c(t){return new i.OlP("",{factory:t})}function u(t,e){return t===e?0:o(t)&&o(e)?t.localeCompare(e):t>e?1:-1}function h({touches:t}){return Math.hypot(t[0].clientX-t[1].clientX,t[0].clientY-t[1].clientY)}function d(t){let e=[];return t.find(((t,n,i)=>(e=i,!0))),e}function p(t,e){return Math.abs(e)>Math.abs(t)?e>0?"top":"bottom":t>0?"left":"right"}function f(t){return!t}function g(t){return"number"==typeof t}function m(t){return null!=t}function v(t){return new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|localhost|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t)}function _(t,e,n){return{provide:t,deps:[[new i.FiY,new i.tp0,t]],useFactory:t=>Object.assign(Object.assign({},t||n),e)}}function y(t,e){return Array.from(t.reduce(((t,n)=>t.has(n[e])?t:t.set(n[e],n)),new Map).values())}},68192:(t,e,n)=>{n.d(e,{N:()=>r});var i=n(11927);function r(t,e=function(){return Math.floor(Math.random()*Date.now())}(),n="rgba(0, 0, 0, 0.7)"){if((0,i.Aj)(t)){const i=function(t){var e;const n=(null!==(e=t.match(/url\(("?)('*)#(.*?)('*)\)/g))&&void 0!==e?e:[]).map((t=>t.slice(4,t.length-1).replace(/['"#]+/g,"")));return Array.from(new Set(n))}(t);return function(t,e){try{const n=(new DOMParser).parseFromString(t,"text/html");return n.body.querySelectorAll("[fill^=url]").forEach((t=>t.setAttribute("fill",`${t.getAttribute("fill")} ${e}`.trim()))),n.body.innerHTML.trim()}catch(e){return t}}(i.reduce(((t,n)=>{const i=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),r=`id_${e}_${n}`;return t.replace(new RegExp(`"${i}"`,"g"),`"${r}"`).replace(new RegExp(`'${i}'`,"g"),`'${r}'`).replace(new RegExp(`url\\('#${i}'\\)`,"g"),`url('#${r}')`).replace(new RegExp(`url\\("#${i}"\\)`,"g"),`url("#${r}")`).replace(new RegExp(`url\\(#${i}\\)`,"g"),`url(#${r})`)}),t),n)}return t}},43631:(t,e,n)=>{n.d(e,{FP:()=>f,D1:()=>g,kk:()=>u,uG:()=>m,O4:()=>y,c2:()=>d,UK:()=>h,P7:()=>_,Ic:()=>C,Fe:()=>p,Sv:()=>w,ei:()=>v,Wk:()=>b});var i=n(74788),r=n(27103),o=n(76480),s=n(29856),a=n(66682),l=n(87519),c=n(46782);class u extends s.y{}function h(t){return{provide:u,multi:!0,useExisting:t}}class d{}function p(t){return{provide:d,multi:!0,useExisting:t}}let f=(()=>{class t{constructor(t,e,n){this.destroy$=t,this.drivers=e,this.vehicles=n}ngOnInit(){const t=this.vehicles.find((({type:t})=>t===this.type));(0,a.T)(...this.drivers.filter((({type:t})=>t===this.type))).pipe((0,l.x)(),(0,c.R)(this.destroy$)).subscribe((e=>{null==t||t.toggle(e)}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a3,2),i.Y36(u),i.Y36(d))},t.ɵdir=i.lG2({type:t}),t})(),g=(()=>{class t{constructor(t){this.host=t}get readOnly(){return this.host.readOnly}get disabled(){return this.host.computedDisabled}get invalid(){return this.host.computedInvalid}get focusable(){return this.host.computedFocusable}get inputMode(){return"text"}get value(){var t;return(null===(t=this.host.value)||void 0===t?void 0:t.toString())||""}process(t){}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.M$))},t.ɵdir=i.lG2({type:t}),t})();class m{}function v(t){return{provide:m,deps:[[new i.tp0,m]],useFactory:e=>e.find((e=>e.type===t))}}function _(t){return{provide:m,multi:!0,useExisting:t}}class y{}function b(t,e){return{provide:y,deps:[[new i.tp0,y],e],useFactory:w(t)}}function w(t){return(e,n)=>e.find((e=>e!==n&&e.type===t))||n}function C(t){return{provide:y,multi:!0,useExisting:t}}},49941:(t,e,n)=>{n.d(e,{i9:()=>c,QF:()=>l,eu:()=>a,gI:()=>u,Gw:()=>h,X9:()=>d});var i=n(56083);const r="{{duration}}ms ease-in-out",o={params:{duration:300}},s=300,a=(0,i.X$)("tuiHeightCollapse",[(0,i.eR)(":enter",[(0,i.oB)({height:0}),(0,i.jt)(r,(0,i.oB)({height:"*"}))],o),(0,i.eR)(":leave",[(0,i.oB)({height:"*"}),(0,i.jt)(r,(0,i.oB)({height:0}))],o)]),l=((0,i.X$)("tuiHeightCollapseList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({height:0}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({height:"*"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({height:"*"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({height:0}))])],{optional:!0})],o)]),(0,i.X$)("tuiWidthCollapse",[(0,i.eR)(":enter",[(0,i.oB)({width:0}),(0,i.jt)(r,(0,i.oB)({width:"*"}))],o),(0,i.eR)(":leave",[(0,i.oB)({width:"*"}),(0,i.jt)(r,(0,i.oB)({width:0}))],o)]),(0,i.X$)("tuiWidthCollapseList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({width:0}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({width:"*"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({width:"*"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({width:0}))])],{optional:!0})],o)]),(0,i.X$)("tuiFadeIn",[(0,i.eR)(":enter",[(0,i.oB)({opacity:0}),(0,i.jt)(r,(0,i.oB)({opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({opacity:1}),(0,i.jt)(r,(0,i.oB)({opacity:0}))],o)])),c=((0,i.X$)("tuiFadeInList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({opacity:0}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({opacity:1}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({opacity:1}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({opacity:0}))])],{optional:!0})],o)]),(0,i.X$)("tuiFadeInTop",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(-10px)",opacity:0}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)",opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)",opacity:1}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(-10px)",opacity:0}))],o)]),(0,i.X$)("tuiFadeInBottom",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(10px)",opacity:0}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)",opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)",opacity:1}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(10px)",opacity:0}))],o)]),(0,i.X$)("tuiDropdownAnimation",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(-10px)",opacity:0}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)",opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)",opacity:1}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(-10px)",opacity:0}))],o)])),u=(0,i.X$)("tuiScaleIn",[(0,i.eR)(":enter",[(0,i.oB)({transform:"scale(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"scale(1)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"scale(1)"}),(0,i.jt)(r,(0,i.oB)({transform:"scale(0)"}))],o)]),h=((0,i.X$)("tuiScaleInList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"scale(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"scale(1)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"scale(1)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"scale(0)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideIn",[(0,i.eR)("* => left",[(0,i.oB)({transform:"translateX(-100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)("left => *",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(-100%)"}))],o),(0,i.eR)("* => right",[(0,i.oB)({transform:"translateX(100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)("right => *",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(100%)"}))],o)])),d=((0,i.X$)("tuiSlideInLeft",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateX(-100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(-100%)"}))],o)]),(0,i.X$)("tuiSlideInLeftList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateX(-100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(-100%)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideInRight",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateX(100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(100%)"}))],o)]),(0,i.X$)("tuiSlideInRightList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateX(100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(100%)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideInTop",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translate3d(0,{{start}},0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),(0,i.eR)(":leave",[(0,i.oB)({transform:"translate3d(0,{{end}},0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]));(0,i.X$)("tuiSlideInTopList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateY(100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateY(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(100%)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideInBottom",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(-100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(-100%)"}))],o)]),(0,i.X$)("tuiSlideInBottomList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateY(-100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateY(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(-100%)"}))])],{optional:!0})],o)])},12628:(t,e,n)=>{n.d(e,{v0:()=>T,fN:()=>I,O0:()=>A});var i=n(74788),r=n(11927),o=n(76480),s=n(57179),a=n(27103),l=n(99434),c=n(75452),u=n(59193),h=n(39761),d=n(88002),p=n(87519),f=n(77320),g=n(54789),m=n(40719),v=n(12057),_=n(91489),y=n(89570);const b=["tuiButton",""];function w(t,e){1&t&&i.GkF(0)}function C(t,e){if(1&t&&i._UZ(0,"tui-svg",8),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function x(t,e){if(1&t&&(i.TgZ(0,"span",6),i.YNc(1,C,1,1,"tui-svg",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)}}function O(t,e){if(1&t&&i._UZ(0,"tui-svg",8),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function k(t,e){if(1&t&&(i.TgZ(0,"span",9),i.YNc(1,O,1,1,"tui-svg",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconRight)}}function M(t,e){if(1&t&&i._UZ(0,"tui-loader",10),2&t){const t=i.oxw();i.Q6J("inheritColor",!0)("size",t.loaderSize)}}const P=["*"],S={size:"l",shape:null,appearance:f.Nm.Primary},E=(0,r.JN)(S);function A(t){return(0,r.vK)(E,t,S)}let T=(()=>{class t extends o.Xn{constructor(t,e,n,i){var r;super(),this.mode=t,this.el=e,this.options=i,this.mode$=(null===(r=this.mode)||void 0===r?void 0:r.change$)||u.E,this.appearance=null,this.disabled=!1,this.shape=this.options.shape,this.showLoader=!1,this.size=this.options.size,this.appearance$=this.mode$.pipe((0,h.O)(null),(0,d.U)((()=>this.computedAppearance)),(0,p.x)()),n.subscribe((t=>{this.updateFocusVisible(t)}))}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&(0,s.V8)(this.el.nativeElement)}get loaderSize(){return"l"===this.size||"xl"===this.size?"m":"s"}get computedAppearance(){var t;return null!==(t=this.appearance)&&void 0!==t?t:this.options.appearance||""}get nativeDisabled(){return this.computedDisabled||this.showLoader?"":null}get tabIndex(){return this.focusable?0:-1}onFocused(t){this.updateFocused(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(c.w,8),i.Y36(i.SBq),i.Y36(a.ku),i.Y36(E))},t.ɵcmp=i.Xpm({type:t,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(t,e){1&t&&i.NdJ("focusin",(function(){return e.onFocused(!0)}))("focusout",(function(){return e.onFocused(!1)})),2&t&&(i.Ikx("tabIndex",e.tabIndex),i.uIk("data-shape",e.shape)("data-size",e.size)("data-appearance",e.computedAppearance)("disabled",e.nativeDisabled),i.ekj("_loading",e.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[i._Bn([(0,l.FT)(t),a.a3,a.ku]),i.qOj],attrs:b,ngContentSelectors:P,decls:8,vars:11,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"active","appearance","disabled","focus","hover"],[1,"t-content"],["class","t-left",4,"ngIf"],["class","t-right",4,"ngIf"],["class","t-loader",3,"inheritColor","size",4,"ngIf"],[1,"t-left"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],[1,"t-right"],[1,"t-loader",3,"inheritColor","size"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,w,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"div",1),i.TgZ(3,"span",2),i.YNc(4,x,2,1,"span",3),i.Hsn(5),i.YNc(6,k,2,1,"span",4),i.qZA(),i.YNc(7,M,1,2,"tui-loader",5),i.qZA()),2&t&&(i.Q6J("ngIf",i.lcZ(1,9,e.appearance$)),i.xp6(2),i.Q6J("active",e.pseudoActive)("appearance",e.computedAppearance)("disabled",e.computedDisabled)("focus",e.computedFocusVisible)("hover",e.pseudoHover),i.xp6(2),i.Q6J("ngIf",e.icon),i.xp6(2),i.Q6J("ngIf",e.iconRight),i.xp6(1),i.Q6J("ngIf",e.showLoader))},directives:[v.O5,_.o,y.Li,g.PN,m.kM],pipes:[v.Ov],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:inline-block;flex-shrink:0;vertical-align:top;border-radius:var(--tui-radius-m);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-decoration:none;outline:none;color:inherit}[data-shape=rounded][_nghost-%COMP%]{border-radius:6.25rem}[data-size=xs][_nghost-%COMP%]{height:var(--tui-height-xs);font-weight:normal}[data-size=xs][data-shape=square][_nghost-%COMP%], [data-size=xs][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-xs)}[data-size=s][_nghost-%COMP%]{height:var(--tui-height-s);font-weight:normal}[data-size=s][data-shape=square][_nghost-%COMP%], [data-size=s][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{height:var(--tui-height-m);font:var(--tui-font-text-m);font-weight:bold}[data-size=m][data-shape=square][_nghost-%COMP%], [data-size=m][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:bold}[data-size=l][data-shape=square][_nghost-%COMP%], [data-size=l][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-l)}[data-size=xl][_nghost-%COMP%]{height:3.75rem;font:var(--tui-font-text-m);font-weight:bold}[data-size=xl][data-shape=square][_nghost-%COMP%], [data-size=xl][tuiIconButton][_nghost-%COMP%]{width:3.75rem}[tuiIconButton][_nghost-%COMP%]{font-size:0!important}[tuiIconButton][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0!important}.t-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:default}.t-left[_ngcontent-%COMP%]{margin-right:.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.375rem}[data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.25rem}.t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .25rem}[data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .375rem}[data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.125rem 0 .25rem}.t-icon[_ngcontent-%COMP%]{display:flex;max-width:100%;max-height:100%;align-items:center;justify-content:center}.t-left[_ngcontent-%COMP%], .t-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1rem;height:1rem}[tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;z-index:0;box-sizing:border-box;cursor:pointer}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .375rem)}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-width:1px}[data-size=s][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .75rem)}[data-size=m][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 1.5rem)}[data-size=l][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.25rem)}[data-size=xl][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.5rem)}[data-shape=square][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;text-align:center}._loading[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{opacity:0}"],changeDetection:0}),t})(),I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[v.ez,y.wq,_.W,g.EI,m.dS]]}),t})()},75111:(t,e,n)=>{n.d(e,{qi:()=>E,gX:()=>A,pc:()=>I,Rs:()=>T,vK:()=>S});var i=n(97582),r=n(74788),o=n(57179),s=n(33770),a=n(66749),l=n(11927),c=n(64493),u=n(44358),h=n(79588),d=n(79456),p=n(88002),f=n(98952),g=n(30126),m=n(54789),v=n(89570),_=n(12057);const y=["tuiOption",""];function b(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t,"\n")}}function w(t,e){if(1&t&&r._UZ(0,"tui-svg",3),2&t){const t=r.oxw(2);r.Q6J("src",t.icons.more)}}function C(t,e){if(1&t&&(r.Hsn(0),r.YNc(1,w,1,1,"tui-svg",2)),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",t.dropdown)}}const x=function(t){return{$implicit:t}},O=["*"];function k(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t," ")}}function M(t,e){if(1&t&&(r.TgZ(0,"div",2),r.YNc(1,k,2,1,"ng-container",3),r.ALo(2,"async"),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.emptyContent||r.lcZ(2,1,t.defaultEmptyContent$))}}function P({currentTarget:t}){return!(0,o.V8)(t)}let S=(()=>{class t{constructor(t,e,n,i,r,o){this.content=t,this.dataList=e,this.el=n,this.host=i,this.dropdown=r,this.icons=o,this.size=null,this.role="option",this.disabled=!1}get active(){return!!this.dropdown&&!!this.dropdown.dropdownBoxRef}onClick(){this.host&&void 0!==this.value&&this.host.handleOption(this.value)}onMouseMove({currentTarget:t}){t.focus({preventScroll:!0})}ngOnDestroy(){var t;null===(t=this.dataList)||void 0===t||t.handleFocusLossIfNecessary(this.el.nativeElement)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(d.IQ,8),r.Y36((0,r.Gpc)((()=>E)),8),r.Y36(r.SBq),r.Y36(d.N1,8),r.Y36(f.td,10),r.Y36(d.Gs))},t.ɵcmp=r.Xpm({type:t,selectors:[["button","tuiOption",""],["a","tuiOption",""]],hostAttrs:["tabIndex","-1","type","button"],hostVars:5,hostBindings:function(t,e){1&t&&r.NdJ("click",(function(){return e.onClick()}))("mousemove.silent",(function(t){return e.onMouseMove(t)})),2&t&&(r.uIk("disabled",e.disabled||null)("data-size",e.size)("role",e.role),r.ekj("_with-dropdown",e.active))},inputs:{size:"size",role:"role",disabled:"disabled",value:"value"},attrs:y,ngContentSelectors:O,decls:3,vars:4,consts:[[4,"polymorpheusOutlet","polymorpheusOutletContext"],["base",""],["class","t-arrow",3,"src",4,"ngIf"],[1,"t-arrow",3,"src"]],template:function(t,e){if(1&t&&(r.F$t(),r.YNc(0,b,2,1,"ng-container",0),r.YNc(1,C,2,1,"ng-template",null,1,r.W1O)),2&t){const t=r.MAs(2);r.Q6J("polymorpheusOutlet",e.content||t)("polymorpheusOutletContext",r.VKq(2,x,t))}},directives:[v.Li,_.O5,m.PN],styles:['[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;justify-content:space-between;text-align:left;color:var(--tui-text-01);border-radius:var(--tui-radius-s);outline:none;text-decoration:none;cursor:pointer;background-clip:padding-box}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[_nghost-%COMP%]:focus, ._with-dropdown[_nghost-%COMP%]{background-color:var(--tui-clear)}[_nghost-%COMP%] [data-list-size="s"][_nghost-%COMP%], [data-list-size="s"] [_nghost-%COMP%], [_nghost-%COMP%] [data-list-size="xs"][_nghost-%COMP%], [data-list-size="xs"] [_nghost-%COMP%], [data-size=s][data-size=s][_nghost-%COMP%], [data-size=xs][data-size=xs][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}[_nghost-%COMP%] [data-list-size="m"][_nghost-%COMP%], [data-list-size="m"] [_nghost-%COMP%], [data-size=m][data-size=m][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}[_nghost-%COMP%] [data-list-size="l"][_nghost-%COMP%], [data-list-size="l"] [_nghost-%COMP%], [data-size=l][data-size=l][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}.t-arrow[_ngcontent-%COMP%]{margin:0 -.5rem 0 .75rem}'],changeDetection:0}),(0,i.gn)([(0,g.uX)(P)],t.prototype,"onMouseMove",null),t})(),E=(()=>{class t{constructor(t,e,n){var i;this.controller=t,this.el=e,this.defaultEmptyContent$=n,this.options=s.Mm,this.role="listbox",this.size=(null===(i=this.controller)||void 0===i?void 0:i.size)||"m"}get empty$(){return(0,a.ll)(this.options).pipe((0,p.U)((({length:t})=>!t)))}onFocusIn(t,e){e.contains(t)||this.origin||(this.origin=t)}noop(){}onKeyDownArrow(t,e){const{elements:n}=this;(0,o.VR)(n.indexOf(t),n,e)}handleFocusLossIfNecessary(t=this.el.nativeElement){this.origin&&(0,o.zb)(t)&&(0,o.Pg)(this.origin,!0,!0)}getOptions(t=!1){return this.options.filter((({disabled:e})=>t||!e)).map((({value:t})=>t)).filter(l.Pc)}onFocus({target:t},e){if(!(0,c.ve)(t))return;const{elements:n}=this;(0,o.VR)(e?-1:n.length,n,e?1:-1),this.handleFocusLossIfNecessary(t)}get elements(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiOption]"))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(h.Cs,8),r.Y36(r.SBq),r.Y36(d.PH))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-data-list"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,S,5),2&t){let t;r.iGM(t=r.CRH())&&(e.options=t)}},hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("focusin",(function(t){return e.onFocusIn(t.relatedTarget,t.currentTarget)}))("mousedown.prevent",(function(){return e.noop()}))("keydown.arrowDown.prevent",(function(t){return e.onKeyDownArrow(t.target,1)}))("keydown.arrowUp.prevent",(function(t){return e.onKeyDownArrow(t.target,-1)}))("wheel.silent.passive",(function(){return e.handleFocusLossIfNecessary()}))("mouseleave",(function(t){return e.handleFocusLossIfNecessary(t.target)})),2&t&&r.uIk("role",e.role)("data-list-size",e.size)},inputs:{role:"role",emptyContent:"emptyContent",size:"size"},features:[r._Bn([(0,d.RB)(t),h.Y0])],ngContentSelectors:O,decls:5,vars:3,consts:[["tabindex","0",1,"t-trap",3,"focusin"],["class","t-empty",4,"ngIf"],[1,"t-empty"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.NdJ("focusin",(function(t){return e.onFocus(t,!0)})),r.qZA(),r.Hsn(1),r.YNc(2,M,3,3,"div",1),r.ALo(3,"async"),r.TgZ(4,"div",0),r.NdJ("focusin",(function(t){return e.onFocus(t,!1)})),r.qZA()),2&t&&(r.xp6(2),r.Q6J("ngIf",r.lcZ(3,1,e.empty$)))},directives:[_.O5,v.Li],pipes:[_.Ov],styles:['tui-data-list{--tui-data-list-padding: .25rem;--tui-data-list-margin: .0625rem;display:flex;font:var(--tui-font-text-m);flex-direction:column;padding:calc(var(--tui-data-list-padding) - var(--tui-data-list-margin)) var(--tui-data-list-padding);color:var(--tui-text-03)}tui-data-list:focus-within .t-trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list[data-list-size=s]{--tui-data-list-margin: 0rem}tui-data-list[data-list-size=s]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}tui-data-list[data-list-size=m]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}tui-data-list[data-list-size=l]{--tui-data-list-padding: .375rem;--tui-data-list-margin: .125rem}tui-data-list[data-list-size=l]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}tui-opt-group{position:relative;display:flex;font:var(--tui-font-text-xs);color:var(--tui-text-02);flex-direction:column;line-height:1rem}tui-data-list[data-list-size=l] tui-opt-group{font:var(--tui-font-text-s);line-height:1.25rem}tui-data-list[data-list-size=l] tui-opt-group:before{padding-left:.625rem;padding-right:.625rem}tui-data-list[data-list-size=l] tui-opt-group:after{left:.625rem;right:.625rem}tui-opt-group:empty:before,tui-opt-group:empty:after{display:none}tui-opt-group:before{content:attr(data-label);padding:var(--tui-data-list-padding) .5rem var(--tui-data-list-padding);margin:var(--tui-data-list-margin) 0;white-space:normal;word-break:break-word}tui-opt-group:after{position:absolute;left:.5rem;right:.5rem;top:var(--tui-data-list-padding);height:1px;background:var(--tui-base-03)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:calc(.75rem + var(--tui-data-list-padding))}tui-opt-group:not(:empty)~tui-opt-group[data-label=""]:before{padding:var(--tui-data-list-padding) 0}tui-opt-group:not(:empty)~tui-opt-group:after{content:""}tui-opt-group[data-label=""]:before{padding:0;margin:0}\n'],encapsulation:2,changeDetection:0}),(0,i.gn)([u.UM],t.prototype,"empty$",null),t})(),A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})(),T=(()=>{class t{constructor(){this.label=""}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t,selectors:[["tui-opt-group"]],hostAttrs:["role","group"],hostVars:1,hostBindings:function(t,e){2&t&&r.uIk("data-label",e.label)},inputs:{label:"label"}}),t})(),I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[_.ez,m.EI,v.wq]]}),t})()},20707:(t,e,n)=>{n.d(e,{up:()=>V});var i=n(74788),r=n(37801),o=n(11927),s=n(66749),a=n(64493),l=n(33770),c=n(99434),u=n(27103),h=n(76480),d=n(49941),p=n(79456),f=n(89570),g=n(59193),m=n(29856),v=n(66682),_=n(79765),y=n(95639),b=n(25917),w=n(45435),C=n(43190),x=n(15257),O=n(88002),k=n(46782),M=n(12057),P=n(62579),S=n(47766),E=n(12628);function A(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function T(t,e){if(1&t&&(i.TgZ(0,"header",6),i.YNc(1,A,2,1,"ng-container",3),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.header)("polymorpheusOutletContext",t.context)}}function I(t,e){if(1&t){const t=i.EpF();i.ynx(0),i._UZ(1,"div",7),i.TgZ(2,"div",8),i.TgZ(3,"button",9),i.NdJ("click",(function(){return i.CHM(t),i.oxw().context.$implicit.complete()})),i._uU(4),i.qZA(),i.qZA(),i.BQk()}if(2&t){const t=e.polymorpheusOutlet,n=i.oxw();let r;i.xp6(1),i.Q6J("innerHTML",t,i.oJD),i.xp6(3),i.hij(" ",(null==(r=n.context.data)?null:r.button)||"OK"," ")}}function D(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",10),i.TgZ(1,"button",11),i.NdJ("click",(function(){return i.CHM(t),i.oxw().close$.next()}))("mousedown.prevent.silent",(function(){return 0})),i.ALo(2,"async"),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("appearance",t.fullscreen?"secondary":"")("icon",t.icons.close)("title",i.lcZ(2,3,t.closeWord$))}}const L=(0,o.JN)(g.E),N=(0,o.JN)({size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""});let z=(()=>{class t extends m.y{constructor(t,e,n){super((t=>(0,v.T)(this.esc$,this.mousedown$).subscribe(t))),this.win=t,this.doc=e,this.el=n,this.esc$=(0,s.mL)(this.doc,"keydown").pipe((0,w.h)((t=>{const e=(0,a.mA)(t);return"Escape"===t.key&&(this.element.contains(e)||this.isOutside(e))}))),this.mousedown$=(0,s.mL)(this.doc,"mousedown").pipe((0,w.h)((t=>(0,S.ic)(this.win)-t.clientX>17&&this.isOutside((0,a.mA)(t)))),(0,C.w)((()=>(0,s.mL)(this.doc,"mouseup").pipe((0,x.q)(1),(0,O.U)(a.mA),(0,w.h)((t=>this.isOutside(t)))))))}get element(){return this.el.nativeElement}isOutside(t){return(0,a.ve)(t)&&(!(0,a.PP)(this.element,t)||t===this.element)}}return t.ɵfac=function(e){return new(e||t)(i.LFG(P.m9),i.LFG(M.K0),i.LFG(i.SBq))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})();const F=new Error("Required dialog was dismissed");let R=(()=>{class t{constructor(t,e,n,i,r,o,s,a){this.duration=t,this.isMobile=e,this.context=n,this.closeWord$=s,this.icons=a,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},this.close$=new _.xQ,(0,v.T)(this.close$.pipe((0,C.w)((()=>B(n.closeable)))),r.pipe((0,C.w)((()=>B(n.dismissible)))),o.pipe((0,O.U)(l.Ye))).pipe((0,w.h)(Boolean),(0,k.R)(i)).subscribe((()=>{this.close()}))}get size(){return this.context.size}get header(){return this.context.header}get slideInTop(){return this.fullscreen||this.isMobile?this.fullscreenAnimation:this.animation}get fullscreen(){return!this.isMobile&&("fullscreen"===this.size||"page"===this.size)}close(){this.context.required?this.context.$implicit.error(F):this.context.$implicit.complete()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(p.dx),i.Y36(c.fL),i.Y36(f.yf),i.Y36(u.a3,2),i.Y36(z),i.Y36(L),i.Y36(p.U0),i.Y36(p.Gs))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(t,e){2&t&&(i.uIk("data-appearance",e.context.appearance)("data-size",e.size),i.d8E("@tuiSlideInTop",e.slideInTop)("@tuiFadeIn",e.slideInTop),i.ekj("_centered",e.header))},features:[i._Bn([u.a3,z])],decls:7,vars:6,consts:[["class","t-header",4,"ngIf"],[1,"t-content"],[1,"t-heading",3,"id","textContent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-filler"],["class","t-wrapper",4,"ngIf"],[1,"t-header"],[3,"innerHTML"],[1,"t-buttons"],["size","m","tuiAutoFocus","","tuiButton","","type","button",3,"click"],[1,"t-wrapper"],["automation-id","tui-dialog__close","shape","rounded","size","s","tuiIconButton","","type","button",1,"t-close",3,"appearance","icon","title","click","mousedown.prevent.silent"]],template:function(t,e){1&t&&(i.YNc(0,T,2,2,"header",0),i.TgZ(1,"div",1),i._UZ(2,"h2",2),i.TgZ(3,"section"),i.YNc(4,I,5,2,"ng-container",3),i.qZA(),i.qZA(),i._UZ(5,"div",4),i.YNc(6,D,3,5,"div",5)),2&t&&(i.Q6J("ngIf",e.header),i.xp6(2),i.Q6J("id",e.context.id)("textContent",e.context.label),i.xp6(2),i.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context),i.xp6(2),i.Q6J("ngIf",e.context.closeable))},directives:[M.O5,f.Li,E.v0,r.k],pipes:[M.Ov],styles:['[_nghost-%COMP%]{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1rem;border:2.5rem solid transparent}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 1.125rem 1.875rem #0000007a;content:"";border-radius:inherit;pointer-events:none}[data-size=auto][_nghost-%COMP%]{width:auto}[data-size=s][_nghost-%COMP%]{width:30rem}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[data-size=s][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}[data-size=m][_nghost-%COMP%]{width:42.5rem}[data-size=m][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.75rem;font:var(--tui-font-heading-4)}[data-size=l][_nghost-%COMP%]{width:55rem}[data-size=l][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=fullscreen][_nghost-%COMP%], [data-size=page][_nghost-%COMP%]{width:100%;min-height:100%;border-radius:0;border:none;background:var(--tui-elevation-01);box-shadow:0 4rem var(--tui-elevation-01)}[data-size=fullscreen][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:3rem calc(50vw - (45rem / 2))}[data-size=fullscreen][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0}._centered[_nghost-%COMP%]{text-align:center}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%]{min-width:100%;width:100%;max-width:100%;border-radius:0;border:none;margin:auto 0 0}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}.t-heading[_ngcontent-%COMP%]{margin:0;word-wrap:break-word;font:var(--tui-font-heading-3)}.t-heading[_ngcontent-%COMP%]:empty{display:none}.t-header[_ngcontent-%COMP%]{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}[data-size=fullscreen][_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{flex:1}.t-content[_ngcontent-%COMP%]{border-radius:inherit;padding:2rem;background:var(--tui-elevation-01)}.t-content[_ngcontent-%COMP%]:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-wrapper[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;order:-1}.t-filler[_ngcontent-%COMP%]{flex-grow:1}.t-close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:1.5rem;right:1.5rem;display:none;color:var(--tui-base-01)}.t-dialog:last-of-type[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-dialog:last-of-type [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]{animation:tuiFadeIn var(--tui-duration);background:rgba(104,104,104,.96)}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]:hover{background:rgba(159,159,159,.86)}[_nghost-%COMP%]:not([data-size="fullscreen"]).ng-animating .t-close[_ngcontent-%COMP%]{display:none}tui-root._mobile[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background:transparent!important;color:var(--tui-text-01);opacity:.5}.t-buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}'],data:{animation:[d.X9,d.QF]}}),t})();function B(t){return(0,y.b)(t)?t:(0,b.of)(t)}const j=new f.Al(R);let $=(()=>{class t extends h.d5{constructor(){super(...arguments),this.component=j,this.defaultOptions=Object.assign(Object.assign({},(0,i.f3M)(N)),{data:void 0})}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),V=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({providers:[(0,c.Q)($)],imports:[[f.wq,E.fN,M.ez,r.Q7]]}),t})()},95974:(t,e,n)=>{n.d(e,{gZ:()=>a,n6:()=>l});var i=n(74788),r=n(27103),o=n(12057);let s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-group-style"]],decls:0,vars:0,template:function(t,e){},styles:[".tui-group{position:relative;z-index:0;display:flex}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:nth-child(n){border-radius:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group_collapsed>*{z-index:1}.tui-group_collapsed>*:not(:last-child){margin-right:-1px}.tui-group_collapsed>*._readonly,.tui-group_collapsed>*._disabled,.tui-group_collapsed>*._readonly:hover,.tui-group_collapsed>*._disabled:hover{z-index:0}.tui-group_collapsed>*:hover,.tui-group_collapsed>*._hovered,.tui-group_collapsed>*._pressed{z-index:3}.tui-group_collapsed>*._invalid{z-index:2}.tui-group_collapsed>*._invalid:hover,.tui-group_collapsed>*._invalid._hovered,.tui-group_collapsed>*._invalid._pressed{z-index:4}.tui-group_collapsed>*._hosted_dropdown_focused,.tui-group_collapsed>*._focus-visible,.tui-group_collapsed>*._focused.ng-touched,.tui-group_collapsed>*._focused.ng-untouched{z-index:5}.tui-group_collapsed>*._active,.tui-group_collapsed>*[data-appearance=whiteblock-active]{z-index:6}.tui-group_collapsed>*._focus-visible._focused,.tui-group_collapsed>*._focus-visible._active,.tui-group_collapsed>*._focus-visible[data-appearance=whiteblock-active]{z-index:7}.tui-group_orientation_vertical{display:inline-flex;flex-direction:column}.tui-group_orientation_vertical>*{min-height:auto;flex:0 0 auto}.tui-group_orientation_vertical>*:not(:last-child){margin-right:0;margin-bottom:.125rem}.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin-right:0;margin-bottom:-1px}.tui-group_rounded.tui-group_orientation_horizontal>*:first-child{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_horizontal>*:last-child{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_horizontal.tui-group_radius_large>*:first-child{border-top-left-radius:var(--tui-radius-l);border-bottom-left-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_horizontal.tui-group_radius_large>*:last-child{border-top-right-radius:var(--tui-radius-l);border-bottom-right-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_vertical>*:first-child{border-top-left-radius:var(--tui-radius-m);border-top-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_vertical>*:last-child{border-bottom-left-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_vertical.tui-group_radius_large>*:first-child{border-top-left-radius:var(--tui-radius-l);border-top-right-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_vertical.tui-group_radius_large>*:last-child{border-bottom-left-radius:var(--tui-radius-l);border-bottom-right-radius:var(--tui-radius-l)}@media screen and (max-width: 47.9625em){.tui-group_rounded.tui-group_adaptive.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_horizontal>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:last-child:not(:first-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_horizontal>*:last-child:not(:first-child){border-radius:var(--tui-radius-m)}}@media screen and (max-width: 47.9625em){.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:last-child:not(:first-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>*:last-child:not(:first-child){border-radius:var(--tui-radius-l)}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_orientation_vertical{width:100%}.tui-group_adaptive.tui-group_orientation_vertical>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_vertical>*:not(:last-child){margin-bottom:1rem}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-m) var(--tui-radius-m) 0 0}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-m) var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin-bottom:-1px}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_orientation_horizontal{flex-direction:column;width:100%}.tui-group_adaptive.tui-group_orientation_horizontal>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_horizontal>*:not(:last-child){margin-right:0;margin-bottom:1rem}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-m) var(--tui-radius-m) 0 0}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-m) var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:not(:last-child){margin-right:0;margin-bottom:-1px}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-l)}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-l) var(--tui-radius-l)}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-l)}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-l) var(--tui-radius-l)}}.tui-group__auto-width-item{min-width:auto;flex:0 0 auto}.tui-group .tui-group__inherit-item{border-radius:inherit}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{constructor(t){this.orientation="horizontal",this.adaptive=!1,this.collapsed=!1,this.rounded=!0,this.size="m",t.addComponent(s)}get orientationHorizontal(){return"horizontal"===this.orientation}get orientationVertical(){return"vertical"===this.orientation}get sizeLarge(){return"l"===this.size}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.gH))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiGroup","",5,"ng-container"]],hostAttrs:["role","group",1,"tui-group"],hostVars:12,hostBindings:function(t,e){2&t&&i.ekj("tui-group_adaptive",e.adaptive)("tui-group_collapsed",e.collapsed)("tui-group_rounded",e.rounded)("tui-group_orientation_horizontal",e.orientationHorizontal)("tui-group_orientation_vertical",e.orientationVertical)("tui-group_radius_large",e.sizeLarge)},inputs:{orientation:"orientation",adaptive:"adaptive",collapsed:"collapsed",rounded:"rounded",size:"size"}}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez]]}),t})()},23917:(t,e,n)=>{n.d(e,{o1:()=>j,jh:()=>$});var i=n(74788),r=n(43631),o=n(221),s=n(66749),a=n(27103),l=n(79765),c=n(88002);let u=(()=>{class t{constructor(t,e){this.enabled$=new l.xQ;const n=e.pipe((0,c.U)((e=>!!e&&(!t||!e.length||e.every((e=>!t.contains(e)))))));this.tuiObscured=this.enabled$.pipe((0,s.Xd)((()=>n)))}set tuiObscuredEnabled(t){this.enabled$.next(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.e,8),i.Y36(a.AQ,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[i._Bn([a.AQ,a.b0,a.a3])]}),t})(),h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var d=n(92668),p=n(57179),f=n(64493),g=n(99434),m=n(98952),v=n(45435),_=n(46782),y=n(13653),b=n(87519),w=n(26215),C=n(66682),x=n(59193),O=n(97582),k=n(66640),M=n(30126),P=n(89570),S=n(12057);const E=["wrapper"];function A(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}const T=function(t,e){return{$implicit:t,close:e}};function I(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",5,6),i.NdJ("keydown",(function(e){return i.CHM(t),i.oxw(2).onKeydown(e)})),i.YNc(2,A,2,1,"ng-container",7),i.qZA(),i._UZ(3,"div")}if(2&t){i.oxw();const t=i.MAs(1),e=i.oxw();i.xp6(2),i.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",i.WLB(2,T,t,e.close))}}function D(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1,2),i.NdJ("tuiActiveZoneChange",(function(e){return i.CHM(t),i.oxw().onActiveZone(e)}))("tuiObscured",(function(e){return i.CHM(t),i.oxw().onHostObscured(e)})),i.Hsn(2),i.YNc(3,I,4,5,"ng-template",3,4,i.W1O),i.qZA()}if(2&t){const t=e.tuiLet,n=i.MAs(4),r=i.oxw();i.Q6J("tuiDropdown",n)("tuiDropdownManual",t&&r.canOpen)("tuiDropdownSided",r.sided)("tuiObscuredEnabled",t),i.xp6(3),i.Q6J("polymorpheus",r.context)}}const L=["*"];let N=(()=>{class t extends r.uG{constructor(){super(...arguments),this.type="dummy"}getPosition(){return[0,0]}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiAccessorProxy",""]],features:[i._Bn([{provide:r.uG,multi:!0,deps:[[new i.FiY,new i.tp0,t],t],useFactory:(t,e)=>t||e}]),i.qOj]}),t})();const z=new i.OlP("[TUI_HOSTED_DROPDOWN_COMPONENT]");let F=(()=>{class t{constructor(t,e,n,i){null==i||i.tuiDropdownOpenChange.pipe((0,v.h)((t=>t&&i.dropdown===n&&!e.focused)),(0,_.R)(t)).subscribe((()=>{var t;null===(t=e.nativeFocusableElement)||void 0===t||t.focus(),e.updateOpen(!0)}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(a.a3,2),i.Y36(z),i.Y36(m.td,2),i.Y36(m.oH,8))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdownOpenMonitor",""]],features:[i._Bn([a.a3])]}),t})(),R=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();function B(t){var e;return"key"in t&&"escape"===t.key.toLowerCase()&&this.canOpen&&this.open&&!(null===(e=this.dropdown)||void 0===e?void 0:e.nextElementSibling)}let j=(()=>{class t{constructor(t,e){this.hover$=t,this.el=e,this.openChange=new w.X(!1),this.sided=!1,this.canOpen=!0,this.open$=(0,C.T)(this.openChange,this.hover$||x.E).pipe((0,y.T)(1),(0,b.x)()),this.focusedChange=new i.vpe,this.close=()=>this.updateOpen(!1)}set open(t){this.openChange.next(t)}get open(){return this.openChange.value}get host(){var t;return(null===(t=this.dropdownHost)||void 0===t?void 0:t.nativeElement)||this.el.nativeElement}get computedHost(){var t;return(null===(t=this.dropdownHost)||void 0===t?void 0:t.nativeElement)||this.nativeFocusableElement||this.el.nativeElement}get dropdown(){var t,e;return null===(e=null===(t=this.dropdownDirective)||void 0===t?void 0:t.dropdownBoxRef)||void 0===e?void 0:e.location.nativeElement}get nativeFocusableElement(){return(0,p.dT)(this.host)?this.host:(0,p.BW)({initial:this.host,root:this.el.nativeElement})}get focused(){return(0,p.zb)(this.host)||this.open&&!!this.wrapper&&(0,p.zb)(this.wrapper.nativeElement)}onFocusIn(t){this.computedHost.contains(t)||this.updateOpen(!1)}onClick(t){var e;this.hostEditable||!this.computedHost.contains(t)||(null===(e=this.hover$)||void 0===e?void 0:e.hovered)||this.updateOpen(!this.open)}onKeyDownEsc(t){t.stopPropagation(),this.closeDropdown()}onArrow(t,e){this.focusDropdown(t,e)}onKeydown({key:t,target:e,defaultPrevented:n}){!n&&(0,k.kL)(t)&&this.hostEditable&&(0,f.dW)(e)&&!(0,f.Hn)(e)&&this.focusHost()}onActiveZone(t){this.updateFocused(t),t||this.updateOpen(!1)}onHostObscured(t){t&&this.closeDropdown()}updateOpen(t){t&&!this.canOpen||(this.open=t)}get hostEditable(){return(0,f.Hn)(this.computedHost)}focusDropdown(t,e){const n=this.nativeFocusableElement;if(!(n&&(0,f.dW)(n)&&(0,f.ve)(t.target)&&n.contains(t.target)))return;if(!(this.wrapper&&this.open&&this.dropdown&&(0,f.dW)(this.wrapper.nativeElement.nextElementSibling)))return this.updateOpen(!0),void((0,f.Hn)(n)||t.preventDefault());const i=e?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,r=(0,p.BW)({initial:i,root:this.wrapper.nativeElement,previous:!e});r&&(r.focus(),t.preventDefault())}closeDropdown(){this.focused&&this.focusHost(),this.updateOpen(!1)}focusHost(){const t=this.nativeFocusableElement;t&&t.focus({preventScroll:!0})}updateFocused(t){this.focusedChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(m.E$,10),i.Y36(i.SBq))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-hosted-dropdown"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,R,5,i.SBq),2&t){let t;i.iGM(t=i.CRH())&&(e.dropdownHost=t.first)}},viewQuery:function(t,e){if(1&t&&(i.Gf(E,5,i.SBq),i.Gf(m.td,5),i.Gf(o.e,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.wrapper=t.first),i.iGM(t=i.CRH())&&(e.dropdownDirective=t.first),i.iGM(t=i.CRH())&&(e.activeZone=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("focusin",(function(t){return e.onFocusIn(t.target)}))("click",(function(t){return e.onClick(t.target)}))("keydown.silent",(function(t){return e.onKeyDownEsc(t)}),!1,i.evT)("keydown.arrowDown",(function(t){return e.onArrow(t,!0)}))("keydown.arrowUp",(function(t){return e.onArrow(t,!1)})),2&t&&i.ekj("_hosted_dropdown_focused",e.focused)},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[i._Bn([(0,g.FT)(t),{provide:N,deps:[[new i.FiY,new i.PiD,r.uG]],useFactory:t=>null==t?void 0:t[0]},{provide:z,useExisting:t}])],ngContentSelectors:L,decls:2,vars:3,consts:[["tuiAccessorProxy","","tuiDropdownOpenMonitor","","class","t-wrapper",3,"tuiDropdown","tuiDropdownManual","tuiDropdownSided","tuiObscuredEnabled","tuiActiveZoneChange","tuiObscured",4,"tuiLet"],["tuiAccessorProxy","","tuiDropdownOpenMonitor","",1,"t-wrapper",3,"tuiDropdown","tuiDropdownManual","tuiDropdownSided","tuiObscuredEnabled","tuiActiveZoneChange","tuiObscured"],["activeZone","tuiActiveZone"],[3,"polymorpheus"],["dropdown","polymorpheus"],[1,"t-dropdown",3,"keydown"],["wrapper",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){if(1&t&&(i.F$t(),i.YNc(0,D,5,5,"div",0),i.ALo(1,"async")),2&t){let t;i.Q6J("tuiLet",null!==(t=i.lcZ(1,1,e.open$))&&void 0!==t?t:e.openChange.value)}},directives:[d.Ls,N,F,m.td,m.VC,m.Tp,m.Cw,o.e,u,P.GL,P.Li],pipes:[S.Ov],styles:["[_nghost-%COMP%]{display:inline-flex}.t-wrapper[_ngcontent-%COMP%]{border-radius:inherit;height:inherit;flex:1 1 auto;width:100%}.t-dropdown[_ngcontent-%COMP%]{height:100%}"],changeDetection:0}),(0,O.gn)([(0,M.uX)(B)],t.prototype,"onKeyDownEsc",null),t})(),$=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[S.ez,P.wq,d.WD,h,o.A,m.dp]]}),t})()},82847:(t,e,n)=>{n.d(e,{V:()=>y,j:()=>b});var i=n(74788),r=n(66749),o=n(33770),s=n(57179),a=n(27103),l=n(99434),c=n(12130),u=n(79456),h=n(66682),d=n(88002),p=n(54789),f=n(12057);const g=["tuiLink",""];function m(t,e){if(1&t&&i._UZ(0,"tui-svg",3),2&t){const t=i.oxw();i.Q6J("src",t.icon||"")}}function v(t,e){if(1&t&&i._UZ(0,"tui-svg",4),2&t){const t=i.oxw();i.Q6J("src",t.icon||"")}}const _=["*"];let y=(()=>{class t{constructor(t,e,n){this.el=t,this.mode$=e,this.pseudo=!1,this.icon="",this.iconAlign="right",this.iconRotated=!1,this.mode=null,this.focusVisible=!1,this.focusedChange=(0,h.T)((0,r.mL)(this.el.nativeElement,"focusin").pipe((0,d.U)(o.Ye)),(0,r.mL)(this.el.nativeElement,"focusout").pipe((0,d.U)(o.Iy))),n.subscribe((t=>{this.focusVisible=t}))}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return(0,s.V8)(this.nativeFocusableElement)}get hasIcon(){return!!this.icon}get iconAlignLeft(){return this.hasIcon&&"left"===this.iconAlign}get iconAlignRight(){return this.hasIcon&&"right"===this.iconAlign}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(u.Au),i.Y36(a.ku))},t.ɵcmp=i.Xpm({type:t,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(i.uIk("data-host-mode",e.mode),i.ekj("_pseudo",e.pseudo)("_icon-rotated",e.iconRotated)("_focus-visible",e.focusVisible))},inputs:{pseudo:"pseudo",icon:"icon",iconAlign:"iconAlign",iconRotated:"iconRotated",mode:"mode"},exportAs:["tuiLink"],features:[i._Bn([(0,l.FT)(t),a.ku,a.a3,c.CV])],attrs:g,ngContentSelectors:_,decls:4,vars:2,consts:[["class","t-icon t-icon_left",3,"src",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_right",3,"src",4,"ngIf"],[1,"t-icon","t-icon_left",3,"src"],[1,"t-icon","t-icon_right",3,"src"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,m,1,1,"tui-svg",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,v,1,1,"tui-svg",2)),2&t&&(i.Q6J("ngIf",e.iconAlignLeft),i.xp6(3),i.Q6J("ngIf",e.iconAlignRight))},directives:[f.O5,p.PN],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);text-decoration:none;text-align:left;text-transform:inherit;font-weight:inherit;cursor:pointer;outline:none}[_nghost-%COMP%]:hover{color:var(--tui-link-hover)}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}[data-mode=onLight][_nghost-%COMP%]:hover, [data-mode=onLight]._active[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(0,0,0,.48);text-decoration-color:#0000007a}[data-mode=onLight]._pseudo[_nghost-%COMP%]:hover, [data-mode=onLight]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative-night)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:hover, [data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:active, [data-mode=onLight][data-host-mode=negative]._active[_nghost-%COMP%]{color:var(--tui-negative-night-hover)}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%]:hover, [data-mode=onDark][_nghost-%COMP%]:active, [data-mode=onDark]._active[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(255,255,255,.48);text-decoration-color:#ffffff7a}[data-mode=onDark]._pseudo[_nghost-%COMP%]:hover, [data-mode=onDark]._pseudo[_nghost-%COMP%]:active, [data-mode=onDark]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:hover, [data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:active, [data-mode=onDark][data-host-mode=positive]._active[_nghost-%COMP%]{color:var(--tui-positive-night-hover)}[data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative)}[data-host-mode=negative][_nghost-%COMP%]:hover{color:var(--tui-negative-hover)}[data-host-mode=negative]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(222,76,30,.48);text-decoration-color:#de4c1e7a}[data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive)}[data-host-mode=positive][_nghost-%COMP%]:hover{color:var(--tui-positive-hover)}[data-host-mode=positive]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(58,169,129,.48);text-decoration-color:#3aa9817a}._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-selection)}[data-mode=onLight]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear);color:var(--tui-text-01)}[data-mode=onDark]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear-inverse);color:var(--tui-text-01-night)}[data-host-mode=positive]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-success-bg)}[data-host-mode=negative]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-error-bg)}._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding-bottom:.15em;-webkit-text-decoration:underline dashed rgba(51,111,238,.48);text-decoration:underline dashed rgba(51,111,238,.48);text-underline-offset:.2em;text-decoration-thickness:.7px}.t-icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:var(--tui-link-icon-size, 1.5rem);height:var(--tui-link-icon-size, 1.5rem);margin-top:-.125rem}.t-icon_left[_ngcontent-%COMP%]{margin-right:.25rem}.t-icon_right[_ngcontent-%COMP%]{margin-left:.25rem}._icon-rotated[_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),t})(),b=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[f.ez,p.EI]]}),t})()},40719:(t,e,n)=>{n.d(e,{kM:()=>m,dS:()=>v});var i=n(12057),r=n(74788),o=n(11927),s=n(41213),a=n(57179),l=n(99434),c=n(66640),u=n(89570);function h(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t," ")}}function d(t,e){if(1&t&&(r.O4$(),r.kcU(),r.TgZ(0,"div",6),r.YNc(1,h,2,1,"ng-container",7),r.qZA()),2&t){const t=r.oxw(2);r.ekj("t-text_horizontal",t.isHorizontal),r.xp6(1),r.Q6J("polymorpheusOutlet",t.textContent)}}function p(t,e){if(1&t&&(r.TgZ(0,"div",2),r.O4$(),r.TgZ(1,"svg",3),r._UZ(2,"circle",4),r.qZA(),r.YNc(3,d,2,3,"div",5),r.qZA()),2&t){const t=r.oxw();r.ekj("t-loader_horizontal",t.isHorizontal)("t-loader_inherit-color",t.inheritColor),r.uIk("data-size",t.size),r.xp6(3),r.Q6J("ngIf",t.hasText)}}const f=["*"],g=(0,o.JN)({size:"m",inheritColor:!1,overlay:!1});let m=(()=>{class t{constructor(t,e,n,i){this.doc=t,this.el=e,this.isIos=n,this.options=i,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay,this.loading=!0,this.isApple=(0,s.Ex)(this.el.nativeElement)||this.isIos}set showLoader(t){t&&this.focused&&(0,a.hp)(this.doc),this.loading=t}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!(0,c.R9)(this.size)}get focused(){return(0,a.zb)(this.el.nativeElement)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.K0),r.Y36(r.SBq),r.Y36(l.FA),r.Y36(g))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-loader"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("_loading",e.loading)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:f,decls:3,vars:6,consts:[[1,"t-content",3,"disabled"],["class","t-loader",3,"t-loader_horizontal","t-loader_inherit-color",4,"ngIf"],[1,"t-loader"],["automation-id","tui-loader__loader","focusable","false","viewBox","0 0 100 100","xmlns","http://www.w3.org/2000/svg",1,"t-icon"],["cx","50","cy","50","r","50","stroke-dasharray","314",1,"t-circle"],["automation-id","tui-loader__text","class","t-text",3,"t-text_horizontal",4,"ngIf"],["automation-id","tui-loader__text",1,"t-text"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"fieldset",0),r.Hsn(1),r.qZA(),r.YNc(2,p,4,6,"div",1)),2&t&&(r.ekj("t-content_has-overlay",e.hasOverlay)("t-content_loading",e.loading),r.Q6J("disabled",e.loading&&!e.isApple),r.xp6(2),r.Q6J("ngIf",e.loading))},directives:[i.O5,u.Li],styles:["@keyframes tuiLoaderDashOffset{0%{stroke-dashoffset:-66}50%{stroke-dashoffset:-314}to{stroke-dashoffset:-66}}@keyframes tuiLoaderRotate{0%{transform:rotate(0)}50%{transform:rotate(1turn)}to{transform:rotate(3turn)}}[_nghost-%COMP%]{position:relative;display:flex}._loading[_nghost-%COMP%]{overflow:hidden}.t-content[_ngcontent-%COMP%]{z-index:0;min-width:100%;height:100%;padding:0;margin:0;border:none}.t-content_has-overlay[_ngcontent-%COMP%]{opacity:.3}.t-content_loading[_ngcontent-%COMP%]{pointer-events:none}.t-loader[_ngcontent-%COMP%]{position:relative;left:-100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;flex-shrink:0;align-self:center;color:var(--tui-text-01);stroke:var(--tui-primary);animation:tuiFadeIn var(--tui-duration)}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-loader[data-size=xs][_ngcontent-%COMP%]{font-size:.75rem;stroke-width:38}.t-loader[data-size=s][_ngcontent-%COMP%]{font-size:1rem;stroke-width:25}.t-loader[data-size=m][_ngcontent-%COMP%]{font-size:1.5rem;stroke-width:17}.t-loader[data-size=l][_ngcontent-%COMP%]{font-size:2.5rem;stroke-width:15}.t-loader[data-size=xl][_ngcontent-%COMP%]{font-size:3.5rem;stroke-width:14}.t-loader[data-size=xxl][_ngcontent-%COMP%]{font-size:5rem;stroke-width:10}.t-text[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}.t-icon[_ngcontent-%COMP%]{display:block;min-width:1em;max-width:1em;min-height:1em;max-height:1em;margin:.25rem -.5em;border-radius:100%;overflow:hidden;transform:scaleY(-1);animation:tuiLoaderRotate 3s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}.t-circle[_ngcontent-%COMP%]{fill:none;stroke:inherit;stroke-width:inherit;animation:tuiLoaderDashOffset 3s linear infinite}"],changeDetection:0}),t})(),v=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,u.wq]]}),t})()},60885:(t,e,n)=>{n.d(e,{L:()=>g,H:()=>m});var i=n(74788),r=n(66749),o=n(79456),s=n(54789),a=n(12628),l=n(12057),c=n(89570);function u(t,e){if(1&t&&i._UZ(0,"tui-svg",4),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}const h=function(t){return{$implicit:t}};function d(t,e){if(1&t&&(i.ynx(0),i.YNc(1,u,1,1,"tui-svg",3),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",i.VKq(2,h,t.status))}}function p(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",5),i.NdJ("click",(function(){return i.CHM(t),i.oxw().close.emit()})),i.ALo(1,"async"),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("icon",t.icons.close)("title",i.lcZ(1,2,t.closeWord$))}}const f=["*"];let g=(()=>{class t{constructor(t,e,n){this.closeWord$=t,this.icons=e,this.options=n,this.hasIcon=this.options.hasIcon,this.icon=this.options.icon,this.status=this.options.status,this.size=this.options.size,this.hideClose=!1,this.close=new i.vpe}get hasClose(){return!this.hideClose&&(0,r.fw)(this.close)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.U0),i.Y36(o.Gs),i.Y36(o.Ln))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-notification"]],hostVars:2,hostBindings:function(t,e){2&t&&i.uIk("data-status",e.status)("data-size",e.size)},inputs:{hasIcon:"hasIcon",icon:"icon",status:"status",size:"size",hideClose:"hideClose"},outputs:{close:"close"},ngContentSelectors:f,decls:4,vars:2,consts:[[4,"ngIf"],[1,"t-content"],["appearance","icon","automation-id","tui-notification__close","size","xs","tuiIconButton","","type","button","class","t-close",3,"icon","title","click",4,"ngIf"],["automation-id","tui-notification__icon","class","t-icon",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-notification__icon",1,"t-icon",3,"src"],["appearance","icon","automation-id","tui-notification__close","size","xs","tuiIconButton","","type","button",1,"t-close",3,"icon","title","click"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,d,2,4,"ng-container",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,p,2,4,"button",2)),2&t&&(i.Q6J("ngIf",e.icon&&e.hasIcon),i.xp6(3),i.Q6J("ngIf",e.hasClose))},directives:[l.O5,c.Li,s.PN,a.v0],pipes:[l.Ov],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:flex;padding:.75rem 1rem;border-radius:var(--tui-radius-m);background:#fff;background:var(--tui-base-01);box-sizing:border-box;overflow:hidden}[data-size=s][_nghost-%COMP%]{padding:.375rem .625rem}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1rem;height:1.25rem;margin:0 .375rem 0 -.125rem}[data-size=s][_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{margin:-.125rem -.375rem -.125rem .75rem}[data-size=m][_nghost-%COMP%]{padding:.75rem}[data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;margin-right:.5rem}[data-size=m][_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{margin:-.125rem -.125rem -.125rem 1rem}[data-size=l][_nghost-%COMP%]{padding:1rem;font:var(--tui-font-text-m);border-radius:var(--tui-radius-l)}[data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;margin-right:.5rem}[data-status=info][_nghost-%COMP%]{color:var(--tui-info-fill);background:linear-gradient(var(--tui-info-bg),var(--tui-info-bg)),var(--tui-base-01)}[data-status=success][_nghost-%COMP%]{color:var(--tui-success-fill);background:linear-gradient(var(--tui-success-bg),var(--tui-success-bg)),var(--tui-base-01)}[data-status=error][_nghost-%COMP%]{color:var(--tui-error-fill);background:linear-gradient(var(--tui-error-bg),var(--tui-error-bg)),var(--tui-base-01)}[data-status=warning][_nghost-%COMP%]{color:var(--tui-warning-fill);background:linear-gradient(var(--tui-warning-bg),var(--tui-warning-bg)),var(--tui-base-01)}[data-status=neutral][_nghost-%COMP%]{color:var(--tui-neutral-fill);background:linear-gradient(var(--tui-neutral-bg),var(--tui-neutral-bg)),var(--tui-base-01)}.t-content[_ngcontent-%COMP%]{flex:1;word-wrap:break-word;color:var(--tui-text-01);overflow:hidden;-webkit-hyphens:auto;hyphens:auto}"],changeDetection:0}),t})(),m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[l.ez,s.EI,a.fN,c.wq]]}),t})()},52697:(t,e,n)=>{n.d(e,{yc:()=>tt,B1:()=>et,KW:()=>it,MB:()=>nt});var i=n(97582),r=n(74788),o=n(27103);let s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-autofilled-style"]],decls:0,vars:0,template:function(t,e){},styles:[".tui-autofill input,input.tui-autofill{transition:box-shadow .01s}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{constructor(t){this.autofilled=!1,this.tuiAutofilledChange=new r.vpe,t.addComponent(s)}transitionStartHandler({propertyName:t,target:e}){var n;t.includes("box-shadow")&&(null===(n=e)||void 0===n?void 0:n.matches("input"))&&(this.autofilled=!this.autofilled,this.tuiAutofilledChange.emit(this.autofilled))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(o.gH))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("transitionstart",(function(t){return e.transitionStartHandler(t)})),2&t&&r.ekj("_autofilled",e.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})();var c=n(13633),u=n(99434),h=n(76480),d=n(57179),p=n(44358),f=n(90022),g=n(79588),m=n(66640),v=n(89570),_=n(26215),y=n(22759),b=n(87874),w=n(45435),C=n(88002),x=n(87519),O=n(54789),k=n(77320),M=n(1515),P=n(12057),S=n(91489),E=n(9013),A=n(24751),T=n(43631),I=n(79456);const D=["pre"],L=["focusableElement"];function N(t,e){1&t&&r.GkF(0)}function z(t,e){1&t&&r.GkF(0)}function F(t,e){1&t&&(r.TgZ(0,"div",17),r.Hsn(1,2),r.qZA())}function R(t,e){if(1&t&&r._UZ(0,"tui-svg",20),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}const B=function(t){return{$implicit:t}};function j(t,e){if(1&t&&(r.TgZ(0,"div",18),r.YNc(1,R,1,1,"tui-svg",19),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.iconLeftContent)("polymorpheusOutletContext",r.VKq(2,B,t.size))}}function $(t,e){if(1&t&&(r.TgZ(0,"label",21),r.Hsn(1,3),r.qZA()),2&t){const t=r.oxw();r.ekj("t-placeholder_raised",t.placeholderRaised),r.Q6J("for",t.computedId)}}function V(t,e){if(1&t&&r._UZ(0,"tui-svg",24),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function U(t,e){if(1&t&&(r.TgZ(0,"div",22),r.YNc(1,V,1,1,"tui-svg",23),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.controller.customContent)}}function Y(t,e){if(1&t&&r._UZ(0,"tui-svg",27),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function q(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"span",25),r.NdJ("click.stop",(function(){return r.CHM(t),r.oxw().clear()})),r.YNc(1,Y,1,1,"tui-svg",26),r.qZA()}if(2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.iconCleaner||t.controller.options.iconCleaner)("polymorpheusOutletContext",r.VKq(2,B,t.size))}}function H(t,e){if(1&t&&r._UZ(0,"tui-tooltip",28),2&t){const t=r.oxw();r.Q6J("content",null==t.hintOptions?null:t.hintOptions.content)("describeId",t.computedId)}}function Z(t,e){if(1&t&&r._UZ(0,"tui-svg",20),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function G(t,e){if(1&t&&(r.TgZ(0,"div",29),r.YNc(1,Z,1,1,"tui-svg",19),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.iconContent)("polymorpheusOutletContext",r.VKq(2,B,t.size))}}const J=[[["input"]],[["select"]],[["tuiContent"]],"*"],X=["input","select","tuiContent","*"],Q=["tuiTextfield",""];let W=(()=>{class t{constructor(t){this.textfield=t,this.prefix$=new _.X(""),this.pre$=this.prefix$.pipe((0,b.g)(0),(0,w.h)((()=>{var t;return!!(null===(t=this.pre)||void 0===t?void 0:t.nativeElement.isConnected)})),(0,C.U)((()=>{var t;return(null===(t=this.pre)||void 0===t?void 0:t.nativeElement.offsetWidth)||0})),(0,x.x)())}get isContextTable(){return this.textfield.appearance===k.Nm.Table}get value(){return this.textfield.value}get filler(){const{focused:t,placeholder:e,exampleText:n,value:i,textfield:r}=this;return e&&n?"":t?n||r.filler.slice(i.length):""}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}ngDoCheck(){this.prefix$.next(this.prefix)}get placeholder(){var t;return(null===(t=this.textfield.nativeFocusableElement)||void 0===t?void 0:t.placeholder)||""}get exampleText(){return!this.value&&this.focused?this.placeholder:""}get decorationsVisible(){return!!this.value||this.focused&&!this.placeholder}get focused(){return this.textfield.computedFocused&&!this.textfield.readOnly}get computedPostfix(){return this.textfield.postfix&&(this.filler||this.value)?` ${this.textfield.postfix}`:this.textfield.postfix}}return t.ɵfac=function(e){return new(e||t)(r.Y36(u.KZ))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(t,e){if(1&t&&r.Gf(D,7,r.SBq),2&t){let t;r.iGM(t=r.CRH())&&(e.pre=t.first)}},hostVars:4,hostBindings:function(t,e){1&t&&r.NdJ("animationstart",(function(){return e.ngDoCheck()})),2&t&&r.ekj("_table",e.isContextTable)("_filler",e.filler)},decls:5,vars:4,consts:[[1,"t-prefix",3,"textContent"],["pre",""],[1,"t-ghost",3,"textContent"],[1,"t-filler",3,"textContent"],[1,"t-postfix",3,"textContent"]],template:function(t,e){1&t&&(r._UZ(0,"span",0,1),r._UZ(2,"span",2),r._UZ(3,"span",3),r._UZ(4,"span",4)),2&t&&(r.Q6J("textContent",e.prefix),r.xp6(2),r.Q6J("textContent",e.value),r.xp6(1),r.Q6J("textContent",e.filler),r.xp6(1),r.Q6J("textContent",e.postfix))},styles:['[_nghost-%COMP%]{position:absolute;display:block;width:100%;line-height:var(--tui-height);margin-top:calc(var(--tui-height) / -2);box-sizing:content-box;color:var(--tui-text-03);animation:tuiPresent 1s;white-space:nowrap}._table[_nghost-%COMP%]{position:static;margin-top:0}._filler[_nghost-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]{color:var(--tui-text-03-night)}tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]{line-height:calc(var(--tui-height) - .25rem)}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip}.t-prefix[_ngcontent-%COMP%], .t-postfix[_ngcontent-%COMP%]{white-space:pre;color:var(--tui-text-01)}tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-filler[_ngcontent-%COMP%]{max-width:100%;white-space:nowrap}']}),t})();const K={s:1.25,m:1.75,l:2.25};let tt=(()=>{class t extends h.Xn{constructor(t,e,n,i){super(),this.controller=t,this.hintOptions=e,this.options=n,this.el=i,this.editable=!0,this.textfieldFiller="",this.iconCleaner=this.options.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.textfieldPrefix="",this.textfieldPostfix="",this.value="",this.valueChange=new r.vpe,this.autofilled=!1}get prefix(){return this.textfieldPrefix||this.controller.prefix}get postfix(){return this.textfieldPostfix||this.controller.postfix}get filler(){return this.textfieldFiller||this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;const{nativeElement:t}=this.focusableElement;return t.previousElementSibling||t}get focused(){return(0,d.zb)(this.el.nativeElement)}get appearance(){return this.controller.appearance}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var t;return!!(null===(t=this.content)||void 0===t?void 0:t.length)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var t;return!!(null===(t=this.hintOptions)||void 0===t?void 0:t.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var t;const e=((null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!e}get hasPlaceholder(){return this.placeholderRaisable||this.placeholderVisible}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return(0,m._X)(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent,this.size)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconLeft}get showHint(){var t;return!!(null===(t=this.hintOptions)||void 0===t?void 0:t.content)&&(this.options.hintOnDisabled||!this.computedDisabled)}get name(){var t;return"cc-exp"===(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.autocomplete)?"ccexpiryyear":null}get computedId(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.id)||""}onFocused(t){this.updateFocused(t)}getIndent$(t){return(0,y.R)(t,"scroll").pipe((0,C.U)((()=>-1*Math.max(t.scrollLeft,0))))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(t){const{nativeFocusableElement:e}=this;e&&t.target!==e&&(t.preventDefault(),e.focus())}onModelChange(t){this.updateValue(t)}onAutofilled(t){this.updateAutofilled(t)}get iconPaddingLeft(){return K[this.size]}get placeholderRaisable(){return"s"!==this.size&&!this.controller.labelOutside}updateAutofilled(t){this.autofilled!==t&&(this.autofilled=t)}updateValue(t){this.value=t,this.valueChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(g.Cs),r.Y36(f.bZ,8),r.Y36(g.z1),r.Y36(r.SBq))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-primitive-textfield"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,v.Li,5),2&t){let t;r.iGM(t=r.CRH())&&(e.content=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(L,5),2&t){let t;r.iGM(t=r.CRH())&&(e.focusableElement=t.first)}},hostVars:15,hostBindings:function(t,e){1&t&&r.NdJ("focusin",(function(){return e.onFocused(!0)}))("focusout",(function(){return e.onFocused(!1)})),2&t&&(r.uIk("data-size",e.size),r.Udp("--border-start",e.borderStart,"rem")("--border-end",e.borderEnd,"rem"),r.ekj("_autofilled",e.autofilled)("_label-outside",e.controller.labelOutside)("_readonly",e.readOnly)("_invalid",e.computedInvalid)("_hidden",e.inputHidden))},inputs:{editable:"editable",textfieldFiller:["filler","textfieldFiller"],iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",textfieldPrefix:["prefix","textfieldPrefix"],textfieldPostfix:["postfix","textfieldPostfix"],value:"value"},outputs:{valueChange:"valueChange"},features:[r._Bn([(0,u.FT)(t),g.Y0]),r.qOj],ngContentSelectors:X,decls:24,vars:37,consts:[[4,"ngIf"],["automation-id","tui-primitive-textfield__wrapper","tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid","readOnly","click.prevent.silent","mousedown","tuiAutofilledChange"],["automation-id","tui-primitive-textfield__native-input","tuiMaskAccessor","",1,"t-input",3,"disabled","id","ngModel","readOnly","tuiFocusable","ngModelChange"],["focusableElement",""],["automation-id","tui-primitive-textfield__value","class","t-input t-input_template",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon",4,"ngIf"],[1,"t-wrapper"],["automation-id","tui-primitive-textfield__placeholder","class","t-placeholder",3,"t-placeholder_raised","for",4,"ngIf"],[1,"t-wrapper-value-decoration"],["aria-hidden","true","automation-id","tui-primitive-textfield__value-decoration",1,"t-value-decoration"],["decor",""],[1,"t-icons"],["automation-id","tui-primitive-textfield__custom-content","class","t-custom-content",4,"ngIf"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","","class","t-cleaner",3,"click.stop",4,"ngIf"],["automation-id","tui-primitive-textfield__tooltip","class","t-tooltip",3,"content","describeId",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["automation-id","tui-primitive-textfield__value",1,"t-input","t-input_template"],[1,"t-icon","t-icon_left","t-textfield-icon"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","tuiWrapper","",3,"src"],["automation-id","tui-primitive-textfield__placeholder",1,"t-placeholder",3,"for"],["automation-id","tui-primitive-textfield__custom-content",1,"t-custom-content"],["class","t-custom-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"src"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","",1,"t-cleaner",3,"click.stop"],[3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"src"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"]],template:function(t,e){if(1&t&&(r.F$t(J),r.YNc(0,N,1,0,"ng-container",0),r.ALo(1,"async"),r.YNc(2,z,1,0,"ng-container",0),r.ALo(3,"async"),r.TgZ(4,"div",1),r.NdJ("click.prevent.silent",(function(){return 0}))("mousedown",(function(t){return e.onMouseDown(t)}))("tuiAutofilledChange",(function(t){return e.onAutofilled(t)})),r.ALo(5,"async"),r.Hsn(6),r.Hsn(7,1),r.TgZ(8,"input",2,3),r.NdJ("ngModelChange",(function(t){return e.onModelChange(t)})),r.qZA(),r.YNc(10,F,2,0,"div",4),r.TgZ(11,"div",5),r.YNc(12,j,2,4,"div",6),r.TgZ(13,"div",7),r.YNc(14,$,2,3,"label",8),r.TgZ(15,"div",9),r.TgZ(16,"tui-value-decoration",10,11),r.ALo(18,"async"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(19,"div",12),r.YNc(20,U,2,1,"div",13),r.YNc(21,q,2,4,"span",14),r.YNc(22,H,1,2,"tui-tooltip",15),r.YNc(23,G,2,4,"div",16),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.MAs(9),n=r.MAs(17);r.Q6J("ngIf",r.lcZ(1,29,null==e.content?null:e.content.changes)),r.xp6(2),r.Q6J("ngIf",r.lcZ(3,31,null==e.hintOptions?null:e.hintOptions.change$)),r.xp6(2),r.Udp("--text-indent",r.lcZ(5,33,n.pre$),"px"),r.Q6J("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.disabled)("focus",e.computedFocused)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),r.xp6(4),r.Q6J("disabled",e.computedDisabled)("id",e.id)("ngModel",e.value)("readOnly",e.readOnly||!e.editable)("tuiFocusable",e.computedFocusable),r.uIk("aria-invalid",e.computedInvalid)("name",e.name),r.xp6(2),r.Q6J("ngIf",e.inputHidden),r.xp6(2),r.Q6J("ngIf",e.iconLeftContent),r.xp6(2),r.Q6J("ngIf",e.hasPlaceholder),r.xp6(2),r.Udp("text-indent",r.lcZ(18,35,e.getIndent$(t)),"px"),r.ekj("t-has-value",e.value),r.xp6(4),r.Q6J("ngIf",e.hasCustomContent),r.xp6(1),r.Q6J("ngIf",e.hasCleaner),r.xp6(1),r.Q6J("ngIf",e.showHint),r.xp6(1),r.Q6J("ngIf",e.iconContent)}},directives:[P.O5,S.o,a,E.j,A.Fj,A.JJ,A.On,c.t,W,v.Li,O.PN,M.w],pipes:[P.Ov],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;text-align:left;border-radius:var(--tui-radius-m);height:var(--tui-height);min-height:var(--tui-height);max-height:var(--tui-height)}[data-size=s][_nghost-%COMP%]{--tui-height: var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{--tui-height: var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{--tui-height: var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border:solid transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input[_ngcontent-%COMP%]::-webkit-caps-lock-indicator, .t-input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credit-card-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credentials-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder{opacity:1}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[data-size=s][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], .t-input tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], .t-input tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}.t-placeholder[_ngcontent-%COMP%]{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0)}.t-placeholder_raised[_ngcontent-%COMP%]{transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused) .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill)}._invalid[_nghost-%COMP%]:not(._focused) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._focused[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-size=l][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem}[data-size=l][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font-size:.8156rem}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}._focused[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.t-cleaner[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}._readonly[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]{pointer-events:none}.t-icon[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}[data-size=s][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-start:-.375rem;margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size="s"]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){-webkit-margin-start:.25rem;margin-inline-start:.25rem}._autofilled[data-size=s][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled[data-size=m][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled[_nghost-%COMP%] .t-value-decoration[_ngcontent-%COMP%]:not(.t-has-value){visibility:hidden}.t-custom-content[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;pointer-events:none}.t-custom-icon[_ngcontent-%COMP%]{width:2rem;height:100%}.t-input[_ngcontent-%COMP%]:not(:first-child){display:none}[data-size][_nghost-%COMP%] .t-input_template[_ngcontent-%COMP%]{display:flex;width:calc(100% - 1rem);max-width:calc(100% - 1rem);align-items:center;pointer-events:none;-webkit-padding-end:0;padding-inline-end:0}.t-text-template[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-wrapper-value-decoration[_ngcontent-%COMP%]{position:relative;pointer-events:none}'],changeDetection:0}),(0,i.gn)([p.UM],t.prototype,"getIndent$",null),t})(),et=(()=>{class t extends T.D1{constructor(t){super(t),this.textfield=t}get readOnly(){return this.textfield.readOnly||!this.textfield.editable}onValueChange(t){this.textfield.onModelChange(t)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(tt))},t.ɵdir=r.lG2({type:t,selectors:[["tui-primitive-textfield"]],features:[r._Bn([(0,I.cp)(t)]),r.qOj]}),t})(),nt=(()=>{class t{constructor(t,e,n,i,r){this.host=t,this.controller=e,this.el=n,this.idService=i,this.legacyMask=r,this.host.process(this.el.nativeElement)}get id(){return this.el.nativeElement.id||this.idService.generate()}get inputMode(){return this.el.nativeElement.inputMode||this.host.inputMode}}return t.ɵfac=function(e){return new(e||t)(r.Y36(I.S0),r.Y36(g.Cs),r.Y36(r.SBq),r.Y36(o.ll),r.Y36(I.sf,8))},t.ɵcmp=r.Xpm({type:t,selectors:[["input","tuiTextfield",""],["textarea","tuiTextfield",""]],hostAttrs:["type","text"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("input",(function(t){return!e.legacyMask&&e.host.onValueChange(t.target.value)})),2&t&&(r.Ikx("tabIndex",e.host.focusable?0:-1)("readOnly",e.host.readOnly)("value",e.host.value),r.uIk("id",e.id)("inputMode",e.inputMode)("aria-invalid",e.host.invalid)("disabled",e.host.disabled||null))},features:[r._Bn([g.Y0])],attrs:Q,decls:0,vars:0,template:function(t,e){},styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border:solid transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}[_nghost-%COMP%]::-webkit-caps-lock-indicator, [_nghost-%COMP%]::-webkit-contacts-auto-fill-button, [_nghost-%COMP%]::-webkit-credit-card-auto-fill-button, [_nghost-%COMP%]::-webkit-credentials-auto-fill-button, [_nghost-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}[_nghost-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) [_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%]::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] [_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark] [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark] [_nghost-%COMP%]:-webkit-autofill:focus, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] [_nghost-%COMP%]::placeholder, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[data-size=s][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}textarea[_nghost-%COMP%]{white-space:pre-wrap}textarea[_nghost-%COMP%] tui-textarea._ios[_nghost-%COMP%], tui-textarea._ios [_nghost-%COMP%], textarea[_nghost-%COMP%] tui-text-area._ios[_nghost-%COMP%], tui-text-area._ios [_nghost-%COMP%]{padding-left:.8125rem}'],changeDetection:0}),t})(),it=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[P.ez,A.u5,v.wq,E.c,c.u,S.W,O.EI,M.Q,l]]}),t})()},21022:(t,e,n)=>{n.d(e,{G:()=>it,W:()=>rt});var i=n(12057),r=n(74788),o=n(91211),s=n(62579),a=n(33770),l=n(27103),c=n(99434),u=n(11927),h=n(25917),d=n(9112),p=n(88002),f=n(46782),g=n(64493),m=n(57179);let v=(()=>{class t{constructor(t,e,n){this.doc=t,this.el=e,this.renderer=n,this.activeElement=(0,m.ie)(this.doc),Promise.resolve().then((()=>{this.el.nativeElement.focus()}))}onBlur(){this.renderer.removeAttribute(this.el.nativeElement,"tabIndex")}onFocusIn(t){const{nativeElement:e}=this.el;if((0,g.PP)(e,t))return;const n=(0,m.BW)({initial:e,root:e});n&&n.focus()}ngOnDestroy(){(0,m.hp)(this.doc),Promise.resolve().then((()=>{(0,g.dW)(this.activeElement)&&this.activeElement.focus()}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.K0),r.Y36(r.SBq),r.Y36(r.Qsj))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(t,e){1&t&&r.NdJ("blur",(function(){return e.onBlur()}))("focusin.silent",(function(t){return e.onFocusIn(t.target)}),!1,r.Jf7)}}),t})(),_=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})();var y=n(71486),b=n(89570),w=n(92668);function C(t,e){1&t&&r.GkF(0)}function x(t,e){if(1&t&&(r.TgZ(0,"section",2),r.YNc(1,C,1,0,"ng-container",3),r.qZA()),2&t){const t=e.$implicit;r.Q6J("@tuiParentAnimation",void 0),r.uIk("aria-labelledby",t.id),r.xp6(1),r.Q6J("polymorpheusOutlet",t.component)("polymorpheusOutletContext",t)}}function O(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",4),r.NdJ("transitionend",(function(e){const n=r.CHM(t).tuiLet,i=r.oxw();return i.onDialog(e,!!i.dialogs.length,!!n)}))("popstate",(function(){const e=r.CHM(t).tuiLet,n=r.oxw();return n.closeLast(n.dialogs,!!e)}),!1,r.Jf7),r.qZA()}if(2&t){const t=r.oxw();r.ekj("t-overlay_visible",t.dialogs.length)}}const k=(0,u.JN)((0,h.of)(!1)),M={label:"ignoreMe"};let P=(()=>{class t{constructor(t,e,n,i,r,o,s){this.isDialogClosesOnBack$=t,this.dialogsByType=e,this.historyRef=n,this.titleService=i,this.destroy$=r,this.cdr=o,this.doc=s,this.dialogs=[]}ngOnInit(){(0,d.aj)(this.dialogsByType).pipe((0,p.U)((t=>[].concat(...t).sort(((t,e)=>t.createdAt-e.createdAt)))),(0,f.R)(this.destroy$)).subscribe((t=>{this.dialogs=t,this.cdr.markForCheck(),this.doc.documentElement.classList.toggle("t-overscroll-none",!!t.length)}))}closeLast(t,e){if(!e)return;const[n]=t.slice(-1);n&&(t.length>1&&this.historyRef.pushState(M,this.titleService.getTitle()),n.$implicit.complete())}onDialog({propertyName:t},e,n){var i;n&&"letter-spacing"===t&&(e?this.historyRef.pushState(M,this.titleService.getTitle()):(null==(i=this.historyRef.state)?void 0:i.label)===M.label&&this.historyRef.back())}}return t.ɵfac=function(e){return new(e||t)(r.Y36(k),r.Y36(c.qY),r.Y36(s.UA),r.Y36(o.Dx),r.Y36(l.a3,2),r.Y36(r.sBO),r.Y36(i.K0))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-dialog-host"]],features:[r._Bn([l.a3])],decls:3,vars:4,consts:[["aria-modal","true","role","dialog","tuiFocusTrap","","tuiOverscroll","all","tuiScrollRef","","class","t-dialog",4,"ngFor","ngForOf"],["class","t-overlay",3,"t-overlay_visible","transitionend","popstate",4,"tuiLet"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiOverscroll","all","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-overlay",3,"transitionend","popstate"]],template:function(t,e){1&t&&(r.YNc(0,x,2,4,"section",0),r.YNc(1,O,1,2,"div",1),r.ALo(2,"async")),2&t&&(r.Q6J("ngForOf",e.dialogs),r.xp6(1),r.Q6J("tuiLet",r.lcZ(2,2,e.isDialogClosesOnBack$)))},directives:[i.sg,w.Ls,v,y.W,b.Li],pipes:[i.Ov],styles:["[_nghost-%COMP%]{position:fixed;left:0;bottom:0;width:100%;height:0}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:flex-start;outline:none;overflow:auto;overflow:overlay}.t-dialog[_ngcontent-%COMP%]{bottom:auto;height:100%}.t-overlay[_ngcontent-%COMP%]{height:100%;pointer-events:none;touch-action:none;opacity:0;letter-spacing:normal;transition:opacity var(--tui-duration),letter-spacing .01s;background:rgba(0,0,0,.75);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-overlay_visible[_ngcontent-%COMP%]{opacity:1;letter-spacing:1px}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}"],data:{animation:[a.Kx]}}),t})(),S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,b.wq,y.e,_,w.WD]]}),t})();var E=n(42420);function A(t,e){if(1&t&&(r.GkF(0,3),r.ALo(1,"tuiMapper")),2&t){const t=e.$implicit,n=r.oxw(2);r.Q6J("ngComponentOutlet",t.component.component)("ngComponentOutletInjector",r.xi3(1,2,t,n.mapper))}}function T(t,e){if(1&t&&(r.TgZ(0,"div",1),r.YNc(1,A,2,5,"ng-container",2),r.qZA()),2&t){const t=e.$implicit;r.Q6J("@tuiParentAnimation",void 0),r.xp6(1),r.Q6J("ngForOf",t)}}let I=(()=>{class t{constructor(t,e,n,i){this.allAlerts=t,this.injector=e,this.destroy$=n,this.cdr=i,this.alerts=[],this.trackBy=t=>t,this.mapper=t=>r.zs3.create({providers:[{provide:b.yf,useValue:t}],parent:this.injector})}ngOnInit(){(0,d.aj)(this.allAlerts).pipe((0,f.R)(this.destroy$)).subscribe((t=>{this.alerts=t,this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(c.bS),r.Y36(r.gxx),r.Y36(l.a3,2),r.Y36(r.sBO))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-alert-host"]],features:[r._Bn([l.a3])],decls:1,vars:2,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(t,e){1&t&&r.YNc(0,T,2,2,"div",0),2&t&&r.Q6J("ngForOf",e.alerts)("ngForTrackBy",e.trackBy)},directives:[i.sg,i.$G],pipes:[E.c],styles:["tui-alert-host>.t-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-wrapper>*{pointer-events:auto}\n"],encapsulation:2,data:{animation:[a.Kx]}}),t})(),D=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,E.I]]}),t})();var L=n(75122),N=n(69727),z=n(12130),F=n(79456),R=n(54395),B=n(27709),j=n(87941);function $(t,e){if(1&t&&(r.O4$(),r._UZ(0,"defs",4)),2&t){const t=e.$implicit;r.Q6J("innerHTML",t,r.oJD)}}function V(t,e){if(1&t&&(r.O4$(),r.ynx(0),r.YNc(1,$,1,1,"defs",3),r.BQk()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngForOf",t.items)}}function U(t,e){if(1&t&&(r.O4$(),r.TgZ(0,"defs"),r._UZ(1,"svg",6),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Q6J("outerHTML",t,r.oJD)}}function Y(t,e){if(1&t&&(r.O4$(),r.YNc(0,U,2,1,"defs",5)),2&t){const t=r.oxw();r.Q6J("ngForOf",t.items)}}let q=(()=>{class t{constructor(t,e,n,r){this.svgService=t,this.cdr=e,this.destroy$=n,this.isBrowser=!0,this.isBrowser=!(0,i.PM)(r)}ngOnInit(){this.svgService.items$.pipe((0,f.R)(this.destroy$)).subscribe((t=>{this.items=t.values(),this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(j.K5),r.Y36(r.sBO),r.Y36(l.a3,2),r.Y36(r.Lbi))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-svg-defs-host"]],features:[r._Bn([l.a3])],decls:4,vars:2,consts:[["version","1.1",0,"xmlns","xlink","http://www.w3.org/1999/xlink","xmlns","http://www.w3.org/2000/svg"],[4,"ngIf","ngIfElse"],["server",""],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[3,"outerHTML"]],template:function(t,e){if(1&t&&(r.O4$(),r.TgZ(0,"svg",0),r.YNc(1,V,2,1,"ng-container",1),r.YNc(2,Y,1,1,"ng-template",null,2,r.W1O),r.qZA()),2&t){const t=r.MAs(3);r.xp6(1),r.Q6J("ngIf",e.isBrowser)("ngIfElse",t)}},directives:[i.O5,i.sg],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0}),t})(),H=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,w.WD]]}),t})();var Z=n(221);function G(t,e){1&t&&r.GkF(0)}const J=function(t){return{$implicit:t}};function X(t,e){if(1&t&&(r.TgZ(0,"div",1),r.YNc(1,G,1,0,"ng-container",2),r.qZA()),2&t){const t=e.$implicit;r.Q6J("@tuiParentAnimation",void 0)("tuiActiveZoneParent",t.activeZone||null),r.xp6(1),r.Q6J("polymorpheusOutlet",t.component)("polymorpheusOutletContext",r.VKq(4,J,t))}}let Q=(()=>{class t{constructor(t,e,n){this.hints$=t,this.destroy$=e,this.cdr=n,this.hints=[]}ngOnInit(){this.hints$.pipe((0,f.R)(this.destroy$)).subscribe((t=>{this.hints=t,this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(j.BN),r.Y36(l.a3,2),r.Y36(r.sBO))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-hints-host"]],hostAttrs:["aria-live","polite"],features:[r._Bn([l.a3])],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&r.YNc(0,X,2,6,"div",0),2&t&&r.Q6J("ngForOf",e.hints)},directives:[i.sg,Z.e,b.Li],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[a.Kx]}}),t})(),W=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,b.wq,Z.A]]}),t})();var K=n(30126);function tt(t,e){1&t&&r._UZ(0,"tui-scroll-controls",2)}const et=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],nt=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];let it=(()=>{class t{constructor(t,e,n,i,r,o,{body:s},a){this.duration=t,this.dialogs=e,this.isMobile=n,this.isMobileRes$=i,this.isIOS=r,this.isAndroid=o,this.scrollbars$=this.dialogs.length&&!this.isMobile?(0,d.aj)([...this.dialogs]).pipe((0,p.U)((t=>!t.some((({length:t})=>t)))),(0,R.b)(0)):(0,h.of)(!this.isMobile),s.setAttribute("data-tui-theme",a.toLowerCase())}}return t.ɵfac=function(e){return new(e||t)(r.Y36(F.dx),r.Y36(c.qY),r.Y36(c.fL),r.Y36(F.rL),r.Y36(c.FA),r.Y36(c.XG),r.Y36(i.K0),r.Y36(F.r2))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.44.0"],hostVars:6,hostBindings:function(t,e){1&t&&r.NdJ("$.class._mobile",(function(){return e.isMobileRes$})),2&t&&(r.Udp("--tui-duration",e.duration,"ms"),r.ekj("_ios",e.isIOS)("_android",e.isAndroid))},features:[r._Bn([z.yI])],ngContentSelectors:nt,decls:14,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(t,e){1&t&&(r.F$t(et),r.YNc(0,tt,1,0,"tui-scroll-controls",0),r.ALo(1,"async"),r._UZ(2,"tui-svg-defs-host"),r.TgZ(3,"tui-dropdown-host"),r.TgZ(4,"div",1),r.Hsn(5),r.qZA(),r.Hsn(6,1),r._UZ(7,"tui-dialog-host"),r.Hsn(8,2),r._UZ(9,"tui-alert-host"),r.Hsn(10,3),r.qZA(),r.Hsn(11,4),r._UZ(12,"tui-hints-host"),r.Hsn(13,5)),2&t&&r.Q6J("ngIf",r.lcZ(1,1,e.scrollbars$))},directives:[i.O5,q,L.qY,P,I,Q,B.tZ],pipes:[i.Ov],styles:['@keyframes tuiPresent{to{content:"1"}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html,.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}body{font:var(--tui-font-text-s);color:var(--tui-text-01);background:var(--tui-base-01);margin:0}tui-root{position:relative;display:block;flex:1;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;margin:0}.t-root-content{position:relative;z-index:0;height:100%}.t-overscroll-none{overscroll-behavior:none}\n'],encapsulation:2}),t})(),rt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[i.ez,K.X1,N.N,L.mL,H,W,S,D,B.eI]]}),t})()},27709:(t,e,n)=>{n.d(e,{tZ:()=>k,eI:()=>M});var i=n(74788),r=n(62579),o=n(66749),s=n(33770),a=n(27103),l=n(92668),c=n(49941),u=n(12130),h=n(79456),d=n(88002),p=n(43190),f=n(46782),g=n(43219),m=n(39761),v=n(87519),_=n(12057),y=n(66682);function b(t,e){if(1&t&&(i.TgZ(0,"div",3),i._UZ(1,"div",4),i.qZA()),2&t){const t=i.oxw().ngIf,e=i.oxw();i.ekj("t-bar_has-horizontal",t[1]),i.Q6J("@tuiFadeIn",e.animation)}}function w(t,e){if(1&t&&(i.TgZ(0,"div",5),i._UZ(1,"div",6),i.qZA()),2&t){const t=i.oxw().ngIf,e=i.oxw();i.ekj("t-bar_has-vertical",t[0]),i.Q6J("@tuiFadeIn",e.animation)}}function C(t,e){if(1&t&&(i.ynx(0),i.YNc(1,b,2,3,"div",1),i.YNc(2,w,2,3,"div",2),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("ngIf",t[0]),i.xp6(1),i.Q6J("ngIf",t[1])}}let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollbarWrapper",""]],features:[i._Bn([{provide:h.zP,useExisting:i.SBq}])]}),t})(),O=(()=>{class t{constructor(t,e,n,i,r,a,l,c){this.wrapper=r,this.container=a,this.doc=l,this.el=c,this.tuiScrollbar="vertical";const{nativeElement:u}=this.el,h=(0,o.mL)(u,"mousedown"),m=(0,o.mL)(this.doc,"mousemove"),v=(0,o.mL)(this.doc,"mouseup"),_=(0,o.mL)(this.wrapper.nativeElement,"mousedown");(0,y.T)(_.pipe((0,o.mp)(),(0,d.U)((t=>this.getScrolled(t,.5,.5)))),h.pipe((0,o.mp)(),(0,o.vm)(),(0,p.w)((t=>{const e=u.getBoundingClientRect(),n=function({clientY:t},{top:e,height:n}){return(t-e)/n}(t,e),i=function({clientX:t},{left:e,width:n}){return(t-e)/n}(t,e);return m.pipe((0,d.U)((t=>this.getScrolled(t,n,i))),(0,f.R)(v))})))).pipe((0,o.fL)(t),(0,f.R)(n)).subscribe((([t,n])=>{"vertical"===this.tuiScrollbar?e.setProperty(this.element,"scrollTop",t):e.setProperty(this.element,"scrollLeft",n)})),(0,y.T)(i.pipe((0,g.p)(s.Yg)),(0,o.pt)(this.element)).pipe((0,o.fL)(t),(0,f.R)(n)).subscribe((()=>{"vertical"===this.tuiScrollbar?(e.setStyle(u,"top",100*this.thumb+"%"),e.setStyle(u,"height",100*this.view+"%")):(e.setStyle(u,"left",100*this.thumb+"%"),e.setStyle(u,"width",100*this.view+"%"))}))}get scrolled(){const{scrollTop:t,scrollHeight:e,clientHeight:n,scrollLeft:i,scrollWidth:r,clientWidth:o}=this.element;return"vertical"===this.tuiScrollbar?t/(e-n):i/(r-o)}get compensation(){const{clientHeight:t,scrollHeight:e,clientWidth:n,scrollWidth:i}=this.element;return t*t/e>24&&"vertical"===this.tuiScrollbar||n*n/i>24&&"horizontal"===this.tuiScrollbar?0:"vertical"===this.tuiScrollbar?24/t:24/n}get thumb(){const t=this.compensation||this.view;return this.scrolled*(1-t)}get view(){const{clientHeight:t,scrollHeight:e,clientWidth:n,scrollWidth:i}=this.element;return"vertical"===this.tuiScrollbar?Math.ceil(t/e*100)/100:Math.ceil(n/i*100)/100}get element(){return this.container.nativeElement}getScrolled({clientY:t,clientX:e},n,i){const{offsetHeight:r,offsetWidth:o}=this.el.nativeElement,{top:s,left:a,width:l,height:c}=this.wrapper.nativeElement.getBoundingClientRect();return[(this.element.scrollHeight-c)*((t-s-r*n)/(c-r)),(this.element.scrollWidth-l)*((e-a-o*i)/(l-o))]}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.R0b),i.Y36(i.Qsj),i.Y36(a.a3,2),i.Y36(r.L1),i.Y36(h.zP),i.Y36(h.$_),i.Y36(_.K0),i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[i._Bn([a.a3])]}),t})(),k=(()=>{class t{constructor(t,e,n,i,r){this.animation=t,this.zone=e,this.scrollRef=n,this.animationFrame$=i,this.mode$=r,this.refresh$=this.animationFrame$.pipe((0,g.p)(300),(0,d.U)((()=>this.scrollbars)),(0,m.O)([!1,!1]),(0,v.x)(((t,e)=>t[0]===e[0]&&t[1]===e[1])),(0,o.Yr)(this.zone))}get scrollbars(){const{clientHeight:t,scrollHeight:e,clientWidth:n,scrollWidth:i}=this.scrollRef.nativeElement;return[Math.ceil(t/e*100)<100,Math.ceil(n/i*100)<100]}}return t.ɵfac=function(e){return new(e||t)(i.Y36(h.Pw),i.Y36(i.R0b),i.Y36(h.$_),i.Y36(r.L1),i.Y36(h.Au))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-scroll-controls"]],hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$}))},features:[i._Bn([u.CV])],decls:2,vars:3,consts:[[4,"ngIf"],["tuiScrollbarWrapper","","class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["tuiScrollbarWrapper","","class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],["tuiScrollbarWrapper","",1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],["tuiScrollbarWrapper","",1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(t,e){1&t&&(i.YNc(0,C,3,2,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.refresh$))},directives:[_.O5,x,O],pipes:[_.Ov],styles:["[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;-webkit-margin-end:calc(-100% + 1px);margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{transition-property:all;transition-duration:.15s;transition-timing-function:ease-in-out;position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;background:var(--tui-text-01);background-clip:content-box;box-sizing:border-box;transition-property:width,height;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}[data-mode=onDark][_nghost-%COMP%] .t-thumb[_ngcontent-%COMP%]{background-color:var(--tui-text-01-night)}.t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{height:.875rem}"],data:{animation:[c.QF]},changeDetection:0}),t})(),M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[_.ez,l.WD]]}),t})()},80134:(t,e,n)=>{n.d(e,{IB:()=>p,Jy:()=>f});var i=n(74788),r=n(79456),o=n(62579),s=n(41213),a=n(64493),l=n(99434),c=n(27709),u=n(12057);function h(t,e){1&t&&i._UZ(0,"tui-scroll-controls")}const d=["*"];let p=(()=>{class t{constructor(t,e,n,r){this.cssRef=t,this.el=e,this.userAgent=n,this.isIos=r,this.delegated=!1,this.isLegacy=!this.cssRef.supports("position","sticky")||(0,s.oK)(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new i.SBq(this.el.nativeElement)}get showScrollbars(){return!this.hidden&&!this.isIos&&(!this.isLegacy||this.delegated)}get showNative(){return this.isLegacy&&!this.hidden&&!this.delegated}onScrollable(t){this.delegated=!0,this.browserScrollRef.nativeElement=t}scrollIntoView(t){var e;if(this.delegated)return;const{nativeElement:n}=this.browserScrollRef,{offsetTop:i,offsetLeft:r}=(0,a.YX)(n,t),{clientHeight:o,clientWidth:s}=n,{offsetHeight:l,offsetWidth:c}=t,u=i+l/2-o/2,h=r+c/2-s/2;null===(e=n.scrollTo)||void 0===e||e.call(n,h,u)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.ux),i.Y36(i.SBq),i.Y36(o.yZ),i.Y36(l.FA))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("tui-scrollable.stop",(function(t){return e.onScrollable(t.detail)}))("tui-scroll-into-view.stop",(function(t){return e.scrollIntoView(t.detail)})),2&t&&i.ekj("_legacy",e.showNative)},inputs:{hidden:"hidden"},features:[i._Bn([{provide:r.$_,deps:[t],useFactory:({browserScrollRef:t})=>t}])],ngContentSelectors:d,decls:3,vars:1,consts:[[4,"ngIf"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,h,1,0,"tui-scroll-controls",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()),2&t&&i.Q6J("ngIf",e.showScrollbars)},directives:[u.O5,c.tZ],styles:["[_nghost-%COMP%]{z-index:0;position:relative;display:flex;overflow:auto}[_nghost-%COMP%]:not(._legacy){scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar, [_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}._legacy[_nghost-%COMP%]{overflow:overlay}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){._legacy[_nghost-%COMP%]::-webkit-scrollbar, ._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar{background-color:transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}.t-content[_ngcontent-%COMP%]{position:relative;z-index:0;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}"],changeDetection:0}),t})(),f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[u.ez,c.eI]]}),t})()},54789:(t,e,n)=>{n.d(e,{PN:()=>I,EI:()=>D});var i=n(97582),r=n(12057),o=n(74788),s=n(91211),a=n(62579),l=n(92668),c=n(68192),u=n(11927),h=(n(18939),n(64493)),d=n(27103),p=n(44358),f=n(18269),g=n(87941),m=n(79456),v=n(66640),_=n(54487),y=n(74235),b=n(25917),w=n(43190),C=n(39761),x=n(5304),O=n(88002);function k(t,e){if(1&t&&o._UZ(0,"div",3),2&t){const t=o.oxw().tuiLet;o.Q6J("innerHTML",t,o.oJD)}}function M(t,e){if(1&t){const t=o.EpF();o.O4$(),o.TgZ(0,"svg",4),o.NdJ("error",(function(){return o.CHM(t),o.oxw(2).onError()})),o._UZ(1,"use"),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(1),o.uIk("href",t.use,null,"xlink")}}function P(t,e){if(1&t&&(o.ynx(0),o.YNc(1,k,1,1,"div",1),o.YNc(2,M,2,1,"ng-template",null,2,o.W1O),o.BQk()),2&t){const t=o.MAs(3),e=o.oxw();o.xp6(1),o.Q6J("ngIf",e.isInnerHTML)("ngIfElse",t)}}const S={tuiIconAttach:"tuiIconPaperclip",tuiIconAttention:"tuiIconAlertCircle",tuiIconBackCircle:"tuiIconArrowLeftCircle",tuiIconCall:"tuiIconPhone",tuiIconCallIn:"tuiIconPhoneIncoming",tuiIconCallOut:"tuiIconPhoneOutgoing",tuiIconCallTransfer:"tuiIconPhoneForwarded",tuiIconCancel:"tuiIconXCircle",tuiIconCancelCircle:"tuiIconSlash",tuiIconCard:"tuiIconCreditCard",tuiIconCards:"tuiIconCreditCard",tuiIconChartBar:"tuiIconBarChart",tuiIconChart:"tuiIconBarChart",tuiIconCheckList:"tuiIconClipboard",tuiIconCloseCircle:"tuiIconXCircle",tuiIconCollapse:"tuiIconMinimize",tuiIconComment:"tuiIconMessageSquare",tuiIconCommentFw:"tuiIconMessageForward",tuiIconCompany:"tuiIconBriefcase",tuiIconDefaultDoc:"tuiIconFile",tuiIconDesktop:"tuiIconMonitor",tuiIconDesktopOff:"tuiIconMonitorOff",tuiIconDislike:"tuiIconThumbsDown",tuiIconDone:"tuiIconCheckCircle",tuiIconDraft:"tuiIconEdit2",tuiIconEyeOpen:"tuiIconEye",tuiIconEyeClosed:"tuiIconEyeOff",tuiIconExpand:"tuiIconMaximize",tuiIconExternal:"tuiIconExternalLink",tuiIconFrame:"tuiIconLayout",tuiIconGeo:"tuiIconMapPin",tuiIconHeartFilled:"tuiIconHeart",tuiIconHide:"tuiIconEyeOff",tuiIconImg:"tuiIconImage",tuiIconInfoCircle:"tuiIconInfo",tuiIconLike:"tuiIconThumbsUp",tuiIconLockOpen:"tuiIconUnlock",tuiIconMobile:"tuiIconSmartphone",tuiIconMoreHor:"tuiIconMoreHorizontal",tuiIconMoreVer:"tuiIconMoreVertical",tuiIconMoreVert:"tuiIconMoreVertical",tuiIconPicture:"tuiIconImage",tuiIconPin:"tuiIconMapPin",tuiIconPrint:"tuiIconPrinter",tuiIconRefresh:"tuiIconRefreshCw",tuiIconRemove:"tuiIconX",tuiIconShow:"tuiIconEye",tuiIconSound:"tuiIconVolume",tuiIconSoundOff:"tuiIconVolumeX",tuiIconStarFilled:"tuiIconStar",tuiIconStop:"tuiIconSquare",tuiIconStructure:"tuiIconGrid",tuiIconTime:"tuiIconClock",tuiIconTooltip:"tuiIconHelpCircle",tuiIconViewList:"tuiIconList",tuiIconWifiOn:"tuiIconWifi"},E={iconsPlace:m.xp,path:(0,v.ht)(m.xp),srcProcessor:_.y,contentProcessor:c.N,deprecated:t=>{const e=t.replace("Large","").replace("Outline",""),n=S[e];return n?`${e}/(Large|Outline) is deprecated, use ${n}/(Large|Outline) instead`:""}},A=new o.OlP("[TUI_SVG_OPTIONS]",{factory:()=>({iconsPlace:(0,o.f3M)(m.AA),path:(0,o.f3M)(m.ki),deprecated:E.deprecated,srcProcessor:(0,o.f3M)(m.V5),contentProcessor:(0,o.f3M)(m.u_)})}),T=new o.OlP("[TUI_SVG_SRC_INTERCEPTORS]");let I=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l){this.doc=t,this.win=e,this.options=n,this.srcInterceptors=i,this.tuiSanitizer=r,this.svgService=o,this.staticRequestService=s,this.sanitizer=a,this.el=l,this.src$=new y.t(1),this.icon="",this.innerHTML$=this.src$.pipe((0,w.w)((()=>(0,u.Aj)(this.icon)?this.isExternal?this.getExternalIcon(this.icon):(0,b.of)(this.getSafeHtml(this.icon)):(0,b.of)(this.icon))),(0,C.O)(""))}set src(t){var e;this.options.deprecated(String(t)),this.icon=(null!==(e=this.srcInterceptors)&&void 0!==e?e:[]).reduce(((t,e)=>e(t,this.options)),this.options.srcProcessor(t||"")),this.src$.next()}get src(){return this.icon}get use(){return(0,u.Aj)(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!(0,u.Aj)(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return(0,h.Wf)(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(f.uJ,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return(0,u.Aj)(this.icon)&&this.icon.replace(f.uJ,"").endsWith(".svg")}get isSrc(){return(0,u.Aj)(this.icon)&&(0,v.jL)(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){const{use:t,isUse:e,win:n}=this;return e&&t.startsWith("http")&&!!n.origin&&!t.startsWith(n.origin)}onError(t="External icon is missing on the given URL"){const{icon:e}=this,n=new CustomEvent(f.qT,{bubbles:!0,detail:{message:t,icon:e}});this.el.nativeElement.dispatchEvent(n)}resolveName(t,e){return e(t)}getSafeHtml(t){return this.isSrc?this.sanitize(t):this.process(t)}process(t){const e=this.svgService.getOriginal(t);return this.isName&&!e&&t&&this.onError("Attempted to use undefined named icon"),this.isShadowDOM&&this.isName?this.sanitize(e||""):""}sanitize(t){return t=this.options.contentProcessor(t),this.tuiSanitizer&&(0,u.Aj)(t)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(o.q3G.HTML,t)||""):t}getExternalIcon(t){const e=t.includes(".svg")?t:this.use;return this.staticRequestService.request(e).pipe((0,x.K)((()=>(this.onError("Failed to load external SVG"),(0,b.of)("")))),(0,O.U)((t=>this.sanitize(t.replace("{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[r.ez,l.WD]]}),t})()},1515:(t,e,n)=>{n.d(e,{w:()=>g,Q:()=>m});var i=n(74788),r=n(27103),o=n(99434),s=n(90022),a=n(12130),l=n(79456),c=n(46782),u=n(54789),h=n(91489),d=n(89570),p=n(12057);function f(t,e){if(1&t&&i._UZ(0,"tui-svg",3),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}let g=(()=>{class t extends s.bZ{constructor(t,e,n,i){super(n),this.isMobile=i,this.mode=null,this.describeId="",e.pipe((0,c.R)(t)).subscribe((t=>{this.mode=t}))}get computedAppearance(){return this.appearance||this.mode||""}stopOnMobile(t){var e;this.isMobile&&(t.preventDefault(),t.stopPropagation()),null===(e=this.driver$)||void 0===e||e.toggle()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a3,2),i.Y36(l.Au),i.Y36(s.H3),i.Y36(o.fL))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-tooltip"]],viewQuery:function(t,e){if(1&t&&i.Gf(s.t6,5),2&t){let t;i.iGM(t=i.CRH())&&(e.driver$=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&i.NdJ("mousedown",(function(t){return e.stopOnMobile(t)})),2&t&&i.uIk("data-appearance",e.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[i._Bn([r.a3,a.CV]),i.qOj],decls:4,vars:11,consts:[["appearance","icon","automation-id","tui-tooltip__icon","tuiWrapper","",1,"t-tooltip-icon",3,"hover","tuiHint","tuiHintAppearance","tuiHintContext","tuiHintDescribe","tuiHintDirection","tuiHintHideDelay","tuiHintShowDelay"],["driver","tuiHintHover"],[3,"src",4,"polymorpheusOutlet"],[3,"src"]],template:function(t,e){if(1&t&&(i.TgZ(0,"span",0,1),i.ALo(2,"async"),i.YNc(3,f,1,1,"tui-svg",2),i.qZA()),2&t){const t=i.MAs(1);i.Q6J("hover",i.lcZ(2,9,t)||null)("tuiHint",e.content)("tuiHintAppearance",e.computedAppearance)("tuiHintContext",e.context)("tuiHintDescribe",e.describeId)("tuiHintDirection",e.direction)("tuiHintHideDelay",e.hideDelay)("tuiHintShowDelay",e.showDelay),i.xp6(3),i.Q6J("polymorpheusOutlet",e.icon)}},directives:[h.o,s.D,s.xn,s.t6,s.DM,s.$o,d.Li,u.PN],pipes:[p.Ov],styles:['[_nghost-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;width:1.5rem;height:1.5rem;vertical-align:middle;font-size:0;line-height:0;pointer-events:auto;cursor:pointer;color:var(--tui-text-01)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-error-fill)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%;color:inherit}[tuiWrapper][data-appearance="textfield"][data-state="disabled"][_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%], [tuiWrapper][data-appearance="textfield"][data-state="disabled"] [_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),t})(),m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[p.ez,h.W,u.EI,s.go,d.wq]]}),t})()},18269:(t,e,n)=>{n.d(e,{oA:()=>o,uJ:()=>r,Jl:()=>s,hW:()=>h,Fw:()=>u,qT:()=>c,fe:()=>l,Nq:()=>a});var i=n(33770);const r=`?v=${i.Ml}`,o=t=>t.includes(".svg#")?t:`#${t}`,s={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:i.f$,zeroPadding:!0,rounding:"truncate"},a=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"],l="tui-scroll-into-view",c="tui-icon-error",u=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"],h=/\d/},98952:(t,e,n)=>{n.d(e,{td:()=>H,VC:()=>tt,E$:()=>G,Tp:()=>et,dp:()=>ot,oH:()=>q,Ek:()=>W,A9:()=>nt,Cw:()=>it,yd:()=>rt,fx:()=>Q});var i=n(74788),r=n(62579),o=n(221),s=n(71486),a=n(96111),l=n(27103),c=n(75122),u=n(44358),h=n(11927),d=n(75675),p=n(57179),f=n(76480),g=n(33770),m=n(64493),v=n(99434),_=n(43631),y=n(49941),b=n(12130),w=n(87941),C=n(79456),x=n(43219),O=n(46782),k=n(43190),M=n(87874),P=n(68307),S=n(9945),E=n(88002),A=n(87519),T=n(97582),I=n(47766),D=n(66640),L=n(89570),N=n(79765),z=n(66682),F=n(25917),R=n(26215),B=n(9112),j=n(80134),$=n(12057);function V(t,e){if(1&t&&(i.TgZ(0,"div",4),i._uU(1),i.qZA()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}const U=function(t){return{$implicit:t}},Y=new i.OlP("[TUI_DROPDOWN_COMPONENT]",{factory:()=>K});let q=(()=>{class t{constructor(){this.tuiDropdownOpenChange=new i.vpe}set tuiDropdownOpen(t){var e;null===(e=this.dropdown)||void 0===e||e.toggle(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdownOpen",""],["","tuiDropdownOpenChange",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"}}),t})(),H=(()=>{class t{constructor(t,e,n,i,r,o){this.el=e,this.dropdown=n,this.injector=i,this.dropdownService=r,this.open=o,this.refresh$=new N.xQ,this.dropdownBoxRef=null,this.type="dropdown",this.component=new L.Al(this.dropdown,this.injector),this.open&&!this.open.dropdown?this.open.dropdown=this:this.open=null,this.refresh$.pipe((0,x.p)(0),(0,O.R)(t)).subscribe((()=>{var t,e;null===(t=this.dropdownBoxRef)||void 0===t||t.changeDetectorRef.detectChanges(),null===(e=this.dropdownBoxRef)||void 0===e||e.changeDetectorRef.markForCheck()}))}get position(){return(0,I.qK)(this.el.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1),this.open&&(this.open.dropdown=void 0)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(t){var e,n;t&&this.content&&!this.dropdownBoxRef?(this.dropdownBoxRef=this.dropdownService.add(this.component),null===(e=this.open)||void 0===e||e.tuiDropdownOpenChange.emit(!0)):!t&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null,null===(n=this.open)||void 0===n||n.tuiDropdownOpenChange.emit(!1))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(l.a3,2),i.Y36(i.SBq),i.Y36(Y),i.Y36(i.gxx),i.Y36(c.ae),i.Y36(q,8))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:["tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[i._Bn([l.a3,(0,_.Ic)(t),(0,_.Fe)(t)]),i.TTD]}),(0,T.gn)([u.UM],t.prototype,"position",null),t})();const Z=(0,h.JN)({showDelay:200,hideDelay:500});let G=(()=>{class t extends _.kk{constructor(t,e){super((t=>this.stream$.subscribe(t))),this.hovered$=t,this.options=e,this.toggle$=new N.xQ,this.stream$=(0,z.T)(this.toggle$,this.hovered$).pipe((0,k.w)((t=>(0,F.of)(t).pipe((0,M.g)(t?this.showDelay:this.hideDelay)))),(0,P.b)((t=>{this.hovered=t})),(0,S.B)()),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.hovered=!1,this.type="dropdown"}toggle(t){this.toggle$.next(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(a.gs),i.Y36(Z))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:["tuiDropdownShowDelay","showDelay"],hideDelay:["tuiDropdownHideDelay","hideDelay"]},features:[i._Bn([(0,_.UK)(t),a.gs]),i.qOj]}),t})();const J={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},X=(0,h.JN)(J),Q=t=>({provide:X,deps:[[new i.FiY,W],[new i.FiY,new i.tp0,X]],useFactory:(0,D.lp)(t,J)});let W=(()=>{class t{constructor(t){this.options=t,this.align=this.options.align,this.appearance=this.options.appearance,this.direction=this.options.direction,this.limitWidth=this.options.limitWidth,this.minHeight=this.options.minHeight,this.maxHeight=this.options.maxHeight,this.offset=this.options.offset}}return t.ɵfac=function(e){return new(e||t)(i.Y36(X,4))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:["tuiDropdownAlign","align"],appearance:["tuiDropdownAppearance","appearance"],direction:["tuiDropdownDirection","direction"],limitWidth:["tuiDropdownLimitWidth","limitWidth"],minHeight:["tuiDropdownMinHeight","minHeight"],maxHeight:["tuiDropdownMaxHeight","maxHeight"],offset:["tuiDropdownOffset","offset"]},features:[i._Bn([{provide:X,useExisting:(0,i.Gpc)((()=>t))}])]}),t})(),K=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,c,u,h){this.directive=i,this.animation=r,this.el=o,this.host=s,this.accessor=a,this.win=l,this.mode$=c,this.options=u,this.hoverDirective=h,e.pipe((0,E.U)((e=>"fixed"===this.directive.position?t.correct(e):e)),(0,O.R)(n)).subscribe((([t,e])=>{this.update(t,e)})),this.updateWidth(this.accessor.getClientRect().width)}ngOnDestroy(){this.onHoveredChange(!1)}onHoveredChange(t){this.hoverDirective&&this.hoverDirective.toggle(t)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(t,e){const{style:n}=this.el.nativeElement,{right:i}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:r,offset:o}=this.options,{innerHeight:s}=this.win,{clientRect:a}=this.host,{position:l}=this.directive,c=this.accessor.getClientRect(),u="fixed"===l?0:-a.left,h="fixed"===l?0:-a.top;t+=h;const p=(e+=u)c.left&&t{class t extends _.FP{constructor(t,e,n){super(t,e,n),this.type="dropdown"}}return t.ɵfac=function(e){return new(e||t)(i.Y36(l.a3,2),i.Y36(_.kk),i.Y36(_.c2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdown",""]],features:[i._Bn([l.a3]),i.qOj]}),t})(),et=(()=>{class t extends _.kk{constructor(){super((t=>this.stream$.subscribe(t))),this.stream$=new R.X(!1),this.tuiDropdownManual=!1,this.type="dropdown"}ngOnChanges(){this.stream$.next(this.tuiDropdownManual)}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[i._Bn([(0,_.UK)(t)]),i.qOj,i.TTD]}),t})(),nt=(()=>{class t extends _.uG{constructor(t,e,n,i){super(),this.options=t,this.viewport=e,this.accessors=n,this.directive=i,this.type="dropdown"}getPosition({width:t,height:e}){var n,i;const r=null!==(i=null===(n=this.accessor)||void 0===n?void 0:n.getClientRect())&&void 0!==i?i:g.Jy,o=this.viewport.getClientRect(),{minHeight:s,align:a,direction:l,offset:c}=this.options,u=this.previous||l||"bottom",h=Math.max(r.right-t,c),d={top:r.top-2*c-o.top,bottom:o.bottom-r.bottom-2*c},p={top:r.top-c-e,bottom:r.bottom+c,right:h,center:r.left+r.width/2+t/2d.bottom?"top":"bottom";return d[u]>s&&l||d[u]>e?[p[u],p[a]]:(this.previous=f,[p[f],p[a]])}get accessor(){return(0,_.Sv)("dropdown")(this.accessors,this.directive)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(X),i.Y36(C.EO),i.Y36(_.O4),i.Y36(H))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[i._Bn([(0,_.P7)(t)]),i.qOj]}),(0,T.gn)([u.UM],t.prototype,"accessor",null),t})(),it=(()=>{class t extends _.uG{constructor(t,e,n){super(),this.options=t,this.viewport=e,this.vertical=n,this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(t){var e,n;if(!1===this.tuiDropdownSided)return this.vertical.getPosition(t);const{height:i,width:r}=t,o=null!==(n=null===(e=this.vertical.accessor)||void 0===e?void 0:e.getClientRect())&&void 0!==n?n:g.Jy,s=this.viewport.getClientRect(),{direction:a,minHeight:l,offset:c}=this.options,u="center"===this.options.align?"left":this.options.align,h={top:o.bottom-s.top,left:o.left-c-s.left,right:s.right-o.right-c,bottom:s.bottom-o.top},d={top:o.bottom-i+this.tuiDropdownSidedOffset+1,left:o.left-r-c,right:o.right+c,bottom:o.top-this.tuiDropdownSidedOffset-1},p=h.top>h.bottom?"top":"bottom",f=h[u]>r?d[u]:h.left>h.right?d.left:d.right;return h[this.previous]>l&&a||this.previous===p?[d[this.previous],f]:(this.previous=p,[d[p],f])}}return t.ɵfac=function(e){return new(e||t)(i.Y36(X),i.Y36(C.EO),i.Y36(nt))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[i._Bn([nt,(0,_.P7)(t)]),i.qOj]}),t})(),rt=(()=>{class t extends _.kk{constructor(t,e,n,i,r,o){super((t=>this.stream$.subscribe(t))),this.range=t,this.doc=e,this.selection$=n,this.el=i,this.vcr=r,this.dropdown=o,this.handler$=new R.X(g.Ye),this.stream$=(0,B.aj)([this.handler$,this.selection$.pipe((0,E.U)((()=>this.getRange())),(0,A.x)())]).pipe((0,E.U)((([t,e])=>{const n=this.el.nativeElement.contains(e.commonAncestorContainer);return this.range=n&&(0,m.wq)(e.commonAncestorContainer)?e:this.range,n&&t(this.range)||this.inDropdown(e)}))),this.position="selection",this.type="dropdown"}set tuiDropdownSelection(t){(0,h.Aj)(t)||this.handler$.next(t)}getClientRect(){switch(this.position){case"tag":{const{commonAncestorContainer:t}=this.range,e=(0,m.ve)(t)?t:t.parentNode;return e&&(0,m.ve)(e)?e.getBoundingClientRect():g.Jy}case"word":return(0,I.DI)(this.range).getBoundingClientRect();default:return this.range.getBoundingClientRect()}}ngOnDestroy(){this.ghost&&this.vcr.element.nativeElement.removeChild(this.ghost)}getRange(){const t=(0,p.ie)(this.doc),e=this.doc.getSelection();return t&&(0,m.qY)(t)&&this.el.nativeElement.contains(t)?this.veryVerySadInputFix(t):(null==e?void 0:e.rangeCount)?e.getRangeAt(0):this.range}boxContains(t){var e;return!!(null===(e=this.dropdown.dropdownBoxRef)||void 0===e?void 0:e.location.nativeElement.contains(t))}inDropdown(t){const{startContainer:e,endContainer:n}=t,{nativeElement:i}=this.el,r=this.boxContains(t.commonAncestorContainer),o=this.boxContains(n)&&i.contains(e),s=this.boxContains(e)&&i.contains(n);return r||o||s}veryVerySadInputFix(t){const{ghost:e=this.initGhost(t)}=this,{top:n,left:i,width:r,height:o}=t.getBoundingClientRect(),{selectionStart:s,selectionEnd:a,value:l}=t,c=this.doc.createRange(),u=this.el.nativeElement.getBoundingClientRect();return e.style.top=(0,d.O)(n-u.top),e.style.left=(0,d.O)(i-u.left),e.style.width=(0,d.O)(r),e.style.height=(0,d.O)(o),e.textContent=g.tU+l+g.f$,c.setStart(e.firstChild,s||0),c.setEnd(e.firstChild,a||0),c}initGhost(t){const e=this.doc.createElement("div"),{font:n,letterSpacing:i,textTransform:r,padding:o}=getComputedStyle(t);return e.style.position="absolute",e.style.pointerEvents="none",e.style.opacity="0",e.style.whiteSpace="pre-wrap",e.style.font=n,e.style.letterSpacing=i,e.style.textTransform=r,e.style.padding=o,this.vcr.element.nativeElement.appendChild(e),this.ghost=e,e}}return t.ɵfac=function(e){return new(e||t)(i.Y36(v.i0),i.Y36($.K0),i.Y36(C.iS),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(H))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdown","","tuiDropdownSelection",""]],inputs:{position:["tuiDropdownSelectionPosition","position"],tuiDropdownSelection:"tuiDropdownSelection"},features:[i._Bn([(0,_.UK)(t),(0,_.Ic)(t)]),i.qOj]}),t})(),ot=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[L.wq,o.A,s.e,j.Jy,a.VE]]}),t})()},90022:(t,e,n)=>{n.d(e,{H3:()=>q,$o:()=>Q,D:()=>Z,xn:()=>W,t6:()=>G,ZY:()=>K,go:()=>et,bZ:()=>H,DM:()=>tt});var i=n(97582),r=n(74788),o=n(11927),s=n(76480),a=n(221),l=n(96111),c=n(33770),u=n(64493),h=n(85648),d=n(75675),p=n(27103),f=n(44358),g=n(66749),m=n(57179),v=n(43631),_=n(49941),y=n(75452),b=n(87941),w=n(79456),C=n(89570),x=n(85345);class O{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new k(t,this.durationSelector))}}class k extends x.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){try{const e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(t,e){let n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=(0,x.ft)(e,new x.IY(this)),n&&!n.closed&&this.add(this.durationSubscription=n)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const t=this.value,e=this.durationSubscription;e&&(this.durationSubscription=void 0,e.unsubscribe(),this.remove(e)),this.value=void 0,this.hasValue=!1,super._next(t)}}}var M=n(43190),P=n(87874),S=n(46782),E=n(79196),A=n(45435),T=n(68307),I=n(88002),D=n(39761),L=n(87519),N=n(13653),z=n(79765),F=n(66682),R=n(25917),B=n(41291),j=n(26215),$=n(12057),V=n(18269);function U(t,e){if(1&t&&r._UZ(0,"span",1),2&t){const t=e.polymorpheusOutlet;r.Q6J("innerHTML",t,r.oJD)}}const Y=new r.OlP("[TUI_HINT_COMPONENT]",{factory:()=>X}),q=(0,o.JN)({direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"});let H=(()=>{class t extends s.QJ{constructor(t){super(),this.options=t,this.direction=this.options.direction,this.appearance=this.options.appearance,this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.icon=this.options.icon}}return t.ɵfac=function(e){return new(e||t)(r.Y36(q,4))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:["tuiHintContent","content"],direction:["tuiHintDirection","direction"],appearance:["tuiHintAppearance","appearance"],showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[r._Bn([{provide:q,useExisting:(0,r.Gpc)((()=>t))}]),r.qOj]}),t})(),Z=(()=>{class t{constructor(t,e,n,i,r){this.el=t,this.component=e,this.hintService=n,this.options=i,this.activeZone=r,this.tuiHintAppearance=null,this.type="hint"}get appearance(){var t;return null!==(t=this.tuiHintAppearance)&&void 0!==t?t:this.options.appearance}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(t){t&&this.content?this.hintService.add(this):this.hintService.remove(this)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(C.Al),r.Y36(b.BN),r.Y36(q),r.Y36(a.e,8))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{content:["tuiHint","content"],context:["tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[r._Bn([(0,v.Ic)(t),(0,v.Fe)(t),{provide:C.Al,deps:[Y,r.gxx],useClass:C.Al}]),r.TTD]}),t})(),G=(()=>{class t extends v.kk{constructor(t,e,n){super((t=>this.stream$.subscribe(t))),this.hovered$=t,this.options=e,this.el=n,this.visible=!1,this.toggle$=new z.xQ,this.stream$=(0,F.T)(this.toggle$.pipe((0,M.w)((t=>(0,R.of)(t).pipe((0,P.g)(t?0:this.hideDelay)))),(0,S.R)(this.hovered$),(0,E.r)()),this.hovered$.pipe((0,M.w)((t=>(0,R.of)(t).pipe((0,P.g)(t?this.showDelay:this.hideDelay)))),(0,S.R)(this.toggle$),(0,E.r)())).pipe((0,A.h)((()=>this.enabled)),(0,T.b)((t=>{this.visible=t}))),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0}toggle(t=!this.visible){this.toggle$.next(t)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(l.gs),r.Y36(q),r.Y36(r.SBq))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[r._Bn([(0,v.UK)(t),l.gs]),r.qOj]}),t})(),J=(()=>{class t extends G{constructor(){super(...arguments),this.currentRect=c.Jy}onMove({clientX:t,clientY:e}){this.currentRect=(0,u.dD)(t,e)}getClientRect(){return this.currentRect}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵdir=r.lG2({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(t,e){1&t&&r.NdJ("mousemove.silent",(function(t){return e.onMove(t)}))},features:[r._Bn([(0,v.Ic)(t),(0,v.UK)(t)]),r.qOj]}),t})(),X=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,c,u,h){var d;this.animation=i,this.pointer=r,this.accessor=o,this.el=s,this.polymorpheus=a,this.hover=l,this.mode=c,this.visualViewportService=u,this.viewport=h,this.appearance=this.polymorpheus.$implicit.appearance||(null===(d=this.mode)||void 0===d?void 0:d.mode),e.pipe((0,I.U)((t=>this.visualViewportService.correct(t))),(0,S.R)(n)).subscribe((([t,e])=>{this.update(t,e)})),t.pipe((0,S.R)(n)).subscribe((t=>this.hover.toggle(t)))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(t){this.el.nativeElement.contains(t)||this.hover.el.nativeElement.contains(t)||this.hover.toggle(!1)}update(t,e){const{height:n,width:i}=this.el.nativeElement.getBoundingClientRect(),{style:r}=this.el.nativeElement,o=this.accessor.getClientRect(),s=this.viewport.getClientRect();if(o===c.Jy)return;const a=(0,h.Ki)(e,4,s.width-i-4),[l,u]=this.visualViewportService.correct([o.top+o.height/2-t,o.left+o.width/2-a]);r.top=(0,d.O)(t),r.left=(0,d.O)(a),r.setProperty("--top",(0,d.O)((0,h.Ki)(l,.5,n-1))),r.setProperty("--left",(0,d.O)((0,h.Ki)(u,.5,i-1)))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(l.gs),r.Y36(b.KG),r.Y36(p.a3,2),r.Y36(w.Pw),r.Y36(J,8),r.Y36(v.O4),r.Y36(r.SBq),r.Y36(C.yf),r.Y36(G),r.Y36(y.w,8),r.Y36(b.Lp),r.Y36(w.EO))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-hint"]],hostVars:4,hostBindings:function(t,e){1&t&&r.NdJ("click",(function(t){return e.onClick(t.target)}),!1,r.evT),2&t&&(r.uIk("data-appearance",e.appearance),r.d8E("@tuiFadeIn",e.animation),r.ekj("_untouchable",e.pointer))},features:[r._Bn([p.a3,b.KG,l.gs,(0,v.ei)("hint"),(0,v.Wk)("hint",Z)])],decls:1,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&r.YNc(0,U,1,1,"span",0),2&t&&r.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",e.context)},directives:[C.Li],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word}[_nghost-%COMP%]:before{content:"";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}[data-appearance=error][_nghost-%COMP%]{background:var(--tui-error-fill)}[data-appearance=onDark][_nghost-%COMP%]{background:var(--tui-elevation-02);color:var(--tui-text-01);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}[_nghost-%COMP%]:not([style*="top"]){visibility:hidden}._untouchable[_nghost-%COMP%]{pointer-events:none}'],data:{animation:[_.QF]},changeDetection:0}),(0,i.gn)([f.UM],t.prototype,"update",null),t})(),Q=(()=>{class t extends v.kk{constructor(t,e,n){var i;super((t=>this.stream$.subscribe(t))),this.zone=t,this.doc=e,this.el=n,this.stream$=(0,g.mL)(this.doc,"keydown",{capture:!0}).pipe((0,M.w)((()=>this.focused?(0,R.of)(!1):(0,F.T)((0,g.mL)(this.doc,"keyup"),(0,g.mL)(this.element,"blur")).pipe((0,I.U)((()=>this.focused))))),(i=t=>t?(0,B.H)(1e3):(0,R.of)(null),t=>t.lift(new O(i))),(0,D.O)(!1),(0,L.x)(),(0,N.T)(1),(0,g.Yr)(this.zone)),this.tuiHintDescribe="",this.type="hint"}get focused(){return(0,m.V8)(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe)||this.el.nativeElement}}return t.ɵfac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36($.K0),r.Y36(r.SBq))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[r._Bn([(0,v.UK)(t)]),r.qOj]}),(0,i.gn)([f.UM],t.prototype,"element",null),t})(),W=(()=>{class t extends v.FP{constructor(t,e,n){super(t,e,n),this.type="hint"}}return t.ɵfac=function(e){return new(e||t)(r.Y36(p.a3,2),r.Y36(v.kk),r.Y36(v.c2))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHint",""]],features:[r._Bn([p.a3]),r.qOj]}),t})(),K=(()=>{class t extends v.kk{constructor(t){super((t=>this.stream$.subscribe(t))),this.stream$=new j.X(!1),this.tuiHintManual=!1,this.type="hint",t.enabled=!1}ngOnChanges(){this.stream$.next(this.tuiHintManual)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(G))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHint","","tuiHintManual",""]],inputs:{tuiHintManual:"tuiHintManual"},features:[r._Bn([(0,v.UK)(t)]),r.qOj,r.TTD]}),t})(),tt=(()=>{class t extends v.uG{constructor(t,e,n,i){super(),this.options=t,this.viewport=e,this.directive=n,this.accessors=i,this.points=V.Fw.reduce(((t,e)=>Object.assign(Object.assign({},t),{[e]:[0,0]})),{}),this.direction=this.options.direction,this.type="hint"}getPosition({width:t,height:e}){var n,i;const r=null!==(i=null===(n=this.accessor)||void 0===n?void 0:n.getClientRect())&&void 0!==i?i:c.Jy,o=r.left+r.width/2,s=r.top+r.height/2;if(this.points["top-left"][0]=r.top-e-8,this.points["top-left"][1]=o-t+22,this.points.top[0]=this.points["top-left"][0],this.points.top[1]=o-t/2,this.points["top-right"][0]=this.points["top-left"][0],this.points["top-right"][1]=o-22,this.points["bottom-left"][0]=r.bottom+8,this.points["bottom-left"][1]=this.points["top-left"][1],this.points.bottom[0]=this.points["bottom-left"][0],this.points.bottom[1]=this.points.top[1],this.points["bottom-right"][0]=this.points["bottom-left"][0],this.points["bottom-right"][1]=this.points["top-right"][1],this.points["left-top"][0]=s-e+22,this.points["left-top"][1]=r.left-t-8,this.points.left[0]=s-e/2,this.points.left[1]=this.points["left-top"][1],this.points["left-bottom"][0]=s-22,this.points["left-bottom"][1]=this.points["left-top"][1],this.points["right-top"][0]=this.points["left-top"][0],this.points["right-top"][1]=r.right+8,this.points.right[0]=this.points.left[0],this.points.right[1]=this.points["right-top"][1],this.points["right-bottom"][0]=this.points["left-bottom"][0],this.points["right-bottom"][1]=this.points["right-top"][1],this.checkPosition(this.points[this.direction],t,e))return this.points[this.direction];const a=V.Fw.find((n=>this.checkPosition(this.points[n],t,e)));return this.points[a||this.fallback]}get accessor(){return(0,v.Sv)("hint")(this.accessors,this.directive)}get fallback(){return this.points.top[0]>this.viewport.getClientRect().bottom-this.points.bottom[0]?"top":"bottom"}checkPosition([t,e],n,i){const r=this.viewport.getClientRect();return t>8&&e>8&&t+i{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[$.ez,C.wq]]}),t})()},9013:(t,e,n)=>{n.d(e,{j:()=>s,c:()=>a});var i=n(74788),r=n(24751),o=n(79456);let s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["input","tuiMaskAccessor",""]],features:[i._Bn([{provide:r.JU,deps:[[new i.FiY,o.sE],r.Fj],multi:!0,useFactory:(t,e)=>t?t[0]:e}])]}),t})(),a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},75452:(t,e,n)=>{n.d(e,{w:()=>o,z:()=>s});var i=n(74788),r=n(76480);let o=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.mode=null}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiMode",""]],inputs:{mode:["tuiMode","mode"]},features:[i.qOj]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},79588:(t,e,n)=>{n.d(e,{Y0:()=>R,Ym:()=>_,z1:()=>g,kI:()=>L,Cs:()=>F,be:()=>y,cn:()=>z,AW:()=>k,aR:()=>P,xT:()=>E,Tq:()=>T,A7:()=>D,sz:()=>N});var i=n(11927),r=n(76480),o=n(27103),s=n(66749),a=n(74788),l=n(79456),c=n(29856),u=n(98640);const h=new c.y(u.Z);var d=n(66682),p=n(46782);class f{constructor(t,e,n,i,r,o,s,a,l,c,u,h,d){this.change$=t,this.options=e,this.legacyAppearance=n,this.appearanceDirective=i,this.cleanerDirective=r,this.customContentDirective=o,this.iconDirective=s,this.iconLeftDirective=a,this.labelOutsideDirective=l,this.sizeDirective=c,this.prefixDirective=u,this.postfixDirective=h,this.fillerDirective=d}get appearance(){return this.appearanceDirective.appearance||this.legacyAppearance}get cleaner(){return this.cleanerDirective.cleaner}get customContent(){return this.customContentDirective.customContent||""}get icon(){return this.iconDirective.icon}get iconLeft(){return this.iconLeftDirective.iconLeft}get labelOutside(){return this.labelOutsideDirective.labelOutside}get size(){return this.sizeDirective.size}get prefix(){return this.prefixDirective.prefix}get postfix(){return this.postfixDirective.postfix}get filler(){return this.fillerDirective.filler}}const g=(0,i.JN)({iconCleaner:"tuiIconClose",hintOnDisabled:!1}),m=new a.OlP("[TUI_TEXTFIELD_APPEARANCE_DIRECTIVE]",{factory:()=>new v});let v=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.appearance=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.ɵdir=a.lG2({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:["tuiTextfieldAppearance","appearance"]},features:[a._Bn([{provide:m,useExisting:(0,a.Gpc)((()=>t))}]),a.qOj]}),t})();const _=new a.OlP("[TUI_TEXTFIELD_CLEANER]",{factory:()=>new y});let y=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.cleaner=!1}}return t.ɵfac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.ɵdir=a.lG2({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:["tuiTextfieldCleaner","cleaner"]},features:[a._Bn([{provide:_,useExisting:(0,a.Gpc)((()=>t))}]),a.qOj]}),t})();const b=new a.OlP("[TUI_TEXTFIELD_CUSTOM_CONTENT]",{factory:()=>new w});let w=(()=>{class t extends r.QJ{}return t.ɵfac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.ɵdir=a.lG2({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:["tuiTextfieldCustomContent","customContent"]},features:[a._Bn([{provide:b,useExisting:(0,a.Gpc)((()=>t))}]),a.qOj]}),t})();const C=new a.OlP("[TUI_TEXTFIELD_FILLER]",{factory:()=>new x});let x=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.filler=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.ɵdir=a.lG2({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:["tuiTextfieldFiller","filler"]},features:[a._Bn([{provide:C,useExisting:(0,a.Gpc)((()=>t))}]),a.qOj]}),t})();const O=new a.OlP("[TUI_TEXTFIELD_ICON]",{factory:function(){return new k}});let k=(()=>{class t extends r.QJ{}return t.ɵfac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.ɵdir=a.lG2({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:["tuiTextfieldIcon","icon"]},features:[a._Bn([{provide:O,useExisting:(0,a.Gpc)((()=>t))}]),a.qOj]}),t})();const M=new a.OlP("[TUI_TEXTFIELD_ICON_LEFT]",{factory:function(){return new P}});let P=(()=>{class t extends r.QJ{}return t.ɵfac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.ɵdir=a.lG2({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:["tuiTextfieldIconLeft","iconLeft"]},features:[a._Bn([{provide:M,useExisting:(0,a.Gpc)((()=>t))}]),a.qOj]}),t})();const S=new a.OlP("[TUI_TEXTFIELD_LABEL_OUTSIDE]",{factory:()=>new E});let E=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.labelOutside=!1}}return t.ɵfac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.ɵdir=a.lG2({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:["tuiTextfieldLabelOutside","labelOutside"]},features:[a._Bn([{provide:S,useExisting:(0,a.Gpc)((()=>t))}]),a.qOj]}),t})();const A=new a.OlP("[TUI_TEXTFIELD_POSTFIX]",{factory:()=>new T});let T=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.postfix=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.ɵdir=a.lG2({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:["tuiTextfieldPostfix","postfix"]},features:[a._Bn([{provide:A,useExisting:(0,a.Gpc)((()=>t))}]),a.qOj]}),t})();const I=new a.OlP("[TUI_TEXTFIELD_PREFIX]",{factory:()=>new D});let D=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.prefix=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.ɵdir=a.lG2({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:["tuiTextfieldPrefix","prefix"]},features:[a._Bn([{provide:I,useExisting:(0,a.Gpc)((()=>t))}]),a.qOj]}),t})();const L=new a.OlP("[TUI_TEXTFIELD_SIZE]",{factory:()=>new N});let N=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.size="l"}}return t.ɵfac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.ɵdir=a.lG2({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:["tuiTextfieldSize","size"]},features:[a._Bn([{provide:L,useExisting:(0,a.Gpc)((()=>t))}]),a.qOj]}),t})(),z=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();const F=new a.OlP("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),R=[o.a3,{provide:F,deps:[a.sBO,o.a3,g,l.jt,m,_,b,O,M,S,L,I,A,C],useFactory:(t,e,n,i,...r)=>{const o=(0,d.T)(...r.map((({change$:t})=>t||h))).pipe((0,s.NA)(t),(0,p.R)(e));return o.subscribe(),new f(o,n,i,...r)}}]},91489:(t,e,n)=>{n.d(e,{o:()=>a,W:()=>l});var i=n(74788),r=n(77320),o=n(12130),s=n(79456);let a=(()=>{class t{constructor(t){this.mode$=t,this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?r.z3.Disabled:this.readOnly?r.z3.Readonly:this.active?r.z3.Active:this.hover?r.z3.Hover:null}get noHover(){return this.readOnly||!1===this.hover}get noActive(){return this.readOnly||!1===this.active}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.Au))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(i.uIk("data-appearance",e.appearance)("data-state",e.interactiveState),i.ekj("_invalid",e.computedInvalid)("_focused",e.computedFocused)("_no-hover",e.noHover)("_no-active",e.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"},features:[i._Bn([o.CV])]}),t})(),l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},77320:(t,e,n)=>{n.d(e,{Nm:()=>i,z3:()=>r});var i=(()=>(function(t){t.Accent="accent",t.Flat="flat",t.Icon="icon",t.Outline="outline",t.Primary="primary",t.Secondary="secondary",t.SecondaryDestructive="secondary-destructive",t.Table="table",t.Textfield="textfield",t.Whiteblock="whiteblock",t.WhiteblockActive="whiteblock-active"}(i||(i={})),i))(),r=(()=>(function(t){t.Active="active",t.Disabled="disabled",t.Hover="hover",t.Readonly="readonly"}(r||(r={})),r))()},12130:(t,e,n)=>{n.d(e,{CV:()=>u,yI:()=>c});var i=n(74788),r=n(79456),o=n(75452),s=n(25917),a=n(39761),l=n(88002);const c={provide:r.rL,deps:[[new i.tp0,r.rL],i.SBq],useFactory:(t,{nativeElement:e})=>(e["$.class._mobile"]=t,t)},u={provide:r.Au,deps:[[new i.FiY,o.w],i.SBq],useFactory:(t,{nativeElement:e})=>{const n=t?t.change$.pipe((0,a.O)(null),(0,l.U)((()=>t.mode))):(0,s.of)(null);return e["$.data-mode.attr"]=n,n}}},87941:(t,e,n)=>{n.d(e,{BN:()=>w,KG:()=>C,Ok:()=>x,K5:()=>O,Lp:()=>k});var i=n(74788),r=n(66749),o=n(27103),s=(n(18939),n(99434)),a=n(79456),l=n(26215),c=n(29856),u=n(66682),h=n(41291),d=n(59193),p=n(88002),f=n(87519),g=n(46782),m=n(62579),v=n(43631),_=n(34016),y=n(91211),b=n(47766);let w=(()=>{class t extends l.X{constructor(){super([])}add(t){this.next(this.value.concat(t))}remove(t){this.value.includes(t)&&this.next(this.value.filter((e=>e!==t)))}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),C=(()=>{class t extends c.y{constructor(t,e,n,i){super((o=>e.pipe((0,p.U)((()=>t.nativeElement.getBoundingClientRect())),(0,p.U)((t=>i.getPosition(t))),(0,r.fL)(n)).subscribe(o)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(m.L1),i.LFG(i.R0b),i.LFG(v.uG))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),x=(()=>{class t extends c.y{constructor(t,e,n,i){const o=t?(0,u.T)((0,h.H)(0),n).pipe((0,p.U)((()=>t.isActive)),(0,f.x)(),(0,r.Yr)(e),(0,g.R)(i)):d.E;super((t=>o.subscribe(t)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(_.Od,8),i.LFG(i.R0b),i.LFG(m.L1),i.LFG(o.a3,2))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),O=(()=>{class t{constructor(t,e,n){this.tuiSanitizer=t,this.sanitizer=e,this.originals={},this.items$=new l.X(new Map),this.define(n)}define(t){const{value:e}=this.items$;Object.keys(t).forEach((n=>{this.defineIcon(n,t[n],e)})),this.items$.next(e)}getOriginal(t){return this.originals[t]||null}defineIcon(t,e,n){if(n.has(t))return;const i=this.parseSrc(t,e);i&&(n.set(t,i),this.originals=Object.assign(Object.assign({},this.originals),{[t]:e}))}parseSrc(t,e){return this.sanitize((0,b.NK)(e,t))}sanitize(t){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(i.q3G.HTML,t):this.sanitizer.sanitize(i.q3G.HTML,t))||"")}}return t.ɵfac=function(e){return new(e||t)(i.LFG(a.hm,8),i.LFG(y.H7),i.LFG(a.It))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),k=(()=>{class t{constructor(t,e){this.win=t,this.isWebkit=e}correct(t){var e,n,i,r;return this.isWebkit?[t[0]+(null!==(n=null===(e=this.win.visualViewport)||void 0===e?void 0:e.offsetTop)&&void 0!==n?n:0),t[1]+(null!==(r=null===(i=this.win.visualViewport)||void 0===i?void 0:i.offsetLeft)&&void 0!==r?r:0)]:t}}return t.ɵfac=function(e){return new(e||t)(i.LFG(m.m9),i.LFG(s.jF))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})()},79456:(t,e,n)=>{n.d(e,{Gc:()=>O,dx:()=>k,Pw:()=>M,U0:()=>z,Gs:()=>S,N1:()=>T,PL:()=>R,xp:()=>j,zP:()=>D,It:()=>V,ki:()=>U,AA:()=>$,rL:()=>q,sf:()=>H,Au:()=>Z,$R:()=>N,PH:()=>F,Ln:()=>X,HO:()=>Q,IQ:()=>W,TK:()=>x,hm:()=>et,$_:()=>nt,iS:()=>it,u_:()=>rt,V5:()=>ot,jt:()=>st,S0:()=>at,r2:()=>ct,sE:()=>ut,EO:()=>ht,RB:()=>A,oE:()=>I,P7:()=>K,cp:()=>lt,ck:()=>dt});var i=n(74788),r=n(11927),o=n(36424),s=n(66749),a=n(68192),l=n(12057),c=n(47232),u=n(47766),h=n(66640),d=n(62579),p=n(9945),f=n(39761),g=n(88002),m=n(87519),v=n(43190),_=n(46782),y=n(18269),b=n(66682),w=n(54487),C=n(77320);const x=(0,r.N1)((()=>{var t,e;return null!==(e=null===(t=(0,i.f3M)(l.K0).defaultView)||void 0===t?void 0:t.matchMedia("(prefers-reduced-motion: reduce)").matches)&&void 0!==e&&e})),O=300,k=(0,r.N1)((()=>(0,i.f3M)(x)?0:O)),M=new i.OlP("[TUI_ANIMATION_OPTIONS]",{factory:()=>({value:"",params:{duration:(0,i.f3M)(k)}})}),P=(new i.OlP("[TUI_ASSERT_ENABLED]",{factory:()=>(0,i.X6Q)()}),{check:"tuiIconCheck",close:"tuiIconClose",error:"tuiIconAlertCircle",more:"tuiIconChevronRight"}),S=(0,r.JN)(P),E=new i.OlP("[TUI_DATA_LIST_ACCESSOR]");function A(t){return{provide:E,useExisting:t}}const T=new i.OlP("[TUI_DATA_LIST_HOST]");function I(t){return{provide:T,useExisting:t}}(0,r.JN)((t=>t.isWeekend?"weekend":"weekday")),new i.OlP("[TUI_DOCUMENT_OR_SHADOW_ROOT]");const D=new i.OlP("[TUI_ELEMENT_REF]"),L=(0,r.JN)(o.L.Monday),N=new i.OlP("[TUI_MONTHS]",{factory:(0,c.v)("months")}),z=new i.OlP("[TUI_CLOSE_WORD]",{factory:(0,c.v)("close")}),F=new i.OlP("[TUI_NOTHING_FOUND_MESSAGE]",{factory:(0,c.v)("nothingFoundMessage")}),R=new i.OlP("[TUI_DEFAULT_ERROR_MESSAGE]",{factory:(0,c.v)("defaultErrorMessage")}),B=(new i.OlP("[TUI_SPIN_TEXTS]",{factory:(0,c.v)("spinTexts")}),new i.OlP("[TUI_SHORT_WEEK_DAYS]",{factory:(0,c.v)("shortWeekDays")})),j="assets/taiga-ui/icons",$=(0,r.JN)(j),V=(0,r.JN)({}),U=new i.OlP("[TUI_ICONS_PATH]",{factory:()=>(0,h.ht)((0,i.f3M)($))}),Y=(0,r.JN)({mobile:768,desktopSmall:1024,desktopLarge:1280}),q=new i.OlP("[TUI_IS_MOBILE_RES]",{factory:()=>{const t=(0,i.f3M)(d.m9),e=(0,i.f3M)(Y);return(0,s.mL)(t,"resize").pipe((0,p.B)(),(0,f.O)(null),(0,g.U)((()=>function(t,{mobile:e}){return(0,u.ic)(t)G[t],size:"m",hasIcon:!0,defaultAutoCloseTime:3e3},X=(0,r.JN)(J),Q=(0,r.JN)(y.Jl),W=new i.OlP("[TUI_OPTION_CONTENT]");function K(t){return{provide:W,useValue:t}}const tt=t=>{const e=t.length-1;return[t[e],...t.slice(0,e)]},et=(new i.OlP("[TUI_ORDERED_SHORT_WEEK_DAYS]",{factory:()=>{const t=(0,i.f3M)(L);return(0,i.f3M)(B).pipe((0,g.U)(tt),(0,g.U)((e=>[...e.slice(t),...e.slice(0,t)])))}}),new i.OlP("[TUI_SANITIZER]")),nt=new i.OlP("[TUI_SCROLL_REF]",{factory:()=>new i.SBq((0,i.f3M)(l.K0).documentElement)}),it=new i.OlP("[TUI_SELECTION_STREAM]",{factory:()=>{const t=(0,i.f3M)(l.K0);return(0,b.T)((0,s.mL)(t,"selectionchange"),(0,s.mL)(t,"mouseup"),(0,s.mL)(t,"mousedown").pipe((0,v.w)((()=>(0,s.mL)(t,"mousemove").pipe((0,_.R)((0,s.mL)(t,"mouseup")))))),(0,s.mL)(t,"keydown"),(0,s.mL)(t,"keyup")).pipe((0,p.B)())}}),rt=((0,r.JN)({decrement:"tuiIconChevronLeft",increment:"tuiIconChevronRight"}),(0,r.JN)(a.N)),ot=(0,r.JN)(w.y),st=(0,r.JN)(C.Nm.Textfield),at=new i.OlP("[TUI_TEXTFIELD_HOST]");function lt(t){return{provide:at,useExisting:t}}const ct=(0,r.JN)("Taiga"),ut=new i.OlP("[TUI_VALUE_ACCESSOR]"),ht=new i.OlP("[TUI_VIEWPORT]",{factory:()=>{const t=(0,i.f3M)(d.m9);return{type:"viewport",getClientRect:()=>({top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight})}}});function dt(t){return{provide:ht,useExisting:t}}},47766:(t,e,n)=>{n.d(e,{qK:()=>r,ic:()=>o,DI:()=>s,NK:()=>u});var i=n(33770);function r(t){return!(!t||"undefined"==typeof getComputedStyle)&&("fixed"===getComputedStyle(t).getPropertyValue("position")||r(t.parentElement))}function o({document:t,innerWidth:e}){return Math.max(t.documentElement.clientWidth||0,e||0)}function s(t){const e=t.cloneRange(),{startContainer:n,startOffset:r,endContainer:o,endOffset:s}=e,{ownerDocument:a}=n;if(!a)return e;const l=a.createTreeWalker(a.body,NodeFilter.SHOW_TEXT,i.Lw);l.currentNode=n;do{const t=l.currentNode,o=t.textContent||"",s=t===n?o.slice(0,Math.max(0,r+1)):o,a=Math.max(s.lastIndexOf(" "),s.lastIndexOf(i.f$),s.lastIndexOf(i.tU))+1;if(e.setStart(t,0),a){e.setStart(t,a);break}}while(l.previousNode());l.currentNode=o;do{const t=l.currentNode,n=t.textContent||"",r=t===o?n.slice(s+1):n,a=[r.indexOf(" "),r.indexOf(i.f$),r.indexOf(i.tU)].reduce(((t,e)=>-1===t||-1===e?Math.max(t,e):Math.min(t,e)),-1);if(e.setEnd(t,n.length),-1!==a){e.setEnd(t,a+n.length-r.length);break}}while(l.nextNode());return e}const a='width="',l='height="',c="")));if(!(null==i?void 0:i.includes(a))||!i.includes(l))return`${n.replace(c,``;const r=i.indexOf(a),o=i.indexOf(l),s=r+a.length,u=o+l.length,h=i.slice(s,i.indexOf('"',s)),d=i.slice(u,i.indexOf('"',u));if(!d||!h||h.includes("%")||d.includes("%")||h.includes("em")||d.includes("em"))return n.replace(c,`${n}`}},12067:(t,e,n)=>{n.d(e,{ag:()=>a,lx:()=>c,Lf:()=>l});var i=n(11927),r=n(85648),o=n(33770),s=n(18269);function a(t){return`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function l(t,e){const[,n=""]=function(t){const e=String(t),[n,i]=e.split("e-");let r=e;if(i){const[,e]=n.split("."),o=Number(i)+((null==e?void 0:e.length)||0);r=t.toFixed(o)}return r}(t).split(".");return(0,i.dt)(e)?n.slice(0,Math.max(0,e)):n}function c(t,e={}){const{decimalLimit:n,decimalSeparator:i,thousandSeparator:a,zeroPadding:c,rounding:u}=Object.assign(Object.assign({},s.Jl),e),h=Number.isFinite(n)?(0,r.h0)({value:t,precision:n,method:u}):t,d=String(Math.floor(Math.abs(h)));let p=l(h,n);if(Number.isFinite(n))if(c){const t=Math.max(n-p.length,0);p=`${p}${"0".repeat(t)}`}else p=p.replace(/0*$/,"");const f=d.length%3;let g=(t<0?o.fv:"")+d.charAt(0);for(let t=1;t3&&(g+=a),g+=d.charAt(t);return p?g+i+p:g}},66640:(t,e,n)=>{n.d(e,{_X:()=>s,ht:()=>a,kL:()=>l,jL:()=>c,lp:()=>u,R9:()=>d});var i=n(18269);const r=1.5,o=2.5;function s(t,e=!1,n=!1,i=!1,s="m"){const a="s"===s?0:.25;let l=0;return t&&(l+=r+a),e&&(l+=r+a),n&&(l+=r+a),i&&(l+=o+a),l}function a(t){const e=t.endsWith("/")?t:`${t}/`;return t=>t.startsWith("tuiIcon")?`${e}${t}.svg${i.uJ}#${t}`:(0,i.oA)(t)}function l(t){return 1===t.length||i.Nq.includes(t)}function c(t){const e=t.trim();return e.startsWith("<")&&e.endsWith(">")}function u(t,e){return(n,i)=>{const r=n||Object.assign({},i||e);return Object.keys(t).forEach((e=>{r[e]=t[e]})),r}}const h={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function d(t,e="s"){return h[t]>h[e]}},31081:(t,e,n)=>{n.d(e,{X:()=>i});var i=(()=>(function(t){t.AD="AD",t.AE="AE",t.AF="AF",t.AG="AG",t.AI="AI",t.AL="AL",t.AM="AM",t.AO="AO",t.AR="AR",t.AT="AT",t.AU="AU",t.AW="AW",t.AZ="AZ",t.BA="BA",t.BB="BB",t.BD="BD",t.BE="BE",t.BF="BF",t.BG="BG",t.BH="BH",t.BI="BI",t.BJ="BJ",t.BL="BL",t.BM="BM",t.BN="BN",t.BO="BO",t.BQ="BQ",t.BR="BR",t.BS="BS",t.BT="BT",t.BW="BW",t.BY="BY",t.BZ="BZ",t.CA="CA",t.CD="CD",t.CF="CF",t.CG="CG",t.CH="CH",t.CI="CI",t.CL="CL",t.CM="CM",t.CN="CN",t.CO="CO",t.CR="CR",t.CU="CU",t.CV="CV",t.CW="CW",t.CY="CY",t.CZ="CZ",t.DE="DE",t.DJ="DJ",t.DK="DK",t.DM="DM",t.DO="DO",t.DZ="DZ",t.EC="EC",t.EE="EE",t.EG="EG",t.ER="ER",t.ES="ES",t.ET="ET",t.FI="FI",t.FJ="FJ",t.FK="FK",t.FM="FM",t.FR="FR",t.GA="GA",t.GB="GB",t.GD="GD",t.GE="GE",t.GF="GF",t.GH="GH",t.GI="GI",t.GL="GL",t.GM="GM",t.GN="GN",t.GP="GP",t.GQ="GQ",t.GR="GR",t.GT="GT",t.GW="GW",t.GY="GY",t.HK="HK",t.HN="HN",t.HR="HR",t.HT="HT",t.HU="HU",t.ID="ID",t.IE="IE",t.IL="IL",t.IN="IN",t.IQ="IQ",t.IR="IR",t.IS="IS",t.IT="IT",t.JM="JM",t.JO="JO",t.JP="JP",t.KE="KE",t.KG="KG",t.KH="KH",t.KM="KM",t.KN="KN",t.KP="KP",t.KR="KR",t.KW="KW",t.KY="KY",t.KZ="KZ",t.LA="LA",t.LB="LB",t.LC="LC",t.LI="LI",t.LK="LK",t.LR="LR",t.LS="LS",t.LT="LT",t.LU="LU",t.LV="LV",t.LY="LY",t.MA="MA",t.MC="MC",t.MD="MD",t.ME="ME",t.MF="MF",t.MG="MG",t.MK="MK",t.ML="ML",t.MM="MM",t.MN="MN",t.MO="MO",t.MQ="MQ",t.MR="MR",t.MS="MS",t.MT="MT",t.MU="MU",t.MV="MV",t.MW="MW",t.MX="MX",t.MY="MY",t.MZ="MZ",t.NA="NA",t.NC="NC",t.NE="NE",t.NG="NG",t.NI="NI",t.NL="NL",t.NO="NO",t.NP="NP",t.NZ="NZ",t.OM="OM",t.PA="PA",t.PE="PE",t.PF="PF",t.PG="PG",t.PH="PH",t.PK="PK",t.PL="PL",t.PT="PT",t.PW="PW",t.PY="PY",t.QA="QA",t.RE="RE",t.RO="RO",t.RS="RS",t.RU="RU",t.RW="RW",t.SA="SA",t.SB="SB",t.SC="SC",t.SD="SD",t.SE="SE",t.SG="SG",t.SH="SH",t.SI="SI",t.SK="SK",t.SL="SL",t.SM="SM",t.SN="SN",t.SO="SO",t.SR="SR",t.ST="ST",t.SV="SV",t.SX="SX",t.SY="SY",t.SZ="SZ",t.TC="TC",t.TD="TD",t.TG="TG",t.TH="TH",t.TJ="TJ",t.TL="TL",t.TM="TM",t.TN="TN",t.TO="TO",t.TR="TR",t.TT="TT",t.TW="TW",t.TZ="TZ",t.UA="UA",t.UG="UG",t.US="US",t.UY="UY",t.UZ="UZ",t.VC="VC",t.VE="VE",t.VG="VG",t.VN="VN",t.VU="VU",t.WS="WS",t.XK="XK",t.YE="YE",t.YT="YT",t.ZA="ZA",t.ZM="ZM",t.ZW="ZW"}(i||(i={})),i))()},47232:(t,e,n)=>{n.d(e,{v:()=>p});var i=n(74788),r=n(31081);const o={months:["January","February","March","April","May","June","July","August","September","October","November","December"],close:"Close",nothingFoundMessage:"Nothing found",defaultErrorMessage:"Value is invalid",spinTexts:["Previous","Next"],shortWeekDays:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],countries:{[r.X.AD]:"Andorra",[r.X.AE]:"United Arab Emirates",[r.X.AF]:"Afghanistan",[r.X.AG]:"Antigua and Barbuda",[r.X.BL]:"Saint Barthélemy",[r.X.AI]:"Anguilla",[r.X.AL]:"Albania",[r.X.AM]:"Armenia",[r.X.AO]:"Angola",[r.X.AR]:"Argentina",[r.X.AT]:"Austria",[r.X.AU]:"Australia",[r.X.AW]:"Aruba",[r.X.AZ]:"Azerbaijan",[r.X.BA]:"Bosnia and Herzegovina",[r.X.BB]:"Barbados",[r.X.BD]:"Bangladesh",[r.X.BE]:"Belgium",[r.X.BF]:"Burkina Faso",[r.X.BG]:"Bulgaria",[r.X.BH]:"Bahrain",[r.X.BI]:"Burundi",[r.X.BJ]:"Benin",[r.X.GF]:"Guyana",[r.X.BM]:"Bermuda",[r.X.BN]:"Brunei Darussalam",[r.X.BO]:"Bolivia",[r.X.BQ]:"Bonaire, Sint Eustatius and Saba",[r.X.BR]:"Brazil",[r.X.BS]:"Bahamas",[r.X.BT]:"Bhutan",[r.X.BW]:"Botswana",[r.X.BY]:"Belarus",[r.X.BZ]:"Belize",[r.X.CA]:"Canada",[r.X.CD]:"Dem. Rep. Congo (Kinshasa)",[r.X.CF]:"Central African Republic",[r.X.CG]:"Congo (Brazzaville)",[r.X.CH]:"Switzerland",[r.X.CI]:"Ivory Coast",[r.X.CL]:"Chile",[r.X.CM]:"Cameroon",[r.X.CN]:"China",[r.X.CO]:"Colombia",[r.X.CR]:"Costa Rica",[r.X.CU]:"Cuba",[r.X.CV]:"Cape Verde",[r.X.CW]:"Curaçao",[r.X.CY]:"Cyprus",[r.X.CZ]:"Czech Republic",[r.X.DE]:"Germany",[r.X.DJ]:"Djibouti",[r.X.DK]:"Denmark",[r.X.DM]:"Dominica",[r.X.DO]:"Dominican Republic",[r.X.DZ]:"Algeria",[r.X.EC]:"Ecuador",[r.X.EE]:"Estonia",[r.X.EG]:"Egypt",[r.X.ER]:"Eritrea",[r.X.ES]:"Spain",[r.X.ET]:"Ethiopia",[r.X.FI]:"Finland",[r.X.FJ]:"Fiji",[r.X.FK]:"Falkland Islands",[r.X.FM]:"F.S. of Micronesia",[r.X.FR]:"France",[r.X.GA]:"Gabon",[r.X.GB]:"United Kingdom",[r.X.GD]:"Grenada",[r.X.GE]:"Georgia",[r.X.GP]:"Guadeloupe",[r.X.GH]:"Ghana",[r.X.GI]:"Gibraltar",[r.X.GL]:"Greenland",[r.X.GM]:"Gambia",[r.X.GN]:"Guinea",[r.X.MF]:"Saint-Martin",[r.X.GQ]:"Equatorial Guinea",[r.X.GR]:"Greece",[r.X.GT]:"Guatemala",[r.X.GW]:"Guinea-Bissau",[r.X.GY]:"Guyana",[r.X.HK]:"Hong Kong",[r.X.HN]:"Honduras",[r.X.HR]:"Croatia",[r.X.HT]:"Haiti",[r.X.HU]:"Hungary",[r.X.ID]:"Indonesia",[r.X.IE]:"Ireland",[r.X.IL]:"Israel",[r.X.IN]:"India",[r.X.IQ]:"Iraq",[r.X.IR]:"Iran",[r.X.IS]:"Iceland",[r.X.IT]:"Italy",[r.X.JM]:"Jamaica",[r.X.JO]:"Jordan",[r.X.JP]:"Japan",[r.X.KE]:"Kenya",[r.X.KG]:"Kyrgyzstan",[r.X.KH]:"Cambodia",[r.X.KM]:"Comoros",[r.X.KN]:"Saint Kitts and Nevis",[r.X.KP]:"Korean PDR",[r.X.KR]:"Rep. Korea",[r.X.KW]:"Kuwait",[r.X.KY]:"Cayman Islands",[r.X.KZ]:"Kazakhstan",[r.X.LA]:"Laos",[r.X.LB]:"Lebanon",[r.X.LC]:"Saint Lucia",[r.X.LI]:"Liechtenstein",[r.X.LK]:"Sri Lanka",[r.X.LR]:"Liberia",[r.X.LS]:"Lesotho",[r.X.LT]:"Lithuania",[r.X.LU]:"Luxembourg",[r.X.LV]:"Latvia",[r.X.LY]:"Libya",[r.X.MA]:"Morocco",[r.X.MC]:"Monaco",[r.X.MD]:"Moldova",[r.X.ME]:"Montenegro",[r.X.MQ]:"Martinique",[r.X.MG]:"Madagascar",[r.X.MK]:"Rep. of North Macedonia",[r.X.ML]:"Mali",[r.X.MM]:"Burma (Myanmar)",[r.X.MN]:"Mongolia",[r.X.MO]:"Macau",[r.X.RE]:"Réunion",[r.X.MR]:"Mauritania",[r.X.MS]:"Montserrat",[r.X.MT]:"Malta",[r.X.MU]:"Mauritius",[r.X.MV]:"Maldives",[r.X.MW]:"Malawi",[r.X.MX]:"Mexico",[r.X.MY]:"Malaysia",[r.X.MZ]:"Mozambique",[r.X.NA]:"Namibia",[r.X.NC]:"New Caledonia",[r.X.NE]:"Niger",[r.X.NG]:"Nigeria",[r.X.NI]:"Nicaragua",[r.X.NL]:"Netherlands",[r.X.NO]:"Norway",[r.X.NP]:"Nepal",[r.X.NZ]:"New Zealand",[r.X.OM]:"Oman",[r.X.PA]:"Panama",[r.X.PE]:"Peru",[r.X.PF]:"French Polynesia (Tahiti)",[r.X.PG]:"Papua New Guinea",[r.X.PH]:"Philippines",[r.X.PK]:"Pakistan",[r.X.PL]:"Poland",[r.X.PT]:"Portugal",[r.X.PW]:"Palau",[r.X.PY]:"Paraguay",[r.X.QA]:"Qatar",[r.X.YT]:"Mayotte",[r.X.RO]:"Romania",[r.X.RS]:"Serbia",[r.X.RU]:"Russia",[r.X.RW]:"Rwanda",[r.X.SA]:"Saudi Arabia",[r.X.SB]:"Solomon Islands",[r.X.SC]:"Seychelles",[r.X.SD]:"Sudan",[r.X.SE]:"Sweden",[r.X.SG]:"Singapore",[r.X.SH]:"Saint Helena",[r.X.SI]:"Slovenia",[r.X.SK]:"Slovakia",[r.X.SL]:"Sierra Leone",[r.X.SM]:"San Marino",[r.X.SN]:"Senegal",[r.X.SO]:"Somalia",[r.X.SR]:"Suriname",[r.X.ST]:"Sao Tome and Principe",[r.X.SV]:"El Salvador",[r.X.SX]:"Sint Maarten",[r.X.SY]:"Syrian Arab Republic",[r.X.SZ]:"Swaziland",[r.X.TC]:"Turks and Caicos",[r.X.TD]:"Chad",[r.X.TG]:"Togo",[r.X.TH]:"Thailand",[r.X.TJ]:"Tajikistan",[r.X.TL]:"East Timor",[r.X.TM]:"Turkmenistan",[r.X.TN]:"Tunisia",[r.X.TO]:"Tonga",[r.X.TR]:"Turkey",[r.X.TT]:"Trinidad and Tobago",[r.X.TW]:"Taiwan",[r.X.TZ]:"Tanzania",[r.X.UA]:"Ukraine",[r.X.UG]:"Uganda",[r.X.US]:"USA",[r.X.UY]:"Uruguay",[r.X.UZ]:"Uzbekistan",[r.X.VC]:"Saint Vincent and the Grenadines",[r.X.VE]:"Venezuela",[r.X.VG]:"British Virgin Islands",[r.X.VN]:"Vietnam",[r.X.VU]:"Vanuatu",[r.X.WS]:"Samoa",[r.X.XK]:"Kosovo",[r.X.YE]:"Yemen",[r.X.ZA]:"South Africa",[r.X.ZM]:"Zambia",[r.X.ZW]:"Zimbabwe"}},s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},o),{cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range"],range:["from","to"],countTexts:["Plus","Minus"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"dd.mm.yyyy",MDY:"mm.dd.yyyy",YMD:"yyyy.mm.dd"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Show password","Hide password"],copyTexts:["Copy","Copied"],shortCalendarMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pagination:["Previous page","Next page"],fileTexts:{loadingError:"Upload failed",preview:"Preview",remove:"Remove"},inputFileTexts:{defaultLabelSingle:"or drop it here",defaultLabelMultiple:"or drop them here",defaultLinkSingle:"Choose a file",defaultLinkMultiple:"Choose files",maxSizeRejectionReason:"File is too large ",formatRejectionReason:"Wrong file type",drop:"Drop file here",dropMultiple:"Drop files here"},multiSelectTexts:{all:"Select all",none:"Select none"},prompt:{yes:"Yes",no:"No"}}),{showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}}),{cardNumber:["Number","Card number"],cardExpiry:["Expires","Valid through"]}),{colorSelectorModeNames:["Solid color","Gradient"],toolbarTools:{undo:"Undo",redo:"Redo",font:"Font",fontStyle:"Font style",fontSize:"Font size",bold:"Bold",italic:"Italic",underline:"Underline",strikeThrough:"Strike through",justify:"Justify",justifyLeft:"Justify left",justifyCenter:"Justify center",justifyRight:"Justify right",justifyFull:"Justify full",list:"List",indent:"Indent",outdent:"Outdent",unorderedList:"Unordered list",orderedList:"Ordered list",quote:"Quote",foreColor:"Color",backColor:"Background color",hiliteColor:"Highlight color",clear:"Clear",link:"Link",attach:"Attach file",tex:"Insert TeX",code:"Code",image:"Insert image",insertHorizontalRule:"Insert horizontal rule",superscript:"Superscript",subscript:"Subscript",insertTable:"Insert table",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"Merge cells",splitCells:"Split cells",rowsColumnsManaging:"Managing rows and columns",cellColor:"Cell color",setDetails:"Details",removeDetails:"Remove details"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Insert column before","Insert column after"],["Insert row before","Insert row after"],["Delete column","Delete row"]],editorCodeOptions:["Code in the text","Code in block"],editorFontOptions:{small:"Small",large:"Large",normal:"Normal",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}});var a=n(25917);const l=new i.OlP("[TUI_DEFAULT_LANGUAGE]",{factory:()=>s}),c=new i.OlP("[TUI_LANGUAGE]",{factory:()=>(0,a.of)((0,i.f3M)(l))});new i.OlP("[TUI_LANGUAGE_LOADER]"),new i.OlP("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});var u=n(95639),h=n(43190),d=n(88002);function p(t){return()=>(0,i.f3M)(c).pipe((0,h.w)((t=>(0,u.b)(t)?t:(0,a.of)(t))),(0,d.U)((e=>e[t])))}},35575:(t,e,n)=>{n.d(e,{Ii:()=>_,_j:()=>p,Mt:()=>m});var i=n(74788),r=n(54789),o=n(66640),s=n(23917),a=n(79588),l=n(89570),c=n(11927),u=n(12057);function h(t,e){if(1&t&&i._UZ(0,"tui-svg",2),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function d(t,e){1&t&&i.GkF(0)}const p=(0,c.JN)({iconSmall:"tuiIconChevronDown",iconLarge:"tuiIconChevronDownLarge"});let f=(()=>{class t{constructor(t,e,n){this.dropdown=t,this.textfieldSize=e,this.options=n}get rotated(){return this.dropdown.open}get arrowIcon(){return(0,o.R9)(this.textfieldSize.size)?this.options.iconLarge:this.options.iconSmall}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.o1),i.Y36(a.kI),i.Y36(p))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-arrow"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_rotated",e.rotated)},decls:3,vars:4,consts:[[3,"src",4,"polymorpheusOutlet"],[4,"ngIf"],[3,"src"]],template:function(t,e){1&t&&(i.YNc(0,h,1,1,"tui-svg",0),i.YNc(1,d,1,0,"ng-container",1),i.ALo(2,"async")),2&t&&(i.Q6J("polymorpheusOutlet",e.arrowIcon),i.xp6(1),i.Q6J("ngIf",i.lcZ(2,2,e.dropdown.openChange)))},directives:[l.Li,u.O5,r.PN],pipes:[u.Ov],styles:["[_nghost-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}._rotated[_nghost-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),t})();const g=new l.Al(f);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[u.ez,r.EI,l.wq]]}),t})();const v={interactive:g,disabled:g},_=(0,c.JN)(v)},4246:(t,e,n)=>{n.d(e,{eC:()=>b,zX:()=>w});var i=n(74788),r=n(75111),o=n(40719),s=n(79588),a=n(79456),l=n(75046),c=n(32498),u=n(33770),h=n(57179),d=n(11927),p=n(12057),f=n(89570);function g(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function m(t,e){if(1&t&&(i.TgZ(0,"button",4,5),i.TgZ(2,"span",6),i.YNc(3,g,2,1,"ng-container",7),i.qZA(),i.qZA()),2&t){const t=e.$implicit,n=i.MAs(1),r=i.oxw(2);i.Q6J("disabled",r.disabledItemHandler(t))("value",t),i.xp6(3),i.Q6J("polymorpheusOutlet",r.itemContent)("polymorpheusOutletContext",r.getContext(t,n))}}function v(t,e){if(1&t&&(i.TgZ(0,"tui-data-list",2),i.YNc(1,m,4,4,"button",3),i.qZA()),2&t){const t=i.oxw();i.Q6J("emptyContent",t.emptyContent)("size",t.size),i.xp6(1),i.Q6J("ngForOf",t.items)}}function _(t,e){1&t&&i._UZ(0,"tui-loader",8)}let y=(()=>{class t{constructor(t,e){this.itemsHandlers=t,this.defaultSize=e,this.optionsQuery=u.Mm,this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.size=this.defaultSize,this.itemContent=({$implicit:t})=>this.itemsHandlers.stringify(t)}getContext(t,{nativeElement:e}){return{$implicit:t,active:(0,h.V8)(e)}}getOptions(t=!1){return this.optionsQuery.filter((({disabled:e})=>t||!e)).map((({value:t})=>t)).filter(d.Pc)}}return t.ɵfac=function(t){i.$Z()},t.ɵdir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(r.vK,5),2&t){let t;i.iGM(t=i.CRH())&&(e.optionsQuery=t)}},inputs:{disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",size:"size",itemContent:"itemContent"}}),t})(),b=(()=>{class t extends y{constructor(t,e){super(t,(null==e?void 0:e.size)||"m"),this.items=[]}}return t.ɵfac=function(e){return new(e||t)(i.Y36(l.Ys),i.Y36(s.Cs,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-data-list-wrapper",3,"labels",""]],inputs:{items:"items"},features:[i._Bn([(0,a.RB)(t),s.Y0]),i.qOj],decls:3,vars:2,consts:[[3,"emptyContent","size",4,"ngIf","ngIfElse"],["loading",""],[3,"emptyContent","size"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value"],["elementRef","elementRef"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-data-list-wrapper__loader",1,"t-loader"]],template:function(t,e){if(1&t&&(i.YNc(0,v,2,3,"tui-data-list",0),i.YNc(1,_,1,0,"ng-template",null,1,i.W1O)),2&t){const t=i.MAs(2);i.Q6J("ngIf",e.items)("ngIfElse",t)}},directives:[p.O5,r.qi,p.sg,r.vK,c.U,f.Li,o.kM],styles:["[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}"],changeDetection:0}),t})(),w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[p.ez,f.wq,c.D,r.pc,o.dS]]}),t})()},72764:(t,e,n)=>{n.d(e,{qS:()=>D,g5:()=>L,_H:()=>N});var i=n(97582),r=n(74788),o=n(24751),s=n(72878),a=n(11927),l=n(76480),c=n(33770),u=n(85648),h=n(99434),d=n(44358),p=n(52697),f=n(79588),g=n(12628),m=n(12067),v=n(79456),_=n(43631),y=n(89570),b=n(75093),w=n(45642),C=n(12057);function x(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t," ")}}function O(t,e){if(1&t&&(r.TgZ(0,"div",6),r.YNc(1,x,2,1,"ng-container",7),r.qZA()),2&t){r.oxw();const t=r.MAs(9);r.xp6(1),r.Q6J("polymorpheusOutlet",t)}}function k(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"section",8),r.TgZ(1,"button",9),r.NdJ("click.prevent",(function(){r.CHM(t);const e=r.oxw();return e.onArrow(e.step)}))("mousedown.prevent",(function(){r.CHM(t);const e=r.oxw();return null==e.nativeFocusableElement?null:e.nativeFocusableElement.focus()})),r._uU(2," + "),r.qZA(),r.TgZ(3,"button",9),r.NdJ("click.prevent",(function(){r.CHM(t);const e=r.oxw();return e.onArrow(-e.step)}))("mousedown.prevent",(function(){r.CHM(t);const e=r.oxw();return null==e.nativeFocusableElement?null:e.nativeFocusableElement.focus()})),r._uU(4," - "),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(),e=r.MAs(1);r.xp6(1),r.Q6J("appearance",e.appearance)("disabled",!t.canIncrement)("focusable",!1)("icon",t.options.icons.up),r.xp6(2),r.Q6J("appearance",e.appearance)("disabled",!t.canDecrement)("focusable",!1)("icon",t.options.icons.down)}}function M(t,e){1&t&&r.GkF(0)}function P(t,e){1&t&&r.Hsn(0,2)}const S=["*",[["input"]],[["tuiContent"]]],E=["*","input","tuiContent"],A={icons:{up:"tuiIconPlus",down:"tuiIconMinus"},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,step:0,decimal:"not-zero",precision:2},T=(0,a.JN)(A),I=new r.OlP("");let D=(()=>{class t extends l.F9{constructor(t,e,n,i,r,o,s,a){super(t,e,n),this.options=i,this.numberFormat=r,this.isIOS=o,this.textfieldSize=s,this.controller=a,this.unfinishedValue="",this.min=this.options.min,this.max=this.options.max,this.decimal=this.options.decimal,this.precision=this.options.precision,this.step=this.options.step,this.prefix="",this.postfix="",this.polymorpheusValueContent=c.Mm}get size(){return this.textfieldSize.size}get computedMin(){return this.computeMin(this.min,this.max)}get computedMax(){return this.computeMax(this.min,this.max)}get nativeFocusableElement(){return!this.textfield||this.computedDisabled?null:this.textfield.nativeFocusableElement}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get isNegativeAllowed(){return this.computedMin<0}get inputMode(){return this.isIOS&&this.isNegativeAllowed?"text":"never"===this.decimal?"numeric":"decimal"}get calculatedMaxLength(){return 18+("never"!==this.decimal&&this.nativeValue.includes(this.numberFormat.decimalSeparator)?Math.min(this.precision+1,20):0)+this.numberFormat.thousandSeparator.repeat(5).length}get formattedValue(){return null!==this.value?this.getFormattedValue(this.value||0):""}get computedValue(){return this.focused?this.nativeValue:this.formattedValue}get canDecrement(){return this.interactive&&(this.value||0)>this.computedMin}get canIncrement(){return this.interactive&&(this.value||0)this.computedMax||(this.value=e)}onFocused(t){this.updateFocused(t);const e=this.unfinishedValue?(0,s.vZ)(this.unfinishedValue,this.numberFormat.decimalSeparator):this.nativeNumberValue;if(this.unfinishedValue=null,Number.isNaN(e))return this.nativeValue=t?this.computedPrefix+this.computedPostfix:"",void(this.value=null);t||(this.value=e,this.nativeValue=this.formattedValue)}getFormattedValue(t){const e=Math.abs(t)%1>0;let n="always"===this.decimal||e&&"never"!==this.decimal?this.precision:0;const i=e?(0,m.Lf)(t,this.precision):"";return this.focused&&"always"!==this.decimal&&(n=i.length),this.computedPrefix+(0,m.lx)(t,Object.assign(Object.assign({},this.numberFormat),{decimalLimit:n})).replace(c.fv,c.em)+this.computedPostfix}get isNativeValueNotFinished(){const t=this.nativeNumberValue;return t<0?t>this.computedMax:t[l.length,t.length-c.length]))]})}}return t.ɵfac=function(e){return new(e||t)(r.Y36(o.a5,10),r.Y36(r.sBO),r.Y36(I,8),r.Y36(T),r.Y36(v.HO),r.Y36(h.FA),r.Y36(f.kI),r.Y36(f.Cs))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-input-number"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,y.Li,5),2&t){let t;r.iGM(t=r.CRH())&&(e.polymorpheusValueContent=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(p.yc,5),2&t){let t;r.iGM(t=r.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&r.NdJ("keydown.arrowDown",(function(){return e.onArrow(-e.step)}))("keydown.arrowUp",(function(){return e.onArrow(e.step)})),2&t&&r.uIk("data-size",e.size)},inputs:{min:"min",max:"max",decimal:"decimal",precision:"precision",step:"step",prefix:"prefix",postfix:"postfix"},features:[r._Bn([(0,h.FT)(t),(0,l.wB)(t),f.Y0]),r.qOj],ngContentSelectors:E,decls:10,vars:14,consts:[["tuiTextfieldPostfix","","tuiTextfieldPrefix","","tuiValueAccessor","",1,"t-textfield",3,"disabled","focusable","invalid","maskito","pseudoActive","pseudoFocus","pseudoHover","readOnly","value","focusedChange","valueChange"],["textfield",""],["ngProjectAs","tuiContent","class","t-value-content",5,["tuiContent"],4,"ngIf"],["class","t-buttons",4,"ngIf"],[4,"ngIf"],["valueContent",""],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value-content"],[4,"polymorpheusOutlet"],[1,"t-buttons"],["size","s","tuiIconButton","","type","button",1,"t-button",3,"appearance","disabled","focusable","icon","click.prevent","mousedown.prevent"]],template:function(t,e){1&t&&(r.F$t(S),r.TgZ(0,"tui-primitive-textfield",0,1),r.NdJ("focusedChange",(function(t){return e.onFocused(t)}))("valueChange",(function(t){return e.onValueChange(t)})),r.Hsn(2),r.Hsn(3,1,["ngProjectAs","input",5,["input"]]),r.YNc(4,O,2,1,"div",2),r.qZA(),r.YNc(5,k,5,8,"section",3),r.YNc(6,M,1,0,"ng-container",4),r.ALo(7,"async"),r.YNc(8,P,1,0,"ng-template",null,5,r.W1O)),2&t&&(r.Q6J("disabled",e.computedDisabled)("focusable",e.focusable)("invalid",e.computedInvalid)("maskito",e.mask)("pseudoActive",e.pseudoActive)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("value",e.computedValue),r.xp6(4),r.Q6J("ngIf",e.polymorpheusValueContent.length),r.xp6(1),r.Q6J("ngIf",e.step),r.xp6(1),r.Q6J("ngIf",r.lcZ(7,12,e.polymorpheusValueContent.changes)))},directives:[p.yc,p.B1,f.Tq,f.A7,b.n,w.ro,C.O5,y.Li,g.v0],pipes:[C.Ov],styles:["[_nghost-%COMP%]{display:flex;border-radius:var(--tui-radius-m);text-align:left}.t-textfield[_ngcontent-%COMP%]{flex:1;max-width:100%;border-radius:inherit;text-align:inherit}.t-textfield[_ngcontent-%COMP%]:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.t-value-content[_ngcontent-%COMP%]{width:100%}.t-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;margin-left:.125rem;border-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%]{flex-direction:row-reverse}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:first-child{margin:0 0 0 .125rem;border-top-right-radius:inherit;border-bottom-right-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:last-child{border-radius:0}[data-size=m][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-m) * .75)}[data-size=l][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-l) * .75)}.t-button[_ngcontent-%COMP%]{display:flex;flex:1;height:auto;border-radius:0}.t-button[_ngcontent-%COMP%]:first-child{margin-bottom:.125rem;border-top-right-radius:inherit}.t-button[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:inherit}"],changeDetection:0}),(0,i.gn)([d.UM],t.prototype,"computeMin",null),(0,i.gn)([d.UM],t.prototype,"computeMax",null),(0,i.gn)([d.UM],t.prototype,"calculateMask",null),t})(),L=(()=>{class t extends _.D1{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.inputMode=this.host.inputMode,this.host.nativeFocusableElement.maxLength=this.host.nativeFocusableElement.maxLength>0?this.host.nativeFocusableElement.maxLength:this.host.calculatedMaxLength)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵdir=r.lG2({type:t,selectors:[["tui-input-number"]],features:[r._Bn([(0,v.cp)(t)]),r.qOj]}),t})(),N=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[C.ez,w.U5,p.KW,f.cn,b.S,y.wq,g.fN]]}),t})()},21673:(t,e,n)=>{n.d(e,{K3:()=>y,wU:()=>b,Qf:()=>w});var i=n(74788),r=n(24751),o=n(221),s=n(76480),a=n(57179),l=n(99434),c=n(23917),u=n(52697),h=n(79588),d=n(75111),p=n(79456),f=n(43631),g=n(93213),m=n(12057);const v=["*",[["input"]]],_=["*","input"];let y=(()=>{class t extends s.M${constructor(t,e,n){super(t,e),this.textfieldSize=n,this.open=!1}get size(){return this.textfieldSize.size}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){return(0,a.V8)(this.nativeFocusableElement)||!!this.hostedDropdown&&this.hostedDropdown.focused}get canOpen(){return this.interactive&&!!this.datalist}onValueChange(t){this.value=t,this.open=!0}onActiveZone(t){this.updateFocused(t)}handleOption(t){this.setNativeValue(String(t)),this.focusInput(),this.value=String(t),this.open=!1}getFallbackValue(){return""}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}setNativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(h.kI))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-input"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,d.gX,5,i.Rgc),2&t){let t;i.iGM(t=i.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(i.Gf(c.o1,5),i.Gf(u.yc,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.hostedDropdown=t.first),i.iGM(t=i.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-size",e.size)},features:[i._Bn([g.E2,(0,l.FT)(t),(0,p.oE)(t),(0,s.wB)(t)],[g.yn]),i.qOj],ngContentSelectors:_,decls:4,vars:11,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["automation-id","tui-input__textfield",1,"t-textfield",3,"disabled","focusable","invalid","nativeId","pseudoFocus","pseudoHover","readOnly","value","valueChange"]],template:function(t,e){1&t&&(i.F$t(v),i.TgZ(0,"tui-hosted-dropdown",0),i.NdJ("openChange",(function(t){return e.open=t}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),i.TgZ(1,"tui-primitive-textfield",1),i.NdJ("valueChange",(function(t){return e.onValueChange(t)})),i.Hsn(2),i.Hsn(3,1,["ngProjectAs","input",5,["input"]]),i.qZA(),i.qZA()),2&t&&(i.Q6J("canOpen",e.canOpen)("content",e.datalist||"")("open",e.open),i.xp6(1),i.Q6J("disabled",e.computedDisabled)("focusable",e.computedFocusable)("invalid",e.computedInvalid)("nativeId",e.nativeId)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("value",e.value))},directives:[c.o1,o.e,u.yc,u.B1],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0}),t})(),b=(()=>{class t extends f.D1{onValueChange(t){this.host.onValueChange(t)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["tui-input"]],features:[i._Bn([(0,p.cp)(t)]),i.qOj]}),t})(),w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[m.ez,o.A,u.KW,c.jh]]}),t})()},53248:(t,e,n)=>{n.d(e,{uJ:()=>nt,OI:()=>it,Jy:()=>rt});var i=n(74788),r=n(23917),o=n(52697),s=n(79588),a=n(91489),l=n(75111),c=n(79456),u=n(43631),h=n(76480),d=n(27103),p=n(75046);let f=(()=>{class t{constructor(t,e,n,i,r){this.host=t,this.control=e,this.el=n,this.idService=i,this.itemsHandlers=r,this.disabledItemHandler=null,this.datalist=null}get id(){return this.el.nativeElement.id||this.idService.generate()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(c.S0),i.Y36(h.M$),i.Y36(i.SBq),i.Y36(d.ll),i.Y36(p.Ys))},t.ɵdir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(l.gX,7,i.Rgc),2&t){let t;i.iGM(t=i.CRH())&&(e.datalist=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&i.Ikx("id",e.id)},inputs:{disabledItemHandler:"disabledItemHandler"}}),t})();var g=n(4246),m=n(12057);let v=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var _=n(24751),y=n(221),b=n(11927),w=n(57179),C=n(99434),x=n(35575),O=n(66749),k=n(33770),M=n(54789),P=n(18269),S=n(41291),E=n(46782);let A=(()=>{class t{constructor(t,e){this.el=t,this.destroy$=e}set tuiScrollIntoView(t){t&&(0,S.H)(0).pipe((0,E.R)(this.destroy$)).subscribe((()=>{this.el.nativeElement.dispatchEvent(new CustomEvent(P.fe,{bubbles:!0,detail:this.el.nativeElement}))}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(d.a3,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[i._Bn([d.a3])]}),t})(),T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var I=n(89570),D=n(79765),L=n(66682),N=n(59193),z=n(39761),F=n(88002),R=n(87519);function B(t,e){if(1&t&&i._UZ(0,"tui-svg",3),2&t){const t=i.oxw();i.Q6J("src",t.icons.check)("tuiScrollIntoView",!0)}}function j(t,e){1&t&&i._UZ(0,"span",4)}let $=(()=>{class t{constructor(t,e,n,i,r,o,s,a){this.icons=t,this.context=e,this.host=n,this.el=i,this.option=r,this.dataList=o,this.control=s,this.abstractControl=a,this.changeDetection$=new D.xQ,this.selected$=(0,L.T)(this.changeDetection$,this.control.valueChanges||N.E,(0,O.mL)(this.el.nativeElement,"animationstart")).pipe((0,z.O)(null),(0,F.U)((()=>this.selected)),(0,R.x)())}get matcher(){return this.host.identityMatcher||k.bg}ngDoCheck(){this.changeDetection$.next()}ngOnInit(){Promise.resolve().then((()=>{(0,b.Pc)(this.option.value)&&this.host.checkOption&&this.host.checkOption(this.option.value)}))}get value(){var t,e;return null!==(e=null===(t=this.abstractControl)||void 0===t?void 0:t.value)&&void 0!==e?e:this.control.value}get selected(){return(0,b.Pc)(this.option.value)&&(0,b.Pc)(this.value)&&this.matcher(this.value,this.option.value)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(c.Gs),i.Y36(I.yf),i.Y36(c.N1),i.Y36(i.SBq),i.Y36(l.vK),i.Y36(l.qi,8),i.Y36(_.a5),i.Y36(h.M$,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-select-option"]],decls:5,vars:5,consts:[[3,"ngTemplateOutlet"],["automation-id","tui-select-option__checkmark","class","t-checkmark",3,"src","tuiScrollIntoView",4,"ngIf","ngIfElse"],["dummy",""],["automation-id","tui-select-option__checkmark",1,"t-checkmark",3,"src","tuiScrollIntoView"],[1,"t-dummy"]],template:function(t,e){if(1&t&&(i.GkF(0,0),i.YNc(1,B,1,2,"tui-svg",1),i.ALo(2,"async"),i.YNc(3,j,1,0,"ng-template",null,2,i.W1O)),2&t){const t=i.MAs(4);i.Q6J("ngTemplateOutlet",e.context.$implicit),i.xp6(1),i.Q6J("ngIf",i.lcZ(2,3,e.selected$))("ngIfElse",t)}},directives:[m.tP,m.O5,M.PN,A],pipes:[m.Ov],styles:['@keyframes retrigger{0%{left:1px}to{left:2px}}[_nghost-%COMP%]{display:flex;flex:1;align-items:center;max-width:100%;animation:retrigger 1s}.t-checkmark[_ngcontent-%COMP%]{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-border-start:.25rem solid transparent;border-inline-start:.25rem solid transparent}tui-data-list[data-list-size="s"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-list-size="s"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}tui-data-list[data-list-size="m"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-list-size="m"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}.t-dummy[_ngcontent-%COMP%]{width:1.5rem}'],changeDetection:0}),t})();const V=new I.Al($);let U=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[m.ez,M.EI,T]]}),t})();var Y=n(93213);function q(t,e){1&t&&i.Hsn(0,2,["*ngIf","isMobile"])}function H(t,e){if(1&t&&i.YNc(0,q,1,0,"ng-content",6),2&t){const t=i.oxw();i.Q6J("ngIf",t.isMobile)}}function Z(t,e){1&t&&i.GkF(0,7)}function G(t,e){if(1&t&&i._UZ(0,"div",10),2&t){const t=e.polymorpheusOutlet;i.Q6J("textContent",t)}}const J=function(t,e){return{$implicit:t,active:e}};function X(t,e){if(1&t&&(i.TgZ(0,"div",8),i.YNc(1,G,1,1,"div",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.computedContent)("polymorpheusOutletContext",i.WLB(2,J,t.value,t.computedFocused))}}function Q(t,e){1&t&&i.GkF(0)}function W(t,e){if(1&t&&(i.TgZ(0,"div",11),i.YNc(1,Q,1,0,"ng-container",12),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.arrow)}}const K=["*",[["input"]],[["select"]]],tt=["*","input","select"],et=(0,b.JN)({valueContent:""});let nt=(()=>{class t extends h.F9{constructor(t,e,n,i,r,o,s,a){super(t,e),this.textfieldCleaner=n,this.textfieldSize=i,this.arrowMode=r,this.itemsHandlers=o,this.options=s,this.isMobile=a,this.stringify=this.itemsHandlers.stringify,this.identityMatcher=this.itemsHandlers.identityMatcher,this.valueContent=this.options.valueContent}get size(){return this.textfieldSize.size}get arrow(){return this.interactive?this.arrowMode.interactive:this.arrowMode.disabled}get nativeFocusableElement(){return this.textfield?this.textfield.nativeFocusableElement:null}get focused(){return(0,w.V8)(this.nativeFocusableElement)||!!this.hostedDropdown&&this.hostedDropdown.focused}get nativeDropdownMode(){return!!this.nativeSelect&&this.isMobile}get computedValue(){return null===this.value?"":this.stringify(this.value)||" "}get computedContent(){return this.valueContent||this.computedValue}onValueChange(t){this.value=t&&t||null}onActiveZone(t){this.updateFocused(t)}onKeyDownDelete(){this.textfieldCleaner.cleaner&&(this.value=null)}handleOption(t){var e;this.focusInput(),this.value=t,null===(e=this.hostedDropdown)||void 0===e||e.updateOpen(!1)}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}}return t.ɵfac=function(e){return new(e||t)(i.Y36(_.a5,10),i.Y36(i.sBO),i.Y36(s.Ym),i.Y36(s.kI),i.Y36(x.Ii),i.Y36(p.Ys),i.Y36(et),i.Y36(C.fL))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-select"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,f,7),i.Suo(n,l.gX,5,i.Rgc)),2&t){let t;i.iGM(t=i.CRH())&&(e.nativeSelect=t.first),i.iGM(t=i.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(i.Gf(o.yc,5),i.Gf(r.o1,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.textfield=t.first),i.iGM(t=i.CRH())&&(e.hostedDropdown=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-size",e.size)},inputs:{stringify:"stringify",identityMatcher:"identityMatcher",valueContent:"valueContent"},features:[i._Bn([(0,C.FT)(t),(0,h.wB)(t),(0,c.oE)(t),(0,c.P7)(V)],[Y.yn]),i.qOj],ngContentSelectors:tt,decls:10,vars:15,consts:[[1,"t-hosted",3,"canOpen","content","tuiActiveZoneChange"],["automation-id","tui-select__textfield",1,"t-textfield",3,"disabled","editable","focusable","invalid","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIcon","value","keydown.backspace.prevent","keydown.delete.prevent","valueChange"],["select",""],["ngProjectAs","select",5,["select"],4,"ngTemplateOutlet"],["automation-id","tui-select__value","ngProjectAs","tuiContent","class","t-value",5,["tuiContent"],4,"ngIf"],["icon",""],[4,"ngIf"],["ngProjectAs","select",5,["select"]],["automation-id","tui-select__value","ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value"],["class","t-primitive-value",3,"textContent",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive-value",3,"textContent"],["appearance","icon","tuiWrapper","",1,"t-icon"],[4,"polymorpheusOutlet"]],template:function(t,e){if(1&t&&(i.F$t(K),i.TgZ(0,"tui-hosted-dropdown",0),i.NdJ("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),i.TgZ(1,"tui-primitive-textfield",1),i.NdJ("keydown.backspace.prevent",(function(){return e.onKeyDownDelete()}))("keydown.delete.prevent",(function(){return e.onKeyDownDelete()}))("valueChange",(function(t){return e.onValueChange(t)})),i.Hsn(2),i.Hsn(3,1,["ngProjectAs","input",5,["input"]]),i.YNc(4,H,1,1,"ng-template",null,2,i.W1O),i.YNc(6,Z,1,0,"ng-container",3),i.YNc(7,X,2,5,"div",4),i.qZA(),i.YNc(8,W,2,1,"ng-template",null,5,i.W1O),i.qZA()),2&t){const t=i.MAs(5),n=i.MAs(9);i.Q6J("canOpen",e.interactive&&!e.nativeDropdownMode)("content",e.datalist||""),i.xp6(1),i.Q6J("disabled",e.computedDisabled)("editable",!1)("focusable",e.computedFocusable)("invalid",e.computedInvalid)("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldIcon",e.arrow?n:"")("value",e.computedValue),i.xp6(5),i.Q6J("ngTemplateOutlet",t),i.xp6(1),i.Q6J("ngIf",null!==e.value)}},directives:[r.o1,y.e,o.yc,o.B1,s.AW,m.tP,m.O5,I.Li,a.o],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}[_nghost-%COMP%]:not(._readonly) input:not(:disabled){cursor:pointer}._readonly[_nghost-%COMP%] input{cursor:default}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}.t-primitive-value[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0}),t})(),it=(()=>{class t extends u.D1{get readOnly(){return!0}get value(){return this.host.computedValue}get stringify(){return this.host.stringify}onValueChange(t){this.host.onValueChange(t)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["tui-select"]],features:[i._Bn([(0,c.cp)(t)]),i.qOj]}),t})(),rt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[m.ez,I.wq,y.A,o.KW,r.jh,U,x.Mt,a.W,s.cn,g.zX,l.pc,v]]}),t})()},25470:(t,e,n)=>{n.d(e,{ph:()=>T,YM:()=>I});var i=n(74788),r=n(24751),o=n(44541),s=n(13633),a=n(75059),l=n(88491);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();var u=n(11927),h=n(76480),d=n(57179),p=n(99434),f=n(91489),g=n(40719),m=n(54789),v=n(77320),_=n(75452),y=n(12057),b=n(89570);const w=["focusableElement"];function C(t,e){if(1&t&&i._UZ(0,"tui-loader",7),2&t){const t=i.oxw();i.Q6J("inheritColor",!0)("showLoader",t.value)("size",t.loaderSize)}}function x(t,e){if(1&t&&i._UZ(0,"tui-svg",10),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}const O=function(t){return{$implicit:t}};function k(t,e){if(1&t&&(i.TgZ(0,"span",8),i.YNc(1,x,1,1,"tui-svg",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconOn)("polymorpheusOutletContext",i.VKq(2,O,t.size))}}function M(t,e){if(1&t&&i._UZ(0,"tui-loader",7),2&t){const t=i.oxw();i.Q6J("inheritColor",!0)("showLoader",!t.value)("size",t.loaderSize)}}function P(t,e){if(1&t&&i._UZ(0,"tui-svg",12),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function S(t,e){if(1&t&&(i.TgZ(0,"span",8),i.YNc(1,P,1,1,"tui-svg",11),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconOff)("polymorpheusOutletContext",i.VKq(2,O,t.size))}}const E={icons:{toggleOff:({$implicit:t})=>"m"===t?"tuiIconToggleOff":"tuiIconToggleOffLarge",toggleOn:({$implicit:t})=>"m"===t?"tuiIconToggleOn":"tuiIconToggleOnLarge"},appearances:{checked:v.Nm.Primary,unchecked:v.Nm.Secondary},singleColor:!1,showIcons:!1,size:"m"},A=(0,u.JN)(E);let T=(()=>{class t extends h.M${constructor(t,e,n,i){super(t,e),this.modeDirective=n,this.options=i,this.singleColor=this.options.singleColor,this.showIcons=this.options.showIcons,this.showLoader=!1,this.size=this.options.size}get iconOn(){return this.options.icons.toggleOn}get iconOff(){return this.options.icons.toggleOff}get nativeFocusableElement(){return this.focusableElement?this.focusableElement.nativeElement:null}get focused(){return(0,d.V8)(this.nativeFocusableElement)}get appearance(){return this.singleColor||this.value?this.options.appearances.checked:this.options.appearances.unchecked}get sizeM(){return"m"===this.size}get loaderSize(){return this.sizeM?"xs":"s"}get hostMode(){return this.modeDirective?this.modeDirective.mode:null}onChecked(t){this.value=t}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}getFallbackValue(){return!1}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(_.w,8),i.Y36(A))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-toggle"]],viewQuery:function(t,e){if(1&t&&i.Gf(w,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:4,hostBindings:function(t,e){2&t&&(i.uIk("data-size",e.size)("data-mode",e.hostMode),i.ekj("_checked",e.value))},inputs:{singleColor:"singleColor",showIcons:"showIcons",showLoader:"showLoader",size:"size"},features:[i._Bn([(0,p.FT)(t),(0,h.wB)(t)]),i.qOj],decls:9,vars:16,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid","readOnly"],[1,"t-toggle"],["class","t-loader",3,"inheritColor","showLoader","size",4,"ngIf"],["class","t-icon-wrapper",4,"ngIf"],[1,"t-circle"],["automation-id","tui-toggle__checkbox","role","switch","type","checkbox",1,"t-checkbox",3,"disabled","id","tuiFocusable","tuiChecked","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""],[1,"t-loader",3,"inheritColor","showLoader","size"],[1,"t-icon-wrapper"],["automation-id","tui-toggle__check-icon","class","t-icon",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-toggle__check-icon",1,"t-icon",3,"src"],["automation-id","tui-toggle__cancel-icon","class","t-icon t-icon_off",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-toggle__cancel-icon",1,"t-icon","t-icon_off",3,"src"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,C,1,3,"tui-loader",2),i.YNc(3,k,2,4,"span",3),i._UZ(4,"div",4),i.YNc(5,M,1,3,"tui-loader",2),i.YNc(6,S,2,4,"span",3),i.qZA(),i.TgZ(7,"input",5,6),i.NdJ("tuiCheckedChange",(function(t){return e.value=t}))("tuiFocusedChange",(function(t){return e.onFocused(t)}))("tuiFocusVisibleChange",(function(t){return e.onFocusVisible(t)})),i.qZA(),i.qZA()),2&t&&(i.Q6J("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.computedDisabled)("focus",e.computedFocusVisible)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),i.xp6(2),i.Q6J("ngIf",e.showLoader),i.xp6(1),i.Q6J("ngIf",e.showIcons&&!e.showLoader),i.xp6(2),i.Q6J("ngIf",e.showLoader),i.xp6(1),i.Q6J("ngIf",e.showIcons&&!e.showLoader),i.xp6(1),i.Q6J("disabled",e.disabled)("id",e.id)("tuiFocusable",e.focusable)("tuiChecked",e.value),i.uIk("aria-checked",e.value))},directives:[f.o,y.O5,o.t,s.t,a.U,l.q,g.kM,b.Li,m.PN],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle;overflow:hidden;border-radius:6.25rem}[data-size=m][_nghost-%COMP%]{width:2rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:3rem;height:1.5rem}.t-checkbox[_ngcontent-%COMP%]{padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;height:100%;width:100%;opacity:0;cursor:pointer}.t-checkbox[_ngcontent-%COMP%]:-webkit-autofill, .t-checkbox[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-checkbox[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%] .t-checkbox[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.t-toggle[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:center}[data-size=m][_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{width:3rem;height:1rem;transform:translate(-1rem)}[data-size=l][_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{width:4.5rem;height:1.5rem;transform:translate(-1.5rem)}._checked[_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{transform:translate(0)}.t-circle[_ngcontent-%COMP%]{margin:.125rem 0;flex-shrink:0;border-radius:100%;background-color:var(--tui-base-01)}._disabled[_nghost-%COMP%] .t-circle_light[_ngcontent-%COMP%]{opacity:.24}[data-size=m][_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{width:.75rem;height:.75rem}[data-size=l][_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{width:1rem;height:1rem}._disabled[_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{background-color:var(--tui-base-01)}[_nghost-%COMP%]:not(._checked) .t-loader[_ngcontent-%COMP%]{color:var(--tui-base-06)}[_nghost-%COMP%]:not(._checked)._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-base-05)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark] .t-loader[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark]._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight] .t-loader[_ngcontent-%COMP%]{color:var(--tui-text-03)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight]._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-size=m][_nghost-%COMP%] .t-loader[_ngcontent-%COMP%]{width:.75rem;margin:0 .2rem;transform:scale(.75)}[data-size=l][_nghost-%COMP%] .t-loader[_ngcontent-%COMP%]{width:1rem;margin:0 .25rem}.t-icon-wrapper[_ngcontent-%COMP%]{display:flex}.t-icon[_ngcontent-%COMP%]{opacity:.8}.t-icon_off[_ngcontent-%COMP%]{color:var(--tui-base-06)}._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-base-05)}[data-mode=onDark][_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark]._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[data-mode=onLight][_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight]._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1rem;height:1rem;transform:scale(.75)}[data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{margin:0 .125rem;width:1.5rem;height:1.5rem}[_nghost-%COMP%]:hover .t-icon[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0}),t})(),I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[y.ez,a.F,s.u,c,l.c,o.S,f.W,m.EI,g.dS,b.wq]]}),t})()},75093:(t,e,n)=>{n.d(e,{n:()=>o,S:()=>s});var i=n(74788),r=n(93213);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiValueAccessor",""]],features:[i._Bn([r.E2])]}),t})(),s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},93213:(t,e,n)=>{n.d(e,{yn:()=>c,E2:()=>u});var i=n(74788),r=n(79456);n(88002);var o=n(98952),s=n(75046),a=(n(25917),n(54487)),l=n(24751);s.RZ;const c=(0,o.fx)({limitWidth:"fixed",align:"right"}),u={provide:r.sE,deps:[[new i.FiY,new i.PiD,l.JU]],useFactory:a.y}},75046:(t,e,n)=>{n.d(e,{UV:()=>y,Ys:()=>C,RZ:()=>x,ue:()=>v,mT:()=>_,WO:()=>O,Z4:()=>k});var i=n(74788),r=n(33770),o=n(11927),s=(n(18939),n(36424)),a=n(27788),l=n(85648);const c=12;`${r.f$}${r.F}${r.f$}`.length,(0,o.JN)("DMY"),(0,o.JN)(".");class u{constructor(t){this.year=t}static isValidYear(t){return Number.isInteger(t)&&(0,l.wf)(t,0,1e4)}static isLeapYear(t){return t%400==0||t%4==0&&t%100!=0}static getAbsoluteLeapYears(t){return Math.ceil(t/400)+(Math.ceil(t/4)-Math.ceil(t/100))}static lengthBetween(t,e){return e.year-t.year}static normalizeYearPart(t){return(0,l.G1)(t,0,9999)}get formattedYear(){return String(this.year).padStart(4,"0")}get isLeapYear(){return u.isLeapYear(this.year)}get absoluteLeapYears(){return u.getAbsoluteLeapYears(this.year)}yearBefore({year:t}){return this.year=t}yearAfter({year:t}){return this.year>t}append({year:t=0}){const e=this.year+t;return new u(e)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](t){return Date.prototype[Symbol.toPrimitive].call(this,t)}toJSON(){return this.formattedYear}}class h extends u{constructor(t,e){super(t),this.month=e}static isValidMonth(t,e){return u.isValidYear(t)&&h.isValidMonthPart(e)}static getMonthDaysCount(t,e){switch(t){case s.B.February:return e?29:28;case s.B.April:case s.B.June:case s.B.September:case s.B.November:return 30;default:return 31}}static currentLocal(){const t=new Date;return new h(t.getFullYear(),t.getMonth())}static currentUtc(){const t=new Date;return new h(t.getUTCFullYear(),t.getUTCMonth())}static lengthBetween(t,e){const n=t.month+12*t.year;return e.month+12*e.year-n}static normalizeMonthPart(t){return(0,l.G1)(t,0,11)}static isValidMonthPart(t){return Number.isInteger(t)&&(0,l.wf)(t,0,12)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return h.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(t){return this.yearBefore(t)||this.yearSame(t)&&this.month=t.month}monthAfter(t){return this.yearAfter(t)||this.yearSame(t)&&this.month>t.month}append({year:t=0,month:e=0}){const n=(this.year+t)*c+this.month+e;return new h(Math.floor(n/c),n%c)}toString(){return`${this.formattedMonthPart}.${this.formattedYear}`}valueOf(){return this.toLocalNativeDate().valueOf()}toJSON(){return`${super.toJSON()}-${this.formattedMonthPart}`}toLocalNativeDate(){return new Date(this.year,this.month)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month))}}class d extends h{constructor(t,e,n){super(t,e),this.day=n}static fromLocalNativeDate(t){return new d(t.getFullYear(),t.getMonth(),t.getDate())}static fromUtcNativeDate(t){return new d(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}static isValidDay(t,e,n){return h.isValidMonth(t,e)&&Number.isInteger(n)&&(0,l.wf)(n,1,h.getMonthDaysCount(e,u.isLeapYear(t))+1)}static currentLocal(){const t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate();return new d(e,n,i)}static currentUtc(){const t=new Date,e=t.getUTCFullYear(),n=t.getUTCMonth(),i=t.getUTCDate();return new d(e,n,i)}static normalizeOf(t,e,n){const i=u.normalizeYearPart(t),r=h.normalizeMonthPart(e),o=d.normalizeDayPart(n,r,i);return new d(i,r,o)}static lengthBetween(t,e){return Math.round((e.toLocalNativeDate().getTime()-t.toLocalNativeDate().getTime())/864e5)}static parseRawDateString(t,e="DMY"){switch(e){case"YMD":return{day:parseInt(t.slice(8,10),10),month:parseInt(t.slice(5,7),10)-1,year:parseInt(t.slice(0,4),10)};case"MDY":return{day:parseInt(t.slice(3,5),10),month:parseInt(t.slice(0,2),10)-1,year:parseInt(t.slice(6,10),10)};default:return{day:parseInt(t.slice(0,2),10),month:parseInt(t.slice(3,5),10)-1,year:parseInt(t.slice(6,10),10)}}}static normalizeParse(t,e="DMY"){const{day:n,month:i,year:r}=this.parseRawDateString(t,e);return d.normalizeOf(r,i,n)}static jsonParse(t){const{day:e,month:n,year:i}=this.parseRawDateString(t,"YMD");if(!u.isValidYear(i))throw new a.JY(i);if(!h.isValidMonth(i,n))throw new a.AM(n);if(!Number.isInteger(e)||!(0,l.wf)(e,1,h.getMonthDaysCount(n,u.isLeapYear(i))+1))throw new a.I4(e);return new d(i,n,e)}static normalizeDayPart(t,e,n){const i=h.getMonthDaysCount(e,u.isLeapYear(n));return(0,l.G1)(t,1,i)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){const t=this.dayOfWeek(!1);return t===s.L.Saturday||t===s.L.Sunday}dayOfWeek(t=!0){const e=t?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return e<0?6:e}dayBefore(t){return this.monthBefore(t)||this.monthSame(t)&&this.day=t.day}dayAfter(t){return this.monthAfter(t)||this.monthSame(t)&&this.day>t.day}dayLimit(t,e){return null!==t&&this.dayBefore(t)?t:null!==e&&this.dayAfter(e)?e:this}append({year:t=0,month:e=0,day:n=0}){const i=(this.year+t)*c+this.month+e;let r=Math.floor(i/c),o=i%c,a=Math.min(this.day,h.getMonthDaysCount(o,u.isLeapYear(r)))+n;for(;a>h.getMonthDaysCount(o,u.isLeapYear(r));)a-=h.getMonthDaysCount(o,u.isLeapYear(r)),o===s.B.December?(r++,o=s.B.January):o++;for(;a<1;)o===s.B.January?(r--,o=s.B.December):o--,a+=h.getMonthDaysCount(o,u.isLeapYear(r));return new d(r,o,a)}getFormattedDay(t,e){const n=this.formattedDayPart,i=this.formattedMonthPart,r=this.formattedYear;switch(t){case"YMD":return`${r}${e}${i}${e}${n}`;case"MDY":return`${i}${e}${n}${e}${r}`;default:return`${n}${e}${i}${e}${r}`}}toString(t="DMY",e="."){return this.getFormattedDay(t,e)}toJSON(){return`${super.toJSON()}-${this.formattedDayPart}`}toLocalNativeDate(){return new Date(this.year,this.month,this.day)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month,this.day))}}const p=new d(0,0,1),f=new d(9999,11,31);Symbol.toPrimitive;var g=n(31081),m=n(47232);new i.OlP("[TUI_CALENDAR_DATE_STREAM]"),(0,o.JN)({[g.X.AD]:"+376###-###",[g.X.AE]:"+971-##-###-####",[g.X.AF]:"+93##-###-####",[g.X.AG]:"+1(268) ###-####",[g.X.AI]:"+1(264) ###-####",[g.X.AL]:"+355(###) ###-###",[g.X.AM]:"+374##-###-###",[g.X.AO]:"+244(###) ###-###",[g.X.AR]:"+54(###) ####-####",[g.X.AT]:"+43(###) ###-####",[g.X.AU]:"+61#-####-####",[g.X.AW]:"+297###-####",[g.X.AZ]:"+994##-###-##-##",[g.X.BA]:"+387 ###-####-##",[g.X.BB]:"+1(246) ###-####",[g.X.BD]:"+880##-###-###",[g.X.BE]:"+32(###) ###-###",[g.X.BF]:"+226##-##-####",[g.X.BG]:"+359(###) ###-###",[g.X.BH]:"+973####-####",[g.X.BI]:"+257##-##-####",[g.X.BJ]:"+229##-##-####",[g.X.BL]:"+590 ## ## ## ## ##",[g.X.BM]:"+1(441) ###-####",[g.X.BN]:"+673###-####",[g.X.BO]:"+591#-###-####",[g.X.BQ]:"+599-###-####",[g.X.BR]:"+55(##) ####-####",[g.X.BS]:"+1(242) ###-####",[g.X.BT]:"+975#-###-###",[g.X.BW]:"+267##-###-###",[g.X.BY]:"+375(##) ###-##-##",[g.X.BZ]:"+501###-####",[g.X.CA]:"+1(###) ###-####",[g.X.CD]:"+243(###) ###-###",[g.X.CF]:"+236-##-##-####",[g.X.CG]:"+242##-###-####",[g.X.CH]:"+41##-###-####",[g.X.CI]:"+225##-##-###-###",[g.X.CL]:"+56#-####-####",[g.X.CM]:"+237#####-####",[g.X.CN]:"+86(###) ####-####",[g.X.CO]:"+57(###) ###-####",[g.X.CR]:"+506####-####",[g.X.CU]:"+53#-###-####",[g.X.CV]:"+238(###) ##-##",[g.X.CW]:"+5999-###-####",[g.X.CY]:"+357##-###-###",[g.X.CZ]:"+420(###) ###-###",[g.X.DE]:"+49(###) ###-###-##",[g.X.DJ]:"+253##-##-##-##",[g.X.DK]:"+45##-##-##-##",[g.X.DM]:"+1(767) ###-####",[g.X.DO]:"+1(###) ###-####",[g.X.DZ]:"+213##-###-####",[g.X.EC]:"+593##-###-####",[g.X.EE]:"+372####-####",[g.X.EG]:"+20(###) ###-####",[g.X.ER]:"+291#-###-###",[g.X.ES]:"+34(###) ###-###",[g.X.ET]:"+251##-###-####",[g.X.FI]:"+358(###) ###-##-##",[g.X.FJ]:"+679##-#####",[g.X.FK]:"+500#####",[g.X.FM]:"+691###-####",[g.X.FR]:"+33 ## ## ## ## ##",[g.X.GA]:"+241##-##-##-##",[g.X.GB]:"+44##-####-####",[g.X.GD]:"+1(473) ###-####",[g.X.GE]:"+995(###) ###-###",[g.X.GF]:"+594 ## ## ## ## ##",[g.X.GH]:"+233(###) ###-###",[g.X.GI]:"+350###-#####",[g.X.GL]:"+299##-##-##",[g.X.GM]:"+220(###) ##-##",[g.X.GN]:"+224##-###-###",[g.X.GP]:"+590 ## ## ## ## ##",[g.X.GQ]:"+240##-###-####",[g.X.GR]:"+30(###) ###-####",[g.X.GT]:"+502#-###-####",[g.X.GW]:"+245#-######",[g.X.GY]:"+592###-####",[g.X.HK]:"+852####-####",[g.X.HN]:"+504####-####",[g.X.HR]:"+385##-###-####",[g.X.HT]:"+509##-##-####",[g.X.HU]:"+36(###) ###-###",[g.X.ID]:"+62(###) ###-##-###",[g.X.IE]:"+353(###) ###-###",[g.X.IL]:"+972##-###-####",[g.X.IN]:"+91(####) ###-###",[g.X.IQ]:"+964(###) ###-####",[g.X.IR]:"+98(###) ###-####",[g.X.IS]:"+354###-####",[g.X.IT]:"+39(###) ####-###",[g.X.JM]:"+1(876) ###-####",[g.X.JO]:"+962#-####-####",[g.X.JP]:"+81-##-####-####",[g.X.KE]:"+254###-######",[g.X.KG]:"+996(###) ###-###",[g.X.KH]:"+855##-###-###",[g.X.KM]:"+269##-#####",[g.X.KN]:"+1(869) ###-####",[g.X.KP]:"+850####-#############",[g.X.KR]:"+82##-###-####",[g.X.KW]:"+965####-####",[g.X.KY]:"+1(345) ###-####",[g.X.KZ]:"+7(###) ###-##-##",[g.X.LA]:"+856##-##-###-###",[g.X.LB]:"+961##-###-###",[g.X.LC]:"+1(758) ###-####",[g.X.LI]:"+423(###) ###-####",[g.X.LK]:"+94##-###-####",[g.X.LR]:"+231##-###-###",[g.X.LS]:"+266#-###-####",[g.X.LT]:"+370(###) ##-###",[g.X.LU]:"+352(###) ###-###",[g.X.LV]:"+371##-###-###",[g.X.LY]:"+218##-###-####",[g.X.MA]:"+212##-####-###",[g.X.MC]:"+377###-###-###",[g.X.MD]:"+373####-####",[g.X.ME]:"+382##-###-###",[g.X.MF]:"+590 ## ## ## ## ##",[g.X.MG]:"+261##-##-#####",[g.X.MK]:"+389##-###-###",[g.X.ML]:"+223##-##-####",[g.X.MM]:"+95##-###-###",[g.X.MN]:"+976##-##-####",[g.X.MO]:"+853####-####",[g.X.MQ]:"+596 ## ## ## ## ##",[g.X.MR]:"+222##-##-####",[g.X.MS]:"+1(664) ###-####",[g.X.MT]:"+356####-####",[g.X.MU]:"+230####-####",[g.X.MV]:"+960###-####",[g.X.MW]:"+265#-####-####",[g.X.MX]:"+52(###) ###-####",[g.X.MY]:"+60(###) ###-###",[g.X.MZ]:"+258##-###-###",[g.X.NA]:"+264##-###-####",[g.X.NC]:"+687 ### ###",[g.X.NE]:"+227##-##-####",[g.X.NG]:"+234(###) ###-####",[g.X.NI]:"+505####-####",[g.X.NL]:"+31##-###-####",[g.X.NO]:"+47(###) ##-###",[g.X.NP]:"+977##-###-###",[g.X.NZ]:"+64(###) ###-####",[g.X.OM]:"+968##-###-###",[g.X.PA]:"+507###-####",[g.X.PE]:"+51(###) ###-###",[g.X.PF]:"+689 ## ## ## ##",[g.X.PG]:"+675(###) ##-###",[g.X.PH]:"+63(###) ###-####",[g.X.PK]:"+92(###) ###-####",[g.X.PL]:"+48(###) ###-###",[g.X.PT]:"+351##-###-####",[g.X.PW]:"+680###-####",[g.X.PY]:"+595(###) ###-###",[g.X.QA]:"+974####-####",[g.X.RE]:"+262 ## ## ## ## ##",[g.X.RO]:"+40##-###-####",[g.X.RS]:"+381##-###-####",[g.X.RU]:"+7### ###-##-##",[g.X.RW]:"+250(###) ###-###",[g.X.SA]:"+966#-####-####",[g.X.SB]:"+677###-####",[g.X.SC]:"+248#-###-###",[g.X.SD]:"+249##-###-####",[g.X.SE]:"+46##-###-####",[g.X.SG]:"+65####-####",[g.X.SH]:"+290####",[g.X.SI]:"+386##-###-###",[g.X.SK]:"+421(###) ###-###",[g.X.SL]:"+232##-######",[g.X.SM]:"+378####-######",[g.X.SN]:"+221##-###-####",[g.X.SO]:"+252##-###-###",[g.X.SR]:"+597###-####",[g.X.ST]:"+239##-#####",[g.X.SV]:"+503##-##-####",[g.X.SX]:"+1(721) ###-####",[g.X.SY]:"+963##-####-###",[g.X.SZ]:"+268##-##-####",[g.X.TC]:"+1(649) ###-####",[g.X.TD]:"+235##-##-##-##",[g.X.TG]:"+228##-###-###",[g.X.TH]:"+66##-###-####",[g.X.TJ]:"+992##-###-####",[g.X.TL]:"+670###-#####",[g.X.TM]:"+993#-###-####",[g.X.TN]:"+216##-###-###",[g.X.TO]:"+676#####",[g.X.TR]:"+90(###) ###-####",[g.X.TT]:"+1(868) ###-####",[g.X.TW]:"+886#-####-####",[g.X.TZ]:"+255##-###-####",[g.X.UA]:"+380(##) ###-##-##",[g.X.UG]:"+256(###) ###-###",[g.X.US]:"+1(###) ###-####",[g.X.UY]:"+598#-###-##-##",[g.X.UZ]:"+998##-###-####",[g.X.VC]:"+1(784) ###-####",[g.X.VE]:"+58(###) ###-####",[g.X.VG]:"+1(284)###-####",[g.X.VN]:"+84(###) ####-###",[g.X.VU]:"+678##-#####",[g.X.WS]:"+685##-####",[g.X.XK]:"+383##-###-###",[g.X.YE]:"+967###-###-###",[g.X.YT]:"+262 ## ## ## ## ##",[g.X.ZA]:"+27##-###-####",[g.X.ZM]:"+260##-###-####",[g.X.ZW]:"+263#-######"}),new i.OlP("[TUI_DATE_VALUE_TRANSFORMER]"),new i.OlP("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),new i.OlP("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),new i.OlP("[TUI_PROMPT_WORDS]",{factory:(0,m.v)("prompt")}),new i.OlP("[TUI_CANCEL_WORD]",{factory:(0,m.v)("cancel")}),new i.OlP("[TUI_DONE_WORD]",{factory:(0,m.v)("done")});const v=new i.OlP("[TUI_MORE_WORD]",{factory:(0,m.v)("more")}),_=(new i.OlP("[TUI_HIDE_TEXT]",{factory:(0,m.v)("hide")}),new i.OlP("[TUI_SHOW_ALL_TEXT]",{factory:(0,m.v)("showAll")}),new i.OlP("[TUI_OTHER_DATE_TEXT]",{factory:(0,m.v)("otherDate")}),new i.OlP("[TUI_CHOOSE_DAY_OR_RANGE_TEXTS]",{factory:(0,m.v)("mobileCalendarTexts")}),new i.OlP("[TUI_FROM_TO_TEXTS]",{factory:(0,m.v)("range")}),new i.OlP("[TUI_PLUS_MINUS_TEXTS]",{factory:(0,m.v)("countTexts")})),y=(new i.OlP("[TUI_TIME_TEXTS]",{factory:(0,m.v)("time")}),new i.OlP("[TUI_DATE_TEXTS]",{factory:(0,m.v)("dateTexts")}),new i.OlP("[TUI_DIGITAL_INFORMATION_UNITS]",{factory:(0,m.v)("digitalInformationUnits")}),new i.OlP("[TUI_COPY_TEXTS]",{factory:(0,m.v)("copyTexts")})),b=(new i.OlP("[TUI_PASSWORD_TEXTS]",{factory:(0,m.v)("passwordTexts")}),new i.OlP("[TUI_CALENDAR_MONTHS]",{factory:(0,m.v)("shortCalendarMonths")}),new i.OlP("[TUI_FILE_TEXTS]",{factory:(0,m.v)("fileTexts")}),new i.OlP("[TUI_PAGINATION_TEXTS]",{factory:(0,m.v)("pagination")}),new i.OlP("[TUI_INPUT_FILE_TEXTS]",{factory:(0,m.v)("inputFileTexts")}),new i.OlP("[TUI_MULTI_SELECT_TEXTS]",{factory:(0,m.v)("multiSelectTexts")}),new i.OlP("[TUI_COUNTRIES]",{factory:(0,m.v)("countries")}),{icon:({$implicit:t})=>"s"===t?"tuiIconCalendar":"tuiIconCalendarLarge",min:p,max:f,nativePicker:!1});(0,o.JN)(b);const w={stringify:r.yZ,identityMatcher:r.bg,disabledItemHandler:r.Iy},C=(0,o.JN)(w);new i.OlP("[TUI_MOBILE_CALENDAR]");const x=new i.OlP("[TUI_MONTH_FORMATTER]"),O=(0,o.JN)(24),k=(0,o.JN)({})},30126:(t,e,n)=>{n.d(e,{X1:()=>_,Gt:()=>v,uX:()=>m});var i=n(91211),r=n(74788),o=n(59193),s=n(22416),a=n(41439),l=n(70409);class c{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter((t=>!this.modifier.includes(t))).join(".")}}let u=(()=>{class t extends c{constructor(){super(...arguments),this.modifier="$"}addEventListener(t,e){t[e]=t[e]||o.E;const n=this.getMethod(t,e),i=this.manager.getZone().onStable,r=(0,s.z)(i.pipe((0,l.o)((()=>t[e]===o.E))),(0,a.P)((()=>t[e]))).subscribe(n);return()=>r.unsubscribe()}getMethod(t,e){const[,n,i,r=""]=e.split(".");return e.endsWith(".attr")?e=>null===e?t.removeAttribute(n):t.setAttribute(n,String(e)):"class"===n?e=>t.classList.toggle(i,!!e):"style"===n?e=>t.style.setProperty(i.replace(/[a-z][A-Z]/g,(t=>`${t[0]}-${t[1].toLowerCase()}`)),`${e}${r}`):e=>t[n]=e}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),h=(()=>{class t extends c{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(t){return t.includes(".")&&!this.unwrap(t).includes(".")}addEventListener(t,e,n){return t.addEventListener(this.unwrap(e),n,{once:e.includes(".once"),passive:e.includes(".passive"),capture:e.includes(".capture")}),()=>t.removeEventListener(this.unwrap(e),n)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),d=(()=>{class t extends c{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(t,e,n){return this.manager.addEventListener(t,this.unwrap(e),(t=>{t.preventDefault(),n(t)}))}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),p=(()=>{class t extends c{constructor(){super(...arguments),this.modifier=".self"}addEventListener(t,e,n){return this.manager.addEventListener(t,this.unwrap(e),(t=>{t.target===t.currentTarget&&n(t)}))}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),f=(()=>{class t extends c{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(e,n,i){return t.ngZone=this.manager.getZone(),t.ngZone.runOutsideAngular((()=>this.manager.addEventListener(e,this.unwrap(n),i)))}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const g=[f,u,h,d,p,(()=>{class t extends c{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(t,e,n){return this.manager.addEventListener(t,this.unwrap(e),(t=>{t.stopPropagation(),n(t)}))}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),(()=>{class t extends c{constructor(){super(...arguments),this.modifier=".init"}addEventListener(){return console.warn(".init plugin is no longer necessary as of v3.1.0"),()=>{}}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})()].map((t=>({provide:i.s3,multi:!0,useClass:t})));function m(t){return(e,n,i)=>{const{value:r}=i;i.value=function(...e){t.apply(this,e)&&(f.ngZone?f.ngZone.run((()=>r.apply(this,e))):r.apply(this,e))}}}function v(t){return t}let _=(()=>{class t{constructor([e]){console.assert(!(e instanceof f)||t.initialized,"EventPluginsModule must come after BrowserModule in imports"),t.initialized=!0}}return t.initialized=!1,t.ɵfac=function(e){return new(e||t)(r.LFG(i.s3))},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:g}),t})()},89570:(t,e,n)=>{n.d(e,{yf:()=>r,Al:()=>o,wq:()=>h,Li:()=>l,GL:()=>s});var i=n(74788);const r=new i.OlP("POLYMORPHEUS_CONTEXT");class o{constructor(t,e){this.component=t,this.i=e}createInjector(t,e){return i.zs3.create({parent:this.i||t,providers:[{provide:r,useValue:e}]})}}let s=(()=>{class t{constructor(t,e){this.template=t,this.cdr=e,this.polymorpheus=""}check(){this.cdr.markForCheck()}static ngTemplateContextGuard(t,e){return!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.Rgc,2),i.Y36(i.sBO))},t.ɵdir=i.lG2({type:t,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),t})();class a{constructor(t){this.$implicit=t}get polymorpheusOutlet(){return this.$implicit}}let l=(()=>{class t{constructor(t,e,n){this.vcr=t,this.i=e,this.t=n,this.content=""}get template(){return c(this.content)?this.content.template:this.content instanceof i.Rgc?this.content:this.t}ngOnChanges({content:t}){var e;const n=this.getContext();this.v&&(this.v.context=n),null===(e=this.c)||void 0===e||e.injector.get(i.sBO).markForCheck(),t&&(this.vcr.clear(),u(this.content)?this.process(this.content):null!=(n instanceof a&&n.$implicit)&&(this.v=this.vcr.createEmbeddedView(this.template,n)))}ngDoCheck(){c(this.content)&&this.content.check()}static ngTemplateContextGuard(t,e){return!0}getContext(){return c(t=this.content)||t instanceof i.Rgc||u(this.content)?this.context:new a("function"==typeof this.content?this.content(this.context):this.content);var t}process(t){const e=t.createInjector(this.i,this.context&&new Proxy(this.context,{get:(t,e)=>{var n;return null===(n=this.context)||void 0===n?void 0:n[e]}}));this.c=this.vcr.createComponent(e.get(i._Vd).resolveComponentFactory(t.component),0,e)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.zs3),i.Y36(i.Rgc))},t.ɵdir=i.lG2({type:t,selectors:[["","polymorpheusOutlet",""]],inputs:{content:["polymorpheusOutlet","content"],context:["polymorpheusOutletContext","context"]},features:[i.TTD]}),t})();function c(t){return t instanceof s}function u(t){return t instanceof o}let h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},23358:function(t){t.exports=function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(t,i,r){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,n,i){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return i&&e(o,i.prototype),o},n.apply(null,arguments)}function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1?n-1:0),r=1;r/gm),q=h(/\${[\w\W]*}/gm),H=h(/^data-[\-\w.\u00B7-\uFFFF]/),Z=h(/^aria-[\-\w]+$/),G=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=h(/^(?:\w+script|data):/i),X=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=h(/^html$/i),W=function(){return"undefined"==typeof window?null:window};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W(),r=function(t){return e(t)};if(r.version="2.4.7",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var o=n.document,s=n.document,a=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,h=n.Element,d=n.NodeFilter,p=n.NamedNodeMap,f=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,g=n.HTMLFormElement,m=n.DOMParser,S=n.trustedTypes,K=h.prototype,tt=T(K,"cloneNode"),et=T(K,"nextSibling"),nt=T(K,"childNodes"),it=T(K,"parentNode");if("function"==typeof l){var rt=s.createElement("template");rt.content&&rt.content.ownerDocument&&(s=rt.content.ownerDocument)}var ot=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var i=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(i=n.currentScript.getAttribute(r));var o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(S,o),st=ot?ot.createHTML(""):"",at=s,lt=at.implementation,ct=at.createNodeIterator,ut=at.createDocumentFragment,ht=at.getElementsByTagName,dt=o.importNode,pt={};try{pt=A(s).documentMode?s.documentMode:{}}catch(t){}var ft={};r.isSupported="function"==typeof it&<&&void 0!==lt.createHTMLDocument&&9!==pt;var gt,mt,vt=U,_t=Y,yt=q,bt=H,wt=Z,Ct=J,xt=X,Ot=G,kt=null,Mt=E({},[].concat(i(I),i(D),i(L),i(z),i(R))),Pt=null,St=E({},[].concat(i(B),i(j),i($),i(V))),Et=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),At=null,Tt=null,It=!0,Dt=!0,Lt=!1,Nt=!0,zt=!1,Ft=!1,Rt=!1,Bt=!1,jt=!1,$t=!1,Vt=!1,Ut=!0,Yt=!1,qt=!0,Ht=!1,Zt={},Gt=null,Jt=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xt=null,Qt=E({},["audio","video","img","source","image","track"]),Wt=null,Kt=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml",ie=ne,re=!1,oe=null,se=E({},[te,ee,ne],w),ae=["application/xhtml+xml","text/html"],le=null,ce=s.createElement("form"),ue=function(t){return t instanceof RegExp||t instanceof Function},he=function(e){le&&le===e||(e&&"object"===t(e)||(e={}),e=A(e),gt=gt=-1===ae.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===gt?w:b,kt="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS,mt):Mt,Pt="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR,mt):St,oe="ALLOWED_NAMESPACES"in e?E({},e.ALLOWED_NAMESPACES,w):se,Wt="ADD_URI_SAFE_ATTR"in e?E(A(Kt),e.ADD_URI_SAFE_ATTR,mt):Kt,Xt="ADD_DATA_URI_TAGS"in e?E(A(Qt),e.ADD_DATA_URI_TAGS,mt):Qt,Gt="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS,mt):Jt,At="FORBID_TAGS"in e?E({},e.FORBID_TAGS,mt):{},Tt="FORBID_ATTR"in e?E({},e.FORBID_ATTR,mt):{},Zt="USE_PROFILES"in e&&e.USE_PROFILES,It=!1!==e.ALLOW_ARIA_ATTR,Dt=!1!==e.ALLOW_DATA_ATTR,Lt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,zt=e.SAFE_FOR_TEMPLATES||!1,Ft=e.WHOLE_DOCUMENT||!1,jt=e.RETURN_DOM||!1,$t=e.RETURN_DOM_FRAGMENT||!1,Vt=e.RETURN_TRUSTED_TYPE||!1,Bt=e.FORCE_BODY||!1,Ut=!1!==e.SANITIZE_DOM,Yt=e.SANITIZE_NAMED_PROPS||!1,qt=!1!==e.KEEP_CONTENT,Ht=e.IN_PLACE||!1,Ot=e.ALLOWED_URI_REGEXP||Ot,ie=e.NAMESPACE||ne,Et=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ue(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Et.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ue(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Et.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Et.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),zt&&(Dt=!1),$t&&(jt=!0),Zt&&(kt=E({},i(R)),Pt=[],!0===Zt.html&&(E(kt,I),E(Pt,B)),!0===Zt.svg&&(E(kt,D),E(Pt,j),E(Pt,V)),!0===Zt.svgFilters&&(E(kt,L),E(Pt,j),E(Pt,V)),!0===Zt.mathMl&&(E(kt,z),E(Pt,$),E(Pt,V))),e.ADD_TAGS&&(kt===Mt&&(kt=A(kt)),E(kt,e.ADD_TAGS,mt)),e.ADD_ATTR&&(Pt===St&&(Pt=A(Pt)),E(Pt,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&E(Wt,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Gt===Jt&&(Gt=A(Gt)),E(Gt,e.FORBID_CONTENTS,mt)),qt&&(kt["#text"]=!0),Ft&&E(kt,["html","head","body"]),kt.table&&(E(kt,["tbody"]),delete At.tbody),u&&u(e),le=e)},de=E({},["mi","mo","mn","ms","mtext"]),pe=E({},["foreignobject","desc","title","annotation-xml"]),fe=E({},["title","style","font","a","script"]),ge=E({},D);E(ge,L),E(ge,N);var me=E({},z);E(me,F);var ve=function(t){y(r.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=st}catch(e){t.remove()}}},_e=function(t,e){try{y(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){y(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Pt[t])if(jt||$t)try{ve(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ye=function(t){var e,n;if(Bt)t=""+t;else{var i=C(t,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===gt&&ie===ne&&(t=''+t+"");var r=ot?ot.createHTML(t):t;if(ie===ne)try{e=(new m).parseFromString(r,gt)}catch(t){}if(!e||!e.documentElement){e=lt.createDocument(ie,"template",null);try{e.documentElement.innerHTML=re?st:r}catch(t){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),ie===ne?ht.call(e,Ft?"html":"body")[0]:Ft?e.documentElement:o},be=function(t){return ct.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},we=function(e){return"object"===t(c)?e instanceof c:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Ce=function(t,e,n){ft[t]&&v(ft[t],(function(t){t.call(r,e,n,le)}))},xe=function(t){var e,n;if(Ce("beforeSanitizeElements",t,null),(n=t)instanceof g&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof f)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return ve(t),!0;if(M(/[\u0080-\uFFFF]/,t.nodeName))return ve(t),!0;var i=mt(t.nodeName);if(Ce("uponSanitizeElement",t,{tagName:i,allowedTags:kt}),t.hasChildNodes()&&!we(t.firstElementChild)&&(!we(t.content)||!we(t.content.firstElementChild))&&M(/<[/\w]/g,t.innerHTML)&&M(/<[/\w]/g,t.textContent))return ve(t),!0;if("select"===i&&M(/